ccgo_linux_arm.go 117 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115
  1. // Code generated for linux/arm by 'generator -no-main-minimize -DHAVE_LIBBSD --prefix-enumerator=_ --prefix-external=x_ --prefix-field=F --prefix-macro=m_ --prefix-static-internal=_ --prefix-static-none=_ --prefix-tagged-enum=_ --prefix-tagged-struct=T --prefix-tagged-union=T --prefix-typename=T --prefix-undefined=_ -extended-errors -ignore-unsupported-alignment -ignore-link-errors -I /home/jnml/src/modernc.org/builder/.exclude/modernc.org/libbsd/include/linux/arm -lbsd -o libxdmcp.go --package-name libxdmcp .libs/libXdmcp.a', DO NOT EDIT.
  2. //go:build linux && arm
  3. package libxdmcp
  4. import (
  5. "reflect"
  6. "unsafe"
  7. "modernc.org/libbsd"
  8. "modernc.org/libc"
  9. )
  10. var _ reflect.Type
  11. var _ unsafe.Pointer
  12. const m_AT_EACCESS = 0x200
  13. const m_AT_EMPTY_PATH = 0x1000
  14. const m_AT_NO_AUTOMOUNT = 0x800
  15. const m_AT_RECURSIVE = 0x8000
  16. const m_AT_REMOVEDIR = 0x200
  17. const m_AT_STATX_DONT_SYNC = 0x4000
  18. const m_AT_STATX_FORCE_SYNC = 0x2000
  19. const m_AT_STATX_SYNC_AS_STAT = 0x0000
  20. const m_AT_STATX_SYNC_TYPE = 0x6000
  21. const m_AT_SYMLINK_FOLLOW = 0x400
  22. const m_AT_SYMLINK_NOFOLLOW = 0x100
  23. const m_Above = 0
  24. const m_AllTemporary = 0
  25. const m_AllocAll = 1
  26. const m_AllocNone = 0
  27. const m_AllowExposures = 1
  28. const m_AlreadyGrabbed = 1
  29. const m_Always = 2
  30. const m_AnyButton = 0
  31. const m_AnyKey = 0
  32. const m_AnyPropertyType = 0
  33. const m_ArcChord = 0
  34. const m_ArcPieSlice = 1
  35. const m_AsyncBoth = 6
  36. const m_AsyncKeyboard = 3
  37. const m_AsyncPointer = 0
  38. const m_AutoRepeatModeDefault = 2
  39. const m_AutoRepeatModeOff = 0
  40. const m_AutoRepeatModeOn = 1
  41. const m_BIG_ENDIAN = "__BIG_ENDIAN"
  42. const m_BYTE_ORDER = "__BYTE_ORDER"
  43. const m_BadAccess = 10
  44. const m_BadAlloc = 11
  45. const m_BadAtom = 5
  46. const m_BadColor = 12
  47. const m_BadCursor = 6
  48. const m_BadDrawable = 9
  49. const m_BadFont = 7
  50. const m_BadGC = 13
  51. const m_BadIDChoice = 14
  52. const m_BadImplementation = 17
  53. const m_BadLength = 16
  54. const m_BadMatch = 8
  55. const m_BadName = 15
  56. const m_BadPixmap = 4
  57. const m_BadRequest = 1
  58. const m_BadValue = 2
  59. const m_BadWindow = 3
  60. const m_Below = 1
  61. const m_BottomIf = 3
  62. const m_Button1 = 1
  63. const m_Button2 = 2
  64. const m_Button3 = 3
  65. const m_Button4 = 4
  66. const m_Button5 = 5
  67. const m_ButtonPress = 4
  68. const m_ButtonRelease = 5
  69. const m_CLOCKS_PER_SEC = 1000000
  70. const m_CLOCK_BOOTTIME = 7
  71. const m_CLOCK_BOOTTIME_ALARM = 9
  72. const m_CLOCK_MONOTONIC = 1
  73. const m_CLOCK_MONOTONIC_COARSE = 6
  74. const m_CLOCK_MONOTONIC_RAW = 4
  75. const m_CLOCK_PROCESS_CPUTIME_ID = 2
  76. const m_CLOCK_REALTIME = 0
  77. const m_CLOCK_REALTIME_ALARM = 8
  78. const m_CLOCK_REALTIME_COARSE = 5
  79. const m_CLOCK_SGI_CYCLE = 10
  80. const m_CLOCK_TAI = 11
  81. const m_CLOCK_THREAD_CPUTIME_ID = 3
  82. const m_CapButt = 1
  83. const m_CapNotLast = 0
  84. const m_CapProjecting = 3
  85. const m_CapRound = 2
  86. const m_CenterGravity = 5
  87. const m_CirculateNotify = 26
  88. const m_CirculateRequest = 27
  89. const m_ClientMessage = 33
  90. const m_ClipByChildren = 0
  91. const m_ColormapInstalled = 1
  92. const m_ColormapNotify = 32
  93. const m_ColormapUninstalled = 0
  94. const m_Complex = 0
  95. const m_ConfigureNotify = 22
  96. const m_ConfigureRequest = 23
  97. const m_ControlMapIndex = 2
  98. const m_Convex = 2
  99. const m_CoordModeOrigin = 0
  100. const m_CoordModePrevious = 1
  101. const m_CopyFromParent = 0
  102. const m_CreateNotify = 16
  103. const m_CurrentTime = 0
  104. const m_CursorShape = 0
  105. const m_DN_ACCESS = 0x00000001
  106. const m_DN_ATTRIB = 0x00000020
  107. const m_DN_CREATE = 0x00000004
  108. const m_DN_DELETE = 0x00000008
  109. const m_DN_MODIFY = 0x00000002
  110. const m_DN_MULTISHOT = 0x80000000
  111. const m_DN_RENAME = 0x00000010
  112. const m_DefaultBlanking = 2
  113. const m_DefaultExposures = 2
  114. const m_DestroyAll = 0
  115. const m_DestroyNotify = 17
  116. const m_DirectColor = 5
  117. const m_DisableAccess = 0
  118. const m_DisableScreenInterval = 0
  119. const m_DisableScreenSaver = 0
  120. const m_DontAllowExposures = 0
  121. const m_DontPreferBlanking = 0
  122. const m_EXIT_FAILURE = 1
  123. const m_EXIT_SUCCESS = 0
  124. const m_EastGravity = 6
  125. const m_EnableAccess = 1
  126. const m_EnterNotify = 7
  127. const m_EvenOddRule = 0
  128. const m_Expose = 12
  129. const m_FALLOC_FL_KEEP_SIZE = 1
  130. const m_FALLOC_FL_PUNCH_HOLE = 2
  131. const m_FALSE = 0
  132. const m_FAPPEND = "O_APPEND"
  133. const m_FASYNC = "O_ASYNC"
  134. const m_FD_CLOEXEC = 1
  135. const m_FD_SETSIZE = 1024
  136. const m_FFSYNC = "O_SYNC"
  137. const m_FNDELAY = "O_NDELAY"
  138. const m_FNONBLOCK = "O_NONBLOCK"
  139. const m_FUNCPROTO = 15
  140. const m_F_ADD_SEALS = 1033
  141. const m_F_CANCELLK = 1029
  142. const m_F_DUPFD = 0
  143. const m_F_DUPFD_CLOEXEC = 1030
  144. const m_F_GETFD = 1
  145. const m_F_GETFL = 3
  146. const m_F_GETLEASE = 1025
  147. const m_F_GETLK = 12
  148. const m_F_GETOWN = 9
  149. const m_F_GETOWNER_UIDS = 17
  150. const m_F_GETOWN_EX = 16
  151. const m_F_GETPIPE_SZ = 1032
  152. const m_F_GETSIG = 11
  153. const m_F_GET_FILE_RW_HINT = 1037
  154. const m_F_GET_RW_HINT = 1035
  155. const m_F_GET_SEALS = 1034
  156. const m_F_LOCK = 1
  157. const m_F_NOTIFY = 1026
  158. const m_F_OFD_GETLK = 36
  159. const m_F_OFD_SETLK = 37
  160. const m_F_OFD_SETLKW = 38
  161. const m_F_OK = 0
  162. const m_F_OWNER_GID = 2
  163. const m_F_OWNER_PGRP = 2
  164. const m_F_OWNER_PID = 1
  165. const m_F_OWNER_TID = 0
  166. const m_F_RDLCK = 0
  167. const m_F_SEAL_FUTURE_WRITE = 0x0010
  168. const m_F_SEAL_GROW = 0x0004
  169. const m_F_SEAL_SEAL = 0x0001
  170. const m_F_SEAL_SHRINK = 0x0002
  171. const m_F_SEAL_WRITE = 0x0008
  172. const m_F_SETFD = 2
  173. const m_F_SETFL = 4
  174. const m_F_SETLEASE = 1024
  175. const m_F_SETLK = 13
  176. const m_F_SETLKW = 14
  177. const m_F_SETOWN = 8
  178. const m_F_SETOWN_EX = 15
  179. const m_F_SETPIPE_SZ = 1031
  180. const m_F_SETSIG = 10
  181. const m_F_SET_FILE_RW_HINT = 1038
  182. const m_F_SET_RW_HINT = 1036
  183. const m_F_TEST = 3
  184. const m_F_TLOCK = 2
  185. const m_F_ULOCK = 0
  186. const m_F_UNLCK = 2
  187. const m_F_WRLCK = 1
  188. const m_FamilyChaos = 2
  189. const m_FamilyDECnet = 1
  190. const m_FamilyInternet = 0
  191. const m_FamilyInternet6 = 6
  192. const m_FamilyServerInterpreted = 5
  193. const m_FillOpaqueStippled = 3
  194. const m_FillSolid = 0
  195. const m_FillStippled = 2
  196. const m_FillTiled = 1
  197. const m_FirstExtensionError = 128
  198. const m_FocusIn = 9
  199. const m_FocusOut = 10
  200. const m_FontChange = 255
  201. const m_FontLeftToRight = 0
  202. const m_FontRightToLeft = 1
  203. const m_ForgetGravity = 0
  204. const m_GCLastBit = 22
  205. const m_GXand = 0x1
  206. const m_GXandInverted = 0x4
  207. const m_GXandReverse = 0x2
  208. const m_GXclear = 0x0
  209. const m_GXcopy = 0x3
  210. const m_GXcopyInverted = 0xc
  211. const m_GXequiv = 0x9
  212. const m_GXinvert = 0xa
  213. const m_GXnand = 0xe
  214. const m_GXnoop = 0x5
  215. const m_GXnor = 0x8
  216. const m_GXor = 0x7
  217. const m_GXorInverted = 0xd
  218. const m_GXorReverse = 0xb
  219. const m_GXset = 0xf
  220. const m_GXxor = 0x6
  221. const m_GenericEvent = 35
  222. const m_GrabFrozen = 4
  223. const m_GrabInvalidTime = 2
  224. const m_GrabModeAsync = 1
  225. const m_GrabModeSync = 0
  226. const m_GrabNotViewable = 3
  227. const m_GrabSuccess = 0
  228. const m_GraphicsExpose = 13
  229. const m_GravityNotify = 24
  230. const m_GrayScale = 1
  231. const m_HASXDMAUTH = 1
  232. const m_HAVE_ARC4RANDOM_BUF = 1
  233. const m_HAVE_CONFIG_H = 1
  234. const m_HAVE_DLFCN_H = 1
  235. const m_HAVE_INTTYPES_H = 1
  236. const m_HAVE_LIBBSD = 1
  237. const m_HAVE_LRAND48 = 1
  238. const m_HAVE_MEMORY_H = 1
  239. const m_HAVE_SRAND48 = 1
  240. const m_HAVE_STDINT_H = 1
  241. const m_HAVE_STDLIB_H = 1
  242. const m_HAVE_STRINGS_H = 1
  243. const m_HAVE_STRING_H = 1
  244. const m_HAVE_SYS_STAT_H = 1
  245. const m_HAVE_SYS_TYPES_H = 1
  246. const m_HAVE_UNISTD_H = 1
  247. const m_HostDelete = 1
  248. const m_HostInsert = 0
  249. const m_INT16_MAX = 0x7fff
  250. const m_INT32_MAX = 0x7fffffff
  251. const m_INT64_MAX = 0x7fffffffffffffff
  252. const m_INT8_MAX = 0x7f
  253. const m_INTMAX_MAX = "INT64_MAX"
  254. const m_INTMAX_MIN = "INT64_MIN"
  255. const m_INTPTR_MAX = "INT32_MAX"
  256. const m_INTPTR_MIN = "INT32_MIN"
  257. const m_INT_FAST16_MAX = "INT32_MAX"
  258. const m_INT_FAST16_MIN = "INT32_MIN"
  259. const m_INT_FAST32_MAX = "INT32_MAX"
  260. const m_INT_FAST32_MIN = "INT32_MIN"
  261. const m_INT_FAST64_MAX = "INT64_MAX"
  262. const m_INT_FAST64_MIN = "INT64_MIN"
  263. const m_INT_FAST8_MAX = "INT8_MAX"
  264. const m_INT_FAST8_MIN = "INT8_MIN"
  265. const m_INT_LEAST16_MAX = "INT16_MAX"
  266. const m_INT_LEAST16_MIN = "INT16_MIN"
  267. const m_INT_LEAST32_MAX = "INT32_MAX"
  268. const m_INT_LEAST32_MIN = "INT32_MIN"
  269. const m_INT_LEAST64_MAX = "INT64_MAX"
  270. const m_INT_LEAST64_MIN = "INT64_MIN"
  271. const m_INT_LEAST8_MAX = "INT8_MAX"
  272. const m_INT_LEAST8_MIN = "INT8_MIN"
  273. const m_ITIMER_PROF = 2
  274. const m_ITIMER_REAL = 0
  275. const m_ITIMER_VIRTUAL = 1
  276. const m_IncludeInferiors = 1
  277. const m_InputFocus = 1
  278. const m_InputOnly = 2
  279. const m_InputOutput = 1
  280. const m_IsUnmapped = 0
  281. const m_IsUnviewable = 1
  282. const m_IsViewable = 2
  283. const m_JoinBevel = 2
  284. const m_JoinMiter = 0
  285. const m_JoinRound = 1
  286. const m_KeyPress = 2
  287. const m_KeyRelease = 3
  288. const m_KeymapNotify = 11
  289. const m_LASTEvent = 36
  290. const m_LITTLE_ENDIAN = "__LITTLE_ENDIAN"
  291. const m_LSBFirst = 0
  292. const m_LT_OBJDIR = ".libs/"
  293. const m_L_INCR = 1
  294. const m_L_SET = 0
  295. const m_L_XTND = 2
  296. const m_LastExtensionError = 255
  297. const m_LeaveNotify = 8
  298. const m_LedModeOff = 0
  299. const m_LedModeOn = 1
  300. const m_LineDoubleDash = 2
  301. const m_LineOnOffDash = 1
  302. const m_LineSolid = 0
  303. const m_LockMapIndex = 1
  304. const m_LowerHighest = 1
  305. const m_MAX_HANDLE_SZ = 128
  306. const m_MSBFirst = 1
  307. const m_MapNotify = 19
  308. const m_MapRequest = 20
  309. const m_MappingBusy = 1
  310. const m_MappingFailed = 2
  311. const m_MappingKeyboard = 1
  312. const m_MappingModifier = 0
  313. const m_MappingNotify = 34
  314. const m_MappingPointer = 2
  315. const m_MappingSuccess = 0
  316. const m_Mod1MapIndex = 3
  317. const m_Mod2MapIndex = 4
  318. const m_Mod3MapIndex = 5
  319. const m_Mod4MapIndex = 6
  320. const m_Mod5MapIndex = 7
  321. const m_MotionNotify = 6
  322. const m_NDEBUG = 1
  323. const m_NeedFunctionPrototypes = 1
  324. const m_NeedNestedPrototypes = 1
  325. const m_NeedVarargsPrototypes = 1
  326. const m_NeedWidePrototypes = 0
  327. const m_NoEventMask = 0
  328. const m_NoExpose = 14
  329. const m_NoSymbol = 0
  330. const m_Nonconvex = 1
  331. const m_None = 0
  332. const m_NorthEastGravity = 3
  333. const m_NorthGravity = 2
  334. const m_NorthWestGravity = 1
  335. const m_NotUseful = 0
  336. const m_NotifyAncestor = 0
  337. const m_NotifyDetailNone = 7
  338. const m_NotifyGrab = 1
  339. const m_NotifyHint = 1
  340. const m_NotifyInferior = 2
  341. const m_NotifyNonlinear = 3
  342. const m_NotifyNonlinearVirtual = 4
  343. const m_NotifyNormal = 0
  344. const m_NotifyPointer = 5
  345. const m_NotifyPointerRoot = 6
  346. const m_NotifyUngrab = 2
  347. const m_NotifyVirtual = 1
  348. const m_NotifyWhileGrabbed = 3
  349. const m_O_APPEND = 02000
  350. const m_O_ASYNC = 020000
  351. const m_O_CLOEXEC = 02000000
  352. const m_O_CREAT = 0100
  353. const m_O_DIRECT = 0200000
  354. const m_O_DIRECTORY = 040000
  355. const m_O_DSYNC = 010000
  356. const m_O_EXCL = 0200
  357. const m_O_EXEC = "O_PATH"
  358. const m_O_LARGEFILE = 0400000
  359. const m_O_NDELAY = "O_NONBLOCK"
  360. const m_O_NOATIME = 01000000
  361. const m_O_NOCTTY = 0400
  362. const m_O_NOFOLLOW = 0100000
  363. const m_O_NONBLOCK = 04000
  364. const m_O_PATH = 010000000
  365. const m_O_RDONLY = 00
  366. const m_O_RDWR = 02
  367. const m_O_RSYNC = 04010000
  368. const m_O_SEARCH = "O_PATH"
  369. const m_O_SYNC = 04010000
  370. const m_O_TMPFILE = 020040000
  371. const m_O_TRUNC = 01000
  372. const m_O_TTY_INIT = 0
  373. const m_O_WRONLY = 01
  374. const m_Opposite = 4
  375. const m_PACKAGE = "libXdmcp"
  376. const m_PACKAGE_BUGREPORT = "https://bugs.freedesktop.org/enter_bug.cgi?product=xorg"
  377. const m_PACKAGE_NAME = "libXdmcp"
  378. const m_PACKAGE_STRING = "libXdmcp 1.1.2"
  379. const m_PACKAGE_TARNAME = "libXdmcp"
  380. const m_PACKAGE_URL = ""
  381. const m_PACKAGE_VERSION = "1.1.2"
  382. const m_PACKAGE_VERSION_MAJOR = 1
  383. const m_PACKAGE_VERSION_MINOR = 1
  384. const m_PACKAGE_VERSION_PATCHLEVEL = 2
  385. const m_PDP_ENDIAN = "__PDP_ENDIAN"
  386. const m_POSIX_CLOSE_RESTART = 0
  387. const m_POSIX_FADV_DONTNEED = 4
  388. const m_POSIX_FADV_NOREUSE = 5
  389. const m_POSIX_FADV_NORMAL = 0
  390. const m_POSIX_FADV_RANDOM = 1
  391. const m_POSIX_FADV_SEQUENTIAL = 2
  392. const m_POSIX_FADV_WILLNEED = 3
  393. const m_PTRDIFF_MAX = "INT32_MAX"
  394. const m_PTRDIFF_MIN = "INT32_MIN"
  395. const m_ParentRelative = 1
  396. const m_PlaceOnBottom = 1
  397. const m_PlaceOnTop = 0
  398. const m_PointerRoot = 1
  399. const m_PointerWindow = 0
  400. const m_PreferBlanking = 1
  401. const m_PropModeAppend = 2
  402. const m_PropModePrepend = 1
  403. const m_PropModeReplace = 0
  404. const m_PropertyDelete = 1
  405. const m_PropertyNewValue = 0
  406. const m_PropertyNotify = 28
  407. const m_PseudoColor = 3
  408. const m_RAND_MAX = 0x7fffffff
  409. const m_RWF_WRITE_LIFE_NOT_SET = 0
  410. const m_RWH_WRITE_LIFE_EXTREME = 5
  411. const m_RWH_WRITE_LIFE_LONG = 4
  412. const m_RWH_WRITE_LIFE_MEDIUM = 3
  413. const m_RWH_WRITE_LIFE_NONE = 1
  414. const m_RWH_WRITE_LIFE_SHORT = 2
  415. const m_R_OK = 4
  416. const m_RaiseLowest = 0
  417. const m_ReparentNotify = 21
  418. const m_ReplayKeyboard = 5
  419. const m_ReplayPointer = 2
  420. const m_ResizeRequest = 25
  421. const m_RetainPermanent = 1
  422. const m_RetainTemporary = 2
  423. const m_RevertToParent = 2
  424. const m_SEEK_DATA = 3
  425. const m_SEEK_HOLE = 4
  426. const m_SIG_ATOMIC_MAX = "INT32_MAX"
  427. const m_SIG_ATOMIC_MIN = "INT32_MIN"
  428. const m_SIZE_MAX = "UINT32_MAX"
  429. const m_SPLICE_F_GIFT = 8
  430. const m_SPLICE_F_MORE = 4
  431. const m_SPLICE_F_MOVE = 1
  432. const m_SPLICE_F_NONBLOCK = 2
  433. const m_STDC_HEADERS = 1
  434. const m_STDERR_FILENO = 2
  435. const m_STDIN_FILENO = 0
  436. const m_STDOUT_FILENO = 1
  437. const m_SYNC_FILE_RANGE_WAIT_AFTER = 4
  438. const m_SYNC_FILE_RANGE_WAIT_BEFORE = 1
  439. const m_SYNC_FILE_RANGE_WRITE = 2
  440. const m_S_IRGRP = 0040
  441. const m_S_IROTH = 0004
  442. const m_S_IRUSR = 0400
  443. const m_S_IRWXG = 0070
  444. const m_S_IRWXO = 0007
  445. const m_S_IRWXU = 0700
  446. const m_S_ISGID = 02000
  447. const m_S_ISUID = 04000
  448. const m_S_ISVTX = 01000
  449. const m_S_IWGRP = 0020
  450. const m_S_IWOTH = 0002
  451. const m_S_IWUSR = 0200
  452. const m_S_IXGRP = 0010
  453. const m_S_IXOTH = 0001
  454. const m_S_IXUSR = 0100
  455. const m_ScreenSaverActive = 1
  456. const m_ScreenSaverReset = 0
  457. const m_SelectionClear = 29
  458. const m_SelectionNotify = 31
  459. const m_SelectionRequest = 30
  460. const m_SetModeDelete = 1
  461. const m_SetModeInsert = 0
  462. const m_ShiftMapIndex = 0
  463. const m_SouthEastGravity = 9
  464. const m_SouthGravity = 8
  465. const m_SouthWestGravity = 7
  466. const m_StaticColor = 2
  467. const m_StaticGravity = 10
  468. const m_StaticGray = 0
  469. const m_StippleShape = 2
  470. const m_Success = 0
  471. const m_SyncBoth = 7
  472. const m_SyncKeyboard = 4
  473. const m_SyncPointer = 1
  474. const m_TIMER_ABSTIME = 1
  475. const m_TIME_UTC = 1
  476. const m_TRUE = 1
  477. const m_TileShape = 1
  478. const m_TopIf = 2
  479. const m_TrueColor = 4
  480. const m_UINT16_MAX = 65535
  481. const m_UINT32_MAX = "0xffffffffu"
  482. const m_UINT64_MAX = "0xffffffffffffffffu"
  483. const m_UINT8_MAX = 255
  484. const m_UINTMAX_MAX = "UINT64_MAX"
  485. const m_UINTPTR_MAX = "UINT32_MAX"
  486. const m_UINT_FAST16_MAX = "UINT32_MAX"
  487. const m_UINT_FAST32_MAX = "UINT32_MAX"
  488. const m_UINT_FAST64_MAX = "UINT64_MAX"
  489. const m_UINT_FAST8_MAX = "UINT8_MAX"
  490. const m_UINT_LEAST16_MAX = "UINT16_MAX"
  491. const m_UINT_LEAST32_MAX = "UINT32_MAX"
  492. const m_UINT_LEAST64_MAX = "UINT64_MAX"
  493. const m_UINT_LEAST8_MAX = "UINT8_MAX"
  494. const m_UnmapGravity = 0
  495. const m_UnmapNotify = 18
  496. const m_Unsorted = 0
  497. const m_VERSION = "1.1.2"
  498. const m_VisibilityFullyObscured = 2
  499. const m_VisibilityNotify = 15
  500. const m_VisibilityPartiallyObscured = 1
  501. const m_VisibilityUnobscured = 0
  502. const m_WINT_MAX = "UINT32_MAX"
  503. const m_WINT_MIN = 0
  504. const m_WNOHANG = 1
  505. const m_WUNTRACED = 2
  506. const m_W_OK = 2
  507. const m_WestGravity = 4
  508. const m_WhenMapped = 1
  509. const m_WindingRule = 1
  510. const m_XDM_DEFAULT_MCAST_ADDR6 = "ff02:0:0:0:0:0:0:12b"
  511. const m_XDM_KA_RTX_LIMIT = 4
  512. const m_XDM_MAX_MSGLEN = 8192
  513. const m_XDM_MAX_RTX = 32
  514. const m_XDM_MIN_RTX = 2
  515. const m_XDM_PROTOCOL_VERSION = 1
  516. const m_XDM_RTX_LIMIT = 7
  517. const m_XDM_UDP_PORT = 177
  518. const m_XMD_H = 1
  519. const m_XYBitmap = 0
  520. const m_XYPixmap = 1
  521. const m_X_BIG_ENDIAN = "BIG_ENDIAN"
  522. const m_X_BYTE_ORDER = "BYTE_ORDER"
  523. const m_X_LITTLE_ENDIAN = "LITTLE_ENDIAN"
  524. const m_X_OK = 1
  525. const m_X_PROTOCOL = 11
  526. const m_X_PROTOCOL_REVISION = 0
  527. const m_YSorted = 1
  528. const m_YXBanded = 3
  529. const m_YXSorted = 2
  530. const m_ZPixmap = 2
  531. const m__ALL_SOURCE = 1
  532. const m__CS_GNU_LIBC_VERSION = 2
  533. const m__CS_GNU_LIBPTHREAD_VERSION = 3
  534. const m__CS_PATH = 0
  535. const m__CS_POSIX_V5_WIDTH_RESTRICTED_ENVS = 4
  536. const m__CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116
  537. const m__CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117
  538. const m__CS_POSIX_V6_ILP32_OFF32_LIBS = 1118
  539. const m__CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119
  540. const m__CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120
  541. const m__CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121
  542. const m__CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122
  543. const m__CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123
  544. const m__CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124
  545. const m__CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125
  546. const m__CS_POSIX_V6_LP64_OFF64_LIBS = 1126
  547. const m__CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127
  548. const m__CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128
  549. const m__CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129
  550. const m__CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130
  551. const m__CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131
  552. const m__CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 1
  553. const m__CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132
  554. const m__CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133
  555. const m__CS_POSIX_V7_ILP32_OFF32_LIBS = 1134
  556. const m__CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135
  557. const m__CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136
  558. const m__CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137
  559. const m__CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138
  560. const m__CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139
  561. const m__CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140
  562. const m__CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141
  563. const m__CS_POSIX_V7_LP64_OFF64_LIBS = 1142
  564. const m__CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143
  565. const m__CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144
  566. const m__CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145
  567. const m__CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146
  568. const m__CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147
  569. const m__CS_POSIX_V7_THREADS_CFLAGS = 1150
  570. const m__CS_POSIX_V7_THREADS_LDFLAGS = 1151
  571. const m__CS_POSIX_V7_WIDTH_RESTRICTED_ENVS = 5
  572. const m__CS_V6_ENV = 1148
  573. const m__CS_V7_ENV = 1149
  574. const m__FILE_OFFSET_BITS = 64
  575. const m__GNU_SOURCE = 1
  576. const m__PC_2_SYMLINKS = 20
  577. const m__PC_ALLOC_SIZE_MIN = 18
  578. const m__PC_ASYNC_IO = 10
  579. const m__PC_CHOWN_RESTRICTED = 6
  580. const m__PC_FILESIZEBITS = 13
  581. const m__PC_LINK_MAX = 0
  582. const m__PC_MAX_CANON = 1
  583. const m__PC_MAX_INPUT = 2
  584. const m__PC_NAME_MAX = 3
  585. const m__PC_NO_TRUNC = 7
  586. const m__PC_PATH_MAX = 4
  587. const m__PC_PIPE_BUF = 5
  588. const m__PC_PRIO_IO = 11
  589. const m__PC_REC_INCR_XFER_SIZE = 14
  590. const m__PC_REC_MAX_XFER_SIZE = 15
  591. const m__PC_REC_MIN_XFER_SIZE = 16
  592. const m__PC_REC_XFER_ALIGN = 17
  593. const m__PC_SOCK_MAXBUF = 12
  594. const m__PC_SYMLINK_MAX = 19
  595. const m__PC_SYNC_IO = 9
  596. const m__PC_VDISABLE = 8
  597. const m__POSIX2_C_BIND = "_POSIX_VERSION"
  598. const m__POSIX2_VERSION = "_POSIX_VERSION"
  599. const m__POSIX_ADVISORY_INFO = "_POSIX_VERSION"
  600. const m__POSIX_ASYNCHRONOUS_IO = "_POSIX_VERSION"
  601. const m__POSIX_BARRIERS = "_POSIX_VERSION"
  602. const m__POSIX_CHOWN_RESTRICTED = 1
  603. const m__POSIX_CLOCK_SELECTION = "_POSIX_VERSION"
  604. const m__POSIX_CPUTIME = "_POSIX_VERSION"
  605. const m__POSIX_FSYNC = "_POSIX_VERSION"
  606. const m__POSIX_IPV6 = "_POSIX_VERSION"
  607. const m__POSIX_JOB_CONTROL = 1
  608. const m__POSIX_MAPPED_FILES = "_POSIX_VERSION"
  609. const m__POSIX_MEMLOCK = "_POSIX_VERSION"
  610. const m__POSIX_MEMLOCK_RANGE = "_POSIX_VERSION"
  611. const m__POSIX_MEMORY_PROTECTION = "_POSIX_VERSION"
  612. const m__POSIX_MESSAGE_PASSING = "_POSIX_VERSION"
  613. const m__POSIX_MONOTONIC_CLOCK = "_POSIX_VERSION"
  614. const m__POSIX_NO_TRUNC = 1
  615. const m__POSIX_PTHREAD_SEMANTICS = 1
  616. const m__POSIX_RAW_SOCKETS = "_POSIX_VERSION"
  617. const m__POSIX_READER_WRITER_LOCKS = "_POSIX_VERSION"
  618. const m__POSIX_REALTIME_SIGNALS = "_POSIX_VERSION"
  619. const m__POSIX_REGEXP = 1
  620. const m__POSIX_SAVED_IDS = 1
  621. const m__POSIX_SEMAPHORES = "_POSIX_VERSION"
  622. const m__POSIX_SHARED_MEMORY_OBJECTS = "_POSIX_VERSION"
  623. const m__POSIX_SHELL = 1
  624. const m__POSIX_SPAWN = "_POSIX_VERSION"
  625. const m__POSIX_SPIN_LOCKS = "_POSIX_VERSION"
  626. const m__POSIX_THREADS = "_POSIX_VERSION"
  627. const m__POSIX_THREAD_ATTR_STACKADDR = "_POSIX_VERSION"
  628. const m__POSIX_THREAD_ATTR_STACKSIZE = "_POSIX_VERSION"
  629. const m__POSIX_THREAD_CPUTIME = "_POSIX_VERSION"
  630. const m__POSIX_THREAD_PRIORITY_SCHEDULING = "_POSIX_VERSION"
  631. const m__POSIX_THREAD_PROCESS_SHARED = "_POSIX_VERSION"
  632. const m__POSIX_THREAD_SAFE_FUNCTIONS = "_POSIX_VERSION"
  633. const m__POSIX_TIMEOUTS = "_POSIX_VERSION"
  634. const m__POSIX_TIMERS = "_POSIX_VERSION"
  635. const m__POSIX_V6_ILP32_OFFBIG = 1
  636. const m__POSIX_V7_ILP32_OFFBIG = 1
  637. const m__POSIX_VDISABLE = 0
  638. const m__POSIX_VERSION = 200809
  639. const m__REDIR_TIME64 = 1
  640. const m__SC_2_CHAR_TERM = 95
  641. const m__SC_2_C_BIND = 47
  642. const m__SC_2_C_DEV = 48
  643. const m__SC_2_FORT_DEV = 49
  644. const m__SC_2_FORT_RUN = 50
  645. const m__SC_2_LOCALEDEF = 52
  646. const m__SC_2_PBS = 168
  647. const m__SC_2_PBS_ACCOUNTING = 169
  648. const m__SC_2_PBS_CHECKPOINT = 175
  649. const m__SC_2_PBS_LOCATE = 170
  650. const m__SC_2_PBS_MESSAGE = 171
  651. const m__SC_2_PBS_TRACK = 172
  652. const m__SC_2_SW_DEV = 51
  653. const m__SC_2_UPE = 97
  654. const m__SC_2_VERSION = 46
  655. const m__SC_ADVISORY_INFO = 132
  656. const m__SC_AIO_LISTIO_MAX = 23
  657. const m__SC_AIO_MAX = 24
  658. const m__SC_AIO_PRIO_DELTA_MAX = 25
  659. const m__SC_ARG_MAX = 0
  660. const m__SC_ASYNCHRONOUS_IO = 12
  661. const m__SC_ATEXIT_MAX = 87
  662. const m__SC_AVPHYS_PAGES = 86
  663. const m__SC_BARRIERS = 133
  664. const m__SC_BC_BASE_MAX = 36
  665. const m__SC_BC_DIM_MAX = 37
  666. const m__SC_BC_SCALE_MAX = 38
  667. const m__SC_BC_STRING_MAX = 39
  668. const m__SC_CHILD_MAX = 1
  669. const m__SC_CLK_TCK = 2
  670. const m__SC_CLOCK_SELECTION = 137
  671. const m__SC_COLL_WEIGHTS_MAX = 40
  672. const m__SC_CPUTIME = 138
  673. const m__SC_DELAYTIMER_MAX = 26
  674. const m__SC_EXPR_NEST_MAX = 42
  675. const m__SC_FSYNC = 15
  676. const m__SC_GETGR_R_SIZE_MAX = 69
  677. const m__SC_GETPW_R_SIZE_MAX = 70
  678. const m__SC_HOST_NAME_MAX = 180
  679. const m__SC_IOV_MAX = 60
  680. const m__SC_IPV6 = 235
  681. const m__SC_JOB_CONTROL = 7
  682. const m__SC_LINE_MAX = 43
  683. const m__SC_LOGIN_NAME_MAX = 71
  684. const m__SC_MAPPED_FILES = 16
  685. const m__SC_MEMLOCK = 17
  686. const m__SC_MEMLOCK_RANGE = 18
  687. const m__SC_MEMORY_PROTECTION = 19
  688. const m__SC_MESSAGE_PASSING = 20
  689. const m__SC_MINSIGSTKSZ = 249
  690. const m__SC_MONOTONIC_CLOCK = 149
  691. const m__SC_MQ_OPEN_MAX = 27
  692. const m__SC_MQ_PRIO_MAX = 28
  693. const m__SC_NGROUPS_MAX = 3
  694. const m__SC_NPROCESSORS_CONF = 83
  695. const m__SC_NPROCESSORS_ONLN = 84
  696. const m__SC_NZERO = 109
  697. const m__SC_OPEN_MAX = 4
  698. const m__SC_PAGESIZE = 30
  699. const m__SC_PAGE_SIZE = 30
  700. const m__SC_PASS_MAX = 88
  701. const m__SC_PHYS_PAGES = 85
  702. const m__SC_PRIORITIZED_IO = 13
  703. const m__SC_PRIORITY_SCHEDULING = 10
  704. const m__SC_RAW_SOCKETS = 236
  705. const m__SC_READER_WRITER_LOCKS = 153
  706. const m__SC_REALTIME_SIGNALS = 9
  707. const m__SC_REGEXP = 155
  708. const m__SC_RE_DUP_MAX = 44
  709. const m__SC_RTSIG_MAX = 31
  710. const m__SC_SAVED_IDS = 8
  711. const m__SC_SEMAPHORES = 21
  712. const m__SC_SEM_NSEMS_MAX = 32
  713. const m__SC_SEM_VALUE_MAX = 33
  714. const m__SC_SHARED_MEMORY_OBJECTS = 22
  715. const m__SC_SHELL = 157
  716. const m__SC_SIGQUEUE_MAX = 34
  717. const m__SC_SIGSTKSZ = 250
  718. const m__SC_SPAWN = 159
  719. const m__SC_SPIN_LOCKS = 154
  720. const m__SC_SPORADIC_SERVER = 160
  721. const m__SC_SS_REPL_MAX = 241
  722. const m__SC_STREAMS = 174
  723. const m__SC_STREAM_MAX = 5
  724. const m__SC_SYMLOOP_MAX = 173
  725. const m__SC_SYNCHRONIZED_IO = 14
  726. const m__SC_THREADS = 67
  727. const m__SC_THREAD_ATTR_STACKADDR = 77
  728. const m__SC_THREAD_ATTR_STACKSIZE = 78
  729. const m__SC_THREAD_CPUTIME = 139
  730. const m__SC_THREAD_DESTRUCTOR_ITERATIONS = 73
  731. const m__SC_THREAD_KEYS_MAX = 74
  732. const m__SC_THREAD_PRIORITY_SCHEDULING = 79
  733. const m__SC_THREAD_PRIO_INHERIT = 80
  734. const m__SC_THREAD_PRIO_PROTECT = 81
  735. const m__SC_THREAD_PROCESS_SHARED = 82
  736. const m__SC_THREAD_ROBUST_PRIO_INHERIT = 247
  737. const m__SC_THREAD_ROBUST_PRIO_PROTECT = 248
  738. const m__SC_THREAD_SAFE_FUNCTIONS = 68
  739. const m__SC_THREAD_SPORADIC_SERVER = 161
  740. const m__SC_THREAD_STACK_MIN = 75
  741. const m__SC_THREAD_THREADS_MAX = 76
  742. const m__SC_TIMEOUTS = 164
  743. const m__SC_TIMERS = 11
  744. const m__SC_TIMER_MAX = 35
  745. const m__SC_TRACE = 181
  746. const m__SC_TRACE_EVENT_FILTER = 182
  747. const m__SC_TRACE_EVENT_NAME_MAX = 242
  748. const m__SC_TRACE_INHERIT = 183
  749. const m__SC_TRACE_LOG = 184
  750. const m__SC_TRACE_NAME_MAX = 243
  751. const m__SC_TRACE_SYS_MAX = 244
  752. const m__SC_TRACE_USER_EVENT_MAX = 245
  753. const m__SC_TTY_NAME_MAX = 72
  754. const m__SC_TYPED_MEMORY_OBJECTS = 165
  755. const m__SC_TZNAME_MAX = 6
  756. const m__SC_UIO_MAXIOV = 60
  757. const m__SC_V6_ILP32_OFF32 = 176
  758. const m__SC_V6_ILP32_OFFBIG = 177
  759. const m__SC_V6_LP64_OFF64 = 178
  760. const m__SC_V6_LPBIG_OFFBIG = 179
  761. const m__SC_V7_ILP32_OFF32 = 237
  762. const m__SC_V7_ILP32_OFFBIG = 238
  763. const m__SC_V7_LP64_OFF64 = 239
  764. const m__SC_V7_LPBIG_OFFBIG = 240
  765. const m__SC_VERSION = 29
  766. const m__SC_XBS5_ILP32_OFF32 = 125
  767. const m__SC_XBS5_ILP32_OFFBIG = 126
  768. const m__SC_XBS5_LP64_OFF64 = 127
  769. const m__SC_XBS5_LPBIG_OFFBIG = 128
  770. const m__SC_XOPEN_CRYPT = 92
  771. const m__SC_XOPEN_ENH_I18N = 93
  772. const m__SC_XOPEN_LEGACY = 129
  773. const m__SC_XOPEN_REALTIME = 130
  774. const m__SC_XOPEN_REALTIME_THREADS = 131
  775. const m__SC_XOPEN_SHM = 94
  776. const m__SC_XOPEN_STREAMS = 246
  777. const m__SC_XOPEN_UNIX = 91
  778. const m__SC_XOPEN_VERSION = 89
  779. const m__SC_XOPEN_XCU_VERSION = 90
  780. const m__SC_XOPEN_XPG2 = 98
  781. const m__SC_XOPEN_XPG3 = 99
  782. const m__SC_XOPEN_XPG4 = 100
  783. const m__STDC_PREDEF_H = 1
  784. const m__TANDEM_SOURCE = 1
  785. const m__XOPEN_ENH_I18N = 1
  786. const m__XOPEN_UNIX = 1
  787. const m__XOPEN_VERSION = 700
  788. const m__X_INLINE = "inline"
  789. const m__X_RESTRICT_KYWD = "restrict"
  790. const m__Xconst = "const"
  791. const m___ACCUM_EPSILON__ = "0x1P-15K"
  792. const m___ACCUM_FBIT__ = 15
  793. const m___ACCUM_IBIT__ = 16
  794. const m___ACCUM_MAX__ = "0X7FFFFFFFP-15K"
  795. const m___APCS_32__ = 1
  796. const m___ARMEL__ = 1
  797. const m___ARM_32BIT_STATE = 1
  798. const m___ARM_ARCH = 6
  799. const m___ARM_ARCH_6__ = 1
  800. const m___ARM_ARCH_ISA_ARM = 1
  801. const m___ARM_ARCH_ISA_THUMB = 1
  802. const m___ARM_EABI__ = 1
  803. const m___ARM_FEATURE_CLZ = 1
  804. const m___ARM_FEATURE_COPROC = 15
  805. const m___ARM_FEATURE_DSP = 1
  806. const m___ARM_FEATURE_LDREX = 4
  807. const m___ARM_FEATURE_QBIT = 1
  808. const m___ARM_FEATURE_SAT = 1
  809. const m___ARM_FEATURE_SIMD32 = 1
  810. const m___ARM_FEATURE_UNALIGNED = 1
  811. const m___ARM_FP = 12
  812. const m___ARM_PCS_VFP = 1
  813. const m___ARM_SIZEOF_MINIMAL_ENUM = 4
  814. const m___ARM_SIZEOF_WCHAR_T = 4
  815. const m___ATOMIC_ACQUIRE = 2
  816. const m___ATOMIC_ACQ_REL = 4
  817. const m___ATOMIC_CONSUME = 1
  818. const m___ATOMIC_RELAXED = 0
  819. const m___ATOMIC_RELEASE = 3
  820. const m___ATOMIC_SEQ_CST = 5
  821. const m___BIGGEST_ALIGNMENT__ = 8
  822. const m___BIG_ENDIAN = 4321
  823. const m___BYTE_ORDER = 1234
  824. const m___BYTE_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  825. const m___CCGO__ = 1
  826. const m___CHAR_BIT__ = 8
  827. const m___CHAR_UNSIGNED__ = 1
  828. const m___DA_FBIT__ = 31
  829. const m___DA_IBIT__ = 32
  830. const m___DBL_DECIMAL_DIG__ = 17
  831. const m___DBL_DIG__ = 15
  832. const m___DBL_HAS_DENORM__ = 1
  833. const m___DBL_HAS_INFINITY__ = 1
  834. const m___DBL_HAS_QUIET_NAN__ = 1
  835. const m___DBL_IS_IEC_60559__ = 2
  836. const m___DBL_MANT_DIG__ = 53
  837. const m___DBL_MAX_10_EXP__ = 308
  838. const m___DBL_MAX_EXP__ = 1024
  839. const m___DECIMAL_DIG__ = 17
  840. const m___DEC_EVAL_METHOD__ = 2
  841. const m___DQ_FBIT__ = 63
  842. const m___DQ_IBIT__ = 0
  843. const m___ELF__ = 1
  844. const m___EXTENSIONS__ = 1
  845. const m___FINITE_MATH_ONLY__ = 0
  846. const m___FLOAT_WORD_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  847. const m___FLT32X_DECIMAL_DIG__ = 17
  848. const m___FLT32X_DENORM_MIN__ = 4.9406564584124654e-324
  849. const m___FLT32X_DIG__ = 15
  850. const m___FLT32X_EPSILON__ = 2.2204460492503131e-16
  851. const m___FLT32X_HAS_DENORM__ = 1
  852. const m___FLT32X_HAS_INFINITY__ = 1
  853. const m___FLT32X_HAS_QUIET_NAN__ = 1
  854. const m___FLT32X_IS_IEC_60559__ = 2
  855. const m___FLT32X_MANT_DIG__ = 53
  856. const m___FLT32X_MAX_10_EXP__ = 308
  857. const m___FLT32X_MAX_EXP__ = 1024
  858. const m___FLT32X_MAX__ = 1.7976931348623157e+308
  859. const m___FLT32X_MIN__ = 2.2250738585072014e-308
  860. const m___FLT32X_NORM_MAX__ = 1.7976931348623157e+308
  861. const m___FLT32_DECIMAL_DIG__ = 9
  862. const m___FLT32_DENORM_MIN__ = 1.4012984643248171e-45
  863. const m___FLT32_DIG__ = 6
  864. const m___FLT32_EPSILON__ = 1.1920928955078125e-7
  865. const m___FLT32_HAS_DENORM__ = 1
  866. const m___FLT32_HAS_INFINITY__ = 1
  867. const m___FLT32_HAS_QUIET_NAN__ = 1
  868. const m___FLT32_IS_IEC_60559__ = 2
  869. const m___FLT32_MANT_DIG__ = 24
  870. const m___FLT32_MAX_10_EXP__ = 38
  871. const m___FLT32_MAX_EXP__ = 128
  872. const m___FLT32_MAX__ = 3.4028234663852886e+38
  873. const m___FLT32_MIN__ = 1.1754943508222875e-38
  874. const m___FLT32_NORM_MAX__ = 3.4028234663852886e+38
  875. const m___FLT64_DECIMAL_DIG__ = 17
  876. const m___FLT64_DENORM_MIN__ = 4.9406564584124654e-324
  877. const m___FLT64_DIG__ = 15
  878. const m___FLT64_EPSILON__ = 2.2204460492503131e-16
  879. const m___FLT64_HAS_DENORM__ = 1
  880. const m___FLT64_HAS_INFINITY__ = 1
  881. const m___FLT64_HAS_QUIET_NAN__ = 1
  882. const m___FLT64_IS_IEC_60559__ = 2
  883. const m___FLT64_MANT_DIG__ = 53
  884. const m___FLT64_MAX_10_EXP__ = 308
  885. const m___FLT64_MAX_EXP__ = 1024
  886. const m___FLT64_MAX__ = 1.7976931348623157e+308
  887. const m___FLT64_MIN__ = 2.2250738585072014e-308
  888. const m___FLT64_NORM_MAX__ = 1.7976931348623157e+308
  889. const m___FLT_DECIMAL_DIG__ = 9
  890. const m___FLT_DENORM_MIN__ = 1.4012984643248171e-45
  891. const m___FLT_DIG__ = 6
  892. const m___FLT_EPSILON__ = 1.1920928955078125e-7
  893. const m___FLT_EVAL_METHOD_TS_18661_3__ = 0
  894. const m___FLT_EVAL_METHOD__ = 0
  895. const m___FLT_HAS_DENORM__ = 1
  896. const m___FLT_HAS_INFINITY__ = 1
  897. const m___FLT_HAS_QUIET_NAN__ = 1
  898. const m___FLT_IS_IEC_60559__ = 2
  899. const m___FLT_MANT_DIG__ = 24
  900. const m___FLT_MAX_10_EXP__ = 38
  901. const m___FLT_MAX_EXP__ = 128
  902. const m___FLT_MAX__ = 3.4028234663852886e+38
  903. const m___FLT_MIN__ = 1.1754943508222875e-38
  904. const m___FLT_NORM_MAX__ = 3.4028234663852886e+38
  905. const m___FLT_RADIX__ = 2
  906. const m___FRACT_EPSILON__ = "0x1P-15R"
  907. const m___FRACT_FBIT__ = 15
  908. const m___FRACT_IBIT__ = 0
  909. const m___FRACT_MAX__ = "0X7FFFP-15R"
  910. const m___FUNCTION__ = "__func__"
  911. const m___GCC_ASM_FLAG_OUTPUTS__ = 1
  912. const m___GCC_ATOMIC_BOOL_LOCK_FREE = 1
  913. const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 1
  914. const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2
  915. const m___GCC_ATOMIC_CHAR_LOCK_FREE = 1
  916. const m___GCC_ATOMIC_INT_LOCK_FREE = 2
  917. const m___GCC_ATOMIC_LLONG_LOCK_FREE = 1
  918. const m___GCC_ATOMIC_LONG_LOCK_FREE = 2
  919. const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2
  920. const m___GCC_ATOMIC_SHORT_LOCK_FREE = 1
  921. const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1
  922. const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2
  923. const m___GCC_CONSTRUCTIVE_SIZE = 64
  924. const m___GCC_DESTRUCTIVE_SIZE = 64
  925. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1
  926. const m___GCC_IEC_559 = 2
  927. const m___GCC_IEC_559_COMPLEX = 2
  928. const m___GNUC_EXECUTION_CHARSET_NAME = "UTF-8"
  929. const m___GNUC_MINOR__ = 2
  930. const m___GNUC_PATCHLEVEL__ = 0
  931. const m___GNUC_STDC_INLINE__ = 1
  932. const m___GNUC_WIDE_EXECUTION_CHARSET_NAME = "UTF-32LE"
  933. const m___GNUC__ = 12
  934. const m___GXX_ABI_VERSION = 1017
  935. const m___GXX_TYPEINFO_EQUALITY_INLINE = 0
  936. const m___HAVE_SPECULATION_SAFE_VALUE = 1
  937. const m___HA_FBIT__ = 7
  938. const m___HA_IBIT__ = 8
  939. const m___HQ_FBIT__ = 15
  940. const m___HQ_IBIT__ = 0
  941. const m___INT16_MAX__ = 0x7fff
  942. const m___INT32_MAX__ = 0x7fffffff
  943. const m___INT32_TYPE__ = "int"
  944. const m___INT64_MAX__ = 0x7fffffffffffffff
  945. const m___INT8_MAX__ = 0x7f
  946. const m___INTMAX_MAX__ = 0x7fffffffffffffff
  947. const m___INTMAX_WIDTH__ = 64
  948. const m___INTPTR_MAX__ = 0x7fffffff
  949. const m___INTPTR_TYPE__ = "int"
  950. const m___INTPTR_WIDTH__ = 32
  951. const m___INT_FAST16_MAX__ = 0x7fffffff
  952. const m___INT_FAST16_TYPE__ = "int"
  953. const m___INT_FAST16_WIDTH__ = 32
  954. const m___INT_FAST32_MAX__ = 0x7fffffff
  955. const m___INT_FAST32_TYPE__ = "int"
  956. const m___INT_FAST32_WIDTH__ = 32
  957. const m___INT_FAST64_MAX__ = 0x7fffffffffffffff
  958. const m___INT_FAST64_WIDTH__ = 64
  959. const m___INT_FAST8_MAX__ = 0x7f
  960. const m___INT_FAST8_WIDTH__ = 8
  961. const m___INT_LEAST16_MAX__ = 0x7fff
  962. const m___INT_LEAST16_WIDTH__ = 16
  963. const m___INT_LEAST32_MAX__ = 0x7fffffff
  964. const m___INT_LEAST32_TYPE__ = "int"
  965. const m___INT_LEAST32_WIDTH__ = 32
  966. const m___INT_LEAST64_MAX__ = 0x7fffffffffffffff
  967. const m___INT_LEAST64_WIDTH__ = 64
  968. const m___INT_LEAST8_MAX__ = 0x7f
  969. const m___INT_LEAST8_WIDTH__ = 8
  970. const m___INT_MAX__ = 0x7fffffff
  971. const m___INT_WIDTH__ = 32
  972. const m___LACCUM_EPSILON__ = "0x1P-31LK"
  973. const m___LACCUM_FBIT__ = 31
  974. const m___LACCUM_IBIT__ = 32
  975. const m___LACCUM_MAX__ = "0X7FFFFFFFFFFFFFFFP-31LK"
  976. const m___LDBL_DECIMAL_DIG__ = 17
  977. const m___LDBL_DENORM_MIN__ = 4.9406564584124654e-324
  978. const m___LDBL_DIG__ = 15
  979. const m___LDBL_EPSILON__ = 2.2204460492503131e-16
  980. const m___LDBL_HAS_DENORM__ = 1
  981. const m___LDBL_HAS_INFINITY__ = 1
  982. const m___LDBL_HAS_QUIET_NAN__ = 1
  983. const m___LDBL_IS_IEC_60559__ = 2
  984. const m___LDBL_MANT_DIG__ = 53
  985. const m___LDBL_MAX_10_EXP__ = 308
  986. const m___LDBL_MAX_EXP__ = 1024
  987. const m___LDBL_MAX__ = 1.7976931348623157e+308
  988. const m___LDBL_MIN__ = 2.2250738585072014e-308
  989. const m___LDBL_NORM_MAX__ = 1.7976931348623157e+308
  990. const m___LFRACT_EPSILON__ = "0x1P-31LR"
  991. const m___LFRACT_FBIT__ = 31
  992. const m___LFRACT_IBIT__ = 0
  993. const m___LFRACT_MAX__ = "0X7FFFFFFFP-31LR"
  994. const m___LITTLE_ENDIAN = 1234
  995. const m___LLACCUM_EPSILON__ = "0x1P-31LLK"
  996. const m___LLACCUM_FBIT__ = 31
  997. const m___LLACCUM_IBIT__ = 32
  998. const m___LLACCUM_MAX__ = "0X7FFFFFFFFFFFFFFFP-31LLK"
  999. const m___LLFRACT_EPSILON__ = "0x1P-63LLR"
  1000. const m___LLFRACT_FBIT__ = 63
  1001. const m___LLFRACT_IBIT__ = 0
  1002. const m___LLFRACT_MAX__ = "0X7FFFFFFFFFFFFFFFP-63LLR"
  1003. const m___LONG_LONG_MAX__ = 0x7fffffffffffffff
  1004. const m___LONG_LONG_WIDTH__ = 64
  1005. const m___LONG_MAX = 0x7fffffff
  1006. const m___LONG_MAX__ = 0x7fffffff
  1007. const m___LONG_WIDTH__ = 32
  1008. const m___NO_INLINE__ = 1
  1009. const m___ORDER_BIG_ENDIAN__ = 4321
  1010. const m___ORDER_LITTLE_ENDIAN__ = 1234
  1011. const m___ORDER_PDP_ENDIAN__ = 3412
  1012. const m___PDP_ENDIAN = 3412
  1013. const m___PRAGMA_REDEFINE_EXTNAME = 1
  1014. const m___PRETTY_FUNCTION__ = "__func__"
  1015. const m___PTRDIFF_MAX__ = 0x7fffffff
  1016. const m___PTRDIFF_TYPE__ = "int"
  1017. const m___PTRDIFF_WIDTH__ = 32
  1018. const m___QQ_FBIT__ = 7
  1019. const m___QQ_IBIT__ = 0
  1020. const m___SACCUM_EPSILON__ = "0x1P-7HK"
  1021. const m___SACCUM_FBIT__ = 7
  1022. const m___SACCUM_IBIT__ = 8
  1023. const m___SACCUM_MAX__ = "0X7FFFP-7HK"
  1024. const m___SA_FBIT__ = 15
  1025. const m___SA_IBIT__ = 16
  1026. const m___SCHAR_MAX__ = 0x7f
  1027. const m___SCHAR_WIDTH__ = 8
  1028. const m___SFRACT_EPSILON__ = "0x1P-7HR"
  1029. const m___SFRACT_FBIT__ = 7
  1030. const m___SFRACT_IBIT__ = 0
  1031. const m___SFRACT_MAX__ = "0X7FP-7HR"
  1032. const m___SHRT_MAX__ = 0x7fff
  1033. const m___SHRT_WIDTH__ = 16
  1034. const m___SIG_ATOMIC_MAX__ = 0x7fffffff
  1035. const m___SIG_ATOMIC_TYPE__ = "int"
  1036. const m___SIG_ATOMIC_WIDTH__ = 32
  1037. const m___SIZEOF_DOUBLE__ = 8
  1038. const m___SIZEOF_FLOAT__ = 4
  1039. const m___SIZEOF_INT__ = 4
  1040. const m___SIZEOF_LONG_DOUBLE__ = 8
  1041. const m___SIZEOF_LONG_LONG__ = 8
  1042. const m___SIZEOF_LONG__ = 4
  1043. const m___SIZEOF_POINTER__ = 4
  1044. const m___SIZEOF_PTRDIFF_T__ = 4
  1045. const m___SIZEOF_SHORT__ = 2
  1046. const m___SIZEOF_SIZE_T__ = 4
  1047. const m___SIZEOF_WCHAR_T__ = 4
  1048. const m___SIZEOF_WINT_T__ = 4
  1049. const m___SIZE_MAX__ = 0xffffffff
  1050. const m___SIZE_WIDTH__ = 32
  1051. const m___SQ_FBIT__ = 31
  1052. const m___SQ_IBIT__ = 0
  1053. const m___STDC_HOSTED__ = 1
  1054. const m___STDC_IEC_559_COMPLEX__ = 1
  1055. const m___STDC_IEC_559__ = 1
  1056. const m___STDC_IEC_60559_BFP__ = 201404
  1057. const m___STDC_IEC_60559_COMPLEX__ = 201404
  1058. const m___STDC_ISO_10646__ = 201706
  1059. const m___STDC_UTF_16__ = 1
  1060. const m___STDC_UTF_32__ = 1
  1061. const m___STDC_VERSION__ = 201710
  1062. const m___STDC__ = 1
  1063. const m___TA_FBIT__ = 63
  1064. const m___TA_IBIT__ = 64
  1065. const m___THUMB_INTERWORK__ = 1
  1066. const m___TQ_FBIT__ = 127
  1067. const m___TQ_IBIT__ = 0
  1068. const m___UACCUM_EPSILON__ = "0x1P-16UK"
  1069. const m___UACCUM_FBIT__ = 16
  1070. const m___UACCUM_IBIT__ = 16
  1071. const m___UACCUM_MAX__ = "0XFFFFFFFFP-16UK"
  1072. const m___UACCUM_MIN__ = "0.0UK"
  1073. const m___UDA_FBIT__ = 32
  1074. const m___UDA_IBIT__ = 32
  1075. const m___UDQ_FBIT__ = 64
  1076. const m___UDQ_IBIT__ = 0
  1077. const m___UFRACT_EPSILON__ = "0x1P-16UR"
  1078. const m___UFRACT_FBIT__ = 16
  1079. const m___UFRACT_IBIT__ = 0
  1080. const m___UFRACT_MAX__ = "0XFFFFP-16UR"
  1081. const m___UFRACT_MIN__ = "0.0UR"
  1082. const m___UHA_FBIT__ = 8
  1083. const m___UHA_IBIT__ = 8
  1084. const m___UHQ_FBIT__ = 16
  1085. const m___UHQ_IBIT__ = 0
  1086. const m___UINT16_MAX__ = 0xffff
  1087. const m___UINT32_MAX__ = 0xffffffff
  1088. const m___UINT64_MAX__ = "0xffffffffffffffffU"
  1089. const m___UINT8_MAX__ = 0xff
  1090. const m___UINTMAX_MAX__ = "0xffffffffffffffffU"
  1091. const m___UINTPTR_MAX__ = 0xffffffff
  1092. const m___UINT_FAST16_MAX__ = 0xffffffff
  1093. const m___UINT_FAST32_MAX__ = 0xffffffff
  1094. const m___UINT_FAST64_MAX__ = "0xffffffffffffffffU"
  1095. const m___UINT_FAST8_MAX__ = 0xff
  1096. const m___UINT_LEAST16_MAX__ = 0xffff
  1097. const m___UINT_LEAST32_MAX__ = 0xffffffff
  1098. const m___UINT_LEAST64_MAX__ = "0xffffffffffffffffU"
  1099. const m___UINT_LEAST8_MAX__ = 0xff
  1100. const m___ULACCUM_EPSILON__ = "0x1P-32ULK"
  1101. const m___ULACCUM_FBIT__ = 32
  1102. const m___ULACCUM_IBIT__ = 32
  1103. const m___ULACCUM_MAX__ = "0XFFFFFFFFFFFFFFFFP-32ULK"
  1104. const m___ULACCUM_MIN__ = "0.0ULK"
  1105. const m___ULFRACT_EPSILON__ = "0x1P-32ULR"
  1106. const m___ULFRACT_FBIT__ = 32
  1107. const m___ULFRACT_IBIT__ = 0
  1108. const m___ULFRACT_MAX__ = "0XFFFFFFFFP-32ULR"
  1109. const m___ULFRACT_MIN__ = "0.0ULR"
  1110. const m___ULLACCUM_EPSILON__ = "0x1P-32ULLK"
  1111. const m___ULLACCUM_FBIT__ = 32
  1112. const m___ULLACCUM_IBIT__ = 32
  1113. const m___ULLACCUM_MAX__ = "0XFFFFFFFFFFFFFFFFP-32ULLK"
  1114. const m___ULLACCUM_MIN__ = "0.0ULLK"
  1115. const m___ULLFRACT_EPSILON__ = "0x1P-64ULLR"
  1116. const m___ULLFRACT_FBIT__ = 64
  1117. const m___ULLFRACT_IBIT__ = 0
  1118. const m___ULLFRACT_MAX__ = "0XFFFFFFFFFFFFFFFFP-64ULLR"
  1119. const m___ULLFRACT_MIN__ = "0.0ULLR"
  1120. const m___UQQ_FBIT__ = 8
  1121. const m___UQQ_IBIT__ = 0
  1122. const m___USACCUM_EPSILON__ = "0x1P-8UHK"
  1123. const m___USACCUM_FBIT__ = 8
  1124. const m___USACCUM_IBIT__ = 8
  1125. const m___USACCUM_MAX__ = "0XFFFFP-8UHK"
  1126. const m___USACCUM_MIN__ = "0.0UHK"
  1127. const m___USA_FBIT__ = 16
  1128. const m___USA_IBIT__ = 16
  1129. const m___USE_TIME_BITS64 = 1
  1130. const m___USFRACT_EPSILON__ = "0x1P-8UHR"
  1131. const m___USFRACT_FBIT__ = 8
  1132. const m___USFRACT_IBIT__ = 0
  1133. const m___USFRACT_MAX__ = "0XFFP-8UHR"
  1134. const m___USFRACT_MIN__ = "0.0UHR"
  1135. const m___USQ_FBIT__ = 32
  1136. const m___USQ_IBIT__ = 0
  1137. const m___UTA_FBIT__ = 64
  1138. const m___UTA_IBIT__ = 64
  1139. const m___UTQ_FBIT__ = 128
  1140. const m___UTQ_IBIT__ = 0
  1141. const m___VERSION__ = "12.2.0"
  1142. const m___VFP_FP__ = 1
  1143. const m___WCHAR_MAX__ = 0xffffffff
  1144. const m___WCHAR_MIN__ = 0
  1145. const m___WCHAR_WIDTH__ = 32
  1146. const m___WINT_MAX__ = 0xffffffff
  1147. const m___WINT_MIN__ = 0
  1148. const m___WINT_WIDTH__ = 32
  1149. const m___arm__ = 1
  1150. const m___gnu_linux__ = 1
  1151. const m___inline = "inline"
  1152. const m___linux = 1
  1153. const m___linux__ = 1
  1154. const m___restrict = "restrict"
  1155. const m___restrict_arr = "restrict"
  1156. const m___tm_gmtoff = "tm_gmtoff"
  1157. const m___tm_zone = "tm_zone"
  1158. const m___unix = 1
  1159. const m___unix__ = 1
  1160. const m_alloca = "__builtin_alloca"
  1161. const m_linux = 1
  1162. const m_loff_t = "off_t"
  1163. const m_unix = 1
  1164. type t__builtin_va_list = uintptr
  1165. type t__predefined_size_t = uint32
  1166. type t__predefined_wchar_t = uint32
  1167. type t__predefined_ptrdiff_t = int32
  1168. type Tsize_t = uint32
  1169. type Tssize_t = int32
  1170. type Tregister_t = int32
  1171. type Ttime_t = int64
  1172. type Tsuseconds_t = int64
  1173. type Tint8_t = int8
  1174. type Tint16_t = int16
  1175. type Tint32_t = int32
  1176. type Tint64_t = int64
  1177. type Tu_int64_t = uint64
  1178. type Tmode_t = uint32
  1179. type Tnlink_t = uint32
  1180. type Toff_t = int64
  1181. type Tino_t = uint64
  1182. type Tdev_t = uint64
  1183. type Tblksize_t = int32
  1184. type Tblkcnt_t = int64
  1185. type Tfsblkcnt_t = uint64
  1186. type Tfsfilcnt_t = uint64
  1187. type Ttimer_t = uintptr
  1188. type Tclockid_t = int32
  1189. type Tclock_t = int32
  1190. type Tpid_t = int32
  1191. type Tid_t = uint32
  1192. type Tuid_t = uint32
  1193. type Tgid_t = uint32
  1194. type Tkey_t = int32
  1195. type Tuseconds_t = uint32
  1196. type Tpthread_t = uintptr
  1197. type Tpthread_once_t = int32
  1198. type Tpthread_key_t = uint32
  1199. type Tpthread_spinlock_t = int32
  1200. type Tpthread_mutexattr_t = struct {
  1201. F__attr uint32
  1202. }
  1203. type Tpthread_condattr_t = struct {
  1204. F__attr uint32
  1205. }
  1206. type Tpthread_barrierattr_t = struct {
  1207. F__attr uint32
  1208. }
  1209. type Tpthread_rwlockattr_t = struct {
  1210. F__attr [2]uint32
  1211. }
  1212. type Tpthread_attr_t = struct {
  1213. F__u struct {
  1214. F__vi [0][9]int32
  1215. F__s [0][9]uint32
  1216. F__i [9]int32
  1217. }
  1218. }
  1219. type Tpthread_mutex_t = struct {
  1220. F__u struct {
  1221. F__vi [0][6]int32
  1222. F__p [0][6]uintptr
  1223. F__i [6]int32
  1224. }
  1225. F__ccgo_room int32
  1226. }
  1227. type Tpthread_cond_t = struct {
  1228. F__u struct {
  1229. F__vi [0][12]int32
  1230. F__p [0][12]uintptr
  1231. F__i [12]int32
  1232. }
  1233. }
  1234. type Tpthread_rwlock_t = struct {
  1235. F__u struct {
  1236. F__vi [0][8]int32
  1237. F__p [0][8]uintptr
  1238. F__i [8]int32
  1239. }
  1240. }
  1241. type Tpthread_barrier_t = struct {
  1242. F__u struct {
  1243. F__vi [0][5]int32
  1244. F__p [0][5]uintptr
  1245. F__i [5]int32
  1246. }
  1247. }
  1248. type Tu_int8_t = uint8
  1249. type Tu_int16_t = uint16
  1250. type Tu_int32_t = uint32
  1251. type Tcaddr_t = uintptr
  1252. type Tu_char = uint8
  1253. type Tu_short = uint16
  1254. type Tushort = uint16
  1255. type Tu_int = uint32
  1256. type Tuint = uint32
  1257. type Tu_long = uint32
  1258. type Tulong = uint32
  1259. type Tquad_t = int64
  1260. type Tu_quad_t = uint64
  1261. type Tuint16_t = uint16
  1262. type Tuint32_t = uint32
  1263. type Tuint64_t = uint64
  1264. type Ttimeval = struct {
  1265. F__ccgo_align [0]uint32
  1266. Ftv_sec Ttime_t
  1267. Ftv_usec Tsuseconds_t
  1268. }
  1269. type Ttimespec = struct {
  1270. F__ccgo_align [0]uint32
  1271. Ftv_sec Ttime_t
  1272. Ftv_nsec int32
  1273. F__ccgo12 uint32
  1274. }
  1275. type Tsigset_t = struct {
  1276. F__bits [32]uint32
  1277. }
  1278. type t__sigset_t = Tsigset_t
  1279. type Tfd_mask = uint32
  1280. type Tfd_set = struct {
  1281. Ffds_bits [32]uint32
  1282. }
  1283. type Tlocale_t = uintptr
  1284. type Tiovec = struct {
  1285. Fiov_base uintptr
  1286. Fiov_len Tsize_t
  1287. }
  1288. type Tflock = struct {
  1289. F__ccgo_align [0]uint32
  1290. Fl_type int16
  1291. Fl_whence int16
  1292. F__ccgo_align2 [4]byte
  1293. Fl_start Toff_t
  1294. Fl_len Toff_t
  1295. Fl_pid Tpid_t
  1296. F__ccgo_pad5 [4]byte
  1297. }
  1298. type Tfile_handle = struct {
  1299. Fhandle_bytes uint32
  1300. Fhandle_type int32
  1301. }
  1302. type Tf_owner_ex = struct {
  1303. Ftype1 int32
  1304. Fpid Tpid_t
  1305. }
  1306. type Tintptr_t = int32
  1307. type Titimerval = struct {
  1308. F__ccgo_align [0]uint32
  1309. Fit_interval Ttimeval
  1310. Fit_value Ttimeval
  1311. }
  1312. type Ttimezone = struct {
  1313. Ftz_minuteswest int32
  1314. Ftz_dsttime int32
  1315. }
  1316. type Ttm = struct {
  1317. Ftm_sec int32
  1318. Ftm_min int32
  1319. Ftm_hour int32
  1320. Ftm_mday int32
  1321. Ftm_mon int32
  1322. Ftm_year int32
  1323. Ftm_wday int32
  1324. Ftm_yday int32
  1325. Ftm_isdst int32
  1326. Ftm_gmtoff int32
  1327. Ftm_zone uintptr
  1328. }
  1329. type Titimerspec = struct {
  1330. F__ccgo_align [0]uint32
  1331. Fit_interval Ttimespec
  1332. Fit_value Ttimespec
  1333. }
  1334. type TXID = uint32
  1335. type TMask = uint32
  1336. type TAtom = uint32
  1337. type TVisualID = uint32
  1338. type TTime = uint32
  1339. type TWindow = uint32
  1340. type TDrawable = uint32
  1341. type TFont = uint32
  1342. type TPixmap = uint32
  1343. type TCursor = uint32
  1344. type TColormap = uint32
  1345. type TGContext = uint32
  1346. type TKeySym = uint32
  1347. type TKeyCode = uint8
  1348. type TINT32 = int32
  1349. type TINT16 = int16
  1350. type TINT8 = int8
  1351. type TCARD64 = uint64
  1352. type TCARD32 = uint32
  1353. type TCARD16 = uint16
  1354. type TCARD8 = uint8
  1355. type TBITS32 = uint32
  1356. type TBITS16 = uint16
  1357. type TBYTE = uint8
  1358. type TBOOL = uint8
  1359. type TxdmOpCode = int32
  1360. const _BROADCAST_QUERY = 1
  1361. const _QUERY = 2
  1362. const _INDIRECT_QUERY = 3
  1363. const _FORWARD_QUERY = 4
  1364. const _WILLING = 5
  1365. const _UNWILLING = 6
  1366. const _REQUEST = 7
  1367. const _ACCEPT = 8
  1368. const _DECLINE = 9
  1369. const _MANAGE = 10
  1370. const _REFUSE = 11
  1371. const _FAILED = 12
  1372. const _KEEPALIVE = 13
  1373. const _ALIVE = 14
  1374. type Txdmcp_states = int32
  1375. const _XDM_QUERY = 0
  1376. const _XDM_BROADCAST = 1
  1377. const _XDM_INDIRECT = 2
  1378. const _XDM_COLLECT_QUERY = 3
  1379. const _XDM_COLLECT_BROADCAST_QUERY = 4
  1380. const _XDM_COLLECT_INDIRECT_QUERY = 5
  1381. const _XDM_START_CONNECTION = 6
  1382. const _XDM_AWAIT_REQUEST_RESPONSE = 7
  1383. const _XDM_AWAIT_MANAGE_RESPONSE = 8
  1384. const _XDM_MANAGE = 9
  1385. const _XDM_RUN_SESSION = 10
  1386. const _XDM_OFF = 11
  1387. const _XDM_AWAIT_USER_INPUT = 12
  1388. const _XDM_KEEPALIVE = 13
  1389. const _XDM_AWAIT_ALIVE_RESPONSE = 14
  1390. const _XDM_KEEP_ME_LAST = 15
  1391. type TCARD8Ptr = uintptr
  1392. type TCARD16Ptr = uintptr
  1393. type TCARD32Ptr = uintptr
  1394. type TARRAY8 = struct {
  1395. Flength TCARD16
  1396. Fdata TCARD8Ptr
  1397. }
  1398. type T_ARRAY8 = TARRAY8
  1399. type TARRAY8Ptr = uintptr
  1400. type TARRAY16 = struct {
  1401. Flength TCARD8
  1402. Fdata TCARD16Ptr
  1403. }
  1404. type T_ARRAY16 = TARRAY16
  1405. type TARRAY16Ptr = uintptr
  1406. type TARRAY32 = struct {
  1407. Flength TCARD8
  1408. Fdata TCARD32Ptr
  1409. }
  1410. type T_ARRAY32 = TARRAY32
  1411. type TARRAY32Ptr = uintptr
  1412. type TARRAYofARRAY8 = struct {
  1413. Flength TCARD8
  1414. Fdata TARRAY8Ptr
  1415. }
  1416. type T_ARRAYofARRAY8 = TARRAYofARRAY8
  1417. type TARRAYofARRAY8Ptr = uintptr
  1418. type TXdmcpHeader = struct {
  1419. Fversion TCARD16
  1420. Fopcode TCARD16
  1421. Flength TCARD16
  1422. }
  1423. type T_XdmcpHeader = TXdmcpHeader
  1424. type TXdmcpHeaderPtr = uintptr
  1425. type TXdmcpBuffer = struct {
  1426. Fdata uintptr
  1427. Fsize int32
  1428. Fpointer int32
  1429. Fcount int32
  1430. }
  1431. type T_XdmcpBuffer = TXdmcpBuffer
  1432. type TXdmcpBufferPtr = uintptr
  1433. type TXdmAuthKeyRec = struct {
  1434. Fdata [8]TBYTE
  1435. }
  1436. type T_XdmAuthKey = TXdmAuthKeyRec
  1437. type TXdmAuthKeyPtr = uintptr
  1438. type TXdmcpNetaddr = uintptr
  1439. type Tuintptr_t = uint32
  1440. type Tintmax_t = int64
  1441. type Tuint8_t = uint8
  1442. type Tuintmax_t = uint64
  1443. type Tint_fast8_t = int8
  1444. type Tint_fast64_t = int64
  1445. type Tint_least8_t = int8
  1446. type Tint_least16_t = int16
  1447. type Tint_least32_t = int32
  1448. type Tint_least64_t = int64
  1449. type Tuint_fast8_t = uint8
  1450. type Tuint_fast64_t = uint64
  1451. type Tuint_least8_t = uint8
  1452. type Tuint_least16_t = uint16
  1453. type Tuint_least32_t = uint32
  1454. type Tuint_least64_t = uint64
  1455. type Tint_fast16_t = int32
  1456. type Tint_fast32_t = int32
  1457. type Tuint_fast16_t = uint32
  1458. type Tuint_fast32_t = uint32
  1459. type Twchar_t = uint32
  1460. type Tdiv_t = struct {
  1461. Fquot int32
  1462. Frem int32
  1463. }
  1464. type Tldiv_t = struct {
  1465. Fquot int32
  1466. Frem int32
  1467. }
  1468. type Tlldiv_t = struct {
  1469. F__ccgo_align [0]uint32
  1470. Fquot int64
  1471. Frem int64
  1472. }
  1473. // C documentation
  1474. //
  1475. // /*
  1476. // * This variant of malloc does not return NULL if zero size is passed into.
  1477. // */
  1478. func _xmalloc(tls *libc.TLS, size Tsize_t) (r uintptr) {
  1479. var v1 uint32
  1480. _ = v1
  1481. if size != 0 {
  1482. v1 = size
  1483. } else {
  1484. v1 = uint32(1)
  1485. }
  1486. return libc.Xmalloc(tls, v1)
  1487. }
  1488. // C documentation
  1489. //
  1490. // /*
  1491. // * This variant of calloc does not return NULL if zero count is passed into.
  1492. // */
  1493. func _xcalloc(tls *libc.TLS, n Tsize_t, size Tsize_t) (r uintptr) {
  1494. var v1 uint32
  1495. _ = v1
  1496. if n != 0 {
  1497. v1 = n
  1498. } else {
  1499. v1 = uint32(1)
  1500. }
  1501. return libc.Xcalloc(tls, v1, size)
  1502. }
  1503. // C documentation
  1504. //
  1505. // /*
  1506. // * This variant of realloc does not return NULL if zero size is passed into
  1507. // */
  1508. func _xrealloc(tls *libc.TLS, ptr uintptr, size Tsize_t) (r uintptr) {
  1509. var v1 uint32
  1510. _ = v1
  1511. if size != 0 {
  1512. v1 = size
  1513. } else {
  1514. v1 = uint32(1)
  1515. }
  1516. return libc.Xrealloc(tls, ptr, v1)
  1517. }
  1518. func XXdmcpAllocARRAY8(tls *libc.TLS, array TARRAY8Ptr, length int32) (r int32) {
  1519. /* length defined in ARRAY8 struct is a CARD16 (not CARD8 like the rest) */
  1520. if length > int32(m_UINT16_MAX) || length < 0 {
  1521. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1522. } else {
  1523. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = _xmalloc(tls, libc.Uint32FromInt32(length)*uint32(1))
  1524. }
  1525. if (*T_ARRAY8)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
  1526. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = uint16(0)
  1527. return m_FALSE
  1528. }
  1529. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint16FromInt32(length)
  1530. return int32(m_TRUE)
  1531. }
  1532. func XXdmcpAllocARRAY16(tls *libc.TLS, array TARRAY16Ptr, length int32) (r int32) {
  1533. /* length defined in ARRAY16 struct is a CARD8 */
  1534. if length > int32(m_UINT8_MAX) || length < 0 {
  1535. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1536. } else {
  1537. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = _xmalloc(tls, libc.Uint32FromInt32(length)*uint32(2))
  1538. }
  1539. if (*T_ARRAY16)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
  1540. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = uint8(0)
  1541. return m_FALSE
  1542. }
  1543. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1544. return int32(m_TRUE)
  1545. }
  1546. func XXdmcpAllocARRAY32(tls *libc.TLS, array TARRAY32Ptr, length int32) (r int32) {
  1547. /* length defined in ARRAY32 struct is a CARD8 */
  1548. if length > int32(m_UINT8_MAX) || length < 0 {
  1549. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1550. } else {
  1551. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = _xmalloc(tls, libc.Uint32FromInt32(length)*uint32(4))
  1552. }
  1553. if (*T_ARRAY32)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
  1554. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = uint8(0)
  1555. return m_FALSE
  1556. }
  1557. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1558. return int32(m_TRUE)
  1559. }
  1560. func XXdmcpAllocARRAYofARRAY8(tls *libc.TLS, array TARRAYofARRAY8Ptr, length int32) (r int32) {
  1561. /* length defined in ARRAYofARRAY8 struct is a CARD8 */
  1562. if length > int32(m_UINT8_MAX) || length < 0 {
  1563. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1564. } else {
  1565. /*
  1566. * Use calloc to ensure the pointers are cleared out so we
  1567. * don't try to free garbage if XdmcpDisposeARRAYofARRAY8()
  1568. * is called before the caller sets them to valid pointers.
  1569. */
  1570. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = _xcalloc(tls, libc.Uint32FromInt32(length), uint32(8))
  1571. }
  1572. if (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata == libc.UintptrFromInt32(0) {
  1573. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = uint8(0)
  1574. return m_FALSE
  1575. }
  1576. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1577. return int32(m_TRUE)
  1578. }
  1579. func XXdmcpARRAY8Equal(tls *libc.TLS, array1 TARRAY8Ptr, array2 TARRAY8Ptr) (r int32) {
  1580. if libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array1)).Flength) != libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array2)).Flength) {
  1581. return m_FALSE
  1582. }
  1583. if libc.Xmemcmp(tls, (*T_ARRAY8)(unsafe.Pointer(array1)).Fdata, (*T_ARRAY8)(unsafe.Pointer(array2)).Fdata, uint32((*T_ARRAY8)(unsafe.Pointer(array1)).Flength)) != 0 {
  1584. return m_FALSE
  1585. }
  1586. return int32(m_TRUE)
  1587. }
  1588. func XXdmcpCopyARRAY8(tls *libc.TLS, src TARRAY8Ptr, dst TARRAY8Ptr) (r int32) {
  1589. if !(XXdmcpAllocARRAY8(tls, dst, libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(src)).Flength)) != 0) {
  1590. return m_FALSE
  1591. }
  1592. libc.Xmemmove(tls, (*T_ARRAY8)(unsafe.Pointer(dst)).Fdata, (*T_ARRAY8)(unsafe.Pointer(src)).Fdata, uint32((*T_ARRAY8)(unsafe.Pointer(src)).Flength)*uint32(1))
  1593. return int32(m_TRUE)
  1594. }
  1595. func XXdmcpReallocARRAY8(tls *libc.TLS, array TARRAY8Ptr, length int32) (r int32) {
  1596. var newData TCARD8Ptr
  1597. _ = newData
  1598. /* length defined in ARRAY8 struct is a CARD16 (not CARD8 like the rest) */
  1599. if length > int32(m_UINT16_MAX) || length < 0 {
  1600. return m_FALSE
  1601. }
  1602. newData = _xrealloc(tls, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata, libc.Uint32FromInt32(length)*uint32(1))
  1603. if !(newData != 0) {
  1604. return m_FALSE
  1605. }
  1606. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint16FromInt32(length)
  1607. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = newData
  1608. return int32(m_TRUE)
  1609. }
  1610. func XXdmcpReallocARRAYofARRAY8(tls *libc.TLS, array TARRAYofARRAY8Ptr, length int32) (r int32) {
  1611. var newData TARRAY8Ptr
  1612. _ = newData
  1613. /* length defined in ARRAYofARRAY8 struct is a CARD8 */
  1614. if length > int32(m_UINT8_MAX) || length < 0 {
  1615. return m_FALSE
  1616. }
  1617. newData = _xrealloc(tls, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata, libc.Uint32FromInt32(length)*uint32(8))
  1618. if !(newData != 0) {
  1619. return m_FALSE
  1620. }
  1621. if length > libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength) {
  1622. libc.Xmemset(tls, newData+uintptr((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)*8, 0, libc.Uint32FromInt32(length-libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength))*uint32(8))
  1623. }
  1624. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1625. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = newData
  1626. return int32(m_TRUE)
  1627. }
  1628. func XXdmcpReallocARRAY16(tls *libc.TLS, array TARRAY16Ptr, length int32) (r int32) {
  1629. var newData TCARD16Ptr
  1630. _ = newData
  1631. /* length defined in ARRAY16 struct is a CARD8 */
  1632. if length > int32(m_UINT8_MAX) || length < 0 {
  1633. return m_FALSE
  1634. }
  1635. newData = _xrealloc(tls, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata, libc.Uint32FromInt32(length)*uint32(2))
  1636. if !(newData != 0) {
  1637. return m_FALSE
  1638. }
  1639. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1640. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = newData
  1641. return int32(m_TRUE)
  1642. }
  1643. func XXdmcpReallocARRAY32(tls *libc.TLS, array TARRAY32Ptr, length int32) (r int32) {
  1644. var newData TCARD32Ptr
  1645. _ = newData
  1646. /* length defined in ARRAY32 struct is a CARD8 */
  1647. if length > int32(m_UINT8_MAX) || length < 0 {
  1648. return m_FALSE
  1649. }
  1650. newData = _xrealloc(tls, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata, libc.Uint32FromInt32(length)*uint32(4))
  1651. if !(newData != 0) {
  1652. return m_FALSE
  1653. }
  1654. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = libc.Uint8FromInt32(length)
  1655. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = newData
  1656. return int32(m_TRUE)
  1657. }
  1658. func XXdmcpDisposeARRAY8(tls *libc.TLS, array TARRAY8Ptr) {
  1659. libc.Xfree(tls, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata)
  1660. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = uint16(0)
  1661. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1662. }
  1663. func XXdmcpDisposeARRAY16(tls *libc.TLS, array TARRAY16Ptr) {
  1664. libc.Xfree(tls, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata)
  1665. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = uint8(0)
  1666. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1667. }
  1668. func XXdmcpDisposeARRAY32(tls *libc.TLS, array TARRAY32Ptr) {
  1669. libc.Xfree(tls, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata)
  1670. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = uint8(0)
  1671. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1672. }
  1673. func XXdmcpDisposeARRAYofARRAY8(tls *libc.TLS, array TARRAYofARRAY8Ptr) {
  1674. var i int32
  1675. _ = i
  1676. if (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata != libc.UintptrFromInt32(0) {
  1677. i = 0
  1678. for {
  1679. if !(i < libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) {
  1680. break
  1681. }
  1682. XXdmcpDisposeARRAY8(tls, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)*8)
  1683. goto _1
  1684. _1:
  1685. ;
  1686. i++
  1687. }
  1688. libc.Xfree(tls, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata)
  1689. }
  1690. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = uint8(0)
  1691. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  1692. }
  1693. const m_AF_ALG = "PF_ALG"
  1694. const m_AF_APPLETALK = "PF_APPLETALK"
  1695. const m_AF_ASH = "PF_ASH"
  1696. const m_AF_ATMPVC = "PF_ATMPVC"
  1697. const m_AF_ATMSVC = "PF_ATMSVC"
  1698. const m_AF_AX25 = "PF_AX25"
  1699. const m_AF_BLUETOOTH = "PF_BLUETOOTH"
  1700. const m_AF_BRIDGE = "PF_BRIDGE"
  1701. const m_AF_CAIF = "PF_CAIF"
  1702. const m_AF_CAN = "PF_CAN"
  1703. const m_AF_DECnet = "PF_DECnet"
  1704. const m_AF_ECONET = "PF_ECONET"
  1705. const m_AF_FILE = "AF_LOCAL"
  1706. const m_AF_IB = "PF_IB"
  1707. const m_AF_IEEE802154 = "PF_IEEE802154"
  1708. const m_AF_INET = "PF_INET"
  1709. const m_AF_INET6 = "PF_INET6"
  1710. const m_AF_IPX = "PF_IPX"
  1711. const m_AF_IRDA = "PF_IRDA"
  1712. const m_AF_ISDN = "PF_ISDN"
  1713. const m_AF_IUCV = "PF_IUCV"
  1714. const m_AF_KCM = "PF_KCM"
  1715. const m_AF_KEY = "PF_KEY"
  1716. const m_AF_LLC = "PF_LLC"
  1717. const m_AF_LOCAL = "PF_LOCAL"
  1718. const m_AF_MAX = "PF_MAX"
  1719. const m_AF_MPLS = "PF_MPLS"
  1720. const m_AF_NETBEUI = "PF_NETBEUI"
  1721. const m_AF_NETLINK = "PF_NETLINK"
  1722. const m_AF_NETROM = "PF_NETROM"
  1723. const m_AF_NFC = "PF_NFC"
  1724. const m_AF_PACKET = "PF_PACKET"
  1725. const m_AF_PHONET = "PF_PHONET"
  1726. const m_AF_PPPOX = "PF_PPPOX"
  1727. const m_AF_QIPCRTR = "PF_QIPCRTR"
  1728. const m_AF_RDS = "PF_RDS"
  1729. const m_AF_ROSE = "PF_ROSE"
  1730. const m_AF_ROUTE = "PF_ROUTE"
  1731. const m_AF_RXRPC = "PF_RXRPC"
  1732. const m_AF_SECURITY = "PF_SECURITY"
  1733. const m_AF_SMC = "PF_SMC"
  1734. const m_AF_SNA = "PF_SNA"
  1735. const m_AF_TIPC = "PF_TIPC"
  1736. const m_AF_UNIX = "AF_LOCAL"
  1737. const m_AF_UNSPEC = "PF_UNSPEC"
  1738. const m_AF_VSOCK = "PF_VSOCK"
  1739. const m_AF_WANPIPE = "PF_WANPIPE"
  1740. const m_AF_X25 = "PF_X25"
  1741. const m_AF_XDP = "PF_XDP"
  1742. const m_MSG_BATCH = 0x40000
  1743. const m_MSG_CMSG_CLOEXEC = 0x40000000
  1744. const m_MSG_CONFIRM = 0x0800
  1745. const m_MSG_CTRUNC = 0x0008
  1746. const m_MSG_DONTROUTE = 0x0004
  1747. const m_MSG_DONTWAIT = 0x0040
  1748. const m_MSG_EOR = 0x0080
  1749. const m_MSG_ERRQUEUE = 0x2000
  1750. const m_MSG_FASTOPEN = 0x20000000
  1751. const m_MSG_FIN = 0x0200
  1752. const m_MSG_MORE = 0x8000
  1753. const m_MSG_NOSIGNAL = 0x4000
  1754. const m_MSG_OOB = 0x0001
  1755. const m_MSG_PEEK = 0x0002
  1756. const m_MSG_PROXY = 0x0010
  1757. const m_MSG_RST = 0x1000
  1758. const m_MSG_SYN = 0x0400
  1759. const m_MSG_TRUNC = 0x0020
  1760. const m_MSG_WAITALL = 0x0100
  1761. const m_MSG_WAITFORONE = 0x10000
  1762. const m_MSG_ZEROCOPY = 0x4000000
  1763. const m_PF_ALG = 38
  1764. const m_PF_APPLETALK = 5
  1765. const m_PF_ASH = 18
  1766. const m_PF_ATMPVC = 8
  1767. const m_PF_ATMSVC = 20
  1768. const m_PF_AX25 = 3
  1769. const m_PF_BLUETOOTH = 31
  1770. const m_PF_BRIDGE = 7
  1771. const m_PF_CAIF = 37
  1772. const m_PF_CAN = 29
  1773. const m_PF_DECnet = 12
  1774. const m_PF_ECONET = 19
  1775. const m_PF_FILE = "PF_LOCAL"
  1776. const m_PF_IB = 27
  1777. const m_PF_IEEE802154 = 36
  1778. const m_PF_INET = 2
  1779. const m_PF_INET6 = 10
  1780. const m_PF_IPX = 4
  1781. const m_PF_IRDA = 23
  1782. const m_PF_ISDN = 34
  1783. const m_PF_IUCV = 32
  1784. const m_PF_KCM = 41
  1785. const m_PF_KEY = 15
  1786. const m_PF_LLC = 26
  1787. const m_PF_LOCAL = 1
  1788. const m_PF_MAX = 45
  1789. const m_PF_MPLS = 28
  1790. const m_PF_NETBEUI = 13
  1791. const m_PF_NETLINK = 16
  1792. const m_PF_NETROM = 6
  1793. const m_PF_NFC = 39
  1794. const m_PF_PACKET = 17
  1795. const m_PF_PHONET = 35
  1796. const m_PF_PPPOX = 24
  1797. const m_PF_QIPCRTR = 42
  1798. const m_PF_RDS = 21
  1799. const m_PF_ROSE = 11
  1800. const m_PF_ROUTE = "PF_NETLINK"
  1801. const m_PF_RXRPC = 33
  1802. const m_PF_SECURITY = 14
  1803. const m_PF_SMC = 43
  1804. const m_PF_SNA = 22
  1805. const m_PF_TIPC = 30
  1806. const m_PF_UNIX = "PF_LOCAL"
  1807. const m_PF_UNSPEC = 0
  1808. const m_PF_VSOCK = 40
  1809. const m_PF_WANPIPE = 25
  1810. const m_PF_X25 = 9
  1811. const m_PF_XDP = 44
  1812. const m_SCM_CREDENTIALS = 0x02
  1813. const m_SCM_RIGHTS = 0x01
  1814. const m_SCM_TIMESTAMP = "SO_TIMESTAMP"
  1815. const m_SCM_TIMESTAMPING = "SO_TIMESTAMPING"
  1816. const m_SCM_TIMESTAMPING_OPT_STATS = 54
  1817. const m_SCM_TIMESTAMPING_PKTINFO = 58
  1818. const m_SCM_TIMESTAMPNS = "SO_TIMESTAMPNS"
  1819. const m_SCM_TXTIME = "SO_TXTIME"
  1820. const m_SCM_WIFI_STATUS = "SO_WIFI_STATUS"
  1821. const m_SHUT_RD = 0
  1822. const m_SHUT_RDWR = 2
  1823. const m_SHUT_WR = 1
  1824. const m_SOCK_CLOEXEC = 02000000
  1825. const m_SOCK_DCCP = 6
  1826. const m_SOCK_DGRAM = 2
  1827. const m_SOCK_NONBLOCK = 04000
  1828. const m_SOCK_PACKET = 10
  1829. const m_SOCK_RAW = 3
  1830. const m_SOCK_RDM = 4
  1831. const m_SOCK_SEQPACKET = 5
  1832. const m_SOCK_STREAM = 1
  1833. const m_SOL_AAL = 265
  1834. const m_SOL_ALG = 279
  1835. const m_SOL_ATM = 264
  1836. const m_SOL_BLUETOOTH = 274
  1837. const m_SOL_CAIF = 278
  1838. const m_SOL_DCCP = 269
  1839. const m_SOL_DECNET = 261
  1840. const m_SOL_ICMPV6 = 58
  1841. const m_SOL_IP = 0
  1842. const m_SOL_IPV6 = 41
  1843. const m_SOL_IRDA = 266
  1844. const m_SOL_IUCV = 277
  1845. const m_SOL_KCM = 281
  1846. const m_SOL_LLC = 268
  1847. const m_SOL_NETBEUI = 267
  1848. const m_SOL_NETLINK = 270
  1849. const m_SOL_NFC = 280
  1850. const m_SOL_PACKET = 263
  1851. const m_SOL_PNPIPE = 275
  1852. const m_SOL_PPPOL2TP = 273
  1853. const m_SOL_RAW = 255
  1854. const m_SOL_RDS = 276
  1855. const m_SOL_RXRPC = 272
  1856. const m_SOL_SOCKET = 1
  1857. const m_SOL_TIPC = 271
  1858. const m_SOL_TLS = 282
  1859. const m_SOL_X25 = 262
  1860. const m_SOL_XDP = 283
  1861. const m_SOMAXCONN = 128
  1862. const m_SO_ACCEPTCONN = 30
  1863. const m_SO_ATTACH_BPF = 50
  1864. const m_SO_ATTACH_FILTER = 26
  1865. const m_SO_ATTACH_REUSEPORT_CBPF = 51
  1866. const m_SO_ATTACH_REUSEPORT_EBPF = 52
  1867. const m_SO_BINDTODEVICE = 25
  1868. const m_SO_BINDTOIFINDEX = 62
  1869. const m_SO_BPF_EXTENSIONS = 48
  1870. const m_SO_BROADCAST = 6
  1871. const m_SO_BSDCOMPAT = 14
  1872. const m_SO_BUSY_POLL = 46
  1873. const m_SO_BUSY_POLL_BUDGET = 70
  1874. const m_SO_CNX_ADVICE = 53
  1875. const m_SO_COOKIE = 57
  1876. const m_SO_DEBUG = 1
  1877. const m_SO_DETACH_BPF = "SO_DETACH_FILTER"
  1878. const m_SO_DETACH_FILTER = 27
  1879. const m_SO_DETACH_REUSEPORT_BPF = 68
  1880. const m_SO_DOMAIN = 39
  1881. const m_SO_DONTROUTE = 5
  1882. const m_SO_ERROR = 4
  1883. const m_SO_GET_FILTER = "SO_ATTACH_FILTER"
  1884. const m_SO_INCOMING_CPU = 49
  1885. const m_SO_INCOMING_NAPI_ID = 56
  1886. const m_SO_KEEPALIVE = 9
  1887. const m_SO_LINGER = 13
  1888. const m_SO_LOCK_FILTER = 44
  1889. const m_SO_MARK = 36
  1890. const m_SO_MAX_PACING_RATE = 47
  1891. const m_SO_MEMINFO = 55
  1892. const m_SO_NOFCS = 43
  1893. const m_SO_NO_CHECK = 11
  1894. const m_SO_OOBINLINE = 10
  1895. const m_SO_PASSCRED = 16
  1896. const m_SO_PASSSEC = 34
  1897. const m_SO_PEEK_OFF = 42
  1898. const m_SO_PEERCRED = 17
  1899. const m_SO_PEERGROUPS = 59
  1900. const m_SO_PEERNAME = 28
  1901. const m_SO_PEERSEC = 31
  1902. const m_SO_PREFER_BUSY_POLL = 69
  1903. const m_SO_PRIORITY = 12
  1904. const m_SO_PROTOCOL = 38
  1905. const m_SO_RCVBUF = 8
  1906. const m_SO_RCVBUFFORCE = 33
  1907. const m_SO_RCVLOWAT = 18
  1908. const m_SO_RCVTIMEO = 66
  1909. const m_SO_REUSEADDR = 2
  1910. const m_SO_REUSEPORT = 15
  1911. const m_SO_RXQ_OVFL = 40
  1912. const m_SO_SECURITY_AUTHENTICATION = 22
  1913. const m_SO_SECURITY_ENCRYPTION_NETWORK = 24
  1914. const m_SO_SECURITY_ENCRYPTION_TRANSPORT = 23
  1915. const m_SO_SELECT_ERR_QUEUE = 45
  1916. const m_SO_SNDBUF = 7
  1917. const m_SO_SNDBUFFORCE = 32
  1918. const m_SO_SNDLOWAT = 19
  1919. const m_SO_SNDTIMEO = 67
  1920. const m_SO_TIMESTAMP = 63
  1921. const m_SO_TIMESTAMPING = 65
  1922. const m_SO_TIMESTAMPNS = 64
  1923. const m_SO_TXTIME = 61
  1924. const m_SO_TYPE = 3
  1925. const m_SO_WIFI_STATUS = 41
  1926. const m_SO_ZEROCOPY = 60
  1927. type Tsocklen_t = uint32
  1928. type Tsa_family_t = uint16
  1929. type Tmsghdr = struct {
  1930. Fmsg_name uintptr
  1931. Fmsg_namelen Tsocklen_t
  1932. Fmsg_iov uintptr
  1933. Fmsg_iovlen int32
  1934. Fmsg_control uintptr
  1935. Fmsg_controllen Tsocklen_t
  1936. Fmsg_flags int32
  1937. }
  1938. type Tcmsghdr = struct {
  1939. Fcmsg_len Tsocklen_t
  1940. Fcmsg_level int32
  1941. Fcmsg_type int32
  1942. }
  1943. type Tucred = struct {
  1944. Fpid Tpid_t
  1945. Fuid Tuid_t
  1946. Fgid Tgid_t
  1947. }
  1948. type Tmmsghdr = struct {
  1949. Fmsg_hdr Tmsghdr
  1950. Fmsg_len uint32
  1951. }
  1952. type Tlinger = struct {
  1953. Fl_onoff int32
  1954. Fl_linger int32
  1955. }
  1956. type Tsockaddr = struct {
  1957. Fsa_family Tsa_family_t
  1958. Fsa_data [14]uint8
  1959. }
  1960. type Tsockaddr_storage = struct {
  1961. Fss_family Tsa_family_t
  1962. F__ss_padding [122]uint8
  1963. F__ss_align uint32
  1964. }
  1965. func XXdmcpFill(tls *libc.TLS, fd int32, buffer TXdmcpBufferPtr, from TXdmcpNetaddr, fromlen uintptr) (r int32) {
  1966. var newBuf uintptr
  1967. _ = newBuf
  1968. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize < int32(m_XDM_MAX_MSGLEN) {
  1969. newBuf = libc.Xmalloc(tls, uint32(m_XDM_MAX_MSGLEN))
  1970. if newBuf != 0 {
  1971. libc.Xfree(tls, (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata)
  1972. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata = newBuf
  1973. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize = int32(m_XDM_MAX_MSGLEN)
  1974. }
  1975. }
  1976. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer = 0
  1977. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount = libc.Xrecvfrom(tls, fd, (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata, libc.Uint32FromInt32((*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize), 0, from, fromlen)
  1978. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount < int32(6) {
  1979. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount = 0
  1980. return m_FALSE
  1981. }
  1982. return int32(m_TRUE)
  1983. }
  1984. func XXdmcpFlush(tls *libc.TLS, fd int32, buffer TXdmcpBufferPtr, to TXdmcpNetaddr, tolen int32) (r int32) {
  1985. var result int32
  1986. _ = result
  1987. result = libc.Xsendto(tls, fd, (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata, libc.Uint32FromInt32((*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer), 0, to, libc.Uint32FromInt32(tolen))
  1988. if result != (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer {
  1989. return m_FALSE
  1990. }
  1991. return int32(m_TRUE)
  1992. }
  1993. const m_Time_t = "time_t"
  1994. const m_random = "lrand48"
  1995. const m_srandom = "srand48"
  1996. func XXdmcpGenerateKey(tls *libc.TLS, key TXdmAuthKeyPtr) {
  1997. libbsd.Xarc4random_buf(tls, key, libc.Uint32FromInt32(8))
  1998. }
  1999. func XXdmcpCompareKeys(tls *libc.TLS, a TXdmAuthKeyPtr, b TXdmAuthKeyPtr) (r int32) {
  2000. var i int32
  2001. _ = i
  2002. i = 0
  2003. for {
  2004. if !(i < int32(8)) {
  2005. break
  2006. }
  2007. if libc.Int32FromUint8(*(*TBYTE)(unsafe.Pointer(a + uintptr(i)))) != libc.Int32FromUint8(*(*TBYTE)(unsafe.Pointer(b + uintptr(i)))) {
  2008. return m_FALSE
  2009. }
  2010. goto _1
  2011. _1:
  2012. ;
  2013. i++
  2014. }
  2015. return int32(m_TRUE)
  2016. }
  2017. func XXdmcpIncrementKey(tls *libc.TLS, key TXdmAuthKeyPtr) {
  2018. var i, v3 int32
  2019. var v1 TBYTE
  2020. var v2 uintptr
  2021. _, _, _, _ = i, v1, v2, v3
  2022. i = int32(7)
  2023. for {
  2024. v2 = key + uintptr(i)
  2025. *(*TBYTE)(unsafe.Pointer(v2))++
  2026. v1 = *(*TBYTE)(unsafe.Pointer(v2))
  2027. if !(libc.Int32FromUint8(v1) == 0) {
  2028. break
  2029. }
  2030. i--
  2031. v3 = i
  2032. if v3 < 0 {
  2033. break
  2034. }
  2035. }
  2036. }
  2037. func XXdmcpDecrementKey(tls *libc.TLS, key TXdmAuthKeyPtr) {
  2038. var i, v3 int32
  2039. var v1 TBYTE
  2040. var v2 uintptr
  2041. _, _, _, _ = i, v1, v2, v3
  2042. i = int32(7)
  2043. for {
  2044. v2 = key + uintptr(i)
  2045. v1 = *(*TBYTE)(unsafe.Pointer(v2))
  2046. *(*TBYTE)(unsafe.Pointer(v2))--
  2047. if !(libc.Int32FromUint8(v1) == 0) {
  2048. break
  2049. }
  2050. i--
  2051. v3 = i
  2052. if v3 < 0 {
  2053. break
  2054. }
  2055. }
  2056. }
  2057. func XXdmcpReadHeader(tls *libc.TLS, buffer TXdmcpBufferPtr, header TXdmcpHeaderPtr) (r int32) {
  2058. if XXdmcpReadCARD16(tls, buffer, header) != 0 && XXdmcpReadCARD16(tls, buffer, header+2) != 0 && XXdmcpReadCARD16(tls, buffer, header+4) != 0 {
  2059. return int32(m_TRUE)
  2060. }
  2061. return m_FALSE
  2062. }
  2063. func XXdmcpReadRemaining(tls *libc.TLS, buffer TXdmcpBufferPtr) (r int32) {
  2064. return (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount - (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer
  2065. }
  2066. func XXdmcpReadARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY8Ptr) (r int32) {
  2067. var i int32
  2068. _ = i
  2069. /*
  2070. * When returning FALSE, guarantee that array->data = 0.
  2071. * This allows the user to safely call XdmcpDisposeARRAY8(array)
  2072. * regardless of the return value below.
  2073. * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
  2074. * so we must guarantee that array->data is NULL or a malloced pointer.
  2075. */
  2076. if !(XXdmcpReadCARD16(tls, buffer, array) != 0) {
  2077. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2078. return m_FALSE
  2079. }
  2080. if !((*T_ARRAY8)(unsafe.Pointer(array)).Flength != 0) {
  2081. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2082. return int32(m_TRUE)
  2083. }
  2084. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint32((*T_ARRAY8)(unsafe.Pointer(array)).Flength)*uint32(1))
  2085. if !((*T_ARRAY8)(unsafe.Pointer(array)).Fdata != 0) {
  2086. return m_FALSE
  2087. }
  2088. i = 0
  2089. for {
  2090. if !(i < libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array)).Flength)) {
  2091. break
  2092. }
  2093. if !(XXdmcpReadCARD8(tls, buffer, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)) != 0) {
  2094. libc.Xfree(tls, (*T_ARRAY8)(unsafe.Pointer(array)).Fdata)
  2095. (*T_ARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2096. (*T_ARRAY8)(unsafe.Pointer(array)).Flength = uint16(0)
  2097. return m_FALSE
  2098. }
  2099. goto _1
  2100. _1:
  2101. ;
  2102. i++
  2103. }
  2104. return int32(m_TRUE)
  2105. }
  2106. func XXdmcpReadARRAY16(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY16Ptr) (r int32) {
  2107. var i int32
  2108. _ = i
  2109. /*
  2110. * When returning FALSE, guarantee that array->data = 0.
  2111. * This allows the user to safely call XdmcpDisposeARRAY16(array)
  2112. * regardless of the return value below.
  2113. * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
  2114. * so we must guarantee that array->data is NULL or a malloced pointer.
  2115. */
  2116. if !(XXdmcpReadCARD8(tls, buffer, array) != 0) {
  2117. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2118. return m_FALSE
  2119. }
  2120. if !((*T_ARRAY16)(unsafe.Pointer(array)).Flength != 0) {
  2121. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2122. return int32(m_TRUE)
  2123. }
  2124. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint32((*T_ARRAY16)(unsafe.Pointer(array)).Flength)*uint32(2))
  2125. if !((*T_ARRAY16)(unsafe.Pointer(array)).Fdata != 0) {
  2126. return m_FALSE
  2127. }
  2128. i = 0
  2129. for {
  2130. if !(i < libc.Int32FromUint8((*T_ARRAY16)(unsafe.Pointer(array)).Flength)) {
  2131. break
  2132. }
  2133. if !(XXdmcpReadCARD16(tls, buffer, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata+uintptr(i)*2) != 0) {
  2134. libc.Xfree(tls, (*T_ARRAY16)(unsafe.Pointer(array)).Fdata)
  2135. (*T_ARRAY16)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2136. (*T_ARRAY16)(unsafe.Pointer(array)).Flength = uint8(0)
  2137. return m_FALSE
  2138. }
  2139. goto _1
  2140. _1:
  2141. ;
  2142. i++
  2143. }
  2144. return int32(m_TRUE)
  2145. }
  2146. func XXdmcpReadARRAY32(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY32Ptr) (r int32) {
  2147. var i int32
  2148. _ = i
  2149. /*
  2150. * When returning FALSE, guarantee that array->data = 0.
  2151. * This allows the user to safely call XdmcpDisposeARRAY32(array)
  2152. * regardless of the return value below.
  2153. * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
  2154. * so we must guarantee that array->data is NULL or a malloced pointer.
  2155. */
  2156. if !(XXdmcpReadCARD8(tls, buffer, array) != 0) {
  2157. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2158. return m_FALSE
  2159. }
  2160. if !((*T_ARRAY32)(unsafe.Pointer(array)).Flength != 0) {
  2161. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2162. return int32(m_TRUE)
  2163. }
  2164. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint32((*T_ARRAY32)(unsafe.Pointer(array)).Flength)*uint32(4))
  2165. if !((*T_ARRAY32)(unsafe.Pointer(array)).Fdata != 0) {
  2166. return m_FALSE
  2167. }
  2168. i = 0
  2169. for {
  2170. if !(i < libc.Int32FromUint8((*T_ARRAY32)(unsafe.Pointer(array)).Flength)) {
  2171. break
  2172. }
  2173. if !(XXdmcpReadCARD32(tls, buffer, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata+uintptr(i)*4) != 0) {
  2174. libc.Xfree(tls, (*T_ARRAY32)(unsafe.Pointer(array)).Fdata)
  2175. (*T_ARRAY32)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2176. (*T_ARRAY32)(unsafe.Pointer(array)).Flength = uint8(0)
  2177. return m_FALSE
  2178. }
  2179. goto _1
  2180. _1:
  2181. ;
  2182. i++
  2183. }
  2184. return int32(m_TRUE)
  2185. }
  2186. func XXdmcpReadARRAYofARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAYofARRAY8Ptr) (r int32) {
  2187. var i TCARD8
  2188. _ = i
  2189. /*
  2190. * When returning FALSE, guarantee that array->data = 0.
  2191. * This allows the user to safely call XdmcpDisposeARRAYofARRAY8(array)
  2192. * regardless of the return value below.
  2193. * Note that XdmcpDisposeARRAY*(array) will call free(array->data),
  2194. * so we must guarantee that array->data is NULL or a malloced pointer.
  2195. */
  2196. if !(XXdmcpReadCARD8(tls, buffer, array) != 0) {
  2197. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2198. return m_FALSE
  2199. }
  2200. if !((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength != 0) {
  2201. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.UintptrFromInt32(0)
  2202. return int32(m_TRUE)
  2203. }
  2204. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata = libc.Xmalloc(tls, uint32((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)*uint32(8))
  2205. if !((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata != 0) {
  2206. return m_FALSE
  2207. }
  2208. i = uint8(0)
  2209. for {
  2210. if !(libc.Int32FromUint8(i) < libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) {
  2211. break
  2212. }
  2213. if !(XXdmcpReadARRAY8(tls, buffer, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)*8) != 0) {
  2214. /*
  2215. * We must free all of the arrays allocated thus far in the loop
  2216. * and free array->data and finally set array->data = 0;
  2217. * The easiest way to do this is to reset the length and call
  2218. * XdmcpDisposeARRAYofARRAY8(array).
  2219. */
  2220. (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength = i
  2221. XXdmcpDisposeARRAYofARRAY8(tls, array)
  2222. return m_FALSE
  2223. }
  2224. goto _1
  2225. _1:
  2226. ;
  2227. i++
  2228. }
  2229. return int32(m_TRUE)
  2230. }
  2231. func XXdmcpReadCARD8(tls *libc.TLS, buffer TXdmcpBufferPtr, valuep TCARD8Ptr) (r int32) {
  2232. var v1 int32
  2233. var v2 uintptr
  2234. _, _ = v1, v2
  2235. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer >= (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fcount {
  2236. return m_FALSE
  2237. }
  2238. v2 = buffer + 8
  2239. v1 = *(*int32)(unsafe.Pointer(v2))
  2240. *(*int32)(unsafe.Pointer(v2))++
  2241. *(*TCARD8)(unsafe.Pointer(valuep)) = *(*TBYTE)(unsafe.Pointer((*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata + uintptr(v1)))
  2242. return int32(m_TRUE)
  2243. }
  2244. func XXdmcpReadCARD16(tls *libc.TLS, buffer TXdmcpBufferPtr, valuep TCARD16Ptr) (r int32) {
  2245. bp := tls.Alloc(16)
  2246. defer tls.Free(16)
  2247. var _ /* high at bp+0 */ TCARD8
  2248. var _ /* low at bp+1 */ TCARD8
  2249. if XXdmcpReadCARD8(tls, buffer, bp) != 0 && XXdmcpReadCARD8(tls, buffer, bp+1) != 0 {
  2250. *(*TCARD16)(unsafe.Pointer(valuep)) = libc.Uint16FromInt32(libc.Int32FromUint16(uint16(*(*TCARD8)(unsafe.Pointer(bp))))<<int32(8) | libc.Int32FromUint16(uint16(*(*TCARD8)(unsafe.Pointer(bp + 1)))))
  2251. return int32(m_TRUE)
  2252. }
  2253. return m_FALSE
  2254. }
  2255. func XXdmcpReadCARD32(tls *libc.TLS, buffer TXdmcpBufferPtr, valuep TCARD32Ptr) (r int32) {
  2256. bp := tls.Alloc(16)
  2257. defer tls.Free(16)
  2258. var _ /* byte0 at bp+0 */ TCARD8
  2259. var _ /* byte1 at bp+1 */ TCARD8
  2260. var _ /* byte2 at bp+2 */ TCARD8
  2261. var _ /* byte3 at bp+3 */ TCARD8
  2262. if XXdmcpReadCARD8(tls, buffer, bp) != 0 && XXdmcpReadCARD8(tls, buffer, bp+1) != 0 && XXdmcpReadCARD8(tls, buffer, bp+2) != 0 && XXdmcpReadCARD8(tls, buffer, bp+3) != 0 {
  2263. *(*TCARD32)(unsafe.Pointer(valuep)) = uint32(*(*TCARD8)(unsafe.Pointer(bp)))<<libc.Int32FromInt32(24) | uint32(*(*TCARD8)(unsafe.Pointer(bp + 1)))<<libc.Int32FromInt32(16) | uint32(*(*TCARD8)(unsafe.Pointer(bp + 2)))<<libc.Int32FromInt32(8) | uint32(*(*TCARD8)(unsafe.Pointer(bp + 3)))
  2264. return int32(m_TRUE)
  2265. }
  2266. return m_FALSE
  2267. }
  2268. type Tauth_cblock = [8]uint8
  2269. type Tauth_wrapper_schedule = [16]Tauth_ks_struct
  2270. type Tauth_ks_struct = struct {
  2271. F_1 Tauth_cblock
  2272. }
  2273. func XXdmcpUnwrap(tls *libc.TLS, input uintptr, wrapper uintptr, output uintptr, bytes int32) {
  2274. bp := tls.Alloc(160)
  2275. defer tls.Free(160)
  2276. var i, j, k, v3 int32
  2277. var _ /* blocks at bp+8 */ [2][8]uint8
  2278. var _ /* expand_wrapper at bp+24 */ [8]uint8
  2279. var _ /* schedule at bp+32 */ Tauth_wrapper_schedule
  2280. var _ /* tmp at bp+0 */ [8]uint8
  2281. _, _, _, _ = i, j, k, v3
  2282. X_XdmcpWrapperToOddParity(tls, wrapper, bp+24)
  2283. X_XdmcpAuthSetup(tls, bp+24, bp+32)
  2284. k = 0
  2285. j = 0
  2286. for {
  2287. if !(j < bytes) {
  2288. break
  2289. }
  2290. if bytes-j < int32(8) {
  2291. return
  2292. } /* bad input length */
  2293. i = 0
  2294. for {
  2295. if !(i < int32(8)) {
  2296. break
  2297. }
  2298. *(*uint8)(unsafe.Pointer(bp + 8 + uintptr(k)*8 + uintptr(i))) = *(*uint8)(unsafe.Pointer(input + uintptr(j+i)))
  2299. goto _2
  2300. _2:
  2301. ;
  2302. i++
  2303. }
  2304. X_XdmcpAuthDoIt(tls, input+uintptr(j), bp, bp+32, 0)
  2305. /* block chaining */
  2306. if k == 0 {
  2307. v3 = int32(1)
  2308. } else {
  2309. v3 = 0
  2310. }
  2311. k = v3
  2312. i = 0
  2313. for {
  2314. if !(i < int32(8)) {
  2315. break
  2316. }
  2317. if j == 0 {
  2318. *(*uint8)(unsafe.Pointer(output + uintptr(j+i))) = (*(*[8]uint8)(unsafe.Pointer(bp)))[i]
  2319. } else {
  2320. *(*uint8)(unsafe.Pointer(output + uintptr(j+i))) = libc.Uint8FromInt32(libc.Int32FromUint8((*(*[8]uint8)(unsafe.Pointer(bp)))[i]) ^ libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(bp + 8 + uintptr(k)*8 + uintptr(i)))))
  2321. }
  2322. goto _4
  2323. _4:
  2324. ;
  2325. i++
  2326. }
  2327. goto _1
  2328. _1:
  2329. ;
  2330. j += int32(8)
  2331. }
  2332. }
  2333. func XXdmcpWrap(tls *libc.TLS, input uintptr, wrapper uintptr, output uintptr, bytes int32) {
  2334. bp := tls.Alloc(144)
  2335. defer tls.Free(144)
  2336. var i, j, len1 int32
  2337. var _ /* expand_wrapper at bp+8 */ [8]uint8
  2338. var _ /* schedule at bp+16 */ Tauth_wrapper_schedule
  2339. var _ /* tmp at bp+0 */ [8]uint8
  2340. _, _, _ = i, j, len1
  2341. X_XdmcpWrapperToOddParity(tls, wrapper, bp+8)
  2342. X_XdmcpAuthSetup(tls, bp+8, bp+16)
  2343. j = 0
  2344. for {
  2345. if !(j < bytes) {
  2346. break
  2347. }
  2348. len1 = int32(8)
  2349. if bytes-j < len1 {
  2350. len1 = bytes - j
  2351. }
  2352. /* block chaining */
  2353. i = 0
  2354. for {
  2355. if !(i < len1) {
  2356. break
  2357. }
  2358. if j == 0 {
  2359. (*(*[8]uint8)(unsafe.Pointer(bp)))[i] = *(*uint8)(unsafe.Pointer(input + uintptr(i)))
  2360. } else {
  2361. (*(*[8]uint8)(unsafe.Pointer(bp)))[i] = libc.Uint8FromInt32(libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(input + uintptr(j+i)))) ^ libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(output + uintptr(j-int32(8)+i)))))
  2362. }
  2363. goto _2
  2364. _2:
  2365. ;
  2366. i++
  2367. }
  2368. for {
  2369. if !(i < int32(8)) {
  2370. break
  2371. }
  2372. if j == 0 {
  2373. (*(*[8]uint8)(unsafe.Pointer(bp)))[i] = uint8(0)
  2374. } else {
  2375. (*(*[8]uint8)(unsafe.Pointer(bp)))[i] = libc.Uint8FromInt32(0 ^ libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(output + uintptr(j-int32(8)+i)))))
  2376. }
  2377. goto _3
  2378. _3:
  2379. ;
  2380. i++
  2381. }
  2382. X_XdmcpAuthDoIt(tls, bp, output+uintptr(j), bp+16, int32(1))
  2383. goto _1
  2384. _1:
  2385. ;
  2386. j += int32(8)
  2387. }
  2388. }
  2389. /*
  2390. * Given a 56 bit wrapper in XDMCP format, create a 56
  2391. * bit wrapper in 7-bits + odd parity format
  2392. */
  2393. func _OddParity(tls *libc.TLS, c uint8) (r int32) {
  2394. c = libc.Uint8FromInt32(libc.Int32FromUint8(c) ^ libc.Int32FromUint8(c)>>int32(4))
  2395. c = libc.Uint8FromInt32(libc.Int32FromUint8(c) ^ libc.Int32FromUint8(c)>>int32(2))
  2396. c = libc.Uint8FromInt32(libc.Int32FromUint8(c) ^ libc.Int32FromUint8(c)>>int32(1))
  2397. return ^libc.Int32FromUint8(c) & int32(0x1)
  2398. }
  2399. /*
  2400. * Spread the 56 bit wrapper among 8 bytes, using the upper 7 bits
  2401. * of each byte, and storing an odd parity bit in the low bit
  2402. */
  2403. func X_XdmcpWrapperToOddParity(tls *libc.TLS, in uintptr, out uintptr) {
  2404. var ashift, bshift, i int32
  2405. var c uint8
  2406. _, _, _, _ = ashift, bshift, c, i
  2407. ashift = int32(7)
  2408. bshift = int32(1)
  2409. i = 0
  2410. for {
  2411. if !(i < int32(7)) {
  2412. break
  2413. }
  2414. c = libc.Uint8FromInt32((libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(in + uintptr(i))))<<ashift | libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(in + uintptr(i+int32(1)))))>>bshift) & int32(0x7f))
  2415. *(*uint8)(unsafe.Pointer(out + uintptr(i))) = libc.Uint8FromInt32(libc.Int32FromUint8(c)<<int32(1) | _OddParity(tls, c))
  2416. ashift--
  2417. bshift++
  2418. goto _1
  2419. _1:
  2420. ;
  2421. i++
  2422. }
  2423. c = *(*uint8)(unsafe.Pointer(in + uintptr(i)))
  2424. *(*uint8)(unsafe.Pointer(out + uintptr(i))) = libc.Uint8FromInt32(libc.Int32FromUint8(c)<<int32(1) | _OddParity(tls, c))
  2425. }
  2426. func XXdmcpWriteHeader(tls *libc.TLS, buffer TXdmcpBufferPtr, header TXdmcpHeaderPtr) (r int32) {
  2427. var newData uintptr
  2428. _ = newData
  2429. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize < int32(6)+libc.Int32FromUint16((*T_XdmcpHeader)(unsafe.Pointer(header)).Flength) {
  2430. newData = libc.Xmalloc(tls, libc.Uint32FromInt32(m_XDM_MAX_MSGLEN)*libc.Uint32FromInt64(1))
  2431. if !(newData != 0) {
  2432. return m_FALSE
  2433. }
  2434. libc.Xfree(tls, (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata)
  2435. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata = newData
  2436. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize = int32(m_XDM_MAX_MSGLEN)
  2437. }
  2438. (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer = 0
  2439. if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_XdmcpHeader)(unsafe.Pointer(header)).Fversion)) != 0) {
  2440. return m_FALSE
  2441. }
  2442. if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_XdmcpHeader)(unsafe.Pointer(header)).Fopcode)) != 0) {
  2443. return m_FALSE
  2444. }
  2445. if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_XdmcpHeader)(unsafe.Pointer(header)).Flength)) != 0) {
  2446. return m_FALSE
  2447. }
  2448. return int32(m_TRUE)
  2449. }
  2450. func XXdmcpWriteARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY8Ptr) (r int32) {
  2451. var i int32
  2452. _ = i
  2453. if !(XXdmcpWriteCARD16(tls, buffer, uint32((*T_ARRAY8)(unsafe.Pointer(array)).Flength)) != 0) {
  2454. return m_FALSE
  2455. }
  2456. i = 0
  2457. for {
  2458. if !(i < libc.Int32FromUint16((*T_ARRAY8)(unsafe.Pointer(array)).Flength)) {
  2459. break
  2460. }
  2461. if !(XXdmcpWriteCARD8(tls, buffer, uint32(*(*TCARD8)(unsafe.Pointer((*T_ARRAY8)(unsafe.Pointer(array)).Fdata + uintptr(i))))) != 0) {
  2462. return m_FALSE
  2463. }
  2464. goto _1
  2465. _1:
  2466. ;
  2467. i++
  2468. }
  2469. return int32(m_TRUE)
  2470. }
  2471. func XXdmcpWriteARRAY16(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY16Ptr) (r int32) {
  2472. var i int32
  2473. _ = i
  2474. if !(XXdmcpWriteCARD8(tls, buffer, uint32((*T_ARRAY16)(unsafe.Pointer(array)).Flength)) != 0) {
  2475. return m_FALSE
  2476. }
  2477. i = 0
  2478. for {
  2479. if !(i < libc.Int32FromUint8((*T_ARRAY16)(unsafe.Pointer(array)).Flength)) {
  2480. break
  2481. }
  2482. if !(XXdmcpWriteCARD16(tls, buffer, uint32(*(*TCARD16)(unsafe.Pointer((*T_ARRAY16)(unsafe.Pointer(array)).Fdata + uintptr(i)*2)))) != 0) {
  2483. return m_FALSE
  2484. }
  2485. goto _1
  2486. _1:
  2487. ;
  2488. i++
  2489. }
  2490. return int32(m_TRUE)
  2491. }
  2492. func XXdmcpWriteARRAY32(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAY32Ptr) (r int32) {
  2493. var i int32
  2494. _ = i
  2495. if !(XXdmcpWriteCARD8(tls, buffer, uint32((*T_ARRAY32)(unsafe.Pointer(array)).Flength)) != 0) {
  2496. return m_FALSE
  2497. }
  2498. i = 0
  2499. for {
  2500. if !(i < libc.Int32FromUint8((*T_ARRAY32)(unsafe.Pointer(array)).Flength)) {
  2501. break
  2502. }
  2503. if !(XXdmcpWriteCARD32(tls, buffer, *(*TCARD32)(unsafe.Pointer((*T_ARRAY32)(unsafe.Pointer(array)).Fdata + uintptr(i)*4))) != 0) {
  2504. return m_FALSE
  2505. }
  2506. goto _1
  2507. _1:
  2508. ;
  2509. i++
  2510. }
  2511. return int32(m_TRUE)
  2512. }
  2513. func XXdmcpWriteARRAYofARRAY8(tls *libc.TLS, buffer TXdmcpBufferPtr, array TARRAYofARRAY8Ptr) (r int32) {
  2514. var i int32
  2515. _ = i
  2516. if !(XXdmcpWriteCARD8(tls, buffer, uint32((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) != 0) {
  2517. return m_FALSE
  2518. }
  2519. i = 0
  2520. for {
  2521. if !(i < libc.Int32FromUint8((*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Flength)) {
  2522. break
  2523. }
  2524. if !(XXdmcpWriteARRAY8(tls, buffer, (*T_ARRAYofARRAY8)(unsafe.Pointer(array)).Fdata+uintptr(i)*8) != 0) {
  2525. return m_FALSE
  2526. }
  2527. goto _1
  2528. _1:
  2529. ;
  2530. i++
  2531. }
  2532. return int32(m_TRUE)
  2533. }
  2534. func XXdmcpWriteCARD8(tls *libc.TLS, buffer TXdmcpBufferPtr, value uint32) (r int32) {
  2535. var v1 int32
  2536. var v2 uintptr
  2537. _, _ = v1, v2
  2538. if (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fpointer >= (*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fsize {
  2539. return m_FALSE
  2540. }
  2541. v2 = buffer + 8
  2542. v1 = *(*int32)(unsafe.Pointer(v2))
  2543. *(*int32)(unsafe.Pointer(v2))++
  2544. *(*TBYTE)(unsafe.Pointer((*T_XdmcpBuffer)(unsafe.Pointer(buffer)).Fdata + uintptr(v1))) = uint8(value)
  2545. return int32(m_TRUE)
  2546. }
  2547. func XXdmcpWriteCARD16(tls *libc.TLS, buffer TXdmcpBufferPtr, value uint32) (r int32) {
  2548. if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(8)) != 0) {
  2549. return m_FALSE
  2550. }
  2551. if !(XXdmcpWriteCARD8(tls, buffer, value&uint32(0xff)) != 0) {
  2552. return m_FALSE
  2553. }
  2554. return int32(m_TRUE)
  2555. }
  2556. func XXdmcpWriteCARD32(tls *libc.TLS, buffer TXdmcpBufferPtr, value uint32) (r int32) {
  2557. if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(24)) != 0) {
  2558. return m_FALSE
  2559. }
  2560. if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(16)&uint32(0xff)) != 0) {
  2561. return m_FALSE
  2562. }
  2563. if !(XXdmcpWriteCARD8(tls, buffer, value>>int32(8)&uint32(0xff)) != 0) {
  2564. return m_FALSE
  2565. }
  2566. if !(XXdmcpWriteCARD8(tls, buffer, value&uint32(0xff)) != 0) {
  2567. return m_FALSE
  2568. }
  2569. return int32(m_TRUE)
  2570. }
  2571. const m_HALF_ITERATIONS = 8
  2572. const m_ITERATIONS = 16
  2573. /* des routines for non-usa - eay 10/9/1991 eay@psych.psy.uq.oz.au
  2574. * These routines were written for speed not size so they are bigger than
  2575. * needed. I have removed some of the loop unrolling, this will reduce
  2576. * code size at the expense of some speed.
  2577. * 25/9/1991 eay - much faster _XdmcpAuthSetup (4 times faster).
  2578. * 19/9/1991 eay - cleaned up the IP and FP code.
  2579. * 10/9/1991 eay - first release.
  2580. * The des routines this file has been made from can be found in
  2581. * ftp.psy.uq.oz.au /pub/DES
  2582. * This particular version derived from OpenBSD Revsion 1.3.
  2583. */
  2584. /*
  2585. *
  2586. * Export Requirements.
  2587. * You may not export or re-export this software or any copy or
  2588. * adaptation in violation of any applicable laws or regulations.
  2589. *
  2590. * Without limiting the generality of the foregoing, hardware, software,
  2591. * technology or services provided under this license agreement may not
  2592. * be exported, reexported, transferred or downloaded to or within (or to
  2593. * a national resident of) countries under U.S. economic embargo
  2594. * including the following countries:
  2595. *
  2596. * Cuba, Iran, Libya, North Korea, Sudan and Syria. This list is subject
  2597. * to change.
  2598. *
  2599. * Hardware, software, technology or services may not be exported,
  2600. * reexported, transferred or downloaded to persons or entities listed on
  2601. * the U.S. Department of Commerce Denied Persons List, Entity List of
  2602. * proliferation concern or on any U.S. Treasury Department Designated
  2603. * Nationals exclusion list, or to parties directly or indirectly
  2604. * involved in the development or production of nuclear, chemical,
  2605. * biological weapons or in missile technology programs as specified in
  2606. * the U.S. Export Administration Regulations (15 CFR 744).
  2607. *
  2608. * By accepting this license agreement you confirm that you are not
  2609. * located in (or a national resident of) any country under U.S. economic
  2610. * embargo, not identified on any U.S. Department of Commerce Denied
  2611. * Persons List, Entity List or Treasury Department Designated Nationals
  2612. * exclusion list, and not directly or indirectly involved in the
  2613. * development or production of nuclear, chemical, biological weapons or
  2614. * in missile technology programs as specified in the U.S. Export
  2615. * Administration Regulations.
  2616. *
  2617. *
  2618. * Local Country Import Requirements. The software you are about to
  2619. * download contains cryptography technology. Some countries regulate the
  2620. * import, use and/or export of certain products with cryptography. The
  2621. * X.org Foundation makes no claims as to the applicability of local
  2622. * country import, use and/or export regulations in relation to the
  2623. * download of this product. If you are located outside the U.S. and
  2624. * Canada you are advised to consult your local country regulations to
  2625. * insure compliance.
  2626. */
  2627. var _skb = [8][64]TCARD32{
  2628. 0: {
  2629. 1: uint32(0x00000010),
  2630. 2: uint32(0x20000000),
  2631. 3: uint32(0x20000010),
  2632. 4: uint32(0x00010000),
  2633. 5: uint32(0x00010010),
  2634. 6: uint32(0x20010000),
  2635. 7: uint32(0x20010010),
  2636. 8: uint32(0x00000800),
  2637. 9: uint32(0x00000810),
  2638. 10: uint32(0x20000800),
  2639. 11: uint32(0x20000810),
  2640. 12: uint32(0x00010800),
  2641. 13: uint32(0x00010810),
  2642. 14: uint32(0x20010800),
  2643. 15: uint32(0x20010810),
  2644. 16: uint32(0x00000020),
  2645. 17: uint32(0x00000030),
  2646. 18: uint32(0x20000020),
  2647. 19: uint32(0x20000030),
  2648. 20: uint32(0x00010020),
  2649. 21: uint32(0x00010030),
  2650. 22: uint32(0x20010020),
  2651. 23: uint32(0x20010030),
  2652. 24: uint32(0x00000820),
  2653. 25: uint32(0x00000830),
  2654. 26: uint32(0x20000820),
  2655. 27: uint32(0x20000830),
  2656. 28: uint32(0x00010820),
  2657. 29: uint32(0x00010830),
  2658. 30: uint32(0x20010820),
  2659. 31: uint32(0x20010830),
  2660. 32: uint32(0x00080000),
  2661. 33: uint32(0x00080010),
  2662. 34: uint32(0x20080000),
  2663. 35: uint32(0x20080010),
  2664. 36: uint32(0x00090000),
  2665. 37: uint32(0x00090010),
  2666. 38: uint32(0x20090000),
  2667. 39: uint32(0x20090010),
  2668. 40: uint32(0x00080800),
  2669. 41: uint32(0x00080810),
  2670. 42: uint32(0x20080800),
  2671. 43: uint32(0x20080810),
  2672. 44: uint32(0x00090800),
  2673. 45: uint32(0x00090810),
  2674. 46: uint32(0x20090800),
  2675. 47: uint32(0x20090810),
  2676. 48: uint32(0x00080020),
  2677. 49: uint32(0x00080030),
  2678. 50: uint32(0x20080020),
  2679. 51: uint32(0x20080030),
  2680. 52: uint32(0x00090020),
  2681. 53: uint32(0x00090030),
  2682. 54: uint32(0x20090020),
  2683. 55: uint32(0x20090030),
  2684. 56: uint32(0x00080820),
  2685. 57: uint32(0x00080830),
  2686. 58: uint32(0x20080820),
  2687. 59: uint32(0x20080830),
  2688. 60: uint32(0x00090820),
  2689. 61: uint32(0x00090830),
  2690. 62: uint32(0x20090820),
  2691. 63: uint32(0x20090830),
  2692. },
  2693. 1: {
  2694. 1: uint32(0x02000000),
  2695. 2: uint32(0x00002000),
  2696. 3: uint32(0x02002000),
  2697. 4: uint32(0x00200000),
  2698. 5: uint32(0x02200000),
  2699. 6: uint32(0x00202000),
  2700. 7: uint32(0x02202000),
  2701. 8: uint32(0x00000004),
  2702. 9: uint32(0x02000004),
  2703. 10: uint32(0x00002004),
  2704. 11: uint32(0x02002004),
  2705. 12: uint32(0x00200004),
  2706. 13: uint32(0x02200004),
  2707. 14: uint32(0x00202004),
  2708. 15: uint32(0x02202004),
  2709. 16: uint32(0x00000400),
  2710. 17: uint32(0x02000400),
  2711. 18: uint32(0x00002400),
  2712. 19: uint32(0x02002400),
  2713. 20: uint32(0x00200400),
  2714. 21: uint32(0x02200400),
  2715. 22: uint32(0x00202400),
  2716. 23: uint32(0x02202400),
  2717. 24: uint32(0x00000404),
  2718. 25: uint32(0x02000404),
  2719. 26: uint32(0x00002404),
  2720. 27: uint32(0x02002404),
  2721. 28: uint32(0x00200404),
  2722. 29: uint32(0x02200404),
  2723. 30: uint32(0x00202404),
  2724. 31: uint32(0x02202404),
  2725. 32: uint32(0x10000000),
  2726. 33: uint32(0x12000000),
  2727. 34: uint32(0x10002000),
  2728. 35: uint32(0x12002000),
  2729. 36: uint32(0x10200000),
  2730. 37: uint32(0x12200000),
  2731. 38: uint32(0x10202000),
  2732. 39: uint32(0x12202000),
  2733. 40: uint32(0x10000004),
  2734. 41: uint32(0x12000004),
  2735. 42: uint32(0x10002004),
  2736. 43: uint32(0x12002004),
  2737. 44: uint32(0x10200004),
  2738. 45: uint32(0x12200004),
  2739. 46: uint32(0x10202004),
  2740. 47: uint32(0x12202004),
  2741. 48: uint32(0x10000400),
  2742. 49: uint32(0x12000400),
  2743. 50: uint32(0x10002400),
  2744. 51: uint32(0x12002400),
  2745. 52: uint32(0x10200400),
  2746. 53: uint32(0x12200400),
  2747. 54: uint32(0x10202400),
  2748. 55: uint32(0x12202400),
  2749. 56: uint32(0x10000404),
  2750. 57: uint32(0x12000404),
  2751. 58: uint32(0x10002404),
  2752. 59: uint32(0x12002404),
  2753. 60: uint32(0x10200404),
  2754. 61: uint32(0x12200404),
  2755. 62: uint32(0x10202404),
  2756. 63: uint32(0x12202404),
  2757. },
  2758. 2: {
  2759. 1: uint32(0x00000001),
  2760. 2: uint32(0x00040000),
  2761. 3: uint32(0x00040001),
  2762. 4: uint32(0x01000000),
  2763. 5: uint32(0x01000001),
  2764. 6: uint32(0x01040000),
  2765. 7: uint32(0x01040001),
  2766. 8: uint32(0x00000002),
  2767. 9: uint32(0x00000003),
  2768. 10: uint32(0x00040002),
  2769. 11: uint32(0x00040003),
  2770. 12: uint32(0x01000002),
  2771. 13: uint32(0x01000003),
  2772. 14: uint32(0x01040002),
  2773. 15: uint32(0x01040003),
  2774. 16: uint32(0x00000200),
  2775. 17: uint32(0x00000201),
  2776. 18: uint32(0x00040200),
  2777. 19: uint32(0x00040201),
  2778. 20: uint32(0x01000200),
  2779. 21: uint32(0x01000201),
  2780. 22: uint32(0x01040200),
  2781. 23: uint32(0x01040201),
  2782. 24: uint32(0x00000202),
  2783. 25: uint32(0x00000203),
  2784. 26: uint32(0x00040202),
  2785. 27: uint32(0x00040203),
  2786. 28: uint32(0x01000202),
  2787. 29: uint32(0x01000203),
  2788. 30: uint32(0x01040202),
  2789. 31: uint32(0x01040203),
  2790. 32: uint32(0x08000000),
  2791. 33: uint32(0x08000001),
  2792. 34: uint32(0x08040000),
  2793. 35: uint32(0x08040001),
  2794. 36: uint32(0x09000000),
  2795. 37: uint32(0x09000001),
  2796. 38: uint32(0x09040000),
  2797. 39: uint32(0x09040001),
  2798. 40: uint32(0x08000002),
  2799. 41: uint32(0x08000003),
  2800. 42: uint32(0x08040002),
  2801. 43: uint32(0x08040003),
  2802. 44: uint32(0x09000002),
  2803. 45: uint32(0x09000003),
  2804. 46: uint32(0x09040002),
  2805. 47: uint32(0x09040003),
  2806. 48: uint32(0x08000200),
  2807. 49: uint32(0x08000201),
  2808. 50: uint32(0x08040200),
  2809. 51: uint32(0x08040201),
  2810. 52: uint32(0x09000200),
  2811. 53: uint32(0x09000201),
  2812. 54: uint32(0x09040200),
  2813. 55: uint32(0x09040201),
  2814. 56: uint32(0x08000202),
  2815. 57: uint32(0x08000203),
  2816. 58: uint32(0x08040202),
  2817. 59: uint32(0x08040203),
  2818. 60: uint32(0x09000202),
  2819. 61: uint32(0x09000203),
  2820. 62: uint32(0x09040202),
  2821. 63: uint32(0x09040203),
  2822. },
  2823. 3: {
  2824. 1: uint32(0x00100000),
  2825. 2: uint32(0x00000100),
  2826. 3: uint32(0x00100100),
  2827. 4: uint32(0x00000008),
  2828. 5: uint32(0x00100008),
  2829. 6: uint32(0x00000108),
  2830. 7: uint32(0x00100108),
  2831. 8: uint32(0x00001000),
  2832. 9: uint32(0x00101000),
  2833. 10: uint32(0x00001100),
  2834. 11: uint32(0x00101100),
  2835. 12: uint32(0x00001008),
  2836. 13: uint32(0x00101008),
  2837. 14: uint32(0x00001108),
  2838. 15: uint32(0x00101108),
  2839. 16: uint32(0x04000000),
  2840. 17: uint32(0x04100000),
  2841. 18: uint32(0x04000100),
  2842. 19: uint32(0x04100100),
  2843. 20: uint32(0x04000008),
  2844. 21: uint32(0x04100008),
  2845. 22: uint32(0x04000108),
  2846. 23: uint32(0x04100108),
  2847. 24: uint32(0x04001000),
  2848. 25: uint32(0x04101000),
  2849. 26: uint32(0x04001100),
  2850. 27: uint32(0x04101100),
  2851. 28: uint32(0x04001008),
  2852. 29: uint32(0x04101008),
  2853. 30: uint32(0x04001108),
  2854. 31: uint32(0x04101108),
  2855. 32: uint32(0x00020000),
  2856. 33: uint32(0x00120000),
  2857. 34: uint32(0x00020100),
  2858. 35: uint32(0x00120100),
  2859. 36: uint32(0x00020008),
  2860. 37: uint32(0x00120008),
  2861. 38: uint32(0x00020108),
  2862. 39: uint32(0x00120108),
  2863. 40: uint32(0x00021000),
  2864. 41: uint32(0x00121000),
  2865. 42: uint32(0x00021100),
  2866. 43: uint32(0x00121100),
  2867. 44: uint32(0x00021008),
  2868. 45: uint32(0x00121008),
  2869. 46: uint32(0x00021108),
  2870. 47: uint32(0x00121108),
  2871. 48: uint32(0x04020000),
  2872. 49: uint32(0x04120000),
  2873. 50: uint32(0x04020100),
  2874. 51: uint32(0x04120100),
  2875. 52: uint32(0x04020008),
  2876. 53: uint32(0x04120008),
  2877. 54: uint32(0x04020108),
  2878. 55: uint32(0x04120108),
  2879. 56: uint32(0x04021000),
  2880. 57: uint32(0x04121000),
  2881. 58: uint32(0x04021100),
  2882. 59: uint32(0x04121100),
  2883. 60: uint32(0x04021008),
  2884. 61: uint32(0x04121008),
  2885. 62: uint32(0x04021108),
  2886. 63: uint32(0x04121108),
  2887. },
  2888. 4: {
  2889. 1: uint32(0x10000000),
  2890. 2: uint32(0x00010000),
  2891. 3: uint32(0x10010000),
  2892. 4: uint32(0x00000004),
  2893. 5: uint32(0x10000004),
  2894. 6: uint32(0x00010004),
  2895. 7: uint32(0x10010004),
  2896. 8: uint32(0x20000000),
  2897. 9: uint32(0x30000000),
  2898. 10: uint32(0x20010000),
  2899. 11: uint32(0x30010000),
  2900. 12: uint32(0x20000004),
  2901. 13: uint32(0x30000004),
  2902. 14: uint32(0x20010004),
  2903. 15: uint32(0x30010004),
  2904. 16: uint32(0x00100000),
  2905. 17: uint32(0x10100000),
  2906. 18: uint32(0x00110000),
  2907. 19: uint32(0x10110000),
  2908. 20: uint32(0x00100004),
  2909. 21: uint32(0x10100004),
  2910. 22: uint32(0x00110004),
  2911. 23: uint32(0x10110004),
  2912. 24: uint32(0x20100000),
  2913. 25: uint32(0x30100000),
  2914. 26: uint32(0x20110000),
  2915. 27: uint32(0x30110000),
  2916. 28: uint32(0x20100004),
  2917. 29: uint32(0x30100004),
  2918. 30: uint32(0x20110004),
  2919. 31: uint32(0x30110004),
  2920. 32: uint32(0x00001000),
  2921. 33: uint32(0x10001000),
  2922. 34: uint32(0x00011000),
  2923. 35: uint32(0x10011000),
  2924. 36: uint32(0x00001004),
  2925. 37: uint32(0x10001004),
  2926. 38: uint32(0x00011004),
  2927. 39: uint32(0x10011004),
  2928. 40: uint32(0x20001000),
  2929. 41: uint32(0x30001000),
  2930. 42: uint32(0x20011000),
  2931. 43: uint32(0x30011000),
  2932. 44: uint32(0x20001004),
  2933. 45: uint32(0x30001004),
  2934. 46: uint32(0x20011004),
  2935. 47: uint32(0x30011004),
  2936. 48: uint32(0x00101000),
  2937. 49: uint32(0x10101000),
  2938. 50: uint32(0x00111000),
  2939. 51: uint32(0x10111000),
  2940. 52: uint32(0x00101004),
  2941. 53: uint32(0x10101004),
  2942. 54: uint32(0x00111004),
  2943. 55: uint32(0x10111004),
  2944. 56: uint32(0x20101000),
  2945. 57: uint32(0x30101000),
  2946. 58: uint32(0x20111000),
  2947. 59: uint32(0x30111000),
  2948. 60: uint32(0x20101004),
  2949. 61: uint32(0x30101004),
  2950. 62: uint32(0x20111004),
  2951. 63: uint32(0x30111004),
  2952. },
  2953. 5: {
  2954. 1: uint32(0x08000000),
  2955. 2: uint32(0x00000008),
  2956. 3: uint32(0x08000008),
  2957. 4: uint32(0x00000400),
  2958. 5: uint32(0x08000400),
  2959. 6: uint32(0x00000408),
  2960. 7: uint32(0x08000408),
  2961. 8: uint32(0x00020000),
  2962. 9: uint32(0x08020000),
  2963. 10: uint32(0x00020008),
  2964. 11: uint32(0x08020008),
  2965. 12: uint32(0x00020400),
  2966. 13: uint32(0x08020400),
  2967. 14: uint32(0x00020408),
  2968. 15: uint32(0x08020408),
  2969. 16: uint32(0x00000001),
  2970. 17: uint32(0x08000001),
  2971. 18: uint32(0x00000009),
  2972. 19: uint32(0x08000009),
  2973. 20: uint32(0x00000401),
  2974. 21: uint32(0x08000401),
  2975. 22: uint32(0x00000409),
  2976. 23: uint32(0x08000409),
  2977. 24: uint32(0x00020001),
  2978. 25: uint32(0x08020001),
  2979. 26: uint32(0x00020009),
  2980. 27: uint32(0x08020009),
  2981. 28: uint32(0x00020401),
  2982. 29: uint32(0x08020401),
  2983. 30: uint32(0x00020409),
  2984. 31: uint32(0x08020409),
  2985. 32: uint32(0x02000000),
  2986. 33: uint32(0x0A000000),
  2987. 34: uint32(0x02000008),
  2988. 35: uint32(0x0A000008),
  2989. 36: uint32(0x02000400),
  2990. 37: uint32(0x0A000400),
  2991. 38: uint32(0x02000408),
  2992. 39: uint32(0x0A000408),
  2993. 40: uint32(0x02020000),
  2994. 41: uint32(0x0A020000),
  2995. 42: uint32(0x02020008),
  2996. 43: uint32(0x0A020008),
  2997. 44: uint32(0x02020400),
  2998. 45: uint32(0x0A020400),
  2999. 46: uint32(0x02020408),
  3000. 47: uint32(0x0A020408),
  3001. 48: uint32(0x02000001),
  3002. 49: uint32(0x0A000001),
  3003. 50: uint32(0x02000009),
  3004. 51: uint32(0x0A000009),
  3005. 52: uint32(0x02000401),
  3006. 53: uint32(0x0A000401),
  3007. 54: uint32(0x02000409),
  3008. 55: uint32(0x0A000409),
  3009. 56: uint32(0x02020001),
  3010. 57: uint32(0x0A020001),
  3011. 58: uint32(0x02020009),
  3012. 59: uint32(0x0A020009),
  3013. 60: uint32(0x02020401),
  3014. 61: uint32(0x0A020401),
  3015. 62: uint32(0x02020409),
  3016. 63: uint32(0x0A020409),
  3017. },
  3018. 6: {
  3019. 1: uint32(0x00000100),
  3020. 2: uint32(0x00080000),
  3021. 3: uint32(0x00080100),
  3022. 4: uint32(0x01000000),
  3023. 5: uint32(0x01000100),
  3024. 6: uint32(0x01080000),
  3025. 7: uint32(0x01080100),
  3026. 8: uint32(0x00000010),
  3027. 9: uint32(0x00000110),
  3028. 10: uint32(0x00080010),
  3029. 11: uint32(0x00080110),
  3030. 12: uint32(0x01000010),
  3031. 13: uint32(0x01000110),
  3032. 14: uint32(0x01080010),
  3033. 15: uint32(0x01080110),
  3034. 16: uint32(0x00200000),
  3035. 17: uint32(0x00200100),
  3036. 18: uint32(0x00280000),
  3037. 19: uint32(0x00280100),
  3038. 20: uint32(0x01200000),
  3039. 21: uint32(0x01200100),
  3040. 22: uint32(0x01280000),
  3041. 23: uint32(0x01280100),
  3042. 24: uint32(0x00200010),
  3043. 25: uint32(0x00200110),
  3044. 26: uint32(0x00280010),
  3045. 27: uint32(0x00280110),
  3046. 28: uint32(0x01200010),
  3047. 29: uint32(0x01200110),
  3048. 30: uint32(0x01280010),
  3049. 31: uint32(0x01280110),
  3050. 32: uint32(0x00000200),
  3051. 33: uint32(0x00000300),
  3052. 34: uint32(0x00080200),
  3053. 35: uint32(0x00080300),
  3054. 36: uint32(0x01000200),
  3055. 37: uint32(0x01000300),
  3056. 38: uint32(0x01080200),
  3057. 39: uint32(0x01080300),
  3058. 40: uint32(0x00000210),
  3059. 41: uint32(0x00000310),
  3060. 42: uint32(0x00080210),
  3061. 43: uint32(0x00080310),
  3062. 44: uint32(0x01000210),
  3063. 45: uint32(0x01000310),
  3064. 46: uint32(0x01080210),
  3065. 47: uint32(0x01080310),
  3066. 48: uint32(0x00200200),
  3067. 49: uint32(0x00200300),
  3068. 50: uint32(0x00280200),
  3069. 51: uint32(0x00280300),
  3070. 52: uint32(0x01200200),
  3071. 53: uint32(0x01200300),
  3072. 54: uint32(0x01280200),
  3073. 55: uint32(0x01280300),
  3074. 56: uint32(0x00200210),
  3075. 57: uint32(0x00200310),
  3076. 58: uint32(0x00280210),
  3077. 59: uint32(0x00280310),
  3078. 60: uint32(0x01200210),
  3079. 61: uint32(0x01200310),
  3080. 62: uint32(0x01280210),
  3081. 63: uint32(0x01280310),
  3082. },
  3083. 7: {
  3084. 1: uint32(0x04000000),
  3085. 2: uint32(0x00040000),
  3086. 3: uint32(0x04040000),
  3087. 4: uint32(0x00000002),
  3088. 5: uint32(0x04000002),
  3089. 6: uint32(0x00040002),
  3090. 7: uint32(0x04040002),
  3091. 8: uint32(0x00002000),
  3092. 9: uint32(0x04002000),
  3093. 10: uint32(0x00042000),
  3094. 11: uint32(0x04042000),
  3095. 12: uint32(0x00002002),
  3096. 13: uint32(0x04002002),
  3097. 14: uint32(0x00042002),
  3098. 15: uint32(0x04042002),
  3099. 16: uint32(0x00000020),
  3100. 17: uint32(0x04000020),
  3101. 18: uint32(0x00040020),
  3102. 19: uint32(0x04040020),
  3103. 20: uint32(0x00000022),
  3104. 21: uint32(0x04000022),
  3105. 22: uint32(0x00040022),
  3106. 23: uint32(0x04040022),
  3107. 24: uint32(0x00002020),
  3108. 25: uint32(0x04002020),
  3109. 26: uint32(0x00042020),
  3110. 27: uint32(0x04042020),
  3111. 28: uint32(0x00002022),
  3112. 29: uint32(0x04002022),
  3113. 30: uint32(0x00042022),
  3114. 31: uint32(0x04042022),
  3115. 32: uint32(0x00000800),
  3116. 33: uint32(0x04000800),
  3117. 34: uint32(0x00040800),
  3118. 35: uint32(0x04040800),
  3119. 36: uint32(0x00000802),
  3120. 37: uint32(0x04000802),
  3121. 38: uint32(0x00040802),
  3122. 39: uint32(0x04040802),
  3123. 40: uint32(0x00002800),
  3124. 41: uint32(0x04002800),
  3125. 42: uint32(0x00042800),
  3126. 43: uint32(0x04042800),
  3127. 44: uint32(0x00002802),
  3128. 45: uint32(0x04002802),
  3129. 46: uint32(0x00042802),
  3130. 47: uint32(0x04042802),
  3131. 48: uint32(0x00000820),
  3132. 49: uint32(0x04000820),
  3133. 50: uint32(0x00040820),
  3134. 51: uint32(0x04040820),
  3135. 52: uint32(0x00000822),
  3136. 53: uint32(0x04000822),
  3137. 54: uint32(0x00040822),
  3138. 55: uint32(0x04040822),
  3139. 56: uint32(0x00002820),
  3140. 57: uint32(0x04002820),
  3141. 58: uint32(0x00042820),
  3142. 59: uint32(0x04042820),
  3143. 60: uint32(0x00002822),
  3144. 61: uint32(0x04002822),
  3145. 62: uint32(0x00042822),
  3146. 63: uint32(0x04042822),
  3147. },
  3148. }
  3149. var _SPtrans = [8][64]TCARD32{
  3150. 0: {
  3151. 0: uint32(0x00410100),
  3152. 1: uint32(0x00010000),
  3153. 2: uint32(0x40400000),
  3154. 3: uint32(0x40410100),
  3155. 4: uint32(0x00400000),
  3156. 5: uint32(0x40010100),
  3157. 6: uint32(0x40010000),
  3158. 7: uint32(0x40400000),
  3159. 8: uint32(0x40010100),
  3160. 9: uint32(0x00410100),
  3161. 10: uint32(0x00410000),
  3162. 11: uint32(0x40000100),
  3163. 12: uint32(0x40400100),
  3164. 13: uint32(0x00400000),
  3165. 15: uint32(0x40010000),
  3166. 16: uint32(0x00010000),
  3167. 17: uint32(0x40000000),
  3168. 18: uint32(0x00400100),
  3169. 19: uint32(0x00010100),
  3170. 20: uint32(0x40410100),
  3171. 21: uint32(0x00410000),
  3172. 22: uint32(0x40000100),
  3173. 23: uint32(0x00400100),
  3174. 24: uint32(0x40000000),
  3175. 25: uint32(0x00000100),
  3176. 26: uint32(0x00010100),
  3177. 27: uint32(0x40410000),
  3178. 28: uint32(0x00000100),
  3179. 29: uint32(0x40400100),
  3180. 30: uint32(0x40410000),
  3181. 33: uint32(0x40410100),
  3182. 34: uint32(0x00400100),
  3183. 35: uint32(0x40010000),
  3184. 36: uint32(0x00410100),
  3185. 37: uint32(0x00010000),
  3186. 38: uint32(0x40000100),
  3187. 39: uint32(0x00400100),
  3188. 40: uint32(0x40410000),
  3189. 41: uint32(0x00000100),
  3190. 42: uint32(0x00010100),
  3191. 43: uint32(0x40400000),
  3192. 44: uint32(0x40010100),
  3193. 45: uint32(0x40000000),
  3194. 46: uint32(0x40400000),
  3195. 47: uint32(0x00410000),
  3196. 48: uint32(0x40410100),
  3197. 49: uint32(0x00010100),
  3198. 50: uint32(0x00410000),
  3199. 51: uint32(0x40400100),
  3200. 52: uint32(0x00400000),
  3201. 53: uint32(0x40000100),
  3202. 54: uint32(0x40010000),
  3203. 56: uint32(0x00010000),
  3204. 57: uint32(0x00400000),
  3205. 58: uint32(0x40400100),
  3206. 59: uint32(0x00410100),
  3207. 60: uint32(0x40000000),
  3208. 61: uint32(0x40410000),
  3209. 62: uint32(0x00000100),
  3210. 63: uint32(0x40010100),
  3211. },
  3212. 1: {
  3213. 0: uint32(0x08021002),
  3214. 2: uint32(0x00021000),
  3215. 3: uint32(0x08020000),
  3216. 4: uint32(0x08000002),
  3217. 5: uint32(0x00001002),
  3218. 6: uint32(0x08001000),
  3219. 7: uint32(0x00021000),
  3220. 8: uint32(0x00001000),
  3221. 9: uint32(0x08020002),
  3222. 10: uint32(0x00000002),
  3223. 11: uint32(0x08001000),
  3224. 12: uint32(0x00020002),
  3225. 13: uint32(0x08021000),
  3226. 14: uint32(0x08020000),
  3227. 15: uint32(0x00000002),
  3228. 16: uint32(0x00020000),
  3229. 17: uint32(0x08001002),
  3230. 18: uint32(0x08020002),
  3231. 19: uint32(0x00001000),
  3232. 20: uint32(0x00021002),
  3233. 21: uint32(0x08000000),
  3234. 23: uint32(0x00020002),
  3235. 24: uint32(0x08001002),
  3236. 25: uint32(0x00021002),
  3237. 26: uint32(0x08021000),
  3238. 27: uint32(0x08000002),
  3239. 28: uint32(0x08000000),
  3240. 29: uint32(0x00020000),
  3241. 30: uint32(0x00001002),
  3242. 31: uint32(0x08021002),
  3243. 32: uint32(0x00020002),
  3244. 33: uint32(0x08021000),
  3245. 34: uint32(0x08001000),
  3246. 35: uint32(0x00021002),
  3247. 36: uint32(0x08021002),
  3248. 37: uint32(0x00020002),
  3249. 38: uint32(0x08000002),
  3250. 40: uint32(0x08000000),
  3251. 41: uint32(0x00001002),
  3252. 42: uint32(0x00020000),
  3253. 43: uint32(0x08020002),
  3254. 44: uint32(0x00001000),
  3255. 45: uint32(0x08000000),
  3256. 46: uint32(0x00021002),
  3257. 47: uint32(0x08001002),
  3258. 48: uint32(0x08021000),
  3259. 49: uint32(0x00001000),
  3260. 51: uint32(0x08000002),
  3261. 52: uint32(0x00000002),
  3262. 53: uint32(0x08021002),
  3263. 54: uint32(0x00021000),
  3264. 55: uint32(0x08020000),
  3265. 56: uint32(0x08020002),
  3266. 57: uint32(0x00020000),
  3267. 58: uint32(0x00001002),
  3268. 59: uint32(0x08001000),
  3269. 60: uint32(0x08001002),
  3270. 61: uint32(0x00000002),
  3271. 62: uint32(0x08020000),
  3272. 63: uint32(0x00021000),
  3273. },
  3274. 2: {
  3275. 0: uint32(0x20800000),
  3276. 1: uint32(0x00808020),
  3277. 2: uint32(0x00000020),
  3278. 3: uint32(0x20800020),
  3279. 4: uint32(0x20008000),
  3280. 5: uint32(0x00800000),
  3281. 6: uint32(0x20800020),
  3282. 7: uint32(0x00008020),
  3283. 8: uint32(0x00800020),
  3284. 9: uint32(0x00008000),
  3285. 10: uint32(0x00808000),
  3286. 11: uint32(0x20000000),
  3287. 12: uint32(0x20808020),
  3288. 13: uint32(0x20000020),
  3289. 14: uint32(0x20000000),
  3290. 15: uint32(0x20808000),
  3291. 17: uint32(0x20008000),
  3292. 18: uint32(0x00808020),
  3293. 19: uint32(0x00000020),
  3294. 20: uint32(0x20000020),
  3295. 21: uint32(0x20808020),
  3296. 22: uint32(0x00008000),
  3297. 23: uint32(0x20800000),
  3298. 24: uint32(0x20808000),
  3299. 25: uint32(0x00800020),
  3300. 26: uint32(0x20008020),
  3301. 27: uint32(0x00808000),
  3302. 28: uint32(0x00008020),
  3303. 30: uint32(0x00800000),
  3304. 31: uint32(0x20008020),
  3305. 32: uint32(0x00808020),
  3306. 33: uint32(0x00000020),
  3307. 34: uint32(0x20000000),
  3308. 35: uint32(0x00008000),
  3309. 36: uint32(0x20000020),
  3310. 37: uint32(0x20008000),
  3311. 38: uint32(0x00808000),
  3312. 39: uint32(0x20800020),
  3313. 41: uint32(0x00808020),
  3314. 42: uint32(0x00008020),
  3315. 43: uint32(0x20808000),
  3316. 44: uint32(0x20008000),
  3317. 45: uint32(0x00800000),
  3318. 46: uint32(0x20808020),
  3319. 47: uint32(0x20000000),
  3320. 48: uint32(0x20008020),
  3321. 49: uint32(0x20800000),
  3322. 50: uint32(0x00800000),
  3323. 51: uint32(0x20808020),
  3324. 52: uint32(0x00008000),
  3325. 53: uint32(0x00800020),
  3326. 54: uint32(0x20800020),
  3327. 55: uint32(0x00008020),
  3328. 56: uint32(0x00800020),
  3329. 58: uint32(0x20808000),
  3330. 59: uint32(0x20000020),
  3331. 60: uint32(0x20800000),
  3332. 61: uint32(0x20008020),
  3333. 62: uint32(0x00000020),
  3334. 63: uint32(0x00808000),
  3335. },
  3336. 3: {
  3337. 0: uint32(0x00080201),
  3338. 1: uint32(0x02000200),
  3339. 2: uint32(0x00000001),
  3340. 3: uint32(0x02080201),
  3341. 5: uint32(0x02080000),
  3342. 6: uint32(0x02000201),
  3343. 7: uint32(0x00080001),
  3344. 8: uint32(0x02080200),
  3345. 9: uint32(0x02000001),
  3346. 10: uint32(0x02000000),
  3347. 11: uint32(0x00000201),
  3348. 12: uint32(0x02000001),
  3349. 13: uint32(0x00080201),
  3350. 14: uint32(0x00080000),
  3351. 15: uint32(0x02000000),
  3352. 16: uint32(0x02080001),
  3353. 17: uint32(0x00080200),
  3354. 18: uint32(0x00000200),
  3355. 19: uint32(0x00000001),
  3356. 20: uint32(0x00080200),
  3357. 21: uint32(0x02000201),
  3358. 22: uint32(0x02080000),
  3359. 23: uint32(0x00000200),
  3360. 24: uint32(0x00000201),
  3361. 26: uint32(0x00080001),
  3362. 27: uint32(0x02080200),
  3363. 28: uint32(0x02000200),
  3364. 29: uint32(0x02080001),
  3365. 30: uint32(0x02080201),
  3366. 31: uint32(0x00080000),
  3367. 32: uint32(0x02080001),
  3368. 33: uint32(0x00000201),
  3369. 34: uint32(0x00080000),
  3370. 35: uint32(0x02000001),
  3371. 36: uint32(0x00080200),
  3372. 37: uint32(0x02000200),
  3373. 38: uint32(0x00000001),
  3374. 39: uint32(0x02080000),
  3375. 40: uint32(0x02000201),
  3376. 42: uint32(0x00000200),
  3377. 43: uint32(0x00080001),
  3378. 45: uint32(0x02080001),
  3379. 46: uint32(0x02080200),
  3380. 47: uint32(0x00000200),
  3381. 48: uint32(0x02000000),
  3382. 49: uint32(0x02080201),
  3383. 50: uint32(0x00080201),
  3384. 51: uint32(0x00080000),
  3385. 52: uint32(0x02080201),
  3386. 53: uint32(0x00000001),
  3387. 54: uint32(0x02000200),
  3388. 55: uint32(0x00080201),
  3389. 56: uint32(0x00080001),
  3390. 57: uint32(0x00080200),
  3391. 58: uint32(0x02080000),
  3392. 59: uint32(0x02000201),
  3393. 60: uint32(0x00000201),
  3394. 61: uint32(0x02000000),
  3395. 62: uint32(0x02000001),
  3396. 63: uint32(0x02080200),
  3397. },
  3398. 4: {
  3399. 0: uint32(0x01000000),
  3400. 1: uint32(0x00002000),
  3401. 2: uint32(0x00000080),
  3402. 3: uint32(0x01002084),
  3403. 4: uint32(0x01002004),
  3404. 5: uint32(0x01000080),
  3405. 6: uint32(0x00002084),
  3406. 7: uint32(0x01002000),
  3407. 8: uint32(0x00002000),
  3408. 9: uint32(0x00000004),
  3409. 10: uint32(0x01000004),
  3410. 11: uint32(0x00002080),
  3411. 12: uint32(0x01000084),
  3412. 13: uint32(0x01002004),
  3413. 14: uint32(0x01002080),
  3414. 16: uint32(0x00002080),
  3415. 17: uint32(0x01000000),
  3416. 18: uint32(0x00002004),
  3417. 19: uint32(0x00000084),
  3418. 20: uint32(0x01000080),
  3419. 21: uint32(0x00002084),
  3420. 23: uint32(0x01000004),
  3421. 24: uint32(0x00000004),
  3422. 25: uint32(0x01000084),
  3423. 26: uint32(0x01002084),
  3424. 27: uint32(0x00002004),
  3425. 28: uint32(0x01002000),
  3426. 29: uint32(0x00000080),
  3427. 30: uint32(0x00000084),
  3428. 31: uint32(0x01002080),
  3429. 32: uint32(0x01002080),
  3430. 33: uint32(0x01000084),
  3431. 34: uint32(0x00002004),
  3432. 35: uint32(0x01002000),
  3433. 36: uint32(0x00002000),
  3434. 37: uint32(0x00000004),
  3435. 38: uint32(0x01000004),
  3436. 39: uint32(0x01000080),
  3437. 40: uint32(0x01000000),
  3438. 41: uint32(0x00002080),
  3439. 42: uint32(0x01002084),
  3440. 44: uint32(0x00002084),
  3441. 45: uint32(0x01000000),
  3442. 46: uint32(0x00000080),
  3443. 47: uint32(0x00002004),
  3444. 48: uint32(0x01000084),
  3445. 49: uint32(0x00000080),
  3446. 51: uint32(0x01002084),
  3447. 52: uint32(0x01002004),
  3448. 53: uint32(0x01002080),
  3449. 54: uint32(0x00000084),
  3450. 55: uint32(0x00002000),
  3451. 56: uint32(0x00002080),
  3452. 57: uint32(0x01002004),
  3453. 58: uint32(0x01000080),
  3454. 59: uint32(0x00000084),
  3455. 60: uint32(0x00000004),
  3456. 61: uint32(0x00002084),
  3457. 62: uint32(0x01002000),
  3458. 63: uint32(0x01000004),
  3459. },
  3460. 5: {
  3461. 0: uint32(0x10000008),
  3462. 1: uint32(0x00040008),
  3463. 3: uint32(0x10040400),
  3464. 4: uint32(0x00040008),
  3465. 5: uint32(0x00000400),
  3466. 6: uint32(0x10000408),
  3467. 7: uint32(0x00040000),
  3468. 8: uint32(0x00000408),
  3469. 9: uint32(0x10040408),
  3470. 10: uint32(0x00040400),
  3471. 11: uint32(0x10000000),
  3472. 12: uint32(0x10000400),
  3473. 13: uint32(0x10000008),
  3474. 14: uint32(0x10040000),
  3475. 15: uint32(0x00040408),
  3476. 16: uint32(0x00040000),
  3477. 17: uint32(0x10000408),
  3478. 18: uint32(0x10040008),
  3479. 20: uint32(0x00000400),
  3480. 21: uint32(0x00000008),
  3481. 22: uint32(0x10040400),
  3482. 23: uint32(0x10040008),
  3483. 24: uint32(0x10040408),
  3484. 25: uint32(0x10040000),
  3485. 26: uint32(0x10000000),
  3486. 27: uint32(0x00000408),
  3487. 28: uint32(0x00000008),
  3488. 29: uint32(0x00040400),
  3489. 30: uint32(0x00040408),
  3490. 31: uint32(0x10000400),
  3491. 32: uint32(0x00000408),
  3492. 33: uint32(0x10000000),
  3493. 34: uint32(0x10000400),
  3494. 35: uint32(0x00040408),
  3495. 36: uint32(0x10040400),
  3496. 37: uint32(0x00040008),
  3497. 39: uint32(0x10000400),
  3498. 40: uint32(0x10000000),
  3499. 41: uint32(0x00000400),
  3500. 42: uint32(0x10040008),
  3501. 43: uint32(0x00040000),
  3502. 44: uint32(0x00040008),
  3503. 45: uint32(0x10040408),
  3504. 46: uint32(0x00040400),
  3505. 47: uint32(0x00000008),
  3506. 48: uint32(0x10040408),
  3507. 49: uint32(0x00040400),
  3508. 50: uint32(0x00040000),
  3509. 51: uint32(0x10000408),
  3510. 52: uint32(0x10000008),
  3511. 53: uint32(0x10040000),
  3512. 54: uint32(0x00040408),
  3513. 56: uint32(0x00000400),
  3514. 57: uint32(0x10000008),
  3515. 58: uint32(0x10000408),
  3516. 59: uint32(0x10040400),
  3517. 60: uint32(0x10040000),
  3518. 61: uint32(0x00000408),
  3519. 62: uint32(0x00000008),
  3520. 63: uint32(0x10040008),
  3521. },
  3522. 6: {
  3523. 0: uint32(0x00000800),
  3524. 1: uint32(0x00000040),
  3525. 2: uint32(0x00200040),
  3526. 3: uint32(0x80200000),
  3527. 4: uint32(0x80200840),
  3528. 5: uint32(0x80000800),
  3529. 6: uint32(0x00000840),
  3530. 8: uint32(0x00200000),
  3531. 9: uint32(0x80200040),
  3532. 10: uint32(0x80000040),
  3533. 11: uint32(0x00200800),
  3534. 12: uint32(0x80000000),
  3535. 13: uint32(0x00200840),
  3536. 14: uint32(0x00200800),
  3537. 15: uint32(0x80000040),
  3538. 16: uint32(0x80200040),
  3539. 17: uint32(0x00000800),
  3540. 18: uint32(0x80000800),
  3541. 19: uint32(0x80200840),
  3542. 21: uint32(0x00200040),
  3543. 22: uint32(0x80200000),
  3544. 23: uint32(0x00000840),
  3545. 24: uint32(0x80200800),
  3546. 25: uint32(0x80000840),
  3547. 26: uint32(0x00200840),
  3548. 27: uint32(0x80000000),
  3549. 28: uint32(0x80000840),
  3550. 29: uint32(0x80200800),
  3551. 30: uint32(0x00000040),
  3552. 31: uint32(0x00200000),
  3553. 32: uint32(0x80000840),
  3554. 33: uint32(0x00200800),
  3555. 34: uint32(0x80200800),
  3556. 35: uint32(0x80000040),
  3557. 36: uint32(0x00000800),
  3558. 37: uint32(0x00000040),
  3559. 38: uint32(0x00200000),
  3560. 39: uint32(0x80200800),
  3561. 40: uint32(0x80200040),
  3562. 41: uint32(0x80000840),
  3563. 42: uint32(0x00000840),
  3564. 44: uint32(0x00000040),
  3565. 45: uint32(0x80200000),
  3566. 46: uint32(0x80000000),
  3567. 47: uint32(0x00200040),
  3568. 49: uint32(0x80200040),
  3569. 50: uint32(0x00200040),
  3570. 51: uint32(0x00000840),
  3571. 52: uint32(0x80000040),
  3572. 53: uint32(0x00000800),
  3573. 54: uint32(0x80200840),
  3574. 55: uint32(0x00200000),
  3575. 56: uint32(0x00200840),
  3576. 57: uint32(0x80000000),
  3577. 58: uint32(0x80000800),
  3578. 59: uint32(0x80200840),
  3579. 60: uint32(0x80200000),
  3580. 61: uint32(0x00200840),
  3581. 62: uint32(0x00200800),
  3582. 63: uint32(0x80000800),
  3583. },
  3584. 7: {
  3585. 0: uint32(0x04100010),
  3586. 1: uint32(0x04104000),
  3587. 2: uint32(0x00004010),
  3588. 4: uint32(0x04004000),
  3589. 5: uint32(0x00100010),
  3590. 6: uint32(0x04100000),
  3591. 7: uint32(0x04104010),
  3592. 8: uint32(0x00000010),
  3593. 9: uint32(0x04000000),
  3594. 10: uint32(0x00104000),
  3595. 11: uint32(0x00004010),
  3596. 12: uint32(0x00104010),
  3597. 13: uint32(0x04004010),
  3598. 14: uint32(0x04000010),
  3599. 15: uint32(0x04100000),
  3600. 16: uint32(0x00004000),
  3601. 17: uint32(0x00104010),
  3602. 18: uint32(0x00100010),
  3603. 19: uint32(0x04004000),
  3604. 20: uint32(0x04104010),
  3605. 21: uint32(0x04000010),
  3606. 23: uint32(0x00104000),
  3607. 24: uint32(0x04000000),
  3608. 25: uint32(0x00100000),
  3609. 26: uint32(0x04004010),
  3610. 27: uint32(0x04100010),
  3611. 28: uint32(0x00100000),
  3612. 29: uint32(0x00004000),
  3613. 30: uint32(0x04104000),
  3614. 31: uint32(0x00000010),
  3615. 32: uint32(0x00100000),
  3616. 33: uint32(0x00004000),
  3617. 34: uint32(0x04000010),
  3618. 35: uint32(0x04104010),
  3619. 36: uint32(0x00004010),
  3620. 37: uint32(0x04000000),
  3621. 39: uint32(0x00104000),
  3622. 40: uint32(0x04100010),
  3623. 41: uint32(0x04004010),
  3624. 42: uint32(0x04004000),
  3625. 43: uint32(0x00100010),
  3626. 44: uint32(0x04104000),
  3627. 45: uint32(0x00000010),
  3628. 46: uint32(0x00100010),
  3629. 47: uint32(0x04004000),
  3630. 48: uint32(0x04104010),
  3631. 49: uint32(0x00100000),
  3632. 50: uint32(0x04100000),
  3633. 51: uint32(0x04000010),
  3634. 52: uint32(0x00104000),
  3635. 53: uint32(0x00004010),
  3636. 54: uint32(0x04004010),
  3637. 55: uint32(0x04100000),
  3638. 56: uint32(0x00000010),
  3639. 57: uint32(0x04104000),
  3640. 58: uint32(0x00104010),
  3641. 60: uint32(0x04000000),
  3642. 61: uint32(0x04100010),
  3643. 62: uint32(0x00004000),
  3644. 63: uint32(0x00104010),
  3645. },
  3646. }
  3647. var _shifts2 = [16]uint8{
  3648. 2: uint8(1),
  3649. 3: uint8(1),
  3650. 4: uint8(1),
  3651. 5: uint8(1),
  3652. 6: uint8(1),
  3653. 7: uint8(1),
  3654. 9: uint8(1),
  3655. 10: uint8(1),
  3656. 11: uint8(1),
  3657. 12: uint8(1),
  3658. 13: uint8(1),
  3659. 14: uint8(1),
  3660. }
  3661. func X_XdmcpAuthSetup(tls *libc.TLS, key uintptr, schedule uintptr) {
  3662. var c, d, s, t TCARD32
  3663. var i int32
  3664. var in, k, v1, v10, v11, v2, v3, v4, v5, v6, v7, v8 uintptr
  3665. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = c, d, i, in, k, s, t, v1, v10, v11, v2, v3, v4, v5, v6, v7, v8
  3666. k = schedule
  3667. in = key
  3668. v1 = in
  3669. in++
  3670. c = uint32(*(*TCARD8)(unsafe.Pointer(v1)))
  3671. v2 = in
  3672. in++
  3673. c |= uint32(*(*TCARD8)(unsafe.Pointer(v2))) << int32(8)
  3674. v3 = in
  3675. in++
  3676. c |= uint32(*(*TCARD8)(unsafe.Pointer(v3))) << int32(16)
  3677. v4 = in
  3678. in++
  3679. c |= uint32(*(*TCARD8)(unsafe.Pointer(v4))) << int32(24)
  3680. v5 = in
  3681. in++
  3682. d = uint32(*(*TCARD8)(unsafe.Pointer(v5)))
  3683. v6 = in
  3684. in++
  3685. d |= uint32(*(*TCARD8)(unsafe.Pointer(v6))) << int32(8)
  3686. v7 = in
  3687. in++
  3688. d |= uint32(*(*TCARD8)(unsafe.Pointer(v7))) << int32(16)
  3689. v8 = in
  3690. in++
  3691. d |= uint32(*(*TCARD8)(unsafe.Pointer(v8))) << int32(24)
  3692. /* do PC1 in 60 simple operations */
  3693. t = (d>>libc.Int32FromInt32(4) ^ c) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0f0f0f0f))
  3694. c ^= t
  3695. d ^= t << libc.Int32FromInt32(4)
  3696. t = (c<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(2)) ^ c) & uint32(libc.Uint32FromUint32(0xcccc0000))
  3697. c = c ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(2))
  3698. t = (c<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1)) ^ c) & uint32(libc.Uint32FromUint32(0xaaaa0000))
  3699. c = c ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1))
  3700. t = (c<<(libc.Int32FromInt32(16)-libc.Int32FromInt32(8)) ^ c) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff0000))
  3701. c = c ^ t ^ t>>(libc.Int32FromInt32(16)-libc.Int32FromInt32(8))
  3702. t = (c<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1)) ^ c) & uint32(libc.Uint32FromUint32(0xaaaa0000))
  3703. c = c ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(1))
  3704. t = (d<<(libc.Int32FromInt32(16) - -libc.Int32FromInt32(8)) ^ d) & uint32(libc.Uint32FromUint32(0xff000000))
  3705. d = d ^ t ^ t>>(libc.Int32FromInt32(16) - -libc.Int32FromInt32(8))
  3706. t = (d<<(libc.Int32FromInt32(16)-libc.Int32FromInt32(8)) ^ d) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff0000))
  3707. d = d ^ t ^ t>>(libc.Int32FromInt32(16)-libc.Int32FromInt32(8))
  3708. t = (d<<(libc.Int32FromInt32(16)-libc.Int32FromInt32(2)) ^ d) & libc.Uint32FromInt32(libc.Int32FromInt32(0x33330000))
  3709. d = d ^ t ^ t>>(libc.Int32FromInt32(16)-libc.Int32FromInt32(2))
  3710. d = d&uint32(0x00aa00aa)<<int32(7) | d&uint32(0x55005500)>>int32(7) | d&uint32(0xaa55aa55)
  3711. d = d>>libc.Int32FromInt32(8) | c&uint32(0xf0000000)>>int32(4)
  3712. c &= uint32(0x0fffffff)
  3713. i = 0
  3714. for {
  3715. if !(i < int32(m_ITERATIONS)) {
  3716. break
  3717. }
  3718. if _shifts2[i] != 0 {
  3719. c = c>>libc.Int32FromInt32(2) | c<<libc.Int32FromInt32(26)
  3720. d = d>>libc.Int32FromInt32(2) | d<<libc.Int32FromInt32(26)
  3721. } else {
  3722. c = c>>libc.Int32FromInt32(1) | c<<libc.Int32FromInt32(27)
  3723. d = d>>libc.Int32FromInt32(1) | d<<libc.Int32FromInt32(27)
  3724. }
  3725. c &= uint32(0x0fffffff)
  3726. d &= uint32(0x0fffffff)
  3727. /* could be a few less shifts but I am to lazy at this
  3728. * point in time to investigate */
  3729. s = *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + uintptr(c&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + 1*256 + uintptr(c>>libc.Int32FromInt32(6)&uint32(0x03)|c>>libc.Int32FromInt32(7)&uint32(0x3c))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + 2*256 + uintptr(c>>libc.Int32FromInt32(13)&uint32(0x0f)|c>>libc.Int32FromInt32(14)&uint32(0x30))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + 3*256 + uintptr(c>>libc.Int32FromInt32(20)&uint32(0x01)|c>>libc.Int32FromInt32(21)&uint32(0x06)|c>>libc.Int32FromInt32(22)&uint32(0x38))*4))
  3730. t = *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + 4*256 + uintptr(d&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + 5*256 + uintptr(d>>libc.Int32FromInt32(7)&uint32(0x03)|d>>libc.Int32FromInt32(8)&uint32(0x3c))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + 6*256 + uintptr(d>>libc.Int32FromInt32(15)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_skb)) + 7*256 + uintptr(d>>libc.Int32FromInt32(21)&uint32(0x0f)|d>>libc.Int32FromInt32(22)&uint32(0x30))*4))
  3731. /* table contained 0213 4657 */
  3732. v10 = k
  3733. k += 4
  3734. *(*TCARD32)(unsafe.Pointer(v10)) = t<<libc.Int32FromInt32(16) | s&libc.Uint32FromInt32(0x0000ffff)
  3735. s = s>>libc.Int32FromInt32(16) | t&libc.Uint32FromUint32(0xffff0000)
  3736. s = s<<libc.Int32FromInt32(4) | s>>libc.Int32FromInt32(28)
  3737. v11 = k
  3738. k += 4
  3739. *(*TCARD32)(unsafe.Pointer(v11)) = s
  3740. goto _9
  3741. _9:
  3742. ;
  3743. i++
  3744. }
  3745. return
  3746. }
  3747. func X_XdmcpAuthDoIt(tls *libc.TLS, input uintptr, output uintptr, ks uintptr, encrypt int32) {
  3748. var i int32
  3749. var in, out, s, v1, v11, v12, v13, v14, v15, v16, v17, v18, v2, v3, v4, v5, v6, v7, v8 uintptr
  3750. var l, r, t, u TCARD32
  3751. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = i, in, l, out, r, s, t, u, v1, v11, v12, v13, v14, v15, v16, v17, v18, v2, v3, v4, v5, v6, v7, v8
  3752. in = input
  3753. out = output
  3754. v1 = in
  3755. in++
  3756. l = uint32(*(*TCARD8)(unsafe.Pointer(v1)))
  3757. v2 = in
  3758. in++
  3759. l |= uint32(*(*TCARD8)(unsafe.Pointer(v2))) << int32(8)
  3760. v3 = in
  3761. in++
  3762. l |= uint32(*(*TCARD8)(unsafe.Pointer(v3))) << int32(16)
  3763. v4 = in
  3764. in++
  3765. l |= uint32(*(*TCARD8)(unsafe.Pointer(v4))) << int32(24)
  3766. v5 = in
  3767. in++
  3768. r = uint32(*(*TCARD8)(unsafe.Pointer(v5)))
  3769. v6 = in
  3770. in++
  3771. r |= uint32(*(*TCARD8)(unsafe.Pointer(v6))) << int32(8)
  3772. v7 = in
  3773. in++
  3774. r |= uint32(*(*TCARD8)(unsafe.Pointer(v7))) << int32(16)
  3775. v8 = in
  3776. in++
  3777. r |= uint32(*(*TCARD8)(unsafe.Pointer(v8))) << int32(24)
  3778. /* do IP */
  3779. t = (r>>libc.Int32FromInt32(4) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0f0f0f0f))
  3780. l ^= t
  3781. r ^= t << libc.Int32FromInt32(4)
  3782. t = (l>>libc.Int32FromInt32(16) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0000ffff))
  3783. r ^= t
  3784. l ^= t << libc.Int32FromInt32(16)
  3785. t = (r>>libc.Int32FromInt32(2) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x33333333))
  3786. l ^= t
  3787. r ^= t << libc.Int32FromInt32(2)
  3788. t = (l>>libc.Int32FromInt32(8) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff00ff))
  3789. r ^= t
  3790. l ^= t << libc.Int32FromInt32(8)
  3791. t = (r>>libc.Int32FromInt32(1) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x55555555))
  3792. l ^= t
  3793. r ^= t << libc.Int32FromInt32(1)
  3794. /* r and l are reversed - remember that :-) */
  3795. t = l
  3796. l = r
  3797. r = t
  3798. s = ks
  3799. if encrypt != 0 {
  3800. i = 0
  3801. for {
  3802. if !(i < libc.Int32FromInt32(m_ITERATIONS)*libc.Int32FromInt32(2)) {
  3803. break
  3804. }
  3805. t = r<<libc.Int32FromInt32(1) | r>>libc.Int32FromInt32(31)
  3806. u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i)*4))
  3807. t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(1))*4))
  3808. t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
  3809. l ^= *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 1*256 + uintptr(t&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 3*256 + uintptr(t>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 5*256 + uintptr(t>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 7*256 + uintptr(t>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + uintptr(u&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 2*256 + uintptr(u>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 4*256 + uintptr(u>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 6*256 + uintptr(u>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) /* 1 */
  3810. t = l<<libc.Int32FromInt32(1) | l>>libc.Int32FromInt32(31)
  3811. u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(2))*4))
  3812. t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(2)+int32(1))*4))
  3813. t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
  3814. r ^= *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 1*256 + uintptr(t&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 3*256 + uintptr(t>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 5*256 + uintptr(t>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 7*256 + uintptr(t>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + uintptr(u&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 2*256 + uintptr(u>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 4*256 + uintptr(u>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 6*256 + uintptr(u>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) /* 2 */
  3815. goto _9
  3816. _9:
  3817. ;
  3818. i += int32(4)
  3819. }
  3820. } else {
  3821. i = libc.Int32FromInt32(m_ITERATIONS)*libc.Int32FromInt32(2) - libc.Int32FromInt32(2)
  3822. for {
  3823. if !(i >= 0) {
  3824. break
  3825. }
  3826. t = r<<libc.Int32FromInt32(1) | r>>libc.Int32FromInt32(31)
  3827. u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i)*4))
  3828. t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i+int32(1))*4))
  3829. t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
  3830. l ^= *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 1*256 + uintptr(t&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 3*256 + uintptr(t>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 5*256 + uintptr(t>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 7*256 + uintptr(t>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + uintptr(u&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 2*256 + uintptr(u>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 4*256 + uintptr(u>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 6*256 + uintptr(u>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) /* 1 */
  3831. t = l<<libc.Int32FromInt32(1) | l>>libc.Int32FromInt32(31)
  3832. u = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i-int32(2))*4))
  3833. t = t ^ *(*TCARD32)(unsafe.Pointer(s + uintptr(i-int32(2)+int32(1))*4))
  3834. t = t>>libc.Int32FromInt32(4) | t<<libc.Int32FromInt32(28)
  3835. r ^= *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 1*256 + uintptr(t&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 3*256 + uintptr(t>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 5*256 + uintptr(t>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 7*256 + uintptr(t>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + uintptr(u&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 2*256 + uintptr(u>>libc.Int32FromInt32(8)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 4*256 + uintptr(u>>libc.Int32FromInt32(16)&uint32(0x3f))*4)) | *(*TCARD32)(unsafe.Pointer(uintptr(unsafe.Pointer(&_SPtrans)) + 6*256 + uintptr(u>>libc.Int32FromInt32(24)&uint32(0x3f))*4)) /* 2 */
  3836. goto _10
  3837. _10:
  3838. ;
  3839. i -= int32(4)
  3840. }
  3841. }
  3842. /* swap l and r
  3843. * we will not do the swap so just remember they are
  3844. * reversed for the rest of the subroutine
  3845. * luckily by FP fixes this problem :-) */
  3846. t = (r>>libc.Int32FromInt32(1) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x55555555))
  3847. l ^= t
  3848. r ^= t << libc.Int32FromInt32(1)
  3849. t = (l>>libc.Int32FromInt32(8) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x00ff00ff))
  3850. r ^= t
  3851. l ^= t << libc.Int32FromInt32(8)
  3852. t = (r>>libc.Int32FromInt32(2) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x33333333))
  3853. l ^= t
  3854. r ^= t << libc.Int32FromInt32(2)
  3855. t = (l>>libc.Int32FromInt32(16) ^ r) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0000ffff))
  3856. r ^= t
  3857. l ^= t << libc.Int32FromInt32(16)
  3858. t = (r>>libc.Int32FromInt32(4) ^ l) & libc.Uint32FromInt32(libc.Int32FromInt32(0x0f0f0f0f))
  3859. l ^= t
  3860. r ^= t << libc.Int32FromInt32(4)
  3861. v11 = out
  3862. out++
  3863. *(*TCARD8)(unsafe.Pointer(v11)) = uint8(l & libc.Uint32FromInt32(0xff))
  3864. v12 = out
  3865. out++
  3866. *(*TCARD8)(unsafe.Pointer(v12)) = uint8(l >> libc.Int32FromInt32(8) & libc.Uint32FromInt32(0xff))
  3867. v13 = out
  3868. out++
  3869. *(*TCARD8)(unsafe.Pointer(v13)) = uint8(l >> libc.Int32FromInt32(16) & libc.Uint32FromInt32(0xff))
  3870. v14 = out
  3871. out++
  3872. *(*TCARD8)(unsafe.Pointer(v14)) = uint8(l >> libc.Int32FromInt32(24) & libc.Uint32FromInt32(0xff))
  3873. v15 = out
  3874. out++
  3875. *(*TCARD8)(unsafe.Pointer(v15)) = uint8(r & libc.Uint32FromInt32(0xff))
  3876. v16 = out
  3877. out++
  3878. *(*TCARD8)(unsafe.Pointer(v16)) = uint8(r >> libc.Int32FromInt32(8) & libc.Uint32FromInt32(0xff))
  3879. v17 = out
  3880. out++
  3881. *(*TCARD8)(unsafe.Pointer(v17)) = uint8(r >> libc.Int32FromInt32(16) & libc.Uint32FromInt32(0xff))
  3882. v18 = out
  3883. out++
  3884. *(*TCARD8)(unsafe.Pointer(v18)) = uint8(r >> libc.Int32FromInt32(24) & libc.Uint32FromInt32(0xff))
  3885. return
  3886. }