ccgo_linux_loong64.go 716 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584
  1. // Code generated for linux/loong64 by 'generator --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 --libc modernc.org/libc --package-name=libz -o libz.a.go libz.a', DO NOT EDIT.
  2. //go:build linux && loong64
  3. package libz
  4. import (
  5. "reflect"
  6. "unsafe"
  7. "modernc.org/libc"
  8. )
  9. var _ reflect.Type
  10. var _ unsafe.Pointer
  11. const m_ARG_MAX = 131072
  12. const m_BASE = 65521
  13. const m_BC_BASE_MAX = 99
  14. const m_BC_DIM_MAX = 2048
  15. const m_BC_SCALE_MAX = 99
  16. const m_BC_STRING_MAX = 1000
  17. const m_BIG_ENDIAN = "__BIG_ENDIAN"
  18. const m_BYTE_ORDER = "__BYTE_ORDER"
  19. const m_CHARCLASS_NAME_MAX = 14
  20. const m_CHAR_BIT = 8
  21. const m_CHAR_MAX = 255
  22. const m_CHAR_MIN = 0
  23. const m_COLL_WEIGHTS_MAX = 2
  24. const m_DEF_MEM_LEVEL = 8
  25. const m_DEF_WBITS = "MAX_WBITS"
  26. const m_DELAYTIMER_MAX = 0x7fffffff
  27. const m_DYN_TREES = 2
  28. const m_EXIT_FAILURE = 1
  29. const m_EXIT_SUCCESS = 0
  30. const m_EXPR_NEST_MAX = 32
  31. const m_FD_SETSIZE = 1024
  32. const m_FILESIZEBITS = 64
  33. const m_F_LOCK = 1
  34. const m_F_OK = 0
  35. const m_F_TEST = 3
  36. const m_F_TLOCK = 2
  37. const m_F_ULOCK = 0
  38. const m_HAVE_HIDDEN = 1
  39. const m_HOST_NAME_MAX = 255
  40. const m_INT_MAX = 0x7fffffff
  41. const m_IOV_MAX = 1024
  42. const m_LINE_MAX = 4096
  43. const m_LITTLE_ENDIAN = "__LITTLE_ENDIAN"
  44. const m_LLONG_MAX = 0x7fffffffffffffff
  45. const m_LOGIN_NAME_MAX = 256
  46. const m_LONG_BIT = 64
  47. const m_LONG_MAX = "__LONG_MAX"
  48. const m_L_INCR = 1
  49. const m_L_SET = 0
  50. const m_L_XTND = 2
  51. const m_MAX_MATCH = 258
  52. const m_MAX_MEM_LEVEL = 9
  53. const m_MAX_WBITS = 15
  54. const m_MB_LEN_MAX = 4
  55. const m_MIN_MATCH = 3
  56. const m_MQ_PRIO_MAX = 32768
  57. const m_NAME_MAX = 255
  58. const m_NDEBUG = 1
  59. const m_NGROUPS_MAX = 32
  60. const m_NL_ARGMAX = 9
  61. const m_NL_LANGMAX = 32
  62. const m_NL_MSGMAX = 32767
  63. const m_NL_NMAX = 16
  64. const m_NL_SETMAX = 255
  65. const m_NL_TEXTMAX = 2048
  66. const m_NMAX = 5552
  67. const m_NZERO = 20
  68. const m_OS_CODE = 3
  69. const m_PATH_MAX = 4096
  70. const m_PDP_ENDIAN = "__PDP_ENDIAN"
  71. const m_PIPE_BUF = 4096
  72. const m_POSIX_CLOSE_RESTART = 0
  73. const m_PRESET_DICT = 0x20
  74. const m_PTHREAD_DESTRUCTOR_ITERATIONS = 4
  75. const m_PTHREAD_KEYS_MAX = 128
  76. const m_PTHREAD_STACK_MIN = 2048
  77. const m_RAND_MAX = 0x7fffffff
  78. const m_RE_DUP_MAX = 255
  79. const m_R_OK = 4
  80. const m_SCHAR_MAX = 127
  81. const m_SEEK_CUR = 1
  82. const m_SEEK_DATA = 3
  83. const m_SEEK_END = 2
  84. const m_SEEK_HOLE = 4
  85. const m_SEEK_SET = 0
  86. const m_SEM_NSEMS_MAX = 256
  87. const m_SEM_VALUE_MAX = 0x7fffffff
  88. const m_SHRT_MAX = 0x7fff
  89. const m_SSIZE_MAX = "LONG_MAX"
  90. const m_STATIC_TREES = 1
  91. const m_STDERR_FILENO = 2
  92. const m_STDIN_FILENO = 0
  93. const m_STDOUT_FILENO = 1
  94. const m_STORED_BLOCK = 0
  95. const m_SYMLOOP_MAX = 40
  96. const m_TTY_NAME_MAX = 32
  97. const m_TZNAME_MAX = 6
  98. const m_UCHAR_MAX = 255
  99. const m_UINT_MAX = 0xffffffff
  100. const m_USHRT_MAX = 0xffff
  101. const m_WNOHANG = 1
  102. const m_WORD_BIT = 32
  103. const m_WUNTRACED = 2
  104. const m_W_OK = 2
  105. const m_X_OK = 1
  106. const m_ZEXTERN = "extern"
  107. const m_ZLIB_VERNUM = 0x1310
  108. const m_ZLIB_VERSION = "1.3.1"
  109. const m_ZLIB_VER_MAJOR = 1
  110. const m_ZLIB_VER_MINOR = 3
  111. const m_ZLIB_VER_REVISION = 1
  112. const m_ZLIB_VER_SUBREVISION = 0
  113. const m_Z_ASCII = "Z_TEXT"
  114. const m_Z_BEST_COMPRESSION = 9
  115. const m_Z_BEST_SPEED = 1
  116. const m_Z_BINARY = 0
  117. const m_Z_BLOCK = 5
  118. const m_Z_DEFAULT_STRATEGY = 0
  119. const m_Z_DEFLATED = 8
  120. const m_Z_FILTERED = 1
  121. const m_Z_FINISH = 4
  122. const m_Z_FIXED = 4
  123. const m_Z_FULL_FLUSH = 3
  124. const m_Z_HUFFMAN_ONLY = 2
  125. const m_Z_NEED_DICT = 2
  126. const m_Z_NO_COMPRESSION = 0
  127. const m_Z_NO_FLUSH = 0
  128. const m_Z_NULL = 0
  129. const m_Z_OK = 0
  130. const m_Z_PARTIAL_FLUSH = 1
  131. const m_Z_RLE = 3
  132. const m_Z_STREAM_END = 1
  133. const m_Z_SYNC_FLUSH = 2
  134. const m_Z_TEXT = 1
  135. const m_Z_TREES = 6
  136. const m_Z_U4 = "unsigned"
  137. const m_Z_UNKNOWN = 2
  138. const m__ABILP64 = 3
  139. const m__CS_GNU_LIBC_VERSION = 2
  140. const m__CS_GNU_LIBPTHREAD_VERSION = 3
  141. const m__CS_PATH = 0
  142. const m__CS_POSIX_V5_WIDTH_RESTRICTED_ENVS = 4
  143. const m__CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116
  144. const m__CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117
  145. const m__CS_POSIX_V6_ILP32_OFF32_LIBS = 1118
  146. const m__CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119
  147. const m__CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120
  148. const m__CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121
  149. const m__CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122
  150. const m__CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123
  151. const m__CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124
  152. const m__CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125
  153. const m__CS_POSIX_V6_LP64_OFF64_LIBS = 1126
  154. const m__CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127
  155. const m__CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128
  156. const m__CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129
  157. const m__CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130
  158. const m__CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131
  159. const m__CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 1
  160. const m__CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132
  161. const m__CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133
  162. const m__CS_POSIX_V7_ILP32_OFF32_LIBS = 1134
  163. const m__CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135
  164. const m__CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136
  165. const m__CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137
  166. const m__CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138
  167. const m__CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139
  168. const m__CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140
  169. const m__CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141
  170. const m__CS_POSIX_V7_LP64_OFF64_LIBS = 1142
  171. const m__CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143
  172. const m__CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144
  173. const m__CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145
  174. const m__CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146
  175. const m__CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147
  176. const m__CS_POSIX_V7_THREADS_CFLAGS = 1150
  177. const m__CS_POSIX_V7_THREADS_LDFLAGS = 1151
  178. const m__CS_POSIX_V7_WIDTH_RESTRICTED_ENVS = 5
  179. const m__CS_V6_ENV = 1148
  180. const m__CS_V7_ENV = 1149
  181. const m__GNU_SOURCE = 1
  182. const m__LARGEFILE64_SOURCE = 1
  183. const m__LOONGARCH_ARCH = "la64v1.0"
  184. const m__LOONGARCH_FPSET = 32
  185. const m__LOONGARCH_SIM = "_ABILP64"
  186. const m__LOONGARCH_SPFPSET = 32
  187. const m__LOONGARCH_SZINT = 32
  188. const m__LOONGARCH_SZLONG = 64
  189. const m__LOONGARCH_SZPTR = 64
  190. const m__LOONGARCH_TUNE = "generic"
  191. const m__LP64 = 1
  192. const m__PC_2_SYMLINKS = 20
  193. const m__PC_ALLOC_SIZE_MIN = 18
  194. const m__PC_ASYNC_IO = 10
  195. const m__PC_CHOWN_RESTRICTED = 6
  196. const m__PC_FILESIZEBITS = 13
  197. const m__PC_LINK_MAX = 0
  198. const m__PC_MAX_CANON = 1
  199. const m__PC_MAX_INPUT = 2
  200. const m__PC_NAME_MAX = 3
  201. const m__PC_NO_TRUNC = 7
  202. const m__PC_PATH_MAX = 4
  203. const m__PC_PIPE_BUF = 5
  204. const m__PC_PRIO_IO = 11
  205. const m__PC_REC_INCR_XFER_SIZE = 14
  206. const m__PC_REC_MAX_XFER_SIZE = 15
  207. const m__PC_REC_MIN_XFER_SIZE = 16
  208. const m__PC_REC_XFER_ALIGN = 17
  209. const m__PC_SOCK_MAXBUF = 12
  210. const m__PC_SYMLINK_MAX = 19
  211. const m__PC_SYNC_IO = 9
  212. const m__PC_VDISABLE = 8
  213. const m__POSIX2_BC_BASE_MAX = 99
  214. const m__POSIX2_BC_DIM_MAX = 2048
  215. const m__POSIX2_BC_SCALE_MAX = 99
  216. const m__POSIX2_BC_STRING_MAX = 1000
  217. const m__POSIX2_CHARCLASS_NAME_MAX = 14
  218. const m__POSIX2_COLL_WEIGHTS_MAX = 2
  219. const m__POSIX2_C_BIND = "_POSIX_VERSION"
  220. const m__POSIX2_EXPR_NEST_MAX = 32
  221. const m__POSIX2_LINE_MAX = 2048
  222. const m__POSIX2_RE_DUP_MAX = 255
  223. const m__POSIX2_VERSION = "_POSIX_VERSION"
  224. const m__POSIX_ADVISORY_INFO = "_POSIX_VERSION"
  225. const m__POSIX_AIO_LISTIO_MAX = 2
  226. const m__POSIX_AIO_MAX = 1
  227. const m__POSIX_ARG_MAX = 4096
  228. const m__POSIX_ASYNCHRONOUS_IO = "_POSIX_VERSION"
  229. const m__POSIX_BARRIERS = "_POSIX_VERSION"
  230. const m__POSIX_CHILD_MAX = 25
  231. const m__POSIX_CHOWN_RESTRICTED = 1
  232. const m__POSIX_CLOCKRES_MIN = 20000000
  233. const m__POSIX_CLOCK_SELECTION = "_POSIX_VERSION"
  234. const m__POSIX_CPUTIME = "_POSIX_VERSION"
  235. const m__POSIX_DELAYTIMER_MAX = 32
  236. const m__POSIX_FSYNC = "_POSIX_VERSION"
  237. const m__POSIX_HOST_NAME_MAX = 255
  238. const m__POSIX_IPV6 = "_POSIX_VERSION"
  239. const m__POSIX_JOB_CONTROL = 1
  240. const m__POSIX_LINK_MAX = 8
  241. const m__POSIX_LOGIN_NAME_MAX = 9
  242. const m__POSIX_MAPPED_FILES = "_POSIX_VERSION"
  243. const m__POSIX_MAX_CANON = 255
  244. const m__POSIX_MAX_INPUT = 255
  245. const m__POSIX_MEMLOCK = "_POSIX_VERSION"
  246. const m__POSIX_MEMLOCK_RANGE = "_POSIX_VERSION"
  247. const m__POSIX_MEMORY_PROTECTION = "_POSIX_VERSION"
  248. const m__POSIX_MESSAGE_PASSING = "_POSIX_VERSION"
  249. const m__POSIX_MONOTONIC_CLOCK = "_POSIX_VERSION"
  250. const m__POSIX_MQ_OPEN_MAX = 8
  251. const m__POSIX_MQ_PRIO_MAX = 32
  252. const m__POSIX_NAME_MAX = 14
  253. const m__POSIX_NGROUPS_MAX = 8
  254. const m__POSIX_NO_TRUNC = 1
  255. const m__POSIX_OPEN_MAX = 20
  256. const m__POSIX_PATH_MAX = 256
  257. const m__POSIX_PIPE_BUF = 512
  258. const m__POSIX_RAW_SOCKETS = "_POSIX_VERSION"
  259. const m__POSIX_READER_WRITER_LOCKS = "_POSIX_VERSION"
  260. const m__POSIX_REALTIME_SIGNALS = "_POSIX_VERSION"
  261. const m__POSIX_REGEXP = 1
  262. const m__POSIX_RE_DUP_MAX = 255
  263. const m__POSIX_RTSIG_MAX = 8
  264. const m__POSIX_SAVED_IDS = 1
  265. const m__POSIX_SEMAPHORES = "_POSIX_VERSION"
  266. const m__POSIX_SEM_NSEMS_MAX = 256
  267. const m__POSIX_SEM_VALUE_MAX = 32767
  268. const m__POSIX_SHARED_MEMORY_OBJECTS = "_POSIX_VERSION"
  269. const m__POSIX_SHELL = 1
  270. const m__POSIX_SIGQUEUE_MAX = 32
  271. const m__POSIX_SPAWN = "_POSIX_VERSION"
  272. const m__POSIX_SPIN_LOCKS = "_POSIX_VERSION"
  273. const m__POSIX_SSIZE_MAX = 32767
  274. const m__POSIX_SS_REPL_MAX = 4
  275. const m__POSIX_STREAM_MAX = 8
  276. const m__POSIX_SYMLINK_MAX = 255
  277. const m__POSIX_SYMLOOP_MAX = 8
  278. const m__POSIX_THREADS = "_POSIX_VERSION"
  279. const m__POSIX_THREAD_ATTR_STACKADDR = "_POSIX_VERSION"
  280. const m__POSIX_THREAD_ATTR_STACKSIZE = "_POSIX_VERSION"
  281. const m__POSIX_THREAD_CPUTIME = "_POSIX_VERSION"
  282. const m__POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
  283. const m__POSIX_THREAD_KEYS_MAX = 128
  284. const m__POSIX_THREAD_PRIORITY_SCHEDULING = "_POSIX_VERSION"
  285. const m__POSIX_THREAD_PROCESS_SHARED = "_POSIX_VERSION"
  286. const m__POSIX_THREAD_SAFE_FUNCTIONS = "_POSIX_VERSION"
  287. const m__POSIX_THREAD_THREADS_MAX = 64
  288. const m__POSIX_TIMEOUTS = "_POSIX_VERSION"
  289. const m__POSIX_TIMERS = "_POSIX_VERSION"
  290. const m__POSIX_TIMER_MAX = 32
  291. const m__POSIX_TRACE_EVENT_NAME_MAX = 30
  292. const m__POSIX_TRACE_NAME_MAX = 8
  293. const m__POSIX_TRACE_SYS_MAX = 8
  294. const m__POSIX_TRACE_USER_EVENT_MAX = 32
  295. const m__POSIX_TTY_NAME_MAX = 9
  296. const m__POSIX_TZNAME_MAX = 6
  297. const m__POSIX_V6_LP64_OFF64 = 1
  298. const m__POSIX_V7_LP64_OFF64 = 1
  299. const m__POSIX_VDISABLE = 0
  300. const m__POSIX_VERSION = 200809
  301. const m__SC_2_CHAR_TERM = 95
  302. const m__SC_2_C_BIND = 47
  303. const m__SC_2_C_DEV = 48
  304. const m__SC_2_FORT_DEV = 49
  305. const m__SC_2_FORT_RUN = 50
  306. const m__SC_2_LOCALEDEF = 52
  307. const m__SC_2_PBS = 168
  308. const m__SC_2_PBS_ACCOUNTING = 169
  309. const m__SC_2_PBS_CHECKPOINT = 175
  310. const m__SC_2_PBS_LOCATE = 170
  311. const m__SC_2_PBS_MESSAGE = 171
  312. const m__SC_2_PBS_TRACK = 172
  313. const m__SC_2_SW_DEV = 51
  314. const m__SC_2_UPE = 97
  315. const m__SC_2_VERSION = 46
  316. const m__SC_ADVISORY_INFO = 132
  317. const m__SC_AIO_LISTIO_MAX = 23
  318. const m__SC_AIO_MAX = 24
  319. const m__SC_AIO_PRIO_DELTA_MAX = 25
  320. const m__SC_ARG_MAX = 0
  321. const m__SC_ASYNCHRONOUS_IO = 12
  322. const m__SC_ATEXIT_MAX = 87
  323. const m__SC_AVPHYS_PAGES = 86
  324. const m__SC_BARRIERS = 133
  325. const m__SC_BC_BASE_MAX = 36
  326. const m__SC_BC_DIM_MAX = 37
  327. const m__SC_BC_SCALE_MAX = 38
  328. const m__SC_BC_STRING_MAX = 39
  329. const m__SC_CHILD_MAX = 1
  330. const m__SC_CLK_TCK = 2
  331. const m__SC_CLOCK_SELECTION = 137
  332. const m__SC_COLL_WEIGHTS_MAX = 40
  333. const m__SC_CPUTIME = 138
  334. const m__SC_DELAYTIMER_MAX = 26
  335. const m__SC_EXPR_NEST_MAX = 42
  336. const m__SC_FSYNC = 15
  337. const m__SC_GETGR_R_SIZE_MAX = 69
  338. const m__SC_GETPW_R_SIZE_MAX = 70
  339. const m__SC_HOST_NAME_MAX = 180
  340. const m__SC_IOV_MAX = 60
  341. const m__SC_IPV6 = 235
  342. const m__SC_JOB_CONTROL = 7
  343. const m__SC_LINE_MAX = 43
  344. const m__SC_LOGIN_NAME_MAX = 71
  345. const m__SC_MAPPED_FILES = 16
  346. const m__SC_MEMLOCK = 17
  347. const m__SC_MEMLOCK_RANGE = 18
  348. const m__SC_MEMORY_PROTECTION = 19
  349. const m__SC_MESSAGE_PASSING = 20
  350. const m__SC_MINSIGSTKSZ = 249
  351. const m__SC_MONOTONIC_CLOCK = 149
  352. const m__SC_MQ_OPEN_MAX = 27
  353. const m__SC_MQ_PRIO_MAX = 28
  354. const m__SC_NGROUPS_MAX = 3
  355. const m__SC_NPROCESSORS_CONF = 83
  356. const m__SC_NPROCESSORS_ONLN = 84
  357. const m__SC_NZERO = 109
  358. const m__SC_OPEN_MAX = 4
  359. const m__SC_PAGESIZE = 30
  360. const m__SC_PAGE_SIZE = 30
  361. const m__SC_PASS_MAX = 88
  362. const m__SC_PHYS_PAGES = 85
  363. const m__SC_PRIORITIZED_IO = 13
  364. const m__SC_PRIORITY_SCHEDULING = 10
  365. const m__SC_RAW_SOCKETS = 236
  366. const m__SC_READER_WRITER_LOCKS = 153
  367. const m__SC_REALTIME_SIGNALS = 9
  368. const m__SC_REGEXP = 155
  369. const m__SC_RE_DUP_MAX = 44
  370. const m__SC_RTSIG_MAX = 31
  371. const m__SC_SAVED_IDS = 8
  372. const m__SC_SEMAPHORES = 21
  373. const m__SC_SEM_NSEMS_MAX = 32
  374. const m__SC_SEM_VALUE_MAX = 33
  375. const m__SC_SHARED_MEMORY_OBJECTS = 22
  376. const m__SC_SHELL = 157
  377. const m__SC_SIGQUEUE_MAX = 34
  378. const m__SC_SIGSTKSZ = 250
  379. const m__SC_SPAWN = 159
  380. const m__SC_SPIN_LOCKS = 154
  381. const m__SC_SPORADIC_SERVER = 160
  382. const m__SC_SS_REPL_MAX = 241
  383. const m__SC_STREAMS = 174
  384. const m__SC_STREAM_MAX = 5
  385. const m__SC_SYMLOOP_MAX = 173
  386. const m__SC_SYNCHRONIZED_IO = 14
  387. const m__SC_THREADS = 67
  388. const m__SC_THREAD_ATTR_STACKADDR = 77
  389. const m__SC_THREAD_ATTR_STACKSIZE = 78
  390. const m__SC_THREAD_CPUTIME = 139
  391. const m__SC_THREAD_DESTRUCTOR_ITERATIONS = 73
  392. const m__SC_THREAD_KEYS_MAX = 74
  393. const m__SC_THREAD_PRIORITY_SCHEDULING = 79
  394. const m__SC_THREAD_PRIO_INHERIT = 80
  395. const m__SC_THREAD_PRIO_PROTECT = 81
  396. const m__SC_THREAD_PROCESS_SHARED = 82
  397. const m__SC_THREAD_ROBUST_PRIO_INHERIT = 247
  398. const m__SC_THREAD_ROBUST_PRIO_PROTECT = 248
  399. const m__SC_THREAD_SAFE_FUNCTIONS = 68
  400. const m__SC_THREAD_SPORADIC_SERVER = 161
  401. const m__SC_THREAD_STACK_MIN = 75
  402. const m__SC_THREAD_THREADS_MAX = 76
  403. const m__SC_TIMEOUTS = 164
  404. const m__SC_TIMERS = 11
  405. const m__SC_TIMER_MAX = 35
  406. const m__SC_TRACE = 181
  407. const m__SC_TRACE_EVENT_FILTER = 182
  408. const m__SC_TRACE_EVENT_NAME_MAX = 242
  409. const m__SC_TRACE_INHERIT = 183
  410. const m__SC_TRACE_LOG = 184
  411. const m__SC_TRACE_NAME_MAX = 243
  412. const m__SC_TRACE_SYS_MAX = 244
  413. const m__SC_TRACE_USER_EVENT_MAX = 245
  414. const m__SC_TTY_NAME_MAX = 72
  415. const m__SC_TYPED_MEMORY_OBJECTS = 165
  416. const m__SC_TZNAME_MAX = 6
  417. const m__SC_UIO_MAXIOV = 60
  418. const m__SC_V6_ILP32_OFF32 = 176
  419. const m__SC_V6_ILP32_OFFBIG = 177
  420. const m__SC_V6_LP64_OFF64 = 178
  421. const m__SC_V6_LPBIG_OFFBIG = 179
  422. const m__SC_V7_ILP32_OFF32 = 237
  423. const m__SC_V7_ILP32_OFFBIG = 238
  424. const m__SC_V7_LP64_OFF64 = 239
  425. const m__SC_V7_LPBIG_OFFBIG = 240
  426. const m__SC_VERSION = 29
  427. const m__SC_XBS5_ILP32_OFF32 = 125
  428. const m__SC_XBS5_ILP32_OFFBIG = 126
  429. const m__SC_XBS5_LP64_OFF64 = 127
  430. const m__SC_XBS5_LPBIG_OFFBIG = 128
  431. const m__SC_XOPEN_CRYPT = 92
  432. const m__SC_XOPEN_ENH_I18N = 93
  433. const m__SC_XOPEN_LEGACY = 129
  434. const m__SC_XOPEN_REALTIME = 130
  435. const m__SC_XOPEN_REALTIME_THREADS = 131
  436. const m__SC_XOPEN_SHM = 94
  437. const m__SC_XOPEN_STREAMS = 246
  438. const m__SC_XOPEN_UNIX = 91
  439. const m__SC_XOPEN_VERSION = 89
  440. const m__SC_XOPEN_XCU_VERSION = 90
  441. const m__SC_XOPEN_XPG2 = 98
  442. const m__SC_XOPEN_XPG3 = 99
  443. const m__SC_XOPEN_XPG4 = 100
  444. const m__STDC_PREDEF_H = 1
  445. const m__XOPEN_ENH_I18N = 1
  446. const m__XOPEN_IOV_MAX = 16
  447. const m__XOPEN_NAME_MAX = 255
  448. const m__XOPEN_PATH_MAX = 1024
  449. const m__XOPEN_UNIX = 1
  450. const m__XOPEN_VERSION = 700
  451. const m___ACCUM_EPSILON__ = "0x1P-15K"
  452. const m___ACCUM_FBIT__ = 15
  453. const m___ACCUM_IBIT__ = 16
  454. const m___ACCUM_MAX__ = "0X7FFFFFFFP-15K"
  455. const m___ATOMIC_ACQUIRE = 2
  456. const m___ATOMIC_ACQ_REL = 4
  457. const m___ATOMIC_CONSUME = 1
  458. const m___ATOMIC_RELAXED = 0
  459. const m___ATOMIC_RELEASE = 3
  460. const m___ATOMIC_SEQ_CST = 5
  461. const m___BIGGEST_ALIGNMENT__ = 16
  462. const m___BIG_ENDIAN = 4321
  463. const m___BYTE_ORDER = 1234
  464. const m___BYTE_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  465. const m___CCGO__ = 1
  466. const m___CHAR_BIT__ = 8
  467. const m___DA_FBIT__ = 31
  468. const m___DA_IBIT__ = 32
  469. const m___DBL_DECIMAL_DIG__ = 17
  470. const m___DBL_DIG__ = 15
  471. const m___DBL_HAS_DENORM__ = 1
  472. const m___DBL_HAS_INFINITY__ = 1
  473. const m___DBL_HAS_QUIET_NAN__ = 1
  474. const m___DBL_IS_IEC_60559__ = 1
  475. const m___DBL_MANT_DIG__ = 53
  476. const m___DBL_MAX_10_EXP__ = 308
  477. const m___DBL_MAX_EXP__ = 1024
  478. const m___DECIMAL_DIG__ = 36
  479. const m___DEC_EVAL_METHOD__ = 2
  480. const m___DQ_FBIT__ = 63
  481. const m___DQ_IBIT__ = 0
  482. const m___ELF__ = 1
  483. const m___FINITE_MATH_ONLY__ = 0
  484. const m___FLOAT128_TYPE__ = 1
  485. const m___FLOAT_WORD_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  486. const m___FLT128_DECIMAL_DIG__ = 36
  487. const m___FLT128_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  488. const m___FLT128_DIG__ = 33
  489. const m___FLT128_EPSILON__ = 1.92592994438723585305597794258492732e-34
  490. const m___FLT128_HAS_DENORM__ = 1
  491. const m___FLT128_HAS_INFINITY__ = 1
  492. const m___FLT128_HAS_QUIET_NAN__ = 1
  493. const m___FLT128_IS_IEC_60559__ = 1
  494. const m___FLT128_MANT_DIG__ = 113
  495. const m___FLT128_MAX_10_EXP__ = 4932
  496. const m___FLT128_MAX_EXP__ = 16384
  497. const m___FLT128_MAX__ = "1.18973149535723176508575932662800702e+4932"
  498. const m___FLT128_MIN__ = 3.36210314311209350626267781732175260e-4932
  499. const m___FLT128_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  500. const m___FLT32X_DECIMAL_DIG__ = 17
  501. const m___FLT32X_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  502. const m___FLT32X_DIG__ = 15
  503. const m___FLT32X_EPSILON__ = 2.22044604925031308084726333618164062e-16
  504. const m___FLT32X_HAS_DENORM__ = 1
  505. const m___FLT32X_HAS_INFINITY__ = 1
  506. const m___FLT32X_HAS_QUIET_NAN__ = 1
  507. const m___FLT32X_IS_IEC_60559__ = 1
  508. const m___FLT32X_MANT_DIG__ = 53
  509. const m___FLT32X_MAX_10_EXP__ = 308
  510. const m___FLT32X_MAX_EXP__ = 1024
  511. const m___FLT32X_MAX__ = 1.79769313486231570814527423731704357e+308
  512. const m___FLT32X_MIN__ = 2.22507385850720138309023271733240406e-308
  513. const m___FLT32X_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  514. const m___FLT32_DECIMAL_DIG__ = 9
  515. const m___FLT32_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
  516. const m___FLT32_DIG__ = 6
  517. const m___FLT32_EPSILON__ = 1.19209289550781250000000000000000000e-7
  518. const m___FLT32_HAS_DENORM__ = 1
  519. const m___FLT32_HAS_INFINITY__ = 1
  520. const m___FLT32_HAS_QUIET_NAN__ = 1
  521. const m___FLT32_IS_IEC_60559__ = 1
  522. const m___FLT32_MANT_DIG__ = 24
  523. const m___FLT32_MAX_10_EXP__ = 38
  524. const m___FLT32_MAX_EXP__ = 128
  525. const m___FLT32_MAX__ = 3.40282346638528859811704183484516925e+38
  526. const m___FLT32_MIN__ = 1.17549435082228750796873653722224568e-38
  527. const m___FLT32_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
  528. const m___FLT64X_DECIMAL_DIG__ = 36
  529. const m___FLT64X_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  530. const m___FLT64X_DIG__ = 33
  531. const m___FLT64X_EPSILON__ = 1.92592994438723585305597794258492732e-34
  532. const m___FLT64X_HAS_DENORM__ = 1
  533. const m___FLT64X_HAS_INFINITY__ = 1
  534. const m___FLT64X_HAS_QUIET_NAN__ = 1
  535. const m___FLT64X_IS_IEC_60559__ = 1
  536. const m___FLT64X_MANT_DIG__ = 113
  537. const m___FLT64X_MAX_10_EXP__ = 4932
  538. const m___FLT64X_MAX_EXP__ = 16384
  539. const m___FLT64X_MAX__ = "1.18973149535723176508575932662800702e+4932"
  540. const m___FLT64X_MIN__ = 3.36210314311209350626267781732175260e-4932
  541. const m___FLT64X_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  542. const m___FLT64_DECIMAL_DIG__ = 17
  543. const m___FLT64_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  544. const m___FLT64_DIG__ = 15
  545. const m___FLT64_EPSILON__ = 2.22044604925031308084726333618164062e-16
  546. const m___FLT64_HAS_DENORM__ = 1
  547. const m___FLT64_HAS_INFINITY__ = 1
  548. const m___FLT64_HAS_QUIET_NAN__ = 1
  549. const m___FLT64_IS_IEC_60559__ = 1
  550. const m___FLT64_MANT_DIG__ = 53
  551. const m___FLT64_MAX_10_EXP__ = 308
  552. const m___FLT64_MAX_EXP__ = 1024
  553. const m___FLT64_MAX__ = 1.79769313486231570814527423731704357e+308
  554. const m___FLT64_MIN__ = 2.22507385850720138309023271733240406e-308
  555. const m___FLT64_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  556. const m___FLT_DECIMAL_DIG__ = 9
  557. const m___FLT_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
  558. const m___FLT_DIG__ = 6
  559. const m___FLT_EPSILON__ = 1.19209289550781250000000000000000000e-7
  560. const m___FLT_EVAL_METHOD_TS_18661_3__ = 0
  561. const m___FLT_EVAL_METHOD__ = 0
  562. const m___FLT_HAS_DENORM__ = 1
  563. const m___FLT_HAS_INFINITY__ = 1
  564. const m___FLT_HAS_QUIET_NAN__ = 1
  565. const m___FLT_IS_IEC_60559__ = 1
  566. const m___FLT_MANT_DIG__ = 24
  567. const m___FLT_MAX_10_EXP__ = 38
  568. const m___FLT_MAX_EXP__ = 128
  569. const m___FLT_MAX__ = 3.40282346638528859811704183484516925e+38
  570. const m___FLT_MIN__ = 1.17549435082228750796873653722224568e-38
  571. const m___FLT_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
  572. const m___FLT_RADIX__ = 2
  573. const m___FP_FAST_FMA = 1
  574. const m___FP_FAST_FMAF = 1
  575. const m___FP_FAST_FMAF32 = 1
  576. const m___FP_FAST_FMAF32x = 1
  577. const m___FP_FAST_FMAF64 = 1
  578. const m___FRACT_EPSILON__ = "0x1P-15R"
  579. const m___FRACT_FBIT__ = 15
  580. const m___FRACT_IBIT__ = 0
  581. const m___FRACT_MAX__ = "0X7FFFP-15R"
  582. const m___FUNCTION__ = "__func__"
  583. const m___GCC_ATOMIC_BOOL_LOCK_FREE = 2
  584. const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2
  585. const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2
  586. const m___GCC_ATOMIC_CHAR_LOCK_FREE = 2
  587. const m___GCC_ATOMIC_INT_LOCK_FREE = 2
  588. const m___GCC_ATOMIC_LLONG_LOCK_FREE = 2
  589. const m___GCC_ATOMIC_LONG_LOCK_FREE = 2
  590. const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2
  591. const m___GCC_ATOMIC_SHORT_LOCK_FREE = 2
  592. const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1
  593. const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2
  594. const m___GCC_HAVE_DWARF2_CFI_ASM = 1
  595. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1
  596. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1
  597. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1
  598. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1
  599. const m___GCC_IEC_559 = 2
  600. const m___GCC_IEC_559_COMPLEX = 2
  601. const m___GNUC_EXECUTION_CHARSET_NAME = "UTF-8"
  602. const m___GNUC_MINOR__ = 2
  603. const m___GNUC_PATCHLEVEL__ = 1
  604. const m___GNUC_RH_RELEASE__ = 6
  605. const m___GNUC_STDC_INLINE__ = 1
  606. const m___GNUC_WIDE_EXECUTION_CHARSET_NAME = "UTF-32LE"
  607. const m___GNUC__ = 14
  608. const m___GXX_ABI_VERSION = 1019
  609. const m___HAVE_SPECULATION_SAFE_VALUE = 1
  610. const m___HA_FBIT__ = 7
  611. const m___HA_IBIT__ = 8
  612. const m___HQ_FBIT__ = 15
  613. const m___HQ_IBIT__ = 0
  614. const m___INT16_MAX__ = 0x7fff
  615. const m___INT32_MAX__ = 0x7fffffff
  616. const m___INT32_TYPE__ = "int"
  617. const m___INT64_MAX__ = 0x7fffffffffffffff
  618. const m___INT8_MAX__ = 0x7f
  619. const m___INTMAX_MAX__ = 0x7fffffffffffffff
  620. const m___INTMAX_WIDTH__ = 64
  621. const m___INTPTR_MAX__ = 0x7fffffffffffffff
  622. const m___INTPTR_WIDTH__ = 64
  623. const m___INT_FAST16_MAX__ = 0x7fffffffffffffff
  624. const m___INT_FAST16_WIDTH__ = 64
  625. const m___INT_FAST32_MAX__ = 0x7fffffffffffffff
  626. const m___INT_FAST32_WIDTH__ = 64
  627. const m___INT_FAST64_MAX__ = 0x7fffffffffffffff
  628. const m___INT_FAST64_WIDTH__ = 64
  629. const m___INT_FAST8_MAX__ = 0x7f
  630. const m___INT_FAST8_WIDTH__ = 8
  631. const m___INT_LEAST16_MAX__ = 0x7fff
  632. const m___INT_LEAST16_WIDTH__ = 16
  633. const m___INT_LEAST32_MAX__ = 0x7fffffff
  634. const m___INT_LEAST32_TYPE__ = "int"
  635. const m___INT_LEAST32_WIDTH__ = 32
  636. const m___INT_LEAST64_MAX__ = 0x7fffffffffffffff
  637. const m___INT_LEAST64_WIDTH__ = 64
  638. const m___INT_LEAST8_MAX__ = 0x7f
  639. const m___INT_LEAST8_WIDTH__ = 8
  640. const m___INT_MAX__ = 0x7fffffff
  641. const m___INT_WIDTH__ = 32
  642. const m___LACCUM_EPSILON__ = "0x1P-31LK"
  643. const m___LACCUM_FBIT__ = 31
  644. const m___LACCUM_IBIT__ = 32
  645. const m___LACCUM_MAX__ = "0X7FFFFFFFFFFFFFFFP-31LK"
  646. const m___LDBL_DECIMAL_DIG__ = 36
  647. const m___LDBL_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  648. const m___LDBL_DIG__ = 33
  649. const m___LDBL_EPSILON__ = 1.92592994438723585305597794258492732e-34
  650. const m___LDBL_HAS_DENORM__ = 1
  651. const m___LDBL_HAS_INFINITY__ = 1
  652. const m___LDBL_HAS_QUIET_NAN__ = 1
  653. const m___LDBL_IS_IEC_60559__ = 1
  654. const m___LDBL_MANT_DIG__ = 113
  655. const m___LDBL_MAX_10_EXP__ = 4932
  656. const m___LDBL_MAX_EXP__ = 16384
  657. const m___LDBL_MAX__ = "1.18973149535723176508575932662800702e+4932"
  658. const m___LDBL_MIN__ = 3.36210314311209350626267781732175260e-4932
  659. const m___LDBL_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  660. const m___LFRACT_EPSILON__ = "0x1P-31LR"
  661. const m___LFRACT_FBIT__ = 31
  662. const m___LFRACT_IBIT__ = 0
  663. const m___LFRACT_MAX__ = "0X7FFFFFFFP-31LR"
  664. const m___LITTLE_ENDIAN = 1234
  665. const m___LLACCUM_EPSILON__ = "0x1P-63LLK"
  666. const m___LLACCUM_FBIT__ = 63
  667. const m___LLACCUM_IBIT__ = 64
  668. const m___LLACCUM_MAX__ = "0X7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFP-63LLK"
  669. const m___LLFRACT_EPSILON__ = "0x1P-63LLR"
  670. const m___LLFRACT_FBIT__ = 63
  671. const m___LLFRACT_IBIT__ = 0
  672. const m___LLFRACT_MAX__ = "0X7FFFFFFFFFFFFFFFP-63LLR"
  673. const m___LONG_LONG_MAX__ = 0x7fffffffffffffff
  674. const m___LONG_LONG_WIDTH__ = 64
  675. const m___LONG_MAX = 0x7fffffffffffffff
  676. const m___LONG_MAX__ = 0x7fffffffffffffff
  677. const m___LONG_WIDTH__ = 64
  678. const m___LP64__ = 1
  679. const m___NO_INLINE__ = 1
  680. const m___ORDER_BIG_ENDIAN__ = 4321
  681. const m___ORDER_LITTLE_ENDIAN__ = 1234
  682. const m___ORDER_PDP_ENDIAN__ = 3412
  683. const m___PDP_ENDIAN = 3412
  684. const m___PRAGMA_REDEFINE_EXTNAME = 1
  685. const m___PRETTY_FUNCTION__ = "__func__"
  686. const m___PTRDIFF_MAX__ = 0x7fffffffffffffff
  687. const m___PTRDIFF_WIDTH__ = 64
  688. const m___QQ_FBIT__ = 7
  689. const m___QQ_IBIT__ = 0
  690. const m___REGISTER_PREFIX__ = "$"
  691. const m___SACCUM_EPSILON__ = "0x1P-7HK"
  692. const m___SACCUM_FBIT__ = 7
  693. const m___SACCUM_IBIT__ = 8
  694. const m___SACCUM_MAX__ = "0X7FFFP-7HK"
  695. const m___SA_FBIT__ = 15
  696. const m___SA_IBIT__ = 16
  697. const m___SCHAR_MAX__ = 0x7f
  698. const m___SCHAR_WIDTH__ = 8
  699. const m___SFRACT_EPSILON__ = "0x1P-7HR"
  700. const m___SFRACT_FBIT__ = 7
  701. const m___SFRACT_IBIT__ = 0
  702. const m___SFRACT_MAX__ = "0X7FP-7HR"
  703. const m___SHRT_MAX__ = 0x7fff
  704. const m___SHRT_WIDTH__ = 16
  705. const m___SIG_ATOMIC_MAX__ = 0x7fffffff
  706. const m___SIG_ATOMIC_TYPE__ = "int"
  707. const m___SIG_ATOMIC_WIDTH__ = 32
  708. const m___SIZEOF_DOUBLE__ = 8
  709. const m___SIZEOF_FLOAT__ = 4
  710. const m___SIZEOF_INT128__ = 16
  711. const m___SIZEOF_INT__ = 4
  712. const m___SIZEOF_LONG_DOUBLE__ = 8
  713. const m___SIZEOF_LONG_LONG__ = 8
  714. const m___SIZEOF_LONG__ = 8
  715. const m___SIZEOF_POINTER__ = 8
  716. const m___SIZEOF_PTRDIFF_T__ = 8
  717. const m___SIZEOF_SHORT__ = 2
  718. const m___SIZEOF_SIZE_T__ = 8
  719. const m___SIZEOF_WCHAR_T__ = 4
  720. const m___SIZEOF_WINT_T__ = 4
  721. const m___SIZE_MAX__ = 0xffffffffffffffff
  722. const m___SIZE_WIDTH__ = 64
  723. const m___SQ_FBIT__ = 31
  724. const m___SQ_IBIT__ = 0
  725. const m___STDC_HOSTED__ = 1
  726. const m___STDC_IEC_559_COMPLEX__ = 1
  727. const m___STDC_IEC_559__ = 1
  728. const m___STDC_IEC_60559_BFP__ = 201404
  729. const m___STDC_IEC_60559_COMPLEX__ = 201404
  730. const m___STDC_ISO_10646__ = 201706
  731. const m___STDC_UTF_16__ = 1
  732. const m___STDC_UTF_32__ = 1
  733. const m___STDC_VERSION__ = 201710
  734. const m___STDC__ = 1
  735. const m___TA_FBIT__ = 63
  736. const m___TA_IBIT__ = 64
  737. const m___TQ_FBIT__ = 127
  738. const m___TQ_IBIT__ = 0
  739. const m___UACCUM_EPSILON__ = "0x1P-16UK"
  740. const m___UACCUM_FBIT__ = 16
  741. const m___UACCUM_IBIT__ = 16
  742. const m___UACCUM_MAX__ = "0XFFFFFFFFP-16UK"
  743. const m___UACCUM_MIN__ = "0.0UK"
  744. const m___UDA_FBIT__ = 32
  745. const m___UDA_IBIT__ = 32
  746. const m___UDQ_FBIT__ = 64
  747. const m___UDQ_IBIT__ = 0
  748. const m___UFRACT_EPSILON__ = "0x1P-16UR"
  749. const m___UFRACT_FBIT__ = 16
  750. const m___UFRACT_IBIT__ = 0
  751. const m___UFRACT_MAX__ = "0XFFFFP-16UR"
  752. const m___UFRACT_MIN__ = "0.0UR"
  753. const m___UHA_FBIT__ = 8
  754. const m___UHA_IBIT__ = 8
  755. const m___UHQ_FBIT__ = 16
  756. const m___UHQ_IBIT__ = 0
  757. const m___UINT16_MAX__ = 0xffff
  758. const m___UINT32_MAX__ = 0xffffffff
  759. const m___UINT64_MAX__ = 0xffffffffffffffff
  760. const m___UINT8_MAX__ = 0xff
  761. const m___UINTMAX_MAX__ = 0xffffffffffffffff
  762. const m___UINTPTR_MAX__ = 0xffffffffffffffff
  763. const m___UINT_FAST16_MAX__ = 0xffffffffffffffff
  764. const m___UINT_FAST32_MAX__ = 0xffffffffffffffff
  765. const m___UINT_FAST64_MAX__ = 0xffffffffffffffff
  766. const m___UINT_FAST8_MAX__ = 0xff
  767. const m___UINT_LEAST16_MAX__ = 0xffff
  768. const m___UINT_LEAST32_MAX__ = 0xffffffff
  769. const m___UINT_LEAST64_MAX__ = 0xffffffffffffffff
  770. const m___UINT_LEAST8_MAX__ = 0xff
  771. const m___ULACCUM_EPSILON__ = "0x1P-32ULK"
  772. const m___ULACCUM_FBIT__ = 32
  773. const m___ULACCUM_IBIT__ = 32
  774. const m___ULACCUM_MAX__ = "0XFFFFFFFFFFFFFFFFP-32ULK"
  775. const m___ULACCUM_MIN__ = "0.0ULK"
  776. const m___ULFRACT_EPSILON__ = "0x1P-32ULR"
  777. const m___ULFRACT_FBIT__ = 32
  778. const m___ULFRACT_IBIT__ = 0
  779. const m___ULFRACT_MAX__ = "0XFFFFFFFFP-32ULR"
  780. const m___ULFRACT_MIN__ = "0.0ULR"
  781. const m___ULLACCUM_EPSILON__ = "0x1P-64ULLK"
  782. const m___ULLACCUM_FBIT__ = 64
  783. const m___ULLACCUM_IBIT__ = 64
  784. const m___ULLACCUM_MAX__ = "0XFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFP-64ULLK"
  785. const m___ULLACCUM_MIN__ = "0.0ULLK"
  786. const m___ULLFRACT_EPSILON__ = "0x1P-64ULLR"
  787. const m___ULLFRACT_FBIT__ = 64
  788. const m___ULLFRACT_IBIT__ = 0
  789. const m___ULLFRACT_MAX__ = "0XFFFFFFFFFFFFFFFFP-64ULLR"
  790. const m___ULLFRACT_MIN__ = "0.0ULLR"
  791. const m___UQQ_FBIT__ = 8
  792. const m___UQQ_IBIT__ = 0
  793. const m___USACCUM_EPSILON__ = "0x1P-8UHK"
  794. const m___USACCUM_FBIT__ = 8
  795. const m___USACCUM_IBIT__ = 8
  796. const m___USACCUM_MAX__ = "0XFFFFP-8UHK"
  797. const m___USACCUM_MIN__ = "0.0UHK"
  798. const m___USA_FBIT__ = 16
  799. const m___USA_IBIT__ = 16
  800. const m___USE_TIME_BITS64 = 1
  801. const m___USFRACT_EPSILON__ = "0x1P-8UHR"
  802. const m___USFRACT_FBIT__ = 8
  803. const m___USFRACT_IBIT__ = 0
  804. const m___USFRACT_MAX__ = "0XFFP-8UHR"
  805. const m___USFRACT_MIN__ = "0.0UHR"
  806. const m___USQ_FBIT__ = 32
  807. const m___USQ_IBIT__ = 0
  808. const m___UTA_FBIT__ = 64
  809. const m___UTA_IBIT__ = 64
  810. const m___UTQ_FBIT__ = 128
  811. const m___UTQ_IBIT__ = 0
  812. const m___VERSION__ = "14.2.1 20241104 (Red Hat 14.2.1-6)"
  813. const m___WCHAR_MAX__ = 0x7fffffff
  814. const m___WCHAR_TYPE__ = "int"
  815. const m___WCHAR_WIDTH__ = 32
  816. const m___WINT_MAX__ = 0xffffffff
  817. const m___WINT_MIN__ = 0
  818. const m___WINT_WIDTH__ = 32
  819. const m___builtin_copysignq = "__builtin_copysignf128"
  820. const m___builtin_fabsq = "__builtin_fabsf128"
  821. const m___builtin_huge_valq = "__builtin_huge_valf128"
  822. const m___builtin_infq = "__builtin_inff128"
  823. const m___builtin_nanq = "__builtin_nanf128"
  824. const m___builtin_nansq = "__builtin_nansf128"
  825. const m___gnu_linux__ = 1
  826. const m___inline = "inline"
  827. const m___linux = 1
  828. const m___linux__ = 1
  829. const m___loongarch64 = 1
  830. const m___loongarch__ = 1
  831. const m___loongarch_arch = "la64v1.0"
  832. const m___loongarch_double_float = 1
  833. const m___loongarch_frlen = 64
  834. const m___loongarch_grlen = 64
  835. const m___loongarch_hard_float = 1
  836. const m___loongarch_lp64 = 1
  837. const m___loongarch_simd = 1
  838. const m___loongarch_simd_width = 128
  839. const m___loongarch_sx = 1
  840. const m___loongarch_tune = "generic"
  841. const m___loongarch_version_major = 1
  842. const m___loongarch_version_minor = 0
  843. const m___restrict = "restrict"
  844. const m___restrict_arr = "restrict"
  845. const m___unix = 1
  846. const m___unix__ = 1
  847. const m_alloca = "__builtin_alloca"
  848. const m_blkcnt64_t = "blkcnt_t"
  849. const m_fsblkcnt64_t = "fsblkcnt_t"
  850. const m_fsfilcnt64_t = "fsfilcnt_t"
  851. const m_ftruncate64 = "ftruncate"
  852. const m_ino64_t = "ino_t"
  853. const m_linux = 1
  854. const m_local = "static"
  855. const m_lockf64 = "lockf"
  856. const m_lseek64 = "lseek"
  857. const m_mkostemp64 = "mkostemp"
  858. const m_mkostemps64 = "mkostemps"
  859. const m_mkstemp64 = "mkstemp"
  860. const m_mkstemps64 = "mkstemps"
  861. const m_off64_t = "off_t"
  862. const m_pread64 = "pread"
  863. const m_pwrite64 = "pwrite"
  864. const m_truncate64 = "truncate"
  865. const m_unix = 1
  866. const m_z_off64_t = "z_off_t"
  867. const m_z_off_t = "off_t"
  868. const m_zmemcmp = "memcmp"
  869. const m_zmemcpy = "memcpy"
  870. type t__builtin_va_list = uintptr
  871. type t__predefined_size_t = uint64
  872. type t__predefined_wchar_t = int32
  873. type t__predefined_ptrdiff_t = int64
  874. type Twchar_t = int32
  875. type Tmax_align_t = struct {
  876. F__ll int64
  877. F__ld float64
  878. }
  879. type Tsize_t = uint64
  880. type Tptrdiff_t = int64
  881. type Tz_size_t = uint64
  882. type TByte = uint8
  883. type TuInt = uint32
  884. type TuLong = uint64
  885. type TBytef = uint8
  886. type Tcharf = int8
  887. type Tintf = int32
  888. type TuIntf = uint32
  889. type TuLongf = uint64
  890. type Tvoidpc = uintptr
  891. type Tvoidpf = uintptr
  892. type Tvoidp = uintptr
  893. type Tz_crc_t = uint32
  894. type Tnlink_t = uint32
  895. type Tblksize_t = int32
  896. type Tssize_t = int64
  897. type Tregister_t = int64
  898. type Ttime_t = int64
  899. type Tsuseconds_t = int64
  900. type Tint8_t = int8
  901. type Tint16_t = int16
  902. type Tint32_t = int32
  903. type Tint64_t = int64
  904. type Tu_int64_t = uint64
  905. type Tmode_t = uint32
  906. type Toff_t = int64
  907. type Tino_t = uint64
  908. type Tdev_t = uint64
  909. type Tblkcnt_t = int64
  910. type Tfsblkcnt_t = uint64
  911. type Tfsfilcnt_t = uint64
  912. type Ttimer_t = uintptr
  913. type Tclockid_t = int32
  914. type Tclock_t = int64
  915. type Tpid_t = int32
  916. type Tid_t = uint32
  917. type Tuid_t = uint32
  918. type Tgid_t = uint32
  919. type Tkey_t = int32
  920. type Tuseconds_t = uint32
  921. type Tpthread_t = uintptr
  922. type Tpthread_once_t = int32
  923. type Tpthread_key_t = uint32
  924. type Tpthread_spinlock_t = int32
  925. type Tpthread_mutexattr_t = struct {
  926. F__attr uint32
  927. }
  928. type Tpthread_condattr_t = struct {
  929. F__attr uint32
  930. }
  931. type Tpthread_barrierattr_t = struct {
  932. F__attr uint32
  933. }
  934. type Tpthread_rwlockattr_t = struct {
  935. F__attr [2]uint32
  936. }
  937. type Tpthread_attr_t = struct {
  938. F__u struct {
  939. F__vi [0][14]int32
  940. F__s [0][7]uint64
  941. F__i [14]int32
  942. }
  943. }
  944. type Tpthread_mutex_t = struct {
  945. F__u struct {
  946. F__vi [0][10]int32
  947. F__p [0][5]uintptr
  948. F__i [10]int32
  949. }
  950. }
  951. type Tpthread_cond_t = struct {
  952. F__u struct {
  953. F__vi [0][12]int32
  954. F__p [0][6]uintptr
  955. F__i [12]int32
  956. }
  957. }
  958. type Tpthread_rwlock_t = struct {
  959. F__u struct {
  960. F__vi [0][14]int32
  961. F__p [0][7]uintptr
  962. F__i [14]int32
  963. }
  964. }
  965. type Tpthread_barrier_t = struct {
  966. F__u struct {
  967. F__vi [0][8]int32
  968. F__p [0][4]uintptr
  969. F__i [8]int32
  970. }
  971. }
  972. type Tu_int8_t = uint8
  973. type Tu_int16_t = uint16
  974. type Tu_int32_t = uint32
  975. type Tcaddr_t = uintptr
  976. type Tu_char = uint8
  977. type Tu_short = uint16
  978. type Tushort = uint16
  979. type Tu_int = uint32
  980. type Tuint = uint32
  981. type Tu_long = uint64
  982. type Tulong = uint64
  983. type Tquad_t = int64
  984. type Tu_quad_t = uint64
  985. type Tuint16_t = uint16
  986. type Tuint32_t = uint32
  987. type Tuint64_t = uint64
  988. type Ttimeval = struct {
  989. Ftv_sec Ttime_t
  990. Ftv_usec Tsuseconds_t
  991. }
  992. type Ttimespec = struct {
  993. Ftv_sec Ttime_t
  994. Ftv_nsec int64
  995. }
  996. type Tsigset_t = struct {
  997. F__bits [16]uint64
  998. }
  999. type t__sigset_t = Tsigset_t
  1000. type Tfd_mask = uint64
  1001. type Tfd_set = struct {
  1002. Ffds_bits [16]uint64
  1003. }
  1004. type Tva_list = uintptr
  1005. type Tintptr_t = int64
  1006. type Talloc_func = uintptr
  1007. type Tfree_func = uintptr
  1008. type Tz_stream = struct {
  1009. Fnext_in uintptr
  1010. Favail_in TuInt
  1011. Ftotal_in TuLong
  1012. Fnext_out uintptr
  1013. Favail_out TuInt
  1014. Ftotal_out TuLong
  1015. Fmsg uintptr
  1016. Fstate uintptr
  1017. Fzalloc Talloc_func
  1018. Fzfree Tfree_func
  1019. Fopaque Tvoidpf
  1020. Fdata_type int32
  1021. Fadler TuLong
  1022. Freserved TuLong
  1023. }
  1024. type Tz_stream_s = Tz_stream
  1025. type Tz_streamp = uintptr
  1026. type Tgz_header = struct {
  1027. Ftext int32
  1028. Ftime TuLong
  1029. Fxflags int32
  1030. Fos int32
  1031. Fextra uintptr
  1032. Fextra_len TuInt
  1033. Fextra_max TuInt
  1034. Fname uintptr
  1035. Fname_max TuInt
  1036. Fcomment uintptr
  1037. Fcomm_max TuInt
  1038. Fhcrc int32
  1039. Fdone int32
  1040. }
  1041. type Tgz_header_s = Tgz_header
  1042. type Tgz_headerp = uintptr
  1043. type Tin_func = uintptr
  1044. type Tout_func = uintptr
  1045. type TgzFile = uintptr
  1046. type TgzFile_s = struct {
  1047. Fhave uint32
  1048. Fnext uintptr
  1049. Fpos Toff_t
  1050. }
  1051. type Tlocale_t = uintptr
  1052. type Tdiv_t = struct {
  1053. Fquot int32
  1054. Frem int32
  1055. }
  1056. type Tldiv_t = struct {
  1057. Fquot int64
  1058. Frem int64
  1059. }
  1060. type Tlldiv_t = struct {
  1061. Fquot int64
  1062. Frem int64
  1063. }
  1064. type Tuch = uint8
  1065. type Tuchf = uint8
  1066. type Tush = uint16
  1067. type Tushf = uint16
  1068. type Tulg = uint64
  1069. /* Reverse the bytes in a 32-bit value */
  1070. /* NMAX is the largest n such that 255n(n+1)/2 + (n+1)(BASE-1) <= 2^32-1 */
  1071. /* use NO_DIVIDE if your processor does not do division in hardware --
  1072. try it both ways to see which is faster */
  1073. // C documentation
  1074. //
  1075. // /* ========================================================================= */
  1076. func Xadler32_z(tls *libc.TLS, adler TuLong, buf uintptr, len1 Tz_size_t) (r TuLong) {
  1077. var n, v3 uint32
  1078. var sum2 uint64
  1079. var v1, v5 Tz_size_t
  1080. var v2, v6 uintptr
  1081. _, _, _, _, _, _, _ = n, sum2, v1, v2, v3, v5, v6
  1082. /* split Adler-32 into component sums */
  1083. sum2 = adler >> libc.Int32FromInt32(16) & uint64(0xffff)
  1084. adler &= uint64(0xffff)
  1085. /* in case user likes doing a byte at a time, keep it fast */
  1086. if len1 == uint64(1) {
  1087. adler += uint64(*(*TBytef)(unsafe.Pointer(buf)))
  1088. if adler >= uint64(65521) {
  1089. adler -= uint64(65521)
  1090. }
  1091. sum2 += adler
  1092. if sum2 >= uint64(65521) {
  1093. sum2 -= uint64(65521)
  1094. }
  1095. return adler | sum2<<int32(16)
  1096. }
  1097. /* initial Adler-32 value (deferred check for len == 1 speed) */
  1098. if buf == uintptr(m_Z_NULL) {
  1099. return uint64(1)
  1100. }
  1101. /* in case short lengths are provided, keep it somewhat fast */
  1102. if len1 < uint64(16) {
  1103. for {
  1104. v1 = len1
  1105. len1--
  1106. if !(v1 != 0) {
  1107. break
  1108. }
  1109. v2 = buf
  1110. buf++
  1111. adler += uint64(*(*TBytef)(unsafe.Pointer(v2)))
  1112. sum2 += adler
  1113. }
  1114. if adler >= uint64(65521) {
  1115. adler -= uint64(65521)
  1116. }
  1117. sum2 %= uint64(65521) /* only added so many BASE's */
  1118. return adler | sum2<<int32(16)
  1119. }
  1120. /* do length NMAX blocks -- requires just one modulo operation */
  1121. for len1 >= uint64(m_NMAX) {
  1122. len1 -= uint64(m_NMAX)
  1123. n = libc.Uint32FromInt32(libc.Int32FromInt32(m_NMAX) / libc.Int32FromInt32(16)) /* NMAX is divisible by 16 */
  1124. for {
  1125. adler += uint64(*(*TBytef)(unsafe.Pointer(buf)))
  1126. sum2 += adler
  1127. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(1)))))
  1128. sum2 += adler
  1129. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(2)))))
  1130. sum2 += adler
  1131. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))))
  1132. sum2 += adler
  1133. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(4)))))
  1134. sum2 += adler
  1135. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(4)+libc.Int32FromInt32(1)))))
  1136. sum2 += adler
  1137. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(4)+libc.Int32FromInt32(2)))))
  1138. sum2 += adler
  1139. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(4)+libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))))
  1140. sum2 += adler
  1141. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + 8)))
  1142. sum2 += adler
  1143. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(1)))))
  1144. sum2 += adler
  1145. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(2)))))
  1146. sum2 += adler
  1147. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))))
  1148. sum2 += adler
  1149. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(4)))))
  1150. sum2 += adler
  1151. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(4)+libc.Int32FromInt32(1)))))
  1152. sum2 += adler
  1153. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(4)+libc.Int32FromInt32(2)))))
  1154. sum2 += adler
  1155. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(4)+libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))))
  1156. sum2 += adler /* 16 sums unrolled */
  1157. buf += uintptr(16)
  1158. goto _4
  1159. _4:
  1160. ;
  1161. n--
  1162. v3 = n
  1163. if !(v3 != 0) {
  1164. break
  1165. }
  1166. }
  1167. adler %= uint64(65521)
  1168. sum2 %= uint64(65521)
  1169. }
  1170. /* do remaining bytes (less than NMAX, still just one modulo) */
  1171. if len1 != 0 { /* avoid modulos if none remaining */
  1172. for len1 >= uint64(16) {
  1173. len1 -= uint64(16)
  1174. adler += uint64(*(*TBytef)(unsafe.Pointer(buf)))
  1175. sum2 += adler
  1176. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(1)))))
  1177. sum2 += adler
  1178. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(2)))))
  1179. sum2 += adler
  1180. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))))
  1181. sum2 += adler
  1182. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(4)))))
  1183. sum2 += adler
  1184. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(4)+libc.Int32FromInt32(1)))))
  1185. sum2 += adler
  1186. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(4)+libc.Int32FromInt32(2)))))
  1187. sum2 += adler
  1188. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(4)+libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))))
  1189. sum2 += adler
  1190. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + 8)))
  1191. sum2 += adler
  1192. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(1)))))
  1193. sum2 += adler
  1194. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(2)))))
  1195. sum2 += adler
  1196. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))))
  1197. sum2 += adler
  1198. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(4)))))
  1199. sum2 += adler
  1200. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(4)+libc.Int32FromInt32(1)))))
  1201. sum2 += adler
  1202. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(4)+libc.Int32FromInt32(2)))))
  1203. sum2 += adler
  1204. adler += uint64(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(4)+libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))))
  1205. sum2 += adler
  1206. buf += uintptr(16)
  1207. }
  1208. for {
  1209. v5 = len1
  1210. len1--
  1211. if !(v5 != 0) {
  1212. break
  1213. }
  1214. v6 = buf
  1215. buf++
  1216. adler += uint64(*(*TBytef)(unsafe.Pointer(v6)))
  1217. sum2 += adler
  1218. }
  1219. adler %= uint64(65521)
  1220. sum2 %= uint64(65521)
  1221. }
  1222. /* return recombined sums */
  1223. return adler | sum2<<int32(16)
  1224. }
  1225. // C documentation
  1226. //
  1227. // /* ========================================================================= */
  1228. func Xadler32(tls *libc.TLS, adler TuLong, buf uintptr, len1 TuInt) (r TuLong) {
  1229. return Xadler32_z(tls, adler, buf, uint64(len1))
  1230. }
  1231. // C documentation
  1232. //
  1233. // /* ========================================================================= */
  1234. func _adler32_combine_(tls *libc.TLS, adler1 TuLong, adler2 TuLong, len2 Toff_t) (r TuLong) {
  1235. var rem uint32
  1236. var sum1, sum2 uint64
  1237. _, _, _ = rem, sum1, sum2
  1238. /* for negative len, return invalid adler32 as a clue for debugging */
  1239. if len2 < 0 {
  1240. return uint64(0xffffffff)
  1241. }
  1242. /* the derivation of this formula is left as an exercise for the reader */
  1243. len2 %= libc.Int64FromUint32(65521) /* assumes len2 >= 0 */
  1244. rem = libc.Uint32FromInt64(len2)
  1245. sum1 = adler1 & uint64(0xffff)
  1246. sum2 = uint64(rem) * sum1
  1247. sum2 %= uint64(65521)
  1248. sum1 += adler2&uint64(0xffff) + uint64(65521) - uint64(1)
  1249. sum2 += adler1>>libc.Int32FromInt32(16)&uint64(0xffff) + adler2>>libc.Int32FromInt32(16)&uint64(0xffff) + uint64(65521) - uint64(rem)
  1250. if sum1 >= uint64(65521) {
  1251. sum1 -= uint64(65521)
  1252. }
  1253. if sum1 >= uint64(65521) {
  1254. sum1 -= uint64(65521)
  1255. }
  1256. if sum2 >= libc.Uint64FromUint32(65521)<<libc.Int32FromInt32(1) {
  1257. sum2 -= libc.Uint64FromUint32(65521) << libc.Int32FromInt32(1)
  1258. }
  1259. if sum2 >= uint64(65521) {
  1260. sum2 -= uint64(65521)
  1261. }
  1262. return sum1 | sum2<<int32(16)
  1263. }
  1264. // C documentation
  1265. //
  1266. // /* ========================================================================= */
  1267. func Xadler32_combine(tls *libc.TLS, adler1 TuLong, adler2 TuLong, len2 Toff_t) (r TuLong) {
  1268. return _adler32_combine_(tls, adler1, adler2, len2)
  1269. }
  1270. func Xadler32_combine64(tls *libc.TLS, adler1 TuLong, adler2 TuLong, len2 Toff_t) (r TuLong) {
  1271. return _adler32_combine_(tls, adler1, adler2, len2)
  1272. }
  1273. const m_N = 5
  1274. const m_POLY = 3988292384
  1275. /* Reverse the bytes in a 32-bit value */
  1276. /*
  1277. A CRC of a message is computed on N braids of words in the message, where
  1278. each word consists of W bytes (4 or 8). If N is 3, for example, then three
  1279. running sparse CRCs are calculated respectively on each braid, at these
  1280. indices in the array of words: 0, 3, 6, ..., 1, 4, 7, ..., and 2, 5, 8, ...
  1281. This is done starting at a word boundary, and continues until as many blocks
  1282. of N * W bytes as are available have been processed. The results are combined
  1283. into a single CRC at the end. For this code, N must be in the range 1..6 and
  1284. W must be 4 or 8. The upper limit on N can be increased if desired by adding
  1285. more #if blocks, extending the patterns apparent in the code. In addition,
  1286. crc32.h would need to be regenerated, if the maximum N value is increased.
  1287. N and W are chosen empirically by benchmarking the execution time on a given
  1288. processor. The choices for N and W below were based on testing on Intel Kaby
  1289. Lake i7, AMD Ryzen 7, ARM Cortex-A57, Sparc64-VII, PowerPC POWER9, and MIPS64
  1290. Octeon II processors. The Intel, AMD, and ARM processors were all fastest
  1291. with N=5, W=8. The Sparc, PowerPC, and MIPS64 were all fastest at N=5, W=4.
  1292. They were all tested with either gcc or clang, all using the -O3 optimization
  1293. level. Your mileage may vary.
  1294. */
  1295. /* Define N */
  1296. /*
  1297. z_crc_t must be at least 32 bits. z_word_t must be at least as long as
  1298. z_crc_t. It is assumed here that z_word_t is either 32 bits or 64 bits, and
  1299. that bytes are eight bits.
  1300. */
  1301. // C documentation
  1302. //
  1303. // /*
  1304. // Define W and the associated z_word_t type. If W is not defined, then a
  1305. // braided calculation is not used, and the associated tables and code are not
  1306. // compiled.
  1307. // */
  1308. type Tz_word_t = uint32
  1309. /* If available, use the ARM processor CRC32 instruction. */
  1310. // C documentation
  1311. //
  1312. // /*
  1313. // Swap the bytes in a z_word_t to convert between little and big endian. Any
  1314. // self-respecting compiler will optimize this to a single machine byte-swap
  1315. // instruction, if one is available. This assumes that word_t is either 32 bits
  1316. // or 64 bits.
  1317. // */
  1318. func _byte_swap(tls *libc.TLS, word Tz_word_t) (r Tz_word_t) {
  1319. return word&uint32(0xff000000)>>int32(24) | word&uint32(0xff0000)>>int32(8) | word&uint32(0xff00)<<int32(8) | word&uint32(0xff)<<int32(24)
  1320. }
  1321. var _crc_table = [256]Tz_crc_t{
  1322. 1: uint32(0x77073096),
  1323. 2: uint32(0xee0e612c),
  1324. 3: uint32(0x990951ba),
  1325. 4: uint32(0x076dc419),
  1326. 5: uint32(0x706af48f),
  1327. 6: uint32(0xe963a535),
  1328. 7: uint32(0x9e6495a3),
  1329. 8: uint32(0x0edb8832),
  1330. 9: uint32(0x79dcb8a4),
  1331. 10: uint32(0xe0d5e91e),
  1332. 11: uint32(0x97d2d988),
  1333. 12: uint32(0x09b64c2b),
  1334. 13: uint32(0x7eb17cbd),
  1335. 14: uint32(0xe7b82d07),
  1336. 15: uint32(0x90bf1d91),
  1337. 16: uint32(0x1db71064),
  1338. 17: uint32(0x6ab020f2),
  1339. 18: uint32(0xf3b97148),
  1340. 19: uint32(0x84be41de),
  1341. 20: uint32(0x1adad47d),
  1342. 21: uint32(0x6ddde4eb),
  1343. 22: uint32(0xf4d4b551),
  1344. 23: uint32(0x83d385c7),
  1345. 24: uint32(0x136c9856),
  1346. 25: uint32(0x646ba8c0),
  1347. 26: uint32(0xfd62f97a),
  1348. 27: uint32(0x8a65c9ec),
  1349. 28: uint32(0x14015c4f),
  1350. 29: uint32(0x63066cd9),
  1351. 30: uint32(0xfa0f3d63),
  1352. 31: uint32(0x8d080df5),
  1353. 32: uint32(0x3b6e20c8),
  1354. 33: uint32(0x4c69105e),
  1355. 34: uint32(0xd56041e4),
  1356. 35: uint32(0xa2677172),
  1357. 36: uint32(0x3c03e4d1),
  1358. 37: uint32(0x4b04d447),
  1359. 38: uint32(0xd20d85fd),
  1360. 39: uint32(0xa50ab56b),
  1361. 40: uint32(0x35b5a8fa),
  1362. 41: uint32(0x42b2986c),
  1363. 42: uint32(0xdbbbc9d6),
  1364. 43: uint32(0xacbcf940),
  1365. 44: uint32(0x32d86ce3),
  1366. 45: uint32(0x45df5c75),
  1367. 46: uint32(0xdcd60dcf),
  1368. 47: uint32(0xabd13d59),
  1369. 48: uint32(0x26d930ac),
  1370. 49: uint32(0x51de003a),
  1371. 50: uint32(0xc8d75180),
  1372. 51: uint32(0xbfd06116),
  1373. 52: uint32(0x21b4f4b5),
  1374. 53: uint32(0x56b3c423),
  1375. 54: uint32(0xcfba9599),
  1376. 55: uint32(0xb8bda50f),
  1377. 56: uint32(0x2802b89e),
  1378. 57: uint32(0x5f058808),
  1379. 58: uint32(0xc60cd9b2),
  1380. 59: uint32(0xb10be924),
  1381. 60: uint32(0x2f6f7c87),
  1382. 61: uint32(0x58684c11),
  1383. 62: uint32(0xc1611dab),
  1384. 63: uint32(0xb6662d3d),
  1385. 64: uint32(0x76dc4190),
  1386. 65: uint32(0x01db7106),
  1387. 66: uint32(0x98d220bc),
  1388. 67: uint32(0xefd5102a),
  1389. 68: uint32(0x71b18589),
  1390. 69: uint32(0x06b6b51f),
  1391. 70: uint32(0x9fbfe4a5),
  1392. 71: uint32(0xe8b8d433),
  1393. 72: uint32(0x7807c9a2),
  1394. 73: uint32(0x0f00f934),
  1395. 74: uint32(0x9609a88e),
  1396. 75: uint32(0xe10e9818),
  1397. 76: uint32(0x7f6a0dbb),
  1398. 77: uint32(0x086d3d2d),
  1399. 78: uint32(0x91646c97),
  1400. 79: uint32(0xe6635c01),
  1401. 80: uint32(0x6b6b51f4),
  1402. 81: uint32(0x1c6c6162),
  1403. 82: uint32(0x856530d8),
  1404. 83: uint32(0xf262004e),
  1405. 84: uint32(0x6c0695ed),
  1406. 85: uint32(0x1b01a57b),
  1407. 86: uint32(0x8208f4c1),
  1408. 87: uint32(0xf50fc457),
  1409. 88: uint32(0x65b0d9c6),
  1410. 89: uint32(0x12b7e950),
  1411. 90: uint32(0x8bbeb8ea),
  1412. 91: uint32(0xfcb9887c),
  1413. 92: uint32(0x62dd1ddf),
  1414. 93: uint32(0x15da2d49),
  1415. 94: uint32(0x8cd37cf3),
  1416. 95: uint32(0xfbd44c65),
  1417. 96: uint32(0x4db26158),
  1418. 97: uint32(0x3ab551ce),
  1419. 98: uint32(0xa3bc0074),
  1420. 99: uint32(0xd4bb30e2),
  1421. 100: uint32(0x4adfa541),
  1422. 101: uint32(0x3dd895d7),
  1423. 102: uint32(0xa4d1c46d),
  1424. 103: uint32(0xd3d6f4fb),
  1425. 104: uint32(0x4369e96a),
  1426. 105: uint32(0x346ed9fc),
  1427. 106: uint32(0xad678846),
  1428. 107: uint32(0xda60b8d0),
  1429. 108: uint32(0x44042d73),
  1430. 109: uint32(0x33031de5),
  1431. 110: uint32(0xaa0a4c5f),
  1432. 111: uint32(0xdd0d7cc9),
  1433. 112: uint32(0x5005713c),
  1434. 113: uint32(0x270241aa),
  1435. 114: uint32(0xbe0b1010),
  1436. 115: uint32(0xc90c2086),
  1437. 116: uint32(0x5768b525),
  1438. 117: uint32(0x206f85b3),
  1439. 118: uint32(0xb966d409),
  1440. 119: uint32(0xce61e49f),
  1441. 120: uint32(0x5edef90e),
  1442. 121: uint32(0x29d9c998),
  1443. 122: uint32(0xb0d09822),
  1444. 123: uint32(0xc7d7a8b4),
  1445. 124: uint32(0x59b33d17),
  1446. 125: uint32(0x2eb40d81),
  1447. 126: uint32(0xb7bd5c3b),
  1448. 127: uint32(0xc0ba6cad),
  1449. 128: uint32(0xedb88320),
  1450. 129: uint32(0x9abfb3b6),
  1451. 130: uint32(0x03b6e20c),
  1452. 131: uint32(0x74b1d29a),
  1453. 132: uint32(0xead54739),
  1454. 133: uint32(0x9dd277af),
  1455. 134: uint32(0x04db2615),
  1456. 135: uint32(0x73dc1683),
  1457. 136: uint32(0xe3630b12),
  1458. 137: uint32(0x94643b84),
  1459. 138: uint32(0x0d6d6a3e),
  1460. 139: uint32(0x7a6a5aa8),
  1461. 140: uint32(0xe40ecf0b),
  1462. 141: uint32(0x9309ff9d),
  1463. 142: uint32(0x0a00ae27),
  1464. 143: uint32(0x7d079eb1),
  1465. 144: uint32(0xf00f9344),
  1466. 145: uint32(0x8708a3d2),
  1467. 146: uint32(0x1e01f268),
  1468. 147: uint32(0x6906c2fe),
  1469. 148: uint32(0xf762575d),
  1470. 149: uint32(0x806567cb),
  1471. 150: uint32(0x196c3671),
  1472. 151: uint32(0x6e6b06e7),
  1473. 152: uint32(0xfed41b76),
  1474. 153: uint32(0x89d32be0),
  1475. 154: uint32(0x10da7a5a),
  1476. 155: uint32(0x67dd4acc),
  1477. 156: uint32(0xf9b9df6f),
  1478. 157: uint32(0x8ebeeff9),
  1479. 158: uint32(0x17b7be43),
  1480. 159: uint32(0x60b08ed5),
  1481. 160: uint32(0xd6d6a3e8),
  1482. 161: uint32(0xa1d1937e),
  1483. 162: uint32(0x38d8c2c4),
  1484. 163: uint32(0x4fdff252),
  1485. 164: uint32(0xd1bb67f1),
  1486. 165: uint32(0xa6bc5767),
  1487. 166: uint32(0x3fb506dd),
  1488. 167: uint32(0x48b2364b),
  1489. 168: uint32(0xd80d2bda),
  1490. 169: uint32(0xaf0a1b4c),
  1491. 170: uint32(0x36034af6),
  1492. 171: uint32(0x41047a60),
  1493. 172: uint32(0xdf60efc3),
  1494. 173: uint32(0xa867df55),
  1495. 174: uint32(0x316e8eef),
  1496. 175: uint32(0x4669be79),
  1497. 176: uint32(0xcb61b38c),
  1498. 177: uint32(0xbc66831a),
  1499. 178: uint32(0x256fd2a0),
  1500. 179: uint32(0x5268e236),
  1501. 180: uint32(0xcc0c7795),
  1502. 181: uint32(0xbb0b4703),
  1503. 182: uint32(0x220216b9),
  1504. 183: uint32(0x5505262f),
  1505. 184: uint32(0xc5ba3bbe),
  1506. 185: uint32(0xb2bd0b28),
  1507. 186: uint32(0x2bb45a92),
  1508. 187: uint32(0x5cb36a04),
  1509. 188: uint32(0xc2d7ffa7),
  1510. 189: uint32(0xb5d0cf31),
  1511. 190: uint32(0x2cd99e8b),
  1512. 191: uint32(0x5bdeae1d),
  1513. 192: uint32(0x9b64c2b0),
  1514. 193: uint32(0xec63f226),
  1515. 194: uint32(0x756aa39c),
  1516. 195: uint32(0x026d930a),
  1517. 196: uint32(0x9c0906a9),
  1518. 197: uint32(0xeb0e363f),
  1519. 198: uint32(0x72076785),
  1520. 199: uint32(0x05005713),
  1521. 200: uint32(0x95bf4a82),
  1522. 201: uint32(0xe2b87a14),
  1523. 202: uint32(0x7bb12bae),
  1524. 203: uint32(0x0cb61b38),
  1525. 204: uint32(0x92d28e9b),
  1526. 205: uint32(0xe5d5be0d),
  1527. 206: uint32(0x7cdcefb7),
  1528. 207: uint32(0x0bdbdf21),
  1529. 208: uint32(0x86d3d2d4),
  1530. 209: uint32(0xf1d4e242),
  1531. 210: uint32(0x68ddb3f8),
  1532. 211: uint32(0x1fda836e),
  1533. 212: uint32(0x81be16cd),
  1534. 213: uint32(0xf6b9265b),
  1535. 214: uint32(0x6fb077e1),
  1536. 215: uint32(0x18b74777),
  1537. 216: uint32(0x88085ae6),
  1538. 217: uint32(0xff0f6a70),
  1539. 218: uint32(0x66063bca),
  1540. 219: uint32(0x11010b5c),
  1541. 220: uint32(0x8f659eff),
  1542. 221: uint32(0xf862ae69),
  1543. 222: uint32(0x616bffd3),
  1544. 223: uint32(0x166ccf45),
  1545. 224: uint32(0xa00ae278),
  1546. 225: uint32(0xd70dd2ee),
  1547. 226: uint32(0x4e048354),
  1548. 227: uint32(0x3903b3c2),
  1549. 228: uint32(0xa7672661),
  1550. 229: uint32(0xd06016f7),
  1551. 230: uint32(0x4969474d),
  1552. 231: uint32(0x3e6e77db),
  1553. 232: uint32(0xaed16a4a),
  1554. 233: uint32(0xd9d65adc),
  1555. 234: uint32(0x40df0b66),
  1556. 235: uint32(0x37d83bf0),
  1557. 236: uint32(0xa9bcae53),
  1558. 237: uint32(0xdebb9ec5),
  1559. 238: uint32(0x47b2cf7f),
  1560. 239: uint32(0x30b5ffe9),
  1561. 240: uint32(0xbdbdf21c),
  1562. 241: uint32(0xcabac28a),
  1563. 242: uint32(0x53b39330),
  1564. 243: uint32(0x24b4a3a6),
  1565. 244: uint32(0xbad03605),
  1566. 245: uint32(0xcdd70693),
  1567. 246: uint32(0x54de5729),
  1568. 247: uint32(0x23d967bf),
  1569. 248: uint32(0xb3667a2e),
  1570. 249: uint32(0xc4614ab8),
  1571. 250: uint32(0x5d681b02),
  1572. 251: uint32(0x2a6f2b94),
  1573. 252: uint32(0xb40bbe37),
  1574. 253: uint32(0xc30c8ea1),
  1575. 254: uint32(0x5a05df1b),
  1576. 255: uint32(0x2d02ef8d),
  1577. }
  1578. var _crc_big_table = [256]Tz_word_t{
  1579. 1: uint32(0x96300777),
  1580. 2: uint32(0x2c610eee),
  1581. 3: uint32(0xba510999),
  1582. 4: uint32(0x19c46d07),
  1583. 5: uint32(0x8ff46a70),
  1584. 6: uint32(0x35a563e9),
  1585. 7: uint32(0xa395649e),
  1586. 8: uint32(0x3288db0e),
  1587. 9: uint32(0xa4b8dc79),
  1588. 10: uint32(0x1ee9d5e0),
  1589. 11: uint32(0x88d9d297),
  1590. 12: uint32(0x2b4cb609),
  1591. 13: uint32(0xbd7cb17e),
  1592. 14: uint32(0x072db8e7),
  1593. 15: uint32(0x911dbf90),
  1594. 16: uint32(0x6410b71d),
  1595. 17: uint32(0xf220b06a),
  1596. 18: uint32(0x4871b9f3),
  1597. 19: uint32(0xde41be84),
  1598. 20: uint32(0x7dd4da1a),
  1599. 21: uint32(0xebe4dd6d),
  1600. 22: uint32(0x51b5d4f4),
  1601. 23: uint32(0xc785d383),
  1602. 24: uint32(0x56986c13),
  1603. 25: uint32(0xc0a86b64),
  1604. 26: uint32(0x7af962fd),
  1605. 27: uint32(0xecc9658a),
  1606. 28: uint32(0x4f5c0114),
  1607. 29: uint32(0xd96c0663),
  1608. 30: uint32(0x633d0ffa),
  1609. 31: uint32(0xf50d088d),
  1610. 32: uint32(0xc8206e3b),
  1611. 33: uint32(0x5e10694c),
  1612. 34: uint32(0xe44160d5),
  1613. 35: uint32(0x727167a2),
  1614. 36: uint32(0xd1e4033c),
  1615. 37: uint32(0x47d4044b),
  1616. 38: uint32(0xfd850dd2),
  1617. 39: uint32(0x6bb50aa5),
  1618. 40: uint32(0xfaa8b535),
  1619. 41: uint32(0x6c98b242),
  1620. 42: uint32(0xd6c9bbdb),
  1621. 43: uint32(0x40f9bcac),
  1622. 44: uint32(0xe36cd832),
  1623. 45: uint32(0x755cdf45),
  1624. 46: uint32(0xcf0dd6dc),
  1625. 47: uint32(0x593dd1ab),
  1626. 48: uint32(0xac30d926),
  1627. 49: uint32(0x3a00de51),
  1628. 50: uint32(0x8051d7c8),
  1629. 51: uint32(0x1661d0bf),
  1630. 52: uint32(0xb5f4b421),
  1631. 53: uint32(0x23c4b356),
  1632. 54: uint32(0x9995bacf),
  1633. 55: uint32(0x0fa5bdb8),
  1634. 56: uint32(0x9eb80228),
  1635. 57: uint32(0x0888055f),
  1636. 58: uint32(0xb2d90cc6),
  1637. 59: uint32(0x24e90bb1),
  1638. 60: uint32(0x877c6f2f),
  1639. 61: uint32(0x114c6858),
  1640. 62: uint32(0xab1d61c1),
  1641. 63: uint32(0x3d2d66b6),
  1642. 64: uint32(0x9041dc76),
  1643. 65: uint32(0x0671db01),
  1644. 66: uint32(0xbc20d298),
  1645. 67: uint32(0x2a10d5ef),
  1646. 68: uint32(0x8985b171),
  1647. 69: uint32(0x1fb5b606),
  1648. 70: uint32(0xa5e4bf9f),
  1649. 71: uint32(0x33d4b8e8),
  1650. 72: uint32(0xa2c90778),
  1651. 73: uint32(0x34f9000f),
  1652. 74: uint32(0x8ea80996),
  1653. 75: uint32(0x18980ee1),
  1654. 76: uint32(0xbb0d6a7f),
  1655. 77: uint32(0x2d3d6d08),
  1656. 78: uint32(0x976c6491),
  1657. 79: uint32(0x015c63e6),
  1658. 80: uint32(0xf4516b6b),
  1659. 81: uint32(0x62616c1c),
  1660. 82: uint32(0xd8306585),
  1661. 83: uint32(0x4e0062f2),
  1662. 84: uint32(0xed95066c),
  1663. 85: uint32(0x7ba5011b),
  1664. 86: uint32(0xc1f40882),
  1665. 87: uint32(0x57c40ff5),
  1666. 88: uint32(0xc6d9b065),
  1667. 89: uint32(0x50e9b712),
  1668. 90: uint32(0xeab8be8b),
  1669. 91: uint32(0x7c88b9fc),
  1670. 92: uint32(0xdf1ddd62),
  1671. 93: uint32(0x492dda15),
  1672. 94: uint32(0xf37cd38c),
  1673. 95: uint32(0x654cd4fb),
  1674. 96: uint32(0x5861b24d),
  1675. 97: uint32(0xce51b53a),
  1676. 98: uint32(0x7400bca3),
  1677. 99: uint32(0xe230bbd4),
  1678. 100: uint32(0x41a5df4a),
  1679. 101: uint32(0xd795d83d),
  1680. 102: uint32(0x6dc4d1a4),
  1681. 103: uint32(0xfbf4d6d3),
  1682. 104: uint32(0x6ae96943),
  1683. 105: uint32(0xfcd96e34),
  1684. 106: uint32(0x468867ad),
  1685. 107: uint32(0xd0b860da),
  1686. 108: uint32(0x732d0444),
  1687. 109: uint32(0xe51d0333),
  1688. 110: uint32(0x5f4c0aaa),
  1689. 111: uint32(0xc97c0ddd),
  1690. 112: uint32(0x3c710550),
  1691. 113: uint32(0xaa410227),
  1692. 114: uint32(0x10100bbe),
  1693. 115: uint32(0x86200cc9),
  1694. 116: uint32(0x25b56857),
  1695. 117: uint32(0xb3856f20),
  1696. 118: uint32(0x09d466b9),
  1697. 119: uint32(0x9fe461ce),
  1698. 120: uint32(0x0ef9de5e),
  1699. 121: uint32(0x98c9d929),
  1700. 122: uint32(0x2298d0b0),
  1701. 123: uint32(0xb4a8d7c7),
  1702. 124: uint32(0x173db359),
  1703. 125: uint32(0x810db42e),
  1704. 126: uint32(0x3b5cbdb7),
  1705. 127: uint32(0xad6cbac0),
  1706. 128: uint32(0x2083b8ed),
  1707. 129: uint32(0xb6b3bf9a),
  1708. 130: uint32(0x0ce2b603),
  1709. 131: uint32(0x9ad2b174),
  1710. 132: uint32(0x3947d5ea),
  1711. 133: uint32(0xaf77d29d),
  1712. 134: uint32(0x1526db04),
  1713. 135: uint32(0x8316dc73),
  1714. 136: uint32(0x120b63e3),
  1715. 137: uint32(0x843b6494),
  1716. 138: uint32(0x3e6a6d0d),
  1717. 139: uint32(0xa85a6a7a),
  1718. 140: uint32(0x0bcf0ee4),
  1719. 141: uint32(0x9dff0993),
  1720. 142: uint32(0x27ae000a),
  1721. 143: uint32(0xb19e077d),
  1722. 144: uint32(0x44930ff0),
  1723. 145: uint32(0xd2a30887),
  1724. 146: uint32(0x68f2011e),
  1725. 147: uint32(0xfec20669),
  1726. 148: uint32(0x5d5762f7),
  1727. 149: uint32(0xcb676580),
  1728. 150: uint32(0x71366c19),
  1729. 151: uint32(0xe7066b6e),
  1730. 152: uint32(0x761bd4fe),
  1731. 153: uint32(0xe02bd389),
  1732. 154: uint32(0x5a7ada10),
  1733. 155: uint32(0xcc4add67),
  1734. 156: uint32(0x6fdfb9f9),
  1735. 157: uint32(0xf9efbe8e),
  1736. 158: uint32(0x43beb717),
  1737. 159: uint32(0xd58eb060),
  1738. 160: uint32(0xe8a3d6d6),
  1739. 161: uint32(0x7e93d1a1),
  1740. 162: uint32(0xc4c2d838),
  1741. 163: uint32(0x52f2df4f),
  1742. 164: uint32(0xf167bbd1),
  1743. 165: uint32(0x6757bca6),
  1744. 166: uint32(0xdd06b53f),
  1745. 167: uint32(0x4b36b248),
  1746. 168: uint32(0xda2b0dd8),
  1747. 169: uint32(0x4c1b0aaf),
  1748. 170: uint32(0xf64a0336),
  1749. 171: uint32(0x607a0441),
  1750. 172: uint32(0xc3ef60df),
  1751. 173: uint32(0x55df67a8),
  1752. 174: uint32(0xef8e6e31),
  1753. 175: uint32(0x79be6946),
  1754. 176: uint32(0x8cb361cb),
  1755. 177: uint32(0x1a8366bc),
  1756. 178: uint32(0xa0d26f25),
  1757. 179: uint32(0x36e26852),
  1758. 180: uint32(0x95770ccc),
  1759. 181: uint32(0x03470bbb),
  1760. 182: uint32(0xb9160222),
  1761. 183: uint32(0x2f260555),
  1762. 184: uint32(0xbe3bbac5),
  1763. 185: uint32(0x280bbdb2),
  1764. 186: uint32(0x925ab42b),
  1765. 187: uint32(0x046ab35c),
  1766. 188: uint32(0xa7ffd7c2),
  1767. 189: uint32(0x31cfd0b5),
  1768. 190: uint32(0x8b9ed92c),
  1769. 191: uint32(0x1daede5b),
  1770. 192: uint32(0xb0c2649b),
  1771. 193: uint32(0x26f263ec),
  1772. 194: uint32(0x9ca36a75),
  1773. 195: uint32(0x0a936d02),
  1774. 196: uint32(0xa906099c),
  1775. 197: uint32(0x3f360eeb),
  1776. 198: uint32(0x85670772),
  1777. 199: uint32(0x13570005),
  1778. 200: uint32(0x824abf95),
  1779. 201: uint32(0x147ab8e2),
  1780. 202: uint32(0xae2bb17b),
  1781. 203: uint32(0x381bb60c),
  1782. 204: uint32(0x9b8ed292),
  1783. 205: uint32(0x0dbed5e5),
  1784. 206: uint32(0xb7efdc7c),
  1785. 207: uint32(0x21dfdb0b),
  1786. 208: uint32(0xd4d2d386),
  1787. 209: uint32(0x42e2d4f1),
  1788. 210: uint32(0xf8b3dd68),
  1789. 211: uint32(0x6e83da1f),
  1790. 212: uint32(0xcd16be81),
  1791. 213: uint32(0x5b26b9f6),
  1792. 214: uint32(0xe177b06f),
  1793. 215: uint32(0x7747b718),
  1794. 216: uint32(0xe65a0888),
  1795. 217: uint32(0x706a0fff),
  1796. 218: uint32(0xca3b0666),
  1797. 219: uint32(0x5c0b0111),
  1798. 220: uint32(0xff9e658f),
  1799. 221: uint32(0x69ae62f8),
  1800. 222: uint32(0xd3ff6b61),
  1801. 223: uint32(0x45cf6c16),
  1802. 224: uint32(0x78e20aa0),
  1803. 225: uint32(0xeed20dd7),
  1804. 226: uint32(0x5483044e),
  1805. 227: uint32(0xc2b30339),
  1806. 228: uint32(0x612667a7),
  1807. 229: uint32(0xf71660d0),
  1808. 230: uint32(0x4d476949),
  1809. 231: uint32(0xdb776e3e),
  1810. 232: uint32(0x4a6ad1ae),
  1811. 233: uint32(0xdc5ad6d9),
  1812. 234: uint32(0x660bdf40),
  1813. 235: uint32(0xf03bd837),
  1814. 236: uint32(0x53aebca9),
  1815. 237: uint32(0xc59ebbde),
  1816. 238: uint32(0x7fcfb247),
  1817. 239: uint32(0xe9ffb530),
  1818. 240: uint32(0x1cf2bdbd),
  1819. 241: uint32(0x8ac2baca),
  1820. 242: uint32(0x3093b353),
  1821. 243: uint32(0xa6a3b424),
  1822. 244: uint32(0x0536d0ba),
  1823. 245: uint32(0x9306d7cd),
  1824. 246: uint32(0x2957de54),
  1825. 247: uint32(0xbf67d923),
  1826. 248: uint32(0x2e7a66b3),
  1827. 249: uint32(0xb84a61c4),
  1828. 250: uint32(0x021b685d),
  1829. 251: uint32(0x942b6f2a),
  1830. 252: uint32(0x37be0bb4),
  1831. 253: uint32(0xa18e0cc3),
  1832. 254: uint32(0x1bdf055a),
  1833. 255: uint32(0x8def022d),
  1834. }
  1835. var _crc_braid_table = [4][256]Tz_crc_t{
  1836. 0: {
  1837. 1: uint32(0x65673b46),
  1838. 2: uint32(0xcace768c),
  1839. 3: uint32(0xafa94dca),
  1840. 4: uint32(0x4eedeb59),
  1841. 5: uint32(0x2b8ad01f),
  1842. 6: uint32(0x84239dd5),
  1843. 7: uint32(0xe144a693),
  1844. 8: uint32(0x9ddbd6b2),
  1845. 9: uint32(0xf8bcedf4),
  1846. 10: uint32(0x5715a03e),
  1847. 11: uint32(0x32729b78),
  1848. 12: uint32(0xd3363deb),
  1849. 13: uint32(0xb65106ad),
  1850. 14: uint32(0x19f84b67),
  1851. 15: uint32(0x7c9f7021),
  1852. 16: uint32(0xe0c6ab25),
  1853. 17: uint32(0x85a19063),
  1854. 18: uint32(0x2a08dda9),
  1855. 19: uint32(0x4f6fe6ef),
  1856. 20: uint32(0xae2b407c),
  1857. 21: uint32(0xcb4c7b3a),
  1858. 22: uint32(0x64e536f0),
  1859. 23: uint32(0x01820db6),
  1860. 24: uint32(0x7d1d7d97),
  1861. 25: uint32(0x187a46d1),
  1862. 26: uint32(0xb7d30b1b),
  1863. 27: uint32(0xd2b4305d),
  1864. 28: uint32(0x33f096ce),
  1865. 29: uint32(0x5697ad88),
  1866. 30: uint32(0xf93ee042),
  1867. 31: uint32(0x9c59db04),
  1868. 32: uint32(0x1afc500b),
  1869. 33: uint32(0x7f9b6b4d),
  1870. 34: uint32(0xd0322687),
  1871. 35: uint32(0xb5551dc1),
  1872. 36: uint32(0x5411bb52),
  1873. 37: uint32(0x31768014),
  1874. 38: uint32(0x9edfcdde),
  1875. 39: uint32(0xfbb8f698),
  1876. 40: uint32(0x872786b9),
  1877. 41: uint32(0xe240bdff),
  1878. 42: uint32(0x4de9f035),
  1879. 43: uint32(0x288ecb73),
  1880. 44: uint32(0xc9ca6de0),
  1881. 45: uint32(0xacad56a6),
  1882. 46: uint32(0x03041b6c),
  1883. 47: uint32(0x6663202a),
  1884. 48: uint32(0xfa3afb2e),
  1885. 49: uint32(0x9f5dc068),
  1886. 50: uint32(0x30f48da2),
  1887. 51: uint32(0x5593b6e4),
  1888. 52: uint32(0xb4d71077),
  1889. 53: uint32(0xd1b02b31),
  1890. 54: uint32(0x7e1966fb),
  1891. 55: uint32(0x1b7e5dbd),
  1892. 56: uint32(0x67e12d9c),
  1893. 57: uint32(0x028616da),
  1894. 58: uint32(0xad2f5b10),
  1895. 59: uint32(0xc8486056),
  1896. 60: uint32(0x290cc6c5),
  1897. 61: uint32(0x4c6bfd83),
  1898. 62: uint32(0xe3c2b049),
  1899. 63: uint32(0x86a58b0f),
  1900. 64: uint32(0x35f8a016),
  1901. 65: uint32(0x509f9b50),
  1902. 66: uint32(0xff36d69a),
  1903. 67: uint32(0x9a51eddc),
  1904. 68: uint32(0x7b154b4f),
  1905. 69: uint32(0x1e727009),
  1906. 70: uint32(0xb1db3dc3),
  1907. 71: uint32(0xd4bc0685),
  1908. 72: uint32(0xa82376a4),
  1909. 73: uint32(0xcd444de2),
  1910. 74: uint32(0x62ed0028),
  1911. 75: uint32(0x078a3b6e),
  1912. 76: uint32(0xe6ce9dfd),
  1913. 77: uint32(0x83a9a6bb),
  1914. 78: uint32(0x2c00eb71),
  1915. 79: uint32(0x4967d037),
  1916. 80: uint32(0xd53e0b33),
  1917. 81: uint32(0xb0593075),
  1918. 82: uint32(0x1ff07dbf),
  1919. 83: uint32(0x7a9746f9),
  1920. 84: uint32(0x9bd3e06a),
  1921. 85: uint32(0xfeb4db2c),
  1922. 86: uint32(0x511d96e6),
  1923. 87: uint32(0x347aada0),
  1924. 88: uint32(0x48e5dd81),
  1925. 89: uint32(0x2d82e6c7),
  1926. 90: uint32(0x822bab0d),
  1927. 91: uint32(0xe74c904b),
  1928. 92: uint32(0x060836d8),
  1929. 93: uint32(0x636f0d9e),
  1930. 94: uint32(0xccc64054),
  1931. 95: uint32(0xa9a17b12),
  1932. 96: uint32(0x2f04f01d),
  1933. 97: uint32(0x4a63cb5b),
  1934. 98: uint32(0xe5ca8691),
  1935. 99: uint32(0x80adbdd7),
  1936. 100: uint32(0x61e91b44),
  1937. 101: uint32(0x048e2002),
  1938. 102: uint32(0xab276dc8),
  1939. 103: uint32(0xce40568e),
  1940. 104: uint32(0xb2df26af),
  1941. 105: uint32(0xd7b81de9),
  1942. 106: uint32(0x78115023),
  1943. 107: uint32(0x1d766b65),
  1944. 108: uint32(0xfc32cdf6),
  1945. 109: uint32(0x9955f6b0),
  1946. 110: uint32(0x36fcbb7a),
  1947. 111: uint32(0x539b803c),
  1948. 112: uint32(0xcfc25b38),
  1949. 113: uint32(0xaaa5607e),
  1950. 114: uint32(0x050c2db4),
  1951. 115: uint32(0x606b16f2),
  1952. 116: uint32(0x812fb061),
  1953. 117: uint32(0xe4488b27),
  1954. 118: uint32(0x4be1c6ed),
  1955. 119: uint32(0x2e86fdab),
  1956. 120: uint32(0x52198d8a),
  1957. 121: uint32(0x377eb6cc),
  1958. 122: uint32(0x98d7fb06),
  1959. 123: uint32(0xfdb0c040),
  1960. 124: uint32(0x1cf466d3),
  1961. 125: uint32(0x79935d95),
  1962. 126: uint32(0xd63a105f),
  1963. 127: uint32(0xb35d2b19),
  1964. 128: uint32(0x6bf1402c),
  1965. 129: uint32(0x0e967b6a),
  1966. 130: uint32(0xa13f36a0),
  1967. 131: uint32(0xc4580de6),
  1968. 132: uint32(0x251cab75),
  1969. 133: uint32(0x407b9033),
  1970. 134: uint32(0xefd2ddf9),
  1971. 135: uint32(0x8ab5e6bf),
  1972. 136: uint32(0xf62a969e),
  1973. 137: uint32(0x934dadd8),
  1974. 138: uint32(0x3ce4e012),
  1975. 139: uint32(0x5983db54),
  1976. 140: uint32(0xb8c77dc7),
  1977. 141: uint32(0xdda04681),
  1978. 142: uint32(0x72090b4b),
  1979. 143: uint32(0x176e300d),
  1980. 144: uint32(0x8b37eb09),
  1981. 145: uint32(0xee50d04f),
  1982. 146: uint32(0x41f99d85),
  1983. 147: uint32(0x249ea6c3),
  1984. 148: uint32(0xc5da0050),
  1985. 149: uint32(0xa0bd3b16),
  1986. 150: uint32(0x0f1476dc),
  1987. 151: uint32(0x6a734d9a),
  1988. 152: uint32(0x16ec3dbb),
  1989. 153: uint32(0x738b06fd),
  1990. 154: uint32(0xdc224b37),
  1991. 155: uint32(0xb9457071),
  1992. 156: uint32(0x5801d6e2),
  1993. 157: uint32(0x3d66eda4),
  1994. 158: uint32(0x92cfa06e),
  1995. 159: uint32(0xf7a89b28),
  1996. 160: uint32(0x710d1027),
  1997. 161: uint32(0x146a2b61),
  1998. 162: uint32(0xbbc366ab),
  1999. 163: uint32(0xdea45ded),
  2000. 164: uint32(0x3fe0fb7e),
  2001. 165: uint32(0x5a87c038),
  2002. 166: uint32(0xf52e8df2),
  2003. 167: uint32(0x9049b6b4),
  2004. 168: uint32(0xecd6c695),
  2005. 169: uint32(0x89b1fdd3),
  2006. 170: uint32(0x2618b019),
  2007. 171: uint32(0x437f8b5f),
  2008. 172: uint32(0xa23b2dcc),
  2009. 173: uint32(0xc75c168a),
  2010. 174: uint32(0x68f55b40),
  2011. 175: uint32(0x0d926006),
  2012. 176: uint32(0x91cbbb02),
  2013. 177: uint32(0xf4ac8044),
  2014. 178: uint32(0x5b05cd8e),
  2015. 179: uint32(0x3e62f6c8),
  2016. 180: uint32(0xdf26505b),
  2017. 181: uint32(0xba416b1d),
  2018. 182: uint32(0x15e826d7),
  2019. 183: uint32(0x708f1d91),
  2020. 184: uint32(0x0c106db0),
  2021. 185: uint32(0x697756f6),
  2022. 186: uint32(0xc6de1b3c),
  2023. 187: uint32(0xa3b9207a),
  2024. 188: uint32(0x42fd86e9),
  2025. 189: uint32(0x279abdaf),
  2026. 190: uint32(0x8833f065),
  2027. 191: uint32(0xed54cb23),
  2028. 192: uint32(0x5e09e03a),
  2029. 193: uint32(0x3b6edb7c),
  2030. 194: uint32(0x94c796b6),
  2031. 195: uint32(0xf1a0adf0),
  2032. 196: uint32(0x10e40b63),
  2033. 197: uint32(0x75833025),
  2034. 198: uint32(0xda2a7def),
  2035. 199: uint32(0xbf4d46a9),
  2036. 200: uint32(0xc3d23688),
  2037. 201: uint32(0xa6b50dce),
  2038. 202: uint32(0x091c4004),
  2039. 203: uint32(0x6c7b7b42),
  2040. 204: uint32(0x8d3fddd1),
  2041. 205: uint32(0xe858e697),
  2042. 206: uint32(0x47f1ab5d),
  2043. 207: uint32(0x2296901b),
  2044. 208: uint32(0xbecf4b1f),
  2045. 209: uint32(0xdba87059),
  2046. 210: uint32(0x74013d93),
  2047. 211: uint32(0x116606d5),
  2048. 212: uint32(0xf022a046),
  2049. 213: uint32(0x95459b00),
  2050. 214: uint32(0x3aecd6ca),
  2051. 215: uint32(0x5f8bed8c),
  2052. 216: uint32(0x23149dad),
  2053. 217: uint32(0x4673a6eb),
  2054. 218: uint32(0xe9daeb21),
  2055. 219: uint32(0x8cbdd067),
  2056. 220: uint32(0x6df976f4),
  2057. 221: uint32(0x089e4db2),
  2058. 222: uint32(0xa7370078),
  2059. 223: uint32(0xc2503b3e),
  2060. 224: uint32(0x44f5b031),
  2061. 225: uint32(0x21928b77),
  2062. 226: uint32(0x8e3bc6bd),
  2063. 227: uint32(0xeb5cfdfb),
  2064. 228: uint32(0x0a185b68),
  2065. 229: uint32(0x6f7f602e),
  2066. 230: uint32(0xc0d62de4),
  2067. 231: uint32(0xa5b116a2),
  2068. 232: uint32(0xd92e6683),
  2069. 233: uint32(0xbc495dc5),
  2070. 234: uint32(0x13e0100f),
  2071. 235: uint32(0x76872b49),
  2072. 236: uint32(0x97c38dda),
  2073. 237: uint32(0xf2a4b69c),
  2074. 238: uint32(0x5d0dfb56),
  2075. 239: uint32(0x386ac010),
  2076. 240: uint32(0xa4331b14),
  2077. 241: uint32(0xc1542052),
  2078. 242: uint32(0x6efd6d98),
  2079. 243: uint32(0x0b9a56de),
  2080. 244: uint32(0xeadef04d),
  2081. 245: uint32(0x8fb9cb0b),
  2082. 246: uint32(0x201086c1),
  2083. 247: uint32(0x4577bd87),
  2084. 248: uint32(0x39e8cda6),
  2085. 249: uint32(0x5c8ff6e0),
  2086. 250: uint32(0xf326bb2a),
  2087. 251: uint32(0x9641806c),
  2088. 252: uint32(0x770526ff),
  2089. 253: uint32(0x12621db9),
  2090. 254: uint32(0xbdcb5073),
  2091. 255: uint32(0xd8ac6b35),
  2092. },
  2093. 1: {
  2094. 1: uint32(0xd7e28058),
  2095. 2: uint32(0x74b406f1),
  2096. 3: uint32(0xa35686a9),
  2097. 4: uint32(0xe9680de2),
  2098. 5: uint32(0x3e8a8dba),
  2099. 6: uint32(0x9ddc0b13),
  2100. 7: uint32(0x4a3e8b4b),
  2101. 8: uint32(0x09a11d85),
  2102. 9: uint32(0xde439ddd),
  2103. 10: uint32(0x7d151b74),
  2104. 11: uint32(0xaaf79b2c),
  2105. 12: uint32(0xe0c91067),
  2106. 13: uint32(0x372b903f),
  2107. 14: uint32(0x947d1696),
  2108. 15: uint32(0x439f96ce),
  2109. 16: uint32(0x13423b0a),
  2110. 17: uint32(0xc4a0bb52),
  2111. 18: uint32(0x67f63dfb),
  2112. 19: uint32(0xb014bda3),
  2113. 20: uint32(0xfa2a36e8),
  2114. 21: uint32(0x2dc8b6b0),
  2115. 22: uint32(0x8e9e3019),
  2116. 23: uint32(0x597cb041),
  2117. 24: uint32(0x1ae3268f),
  2118. 25: uint32(0xcd01a6d7),
  2119. 26: uint32(0x6e57207e),
  2120. 27: uint32(0xb9b5a026),
  2121. 28: uint32(0xf38b2b6d),
  2122. 29: uint32(0x2469ab35),
  2123. 30: uint32(0x873f2d9c),
  2124. 31: uint32(0x50ddadc4),
  2125. 32: uint32(0x26847614),
  2126. 33: uint32(0xf166f64c),
  2127. 34: uint32(0x523070e5),
  2128. 35: uint32(0x85d2f0bd),
  2129. 36: uint32(0xcfec7bf6),
  2130. 37: uint32(0x180efbae),
  2131. 38: uint32(0xbb587d07),
  2132. 39: uint32(0x6cbafd5f),
  2133. 40: uint32(0x2f256b91),
  2134. 41: uint32(0xf8c7ebc9),
  2135. 42: uint32(0x5b916d60),
  2136. 43: uint32(0x8c73ed38),
  2137. 44: uint32(0xc64d6673),
  2138. 45: uint32(0x11afe62b),
  2139. 46: uint32(0xb2f96082),
  2140. 47: uint32(0x651be0da),
  2141. 48: uint32(0x35c64d1e),
  2142. 49: uint32(0xe224cd46),
  2143. 50: uint32(0x41724bef),
  2144. 51: uint32(0x9690cbb7),
  2145. 52: uint32(0xdcae40fc),
  2146. 53: uint32(0x0b4cc0a4),
  2147. 54: uint32(0xa81a460d),
  2148. 55: uint32(0x7ff8c655),
  2149. 56: uint32(0x3c67509b),
  2150. 57: uint32(0xeb85d0c3),
  2151. 58: uint32(0x48d3566a),
  2152. 59: uint32(0x9f31d632),
  2153. 60: uint32(0xd50f5d79),
  2154. 61: uint32(0x02eddd21),
  2155. 62: uint32(0xa1bb5b88),
  2156. 63: uint32(0x7659dbd0),
  2157. 64: uint32(0x4d08ec28),
  2158. 65: uint32(0x9aea6c70),
  2159. 66: uint32(0x39bcead9),
  2160. 67: uint32(0xee5e6a81),
  2161. 68: uint32(0xa460e1ca),
  2162. 69: uint32(0x73826192),
  2163. 70: uint32(0xd0d4e73b),
  2164. 71: uint32(0x07366763),
  2165. 72: uint32(0x44a9f1ad),
  2166. 73: uint32(0x934b71f5),
  2167. 74: uint32(0x301df75c),
  2168. 75: uint32(0xe7ff7704),
  2169. 76: uint32(0xadc1fc4f),
  2170. 77: uint32(0x7a237c17),
  2171. 78: uint32(0xd975fabe),
  2172. 79: uint32(0x0e977ae6),
  2173. 80: uint32(0x5e4ad722),
  2174. 81: uint32(0x89a8577a),
  2175. 82: uint32(0x2afed1d3),
  2176. 83: uint32(0xfd1c518b),
  2177. 84: uint32(0xb722dac0),
  2178. 85: uint32(0x60c05a98),
  2179. 86: uint32(0xc396dc31),
  2180. 87: uint32(0x14745c69),
  2181. 88: uint32(0x57ebcaa7),
  2182. 89: uint32(0x80094aff),
  2183. 90: uint32(0x235fcc56),
  2184. 91: uint32(0xf4bd4c0e),
  2185. 92: uint32(0xbe83c745),
  2186. 93: uint32(0x6961471d),
  2187. 94: uint32(0xca37c1b4),
  2188. 95: uint32(0x1dd541ec),
  2189. 96: uint32(0x6b8c9a3c),
  2190. 97: uint32(0xbc6e1a64),
  2191. 98: uint32(0x1f389ccd),
  2192. 99: uint32(0xc8da1c95),
  2193. 100: uint32(0x82e497de),
  2194. 101: uint32(0x55061786),
  2195. 102: uint32(0xf650912f),
  2196. 103: uint32(0x21b21177),
  2197. 104: uint32(0x622d87b9),
  2198. 105: uint32(0xb5cf07e1),
  2199. 106: uint32(0x16998148),
  2200. 107: uint32(0xc17b0110),
  2201. 108: uint32(0x8b458a5b),
  2202. 109: uint32(0x5ca70a03),
  2203. 110: uint32(0xfff18caa),
  2204. 111: uint32(0x28130cf2),
  2205. 112: uint32(0x78cea136),
  2206. 113: uint32(0xaf2c216e),
  2207. 114: uint32(0x0c7aa7c7),
  2208. 115: uint32(0xdb98279f),
  2209. 116: uint32(0x91a6acd4),
  2210. 117: uint32(0x46442c8c),
  2211. 118: uint32(0xe512aa25),
  2212. 119: uint32(0x32f02a7d),
  2213. 120: uint32(0x716fbcb3),
  2214. 121: uint32(0xa68d3ceb),
  2215. 122: uint32(0x05dbba42),
  2216. 123: uint32(0xd2393a1a),
  2217. 124: uint32(0x9807b151),
  2218. 125: uint32(0x4fe53109),
  2219. 126: uint32(0xecb3b7a0),
  2220. 127: uint32(0x3b5137f8),
  2221. 128: uint32(0x9a11d850),
  2222. 129: uint32(0x4df35808),
  2223. 130: uint32(0xeea5dea1),
  2224. 131: uint32(0x39475ef9),
  2225. 132: uint32(0x7379d5b2),
  2226. 133: uint32(0xa49b55ea),
  2227. 134: uint32(0x07cdd343),
  2228. 135: uint32(0xd02f531b),
  2229. 136: uint32(0x93b0c5d5),
  2230. 137: uint32(0x4452458d),
  2231. 138: uint32(0xe704c324),
  2232. 139: uint32(0x30e6437c),
  2233. 140: uint32(0x7ad8c837),
  2234. 141: uint32(0xad3a486f),
  2235. 142: uint32(0x0e6ccec6),
  2236. 143: uint32(0xd98e4e9e),
  2237. 144: uint32(0x8953e35a),
  2238. 145: uint32(0x5eb16302),
  2239. 146: uint32(0xfde7e5ab),
  2240. 147: uint32(0x2a0565f3),
  2241. 148: uint32(0x603beeb8),
  2242. 149: uint32(0xb7d96ee0),
  2243. 150: uint32(0x148fe849),
  2244. 151: uint32(0xc36d6811),
  2245. 152: uint32(0x80f2fedf),
  2246. 153: uint32(0x57107e87),
  2247. 154: uint32(0xf446f82e),
  2248. 155: uint32(0x23a47876),
  2249. 156: uint32(0x699af33d),
  2250. 157: uint32(0xbe787365),
  2251. 158: uint32(0x1d2ef5cc),
  2252. 159: uint32(0xcacc7594),
  2253. 160: uint32(0xbc95ae44),
  2254. 161: uint32(0x6b772e1c),
  2255. 162: uint32(0xc821a8b5),
  2256. 163: uint32(0x1fc328ed),
  2257. 164: uint32(0x55fda3a6),
  2258. 165: uint32(0x821f23fe),
  2259. 166: uint32(0x2149a557),
  2260. 167: uint32(0xf6ab250f),
  2261. 168: uint32(0xb534b3c1),
  2262. 169: uint32(0x62d63399),
  2263. 170: uint32(0xc180b530),
  2264. 171: uint32(0x16623568),
  2265. 172: uint32(0x5c5cbe23),
  2266. 173: uint32(0x8bbe3e7b),
  2267. 174: uint32(0x28e8b8d2),
  2268. 175: uint32(0xff0a388a),
  2269. 176: uint32(0xafd7954e),
  2270. 177: uint32(0x78351516),
  2271. 178: uint32(0xdb6393bf),
  2272. 179: uint32(0x0c8113e7),
  2273. 180: uint32(0x46bf98ac),
  2274. 181: uint32(0x915d18f4),
  2275. 182: uint32(0x320b9e5d),
  2276. 183: uint32(0xe5e91e05),
  2277. 184: uint32(0xa67688cb),
  2278. 185: uint32(0x71940893),
  2279. 186: uint32(0xd2c28e3a),
  2280. 187: uint32(0x05200e62),
  2281. 188: uint32(0x4f1e8529),
  2282. 189: uint32(0x98fc0571),
  2283. 190: uint32(0x3baa83d8),
  2284. 191: uint32(0xec480380),
  2285. 192: uint32(0xd7193478),
  2286. 193: uint32(0x00fbb420),
  2287. 194: uint32(0xa3ad3289),
  2288. 195: uint32(0x744fb2d1),
  2289. 196: uint32(0x3e71399a),
  2290. 197: uint32(0xe993b9c2),
  2291. 198: uint32(0x4ac53f6b),
  2292. 199: uint32(0x9d27bf33),
  2293. 200: uint32(0xdeb829fd),
  2294. 201: uint32(0x095aa9a5),
  2295. 202: uint32(0xaa0c2f0c),
  2296. 203: uint32(0x7deeaf54),
  2297. 204: uint32(0x37d0241f),
  2298. 205: uint32(0xe032a447),
  2299. 206: uint32(0x436422ee),
  2300. 207: uint32(0x9486a2b6),
  2301. 208: uint32(0xc45b0f72),
  2302. 209: uint32(0x13b98f2a),
  2303. 210: uint32(0xb0ef0983),
  2304. 211: uint32(0x670d89db),
  2305. 212: uint32(0x2d330290),
  2306. 213: uint32(0xfad182c8),
  2307. 214: uint32(0x59870461),
  2308. 215: uint32(0x8e658439),
  2309. 216: uint32(0xcdfa12f7),
  2310. 217: uint32(0x1a1892af),
  2311. 218: uint32(0xb94e1406),
  2312. 219: uint32(0x6eac945e),
  2313. 220: uint32(0x24921f15),
  2314. 221: uint32(0xf3709f4d),
  2315. 222: uint32(0x502619e4),
  2316. 223: uint32(0x87c499bc),
  2317. 224: uint32(0xf19d426c),
  2318. 225: uint32(0x267fc234),
  2319. 226: uint32(0x8529449d),
  2320. 227: uint32(0x52cbc4c5),
  2321. 228: uint32(0x18f54f8e),
  2322. 229: uint32(0xcf17cfd6),
  2323. 230: uint32(0x6c41497f),
  2324. 231: uint32(0xbba3c927),
  2325. 232: uint32(0xf83c5fe9),
  2326. 233: uint32(0x2fdedfb1),
  2327. 234: uint32(0x8c885918),
  2328. 235: uint32(0x5b6ad940),
  2329. 236: uint32(0x1154520b),
  2330. 237: uint32(0xc6b6d253),
  2331. 238: uint32(0x65e054fa),
  2332. 239: uint32(0xb202d4a2),
  2333. 240: uint32(0xe2df7966),
  2334. 241: uint32(0x353df93e),
  2335. 242: uint32(0x966b7f97),
  2336. 243: uint32(0x4189ffcf),
  2337. 244: uint32(0x0bb77484),
  2338. 245: uint32(0xdc55f4dc),
  2339. 246: uint32(0x7f037275),
  2340. 247: uint32(0xa8e1f22d),
  2341. 248: uint32(0xeb7e64e3),
  2342. 249: uint32(0x3c9ce4bb),
  2343. 250: uint32(0x9fca6212),
  2344. 251: uint32(0x4828e24a),
  2345. 252: uint32(0x02166901),
  2346. 253: uint32(0xd5f4e959),
  2347. 254: uint32(0x76a26ff0),
  2348. 255: uint32(0xa140efa8),
  2349. },
  2350. 2: {
  2351. 1: uint32(0xef52b6e1),
  2352. 2: uint32(0x05d46b83),
  2353. 3: uint32(0xea86dd62),
  2354. 4: uint32(0x0ba8d706),
  2355. 5: uint32(0xe4fa61e7),
  2356. 6: uint32(0x0e7cbc85),
  2357. 7: uint32(0xe12e0a64),
  2358. 8: uint32(0x1751ae0c),
  2359. 9: uint32(0xf80318ed),
  2360. 10: uint32(0x1285c58f),
  2361. 11: uint32(0xfdd7736e),
  2362. 12: uint32(0x1cf9790a),
  2363. 13: uint32(0xf3abcfeb),
  2364. 14: uint32(0x192d1289),
  2365. 15: uint32(0xf67fa468),
  2366. 16: uint32(0x2ea35c18),
  2367. 17: uint32(0xc1f1eaf9),
  2368. 18: uint32(0x2b77379b),
  2369. 19: uint32(0xc425817a),
  2370. 20: uint32(0x250b8b1e),
  2371. 21: uint32(0xca593dff),
  2372. 22: uint32(0x20dfe09d),
  2373. 23: uint32(0xcf8d567c),
  2374. 24: uint32(0x39f2f214),
  2375. 25: uint32(0xd6a044f5),
  2376. 26: uint32(0x3c269997),
  2377. 27: uint32(0xd3742f76),
  2378. 28: uint32(0x325a2512),
  2379. 29: uint32(0xdd0893f3),
  2380. 30: uint32(0x378e4e91),
  2381. 31: uint32(0xd8dcf870),
  2382. 32: uint32(0x5d46b830),
  2383. 33: uint32(0xb2140ed1),
  2384. 34: uint32(0x5892d3b3),
  2385. 35: uint32(0xb7c06552),
  2386. 36: uint32(0x56ee6f36),
  2387. 37: uint32(0xb9bcd9d7),
  2388. 38: uint32(0x533a04b5),
  2389. 39: uint32(0xbc68b254),
  2390. 40: uint32(0x4a17163c),
  2391. 41: uint32(0xa545a0dd),
  2392. 42: uint32(0x4fc37dbf),
  2393. 43: uint32(0xa091cb5e),
  2394. 44: uint32(0x41bfc13a),
  2395. 45: uint32(0xaeed77db),
  2396. 46: uint32(0x446baab9),
  2397. 47: uint32(0xab391c58),
  2398. 48: uint32(0x73e5e428),
  2399. 49: uint32(0x9cb752c9),
  2400. 50: uint32(0x76318fab),
  2401. 51: uint32(0x9963394a),
  2402. 52: uint32(0x784d332e),
  2403. 53: uint32(0x971f85cf),
  2404. 54: uint32(0x7d9958ad),
  2405. 55: uint32(0x92cbee4c),
  2406. 56: uint32(0x64b44a24),
  2407. 57: uint32(0x8be6fcc5),
  2408. 58: uint32(0x616021a7),
  2409. 59: uint32(0x8e329746),
  2410. 60: uint32(0x6f1c9d22),
  2411. 61: uint32(0x804e2bc3),
  2412. 62: uint32(0x6ac8f6a1),
  2413. 63: uint32(0x859a4040),
  2414. 64: uint32(0xba8d7060),
  2415. 65: uint32(0x55dfc681),
  2416. 66: uint32(0xbf591be3),
  2417. 67: uint32(0x500bad02),
  2418. 68: uint32(0xb125a766),
  2419. 69: uint32(0x5e771187),
  2420. 70: uint32(0xb4f1cce5),
  2421. 71: uint32(0x5ba37a04),
  2422. 72: uint32(0xaddcde6c),
  2423. 73: uint32(0x428e688d),
  2424. 74: uint32(0xa808b5ef),
  2425. 75: uint32(0x475a030e),
  2426. 76: uint32(0xa674096a),
  2427. 77: uint32(0x4926bf8b),
  2428. 78: uint32(0xa3a062e9),
  2429. 79: uint32(0x4cf2d408),
  2430. 80: uint32(0x942e2c78),
  2431. 81: uint32(0x7b7c9a99),
  2432. 82: uint32(0x91fa47fb),
  2433. 83: uint32(0x7ea8f11a),
  2434. 84: uint32(0x9f86fb7e),
  2435. 85: uint32(0x70d44d9f),
  2436. 86: uint32(0x9a5290fd),
  2437. 87: uint32(0x7500261c),
  2438. 88: uint32(0x837f8274),
  2439. 89: uint32(0x6c2d3495),
  2440. 90: uint32(0x86abe9f7),
  2441. 91: uint32(0x69f95f16),
  2442. 92: uint32(0x88d75572),
  2443. 93: uint32(0x6785e393),
  2444. 94: uint32(0x8d033ef1),
  2445. 95: uint32(0x62518810),
  2446. 96: uint32(0xe7cbc850),
  2447. 97: uint32(0x08997eb1),
  2448. 98: uint32(0xe21fa3d3),
  2449. 99: uint32(0x0d4d1532),
  2450. 100: uint32(0xec631f56),
  2451. 101: uint32(0x0331a9b7),
  2452. 102: uint32(0xe9b774d5),
  2453. 103: uint32(0x06e5c234),
  2454. 104: uint32(0xf09a665c),
  2455. 105: uint32(0x1fc8d0bd),
  2456. 106: uint32(0xf54e0ddf),
  2457. 107: uint32(0x1a1cbb3e),
  2458. 108: uint32(0xfb32b15a),
  2459. 109: uint32(0x146007bb),
  2460. 110: uint32(0xfee6dad9),
  2461. 111: uint32(0x11b46c38),
  2462. 112: uint32(0xc9689448),
  2463. 113: uint32(0x263a22a9),
  2464. 114: uint32(0xccbcffcb),
  2465. 115: uint32(0x23ee492a),
  2466. 116: uint32(0xc2c0434e),
  2467. 117: uint32(0x2d92f5af),
  2468. 118: uint32(0xc71428cd),
  2469. 119: uint32(0x28469e2c),
  2470. 120: uint32(0xde393a44),
  2471. 121: uint32(0x316b8ca5),
  2472. 122: uint32(0xdbed51c7),
  2473. 123: uint32(0x34bfe726),
  2474. 124: uint32(0xd591ed42),
  2475. 125: uint32(0x3ac35ba3),
  2476. 126: uint32(0xd04586c1),
  2477. 127: uint32(0x3f173020),
  2478. 128: uint32(0xae6be681),
  2479. 129: uint32(0x41395060),
  2480. 130: uint32(0xabbf8d02),
  2481. 131: uint32(0x44ed3be3),
  2482. 132: uint32(0xa5c33187),
  2483. 133: uint32(0x4a918766),
  2484. 134: uint32(0xa0175a04),
  2485. 135: uint32(0x4f45ece5),
  2486. 136: uint32(0xb93a488d),
  2487. 137: uint32(0x5668fe6c),
  2488. 138: uint32(0xbcee230e),
  2489. 139: uint32(0x53bc95ef),
  2490. 140: uint32(0xb2929f8b),
  2491. 141: uint32(0x5dc0296a),
  2492. 142: uint32(0xb746f408),
  2493. 143: uint32(0x581442e9),
  2494. 144: uint32(0x80c8ba99),
  2495. 145: uint32(0x6f9a0c78),
  2496. 146: uint32(0x851cd11a),
  2497. 147: uint32(0x6a4e67fb),
  2498. 148: uint32(0x8b606d9f),
  2499. 149: uint32(0x6432db7e),
  2500. 150: uint32(0x8eb4061c),
  2501. 151: uint32(0x61e6b0fd),
  2502. 152: uint32(0x97991495),
  2503. 153: uint32(0x78cba274),
  2504. 154: uint32(0x924d7f16),
  2505. 155: uint32(0x7d1fc9f7),
  2506. 156: uint32(0x9c31c393),
  2507. 157: uint32(0x73637572),
  2508. 158: uint32(0x99e5a810),
  2509. 159: uint32(0x76b71ef1),
  2510. 160: uint32(0xf32d5eb1),
  2511. 161: uint32(0x1c7fe850),
  2512. 162: uint32(0xf6f93532),
  2513. 163: uint32(0x19ab83d3),
  2514. 164: uint32(0xf88589b7),
  2515. 165: uint32(0x17d73f56),
  2516. 166: uint32(0xfd51e234),
  2517. 167: uint32(0x120354d5),
  2518. 168: uint32(0xe47cf0bd),
  2519. 169: uint32(0x0b2e465c),
  2520. 170: uint32(0xe1a89b3e),
  2521. 171: uint32(0x0efa2ddf),
  2522. 172: uint32(0xefd427bb),
  2523. 173: uint32(0x0086915a),
  2524. 174: uint32(0xea004c38),
  2525. 175: uint32(0x0552fad9),
  2526. 176: uint32(0xdd8e02a9),
  2527. 177: uint32(0x32dcb448),
  2528. 178: uint32(0xd85a692a),
  2529. 179: uint32(0x3708dfcb),
  2530. 180: uint32(0xd626d5af),
  2531. 181: uint32(0x3974634e),
  2532. 182: uint32(0xd3f2be2c),
  2533. 183: uint32(0x3ca008cd),
  2534. 184: uint32(0xcadfaca5),
  2535. 185: uint32(0x258d1a44),
  2536. 186: uint32(0xcf0bc726),
  2537. 187: uint32(0x205971c7),
  2538. 188: uint32(0xc1777ba3),
  2539. 189: uint32(0x2e25cd42),
  2540. 190: uint32(0xc4a31020),
  2541. 191: uint32(0x2bf1a6c1),
  2542. 192: uint32(0x14e696e1),
  2543. 193: uint32(0xfbb42000),
  2544. 194: uint32(0x1132fd62),
  2545. 195: uint32(0xfe604b83),
  2546. 196: uint32(0x1f4e41e7),
  2547. 197: uint32(0xf01cf706),
  2548. 198: uint32(0x1a9a2a64),
  2549. 199: uint32(0xf5c89c85),
  2550. 200: uint32(0x03b738ed),
  2551. 201: uint32(0xece58e0c),
  2552. 202: uint32(0x0663536e),
  2553. 203: uint32(0xe931e58f),
  2554. 204: uint32(0x081fefeb),
  2555. 205: uint32(0xe74d590a),
  2556. 206: uint32(0x0dcb8468),
  2557. 207: uint32(0xe2993289),
  2558. 208: uint32(0x3a45caf9),
  2559. 209: uint32(0xd5177c18),
  2560. 210: uint32(0x3f91a17a),
  2561. 211: uint32(0xd0c3179b),
  2562. 212: uint32(0x31ed1dff),
  2563. 213: uint32(0xdebfab1e),
  2564. 214: uint32(0x3439767c),
  2565. 215: uint32(0xdb6bc09d),
  2566. 216: uint32(0x2d1464f5),
  2567. 217: uint32(0xc246d214),
  2568. 218: uint32(0x28c00f76),
  2569. 219: uint32(0xc792b997),
  2570. 220: uint32(0x26bcb3f3),
  2571. 221: uint32(0xc9ee0512),
  2572. 222: uint32(0x2368d870),
  2573. 223: uint32(0xcc3a6e91),
  2574. 224: uint32(0x49a02ed1),
  2575. 225: uint32(0xa6f29830),
  2576. 226: uint32(0x4c744552),
  2577. 227: uint32(0xa326f3b3),
  2578. 228: uint32(0x4208f9d7),
  2579. 229: uint32(0xad5a4f36),
  2580. 230: uint32(0x47dc9254),
  2581. 231: uint32(0xa88e24b5),
  2582. 232: uint32(0x5ef180dd),
  2583. 233: uint32(0xb1a3363c),
  2584. 234: uint32(0x5b25eb5e),
  2585. 235: uint32(0xb4775dbf),
  2586. 236: uint32(0x555957db),
  2587. 237: uint32(0xba0be13a),
  2588. 238: uint32(0x508d3c58),
  2589. 239: uint32(0xbfdf8ab9),
  2590. 240: uint32(0x670372c9),
  2591. 241: uint32(0x8851c428),
  2592. 242: uint32(0x62d7194a),
  2593. 243: uint32(0x8d85afab),
  2594. 244: uint32(0x6caba5cf),
  2595. 245: uint32(0x83f9132e),
  2596. 246: uint32(0x697fce4c),
  2597. 247: uint32(0x862d78ad),
  2598. 248: uint32(0x7052dcc5),
  2599. 249: uint32(0x9f006a24),
  2600. 250: uint32(0x7586b746),
  2601. 251: uint32(0x9ad401a7),
  2602. 252: uint32(0x7bfa0bc3),
  2603. 253: uint32(0x94a8bd22),
  2604. 254: uint32(0x7e2e6040),
  2605. 255: uint32(0x917cd6a1),
  2606. },
  2607. 3: {
  2608. 1: uint32(0x87a6cb43),
  2609. 2: uint32(0xd43c90c7),
  2610. 3: uint32(0x539a5b84),
  2611. 4: uint32(0x730827cf),
  2612. 5: uint32(0xf4aeec8c),
  2613. 6: uint32(0xa734b708),
  2614. 7: uint32(0x20927c4b),
  2615. 8: uint32(0xe6104f9e),
  2616. 9: uint32(0x61b684dd),
  2617. 10: uint32(0x322cdf59),
  2618. 11: uint32(0xb58a141a),
  2619. 12: uint32(0x95186851),
  2620. 13: uint32(0x12bea312),
  2621. 14: uint32(0x4124f896),
  2622. 15: uint32(0xc68233d5),
  2623. 16: uint32(0x1751997d),
  2624. 17: uint32(0x90f7523e),
  2625. 18: uint32(0xc36d09ba),
  2626. 19: uint32(0x44cbc2f9),
  2627. 20: uint32(0x6459beb2),
  2628. 21: uint32(0xe3ff75f1),
  2629. 22: uint32(0xb0652e75),
  2630. 23: uint32(0x37c3e536),
  2631. 24: uint32(0xf141d6e3),
  2632. 25: uint32(0x76e71da0),
  2633. 26: uint32(0x257d4624),
  2634. 27: uint32(0xa2db8d67),
  2635. 28: uint32(0x8249f12c),
  2636. 29: uint32(0x05ef3a6f),
  2637. 30: uint32(0x567561eb),
  2638. 31: uint32(0xd1d3aaa8),
  2639. 32: uint32(0x2ea332fa),
  2640. 33: uint32(0xa905f9b9),
  2641. 34: uint32(0xfa9fa23d),
  2642. 35: uint32(0x7d39697e),
  2643. 36: uint32(0x5dab1535),
  2644. 37: uint32(0xda0dde76),
  2645. 38: uint32(0x899785f2),
  2646. 39: uint32(0x0e314eb1),
  2647. 40: uint32(0xc8b37d64),
  2648. 41: uint32(0x4f15b627),
  2649. 42: uint32(0x1c8feda3),
  2650. 43: uint32(0x9b2926e0),
  2651. 44: uint32(0xbbbb5aab),
  2652. 45: uint32(0x3c1d91e8),
  2653. 46: uint32(0x6f87ca6c),
  2654. 47: uint32(0xe821012f),
  2655. 48: uint32(0x39f2ab87),
  2656. 49: uint32(0xbe5460c4),
  2657. 50: uint32(0xedce3b40),
  2658. 51: uint32(0x6a68f003),
  2659. 52: uint32(0x4afa8c48),
  2660. 53: uint32(0xcd5c470b),
  2661. 54: uint32(0x9ec61c8f),
  2662. 55: uint32(0x1960d7cc),
  2663. 56: uint32(0xdfe2e419),
  2664. 57: uint32(0x58442f5a),
  2665. 58: uint32(0x0bde74de),
  2666. 59: uint32(0x8c78bf9d),
  2667. 60: uint32(0xaceac3d6),
  2668. 61: uint32(0x2b4c0895),
  2669. 62: uint32(0x78d65311),
  2670. 63: uint32(0xff709852),
  2671. 64: uint32(0x5d4665f4),
  2672. 65: uint32(0xdae0aeb7),
  2673. 66: uint32(0x897af533),
  2674. 67: uint32(0x0edc3e70),
  2675. 68: uint32(0x2e4e423b),
  2676. 69: uint32(0xa9e88978),
  2677. 70: uint32(0xfa72d2fc),
  2678. 71: uint32(0x7dd419bf),
  2679. 72: uint32(0xbb562a6a),
  2680. 73: uint32(0x3cf0e129),
  2681. 74: uint32(0x6f6abaad),
  2682. 75: uint32(0xe8cc71ee),
  2683. 76: uint32(0xc85e0da5),
  2684. 77: uint32(0x4ff8c6e6),
  2685. 78: uint32(0x1c629d62),
  2686. 79: uint32(0x9bc45621),
  2687. 80: uint32(0x4a17fc89),
  2688. 81: uint32(0xcdb137ca),
  2689. 82: uint32(0x9e2b6c4e),
  2690. 83: uint32(0x198da70d),
  2691. 84: uint32(0x391fdb46),
  2692. 85: uint32(0xbeb91005),
  2693. 86: uint32(0xed234b81),
  2694. 87: uint32(0x6a8580c2),
  2695. 88: uint32(0xac07b317),
  2696. 89: uint32(0x2ba17854),
  2697. 90: uint32(0x783b23d0),
  2698. 91: uint32(0xff9de893),
  2699. 92: uint32(0xdf0f94d8),
  2700. 93: uint32(0x58a95f9b),
  2701. 94: uint32(0x0b33041f),
  2702. 95: uint32(0x8c95cf5c),
  2703. 96: uint32(0x73e5570e),
  2704. 97: uint32(0xf4439c4d),
  2705. 98: uint32(0xa7d9c7c9),
  2706. 99: uint32(0x207f0c8a),
  2707. 100: uint32(0x00ed70c1),
  2708. 101: uint32(0x874bbb82),
  2709. 102: uint32(0xd4d1e006),
  2710. 103: uint32(0x53772b45),
  2711. 104: uint32(0x95f51890),
  2712. 105: uint32(0x1253d3d3),
  2713. 106: uint32(0x41c98857),
  2714. 107: uint32(0xc66f4314),
  2715. 108: uint32(0xe6fd3f5f),
  2716. 109: uint32(0x615bf41c),
  2717. 110: uint32(0x32c1af98),
  2718. 111: uint32(0xb56764db),
  2719. 112: uint32(0x64b4ce73),
  2720. 113: uint32(0xe3120530),
  2721. 114: uint32(0xb0885eb4),
  2722. 115: uint32(0x372e95f7),
  2723. 116: uint32(0x17bce9bc),
  2724. 117: uint32(0x901a22ff),
  2725. 118: uint32(0xc380797b),
  2726. 119: uint32(0x4426b238),
  2727. 120: uint32(0x82a481ed),
  2728. 121: uint32(0x05024aae),
  2729. 122: uint32(0x5698112a),
  2730. 123: uint32(0xd13eda69),
  2731. 124: uint32(0xf1aca622),
  2732. 125: uint32(0x760a6d61),
  2733. 126: uint32(0x259036e5),
  2734. 127: uint32(0xa236fda6),
  2735. 128: uint32(0xba8ccbe8),
  2736. 129: uint32(0x3d2a00ab),
  2737. 130: uint32(0x6eb05b2f),
  2738. 131: uint32(0xe916906c),
  2739. 132: uint32(0xc984ec27),
  2740. 133: uint32(0x4e222764),
  2741. 134: uint32(0x1db87ce0),
  2742. 135: uint32(0x9a1eb7a3),
  2743. 136: uint32(0x5c9c8476),
  2744. 137: uint32(0xdb3a4f35),
  2745. 138: uint32(0x88a014b1),
  2746. 139: uint32(0x0f06dff2),
  2747. 140: uint32(0x2f94a3b9),
  2748. 141: uint32(0xa83268fa),
  2749. 142: uint32(0xfba8337e),
  2750. 143: uint32(0x7c0ef83d),
  2751. 144: uint32(0xaddd5295),
  2752. 145: uint32(0x2a7b99d6),
  2753. 146: uint32(0x79e1c252),
  2754. 147: uint32(0xfe470911),
  2755. 148: uint32(0xded5755a),
  2756. 149: uint32(0x5973be19),
  2757. 150: uint32(0x0ae9e59d),
  2758. 151: uint32(0x8d4f2ede),
  2759. 152: uint32(0x4bcd1d0b),
  2760. 153: uint32(0xcc6bd648),
  2761. 154: uint32(0x9ff18dcc),
  2762. 155: uint32(0x1857468f),
  2763. 156: uint32(0x38c53ac4),
  2764. 157: uint32(0xbf63f187),
  2765. 158: uint32(0xecf9aa03),
  2766. 159: uint32(0x6b5f6140),
  2767. 160: uint32(0x942ff912),
  2768. 161: uint32(0x13893251),
  2769. 162: uint32(0x401369d5),
  2770. 163: uint32(0xc7b5a296),
  2771. 164: uint32(0xe727dedd),
  2772. 165: uint32(0x6081159e),
  2773. 166: uint32(0x331b4e1a),
  2774. 167: uint32(0xb4bd8559),
  2775. 168: uint32(0x723fb68c),
  2776. 169: uint32(0xf5997dcf),
  2777. 170: uint32(0xa603264b),
  2778. 171: uint32(0x21a5ed08),
  2779. 172: uint32(0x01379143),
  2780. 173: uint32(0x86915a00),
  2781. 174: uint32(0xd50b0184),
  2782. 175: uint32(0x52adcac7),
  2783. 176: uint32(0x837e606f),
  2784. 177: uint32(0x04d8ab2c),
  2785. 178: uint32(0x5742f0a8),
  2786. 179: uint32(0xd0e43beb),
  2787. 180: uint32(0xf07647a0),
  2788. 181: uint32(0x77d08ce3),
  2789. 182: uint32(0x244ad767),
  2790. 183: uint32(0xa3ec1c24),
  2791. 184: uint32(0x656e2ff1),
  2792. 185: uint32(0xe2c8e4b2),
  2793. 186: uint32(0xb152bf36),
  2794. 187: uint32(0x36f47475),
  2795. 188: uint32(0x1666083e),
  2796. 189: uint32(0x91c0c37d),
  2797. 190: uint32(0xc25a98f9),
  2798. 191: uint32(0x45fc53ba),
  2799. 192: uint32(0xe7caae1c),
  2800. 193: uint32(0x606c655f),
  2801. 194: uint32(0x33f63edb),
  2802. 195: uint32(0xb450f598),
  2803. 196: uint32(0x94c289d3),
  2804. 197: uint32(0x13644290),
  2805. 198: uint32(0x40fe1914),
  2806. 199: uint32(0xc758d257),
  2807. 200: uint32(0x01dae182),
  2808. 201: uint32(0x867c2ac1),
  2809. 202: uint32(0xd5e67145),
  2810. 203: uint32(0x5240ba06),
  2811. 204: uint32(0x72d2c64d),
  2812. 205: uint32(0xf5740d0e),
  2813. 206: uint32(0xa6ee568a),
  2814. 207: uint32(0x21489dc9),
  2815. 208: uint32(0xf09b3761),
  2816. 209: uint32(0x773dfc22),
  2817. 210: uint32(0x24a7a7a6),
  2818. 211: uint32(0xa3016ce5),
  2819. 212: uint32(0x839310ae),
  2820. 213: uint32(0x0435dbed),
  2821. 214: uint32(0x57af8069),
  2822. 215: uint32(0xd0094b2a),
  2823. 216: uint32(0x168b78ff),
  2824. 217: uint32(0x912db3bc),
  2825. 218: uint32(0xc2b7e838),
  2826. 219: uint32(0x4511237b),
  2827. 220: uint32(0x65835f30),
  2828. 221: uint32(0xe2259473),
  2829. 222: uint32(0xb1bfcff7),
  2830. 223: uint32(0x361904b4),
  2831. 224: uint32(0xc9699ce6),
  2832. 225: uint32(0x4ecf57a5),
  2833. 226: uint32(0x1d550c21),
  2834. 227: uint32(0x9af3c762),
  2835. 228: uint32(0xba61bb29),
  2836. 229: uint32(0x3dc7706a),
  2837. 230: uint32(0x6e5d2bee),
  2838. 231: uint32(0xe9fbe0ad),
  2839. 232: uint32(0x2f79d378),
  2840. 233: uint32(0xa8df183b),
  2841. 234: uint32(0xfb4543bf),
  2842. 235: uint32(0x7ce388fc),
  2843. 236: uint32(0x5c71f4b7),
  2844. 237: uint32(0xdbd73ff4),
  2845. 238: uint32(0x884d6470),
  2846. 239: uint32(0x0febaf33),
  2847. 240: uint32(0xde38059b),
  2848. 241: uint32(0x599eced8),
  2849. 242: uint32(0x0a04955c),
  2850. 243: uint32(0x8da25e1f),
  2851. 244: uint32(0xad302254),
  2852. 245: uint32(0x2a96e917),
  2853. 246: uint32(0x790cb293),
  2854. 247: uint32(0xfeaa79d0),
  2855. 248: uint32(0x38284a05),
  2856. 249: uint32(0xbf8e8146),
  2857. 250: uint32(0xec14dac2),
  2858. 251: uint32(0x6bb21181),
  2859. 252: uint32(0x4b206dca),
  2860. 253: uint32(0xcc86a689),
  2861. 254: uint32(0x9f1cfd0d),
  2862. 255: uint32(0x18ba364e),
  2863. },
  2864. }
  2865. var _crc_braid_big_table = [4][256]Tz_word_t{
  2866. 0: {
  2867. 1: uint32(0x43cba687),
  2868. 2: uint32(0xc7903cd4),
  2869. 3: uint32(0x845b9a53),
  2870. 4: uint32(0xcf270873),
  2871. 5: uint32(0x8cecaef4),
  2872. 6: uint32(0x08b734a7),
  2873. 7: uint32(0x4b7c9220),
  2874. 8: uint32(0x9e4f10e6),
  2875. 9: uint32(0xdd84b661),
  2876. 10: uint32(0x59df2c32),
  2877. 11: uint32(0x1a148ab5),
  2878. 12: uint32(0x51681895),
  2879. 13: uint32(0x12a3be12),
  2880. 14: uint32(0x96f82441),
  2881. 15: uint32(0xd53382c6),
  2882. 16: uint32(0x7d995117),
  2883. 17: uint32(0x3e52f790),
  2884. 18: uint32(0xba096dc3),
  2885. 19: uint32(0xf9c2cb44),
  2886. 20: uint32(0xb2be5964),
  2887. 21: uint32(0xf175ffe3),
  2888. 22: uint32(0x752e65b0),
  2889. 23: uint32(0x36e5c337),
  2890. 24: uint32(0xe3d641f1),
  2891. 25: uint32(0xa01de776),
  2892. 26: uint32(0x24467d25),
  2893. 27: uint32(0x678ddba2),
  2894. 28: uint32(0x2cf14982),
  2895. 29: uint32(0x6f3aef05),
  2896. 30: uint32(0xeb617556),
  2897. 31: uint32(0xa8aad3d1),
  2898. 32: uint32(0xfa32a32e),
  2899. 33: uint32(0xb9f905a9),
  2900. 34: uint32(0x3da29ffa),
  2901. 35: uint32(0x7e69397d),
  2902. 36: uint32(0x3515ab5d),
  2903. 37: uint32(0x76de0dda),
  2904. 38: uint32(0xf2859789),
  2905. 39: uint32(0xb14e310e),
  2906. 40: uint32(0x647db3c8),
  2907. 41: uint32(0x27b6154f),
  2908. 42: uint32(0xa3ed8f1c),
  2909. 43: uint32(0xe026299b),
  2910. 44: uint32(0xab5abbbb),
  2911. 45: uint32(0xe8911d3c),
  2912. 46: uint32(0x6cca876f),
  2913. 47: uint32(0x2f0121e8),
  2914. 48: uint32(0x87abf239),
  2915. 49: uint32(0xc46054be),
  2916. 50: uint32(0x403bceed),
  2917. 51: uint32(0x03f0686a),
  2918. 52: uint32(0x488cfa4a),
  2919. 53: uint32(0x0b475ccd),
  2920. 54: uint32(0x8f1cc69e),
  2921. 55: uint32(0xccd76019),
  2922. 56: uint32(0x19e4e2df),
  2923. 57: uint32(0x5a2f4458),
  2924. 58: uint32(0xde74de0b),
  2925. 59: uint32(0x9dbf788c),
  2926. 60: uint32(0xd6c3eaac),
  2927. 61: uint32(0x95084c2b),
  2928. 62: uint32(0x1153d678),
  2929. 63: uint32(0x529870ff),
  2930. 64: uint32(0xf465465d),
  2931. 65: uint32(0xb7aee0da),
  2932. 66: uint32(0x33f57a89),
  2933. 67: uint32(0x703edc0e),
  2934. 68: uint32(0x3b424e2e),
  2935. 69: uint32(0x7889e8a9),
  2936. 70: uint32(0xfcd272fa),
  2937. 71: uint32(0xbf19d47d),
  2938. 72: uint32(0x6a2a56bb),
  2939. 73: uint32(0x29e1f03c),
  2940. 74: uint32(0xadba6a6f),
  2941. 75: uint32(0xee71cce8),
  2942. 76: uint32(0xa50d5ec8),
  2943. 77: uint32(0xe6c6f84f),
  2944. 78: uint32(0x629d621c),
  2945. 79: uint32(0x2156c49b),
  2946. 80: uint32(0x89fc174a),
  2947. 81: uint32(0xca37b1cd),
  2948. 82: uint32(0x4e6c2b9e),
  2949. 83: uint32(0x0da78d19),
  2950. 84: uint32(0x46db1f39),
  2951. 85: uint32(0x0510b9be),
  2952. 86: uint32(0x814b23ed),
  2953. 87: uint32(0xc280856a),
  2954. 88: uint32(0x17b307ac),
  2955. 89: uint32(0x5478a12b),
  2956. 90: uint32(0xd0233b78),
  2957. 91: uint32(0x93e89dff),
  2958. 92: uint32(0xd8940fdf),
  2959. 93: uint32(0x9b5fa958),
  2960. 94: uint32(0x1f04330b),
  2961. 95: uint32(0x5ccf958c),
  2962. 96: uint32(0x0e57e573),
  2963. 97: uint32(0x4d9c43f4),
  2964. 98: uint32(0xc9c7d9a7),
  2965. 99: uint32(0x8a0c7f20),
  2966. 100: uint32(0xc170ed00),
  2967. 101: uint32(0x82bb4b87),
  2968. 102: uint32(0x06e0d1d4),
  2969. 103: uint32(0x452b7753),
  2970. 104: uint32(0x9018f595),
  2971. 105: uint32(0xd3d35312),
  2972. 106: uint32(0x5788c941),
  2973. 107: uint32(0x14436fc6),
  2974. 108: uint32(0x5f3ffde6),
  2975. 109: uint32(0x1cf45b61),
  2976. 110: uint32(0x98afc132),
  2977. 111: uint32(0xdb6467b5),
  2978. 112: uint32(0x73ceb464),
  2979. 113: uint32(0x300512e3),
  2980. 114: uint32(0xb45e88b0),
  2981. 115: uint32(0xf7952e37),
  2982. 116: uint32(0xbce9bc17),
  2983. 117: uint32(0xff221a90),
  2984. 118: uint32(0x7b7980c3),
  2985. 119: uint32(0x38b22644),
  2986. 120: uint32(0xed81a482),
  2987. 121: uint32(0xae4a0205),
  2988. 122: uint32(0x2a119856),
  2989. 123: uint32(0x69da3ed1),
  2990. 124: uint32(0x22a6acf1),
  2991. 125: uint32(0x616d0a76),
  2992. 126: uint32(0xe5369025),
  2993. 127: uint32(0xa6fd36a2),
  2994. 128: uint32(0xe8cb8cba),
  2995. 129: uint32(0xab002a3d),
  2996. 130: uint32(0x2f5bb06e),
  2997. 131: uint32(0x6c9016e9),
  2998. 132: uint32(0x27ec84c9),
  2999. 133: uint32(0x6427224e),
  3000. 134: uint32(0xe07cb81d),
  3001. 135: uint32(0xa3b71e9a),
  3002. 136: uint32(0x76849c5c),
  3003. 137: uint32(0x354f3adb),
  3004. 138: uint32(0xb114a088),
  3005. 139: uint32(0xf2df060f),
  3006. 140: uint32(0xb9a3942f),
  3007. 141: uint32(0xfa6832a8),
  3008. 142: uint32(0x7e33a8fb),
  3009. 143: uint32(0x3df80e7c),
  3010. 144: uint32(0x9552ddad),
  3011. 145: uint32(0xd6997b2a),
  3012. 146: uint32(0x52c2e179),
  3013. 147: uint32(0x110947fe),
  3014. 148: uint32(0x5a75d5de),
  3015. 149: uint32(0x19be7359),
  3016. 150: uint32(0x9de5e90a),
  3017. 151: uint32(0xde2e4f8d),
  3018. 152: uint32(0x0b1dcd4b),
  3019. 153: uint32(0x48d66bcc),
  3020. 154: uint32(0xcc8df19f),
  3021. 155: uint32(0x8f465718),
  3022. 156: uint32(0xc43ac538),
  3023. 157: uint32(0x87f163bf),
  3024. 158: uint32(0x03aaf9ec),
  3025. 159: uint32(0x40615f6b),
  3026. 160: uint32(0x12f92f94),
  3027. 161: uint32(0x51328913),
  3028. 162: uint32(0xd5691340),
  3029. 163: uint32(0x96a2b5c7),
  3030. 164: uint32(0xddde27e7),
  3031. 165: uint32(0x9e158160),
  3032. 166: uint32(0x1a4e1b33),
  3033. 167: uint32(0x5985bdb4),
  3034. 168: uint32(0x8cb63f72),
  3035. 169: uint32(0xcf7d99f5),
  3036. 170: uint32(0x4b2603a6),
  3037. 171: uint32(0x08eda521),
  3038. 172: uint32(0x43913701),
  3039. 173: uint32(0x005a9186),
  3040. 174: uint32(0x84010bd5),
  3041. 175: uint32(0xc7caad52),
  3042. 176: uint32(0x6f607e83),
  3043. 177: uint32(0x2cabd804),
  3044. 178: uint32(0xa8f04257),
  3045. 179: uint32(0xeb3be4d0),
  3046. 180: uint32(0xa04776f0),
  3047. 181: uint32(0xe38cd077),
  3048. 182: uint32(0x67d74a24),
  3049. 183: uint32(0x241ceca3),
  3050. 184: uint32(0xf12f6e65),
  3051. 185: uint32(0xb2e4c8e2),
  3052. 186: uint32(0x36bf52b1),
  3053. 187: uint32(0x7574f436),
  3054. 188: uint32(0x3e086616),
  3055. 189: uint32(0x7dc3c091),
  3056. 190: uint32(0xf9985ac2),
  3057. 191: uint32(0xba53fc45),
  3058. 192: uint32(0x1caecae7),
  3059. 193: uint32(0x5f656c60),
  3060. 194: uint32(0xdb3ef633),
  3061. 195: uint32(0x98f550b4),
  3062. 196: uint32(0xd389c294),
  3063. 197: uint32(0x90426413),
  3064. 198: uint32(0x1419fe40),
  3065. 199: uint32(0x57d258c7),
  3066. 200: uint32(0x82e1da01),
  3067. 201: uint32(0xc12a7c86),
  3068. 202: uint32(0x4571e6d5),
  3069. 203: uint32(0x06ba4052),
  3070. 204: uint32(0x4dc6d272),
  3071. 205: uint32(0x0e0d74f5),
  3072. 206: uint32(0x8a56eea6),
  3073. 207: uint32(0xc99d4821),
  3074. 208: uint32(0x61379bf0),
  3075. 209: uint32(0x22fc3d77),
  3076. 210: uint32(0xa6a7a724),
  3077. 211: uint32(0xe56c01a3),
  3078. 212: uint32(0xae109383),
  3079. 213: uint32(0xeddb3504),
  3080. 214: uint32(0x6980af57),
  3081. 215: uint32(0x2a4b09d0),
  3082. 216: uint32(0xff788b16),
  3083. 217: uint32(0xbcb32d91),
  3084. 218: uint32(0x38e8b7c2),
  3085. 219: uint32(0x7b231145),
  3086. 220: uint32(0x305f8365),
  3087. 221: uint32(0x739425e2),
  3088. 222: uint32(0xf7cfbfb1),
  3089. 223: uint32(0xb4041936),
  3090. 224: uint32(0xe69c69c9),
  3091. 225: uint32(0xa557cf4e),
  3092. 226: uint32(0x210c551d),
  3093. 227: uint32(0x62c7f39a),
  3094. 228: uint32(0x29bb61ba),
  3095. 229: uint32(0x6a70c73d),
  3096. 230: uint32(0xee2b5d6e),
  3097. 231: uint32(0xade0fbe9),
  3098. 232: uint32(0x78d3792f),
  3099. 233: uint32(0x3b18dfa8),
  3100. 234: uint32(0xbf4345fb),
  3101. 235: uint32(0xfc88e37c),
  3102. 236: uint32(0xb7f4715c),
  3103. 237: uint32(0xf43fd7db),
  3104. 238: uint32(0x70644d88),
  3105. 239: uint32(0x33afeb0f),
  3106. 240: uint32(0x9b0538de),
  3107. 241: uint32(0xd8ce9e59),
  3108. 242: uint32(0x5c95040a),
  3109. 243: uint32(0x1f5ea28d),
  3110. 244: uint32(0x542230ad),
  3111. 245: uint32(0x17e9962a),
  3112. 246: uint32(0x93b20c79),
  3113. 247: uint32(0xd079aafe),
  3114. 248: uint32(0x054a2838),
  3115. 249: uint32(0x46818ebf),
  3116. 250: uint32(0xc2da14ec),
  3117. 251: uint32(0x8111b26b),
  3118. 252: uint32(0xca6d204b),
  3119. 253: uint32(0x89a686cc),
  3120. 254: uint32(0x0dfd1c9f),
  3121. 255: uint32(0x4e36ba18),
  3122. },
  3123. 1: {
  3124. 1: uint32(0xe1b652ef),
  3125. 2: uint32(0x836bd405),
  3126. 3: uint32(0x62dd86ea),
  3127. 4: uint32(0x06d7a80b),
  3128. 5: uint32(0xe761fae4),
  3129. 6: uint32(0x85bc7c0e),
  3130. 7: uint32(0x640a2ee1),
  3131. 8: uint32(0x0cae5117),
  3132. 9: uint32(0xed1803f8),
  3133. 10: uint32(0x8fc58512),
  3134. 11: uint32(0x6e73d7fd),
  3135. 12: uint32(0x0a79f91c),
  3136. 13: uint32(0xebcfabf3),
  3137. 14: uint32(0x89122d19),
  3138. 15: uint32(0x68a47ff6),
  3139. 16: uint32(0x185ca32e),
  3140. 17: uint32(0xf9eaf1c1),
  3141. 18: uint32(0x9b37772b),
  3142. 19: uint32(0x7a8125c4),
  3143. 20: uint32(0x1e8b0b25),
  3144. 21: uint32(0xff3d59ca),
  3145. 22: uint32(0x9de0df20),
  3146. 23: uint32(0x7c568dcf),
  3147. 24: uint32(0x14f2f239),
  3148. 25: uint32(0xf544a0d6),
  3149. 26: uint32(0x9799263c),
  3150. 27: uint32(0x762f74d3),
  3151. 28: uint32(0x12255a32),
  3152. 29: uint32(0xf39308dd),
  3153. 30: uint32(0x914e8e37),
  3154. 31: uint32(0x70f8dcd8),
  3155. 32: uint32(0x30b8465d),
  3156. 33: uint32(0xd10e14b2),
  3157. 34: uint32(0xb3d39258),
  3158. 35: uint32(0x5265c0b7),
  3159. 36: uint32(0x366fee56),
  3160. 37: uint32(0xd7d9bcb9),
  3161. 38: uint32(0xb5043a53),
  3162. 39: uint32(0x54b268bc),
  3163. 40: uint32(0x3c16174a),
  3164. 41: uint32(0xdda045a5),
  3165. 42: uint32(0xbf7dc34f),
  3166. 43: uint32(0x5ecb91a0),
  3167. 44: uint32(0x3ac1bf41),
  3168. 45: uint32(0xdb77edae),
  3169. 46: uint32(0xb9aa6b44),
  3170. 47: uint32(0x581c39ab),
  3171. 48: uint32(0x28e4e573),
  3172. 49: uint32(0xc952b79c),
  3173. 50: uint32(0xab8f3176),
  3174. 51: uint32(0x4a396399),
  3175. 52: uint32(0x2e334d78),
  3176. 53: uint32(0xcf851f97),
  3177. 54: uint32(0xad58997d),
  3178. 55: uint32(0x4ceecb92),
  3179. 56: uint32(0x244ab464),
  3180. 57: uint32(0xc5fce68b),
  3181. 58: uint32(0xa7216061),
  3182. 59: uint32(0x4697328e),
  3183. 60: uint32(0x229d1c6f),
  3184. 61: uint32(0xc32b4e80),
  3185. 62: uint32(0xa1f6c86a),
  3186. 63: uint32(0x40409a85),
  3187. 64: uint32(0x60708dba),
  3188. 65: uint32(0x81c6df55),
  3189. 66: uint32(0xe31b59bf),
  3190. 67: uint32(0x02ad0b50),
  3191. 68: uint32(0x66a725b1),
  3192. 69: uint32(0x8711775e),
  3193. 70: uint32(0xe5ccf1b4),
  3194. 71: uint32(0x047aa35b),
  3195. 72: uint32(0x6cdedcad),
  3196. 73: uint32(0x8d688e42),
  3197. 74: uint32(0xefb508a8),
  3198. 75: uint32(0x0e035a47),
  3199. 76: uint32(0x6a0974a6),
  3200. 77: uint32(0x8bbf2649),
  3201. 78: uint32(0xe962a0a3),
  3202. 79: uint32(0x08d4f24c),
  3203. 80: uint32(0x782c2e94),
  3204. 81: uint32(0x999a7c7b),
  3205. 82: uint32(0xfb47fa91),
  3206. 83: uint32(0x1af1a87e),
  3207. 84: uint32(0x7efb869f),
  3208. 85: uint32(0x9f4dd470),
  3209. 86: uint32(0xfd90529a),
  3210. 87: uint32(0x1c260075),
  3211. 88: uint32(0x74827f83),
  3212. 89: uint32(0x95342d6c),
  3213. 90: uint32(0xf7e9ab86),
  3214. 91: uint32(0x165ff969),
  3215. 92: uint32(0x7255d788),
  3216. 93: uint32(0x93e38567),
  3217. 94: uint32(0xf13e038d),
  3218. 95: uint32(0x10885162),
  3219. 96: uint32(0x50c8cbe7),
  3220. 97: uint32(0xb17e9908),
  3221. 98: uint32(0xd3a31fe2),
  3222. 99: uint32(0x32154d0d),
  3223. 100: uint32(0x561f63ec),
  3224. 101: uint32(0xb7a93103),
  3225. 102: uint32(0xd574b7e9),
  3226. 103: uint32(0x34c2e506),
  3227. 104: uint32(0x5c669af0),
  3228. 105: uint32(0xbdd0c81f),
  3229. 106: uint32(0xdf0d4ef5),
  3230. 107: uint32(0x3ebb1c1a),
  3231. 108: uint32(0x5ab132fb),
  3232. 109: uint32(0xbb076014),
  3233. 110: uint32(0xd9dae6fe),
  3234. 111: uint32(0x386cb411),
  3235. 112: uint32(0x489468c9),
  3236. 113: uint32(0xa9223a26),
  3237. 114: uint32(0xcbffbccc),
  3238. 115: uint32(0x2a49ee23),
  3239. 116: uint32(0x4e43c0c2),
  3240. 117: uint32(0xaff5922d),
  3241. 118: uint32(0xcd2814c7),
  3242. 119: uint32(0x2c9e4628),
  3243. 120: uint32(0x443a39de),
  3244. 121: uint32(0xa58c6b31),
  3245. 122: uint32(0xc751eddb),
  3246. 123: uint32(0x26e7bf34),
  3247. 124: uint32(0x42ed91d5),
  3248. 125: uint32(0xa35bc33a),
  3249. 126: uint32(0xc18645d0),
  3250. 127: uint32(0x2030173f),
  3251. 128: uint32(0x81e66bae),
  3252. 129: uint32(0x60503941),
  3253. 130: uint32(0x028dbfab),
  3254. 131: uint32(0xe33bed44),
  3255. 132: uint32(0x8731c3a5),
  3256. 133: uint32(0x6687914a),
  3257. 134: uint32(0x045a17a0),
  3258. 135: uint32(0xe5ec454f),
  3259. 136: uint32(0x8d483ab9),
  3260. 137: uint32(0x6cfe6856),
  3261. 138: uint32(0x0e23eebc),
  3262. 139: uint32(0xef95bc53),
  3263. 140: uint32(0x8b9f92b2),
  3264. 141: uint32(0x6a29c05d),
  3265. 142: uint32(0x08f446b7),
  3266. 143: uint32(0xe9421458),
  3267. 144: uint32(0x99bac880),
  3268. 145: uint32(0x780c9a6f),
  3269. 146: uint32(0x1ad11c85),
  3270. 147: uint32(0xfb674e6a),
  3271. 148: uint32(0x9f6d608b),
  3272. 149: uint32(0x7edb3264),
  3273. 150: uint32(0x1c06b48e),
  3274. 151: uint32(0xfdb0e661),
  3275. 152: uint32(0x95149997),
  3276. 153: uint32(0x74a2cb78),
  3277. 154: uint32(0x167f4d92),
  3278. 155: uint32(0xf7c91f7d),
  3279. 156: uint32(0x93c3319c),
  3280. 157: uint32(0x72756373),
  3281. 158: uint32(0x10a8e599),
  3282. 159: uint32(0xf11eb776),
  3283. 160: uint32(0xb15e2df3),
  3284. 161: uint32(0x50e87f1c),
  3285. 162: uint32(0x3235f9f6),
  3286. 163: uint32(0xd383ab19),
  3287. 164: uint32(0xb78985f8),
  3288. 165: uint32(0x563fd717),
  3289. 166: uint32(0x34e251fd),
  3290. 167: uint32(0xd5540312),
  3291. 168: uint32(0xbdf07ce4),
  3292. 169: uint32(0x5c462e0b),
  3293. 170: uint32(0x3e9ba8e1),
  3294. 171: uint32(0xdf2dfa0e),
  3295. 172: uint32(0xbb27d4ef),
  3296. 173: uint32(0x5a918600),
  3297. 174: uint32(0x384c00ea),
  3298. 175: uint32(0xd9fa5205),
  3299. 176: uint32(0xa9028edd),
  3300. 177: uint32(0x48b4dc32),
  3301. 178: uint32(0x2a695ad8),
  3302. 179: uint32(0xcbdf0837),
  3303. 180: uint32(0xafd526d6),
  3304. 181: uint32(0x4e637439),
  3305. 182: uint32(0x2cbef2d3),
  3306. 183: uint32(0xcd08a03c),
  3307. 184: uint32(0xa5acdfca),
  3308. 185: uint32(0x441a8d25),
  3309. 186: uint32(0x26c70bcf),
  3310. 187: uint32(0xc7715920),
  3311. 188: uint32(0xa37b77c1),
  3312. 189: uint32(0x42cd252e),
  3313. 190: uint32(0x2010a3c4),
  3314. 191: uint32(0xc1a6f12b),
  3315. 192: uint32(0xe196e614),
  3316. 193: uint32(0x0020b4fb),
  3317. 194: uint32(0x62fd3211),
  3318. 195: uint32(0x834b60fe),
  3319. 196: uint32(0xe7414e1f),
  3320. 197: uint32(0x06f71cf0),
  3321. 198: uint32(0x642a9a1a),
  3322. 199: uint32(0x859cc8f5),
  3323. 200: uint32(0xed38b703),
  3324. 201: uint32(0x0c8ee5ec),
  3325. 202: uint32(0x6e536306),
  3326. 203: uint32(0x8fe531e9),
  3327. 204: uint32(0xebef1f08),
  3328. 205: uint32(0x0a594de7),
  3329. 206: uint32(0x6884cb0d),
  3330. 207: uint32(0x893299e2),
  3331. 208: uint32(0xf9ca453a),
  3332. 209: uint32(0x187c17d5),
  3333. 210: uint32(0x7aa1913f),
  3334. 211: uint32(0x9b17c3d0),
  3335. 212: uint32(0xff1ded31),
  3336. 213: uint32(0x1eabbfde),
  3337. 214: uint32(0x7c763934),
  3338. 215: uint32(0x9dc06bdb),
  3339. 216: uint32(0xf564142d),
  3340. 217: uint32(0x14d246c2),
  3341. 218: uint32(0x760fc028),
  3342. 219: uint32(0x97b992c7),
  3343. 220: uint32(0xf3b3bc26),
  3344. 221: uint32(0x1205eec9),
  3345. 222: uint32(0x70d86823),
  3346. 223: uint32(0x916e3acc),
  3347. 224: uint32(0xd12ea049),
  3348. 225: uint32(0x3098f2a6),
  3349. 226: uint32(0x5245744c),
  3350. 227: uint32(0xb3f326a3),
  3351. 228: uint32(0xd7f90842),
  3352. 229: uint32(0x364f5aad),
  3353. 230: uint32(0x5492dc47),
  3354. 231: uint32(0xb5248ea8),
  3355. 232: uint32(0xdd80f15e),
  3356. 233: uint32(0x3c36a3b1),
  3357. 234: uint32(0x5eeb255b),
  3358. 235: uint32(0xbf5d77b4),
  3359. 236: uint32(0xdb575955),
  3360. 237: uint32(0x3ae10bba),
  3361. 238: uint32(0x583c8d50),
  3362. 239: uint32(0xb98adfbf),
  3363. 240: uint32(0xc9720367),
  3364. 241: uint32(0x28c45188),
  3365. 242: uint32(0x4a19d762),
  3366. 243: uint32(0xabaf858d),
  3367. 244: uint32(0xcfa5ab6c),
  3368. 245: uint32(0x2e13f983),
  3369. 246: uint32(0x4cce7f69),
  3370. 247: uint32(0xad782d86),
  3371. 248: uint32(0xc5dc5270),
  3372. 249: uint32(0x246a009f),
  3373. 250: uint32(0x46b78675),
  3374. 251: uint32(0xa701d49a),
  3375. 252: uint32(0xc30bfa7b),
  3376. 253: uint32(0x22bda894),
  3377. 254: uint32(0x40602e7e),
  3378. 255: uint32(0xa1d67c91),
  3379. },
  3380. 2: {
  3381. 1: uint32(0x5880e2d7),
  3382. 2: uint32(0xf106b474),
  3383. 3: uint32(0xa98656a3),
  3384. 4: uint32(0xe20d68e9),
  3385. 5: uint32(0xba8d8a3e),
  3386. 6: uint32(0x130bdc9d),
  3387. 7: uint32(0x4b8b3e4a),
  3388. 8: uint32(0x851da109),
  3389. 9: uint32(0xdd9d43de),
  3390. 10: uint32(0x741b157d),
  3391. 11: uint32(0x2c9bf7aa),
  3392. 12: uint32(0x6710c9e0),
  3393. 13: uint32(0x3f902b37),
  3394. 14: uint32(0x96167d94),
  3395. 15: uint32(0xce969f43),
  3396. 16: uint32(0x0a3b4213),
  3397. 17: uint32(0x52bba0c4),
  3398. 18: uint32(0xfb3df667),
  3399. 19: uint32(0xa3bd14b0),
  3400. 20: uint32(0xe8362afa),
  3401. 21: uint32(0xb0b6c82d),
  3402. 22: uint32(0x19309e8e),
  3403. 23: uint32(0x41b07c59),
  3404. 24: uint32(0x8f26e31a),
  3405. 25: uint32(0xd7a601cd),
  3406. 26: uint32(0x7e20576e),
  3407. 27: uint32(0x26a0b5b9),
  3408. 28: uint32(0x6d2b8bf3),
  3409. 29: uint32(0x35ab6924),
  3410. 30: uint32(0x9c2d3f87),
  3411. 31: uint32(0xc4addd50),
  3412. 32: uint32(0x14768426),
  3413. 33: uint32(0x4cf666f1),
  3414. 34: uint32(0xe5703052),
  3415. 35: uint32(0xbdf0d285),
  3416. 36: uint32(0xf67beccf),
  3417. 37: uint32(0xaefb0e18),
  3418. 38: uint32(0x077d58bb),
  3419. 39: uint32(0x5ffdba6c),
  3420. 40: uint32(0x916b252f),
  3421. 41: uint32(0xc9ebc7f8),
  3422. 42: uint32(0x606d915b),
  3423. 43: uint32(0x38ed738c),
  3424. 44: uint32(0x73664dc6),
  3425. 45: uint32(0x2be6af11),
  3426. 46: uint32(0x8260f9b2),
  3427. 47: uint32(0xdae01b65),
  3428. 48: uint32(0x1e4dc635),
  3429. 49: uint32(0x46cd24e2),
  3430. 50: uint32(0xef4b7241),
  3431. 51: uint32(0xb7cb9096),
  3432. 52: uint32(0xfc40aedc),
  3433. 53: uint32(0xa4c04c0b),
  3434. 54: uint32(0x0d461aa8),
  3435. 55: uint32(0x55c6f87f),
  3436. 56: uint32(0x9b50673c),
  3437. 57: uint32(0xc3d085eb),
  3438. 58: uint32(0x6a56d348),
  3439. 59: uint32(0x32d6319f),
  3440. 60: uint32(0x795d0fd5),
  3441. 61: uint32(0x21dded02),
  3442. 62: uint32(0x885bbba1),
  3443. 63: uint32(0xd0db5976),
  3444. 64: uint32(0x28ec084d),
  3445. 65: uint32(0x706cea9a),
  3446. 66: uint32(0xd9eabc39),
  3447. 67: uint32(0x816a5eee),
  3448. 68: uint32(0xcae160a4),
  3449. 69: uint32(0x92618273),
  3450. 70: uint32(0x3be7d4d0),
  3451. 71: uint32(0x63673607),
  3452. 72: uint32(0xadf1a944),
  3453. 73: uint32(0xf5714b93),
  3454. 74: uint32(0x5cf71d30),
  3455. 75: uint32(0x0477ffe7),
  3456. 76: uint32(0x4ffcc1ad),
  3457. 77: uint32(0x177c237a),
  3458. 78: uint32(0xbefa75d9),
  3459. 79: uint32(0xe67a970e),
  3460. 80: uint32(0x22d74a5e),
  3461. 81: uint32(0x7a57a889),
  3462. 82: uint32(0xd3d1fe2a),
  3463. 83: uint32(0x8b511cfd),
  3464. 84: uint32(0xc0da22b7),
  3465. 85: uint32(0x985ac060),
  3466. 86: uint32(0x31dc96c3),
  3467. 87: uint32(0x695c7414),
  3468. 88: uint32(0xa7caeb57),
  3469. 89: uint32(0xff4a0980),
  3470. 90: uint32(0x56cc5f23),
  3471. 91: uint32(0x0e4cbdf4),
  3472. 92: uint32(0x45c783be),
  3473. 93: uint32(0x1d476169),
  3474. 94: uint32(0xb4c137ca),
  3475. 95: uint32(0xec41d51d),
  3476. 96: uint32(0x3c9a8c6b),
  3477. 97: uint32(0x641a6ebc),
  3478. 98: uint32(0xcd9c381f),
  3479. 99: uint32(0x951cdac8),
  3480. 100: uint32(0xde97e482),
  3481. 101: uint32(0x86170655),
  3482. 102: uint32(0x2f9150f6),
  3483. 103: uint32(0x7711b221),
  3484. 104: uint32(0xb9872d62),
  3485. 105: uint32(0xe107cfb5),
  3486. 106: uint32(0x48819916),
  3487. 107: uint32(0x10017bc1),
  3488. 108: uint32(0x5b8a458b),
  3489. 109: uint32(0x030aa75c),
  3490. 110: uint32(0xaa8cf1ff),
  3491. 111: uint32(0xf20c1328),
  3492. 112: uint32(0x36a1ce78),
  3493. 113: uint32(0x6e212caf),
  3494. 114: uint32(0xc7a77a0c),
  3495. 115: uint32(0x9f2798db),
  3496. 116: uint32(0xd4aca691),
  3497. 117: uint32(0x8c2c4446),
  3498. 118: uint32(0x25aa12e5),
  3499. 119: uint32(0x7d2af032),
  3500. 120: uint32(0xb3bc6f71),
  3501. 121: uint32(0xeb3c8da6),
  3502. 122: uint32(0x42badb05),
  3503. 123: uint32(0x1a3a39d2),
  3504. 124: uint32(0x51b10798),
  3505. 125: uint32(0x0931e54f),
  3506. 126: uint32(0xa0b7b3ec),
  3507. 127: uint32(0xf837513b),
  3508. 128: uint32(0x50d8119a),
  3509. 129: uint32(0x0858f34d),
  3510. 130: uint32(0xa1dea5ee),
  3511. 131: uint32(0xf95e4739),
  3512. 132: uint32(0xb2d57973),
  3513. 133: uint32(0xea559ba4),
  3514. 134: uint32(0x43d3cd07),
  3515. 135: uint32(0x1b532fd0),
  3516. 136: uint32(0xd5c5b093),
  3517. 137: uint32(0x8d455244),
  3518. 138: uint32(0x24c304e7),
  3519. 139: uint32(0x7c43e630),
  3520. 140: uint32(0x37c8d87a),
  3521. 141: uint32(0x6f483aad),
  3522. 142: uint32(0xc6ce6c0e),
  3523. 143: uint32(0x9e4e8ed9),
  3524. 144: uint32(0x5ae35389),
  3525. 145: uint32(0x0263b15e),
  3526. 146: uint32(0xabe5e7fd),
  3527. 147: uint32(0xf365052a),
  3528. 148: uint32(0xb8ee3b60),
  3529. 149: uint32(0xe06ed9b7),
  3530. 150: uint32(0x49e88f14),
  3531. 151: uint32(0x11686dc3),
  3532. 152: uint32(0xdffef280),
  3533. 153: uint32(0x877e1057),
  3534. 154: uint32(0x2ef846f4),
  3535. 155: uint32(0x7678a423),
  3536. 156: uint32(0x3df39a69),
  3537. 157: uint32(0x657378be),
  3538. 158: uint32(0xccf52e1d),
  3539. 159: uint32(0x9475ccca),
  3540. 160: uint32(0x44ae95bc),
  3541. 161: uint32(0x1c2e776b),
  3542. 162: uint32(0xb5a821c8),
  3543. 163: uint32(0xed28c31f),
  3544. 164: uint32(0xa6a3fd55),
  3545. 165: uint32(0xfe231f82),
  3546. 166: uint32(0x57a54921),
  3547. 167: uint32(0x0f25abf6),
  3548. 168: uint32(0xc1b334b5),
  3549. 169: uint32(0x9933d662),
  3550. 170: uint32(0x30b580c1),
  3551. 171: uint32(0x68356216),
  3552. 172: uint32(0x23be5c5c),
  3553. 173: uint32(0x7b3ebe8b),
  3554. 174: uint32(0xd2b8e828),
  3555. 175: uint32(0x8a380aff),
  3556. 176: uint32(0x4e95d7af),
  3557. 177: uint32(0x16153578),
  3558. 178: uint32(0xbf9363db),
  3559. 179: uint32(0xe713810c),
  3560. 180: uint32(0xac98bf46),
  3561. 181: uint32(0xf4185d91),
  3562. 182: uint32(0x5d9e0b32),
  3563. 183: uint32(0x051ee9e5),
  3564. 184: uint32(0xcb8876a6),
  3565. 185: uint32(0x93089471),
  3566. 186: uint32(0x3a8ec2d2),
  3567. 187: uint32(0x620e2005),
  3568. 188: uint32(0x29851e4f),
  3569. 189: uint32(0x7105fc98),
  3570. 190: uint32(0xd883aa3b),
  3571. 191: uint32(0x800348ec),
  3572. 192: uint32(0x783419d7),
  3573. 193: uint32(0x20b4fb00),
  3574. 194: uint32(0x8932ada3),
  3575. 195: uint32(0xd1b24f74),
  3576. 196: uint32(0x9a39713e),
  3577. 197: uint32(0xc2b993e9),
  3578. 198: uint32(0x6b3fc54a),
  3579. 199: uint32(0x33bf279d),
  3580. 200: uint32(0xfd29b8de),
  3581. 201: uint32(0xa5a95a09),
  3582. 202: uint32(0x0c2f0caa),
  3583. 203: uint32(0x54afee7d),
  3584. 204: uint32(0x1f24d037),
  3585. 205: uint32(0x47a432e0),
  3586. 206: uint32(0xee226443),
  3587. 207: uint32(0xb6a28694),
  3588. 208: uint32(0x720f5bc4),
  3589. 209: uint32(0x2a8fb913),
  3590. 210: uint32(0x8309efb0),
  3591. 211: uint32(0xdb890d67),
  3592. 212: uint32(0x9002332d),
  3593. 213: uint32(0xc882d1fa),
  3594. 214: uint32(0x61048759),
  3595. 215: uint32(0x3984658e),
  3596. 216: uint32(0xf712facd),
  3597. 217: uint32(0xaf92181a),
  3598. 218: uint32(0x06144eb9),
  3599. 219: uint32(0x5e94ac6e),
  3600. 220: uint32(0x151f9224),
  3601. 221: uint32(0x4d9f70f3),
  3602. 222: uint32(0xe4192650),
  3603. 223: uint32(0xbc99c487),
  3604. 224: uint32(0x6c429df1),
  3605. 225: uint32(0x34c27f26),
  3606. 226: uint32(0x9d442985),
  3607. 227: uint32(0xc5c4cb52),
  3608. 228: uint32(0x8e4ff518),
  3609. 229: uint32(0xd6cf17cf),
  3610. 230: uint32(0x7f49416c),
  3611. 231: uint32(0x27c9a3bb),
  3612. 232: uint32(0xe95f3cf8),
  3613. 233: uint32(0xb1dfde2f),
  3614. 234: uint32(0x1859888c),
  3615. 235: uint32(0x40d96a5b),
  3616. 236: uint32(0x0b525411),
  3617. 237: uint32(0x53d2b6c6),
  3618. 238: uint32(0xfa54e065),
  3619. 239: uint32(0xa2d402b2),
  3620. 240: uint32(0x6679dfe2),
  3621. 241: uint32(0x3ef93d35),
  3622. 242: uint32(0x977f6b96),
  3623. 243: uint32(0xcfff8941),
  3624. 244: uint32(0x8474b70b),
  3625. 245: uint32(0xdcf455dc),
  3626. 246: uint32(0x7572037f),
  3627. 247: uint32(0x2df2e1a8),
  3628. 248: uint32(0xe3647eeb),
  3629. 249: uint32(0xbbe49c3c),
  3630. 250: uint32(0x1262ca9f),
  3631. 251: uint32(0x4ae22848),
  3632. 252: uint32(0x01691602),
  3633. 253: uint32(0x59e9f4d5),
  3634. 254: uint32(0xf06fa276),
  3635. 255: uint32(0xa8ef40a1),
  3636. },
  3637. 3: {
  3638. 1: uint32(0x463b6765),
  3639. 2: uint32(0x8c76ceca),
  3640. 3: uint32(0xca4da9af),
  3641. 4: uint32(0x59ebed4e),
  3642. 5: uint32(0x1fd08a2b),
  3643. 6: uint32(0xd59d2384),
  3644. 7: uint32(0x93a644e1),
  3645. 8: uint32(0xb2d6db9d),
  3646. 9: uint32(0xf4edbcf8),
  3647. 10: uint32(0x3ea01557),
  3648. 11: uint32(0x789b7232),
  3649. 12: uint32(0xeb3d36d3),
  3650. 13: uint32(0xad0651b6),
  3651. 14: uint32(0x674bf819),
  3652. 15: uint32(0x21709f7c),
  3653. 16: uint32(0x25abc6e0),
  3654. 17: uint32(0x6390a185),
  3655. 18: uint32(0xa9dd082a),
  3656. 19: uint32(0xefe66f4f),
  3657. 20: uint32(0x7c402bae),
  3658. 21: uint32(0x3a7b4ccb),
  3659. 22: uint32(0xf036e564),
  3660. 23: uint32(0xb60d8201),
  3661. 24: uint32(0x977d1d7d),
  3662. 25: uint32(0xd1467a18),
  3663. 26: uint32(0x1b0bd3b7),
  3664. 27: uint32(0x5d30b4d2),
  3665. 28: uint32(0xce96f033),
  3666. 29: uint32(0x88ad9756),
  3667. 30: uint32(0x42e03ef9),
  3668. 31: uint32(0x04db599c),
  3669. 32: uint32(0x0b50fc1a),
  3670. 33: uint32(0x4d6b9b7f),
  3671. 34: uint32(0x872632d0),
  3672. 35: uint32(0xc11d55b5),
  3673. 36: uint32(0x52bb1154),
  3674. 37: uint32(0x14807631),
  3675. 38: uint32(0xdecddf9e),
  3676. 39: uint32(0x98f6b8fb),
  3677. 40: uint32(0xb9862787),
  3678. 41: uint32(0xffbd40e2),
  3679. 42: uint32(0x35f0e94d),
  3680. 43: uint32(0x73cb8e28),
  3681. 44: uint32(0xe06dcac9),
  3682. 45: uint32(0xa656adac),
  3683. 46: uint32(0x6c1b0403),
  3684. 47: uint32(0x2a206366),
  3685. 48: uint32(0x2efb3afa),
  3686. 49: uint32(0x68c05d9f),
  3687. 50: uint32(0xa28df430),
  3688. 51: uint32(0xe4b69355),
  3689. 52: uint32(0x7710d7b4),
  3690. 53: uint32(0x312bb0d1),
  3691. 54: uint32(0xfb66197e),
  3692. 55: uint32(0xbd5d7e1b),
  3693. 56: uint32(0x9c2de167),
  3694. 57: uint32(0xda168602),
  3695. 58: uint32(0x105b2fad),
  3696. 59: uint32(0x566048c8),
  3697. 60: uint32(0xc5c60c29),
  3698. 61: uint32(0x83fd6b4c),
  3699. 62: uint32(0x49b0c2e3),
  3700. 63: uint32(0x0f8ba586),
  3701. 64: uint32(0x16a0f835),
  3702. 65: uint32(0x509b9f50),
  3703. 66: uint32(0x9ad636ff),
  3704. 67: uint32(0xdced519a),
  3705. 68: uint32(0x4f4b157b),
  3706. 69: uint32(0x0970721e),
  3707. 70: uint32(0xc33ddbb1),
  3708. 71: uint32(0x8506bcd4),
  3709. 72: uint32(0xa47623a8),
  3710. 73: uint32(0xe24d44cd),
  3711. 74: uint32(0x2800ed62),
  3712. 75: uint32(0x6e3b8a07),
  3713. 76: uint32(0xfd9dcee6),
  3714. 77: uint32(0xbba6a983),
  3715. 78: uint32(0x71eb002c),
  3716. 79: uint32(0x37d06749),
  3717. 80: uint32(0x330b3ed5),
  3718. 81: uint32(0x753059b0),
  3719. 82: uint32(0xbf7df01f),
  3720. 83: uint32(0xf946977a),
  3721. 84: uint32(0x6ae0d39b),
  3722. 85: uint32(0x2cdbb4fe),
  3723. 86: uint32(0xe6961d51),
  3724. 87: uint32(0xa0ad7a34),
  3725. 88: uint32(0x81dde548),
  3726. 89: uint32(0xc7e6822d),
  3727. 90: uint32(0x0dab2b82),
  3728. 91: uint32(0x4b904ce7),
  3729. 92: uint32(0xd8360806),
  3730. 93: uint32(0x9e0d6f63),
  3731. 94: uint32(0x5440c6cc),
  3732. 95: uint32(0x127ba1a9),
  3733. 96: uint32(0x1df0042f),
  3734. 97: uint32(0x5bcb634a),
  3735. 98: uint32(0x9186cae5),
  3736. 99: uint32(0xd7bdad80),
  3737. 100: uint32(0x441be961),
  3738. 101: uint32(0x02208e04),
  3739. 102: uint32(0xc86d27ab),
  3740. 103: uint32(0x8e5640ce),
  3741. 104: uint32(0xaf26dfb2),
  3742. 105: uint32(0xe91db8d7),
  3743. 106: uint32(0x23501178),
  3744. 107: uint32(0x656b761d),
  3745. 108: uint32(0xf6cd32fc),
  3746. 109: uint32(0xb0f65599),
  3747. 110: uint32(0x7abbfc36),
  3748. 111: uint32(0x3c809b53),
  3749. 112: uint32(0x385bc2cf),
  3750. 113: uint32(0x7e60a5aa),
  3751. 114: uint32(0xb42d0c05),
  3752. 115: uint32(0xf2166b60),
  3753. 116: uint32(0x61b02f81),
  3754. 117: uint32(0x278b48e4),
  3755. 118: uint32(0xedc6e14b),
  3756. 119: uint32(0xabfd862e),
  3757. 120: uint32(0x8a8d1952),
  3758. 121: uint32(0xccb67e37),
  3759. 122: uint32(0x06fbd798),
  3760. 123: uint32(0x40c0b0fd),
  3761. 124: uint32(0xd366f41c),
  3762. 125: uint32(0x955d9379),
  3763. 126: uint32(0x5f103ad6),
  3764. 127: uint32(0x192b5db3),
  3765. 128: uint32(0x2c40f16b),
  3766. 129: uint32(0x6a7b960e),
  3767. 130: uint32(0xa0363fa1),
  3768. 131: uint32(0xe60d58c4),
  3769. 132: uint32(0x75ab1c25),
  3770. 133: uint32(0x33907b40),
  3771. 134: uint32(0xf9ddd2ef),
  3772. 135: uint32(0xbfe6b58a),
  3773. 136: uint32(0x9e962af6),
  3774. 137: uint32(0xd8ad4d93),
  3775. 138: uint32(0x12e0e43c),
  3776. 139: uint32(0x54db8359),
  3777. 140: uint32(0xc77dc7b8),
  3778. 141: uint32(0x8146a0dd),
  3779. 142: uint32(0x4b0b0972),
  3780. 143: uint32(0x0d306e17),
  3781. 144: uint32(0x09eb378b),
  3782. 145: uint32(0x4fd050ee),
  3783. 146: uint32(0x859df941),
  3784. 147: uint32(0xc3a69e24),
  3785. 148: uint32(0x5000dac5),
  3786. 149: uint32(0x163bbda0),
  3787. 150: uint32(0xdc76140f),
  3788. 151: uint32(0x9a4d736a),
  3789. 152: uint32(0xbb3dec16),
  3790. 153: uint32(0xfd068b73),
  3791. 154: uint32(0x374b22dc),
  3792. 155: uint32(0x717045b9),
  3793. 156: uint32(0xe2d60158),
  3794. 157: uint32(0xa4ed663d),
  3795. 158: uint32(0x6ea0cf92),
  3796. 159: uint32(0x289ba8f7),
  3797. 160: uint32(0x27100d71),
  3798. 161: uint32(0x612b6a14),
  3799. 162: uint32(0xab66c3bb),
  3800. 163: uint32(0xed5da4de),
  3801. 164: uint32(0x7efbe03f),
  3802. 165: uint32(0x38c0875a),
  3803. 166: uint32(0xf28d2ef5),
  3804. 167: uint32(0xb4b64990),
  3805. 168: uint32(0x95c6d6ec),
  3806. 169: uint32(0xd3fdb189),
  3807. 170: uint32(0x19b01826),
  3808. 171: uint32(0x5f8b7f43),
  3809. 172: uint32(0xcc2d3ba2),
  3810. 173: uint32(0x8a165cc7),
  3811. 174: uint32(0x405bf568),
  3812. 175: uint32(0x0660920d),
  3813. 176: uint32(0x02bbcb91),
  3814. 177: uint32(0x4480acf4),
  3815. 178: uint32(0x8ecd055b),
  3816. 179: uint32(0xc8f6623e),
  3817. 180: uint32(0x5b5026df),
  3818. 181: uint32(0x1d6b41ba),
  3819. 182: uint32(0xd726e815),
  3820. 183: uint32(0x911d8f70),
  3821. 184: uint32(0xb06d100c),
  3822. 185: uint32(0xf6567769),
  3823. 186: uint32(0x3c1bdec6),
  3824. 187: uint32(0x7a20b9a3),
  3825. 188: uint32(0xe986fd42),
  3826. 189: uint32(0xafbd9a27),
  3827. 190: uint32(0x65f03388),
  3828. 191: uint32(0x23cb54ed),
  3829. 192: uint32(0x3ae0095e),
  3830. 193: uint32(0x7cdb6e3b),
  3831. 194: uint32(0xb696c794),
  3832. 195: uint32(0xf0ada0f1),
  3833. 196: uint32(0x630be410),
  3834. 197: uint32(0x25308375),
  3835. 198: uint32(0xef7d2ada),
  3836. 199: uint32(0xa9464dbf),
  3837. 200: uint32(0x8836d2c3),
  3838. 201: uint32(0xce0db5a6),
  3839. 202: uint32(0x04401c09),
  3840. 203: uint32(0x427b7b6c),
  3841. 204: uint32(0xd1dd3f8d),
  3842. 205: uint32(0x97e658e8),
  3843. 206: uint32(0x5dabf147),
  3844. 207: uint32(0x1b909622),
  3845. 208: uint32(0x1f4bcfbe),
  3846. 209: uint32(0x5970a8db),
  3847. 210: uint32(0x933d0174),
  3848. 211: uint32(0xd5066611),
  3849. 212: uint32(0x46a022f0),
  3850. 213: uint32(0x009b4595),
  3851. 214: uint32(0xcad6ec3a),
  3852. 215: uint32(0x8ced8b5f),
  3853. 216: uint32(0xad9d1423),
  3854. 217: uint32(0xeba67346),
  3855. 218: uint32(0x21ebdae9),
  3856. 219: uint32(0x67d0bd8c),
  3857. 220: uint32(0xf476f96d),
  3858. 221: uint32(0xb24d9e08),
  3859. 222: uint32(0x780037a7),
  3860. 223: uint32(0x3e3b50c2),
  3861. 224: uint32(0x31b0f544),
  3862. 225: uint32(0x778b9221),
  3863. 226: uint32(0xbdc63b8e),
  3864. 227: uint32(0xfbfd5ceb),
  3865. 228: uint32(0x685b180a),
  3866. 229: uint32(0x2e607f6f),
  3867. 230: uint32(0xe42dd6c0),
  3868. 231: uint32(0xa216b1a5),
  3869. 232: uint32(0x83662ed9),
  3870. 233: uint32(0xc55d49bc),
  3871. 234: uint32(0x0f10e013),
  3872. 235: uint32(0x492b8776),
  3873. 236: uint32(0xda8dc397),
  3874. 237: uint32(0x9cb6a4f2),
  3875. 238: uint32(0x56fb0d5d),
  3876. 239: uint32(0x10c06a38),
  3877. 240: uint32(0x141b33a4),
  3878. 241: uint32(0x522054c1),
  3879. 242: uint32(0x986dfd6e),
  3880. 243: uint32(0xde569a0b),
  3881. 244: uint32(0x4df0deea),
  3882. 245: uint32(0x0bcbb98f),
  3883. 246: uint32(0xc1861020),
  3884. 247: uint32(0x87bd7745),
  3885. 248: uint32(0xa6cde839),
  3886. 249: uint32(0xe0f68f5c),
  3887. 250: uint32(0x2abb26f3),
  3888. 251: uint32(0x6c804196),
  3889. 252: uint32(0xff260577),
  3890. 253: uint32(0xb91d6212),
  3891. 254: uint32(0x7350cbbd),
  3892. 255: uint32(0x356bacd8),
  3893. },
  3894. }
  3895. var _x2n_table = [32]Tz_crc_t{
  3896. 0: uint32(0x40000000),
  3897. 1: uint32(0x20000000),
  3898. 2: uint32(0x08000000),
  3899. 3: uint32(0x00800000),
  3900. 4: uint32(0x00008000),
  3901. 5: uint32(0xedb88320),
  3902. 6: uint32(0xb1e6b092),
  3903. 7: uint32(0xa06a2517),
  3904. 8: uint32(0xed627dae),
  3905. 9: uint32(0x88d14467),
  3906. 10: uint32(0xd7bbfe6a),
  3907. 11: uint32(0xec447f11),
  3908. 12: uint32(0x8e7ea170),
  3909. 13: uint32(0x6427800e),
  3910. 14: uint32(0x4d47bae0),
  3911. 15: uint32(0x09fe548f),
  3912. 16: uint32(0x83852d0f),
  3913. 17: uint32(0x30362f1a),
  3914. 18: uint32(0x7b5a9cc3),
  3915. 19: uint32(0x31fec169),
  3916. 20: uint32(0x9fec022a),
  3917. 21: uint32(0x6c8dedc4),
  3918. 22: uint32(0x15d6874d),
  3919. 23: uint32(0x5fde7a4e),
  3920. 24: uint32(0xbad90e37),
  3921. 25: uint32(0x2e4e5eef),
  3922. 26: uint32(0x4eaba214),
  3923. 27: uint32(0xa8a472c0),
  3924. 28: uint32(0x429a969e),
  3925. 29: uint32(0x148d302a),
  3926. 30: uint32(0xc40ba6d0),
  3927. 31: uint32(0xc4e22c3c),
  3928. }
  3929. /* CRC polynomial. */
  3930. // C documentation
  3931. //
  3932. // /*
  3933. // Return a(x) multiplied by b(x) modulo p(x), where p(x) is the CRC polynomial,
  3934. // reflected. For speed, this requires that a not be zero.
  3935. // */
  3936. func _multmodp(tls *libc.TLS, a Tz_crc_t, b Tz_crc_t) (r Tz_crc_t) {
  3937. var m, p Tz_crc_t
  3938. var v2 uint32
  3939. _, _, _ = m, p, v2
  3940. m = libc.Uint32FromInt32(1) << libc.Int32FromInt32(31)
  3941. p = uint32(0)
  3942. for {
  3943. if a&m != 0 {
  3944. p ^= b
  3945. if a&(m-uint32(1)) == uint32(0) {
  3946. break
  3947. }
  3948. }
  3949. m >>= uint32(1)
  3950. if b&uint32(1) != 0 {
  3951. v2 = b>>libc.Int32FromInt32(1) ^ uint32(m_POLY)
  3952. } else {
  3953. v2 = b >> int32(1)
  3954. }
  3955. b = v2
  3956. goto _1
  3957. _1:
  3958. }
  3959. return p
  3960. }
  3961. // C documentation
  3962. //
  3963. // /*
  3964. // Return x^(n * 2^k) modulo p(x). Requires that x2n_table[] has been
  3965. // initialized.
  3966. // */
  3967. func _x2nmodp(tls *libc.TLS, n Toff_t, k uint32) (r Tz_crc_t) {
  3968. var p Tz_crc_t
  3969. _ = p
  3970. p = libc.Uint32FromInt32(1) << libc.Int32FromInt32(31) /* x^0 == 1 */
  3971. for n != 0 {
  3972. if n&int64(1) != 0 {
  3973. p = _multmodp(tls, _x2n_table[k&uint32(31)], p)
  3974. }
  3975. n >>= int64(1)
  3976. k++
  3977. }
  3978. return p
  3979. }
  3980. // C documentation
  3981. //
  3982. // /* =========================================================================
  3983. // * This function can be used by asm versions of crc32(), and to force the
  3984. // * generation of the CRC tables in a threaded application.
  3985. // */
  3986. func Xget_crc_table(tls *libc.TLS) (r uintptr) {
  3987. return uintptr(unsafe.Pointer(&_crc_table))
  3988. }
  3989. /* =========================================================================
  3990. * Use ARM machine instructions if available. This will compute the CRC about
  3991. * ten times faster than the braided calculation. This code does not check for
  3992. * the presence of the CRC instruction at run time. __ARM_FEATURE_CRC32 will
  3993. * only be defined if the compilation specifies an ARM processor architecture
  3994. * that has the instructions. For example, compiling with -march=armv8.1-a or
  3995. * -march=armv8-a+crc, or -march=native if the compile machine has the crc32
  3996. * instructions.
  3997. */
  3998. // C documentation
  3999. //
  4000. // /*
  4001. // Return the CRC of the W bytes in the word_t data, taking the
  4002. // least-significant byte of the word as the first byte of data, without any pre
  4003. // or post conditioning. This is used to combine the CRCs of each braid.
  4004. // */
  4005. func _crc_word(tls *libc.TLS, data Tz_word_t) (r Tz_crc_t) {
  4006. var k int32
  4007. _ = k
  4008. k = 0
  4009. for {
  4010. if !(k < int32(4)) {
  4011. break
  4012. }
  4013. data = data>>libc.Int32FromInt32(8) ^ _crc_table[data&uint32(0xff)]
  4014. goto _1
  4015. _1:
  4016. ;
  4017. k++
  4018. }
  4019. return data
  4020. }
  4021. func _crc_word_big(tls *libc.TLS, data Tz_word_t) (r Tz_word_t) {
  4022. var k int32
  4023. _ = k
  4024. k = 0
  4025. for {
  4026. if !(k < int32(4)) {
  4027. break
  4028. }
  4029. data = data<<libc.Int32FromInt32(8) ^ _crc_big_table[data>>((libc.Int32FromInt32(4)-libc.Int32FromInt32(1))<<libc.Int32FromInt32(3))&uint32(0xff)]
  4030. goto _1
  4031. _1:
  4032. ;
  4033. k++
  4034. }
  4035. return data
  4036. }
  4037. // C documentation
  4038. //
  4039. // /* ========================================================================= */
  4040. func Xcrc32_z(tls *libc.TLS, crc uint64, buf uintptr, len1 Tz_size_t) (r uint64) {
  4041. bp := tls.Alloc(16)
  4042. defer tls.Free(16)
  4043. var blks, v2, v4 Tz_size_t
  4044. var comb, crc01, crc11, crc21, crc31, crc41, word0, word01, word1, word11, word2, word21, word3, word31, word4, word41 Tz_word_t
  4045. var crc0, crc1, crc2, crc3, crc4 Tz_crc_t
  4046. var k int32
  4047. var words, v1, v10, v11, v12, v13, v14, v6, v7, v8, v9 uintptr
  4048. var _ /* endian at bp+0 */ uint32
  4049. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = blks, comb, crc0, crc01, crc1, crc11, crc2, crc21, crc3, crc31, crc4, crc41, k, word0, word01, word1, word11, word2, word21, word3, word31, word4, word41, words, v1, v10, v11, v12, v13, v14, v2, v4, v6, v7, v8, v9
  4050. /* Return initial CRC, if requested. */
  4051. if buf == uintptr(m_Z_NULL) {
  4052. return uint64(0)
  4053. }
  4054. /* Pre-condition the CRC */
  4055. crc = ^crc & uint64(0xffffffff)
  4056. /* If provided enough bytes, do a braided CRC calculation. */
  4057. if len1 >= libc.Uint64FromInt32(libc.Int32FromInt32(m_N)*libc.Int32FromInt32(4)+libc.Int32FromInt32(4)-libc.Int32FromInt32(1)) {
  4058. /* Compute the CRC up to a z_word_t boundary. */
  4059. for len1 != 0 && uint64(buf)&libc.Uint64FromInt32(libc.Int32FromInt32(4)-libc.Int32FromInt32(1)) != uint64(0) {
  4060. len1--
  4061. v1 = buf
  4062. buf++
  4063. crc = crc>>int32(8) ^ uint64(_crc_table[(crc^uint64(*(*uint8)(unsafe.Pointer(v1))))&uint64(0xff)])
  4064. }
  4065. /* Compute the CRC on as many N z_word_t blocks as are available. */
  4066. blks = len1 / libc.Uint64FromInt32(libc.Int32FromInt32(m_N)*libc.Int32FromInt32(4))
  4067. len1 -= blks * uint64(m_N) * uint64(4)
  4068. words = buf
  4069. /* Do endian check at execution time instead of compile time, since ARM
  4070. processors can change the endianness at execution time. If the
  4071. compiler knows what the endianness will be, it can optimize out the
  4072. check and the unused branch. */
  4073. *(*uint32)(unsafe.Pointer(bp)) = uint32(1)
  4074. if *(*uint8)(unsafe.Pointer(bp)) != 0 {
  4075. /* Initialize the CRC for each braid. */
  4076. crc0 = uint32(crc)
  4077. crc1 = uint32(0)
  4078. crc2 = uint32(0)
  4079. crc3 = uint32(0)
  4080. crc4 = uint32(0)
  4081. /*
  4082. Process the first blks-1 blocks, computing the CRCs on each braid
  4083. independently.
  4084. */
  4085. for {
  4086. blks--
  4087. v2 = blks
  4088. if !(v2 != 0) {
  4089. break
  4090. }
  4091. /* Load the word for each braid into registers. */
  4092. word0 = crc0 ^ *(*Tz_word_t)(unsafe.Pointer(words))
  4093. word1 = crc1 ^ *(*Tz_word_t)(unsafe.Pointer(words + 1*4))
  4094. word2 = crc2 ^ *(*Tz_word_t)(unsafe.Pointer(words + 2*4))
  4095. word3 = crc3 ^ *(*Tz_word_t)(unsafe.Pointer(words + 3*4))
  4096. word4 = crc4 ^ *(*Tz_word_t)(unsafe.Pointer(words + 4*4))
  4097. words += uintptr(m_N) * 4
  4098. /* Compute and update the CRC for each word. The loop should
  4099. get unrolled. */
  4100. crc0 = *(*Tz_crc_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_table)) + uintptr(word0&uint32(0xff))*4))
  4101. crc1 = *(*Tz_crc_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_table)) + uintptr(word1&uint32(0xff))*4))
  4102. crc2 = *(*Tz_crc_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_table)) + uintptr(word2&uint32(0xff))*4))
  4103. crc3 = *(*Tz_crc_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_table)) + uintptr(word3&uint32(0xff))*4))
  4104. crc4 = *(*Tz_crc_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_table)) + uintptr(word4&uint32(0xff))*4))
  4105. k = int32(1)
  4106. for {
  4107. if !(k < int32(4)) {
  4108. break
  4109. }
  4110. crc0 ^= *(*Tz_crc_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_table)) + uintptr(k)*1024 + uintptr(word0>>(k<<libc.Int32FromInt32(3))&uint32(0xff))*4))
  4111. crc1 ^= *(*Tz_crc_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_table)) + uintptr(k)*1024 + uintptr(word1>>(k<<libc.Int32FromInt32(3))&uint32(0xff))*4))
  4112. crc2 ^= *(*Tz_crc_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_table)) + uintptr(k)*1024 + uintptr(word2>>(k<<libc.Int32FromInt32(3))&uint32(0xff))*4))
  4113. crc3 ^= *(*Tz_crc_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_table)) + uintptr(k)*1024 + uintptr(word3>>(k<<libc.Int32FromInt32(3))&uint32(0xff))*4))
  4114. crc4 ^= *(*Tz_crc_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_table)) + uintptr(k)*1024 + uintptr(word4>>(k<<libc.Int32FromInt32(3))&uint32(0xff))*4))
  4115. goto _3
  4116. _3:
  4117. ;
  4118. k++
  4119. }
  4120. }
  4121. /*
  4122. Process the last block, combining the CRCs of the N braids at the
  4123. same time.
  4124. */
  4125. crc = uint64(_crc_word(tls, crc0^*(*Tz_word_t)(unsafe.Pointer(words))))
  4126. crc = uint64(_crc_word(tls, uint32(uint64(crc1^*(*Tz_word_t)(unsafe.Pointer(words + 1*4)))^crc)))
  4127. crc = uint64(_crc_word(tls, uint32(uint64(crc2^*(*Tz_word_t)(unsafe.Pointer(words + 2*4)))^crc)))
  4128. crc = uint64(_crc_word(tls, uint32(uint64(crc3^*(*Tz_word_t)(unsafe.Pointer(words + 3*4)))^crc)))
  4129. crc = uint64(_crc_word(tls, uint32(uint64(crc4^*(*Tz_word_t)(unsafe.Pointer(words + 4*4)))^crc)))
  4130. words += uintptr(m_N) * 4
  4131. } else {
  4132. /* Initialize the CRC for each braid. */
  4133. crc01 = _byte_swap(tls, uint32(crc))
  4134. crc11 = uint32(0)
  4135. crc21 = uint32(0)
  4136. crc31 = uint32(0)
  4137. crc41 = uint32(0)
  4138. /*
  4139. Process the first blks-1 blocks, computing the CRCs on each braid
  4140. independently.
  4141. */
  4142. for {
  4143. blks--
  4144. v4 = blks
  4145. if !(v4 != 0) {
  4146. break
  4147. }
  4148. /* Load the word for each braid into registers. */
  4149. word01 = crc01 ^ *(*Tz_word_t)(unsafe.Pointer(words))
  4150. word11 = crc11 ^ *(*Tz_word_t)(unsafe.Pointer(words + 1*4))
  4151. word21 = crc21 ^ *(*Tz_word_t)(unsafe.Pointer(words + 2*4))
  4152. word31 = crc31 ^ *(*Tz_word_t)(unsafe.Pointer(words + 3*4))
  4153. word41 = crc41 ^ *(*Tz_word_t)(unsafe.Pointer(words + 4*4))
  4154. words += uintptr(m_N) * 4
  4155. /* Compute and update the CRC for each word. The loop should
  4156. get unrolled. */
  4157. crc01 = *(*Tz_word_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_big_table)) + uintptr(word01&uint32(0xff))*4))
  4158. crc11 = *(*Tz_word_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_big_table)) + uintptr(word11&uint32(0xff))*4))
  4159. crc21 = *(*Tz_word_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_big_table)) + uintptr(word21&uint32(0xff))*4))
  4160. crc31 = *(*Tz_word_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_big_table)) + uintptr(word31&uint32(0xff))*4))
  4161. crc41 = *(*Tz_word_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_big_table)) + uintptr(word41&uint32(0xff))*4))
  4162. k = int32(1)
  4163. for {
  4164. if !(k < int32(4)) {
  4165. break
  4166. }
  4167. crc01 ^= *(*Tz_word_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_big_table)) + uintptr(k)*1024 + uintptr(word01>>(k<<libc.Int32FromInt32(3))&uint32(0xff))*4))
  4168. crc11 ^= *(*Tz_word_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_big_table)) + uintptr(k)*1024 + uintptr(word11>>(k<<libc.Int32FromInt32(3))&uint32(0xff))*4))
  4169. crc21 ^= *(*Tz_word_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_big_table)) + uintptr(k)*1024 + uintptr(word21>>(k<<libc.Int32FromInt32(3))&uint32(0xff))*4))
  4170. crc31 ^= *(*Tz_word_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_big_table)) + uintptr(k)*1024 + uintptr(word31>>(k<<libc.Int32FromInt32(3))&uint32(0xff))*4))
  4171. crc41 ^= *(*Tz_word_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_big_table)) + uintptr(k)*1024 + uintptr(word41>>(k<<libc.Int32FromInt32(3))&uint32(0xff))*4))
  4172. goto _5
  4173. _5:
  4174. ;
  4175. k++
  4176. }
  4177. }
  4178. /*
  4179. Process the last block, combining the CRCs of the N braids at the
  4180. same time.
  4181. */
  4182. comb = _crc_word_big(tls, crc01^*(*Tz_word_t)(unsafe.Pointer(words)))
  4183. comb = _crc_word_big(tls, crc11^*(*Tz_word_t)(unsafe.Pointer(words + 1*4))^comb)
  4184. comb = _crc_word_big(tls, crc21^*(*Tz_word_t)(unsafe.Pointer(words + 2*4))^comb)
  4185. comb = _crc_word_big(tls, crc31^*(*Tz_word_t)(unsafe.Pointer(words + 3*4))^comb)
  4186. comb = _crc_word_big(tls, crc41^*(*Tz_word_t)(unsafe.Pointer(words + 4*4))^comb)
  4187. words += uintptr(m_N) * 4
  4188. crc = uint64(_byte_swap(tls, comb))
  4189. }
  4190. /*
  4191. Update the pointer to the remaining bytes to process.
  4192. */
  4193. buf = words
  4194. }
  4195. /* Complete the computation of the CRC on any remaining bytes. */
  4196. for len1 >= uint64(8) {
  4197. len1 -= uint64(8)
  4198. v6 = buf
  4199. buf++
  4200. crc = crc>>int32(8) ^ uint64(_crc_table[(crc^uint64(*(*uint8)(unsafe.Pointer(v6))))&uint64(0xff)])
  4201. v7 = buf
  4202. buf++
  4203. crc = crc>>int32(8) ^ uint64(_crc_table[(crc^uint64(*(*uint8)(unsafe.Pointer(v7))))&uint64(0xff)])
  4204. v8 = buf
  4205. buf++
  4206. crc = crc>>int32(8) ^ uint64(_crc_table[(crc^uint64(*(*uint8)(unsafe.Pointer(v8))))&uint64(0xff)])
  4207. v9 = buf
  4208. buf++
  4209. crc = crc>>int32(8) ^ uint64(_crc_table[(crc^uint64(*(*uint8)(unsafe.Pointer(v9))))&uint64(0xff)])
  4210. v10 = buf
  4211. buf++
  4212. crc = crc>>int32(8) ^ uint64(_crc_table[(crc^uint64(*(*uint8)(unsafe.Pointer(v10))))&uint64(0xff)])
  4213. v11 = buf
  4214. buf++
  4215. crc = crc>>int32(8) ^ uint64(_crc_table[(crc^uint64(*(*uint8)(unsafe.Pointer(v11))))&uint64(0xff)])
  4216. v12 = buf
  4217. buf++
  4218. crc = crc>>int32(8) ^ uint64(_crc_table[(crc^uint64(*(*uint8)(unsafe.Pointer(v12))))&uint64(0xff)])
  4219. v13 = buf
  4220. buf++
  4221. crc = crc>>int32(8) ^ uint64(_crc_table[(crc^uint64(*(*uint8)(unsafe.Pointer(v13))))&uint64(0xff)])
  4222. }
  4223. for len1 != 0 {
  4224. len1--
  4225. v14 = buf
  4226. buf++
  4227. crc = crc>>int32(8) ^ uint64(_crc_table[(crc^uint64(*(*uint8)(unsafe.Pointer(v14))))&uint64(0xff)])
  4228. }
  4229. /* Return the CRC, post-conditioned. */
  4230. return crc ^ uint64(0xffffffff)
  4231. }
  4232. // C documentation
  4233. //
  4234. // /* ========================================================================= */
  4235. func Xcrc32(tls *libc.TLS, crc uint64, buf uintptr, len1 TuInt) (r uint64) {
  4236. return Xcrc32_z(tls, crc, buf, uint64(len1))
  4237. }
  4238. // C documentation
  4239. //
  4240. // /* ========================================================================= */
  4241. func Xcrc32_combine64(tls *libc.TLS, crc1 TuLong, crc2 TuLong, len2 Toff_t) (r TuLong) {
  4242. return uint64(_multmodp(tls, _x2nmodp(tls, len2, uint32(3)), uint32(crc1))) ^ crc2&uint64(0xffffffff)
  4243. }
  4244. // C documentation
  4245. //
  4246. // /* ========================================================================= */
  4247. func Xcrc32_combine(tls *libc.TLS, crc1 TuLong, crc2 TuLong, len2 Toff_t) (r TuLong) {
  4248. return Xcrc32_combine64(tls, crc1, crc2, len2)
  4249. }
  4250. // C documentation
  4251. //
  4252. // /* ========================================================================= */
  4253. func Xcrc32_combine_gen64(tls *libc.TLS, len2 Toff_t) (r TuLong) {
  4254. return uint64(_x2nmodp(tls, len2, uint32(3)))
  4255. }
  4256. // C documentation
  4257. //
  4258. // /* ========================================================================= */
  4259. func Xcrc32_combine_gen(tls *libc.TLS, len2 Toff_t) (r TuLong) {
  4260. return Xcrc32_combine_gen64(tls, len2)
  4261. }
  4262. // C documentation
  4263. //
  4264. // /* ========================================================================= */
  4265. func Xcrc32_combine_op(tls *libc.TLS, crc1 TuLong, crc2 TuLong, op TuLong) (r TuLong) {
  4266. return uint64(_multmodp(tls, uint32(op), uint32(crc1))) ^ crc2&uint64(0xffffffff)
  4267. }
  4268. const m_BL_CODES = 19
  4269. const m_BUSY_STATE = 113
  4270. const m_Buf_size = 16
  4271. const m_COMMENT_STATE = 91
  4272. const m_D_CODES = 30
  4273. const m_EXTRA_STATE = 69
  4274. const m_FINISH_STATE = 666
  4275. const m_GZIP_STATE = 57
  4276. const m_HCRC_STATE = 103
  4277. const m_INIT_STATE = 42
  4278. const m_LENGTH_CODES = 29
  4279. const m_LITERALS = 256
  4280. const m_LIT_BUFS = 4
  4281. const m_MAX_BITS = 15
  4282. const m_MAX_STORED = 65535
  4283. const m_NAME_STATE = 73
  4284. const m_NIL = 0
  4285. const m_PRESET_DICT1 = 32
  4286. const m_TOO_FAR = 4096
  4287. const m_WIN_INIT = "MAX_MATCH"
  4288. const m_max_insert_length = "max_lazy_match"
  4289. type Tinternal_state = struct {
  4290. Fstrm Tz_streamp
  4291. Fstatus int32
  4292. Fpending_buf uintptr
  4293. Fpending_buf_size Tulg
  4294. Fpending_out uintptr
  4295. Fpending Tulg
  4296. Fwrap int32
  4297. Fgzhead Tgz_headerp
  4298. Fgzindex Tulg
  4299. Fmethod TByte
  4300. Flast_flush int32
  4301. Fw_size TuInt
  4302. Fw_bits TuInt
  4303. Fw_mask TuInt
  4304. Fwindow uintptr
  4305. Fwindow_size Tulg
  4306. Fprev uintptr
  4307. Fhead uintptr
  4308. Fins_h TuInt
  4309. Fhash_size TuInt
  4310. Fhash_bits TuInt
  4311. Fhash_mask TuInt
  4312. Fhash_shift TuInt
  4313. Fblock_start int64
  4314. Fmatch_length TuInt
  4315. Fprev_match TIPos
  4316. Fmatch_available int32
  4317. Fstrstart TuInt
  4318. Fmatch_start TuInt
  4319. Flookahead TuInt
  4320. Fprev_length TuInt
  4321. Fmax_chain_length TuInt
  4322. Fmax_lazy_match TuInt
  4323. Flevel int32
  4324. Fstrategy int32
  4325. Fgood_match TuInt
  4326. Fnice_match int32
  4327. Fdyn_ltree [573]Tct_data_s
  4328. Fdyn_dtree [61]Tct_data_s
  4329. Fbl_tree [39]Tct_data_s
  4330. Fl_desc Ttree_desc_s
  4331. Fd_desc Ttree_desc_s
  4332. Fbl_desc Ttree_desc_s
  4333. Fbl_count [16]Tush
  4334. Fheap [573]int32
  4335. Fheap_len int32
  4336. Fheap_max int32
  4337. Fdepth [573]Tuch
  4338. Fsym_buf uintptr
  4339. Flit_bufsize TuInt
  4340. Fsym_next TuInt
  4341. Fsym_end TuInt
  4342. Fopt_len Tulg
  4343. Fstatic_len Tulg
  4344. Fmatches TuInt
  4345. Finsert TuInt
  4346. Fbi_buf Tush
  4347. Fbi_valid int32
  4348. Fhigh_water Tulg
  4349. }
  4350. type Tct_data = struct {
  4351. Ffc struct {
  4352. Fcode [0]Tush
  4353. Ffreq Tush
  4354. }
  4355. Fdl struct {
  4356. Flen1 [0]Tush
  4357. Fdad Tush
  4358. }
  4359. }
  4360. type Tct_data_s = Tct_data
  4361. type Ttree_desc = struct {
  4362. Fdyn_tree uintptr
  4363. Fmax_code int32
  4364. Fstat_desc uintptr
  4365. }
  4366. type Ttree_desc_s = Ttree_desc
  4367. type TPos = uint16
  4368. type TPosf = uint16
  4369. type TIPos = uint32
  4370. type Tdeflate_state = struct {
  4371. Fstrm Tz_streamp
  4372. Fstatus int32
  4373. Fpending_buf uintptr
  4374. Fpending_buf_size Tulg
  4375. Fpending_out uintptr
  4376. Fpending Tulg
  4377. Fwrap int32
  4378. Fgzhead Tgz_headerp
  4379. Fgzindex Tulg
  4380. Fmethod TByte
  4381. Flast_flush int32
  4382. Fw_size TuInt
  4383. Fw_bits TuInt
  4384. Fw_mask TuInt
  4385. Fwindow uintptr
  4386. Fwindow_size Tulg
  4387. Fprev uintptr
  4388. Fhead uintptr
  4389. Fins_h TuInt
  4390. Fhash_size TuInt
  4391. Fhash_bits TuInt
  4392. Fhash_mask TuInt
  4393. Fhash_shift TuInt
  4394. Fblock_start int64
  4395. Fmatch_length TuInt
  4396. Fprev_match TIPos
  4397. Fmatch_available int32
  4398. Fstrstart TuInt
  4399. Fmatch_start TuInt
  4400. Flookahead TuInt
  4401. Fprev_length TuInt
  4402. Fmax_chain_length TuInt
  4403. Fmax_lazy_match TuInt
  4404. Flevel int32
  4405. Fstrategy int32
  4406. Fgood_match TuInt
  4407. Fnice_match int32
  4408. Fdyn_ltree [573]Tct_data_s
  4409. Fdyn_dtree [61]Tct_data_s
  4410. Fbl_tree [39]Tct_data_s
  4411. Fl_desc Ttree_desc_s
  4412. Fd_desc Ttree_desc_s
  4413. Fbl_desc Ttree_desc_s
  4414. Fbl_count [16]Tush
  4415. Fheap [573]int32
  4416. Fheap_len int32
  4417. Fheap_max int32
  4418. Fdepth [573]Tuch
  4419. Fsym_buf uintptr
  4420. Flit_bufsize TuInt
  4421. Fsym_next TuInt
  4422. Fsym_end TuInt
  4423. Fopt_len Tulg
  4424. Fstatic_len Tulg
  4425. Fmatches TuInt
  4426. Finsert TuInt
  4427. Fbi_buf Tush
  4428. Fbi_valid int32
  4429. Fhigh_water Tulg
  4430. }
  4431. /*
  4432. If you use the zlib library in a product, an acknowledgment is welcome
  4433. in the documentation of your product. If for some reason you cannot
  4434. include such an acknowledgment, I would appreciate that you keep this
  4435. copyright string in the executable of your product.
  4436. */
  4437. type Tblock_state = int32
  4438. const _need_more = 0
  4439. const /* block not completed, need more input or more output */
  4440. _block_done = 1
  4441. const /* block flush performed */
  4442. _finish_started = 2
  4443. const /* finish started, need only more output at next deflate */
  4444. _finish_done = 3
  4445. type Tcompress_func = uintptr
  4446. /* ===========================================================================
  4447. * Local data
  4448. */
  4449. /* Tail of hash chains */
  4450. /* Matches of length 3 are discarded if their distance exceeds TOO_FAR */
  4451. // C documentation
  4452. //
  4453. // /* Values for max_lazy_match, good_match and max_chain_length, depending on
  4454. // * the desired pack level (0..9). The values given below have been tuned to
  4455. // * exclude worst case performance for pathological files. Better values may be
  4456. // * found for specific files.
  4457. // */
  4458. type Tconfig = struct {
  4459. Fgood_length Tush
  4460. Fmax_lazy Tush
  4461. Fnice_length Tush
  4462. Fmax_chain Tush
  4463. Ffunc1 Tcompress_func
  4464. }
  4465. /* ===========================================================================
  4466. * Local data
  4467. */
  4468. /* Tail of hash chains */
  4469. /* Matches of length 3 are discarded if their distance exceeds TOO_FAR */
  4470. // C documentation
  4471. //
  4472. // /* Values for max_lazy_match, good_match and max_chain_length, depending on
  4473. // * the desired pack level (0..9). The values given below have been tuned to
  4474. // * exclude worst case performance for pathological files. Better values may be
  4475. // * found for specific files.
  4476. // */
  4477. type Tconfig_s = Tconfig
  4478. var _configuration_table = [10]Tconfig{
  4479. 0: {},
  4480. 1: {
  4481. Fgood_length: uint16(4),
  4482. Fmax_lazy: uint16(4),
  4483. Fnice_length: uint16(8),
  4484. Fmax_chain: uint16(4),
  4485. },
  4486. 2: {
  4487. Fgood_length: uint16(4),
  4488. Fmax_lazy: uint16(5),
  4489. Fnice_length: uint16(16),
  4490. Fmax_chain: uint16(8),
  4491. },
  4492. 3: {
  4493. Fgood_length: uint16(4),
  4494. Fmax_lazy: uint16(6),
  4495. Fnice_length: uint16(32),
  4496. Fmax_chain: uint16(32),
  4497. },
  4498. 4: {
  4499. Fgood_length: uint16(4),
  4500. Fmax_lazy: uint16(4),
  4501. Fnice_length: uint16(16),
  4502. Fmax_chain: uint16(16),
  4503. },
  4504. 5: {
  4505. Fgood_length: uint16(8),
  4506. Fmax_lazy: uint16(16),
  4507. Fnice_length: uint16(32),
  4508. Fmax_chain: uint16(32),
  4509. },
  4510. 6: {
  4511. Fgood_length: uint16(8),
  4512. Fmax_lazy: uint16(16),
  4513. Fnice_length: uint16(128),
  4514. Fmax_chain: uint16(128),
  4515. },
  4516. 7: {
  4517. Fgood_length: uint16(8),
  4518. Fmax_lazy: uint16(32),
  4519. Fnice_length: uint16(128),
  4520. Fmax_chain: uint16(256),
  4521. },
  4522. 8: {
  4523. Fgood_length: uint16(32),
  4524. Fmax_lazy: uint16(128),
  4525. Fnice_length: uint16(258),
  4526. Fmax_chain: uint16(1024),
  4527. },
  4528. 9: {
  4529. Fgood_length: uint16(32),
  4530. Fmax_lazy: uint16(258),
  4531. Fnice_length: uint16(258),
  4532. Fmax_chain: uint16(4096),
  4533. },
  4534. }
  4535. func init() {
  4536. p := unsafe.Pointer(&_configuration_table)
  4537. *(*uintptr)(unsafe.Add(p, 8)) = __ccgo_fp(_deflate_stored)
  4538. *(*uintptr)(unsafe.Add(p, 24)) = __ccgo_fp(_deflate_fast)
  4539. *(*uintptr)(unsafe.Add(p, 40)) = __ccgo_fp(_deflate_fast)
  4540. *(*uintptr)(unsafe.Add(p, 56)) = __ccgo_fp(_deflate_fast)
  4541. *(*uintptr)(unsafe.Add(p, 72)) = __ccgo_fp(_deflate_slow)
  4542. *(*uintptr)(unsafe.Add(p, 88)) = __ccgo_fp(_deflate_slow)
  4543. *(*uintptr)(unsafe.Add(p, 104)) = __ccgo_fp(_deflate_slow)
  4544. *(*uintptr)(unsafe.Add(p, 120)) = __ccgo_fp(_deflate_slow)
  4545. *(*uintptr)(unsafe.Add(p, 136)) = __ccgo_fp(_deflate_slow)
  4546. *(*uintptr)(unsafe.Add(p, 152)) = __ccgo_fp(_deflate_slow)
  4547. }
  4548. /* max compression */
  4549. /* Note: the deflate() code requires max_lazy >= MIN_MATCH and max_chain >= 4
  4550. * For deflate_fast() (levels <= 3) good is ignored and lazy has a different
  4551. * meaning.
  4552. */
  4553. /* rank Z_BLOCK between Z_NO_FLUSH and Z_PARTIAL_FLUSH */
  4554. /* ===========================================================================
  4555. * Update a hash value with the given input byte
  4556. * IN assertion: all calls to UPDATE_HASH are made with consecutive input
  4557. * characters, so that a running hash key can be computed from the previous
  4558. * key instead of complete recalculation each time.
  4559. */
  4560. /* ===========================================================================
  4561. * Insert string str in the dictionary and set match_head to the previous head
  4562. * of the hash chain (the most recent string with same hash key). Return
  4563. * the previous length of the hash chain.
  4564. * If this file is compiled with -DFASTEST, the compression level is forced
  4565. * to 1, and no hash chains are maintained.
  4566. * IN assertion: all calls to INSERT_STRING are made with consecutive input
  4567. * characters and the first MIN_MATCH bytes of str are valid (except for
  4568. * the last MIN_MATCH-1 bytes of the input file).
  4569. */
  4570. /* ===========================================================================
  4571. * Initialize the hash table (avoiding 64K overflow for 16 bit systems).
  4572. * prev[] will be initialized on the fly.
  4573. */
  4574. // C documentation
  4575. //
  4576. // /* ===========================================================================
  4577. // * Slide the hash table when sliding the window down (could be avoided with 32
  4578. // * bit values at the expense of memory usage). We slide even when level == 0 to
  4579. // * keep the hash table consistent if we switch back to level > 0 later.
  4580. // */
  4581. func _slide_hash(tls *libc.TLS, s uintptr) {
  4582. var m, n, v1, v4, v5, v8 uint32
  4583. var p, v3, v7 uintptr
  4584. var wsize TuInt
  4585. _, _, _, _, _, _, _, _, _, _ = m, n, p, wsize, v1, v3, v4, v5, v7, v8
  4586. wsize = (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size
  4587. n = (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size
  4588. p = (*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr(n)*2
  4589. for {
  4590. p -= 2
  4591. v3 = p
  4592. m = uint32(*(*TPosf)(unsafe.Pointer(v3)))
  4593. if m >= wsize {
  4594. v4 = m - wsize
  4595. } else {
  4596. v4 = uint32(m_NIL)
  4597. }
  4598. *(*TPosf)(unsafe.Pointer(p)) = uint16(v4)
  4599. goto _2
  4600. _2:
  4601. ;
  4602. n--
  4603. v1 = n
  4604. if !(v1 != 0) {
  4605. break
  4606. }
  4607. }
  4608. n = wsize
  4609. p = (*Tdeflate_state)(unsafe.Pointer(s)).Fprev + uintptr(n)*2
  4610. for {
  4611. p -= 2
  4612. v7 = p
  4613. m = uint32(*(*TPosf)(unsafe.Pointer(v7)))
  4614. if m >= wsize {
  4615. v8 = m - wsize
  4616. } else {
  4617. v8 = uint32(m_NIL)
  4618. }
  4619. *(*TPosf)(unsafe.Pointer(p)) = uint16(v8)
  4620. /* If n is not on any hash chain, prev[n] is garbage but
  4621. * its value will never be used.
  4622. */
  4623. goto _6
  4624. _6:
  4625. ;
  4626. n--
  4627. v5 = n
  4628. if !(v5 != 0) {
  4629. break
  4630. }
  4631. }
  4632. }
  4633. // C documentation
  4634. //
  4635. // /* ===========================================================================
  4636. // * Read a new buffer from the current input stream, update the adler32
  4637. // * and total number of bytes read. All deflate() input goes through
  4638. // * this function so some applications may wish to modify it to avoid
  4639. // * allocating a large strm->next_in buffer and copying from it.
  4640. // * (See also flush_pending()).
  4641. // */
  4642. func _read_buf(tls *libc.TLS, strm Tz_streamp, buf uintptr, size uint32) (r uint32) {
  4643. var len1 uint32
  4644. _ = len1
  4645. len1 = (*Tz_stream)(unsafe.Pointer(strm)).Favail_in
  4646. if len1 > size {
  4647. len1 = size
  4648. }
  4649. if len1 == uint32(0) {
  4650. return uint32(0)
  4651. }
  4652. *(*TuInt)(unsafe.Pointer(strm + 8)) -= len1
  4653. libc.Xmemcpy(tls, buf, (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in, uint64(len1))
  4654. if (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fwrap == int32(1) {
  4655. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xadler32(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fadler, buf, len1)
  4656. } else {
  4657. if (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fwrap == int32(2) {
  4658. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fadler, buf, len1)
  4659. }
  4660. }
  4661. *(*uintptr)(unsafe.Pointer(strm)) += uintptr(len1)
  4662. *(*TuLong)(unsafe.Pointer(strm + 16)) += uint64(len1)
  4663. return len1
  4664. }
  4665. // C documentation
  4666. //
  4667. // /* ===========================================================================
  4668. // * Fill the window when the lookahead becomes insufficient.
  4669. // * Updates strstart and lookahead.
  4670. // *
  4671. // * IN assertion: lookahead < MIN_LOOKAHEAD
  4672. // * OUT assertions: strstart <= window_size-MIN_LOOKAHEAD
  4673. // * At least one byte has been read, or avail_in == 0; reads are
  4674. // * performed for at least two bytes (required for the zip translate_eol
  4675. // * option -- not supported here).
  4676. // */
  4677. func _fill_window(tls *libc.TLS, s uintptr) {
  4678. var curr, init1 Tulg
  4679. var more, n uint32
  4680. var str, wsize TuInt
  4681. _, _, _, _, _, _ = curr, init1, more, n, str, wsize /* Amount of free space at the end of the window. */
  4682. wsize = (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size
  4683. for cond := true; cond; cond = (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead < libc.Uint32FromInt32(libc.Int32FromInt32(m_MAX_MATCH)+libc.Int32FromInt32(m_MIN_MATCH)+libc.Int32FromInt32(1)) && (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in != uint32(0) {
  4684. more = uint32((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow_size - uint64((*Tdeflate_state)(unsafe.Pointer(s)).Flookahead) - uint64((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart))
  4685. /* Deal with !@#$% 64K limit: */
  4686. if uint64(4) <= uint64(2) {
  4687. if more == uint32(0) && (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart == uint32(0) && (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead == uint32(0) {
  4688. more = wsize
  4689. } else {
  4690. if more == libc.Uint32FromInt32(-libc.Int32FromInt32(1)) {
  4691. /* Very unlikely, but possible on 16 bit machine if
  4692. * strstart == 0 && lookahead == 1 (input done a byte at time)
  4693. */
  4694. more--
  4695. }
  4696. }
  4697. }
  4698. /* If the window is almost full and there is insufficient lookahead,
  4699. * move the upper half to the lower one to make room in the upper half.
  4700. */
  4701. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart >= wsize+((*Tdeflate_state)(unsafe.Pointer(s)).Fw_size-libc.Uint32FromInt32(libc.Int32FromInt32(m_MAX_MATCH)+libc.Int32FromInt32(m_MIN_MATCH)+libc.Int32FromInt32(1))) {
  4702. libc.Xmemcpy(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow+uintptr(wsize), uint64(wsize-more))
  4703. *(*TuInt)(unsafe.Pointer(s + 176)) -= wsize
  4704. *(*TuInt)(unsafe.Pointer(s + 172)) -= wsize /* we now have strstart >= MAX_DIST */
  4705. *(*int64)(unsafe.Pointer(s + 152)) -= libc.Int64FromUint32(wsize)
  4706. if (*Tdeflate_state)(unsafe.Pointer(s)).Finsert > (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart {
  4707. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart
  4708. }
  4709. _slide_hash(tls, s)
  4710. more += wsize
  4711. }
  4712. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in == uint32(0) {
  4713. break
  4714. }
  4715. /* If there was no sliding:
  4716. * strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&
  4717. * more == window_size - lookahead - strstart
  4718. * => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)
  4719. * => more >= window_size - 2*WSIZE + 2
  4720. * In the BIG_MEM or MMAP case (not yet supported),
  4721. * window_size == input_size + MIN_LOOKAHEAD &&
  4722. * strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD.
  4723. * Otherwise, window_size == 2*WSIZE so more >= 2.
  4724. * If there was sliding, more >= WSIZE. So in all cases, more >= 2.
  4725. */
  4726. n = _read_buf(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow+uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)+uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Flookahead), more)
  4727. *(*TuInt)(unsafe.Pointer(s + 180)) += n
  4728. /* Initialize the hash value now that we have some input: */
  4729. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead+(*Tdeflate_state)(unsafe.Pointer(s)).Finsert >= uint32(m_MIN_MATCH) {
  4730. str = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart - (*Tdeflate_state)(unsafe.Pointer(s)).Finsert
  4731. (*Tdeflate_state)(unsafe.Pointer(s)).Fins_h = uint32(*(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(str))))
  4732. (*Tdeflate_state)(unsafe.Pointer(s)).Fins_h = ((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h<<(*Tdeflate_state)(unsafe.Pointer(s)).Fhash_shift ^ uint32(*(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(str+uint32(1)))))) & (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_mask
  4733. for (*Tdeflate_state)(unsafe.Pointer(s)).Finsert != 0 {
  4734. (*Tdeflate_state)(unsafe.Pointer(s)).Fins_h = ((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h<<(*Tdeflate_state)(unsafe.Pointer(s)).Fhash_shift ^ uint32(*(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(str+uint32(m_MIN_MATCH)-uint32(1)))))) & (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_mask
  4735. *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fprev + uintptr(str&(*Tdeflate_state)(unsafe.Pointer(s)).Fw_mask)*2)) = *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h)*2))
  4736. *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h)*2)) = uint16(str)
  4737. str++
  4738. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert--
  4739. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead+(*Tdeflate_state)(unsafe.Pointer(s)).Finsert < uint32(m_MIN_MATCH) {
  4740. break
  4741. }
  4742. }
  4743. }
  4744. /* If the whole input has less than MIN_MATCH bytes, ins_h is garbage,
  4745. * but this is not important since only literal bytes will be emitted.
  4746. */
  4747. }
  4748. /* If the WIN_INIT bytes after the end of the current data have never been
  4749. * written, then zero those bytes in order to avoid memory check reports of
  4750. * the use of uninitialized (or uninitialised as Julian writes) bytes by
  4751. * the longest match routines. Update the high water mark for the next
  4752. * time through here. WIN_INIT is set to MAX_MATCH since the longest match
  4753. * routines allow scanning to strstart + MAX_MATCH, ignoring lookahead.
  4754. */
  4755. if (*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water < (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow_size {
  4756. curr = uint64((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart) + uint64((*Tdeflate_state)(unsafe.Pointer(s)).Flookahead)
  4757. if (*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water < curr {
  4758. /* Previous high water mark below current data -- zero WIN_INIT
  4759. * bytes or up to end of window, whichever is less.
  4760. */
  4761. init1 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow_size - curr
  4762. if init1 > uint64(m_MAX_MATCH) {
  4763. init1 = uint64(m_MAX_MATCH)
  4764. }
  4765. libc.Xmemset(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow+uintptr(curr), 0, uint64(uint32(init1)))
  4766. (*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water = curr + init1
  4767. } else {
  4768. if (*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water < curr+uint64(m_MAX_MATCH) {
  4769. /* High water mark at or above current data, but below current data
  4770. * plus WIN_INIT -- zero out to current data plus WIN_INIT, or up
  4771. * to end of window, whichever is less.
  4772. */
  4773. init1 = curr + uint64(m_MAX_MATCH) - (*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water
  4774. if init1 > (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow_size-(*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water {
  4775. init1 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow_size - (*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water
  4776. }
  4777. libc.Xmemset(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow+uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water), 0, uint64(uint32(init1)))
  4778. *(*Tulg)(unsafe.Pointer(s + 5944)) += init1
  4779. }
  4780. }
  4781. }
  4782. }
  4783. // C documentation
  4784. //
  4785. // /* ========================================================================= */
  4786. func XdeflateInit_(tls *libc.TLS, strm Tz_streamp, level int32, version uintptr, stream_size int32) (r int32) {
  4787. return XdeflateInit2_(tls, strm, level, int32(m_Z_DEFLATED), int32(m_MAX_WBITS), int32(m_DEF_MEM_LEVEL), m_Z_DEFAULT_STRATEGY, version, stream_size)
  4788. /* To do: ignore strm->next_in if we use it as window */
  4789. }
  4790. // C documentation
  4791. //
  4792. // /* ========================================================================= */
  4793. func XdeflateInit2_(tls *libc.TLS, strm Tz_streamp, level int32, method int32, windowBits int32, memLevel int32, strategy int32, version uintptr, stream_size int32) (r int32) {
  4794. var s uintptr
  4795. var wrap int32
  4796. _, _ = s, wrap
  4797. wrap = int32(1)
  4798. if version == uintptr(m_Z_NULL) || int32(*(*int8)(unsafe.Pointer(version))) != int32(_my_version[0]) || libc.Uint64FromInt32(stream_size) != uint64(112) {
  4799. return -int32(6)
  4800. }
  4801. if strm == uintptr(m_Z_NULL) {
  4802. return -int32(2)
  4803. }
  4804. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = uintptr(m_Z_NULL)
  4805. if (*Tz_stream)(unsafe.Pointer(strm)).Fzalloc == libc.UintptrFromInt32(0) {
  4806. (*Tz_stream)(unsafe.Pointer(strm)).Fzalloc = __ccgo_fp(Xzcalloc)
  4807. (*Tz_stream)(unsafe.Pointer(strm)).Fopaque = libc.UintptrFromInt32(0)
  4808. }
  4809. if (*Tz_stream)(unsafe.Pointer(strm)).Fzfree == libc.UintptrFromInt32(0) {
  4810. (*Tz_stream)(unsafe.Pointer(strm)).Fzfree = __ccgo_fp(Xzcfree)
  4811. }
  4812. if level == -int32(1) {
  4813. level = int32(6)
  4814. }
  4815. if windowBits < 0 { /* suppress zlib wrapper */
  4816. wrap = 0
  4817. if windowBits < -int32(15) {
  4818. return -int32(2)
  4819. }
  4820. windowBits = -windowBits
  4821. } else {
  4822. if windowBits > int32(15) {
  4823. wrap = int32(2) /* write gzip wrapper instead */
  4824. windowBits -= int32(16)
  4825. }
  4826. }
  4827. if memLevel < int32(1) || memLevel > int32(m_MAX_MEM_LEVEL) || method != int32(m_Z_DEFLATED) || windowBits < int32(8) || windowBits > int32(15) || level < 0 || level > int32(9) || strategy < 0 || strategy > int32(m_Z_FIXED) || windowBits == int32(8) && wrap != int32(1) {
  4828. return -int32(2)
  4829. }
  4830. if windowBits == int32(8) {
  4831. windowBits = int32(9)
  4832. } /* until 256-byte window bug fixed */
  4833. s = (*(*func(*libc.TLS, Tvoidpf, TuInt, TuInt) Tvoidpf)(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(strm)).Fzalloc})))(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fopaque, libc.Uint32FromInt32(libc.Int32FromInt32(1)), uint32(libc.Uint64FromInt64(5952)))
  4834. if s == uintptr(m_Z_NULL) {
  4835. return -int32(4)
  4836. }
  4837. (*Tz_stream)(unsafe.Pointer(strm)).Fstate = s
  4838. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm = strm
  4839. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = int32(m_INIT_STATE) /* to pass state test in deflateReset() */
  4840. (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap = wrap
  4841. (*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead = uintptr(m_Z_NULL)
  4842. (*Tdeflate_state)(unsafe.Pointer(s)).Fw_bits = libc.Uint32FromInt32(windowBits)
  4843. (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size = libc.Uint32FromInt32(int32(1) << (*Tdeflate_state)(unsafe.Pointer(s)).Fw_bits)
  4844. (*Tdeflate_state)(unsafe.Pointer(s)).Fw_mask = (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size - uint32(1)
  4845. (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_bits = libc.Uint32FromInt32(memLevel) + uint32(7)
  4846. (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size = libc.Uint32FromInt32(int32(1) << (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_bits)
  4847. (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_mask = (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size - uint32(1)
  4848. (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_shift = ((*Tdeflate_state)(unsafe.Pointer(s)).Fhash_bits + libc.Uint32FromInt32(m_MIN_MATCH) - libc.Uint32FromInt32(1)) / libc.Uint32FromInt32(m_MIN_MATCH)
  4849. (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow = (*(*func(*libc.TLS, Tvoidpf, TuInt, TuInt) Tvoidpf)(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(strm)).Fzalloc})))(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fopaque, (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size, uint32(libc.Uint64FromInt32(2)*libc.Uint64FromInt64(1)))
  4850. (*Tdeflate_state)(unsafe.Pointer(s)).Fprev = (*(*func(*libc.TLS, Tvoidpf, TuInt, TuInt) Tvoidpf)(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(strm)).Fzalloc})))(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fopaque, (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size, uint32(libc.Uint64FromInt64(2)))
  4851. (*Tdeflate_state)(unsafe.Pointer(s)).Fhead = (*(*func(*libc.TLS, Tvoidpf, TuInt, TuInt) Tvoidpf)(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(strm)).Fzalloc})))(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fopaque, (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size, uint32(libc.Uint64FromInt64(2)))
  4852. (*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water = uint64(0) /* nothing written to s->window yet */
  4853. (*Tdeflate_state)(unsafe.Pointer(s)).Flit_bufsize = libc.Uint32FromInt32(int32(1) << (memLevel + int32(6))) /* 16K elements by default */
  4854. /* We overlay pending_buf and sym_buf. This works since the average size
  4855. * for length/distance pairs over any compressed block is assured to be 31
  4856. * bits or less.
  4857. *
  4858. * Analysis: The longest fixed codes are a length code of 8 bits plus 5
  4859. * extra bits, for lengths 131 to 257. The longest fixed distance codes are
  4860. * 5 bits plus 13 extra bits, for distances 16385 to 32768. The longest
  4861. * possible fixed-codes length/distance pair is then 31 bits total.
  4862. *
  4863. * sym_buf starts one-fourth of the way into pending_buf. So there are
  4864. * three bytes in sym_buf for every four bytes in pending_buf. Each symbol
  4865. * in sym_buf is three bytes -- two for the distance and one for the
  4866. * literal/length. As each symbol is consumed, the pointer to the next
  4867. * sym_buf value to read moves forward three bytes. From that symbol, up to
  4868. * 31 bits are written to pending_buf. The closest the written pending_buf
  4869. * bits gets to the next sym_buf symbol to read is just before the last
  4870. * code is written. At that time, 31*(n - 2) bits have been written, just
  4871. * after 24*(n - 2) bits have been consumed from sym_buf. sym_buf starts at
  4872. * 8*n bits into pending_buf. (Note that the symbol buffer fills when n - 1
  4873. * symbols are written.) The closest the writing gets to what is unread is
  4874. * then n + 14 bits. Here n is lit_bufsize, which is 16384 by default, and
  4875. * can range from 128 to 32768.
  4876. *
  4877. * Therefore, at a minimum, there are 142 bits of space between what is
  4878. * written and what is read in the overlain buffers, so the symbols cannot
  4879. * be overwritten by the compressed data. That space is actually 139 bits,
  4880. * due to the three-bit fixed-code block header.
  4881. *
  4882. * That covers the case where either Z_FIXED is specified, forcing fixed
  4883. * codes, or when the use of fixed codes is chosen, because that choice
  4884. * results in a smaller compressed block than dynamic codes. That latter
  4885. * condition then assures that the above analysis also covers all dynamic
  4886. * blocks. A dynamic-code block will only be chosen to be emitted if it has
  4887. * fewer bits than a fixed-code block would for the same set of symbols.
  4888. * Therefore its average symbol length is assured to be less than 31. So
  4889. * the compressed data for a dynamic block also cannot overwrite the
  4890. * symbols from which it is being constructed.
  4891. */
  4892. (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf = (*(*func(*libc.TLS, Tvoidpf, TuInt, TuInt) Tvoidpf)(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(strm)).Fzalloc})))(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fopaque, (*Tdeflate_state)(unsafe.Pointer(s)).Flit_bufsize, libc.Uint32FromInt32(libc.Int32FromInt32(m_LIT_BUFS)))
  4893. (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf_size = uint64((*Tdeflate_state)(unsafe.Pointer(s)).Flit_bufsize) * uint64(4)
  4894. if (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow == uintptr(m_Z_NULL) || (*Tdeflate_state)(unsafe.Pointer(s)).Fprev == uintptr(m_Z_NULL) || (*Tdeflate_state)(unsafe.Pointer(s)).Fhead == uintptr(m_Z_NULL) || (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf == uintptr(m_Z_NULL) {
  4895. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = int32(m_FINISH_STATE)
  4896. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = Xz_errmsg[libc.Int32FromInt32(2) - -libc.Int32FromInt32(4)]
  4897. XdeflateEnd(tls, strm)
  4898. return -int32(4)
  4899. }
  4900. (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf = (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Flit_bufsize)
  4901. (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_end = ((*Tdeflate_state)(unsafe.Pointer(s)).Flit_bufsize - uint32(1)) * uint32(3)
  4902. /* We avoid equality with lit_bufsize*3 because of wraparound at 64K
  4903. * on 16 bit machines and because stored blocks are restricted to
  4904. * 64K-1 bytes.
  4905. */
  4906. (*Tdeflate_state)(unsafe.Pointer(s)).Flevel = level
  4907. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrategy = strategy
  4908. (*Tdeflate_state)(unsafe.Pointer(s)).Fmethod = libc.Uint8FromInt32(method)
  4909. return XdeflateReset(tls, strm)
  4910. }
  4911. var _my_version = [6]int8{'1', '.', '3', '.', '1'}
  4912. // C documentation
  4913. //
  4914. // /* =========================================================================
  4915. // * Check for a valid deflate stream state. Return 0 if ok, 1 if not.
  4916. // */
  4917. func _deflateStateCheck(tls *libc.TLS, strm Tz_streamp) (r int32) {
  4918. var s uintptr
  4919. _ = s
  4920. if strm == uintptr(m_Z_NULL) || (*Tz_stream)(unsafe.Pointer(strm)).Fzalloc == libc.UintptrFromInt32(0) || (*Tz_stream)(unsafe.Pointer(strm)).Fzfree == libc.UintptrFromInt32(0) {
  4921. return int32(1)
  4922. }
  4923. s = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  4924. if s == uintptr(m_Z_NULL) || (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm != strm || (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus != int32(m_INIT_STATE) && (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus != int32(m_GZIP_STATE) && (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus != int32(m_EXTRA_STATE) && (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus != int32(m_NAME_STATE) && (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus != int32(m_COMMENT_STATE) && (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus != int32(m_HCRC_STATE) && (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus != int32(m_BUSY_STATE) && (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus != int32(m_FINISH_STATE) {
  4925. return int32(1)
  4926. }
  4927. return 0
  4928. }
  4929. // C documentation
  4930. //
  4931. // /* ========================================================================= */
  4932. func XdeflateSetDictionary(tls *libc.TLS, strm Tz_streamp, dictionary uintptr, dictLength TuInt) (r int32) {
  4933. var avail uint32
  4934. var n, str, v1, v3 TuInt
  4935. var next, s uintptr
  4936. var wrap int32
  4937. _, _, _, _, _, _, _, _ = avail, n, next, s, str, wrap, v1, v3
  4938. if _deflateStateCheck(tls, strm) != 0 || dictionary == uintptr(m_Z_NULL) {
  4939. return -int32(2)
  4940. }
  4941. s = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  4942. wrap = (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap
  4943. if wrap == int32(2) || wrap == int32(1) && (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus != int32(m_INIT_STATE) || (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead != 0 {
  4944. return -int32(2)
  4945. }
  4946. /* when using zlib wrappers, compute Adler-32 for provided dictionary */
  4947. if wrap == int32(1) {
  4948. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xadler32(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fadler, dictionary, dictLength)
  4949. }
  4950. (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap = 0 /* avoid computing Adler-32 in read_buf */
  4951. /* if dictionary would fill window, just replace the history */
  4952. if dictLength >= (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size {
  4953. if wrap == 0 { /* already empty otherwise */
  4954. *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size-uint32(1))*2)) = uint16(m_NIL)
  4955. libc.Xmemset(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fhead, 0, uint64((*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size-libc.Uint32FromInt32(1))*uint64(2))
  4956. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart = uint32(0)
  4957. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = 0
  4958. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = uint32(0)
  4959. }
  4960. dictionary += uintptr(dictLength - (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size) /* use the tail */
  4961. dictLength = (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size
  4962. }
  4963. /* insert dictionary into window and hash */
  4964. avail = (*Tz_stream)(unsafe.Pointer(strm)).Favail_in
  4965. next = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in
  4966. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = dictLength
  4967. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = dictionary
  4968. _fill_window(tls, s)
  4969. for (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead >= uint32(m_MIN_MATCH) {
  4970. str = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart
  4971. n = (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead - libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH)-libc.Int32FromInt32(1))
  4972. for {
  4973. (*Tdeflate_state)(unsafe.Pointer(s)).Fins_h = ((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h<<(*Tdeflate_state)(unsafe.Pointer(s)).Fhash_shift ^ uint32(*(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(str+uint32(m_MIN_MATCH)-uint32(1)))))) & (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_mask
  4974. *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fprev + uintptr(str&(*Tdeflate_state)(unsafe.Pointer(s)).Fw_mask)*2)) = *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h)*2))
  4975. *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h)*2)) = uint16(str)
  4976. str++
  4977. goto _2
  4978. _2:
  4979. ;
  4980. n--
  4981. v1 = n
  4982. if !(v1 != 0) {
  4983. break
  4984. }
  4985. }
  4986. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart = str
  4987. (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead = libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH) - libc.Int32FromInt32(1))
  4988. _fill_window(tls, s)
  4989. }
  4990. *(*TuInt)(unsafe.Pointer(s + 172)) += (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead
  4991. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  4992. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead
  4993. (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead = uint32(0)
  4994. v3 = libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH) - libc.Int32FromInt32(1))
  4995. (*Tdeflate_state)(unsafe.Pointer(s)).Fprev_length = v3
  4996. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = v3
  4997. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_available = 0
  4998. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = next
  4999. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = avail
  5000. (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap = wrap
  5001. return m_Z_OK
  5002. }
  5003. // C documentation
  5004. //
  5005. // /* ========================================================================= */
  5006. func XdeflateGetDictionary(tls *libc.TLS, strm Tz_streamp, dictionary uintptr, dictLength uintptr) (r int32) {
  5007. var len1 TuInt
  5008. var s uintptr
  5009. _, _ = len1, s
  5010. if _deflateStateCheck(tls, strm) != 0 {
  5011. return -int32(2)
  5012. }
  5013. s = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  5014. len1 = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart + (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead
  5015. if len1 > (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size {
  5016. len1 = (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size
  5017. }
  5018. if dictionary != uintptr(m_Z_NULL) && len1 != 0 {
  5019. libc.Xmemcpy(tls, dictionary, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow+uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)+uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Flookahead)-uintptr(len1), uint64(len1))
  5020. }
  5021. if dictLength != uintptr(m_Z_NULL) {
  5022. *(*TuInt)(unsafe.Pointer(dictLength)) = len1
  5023. }
  5024. return m_Z_OK
  5025. }
  5026. // C documentation
  5027. //
  5028. // /* ========================================================================= */
  5029. func XdeflateResetKeep(tls *libc.TLS, strm Tz_streamp) (r int32) {
  5030. var s uintptr
  5031. var v1 TuLong
  5032. var v2 int32
  5033. var v3 uint64
  5034. _, _, _, _ = s, v1, v2, v3
  5035. if _deflateStateCheck(tls, strm) != 0 {
  5036. return -int32(2)
  5037. }
  5038. v1 = libc.Uint64FromInt32(0)
  5039. (*Tz_stream)(unsafe.Pointer(strm)).Ftotal_out = v1
  5040. (*Tz_stream)(unsafe.Pointer(strm)).Ftotal_in = v1
  5041. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = uintptr(m_Z_NULL) /* use zfree if we ever allocate msg dynamically */
  5042. (*Tz_stream)(unsafe.Pointer(strm)).Fdata_type = int32(m_Z_UNKNOWN)
  5043. s = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  5044. (*Tdeflate_state)(unsafe.Pointer(s)).Fpending = uint64(0)
  5045. (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_out = (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf
  5046. if (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap < 0 {
  5047. (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap = -(*Tdeflate_state)(unsafe.Pointer(s)).Fwrap /* was made negative by deflate(..., Z_FINISH); */
  5048. }
  5049. if (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap == int32(2) {
  5050. v2 = int32(m_GZIP_STATE)
  5051. } else {
  5052. v2 = int32(m_INIT_STATE)
  5053. }
  5054. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = v2
  5055. if (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap == int32(2) {
  5056. v3 = Xcrc32(tls, uint64(0), uintptr(m_Z_NULL), uint32(0))
  5057. } else {
  5058. v3 = Xadler32(tls, uint64(0), uintptr(m_Z_NULL), uint32(0))
  5059. }
  5060. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = v3
  5061. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = -int32(2)
  5062. x__tr_init(tls, s)
  5063. return m_Z_OK
  5064. }
  5065. // C documentation
  5066. //
  5067. // /* ===========================================================================
  5068. // * Initialize the "longest match" routines for a new zlib stream
  5069. // */
  5070. func _lm_init(tls *libc.TLS, s uintptr) {
  5071. var v1 TuInt
  5072. _ = v1
  5073. (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow_size = libc.Uint64FromInt64(2) * uint64((*Tdeflate_state)(unsafe.Pointer(s)).Fw_size)
  5074. *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size-uint32(1))*2)) = uint16(m_NIL)
  5075. libc.Xmemset(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fhead, 0, uint64((*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size-libc.Uint32FromInt32(1))*uint64(2))
  5076. /* Set the default configuration parameters:
  5077. */
  5078. (*Tdeflate_state)(unsafe.Pointer(s)).Fmax_lazy_match = uint32(_configuration_table[(*Tdeflate_state)(unsafe.Pointer(s)).Flevel].Fmax_lazy)
  5079. (*Tdeflate_state)(unsafe.Pointer(s)).Fgood_match = uint32(_configuration_table[(*Tdeflate_state)(unsafe.Pointer(s)).Flevel].Fgood_length)
  5080. (*Tdeflate_state)(unsafe.Pointer(s)).Fnice_match = libc.Int32FromUint16(_configuration_table[(*Tdeflate_state)(unsafe.Pointer(s)).Flevel].Fnice_length)
  5081. (*Tdeflate_state)(unsafe.Pointer(s)).Fmax_chain_length = uint32(_configuration_table[(*Tdeflate_state)(unsafe.Pointer(s)).Flevel].Fmax_chain)
  5082. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart = uint32(0)
  5083. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = 0
  5084. (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead = uint32(0)
  5085. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = uint32(0)
  5086. v1 = libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH) - libc.Int32FromInt32(1))
  5087. (*Tdeflate_state)(unsafe.Pointer(s)).Fprev_length = v1
  5088. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = v1
  5089. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_available = 0
  5090. (*Tdeflate_state)(unsafe.Pointer(s)).Fins_h = uint32(0)
  5091. }
  5092. // C documentation
  5093. //
  5094. // /* ========================================================================= */
  5095. func XdeflateReset(tls *libc.TLS, strm Tz_streamp) (r int32) {
  5096. var ret int32
  5097. _ = ret
  5098. ret = XdeflateResetKeep(tls, strm)
  5099. if ret == m_Z_OK {
  5100. _lm_init(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fstate)
  5101. }
  5102. return ret
  5103. }
  5104. // C documentation
  5105. //
  5106. // /* ========================================================================= */
  5107. func XdeflateSetHeader(tls *libc.TLS, strm Tz_streamp, head Tgz_headerp) (r int32) {
  5108. if _deflateStateCheck(tls, strm) != 0 || (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fwrap != int32(2) {
  5109. return -int32(2)
  5110. }
  5111. (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fgzhead = head
  5112. return m_Z_OK
  5113. }
  5114. // C documentation
  5115. //
  5116. // /* ========================================================================= */
  5117. func XdeflatePending(tls *libc.TLS, strm Tz_streamp, pending uintptr, bits uintptr) (r int32) {
  5118. if _deflateStateCheck(tls, strm) != 0 {
  5119. return -int32(2)
  5120. }
  5121. if pending != uintptr(m_Z_NULL) {
  5122. *(*uint32)(unsafe.Pointer(pending)) = uint32((*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fpending)
  5123. }
  5124. if bits != uintptr(m_Z_NULL) {
  5125. *(*int32)(unsafe.Pointer(bits)) = (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fbi_valid
  5126. }
  5127. return m_Z_OK
  5128. }
  5129. // C documentation
  5130. //
  5131. // /* ========================================================================= */
  5132. func XdeflatePrime(tls *libc.TLS, strm Tz_streamp, bits int32, value int32) (r int32) {
  5133. var put int32
  5134. var s, p1 uintptr
  5135. _, _, _ = put, s, p1
  5136. if _deflateStateCheck(tls, strm) != 0 {
  5137. return -int32(2)
  5138. }
  5139. s = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  5140. if bits < 0 || bits > int32(16) || (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf < (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_out+uintptr((libc.Int32FromInt32(m_Buf_size)+libc.Int32FromInt32(7))>>libc.Int32FromInt32(3)) {
  5141. return -int32(5)
  5142. }
  5143. for cond := true; cond; cond = bits != 0 {
  5144. put = int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid
  5145. if put > bits {
  5146. put = bits
  5147. }
  5148. p1 = s + 5936
  5149. *(*Tush)(unsafe.Pointer(p1)) = Tush(int32(*(*Tush)(unsafe.Pointer(p1))) | libc.Int32FromUint16(libc.Uint16FromInt32(value&(libc.Int32FromInt32(1)<<put-libc.Int32FromInt32(1))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)))
  5150. *(*int32)(unsafe.Pointer(s + 5940)) += put
  5151. x__tr_flush_bits(tls, s)
  5152. value >>= put
  5153. bits -= put
  5154. }
  5155. return m_Z_OK
  5156. }
  5157. // C documentation
  5158. //
  5159. // /* ========================================================================= */
  5160. func XdeflateParams(tls *libc.TLS, strm Tz_streamp, level int32, strategy int32) (r int32) {
  5161. var err int32
  5162. var func1 Tcompress_func
  5163. var s uintptr
  5164. _, _, _ = err, func1, s
  5165. if _deflateStateCheck(tls, strm) != 0 {
  5166. return -int32(2)
  5167. }
  5168. s = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  5169. if level == -int32(1) {
  5170. level = int32(6)
  5171. }
  5172. if level < 0 || level > int32(9) || strategy < 0 || strategy > int32(m_Z_FIXED) {
  5173. return -int32(2)
  5174. }
  5175. func1 = _configuration_table[(*Tdeflate_state)(unsafe.Pointer(s)).Flevel].Ffunc1
  5176. if (strategy != (*Tdeflate_state)(unsafe.Pointer(s)).Fstrategy || func1 != _configuration_table[level].Ffunc1) && (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush != -int32(2) {
  5177. /* Flush the last buffer: */
  5178. err = Xdeflate(tls, strm, int32(m_Z_BLOCK))
  5179. if err == -int32(2) {
  5180. return err
  5181. }
  5182. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in != 0 || libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start+libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Flookahead) != 0 {
  5183. return -int32(5)
  5184. }
  5185. }
  5186. if (*Tdeflate_state)(unsafe.Pointer(s)).Flevel != level {
  5187. if (*Tdeflate_state)(unsafe.Pointer(s)).Flevel == 0 && (*Tdeflate_state)(unsafe.Pointer(s)).Fmatches != uint32(0) {
  5188. if (*Tdeflate_state)(unsafe.Pointer(s)).Fmatches == uint32(1) {
  5189. _slide_hash(tls, s)
  5190. } else {
  5191. *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size-uint32(1))*2)) = uint16(m_NIL)
  5192. libc.Xmemset(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fhead, 0, uint64((*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size-libc.Uint32FromInt32(1))*uint64(2))
  5193. }
  5194. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatches = uint32(0)
  5195. }
  5196. (*Tdeflate_state)(unsafe.Pointer(s)).Flevel = level
  5197. (*Tdeflate_state)(unsafe.Pointer(s)).Fmax_lazy_match = uint32(_configuration_table[level].Fmax_lazy)
  5198. (*Tdeflate_state)(unsafe.Pointer(s)).Fgood_match = uint32(_configuration_table[level].Fgood_length)
  5199. (*Tdeflate_state)(unsafe.Pointer(s)).Fnice_match = libc.Int32FromUint16(_configuration_table[level].Fnice_length)
  5200. (*Tdeflate_state)(unsafe.Pointer(s)).Fmax_chain_length = uint32(_configuration_table[level].Fmax_chain)
  5201. }
  5202. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrategy = strategy
  5203. return m_Z_OK
  5204. }
  5205. // C documentation
  5206. //
  5207. // /* ========================================================================= */
  5208. func XdeflateTune(tls *libc.TLS, strm Tz_streamp, good_length int32, max_lazy int32, nice_length int32, max_chain int32) (r int32) {
  5209. var s uintptr
  5210. _ = s
  5211. if _deflateStateCheck(tls, strm) != 0 {
  5212. return -int32(2)
  5213. }
  5214. s = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  5215. (*Tdeflate_state)(unsafe.Pointer(s)).Fgood_match = libc.Uint32FromInt32(good_length)
  5216. (*Tdeflate_state)(unsafe.Pointer(s)).Fmax_lazy_match = libc.Uint32FromInt32(max_lazy)
  5217. (*Tdeflate_state)(unsafe.Pointer(s)).Fnice_match = nice_length
  5218. (*Tdeflate_state)(unsafe.Pointer(s)).Fmax_chain_length = libc.Uint32FromInt32(max_chain)
  5219. return m_Z_OK
  5220. }
  5221. // C documentation
  5222. //
  5223. // /* =========================================================================
  5224. // * For the default windowBits of 15 and memLevel of 8, this function returns a
  5225. // * close to exact, as well as small, upper bound on the compressed size. This
  5226. // * is an expansion of ~0.03%, plus a small constant.
  5227. // *
  5228. // * For any setting other than those defaults for windowBits and memLevel, one
  5229. // * of two worst case bounds is returned. This is at most an expansion of ~4% or
  5230. // * ~13%, plus a small constant.
  5231. // *
  5232. // * Both the 0.03% and 4% derive from the overhead of stored blocks. The first
  5233. // * one is for stored blocks of 16383 bytes (memLevel == 8), whereas the second
  5234. // * is for stored blocks of 127 bytes (the worst case memLevel == 1). The
  5235. // * expansion results from five bytes of header for each stored block.
  5236. // *
  5237. // * The larger expansion of 13% results from a window size less than or equal to
  5238. // * the symbols buffer size (windowBits <= memLevel + 7). In that case some of
  5239. // * the data being compressed may have slid out of the sliding window, impeding
  5240. // * a stored block from being emitted. Then the only choice is a fixed or
  5241. // * dynamic block, where a fixed block limits the maximum expansion to 9 bits
  5242. // * per 8-bit byte, plus 10 bits for every block. The smallest block size for
  5243. // * which this can occur is 255 (memLevel == 2).
  5244. // *
  5245. // * Shifts are used to approximate divisions, for speed.
  5246. // */
  5247. func XdeflateBound(tls *libc.TLS, strm Tz_streamp, sourceLen TuLong) (r TuLong) {
  5248. var fixedlen, storelen, wraplen TuLong
  5249. var s, str, v3, v5 uintptr
  5250. var v1, v7 uint64
  5251. var v2 int32
  5252. _, _, _, _, _, _, _, _, _, _ = fixedlen, s, storelen, str, wraplen, v1, v2, v3, v5, v7
  5253. /* upper bound for fixed blocks with 9-bit literals and length 255
  5254. (memLevel == 2, which is the lowest that may not use stored blocks) --
  5255. ~13% overhead plus a small constant */
  5256. fixedlen = sourceLen + sourceLen>>libc.Int32FromInt32(3) + sourceLen>>libc.Int32FromInt32(8) + sourceLen>>libc.Int32FromInt32(9) + uint64(4)
  5257. /* upper bound for stored blocks with length 127 (memLevel == 1) --
  5258. ~4% overhead plus a small constant */
  5259. storelen = sourceLen + sourceLen>>libc.Int32FromInt32(5) + sourceLen>>libc.Int32FromInt32(7) + sourceLen>>libc.Int32FromInt32(11) + uint64(7)
  5260. /* if can't get parameters, return larger bound plus a zlib wrapper */
  5261. if _deflateStateCheck(tls, strm) != 0 {
  5262. if fixedlen > storelen {
  5263. v1 = fixedlen
  5264. } else {
  5265. v1 = storelen
  5266. }
  5267. return v1 + uint64(6)
  5268. }
  5269. /* compute wrapper length */
  5270. s = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  5271. switch (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap {
  5272. case 0: /* raw deflate */
  5273. wraplen = uint64(0)
  5274. case int32(1): /* zlib wrapper */
  5275. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart != 0 {
  5276. v2 = int32(4)
  5277. } else {
  5278. v2 = 0
  5279. }
  5280. wraplen = libc.Uint64FromInt32(int32(6) + v2)
  5281. case int32(2): /* gzip wrapper */
  5282. wraplen = uint64(18)
  5283. if (*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead != uintptr(m_Z_NULL) {
  5284. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra != uintptr(m_Z_NULL) {
  5285. wraplen += uint64(uint32(2) + (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra_len)
  5286. }
  5287. str = (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fname
  5288. if str != uintptr(m_Z_NULL) {
  5289. for {
  5290. wraplen++
  5291. goto _4
  5292. _4:
  5293. ;
  5294. v3 = str
  5295. str++
  5296. if !(*(*TBytef)(unsafe.Pointer(v3)) != 0) {
  5297. break
  5298. }
  5299. }
  5300. }
  5301. str = (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fcomment
  5302. if str != uintptr(m_Z_NULL) {
  5303. for {
  5304. wraplen++
  5305. goto _6
  5306. _6:
  5307. ;
  5308. v5 = str
  5309. str++
  5310. if !(*(*TBytef)(unsafe.Pointer(v5)) != 0) {
  5311. break
  5312. }
  5313. }
  5314. }
  5315. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 {
  5316. wraplen += uint64(2)
  5317. }
  5318. }
  5319. default: /* for compiler happiness */
  5320. wraplen = uint64(6)
  5321. }
  5322. /* if not default parameters, return one of the conservative bounds */
  5323. if (*Tdeflate_state)(unsafe.Pointer(s)).Fw_bits != uint32(15) || (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_bits != libc.Uint32FromInt32(libc.Int32FromInt32(8)+libc.Int32FromInt32(7)) {
  5324. if (*Tdeflate_state)(unsafe.Pointer(s)).Fw_bits <= (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_bits && (*Tdeflate_state)(unsafe.Pointer(s)).Flevel != 0 {
  5325. v7 = fixedlen
  5326. } else {
  5327. v7 = storelen
  5328. }
  5329. return v7 + wraplen
  5330. }
  5331. /* default settings: return tight bound for that case -- ~0.03% overhead
  5332. plus a small constant */
  5333. return sourceLen + sourceLen>>libc.Int32FromInt32(12) + sourceLen>>libc.Int32FromInt32(14) + sourceLen>>libc.Int32FromInt32(25) + uint64(13) - uint64(6) + wraplen
  5334. }
  5335. // C documentation
  5336. //
  5337. // /* =========================================================================
  5338. // * Put a short in the pending buffer. The 16-bit value is put in MSB order.
  5339. // * IN assertion: the stream state is correct and there is enough room in
  5340. // * pending_buf.
  5341. // */
  5342. func _putShortMSB(tls *libc.TLS, s uintptr, b TuInt) {
  5343. var v1, v3 Tulg
  5344. var v2, v4 uintptr
  5345. _, _, _, _ = v1, v2, v3, v4
  5346. v2 = s + 40
  5347. v1 = *(*Tulg)(unsafe.Pointer(v2))
  5348. *(*Tulg)(unsafe.Pointer(v2))++
  5349. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v1))) = uint8(b >> libc.Int32FromInt32(8))
  5350. v4 = s + 40
  5351. v3 = *(*Tulg)(unsafe.Pointer(v4))
  5352. *(*Tulg)(unsafe.Pointer(v4))++
  5353. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v3))) = uint8(b & libc.Uint32FromInt32(0xff))
  5354. }
  5355. // C documentation
  5356. //
  5357. // /* =========================================================================
  5358. // * Flush as much pending output as possible. All deflate() output, except for
  5359. // * some deflate_stored() output, goes through this function so some
  5360. // * applications may wish to modify it to avoid allocating a large
  5361. // * strm->next_out buffer and copying into it. (See also read_buf()).
  5362. // */
  5363. func _flush_pending(tls *libc.TLS, strm Tz_streamp) {
  5364. var len1 uint32
  5365. var s uintptr
  5366. _, _ = len1, s
  5367. s = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  5368. x__tr_flush_bits(tls, s)
  5369. len1 = uint32((*Tdeflate_state)(unsafe.Pointer(s)).Fpending)
  5370. if len1 > (*Tz_stream)(unsafe.Pointer(strm)).Favail_out {
  5371. len1 = (*Tz_stream)(unsafe.Pointer(strm)).Favail_out
  5372. }
  5373. if len1 == uint32(0) {
  5374. return
  5375. }
  5376. libc.Xmemcpy(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out, (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_out, uint64(len1))
  5377. *(*uintptr)(unsafe.Pointer(strm + 24)) += uintptr(len1)
  5378. *(*uintptr)(unsafe.Pointer(s + 32)) += uintptr(len1)
  5379. *(*TuLong)(unsafe.Pointer(strm + 40)) += uint64(len1)
  5380. *(*TuInt)(unsafe.Pointer(strm + 32)) -= len1
  5381. *(*Tulg)(unsafe.Pointer(s + 40)) -= uint64(len1)
  5382. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending == uint64(0) {
  5383. (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_out = (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf
  5384. }
  5385. }
  5386. /* ===========================================================================
  5387. * Update the header CRC with the bytes s->pending_buf[beg..s->pending - 1].
  5388. */
  5389. // C documentation
  5390. //
  5391. // /* ========================================================================= */
  5392. func Xdeflate(tls *libc.TLS, strm Tz_streamp, flush int32) (r int32) {
  5393. var beg, beg1, beg2, v10, v12, v14, v16, v18, v20, v24, v26, v33, v35, v37, v39, v4, v41, v45, v47, v49, v51, v53, v55, v57, v59, v6, v61, v66, v68, v70, v72, v74, v76, v78, v8, v80 Tulg
  5394. var bstate Tblock_state
  5395. var copy1, header, left, level_flags TuInt
  5396. var old_flush, val, val1, v1, v2, v22, v23, v28, v29, v30, v31, v32, v43, v44, v63, v64, v65, v82 int32
  5397. var s, v11, v13, v15, v17, v19, v21, v25, v27, v34, v36, v38, v40, v42, v46, v48, v5, v50, v52, v54, v56, v58, v60, v62, v67, v69, v7, v71, v73, v75, v77, v79, v81, v9 uintptr
  5398. var v3 bool
  5399. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = beg, beg1, beg2, bstate, copy1, header, left, level_flags, old_flush, s, val, val1, v1, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v2, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v3, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v4, v40, v41, v42, v43, v44, v45, v46, v47, v48, v49, v5, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v6, v60, v61, v62, v63, v64, v65, v66, v67, v68, v69, v7, v70, v71, v72, v73, v74, v75, v76, v77, v78, v79, v8, v80, v81, v82, v9
  5400. if _deflateStateCheck(tls, strm) != 0 || flush > int32(m_Z_BLOCK) || flush < 0 {
  5401. return -int32(2)
  5402. }
  5403. s = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  5404. if (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out == uintptr(m_Z_NULL) || (*Tz_stream)(unsafe.Pointer(strm)).Favail_in != uint32(0) && (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in == uintptr(m_Z_NULL) || (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus == int32(m_FINISH_STATE) && flush != int32(m_Z_FINISH) {
  5405. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = Xz_errmsg[libc.Int32FromInt32(2) - -libc.Int32FromInt32(2)]
  5406. return -libc.Int32FromInt32(2)
  5407. }
  5408. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_out == uint32(0) {
  5409. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = Xz_errmsg[libc.Int32FromInt32(2) - -libc.Int32FromInt32(5)]
  5410. return -libc.Int32FromInt32(5)
  5411. }
  5412. old_flush = (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush
  5413. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = flush
  5414. /* Flush as much pending output as possible */
  5415. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending != uint64(0) {
  5416. _flush_pending(tls, strm)
  5417. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_out == uint32(0) {
  5418. /* Since avail_out is 0, deflate will be called again with
  5419. * more output space, but possibly with both pending and
  5420. * avail_in equal to zero. There won't be anything to do,
  5421. * but this is not an error situation so make sure we
  5422. * return OK instead of BUF_ERROR at next call of deflate:
  5423. */
  5424. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = -int32(1)
  5425. return m_Z_OK
  5426. }
  5427. /* Make sure there is something to do and avoid duplicate consecutive
  5428. * flushes. For repeated and useless calls with Z_FINISH, we keep
  5429. * returning Z_STREAM_END instead of Z_BUF_ERROR.
  5430. */
  5431. } else {
  5432. if v3 = (*Tz_stream)(unsafe.Pointer(strm)).Favail_in == uint32(0); v3 {
  5433. if flush > int32(4) {
  5434. v1 = int32(9)
  5435. } else {
  5436. v1 = 0
  5437. }
  5438. if old_flush > int32(4) {
  5439. v2 = int32(9)
  5440. } else {
  5441. v2 = 0
  5442. }
  5443. }
  5444. if v3 && flush*int32(2)-v1 <= old_flush*int32(2)-v2 && flush != int32(m_Z_FINISH) {
  5445. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = Xz_errmsg[libc.Int32FromInt32(2) - -libc.Int32FromInt32(5)]
  5446. return -libc.Int32FromInt32(5)
  5447. }
  5448. }
  5449. /* User must not provide more input after the first FINISH: */
  5450. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus == int32(m_FINISH_STATE) && (*Tz_stream)(unsafe.Pointer(strm)).Favail_in != uint32(0) {
  5451. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = Xz_errmsg[libc.Int32FromInt32(2) - -libc.Int32FromInt32(5)]
  5452. return -libc.Int32FromInt32(5)
  5453. }
  5454. /* Write the header */
  5455. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus == int32(m_INIT_STATE) && (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap == 0 {
  5456. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = int32(m_BUSY_STATE)
  5457. }
  5458. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus == int32(m_INIT_STATE) {
  5459. /* zlib header */
  5460. header = (uint32(m_Z_DEFLATED) + ((*Tdeflate_state)(unsafe.Pointer(s)).Fw_bits-uint32(8))<<int32(4)) << int32(8)
  5461. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstrategy >= int32(m_Z_HUFFMAN_ONLY) || (*Tdeflate_state)(unsafe.Pointer(s)).Flevel < int32(2) {
  5462. level_flags = uint32(0)
  5463. } else {
  5464. if (*Tdeflate_state)(unsafe.Pointer(s)).Flevel < int32(6) {
  5465. level_flags = uint32(1)
  5466. } else {
  5467. if (*Tdeflate_state)(unsafe.Pointer(s)).Flevel == int32(6) {
  5468. level_flags = uint32(2)
  5469. } else {
  5470. level_flags = uint32(3)
  5471. }
  5472. }
  5473. }
  5474. header |= level_flags << libc.Int32FromInt32(6)
  5475. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart != uint32(0) {
  5476. header |= uint32(m_PRESET_DICT1)
  5477. }
  5478. header += uint32(31) - header%uint32(31)
  5479. _putShortMSB(tls, s, header)
  5480. /* Save the adler32 of the preset dictionary: */
  5481. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart != uint32(0) {
  5482. _putShortMSB(tls, s, uint32((*Tz_stream)(unsafe.Pointer(strm)).Fadler>>libc.Int32FromInt32(16)))
  5483. _putShortMSB(tls, s, uint32((*Tz_stream)(unsafe.Pointer(strm)).Fadler&libc.Uint64FromInt32(0xffff)))
  5484. }
  5485. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xadler32(tls, uint64(0), uintptr(m_Z_NULL), uint32(0))
  5486. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = int32(m_BUSY_STATE)
  5487. /* Compression must start with an empty pending buffer */
  5488. _flush_pending(tls, strm)
  5489. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending != uint64(0) {
  5490. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = -int32(1)
  5491. return m_Z_OK
  5492. }
  5493. }
  5494. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus == int32(m_GZIP_STATE) {
  5495. /* gzip header */
  5496. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, uint64(0), uintptr(m_Z_NULL), uint32(0))
  5497. v5 = s + 40
  5498. v4 = *(*Tulg)(unsafe.Pointer(v5))
  5499. *(*Tulg)(unsafe.Pointer(v5))++
  5500. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v4))) = libc.Uint8FromInt32(libc.Int32FromInt32(31))
  5501. v7 = s + 40
  5502. v6 = *(*Tulg)(unsafe.Pointer(v7))
  5503. *(*Tulg)(unsafe.Pointer(v7))++
  5504. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v6))) = libc.Uint8FromInt32(libc.Int32FromInt32(139))
  5505. v9 = s + 40
  5506. v8 = *(*Tulg)(unsafe.Pointer(v9))
  5507. *(*Tulg)(unsafe.Pointer(v9))++
  5508. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v8))) = libc.Uint8FromInt32(libc.Int32FromInt32(8))
  5509. if (*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead == uintptr(m_Z_NULL) {
  5510. v11 = s + 40
  5511. v10 = *(*Tulg)(unsafe.Pointer(v11))
  5512. *(*Tulg)(unsafe.Pointer(v11))++
  5513. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v10))) = libc.Uint8FromInt32(libc.Int32FromInt32(0))
  5514. v13 = s + 40
  5515. v12 = *(*Tulg)(unsafe.Pointer(v13))
  5516. *(*Tulg)(unsafe.Pointer(v13))++
  5517. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v12))) = libc.Uint8FromInt32(libc.Int32FromInt32(0))
  5518. v15 = s + 40
  5519. v14 = *(*Tulg)(unsafe.Pointer(v15))
  5520. *(*Tulg)(unsafe.Pointer(v15))++
  5521. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v14))) = libc.Uint8FromInt32(libc.Int32FromInt32(0))
  5522. v17 = s + 40
  5523. v16 = *(*Tulg)(unsafe.Pointer(v17))
  5524. *(*Tulg)(unsafe.Pointer(v17))++
  5525. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v16))) = libc.Uint8FromInt32(libc.Int32FromInt32(0))
  5526. v19 = s + 40
  5527. v18 = *(*Tulg)(unsafe.Pointer(v19))
  5528. *(*Tulg)(unsafe.Pointer(v19))++
  5529. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v18))) = libc.Uint8FromInt32(libc.Int32FromInt32(0))
  5530. v21 = s + 40
  5531. v20 = *(*Tulg)(unsafe.Pointer(v21))
  5532. *(*Tulg)(unsafe.Pointer(v21))++
  5533. if (*Tdeflate_state)(unsafe.Pointer(s)).Flevel == int32(9) {
  5534. v22 = int32(2)
  5535. } else {
  5536. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstrategy >= int32(m_Z_HUFFMAN_ONLY) || (*Tdeflate_state)(unsafe.Pointer(s)).Flevel < int32(2) {
  5537. v23 = int32(4)
  5538. } else {
  5539. v23 = 0
  5540. }
  5541. v22 = v23
  5542. }
  5543. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v20))) = libc.Uint8FromInt32(v22)
  5544. v25 = s + 40
  5545. v24 = *(*Tulg)(unsafe.Pointer(v25))
  5546. *(*Tulg)(unsafe.Pointer(v25))++
  5547. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v24))) = libc.Uint8FromInt32(libc.Int32FromInt32(m_OS_CODE))
  5548. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = int32(m_BUSY_STATE)
  5549. /* Compression must start with an empty pending buffer */
  5550. _flush_pending(tls, strm)
  5551. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending != uint64(0) {
  5552. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = -int32(1)
  5553. return m_Z_OK
  5554. }
  5555. } else {
  5556. v27 = s + 40
  5557. v26 = *(*Tulg)(unsafe.Pointer(v27))
  5558. *(*Tulg)(unsafe.Pointer(v27))++
  5559. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Ftext != 0 {
  5560. v28 = int32(1)
  5561. } else {
  5562. v28 = 0
  5563. }
  5564. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 {
  5565. v29 = int32(2)
  5566. } else {
  5567. v29 = 0
  5568. }
  5569. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra == uintptr(m_Z_NULL) {
  5570. v30 = 0
  5571. } else {
  5572. v30 = int32(4)
  5573. }
  5574. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fname == uintptr(m_Z_NULL) {
  5575. v31 = 0
  5576. } else {
  5577. v31 = int32(8)
  5578. }
  5579. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fcomment == uintptr(m_Z_NULL) {
  5580. v32 = 0
  5581. } else {
  5582. v32 = int32(16)
  5583. }
  5584. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v26))) = libc.Uint8FromInt32(v28 + v29 + v30 + v31 + v32)
  5585. v34 = s + 40
  5586. v33 = *(*Tulg)(unsafe.Pointer(v34))
  5587. *(*Tulg)(unsafe.Pointer(v34))++
  5588. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v33))) = uint8((*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Ftime & libc.Uint64FromInt32(0xff))
  5589. v36 = s + 40
  5590. v35 = *(*Tulg)(unsafe.Pointer(v36))
  5591. *(*Tulg)(unsafe.Pointer(v36))++
  5592. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v35))) = uint8((*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Ftime >> libc.Int32FromInt32(8) & libc.Uint64FromInt32(0xff))
  5593. v38 = s + 40
  5594. v37 = *(*Tulg)(unsafe.Pointer(v38))
  5595. *(*Tulg)(unsafe.Pointer(v38))++
  5596. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v37))) = uint8((*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Ftime >> libc.Int32FromInt32(16) & libc.Uint64FromInt32(0xff))
  5597. v40 = s + 40
  5598. v39 = *(*Tulg)(unsafe.Pointer(v40))
  5599. *(*Tulg)(unsafe.Pointer(v40))++
  5600. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v39))) = uint8((*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Ftime >> libc.Int32FromInt32(24) & libc.Uint64FromInt32(0xff))
  5601. v42 = s + 40
  5602. v41 = *(*Tulg)(unsafe.Pointer(v42))
  5603. *(*Tulg)(unsafe.Pointer(v42))++
  5604. if (*Tdeflate_state)(unsafe.Pointer(s)).Flevel == int32(9) {
  5605. v43 = int32(2)
  5606. } else {
  5607. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstrategy >= int32(m_Z_HUFFMAN_ONLY) || (*Tdeflate_state)(unsafe.Pointer(s)).Flevel < int32(2) {
  5608. v44 = int32(4)
  5609. } else {
  5610. v44 = 0
  5611. }
  5612. v43 = v44
  5613. }
  5614. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v41))) = libc.Uint8FromInt32(v43)
  5615. v46 = s + 40
  5616. v45 = *(*Tulg)(unsafe.Pointer(v46))
  5617. *(*Tulg)(unsafe.Pointer(v46))++
  5618. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v45))) = libc.Uint8FromInt32((*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fos & libc.Int32FromInt32(0xff))
  5619. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra != uintptr(m_Z_NULL) {
  5620. v48 = s + 40
  5621. v47 = *(*Tulg)(unsafe.Pointer(v48))
  5622. *(*Tulg)(unsafe.Pointer(v48))++
  5623. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v47))) = uint8((*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra_len & libc.Uint32FromInt32(0xff))
  5624. v50 = s + 40
  5625. v49 = *(*Tulg)(unsafe.Pointer(v50))
  5626. *(*Tulg)(unsafe.Pointer(v50))++
  5627. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v49))) = uint8((*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra_len >> libc.Int32FromInt32(8) & libc.Uint32FromInt32(0xff))
  5628. }
  5629. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 {
  5630. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fadler, (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf, uint32((*Tdeflate_state)(unsafe.Pointer(s)).Fpending))
  5631. }
  5632. (*Tdeflate_state)(unsafe.Pointer(s)).Fgzindex = uint64(0)
  5633. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = int32(m_EXTRA_STATE)
  5634. }
  5635. }
  5636. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus == int32(m_EXTRA_STATE) {
  5637. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra != uintptr(m_Z_NULL) {
  5638. beg = (*Tdeflate_state)(unsafe.Pointer(s)).Fpending /* start of bytes to update crc */
  5639. left = uint32(uint64((*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra_len&libc.Uint32FromInt32(0xffff)) - (*Tdeflate_state)(unsafe.Pointer(s)).Fgzindex)
  5640. for (*Tdeflate_state)(unsafe.Pointer(s)).Fpending+uint64(left) > (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf_size {
  5641. copy1 = uint32((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf_size - (*Tdeflate_state)(unsafe.Pointer(s)).Fpending)
  5642. libc.Xmemcpy(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf+uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fpending), (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra+uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fgzindex), uint64(copy1))
  5643. (*Tdeflate_state)(unsafe.Pointer(s)).Fpending = (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf_size
  5644. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 && (*Tdeflate_state)(unsafe.Pointer(s)).Fpending > beg {
  5645. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fadler, (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf+uintptr(beg), uint32((*Tdeflate_state)(unsafe.Pointer(s)).Fpending-beg))
  5646. }
  5647. *(*Tulg)(unsafe.Pointer(s + 64)) += uint64(copy1)
  5648. _flush_pending(tls, strm)
  5649. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending != uint64(0) {
  5650. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = -int32(1)
  5651. return m_Z_OK
  5652. }
  5653. beg = uint64(0)
  5654. left -= copy1
  5655. }
  5656. libc.Xmemcpy(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf+uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fpending), (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra+uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fgzindex), uint64(left))
  5657. *(*Tulg)(unsafe.Pointer(s + 40)) += uint64(left)
  5658. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 && (*Tdeflate_state)(unsafe.Pointer(s)).Fpending > beg {
  5659. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fadler, (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf+uintptr(beg), uint32((*Tdeflate_state)(unsafe.Pointer(s)).Fpending-beg))
  5660. }
  5661. (*Tdeflate_state)(unsafe.Pointer(s)).Fgzindex = uint64(0)
  5662. }
  5663. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = int32(m_NAME_STATE)
  5664. }
  5665. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus == int32(m_NAME_STATE) {
  5666. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fname != uintptr(m_Z_NULL) {
  5667. beg1 = (*Tdeflate_state)(unsafe.Pointer(s)).Fpending
  5668. for cond := true; cond; cond = val != 0 {
  5669. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending == (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf_size {
  5670. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 && (*Tdeflate_state)(unsafe.Pointer(s)).Fpending > beg1 {
  5671. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fadler, (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf+uintptr(beg1), uint32((*Tdeflate_state)(unsafe.Pointer(s)).Fpending-beg1))
  5672. }
  5673. _flush_pending(tls, strm)
  5674. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending != uint64(0) {
  5675. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = -int32(1)
  5676. return m_Z_OK
  5677. }
  5678. beg1 = uint64(0)
  5679. }
  5680. v52 = s + 64
  5681. v51 = *(*Tulg)(unsafe.Pointer(v52))
  5682. *(*Tulg)(unsafe.Pointer(v52))++
  5683. val = libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer((*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fname + uintptr(v51))))
  5684. v54 = s + 40
  5685. v53 = *(*Tulg)(unsafe.Pointer(v54))
  5686. *(*Tulg)(unsafe.Pointer(v54))++
  5687. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v53))) = libc.Uint8FromInt32(val)
  5688. }
  5689. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 && (*Tdeflate_state)(unsafe.Pointer(s)).Fpending > beg1 {
  5690. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fadler, (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf+uintptr(beg1), uint32((*Tdeflate_state)(unsafe.Pointer(s)).Fpending-beg1))
  5691. }
  5692. (*Tdeflate_state)(unsafe.Pointer(s)).Fgzindex = uint64(0)
  5693. }
  5694. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = int32(m_COMMENT_STATE)
  5695. }
  5696. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus == int32(m_COMMENT_STATE) {
  5697. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fcomment != uintptr(m_Z_NULL) {
  5698. beg2 = (*Tdeflate_state)(unsafe.Pointer(s)).Fpending
  5699. for cond := true; cond; cond = val1 != 0 {
  5700. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending == (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf_size {
  5701. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 && (*Tdeflate_state)(unsafe.Pointer(s)).Fpending > beg2 {
  5702. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fadler, (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf+uintptr(beg2), uint32((*Tdeflate_state)(unsafe.Pointer(s)).Fpending-beg2))
  5703. }
  5704. _flush_pending(tls, strm)
  5705. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending != uint64(0) {
  5706. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = -int32(1)
  5707. return m_Z_OK
  5708. }
  5709. beg2 = uint64(0)
  5710. }
  5711. v56 = s + 64
  5712. v55 = *(*Tulg)(unsafe.Pointer(v56))
  5713. *(*Tulg)(unsafe.Pointer(v56))++
  5714. val1 = libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer((*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fcomment + uintptr(v55))))
  5715. v58 = s + 40
  5716. v57 = *(*Tulg)(unsafe.Pointer(v58))
  5717. *(*Tulg)(unsafe.Pointer(v58))++
  5718. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v57))) = libc.Uint8FromInt32(val1)
  5719. }
  5720. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 && (*Tdeflate_state)(unsafe.Pointer(s)).Fpending > beg2 {
  5721. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fadler, (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf+uintptr(beg2), uint32((*Tdeflate_state)(unsafe.Pointer(s)).Fpending-beg2))
  5722. }
  5723. }
  5724. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = int32(m_HCRC_STATE)
  5725. }
  5726. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus == int32(m_HCRC_STATE) {
  5727. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 {
  5728. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending+uint64(2) > (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf_size {
  5729. _flush_pending(tls, strm)
  5730. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending != uint64(0) {
  5731. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = -int32(1)
  5732. return m_Z_OK
  5733. }
  5734. }
  5735. v60 = s + 40
  5736. v59 = *(*Tulg)(unsafe.Pointer(v60))
  5737. *(*Tulg)(unsafe.Pointer(v60))++
  5738. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v59))) = uint8((*Tz_stream)(unsafe.Pointer(strm)).Fadler & libc.Uint64FromInt32(0xff))
  5739. v62 = s + 40
  5740. v61 = *(*Tulg)(unsafe.Pointer(v62))
  5741. *(*Tulg)(unsafe.Pointer(v62))++
  5742. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v61))) = uint8((*Tz_stream)(unsafe.Pointer(strm)).Fadler >> libc.Int32FromInt32(8) & libc.Uint64FromInt32(0xff))
  5743. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, uint64(0), uintptr(m_Z_NULL), uint32(0))
  5744. }
  5745. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = int32(m_BUSY_STATE)
  5746. /* Compression must start with an empty pending buffer */
  5747. _flush_pending(tls, strm)
  5748. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending != uint64(0) {
  5749. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = -int32(1)
  5750. return m_Z_OK
  5751. }
  5752. }
  5753. /* Start a new block or continue the current one.
  5754. */
  5755. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in != uint32(0) || (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead != uint32(0) || flush != m_Z_NO_FLUSH && (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus != int32(m_FINISH_STATE) {
  5756. if (*Tdeflate_state)(unsafe.Pointer(s)).Flevel == 0 {
  5757. v63 = _deflate_stored(tls, s, flush)
  5758. } else {
  5759. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstrategy == int32(m_Z_HUFFMAN_ONLY) {
  5760. v64 = _deflate_huff(tls, s, flush)
  5761. } else {
  5762. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstrategy == int32(m_Z_RLE) {
  5763. v65 = _deflate_rle(tls, s, flush)
  5764. } else {
  5765. v65 = (*(*func(*libc.TLS, uintptr, int32) Tblock_state)(unsafe.Pointer(&struct{ uintptr }{_configuration_table[(*Tdeflate_state)(unsafe.Pointer(s)).Flevel].Ffunc1})))(tls, s, flush)
  5766. }
  5767. v64 = v65
  5768. }
  5769. v63 = v64
  5770. }
  5771. bstate = v63
  5772. if bstate == int32(_finish_started) || bstate == int32(_finish_done) {
  5773. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = int32(m_FINISH_STATE)
  5774. }
  5775. if bstate == int32(_need_more) || bstate == int32(_finish_started) {
  5776. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_out == uint32(0) {
  5777. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = -int32(1) /* avoid BUF_ERROR next call, see above */
  5778. }
  5779. return m_Z_OK
  5780. /* If flush != Z_NO_FLUSH && avail_out == 0, the next call
  5781. * of deflate should use the same flush parameter to make sure
  5782. * that the flush is complete. So we don't have to output an
  5783. * empty block here, this will be done at next call. This also
  5784. * ensures that for a very small output buffer, we emit at most
  5785. * one empty block.
  5786. */
  5787. }
  5788. if bstate == int32(_block_done) {
  5789. if flush == int32(m_Z_PARTIAL_FLUSH) {
  5790. x__tr_align(tls, s)
  5791. } else {
  5792. if flush != int32(m_Z_BLOCK) { /* FULL_FLUSH or SYNC_FLUSH */
  5793. x__tr_stored_block(tls, s, libc.UintptrFromInt32(0), uint64(0), 0)
  5794. /* For a full flush, this empty block will be recognized
  5795. * as a special marker by inflate_sync().
  5796. */
  5797. if flush == int32(m_Z_FULL_FLUSH) {
  5798. *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size-uint32(1))*2)) = uint16(m_NIL)
  5799. libc.Xmemset(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fhead, 0, uint64((*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size-libc.Uint32FromInt32(1))*uint64(2)) /* forget history */
  5800. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead == uint32(0) {
  5801. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart = uint32(0)
  5802. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = 0
  5803. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = uint32(0)
  5804. }
  5805. }
  5806. }
  5807. }
  5808. _flush_pending(tls, strm)
  5809. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_out == uint32(0) {
  5810. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = -int32(1) /* avoid BUF_ERROR at next call, see above */
  5811. return m_Z_OK
  5812. }
  5813. }
  5814. }
  5815. if flush != int32(m_Z_FINISH) {
  5816. return m_Z_OK
  5817. }
  5818. if (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap <= 0 {
  5819. return int32(m_Z_STREAM_END)
  5820. }
  5821. /* Write the trailer */
  5822. if (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap == int32(2) {
  5823. v67 = s + 40
  5824. v66 = *(*Tulg)(unsafe.Pointer(v67))
  5825. *(*Tulg)(unsafe.Pointer(v67))++
  5826. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v66))) = uint8((*Tz_stream)(unsafe.Pointer(strm)).Fadler & libc.Uint64FromInt32(0xff))
  5827. v69 = s + 40
  5828. v68 = *(*Tulg)(unsafe.Pointer(v69))
  5829. *(*Tulg)(unsafe.Pointer(v69))++
  5830. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v68))) = uint8((*Tz_stream)(unsafe.Pointer(strm)).Fadler >> libc.Int32FromInt32(8) & libc.Uint64FromInt32(0xff))
  5831. v71 = s + 40
  5832. v70 = *(*Tulg)(unsafe.Pointer(v71))
  5833. *(*Tulg)(unsafe.Pointer(v71))++
  5834. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v70))) = uint8((*Tz_stream)(unsafe.Pointer(strm)).Fadler >> libc.Int32FromInt32(16) & libc.Uint64FromInt32(0xff))
  5835. v73 = s + 40
  5836. v72 = *(*Tulg)(unsafe.Pointer(v73))
  5837. *(*Tulg)(unsafe.Pointer(v73))++
  5838. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v72))) = uint8((*Tz_stream)(unsafe.Pointer(strm)).Fadler >> libc.Int32FromInt32(24) & libc.Uint64FromInt32(0xff))
  5839. v75 = s + 40
  5840. v74 = *(*Tulg)(unsafe.Pointer(v75))
  5841. *(*Tulg)(unsafe.Pointer(v75))++
  5842. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v74))) = uint8((*Tz_stream)(unsafe.Pointer(strm)).Ftotal_in & libc.Uint64FromInt32(0xff))
  5843. v77 = s + 40
  5844. v76 = *(*Tulg)(unsafe.Pointer(v77))
  5845. *(*Tulg)(unsafe.Pointer(v77))++
  5846. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v76))) = uint8((*Tz_stream)(unsafe.Pointer(strm)).Ftotal_in >> libc.Int32FromInt32(8) & libc.Uint64FromInt32(0xff))
  5847. v79 = s + 40
  5848. v78 = *(*Tulg)(unsafe.Pointer(v79))
  5849. *(*Tulg)(unsafe.Pointer(v79))++
  5850. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v78))) = uint8((*Tz_stream)(unsafe.Pointer(strm)).Ftotal_in >> libc.Int32FromInt32(16) & libc.Uint64FromInt32(0xff))
  5851. v81 = s + 40
  5852. v80 = *(*Tulg)(unsafe.Pointer(v81))
  5853. *(*Tulg)(unsafe.Pointer(v81))++
  5854. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v80))) = uint8((*Tz_stream)(unsafe.Pointer(strm)).Ftotal_in >> libc.Int32FromInt32(24) & libc.Uint64FromInt32(0xff))
  5855. } else {
  5856. _putShortMSB(tls, s, uint32((*Tz_stream)(unsafe.Pointer(strm)).Fadler>>libc.Int32FromInt32(16)))
  5857. _putShortMSB(tls, s, uint32((*Tz_stream)(unsafe.Pointer(strm)).Fadler&libc.Uint64FromInt32(0xffff)))
  5858. }
  5859. _flush_pending(tls, strm)
  5860. /* If avail_out is zero, the application will call deflate again
  5861. * to flush the rest.
  5862. */
  5863. if (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap > 0 {
  5864. (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap = -(*Tdeflate_state)(unsafe.Pointer(s)).Fwrap
  5865. } /* write the trailer only once! */
  5866. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending != uint64(0) {
  5867. v82 = m_Z_OK
  5868. } else {
  5869. v82 = int32(m_Z_STREAM_END)
  5870. }
  5871. return v82
  5872. }
  5873. // C documentation
  5874. //
  5875. // /* ========================================================================= */
  5876. func XdeflateEnd(tls *libc.TLS, strm Tz_streamp) (r int32) {
  5877. var status, v1 int32
  5878. _, _ = status, v1
  5879. if _deflateStateCheck(tls, strm) != 0 {
  5880. return -int32(2)
  5881. }
  5882. status = (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fstatus
  5883. /* Deallocate in reverse order of allocations: */
  5884. if (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fpending_buf != 0 {
  5885. (*(*func(*libc.TLS, Tvoidpf, Tvoidpf))(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(strm)).Fzfree})))(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fopaque, (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fpending_buf)
  5886. }
  5887. if (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fhead != 0 {
  5888. (*(*func(*libc.TLS, Tvoidpf, Tvoidpf))(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(strm)).Fzfree})))(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fopaque, (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fhead)
  5889. }
  5890. if (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fprev != 0 {
  5891. (*(*func(*libc.TLS, Tvoidpf, Tvoidpf))(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(strm)).Fzfree})))(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fopaque, (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fprev)
  5892. }
  5893. if (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fwindow != 0 {
  5894. (*(*func(*libc.TLS, Tvoidpf, Tvoidpf))(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(strm)).Fzfree})))(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fopaque, (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fwindow)
  5895. }
  5896. (*(*func(*libc.TLS, Tvoidpf, Tvoidpf))(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(strm)).Fzfree})))(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fopaque, (*Tz_stream)(unsafe.Pointer(strm)).Fstate)
  5897. (*Tz_stream)(unsafe.Pointer(strm)).Fstate = uintptr(m_Z_NULL)
  5898. if status == int32(m_BUSY_STATE) {
  5899. v1 = -int32(3)
  5900. } else {
  5901. v1 = m_Z_OK
  5902. }
  5903. return v1
  5904. }
  5905. // C documentation
  5906. //
  5907. // /* =========================================================================
  5908. // * Copy the source state to the destination state.
  5909. // * To simplify the source, this is not supported for 16-bit MSDOS (which
  5910. // * doesn't have enough memory anyway to duplicate compression states).
  5911. // */
  5912. func XdeflateCopy(tls *libc.TLS, dest Tz_streamp, source Tz_streamp) (r int32) {
  5913. var ds, ss uintptr
  5914. _, _ = ds, ss
  5915. if _deflateStateCheck(tls, source) != 0 || dest == uintptr(m_Z_NULL) {
  5916. return -int32(2)
  5917. }
  5918. ss = (*Tz_stream)(unsafe.Pointer(source)).Fstate
  5919. libc.Xmemcpy(tls, dest, source, uint64(112))
  5920. ds = (*(*func(*libc.TLS, Tvoidpf, TuInt, TuInt) Tvoidpf)(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(dest)).Fzalloc})))(tls, (*Tz_stream)(unsafe.Pointer(dest)).Fopaque, libc.Uint32FromInt32(libc.Int32FromInt32(1)), uint32(libc.Uint64FromInt64(5952)))
  5921. if ds == uintptr(m_Z_NULL) {
  5922. return -int32(4)
  5923. }
  5924. (*Tz_stream)(unsafe.Pointer(dest)).Fstate = ds
  5925. libc.Xmemcpy(tls, ds, ss, uint64(5952))
  5926. (*Tdeflate_state)(unsafe.Pointer(ds)).Fstrm = dest
  5927. (*Tdeflate_state)(unsafe.Pointer(ds)).Fwindow = (*(*func(*libc.TLS, Tvoidpf, TuInt, TuInt) Tvoidpf)(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(dest)).Fzalloc})))(tls, (*Tz_stream)(unsafe.Pointer(dest)).Fopaque, (*Tdeflate_state)(unsafe.Pointer(ds)).Fw_size, uint32(libc.Uint64FromInt32(2)*libc.Uint64FromInt64(1)))
  5928. (*Tdeflate_state)(unsafe.Pointer(ds)).Fprev = (*(*func(*libc.TLS, Tvoidpf, TuInt, TuInt) Tvoidpf)(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(dest)).Fzalloc})))(tls, (*Tz_stream)(unsafe.Pointer(dest)).Fopaque, (*Tdeflate_state)(unsafe.Pointer(ds)).Fw_size, uint32(libc.Uint64FromInt64(2)))
  5929. (*Tdeflate_state)(unsafe.Pointer(ds)).Fhead = (*(*func(*libc.TLS, Tvoidpf, TuInt, TuInt) Tvoidpf)(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(dest)).Fzalloc})))(tls, (*Tz_stream)(unsafe.Pointer(dest)).Fopaque, (*Tdeflate_state)(unsafe.Pointer(ds)).Fhash_size, uint32(libc.Uint64FromInt64(2)))
  5930. (*Tdeflate_state)(unsafe.Pointer(ds)).Fpending_buf = (*(*func(*libc.TLS, Tvoidpf, TuInt, TuInt) Tvoidpf)(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(dest)).Fzalloc})))(tls, (*Tz_stream)(unsafe.Pointer(dest)).Fopaque, (*Tdeflate_state)(unsafe.Pointer(ds)).Flit_bufsize, libc.Uint32FromInt32(libc.Int32FromInt32(m_LIT_BUFS)))
  5931. if (*Tdeflate_state)(unsafe.Pointer(ds)).Fwindow == uintptr(m_Z_NULL) || (*Tdeflate_state)(unsafe.Pointer(ds)).Fprev == uintptr(m_Z_NULL) || (*Tdeflate_state)(unsafe.Pointer(ds)).Fhead == uintptr(m_Z_NULL) || (*Tdeflate_state)(unsafe.Pointer(ds)).Fpending_buf == uintptr(m_Z_NULL) {
  5932. XdeflateEnd(tls, dest)
  5933. return -int32(4)
  5934. }
  5935. /* following zmemcpy do not work for 16-bit MSDOS */
  5936. libc.Xmemcpy(tls, (*Tdeflate_state)(unsafe.Pointer(ds)).Fwindow, (*Tdeflate_state)(unsafe.Pointer(ss)).Fwindow, uint64((*Tdeflate_state)(unsafe.Pointer(ds)).Fw_size*uint32(2))*uint64(1))
  5937. libc.Xmemcpy(tls, (*Tdeflate_state)(unsafe.Pointer(ds)).Fprev, (*Tdeflate_state)(unsafe.Pointer(ss)).Fprev, uint64((*Tdeflate_state)(unsafe.Pointer(ds)).Fw_size)*uint64(2))
  5938. libc.Xmemcpy(tls, (*Tdeflate_state)(unsafe.Pointer(ds)).Fhead, (*Tdeflate_state)(unsafe.Pointer(ss)).Fhead, uint64((*Tdeflate_state)(unsafe.Pointer(ds)).Fhash_size)*uint64(2))
  5939. libc.Xmemcpy(tls, (*Tdeflate_state)(unsafe.Pointer(ds)).Fpending_buf, (*Tdeflate_state)(unsafe.Pointer(ss)).Fpending_buf, uint64((*Tdeflate_state)(unsafe.Pointer(ds)).Flit_bufsize*uint32(m_LIT_BUFS)))
  5940. (*Tdeflate_state)(unsafe.Pointer(ds)).Fpending_out = (*Tdeflate_state)(unsafe.Pointer(ds)).Fpending_buf + uintptr(int64((*Tdeflate_state)(unsafe.Pointer(ss)).Fpending_out)-int64((*Tdeflate_state)(unsafe.Pointer(ss)).Fpending_buf))
  5941. (*Tdeflate_state)(unsafe.Pointer(ds)).Fsym_buf = (*Tdeflate_state)(unsafe.Pointer(ds)).Fpending_buf + uintptr((*Tdeflate_state)(unsafe.Pointer(ds)).Flit_bufsize)
  5942. (*Tdeflate_state)(unsafe.Pointer(ds)).Fl_desc.Fdyn_tree = ds + 212
  5943. (*Tdeflate_state)(unsafe.Pointer(ds)).Fd_desc.Fdyn_tree = ds + 2504
  5944. (*Tdeflate_state)(unsafe.Pointer(ds)).Fbl_desc.Fdyn_tree = ds + 2748
  5945. return m_Z_OK
  5946. }
  5947. // C documentation
  5948. //
  5949. // /* ===========================================================================
  5950. // * Set match_start to the longest match starting at the given string and
  5951. // * return its length. Matches shorter or equal to prev_length are discarded,
  5952. // * in which case the result is equal to prev_length and match_start is
  5953. // * garbage.
  5954. // * IN assertions: cur_match is the head of the hash chain for the current
  5955. // * string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1
  5956. // * OUT assertion: the match length is not greater than s->lookahead.
  5957. // */
  5958. func _longest_match(tls *libc.TLS, s uintptr, cur_match TIPos) (r TuInt) {
  5959. var best_len, len1, nice_match int32
  5960. var chain_length, v1, v3 uint32
  5961. var limit, v2 TIPos
  5962. var match, prev, scan, strend, v10, v11, v13, v14, v16, v17, v19, v20, v22, v23, v25, v26, v28, v29, v6, v8, v9 uintptr
  5963. var scan_end, scan_end1 TByte
  5964. var wmask TuInt
  5965. var v12, v15, v18, v21, v24, v27, v30, v4, v7 bool
  5966. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = best_len, chain_length, len1, limit, match, nice_match, prev, scan, scan_end, scan_end1, strend, wmask, v1, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v2, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v3, v30, v4, v6, v7, v8, v9
  5967. chain_length = (*Tdeflate_state)(unsafe.Pointer(s)).Fmax_chain_length /* max hash chain length */
  5968. scan = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart) /* length of current match */
  5969. best_len = libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fprev_length) /* best match length so far */
  5970. nice_match = (*Tdeflate_state)(unsafe.Pointer(s)).Fnice_match
  5971. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart > (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size-libc.Uint32FromInt32(libc.Int32FromInt32(m_MAX_MATCH)+libc.Int32FromInt32(m_MIN_MATCH)+libc.Int32FromInt32(1)) {
  5972. v1 = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart - ((*Tdeflate_state)(unsafe.Pointer(s)).Fw_size - libc.Uint32FromInt32(libc.Int32FromInt32(m_MAX_MATCH)+libc.Int32FromInt32(m_MIN_MATCH)+libc.Int32FromInt32(1)))
  5973. } else {
  5974. v1 = uint32(m_NIL)
  5975. } /* stop if match long enough */
  5976. limit = v1
  5977. /* Stop when cur_match becomes <= limit. To simplify the code,
  5978. * we prevent matches with the string of window index 0.
  5979. */
  5980. prev = (*Tdeflate_state)(unsafe.Pointer(s)).Fprev
  5981. wmask = (*Tdeflate_state)(unsafe.Pointer(s)).Fw_mask
  5982. strend = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart) + uintptr(m_MAX_MATCH)
  5983. scan_end1 = *(*TBytef)(unsafe.Pointer(scan + uintptr(best_len-int32(1))))
  5984. scan_end = *(*TBytef)(unsafe.Pointer(scan + uintptr(best_len)))
  5985. /* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.
  5986. * It is easy to get rid of this optimization if necessary.
  5987. */
  5988. /* Do not waste too much time if we already have a good match: */
  5989. if (*Tdeflate_state)(unsafe.Pointer(s)).Fprev_length >= (*Tdeflate_state)(unsafe.Pointer(s)).Fgood_match {
  5990. chain_length >>= uint32(2)
  5991. }
  5992. /* Do not look for matches beyond the end of the input. This is necessary
  5993. * to make deflate deterministic.
  5994. */
  5995. if libc.Uint32FromInt32(nice_match) > (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead {
  5996. nice_match = libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Flookahead)
  5997. }
  5998. for {
  5999. match = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(cur_match)
  6000. /* Skip to next match if the match length cannot increase
  6001. * or if the match length is less than 2. Note that the checks below
  6002. * for insufficient lookahead only occur occasionally for performance
  6003. * reasons. Therefore uninitialized memory will be accessed, and
  6004. * conditional jumps will be made that depend on those values.
  6005. * However the length of the match is limited to the lookahead, so
  6006. * the output of deflate is not affected by the uninitialized values.
  6007. */
  6008. if v7 = libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(match + uintptr(best_len)))) != libc.Int32FromUint8(scan_end) || libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(match + uintptr(best_len-int32(1))))) != libc.Int32FromUint8(scan_end1) || libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(match))) != libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(scan))); !v7 {
  6009. match++
  6010. v6 = match
  6011. }
  6012. if v7 || libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v6))) != libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(scan + 1))) {
  6013. goto _5
  6014. }
  6015. /* The check at best_len - 1 can be removed because it will be made
  6016. * again later. (This heuristic is not always a win.)
  6017. * It is not necessary to compare scan[2] and match[2] since they
  6018. * are always equal when the other bytes match, given that
  6019. * the hash keys are equal and that HASH_BITS >= 8.
  6020. */
  6021. scan += uintptr(2)
  6022. /* The check at best_len - 1 can be removed because it will be made
  6023. * again later. (This heuristic is not always a win.)
  6024. * It is not necessary to compare scan[2] and match[2] since they
  6025. * are always equal when the other bytes match, given that
  6026. * the hash keys are equal and that HASH_BITS >= 8.
  6027. */
  6028. match++
  6029. /* We check for insufficient lookahead only every 8th comparison;
  6030. * the 256th check will be made at strstart + 258.
  6031. */
  6032. for {
  6033. goto _31
  6034. _31:
  6035. ;
  6036. scan++
  6037. v8 = scan
  6038. match++
  6039. v9 = match
  6040. if v12 = libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v8))) == libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v9))); v12 {
  6041. scan++
  6042. v10 = scan
  6043. match++
  6044. v11 = match
  6045. }
  6046. if v15 = v12 && libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v10))) == libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v11))); v15 {
  6047. scan++
  6048. v13 = scan
  6049. match++
  6050. v14 = match
  6051. }
  6052. if v18 = v15 && libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v13))) == libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v14))); v18 {
  6053. scan++
  6054. v16 = scan
  6055. match++
  6056. v17 = match
  6057. }
  6058. if v21 = v18 && libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v16))) == libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v17))); v21 {
  6059. scan++
  6060. v19 = scan
  6061. match++
  6062. v20 = match
  6063. }
  6064. if v24 = v21 && libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v19))) == libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v20))); v24 {
  6065. scan++
  6066. v22 = scan
  6067. match++
  6068. v23 = match
  6069. }
  6070. if v27 = v24 && libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v22))) == libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v23))); v27 {
  6071. scan++
  6072. v25 = scan
  6073. match++
  6074. v26 = match
  6075. }
  6076. if v30 = v27 && libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v25))) == libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v26))); v30 {
  6077. scan++
  6078. v28 = scan
  6079. match++
  6080. v29 = match
  6081. }
  6082. if !(v30 && libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v28))) == libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v29))) && scan < strend) {
  6083. break
  6084. }
  6085. }
  6086. len1 = int32(m_MAX_MATCH) - int32(int64(strend)-int64(scan))
  6087. scan = strend - uintptr(m_MAX_MATCH)
  6088. if len1 > best_len {
  6089. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_start = cur_match
  6090. best_len = len1
  6091. if len1 >= nice_match {
  6092. break
  6093. }
  6094. scan_end1 = *(*TBytef)(unsafe.Pointer(scan + uintptr(best_len-int32(1))))
  6095. scan_end = *(*TBytef)(unsafe.Pointer(scan + uintptr(best_len)))
  6096. }
  6097. goto _5
  6098. _5:
  6099. ;
  6100. v2 = uint32(*(*TPosf)(unsafe.Pointer(prev + uintptr(cur_match&wmask)*2)))
  6101. cur_match = v2
  6102. if v4 = v2 > limit; v4 {
  6103. chain_length--
  6104. v3 = chain_length
  6105. }
  6106. if !(v4 && v3 != uint32(0)) {
  6107. break
  6108. }
  6109. }
  6110. if libc.Uint32FromInt32(best_len) <= (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead {
  6111. return libc.Uint32FromInt32(best_len)
  6112. }
  6113. return (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead
  6114. }
  6115. /* ===========================================================================
  6116. * Flush the current block, with given end-of-file flag.
  6117. * IN assertion: strstart is set to the end of the current match.
  6118. */
  6119. /* Same but force premature exit if necessary. */
  6120. /* Maximum stored block length in deflate format (not including header). */
  6121. /* Minimum of a and b. */
  6122. // C documentation
  6123. //
  6124. // /* ===========================================================================
  6125. // * Copy without compression as much as possible from the input stream, return
  6126. // * the current block state.
  6127. // *
  6128. // * In case deflateParams() is used to later switch to a non-zero compression
  6129. // * level, s->matches (otherwise unused when storing) keeps track of the number
  6130. // * of hash table slides to perform. If s->matches is 1, then one hash table
  6131. // * slide will be done when switching. If s->matches is 2, the maximum value
  6132. // * allowed here, then the hash table will be cleared, since two or more slides
  6133. // * is the same as a clear.
  6134. // *
  6135. // * deflate_stored() is written to minimize the number of times an input byte is
  6136. // * copied. It is most efficient with large input and output buffers, which
  6137. // * maximizes the opportunities to have a single copy from next_in to next_out.
  6138. // */
  6139. func _deflate_stored(tls *libc.TLS, s uintptr, flush int32) (r Tblock_state) {
  6140. var have, last, left, len1, min_block, used, v3, v4, v6, v7 uint32
  6141. var v1, v5 uint64
  6142. var v2, v8, v9 int32
  6143. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = have, last, left, len1, min_block, used, v1, v2, v3, v4, v5, v6, v7, v8, v9
  6144. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf_size-uint64(5) > uint64((*Tdeflate_state)(unsafe.Pointer(s)).Fw_size) {
  6145. v1 = uint64((*Tdeflate_state)(unsafe.Pointer(s)).Fw_size)
  6146. } else {
  6147. v1 = (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf_size - uint64(5)
  6148. }
  6149. /* Smallest worthy block size when not flushing or finishing. By default
  6150. * this is 32K. This can be as small as 507 bytes for memLevel == 1. For
  6151. * large input and output buffers, the stored block size will be larger.
  6152. */
  6153. min_block = uint32(v1)
  6154. last = uint32(0)
  6155. used = (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in
  6156. for cond := true; cond; cond = last == uint32(0) {
  6157. /* Set len to the maximum size block that we can copy directly with the
  6158. * available input data and output space. Set left to how much of that
  6159. * would be copied from what's left in the window.
  6160. */
  6161. len1 = uint32(m_MAX_STORED) /* maximum deflate stored block length */
  6162. have = libc.Uint32FromInt32(((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid + int32(42)) >> int32(3)) /* number of header bytes */
  6163. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out < have { /* need room for header */
  6164. break
  6165. }
  6166. /* maximum stored block length that will fit in avail_out: */
  6167. have = (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out - have
  6168. left = libc.Uint32FromInt64(libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart) - (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start) /* bytes left in window */
  6169. if uint64(len1) > uint64(left)+uint64((*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in) {
  6170. len1 = left + (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in
  6171. } /* limit len to the input */
  6172. if len1 > have {
  6173. len1 = have
  6174. } /* limit len to the output */
  6175. /* If the stored block would be less than min_block in length, or if
  6176. * unable to copy all of the available input when flushing, then try
  6177. * copying to the window and the pending buffer instead. Also don't
  6178. * write an empty block when flushing -- deflate() does that.
  6179. */
  6180. if len1 < min_block && (len1 == uint32(0) && flush != int32(m_Z_FINISH) || flush == m_Z_NO_FLUSH || len1 != left+(*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in) {
  6181. break
  6182. }
  6183. /* Make a dummy stored block in pending to get the header bytes,
  6184. * including any pending bits. This also updates the debugging counts.
  6185. */
  6186. if flush == int32(m_Z_FINISH) && len1 == left+(*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in {
  6187. v2 = int32(1)
  6188. } else {
  6189. v2 = 0
  6190. }
  6191. last = libc.Uint32FromInt32(v2)
  6192. x__tr_stored_block(tls, s, libc.UintptrFromInt32(0), uint64(0), libc.Int32FromUint32(last))
  6193. /* Replace the lengths in the dummy stored block with len. */
  6194. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fpending-uint64(4)))) = uint8(len1)
  6195. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fpending-uint64(3)))) = uint8(len1 >> int32(8))
  6196. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fpending-uint64(2)))) = uint8(^len1)
  6197. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fpending-uint64(1)))) = uint8(^len1 >> int32(8))
  6198. /* Write the stored block header bytes. */
  6199. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6200. /* Copy uncompressed bytes from the window to next_out. */
  6201. if left != 0 {
  6202. if left > len1 {
  6203. left = len1
  6204. }
  6205. libc.Xmemcpy(tls, (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Fnext_out, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow+uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), uint64(left))
  6206. *(*uintptr)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm + 24)) += uintptr(left)
  6207. *(*TuInt)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm + 32)) -= left
  6208. *(*TuLong)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm + 40)) += uint64(left)
  6209. *(*int64)(unsafe.Pointer(s + 152)) += libc.Int64FromUint32(left)
  6210. len1 -= left
  6211. }
  6212. /* Copy uncompressed bytes directly from next_in to next_out, updating
  6213. * the check value.
  6214. */
  6215. if len1 != 0 {
  6216. _read_buf(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm, (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Fnext_out, len1)
  6217. *(*uintptr)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm + 24)) += uintptr(len1)
  6218. *(*TuInt)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm + 32)) -= len1
  6219. *(*TuLong)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm + 40)) += uint64(len1)
  6220. }
  6221. }
  6222. /* Update the sliding window with the last s->w_size bytes of the copied
  6223. * data, or append all of the copied data to the existing window if less
  6224. * than s->w_size bytes were copied. Also update the number of bytes to
  6225. * insert in the hash tables, in the event that deflateParams() switches to
  6226. * a non-zero compression level.
  6227. */
  6228. used -= (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in /* number of input bytes directly copied */
  6229. if used != 0 {
  6230. /* If any input was used, then no unused input remains in the window,
  6231. * therefore s->block_start == s->strstart.
  6232. */
  6233. if used >= (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size { /* supplant the previous history */
  6234. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatches = uint32(2) /* clear hash */
  6235. libc.Xmemcpy(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow, (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Fnext_in-uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fw_size), uint64((*Tdeflate_state)(unsafe.Pointer(s)).Fw_size))
  6236. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart = (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size
  6237. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart
  6238. } else {
  6239. if (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow_size-uint64((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart) <= uint64(used) {
  6240. /* Slide the window down. */
  6241. *(*TuInt)(unsafe.Pointer(s + 172)) -= (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size
  6242. libc.Xmemcpy(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow+uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fw_size), uint64((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart))
  6243. if (*Tdeflate_state)(unsafe.Pointer(s)).Fmatches < uint32(2) {
  6244. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatches++
  6245. } /* add a pending slide_hash() */
  6246. if (*Tdeflate_state)(unsafe.Pointer(s)).Finsert > (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart {
  6247. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart
  6248. }
  6249. }
  6250. libc.Xmemcpy(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow+uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart), (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Fnext_in-uintptr(used), uint64(used))
  6251. *(*TuInt)(unsafe.Pointer(s + 172)) += used
  6252. if used > (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size-(*Tdeflate_state)(unsafe.Pointer(s)).Finsert {
  6253. v3 = (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size - (*Tdeflate_state)(unsafe.Pointer(s)).Finsert
  6254. } else {
  6255. v3 = used
  6256. }
  6257. *(*TuInt)(unsafe.Pointer(s + 5932)) += v3
  6258. }
  6259. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6260. }
  6261. if (*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water < uint64((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart) {
  6262. (*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water = uint64((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6263. }
  6264. /* If the last block was written to next_out, then done. */
  6265. if last != 0 {
  6266. return int32(_finish_done)
  6267. }
  6268. /* If flushing and all input has been consumed, then done. */
  6269. if flush != m_Z_NO_FLUSH && flush != int32(m_Z_FINISH) && (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in == uint32(0) && libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart) == (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start {
  6270. return int32(_block_done)
  6271. }
  6272. /* Fill the window with any remaining input. */
  6273. have = uint32((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow_size - uint64((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart))
  6274. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in > have && (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fw_size) {
  6275. /* Slide the window down. */
  6276. *(*int64)(unsafe.Pointer(s + 152)) -= libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fw_size)
  6277. *(*TuInt)(unsafe.Pointer(s + 172)) -= (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size
  6278. libc.Xmemcpy(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow+uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fw_size), uint64((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart))
  6279. if (*Tdeflate_state)(unsafe.Pointer(s)).Fmatches < uint32(2) {
  6280. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatches++
  6281. } /* add a pending slide_hash() */
  6282. have += (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size /* more space now */
  6283. if (*Tdeflate_state)(unsafe.Pointer(s)).Finsert > (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart {
  6284. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart
  6285. }
  6286. }
  6287. if have > (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in {
  6288. have = (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in
  6289. }
  6290. if have != 0 {
  6291. _read_buf(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow+uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart), have)
  6292. *(*TuInt)(unsafe.Pointer(s + 172)) += have
  6293. if have > (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size-(*Tdeflate_state)(unsafe.Pointer(s)).Finsert {
  6294. v4 = (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size - (*Tdeflate_state)(unsafe.Pointer(s)).Finsert
  6295. } else {
  6296. v4 = have
  6297. }
  6298. *(*TuInt)(unsafe.Pointer(s + 5932)) += v4
  6299. }
  6300. if (*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water < uint64((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart) {
  6301. (*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water = uint64((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6302. }
  6303. /* There was not enough avail_out to write a complete worthy or flushed
  6304. * stored block to next_out. Write a stored block to pending instead, if we
  6305. * have enough input for a worthy block, or if flushing and there is enough
  6306. * room for the remaining input as a stored block in the pending buffer.
  6307. */
  6308. have = libc.Uint32FromInt32(((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid + int32(42)) >> int32(3)) /* number of header bytes */
  6309. /* maximum stored block length that will fit in pending: */
  6310. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf_size-uint64(have) > libc.Uint64FromInt32(libc.Int32FromInt32(m_MAX_STORED)) {
  6311. v5 = libc.Uint64FromInt32(libc.Int32FromInt32(m_MAX_STORED))
  6312. } else {
  6313. v5 = (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf_size - uint64(have)
  6314. }
  6315. have = uint32(v5)
  6316. if have > (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size {
  6317. v6 = (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size
  6318. } else {
  6319. v6 = have
  6320. }
  6321. min_block = v6
  6322. left = libc.Uint32FromInt64(libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart) - (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start)
  6323. if left >= min_block || (left != 0 || flush == int32(m_Z_FINISH)) && flush != m_Z_NO_FLUSH && (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in == uint32(0) && left <= have {
  6324. if left > have {
  6325. v7 = have
  6326. } else {
  6327. v7 = left
  6328. }
  6329. len1 = v7
  6330. if flush == int32(m_Z_FINISH) && (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in == uint32(0) && len1 == left {
  6331. v8 = int32(1)
  6332. } else {
  6333. v8 = 0
  6334. }
  6335. last = libc.Uint32FromInt32(v8)
  6336. x__tr_stored_block(tls, s, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow+uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), uint64(len1), libc.Int32FromUint32(last))
  6337. *(*int64)(unsafe.Pointer(s + 152)) += libc.Int64FromUint32(len1)
  6338. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6339. }
  6340. /* We've done all we can with the available input and output. */
  6341. if last != 0 {
  6342. v9 = int32(_finish_started)
  6343. } else {
  6344. v9 = int32(_need_more)
  6345. }
  6346. return v9
  6347. }
  6348. // C documentation
  6349. //
  6350. // /* ===========================================================================
  6351. // * Compress as much as possible from the input stream, return the current
  6352. // * block state.
  6353. // * This function does not perform lazy evaluation of matches and inserts
  6354. // * new strings in the dictionary only for unmatched strings or for short
  6355. // * matches. It is used only for the fast compression options.
  6356. // */
  6357. func _deflate_fast(tls *libc.TLS, s uintptr, flush int32) (r Tblock_state) {
  6358. var bflush, v9 int32
  6359. var cc, len1 Tuch
  6360. var dist Tush
  6361. var hash_head TIPos
  6362. var v10, v14, v16, v18, v3, v5, v7 TuInt
  6363. var v11, v15, v17, v19, v20, v22, v23, v4, v6, v8 uintptr
  6364. var v13, v2 TPosf
  6365. var v21 uint32
  6366. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bflush, cc, dist, hash_head, len1, v10, v11, v13, v14, v15, v16, v17, v18, v19, v2, v20, v21, v22, v23, v3, v4, v5, v6, v7, v8, v9 /* set if current block must be flushed */
  6367. for {
  6368. /* Make sure that we always have enough lookahead, except
  6369. * at the end of the input file. We need MAX_MATCH bytes
  6370. * for the next match, plus MIN_MATCH bytes to insert the
  6371. * string following the next match.
  6372. */
  6373. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead < libc.Uint32FromInt32(libc.Int32FromInt32(m_MAX_MATCH)+libc.Int32FromInt32(m_MIN_MATCH)+libc.Int32FromInt32(1)) {
  6374. _fill_window(tls, s)
  6375. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead < libc.Uint32FromInt32(libc.Int32FromInt32(m_MAX_MATCH)+libc.Int32FromInt32(m_MIN_MATCH)+libc.Int32FromInt32(1)) && flush == m_Z_NO_FLUSH {
  6376. return int32(_need_more)
  6377. }
  6378. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead == uint32(0) {
  6379. break
  6380. } /* flush the current block */
  6381. }
  6382. /* Insert the string window[strstart .. strstart + 2] in the
  6383. * dictionary, and set hash_head to the head of the hash chain:
  6384. */
  6385. hash_head = uint32(m_NIL)
  6386. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead >= uint32(m_MIN_MATCH) {
  6387. (*Tdeflate_state)(unsafe.Pointer(s)).Fins_h = ((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h<<(*Tdeflate_state)(unsafe.Pointer(s)).Fhash_shift ^ uint32(*(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart+libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH)-libc.Int32FromInt32(1))))))) & (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_mask
  6388. v2 = *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h)*2))
  6389. *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fprev + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart&(*Tdeflate_state)(unsafe.Pointer(s)).Fw_mask)*2)) = v2
  6390. hash_head = uint32(v2)
  6391. *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h)*2)) = uint16((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6392. }
  6393. /* Find the longest match, discarding those <= prev_length.
  6394. * At this point we have always match_length < MIN_MATCH
  6395. */
  6396. if hash_head != uint32(m_NIL) && (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart-hash_head <= (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size-libc.Uint32FromInt32(libc.Int32FromInt32(m_MAX_MATCH)+libc.Int32FromInt32(m_MIN_MATCH)+libc.Int32FromInt32(1)) {
  6397. /* To simplify the code, we prevent matches with the string
  6398. * of window index 0 (in particular we have to avoid a match
  6399. * of the string with itself at the start of the input file).
  6400. */
  6401. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = _longest_match(tls, s, hash_head)
  6402. /* longest_match() sets match_start */
  6403. }
  6404. if (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length >= uint32(m_MIN_MATCH) {
  6405. len1 = uint8((*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length - libc.Uint32FromInt32(m_MIN_MATCH))
  6406. dist = uint16((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart - (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_start)
  6407. v4 = s + 5900
  6408. v3 = *(*TuInt)(unsafe.Pointer(v4))
  6409. *(*TuInt)(unsafe.Pointer(v4))++
  6410. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v3))) = uint8(dist)
  6411. v6 = s + 5900
  6412. v5 = *(*TuInt)(unsafe.Pointer(v6))
  6413. *(*TuInt)(unsafe.Pointer(v6))++
  6414. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v5))) = libc.Uint8FromInt32(libc.Int32FromUint16(dist) >> libc.Int32FromInt32(8))
  6415. v8 = s + 5900
  6416. v7 = *(*TuInt)(unsafe.Pointer(v8))
  6417. *(*TuInt)(unsafe.Pointer(v8))++
  6418. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v7))) = len1
  6419. dist--
  6420. *(*Tush)(unsafe.Pointer(s + 212 + uintptr(libc.Int32FromUint8(x__length_code[len1])+int32(m_LITERALS)+int32(1))*4))++
  6421. if libc.Int32FromUint16(dist) < int32(256) {
  6422. v9 = libc.Int32FromUint8(x__dist_code[dist])
  6423. } else {
  6424. v9 = libc.Int32FromUint8(x__dist_code[int32(256)+libc.Int32FromUint16(dist)>>int32(7)])
  6425. }
  6426. *(*Tush)(unsafe.Pointer(s + 2504 + uintptr(v9)*4))++
  6427. bflush = libc.BoolInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next == (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_end)
  6428. *(*TuInt)(unsafe.Pointer(s + 180)) -= (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length
  6429. /* Insert new strings in the hash table only if the match length
  6430. * is not too large. This saves time but degrades compression.
  6431. */
  6432. if (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length <= (*Tdeflate_state)(unsafe.Pointer(s)).Fmax_lazy_match && (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead >= uint32(m_MIN_MATCH) {
  6433. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length-- /* string at strstart already in table */
  6434. for {
  6435. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart++
  6436. (*Tdeflate_state)(unsafe.Pointer(s)).Fins_h = ((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h<<(*Tdeflate_state)(unsafe.Pointer(s)).Fhash_shift ^ uint32(*(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart+libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH)-libc.Int32FromInt32(1))))))) & (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_mask
  6437. v13 = *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h)*2))
  6438. *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fprev + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart&(*Tdeflate_state)(unsafe.Pointer(s)).Fw_mask)*2)) = v13
  6439. hash_head = uint32(v13)
  6440. *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h)*2)) = uint16((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6441. /* strstart never exceeds WSIZE-MAX_MATCH, so there are
  6442. * always MIN_MATCH bytes ahead.
  6443. */
  6444. goto _12
  6445. _12:
  6446. ;
  6447. v11 = s + 160
  6448. *(*TuInt)(unsafe.Pointer(v11))--
  6449. v10 = *(*TuInt)(unsafe.Pointer(v11))
  6450. if !(v10 != uint32(0)) {
  6451. break
  6452. }
  6453. }
  6454. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart++
  6455. } else {
  6456. *(*TuInt)(unsafe.Pointer(s + 172)) += (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length
  6457. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = uint32(0)
  6458. (*Tdeflate_state)(unsafe.Pointer(s)).Fins_h = uint32(*(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart))))
  6459. (*Tdeflate_state)(unsafe.Pointer(s)).Fins_h = ((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h<<(*Tdeflate_state)(unsafe.Pointer(s)).Fhash_shift ^ uint32(*(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart+uint32(1)))))) & (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_mask
  6460. /* If lookahead < MIN_MATCH, ins_h is garbage, but it does not
  6461. * matter since it will be recomputed at next deflate call.
  6462. */
  6463. }
  6464. } else {
  6465. /* No match, output a literal byte */
  6466. cc = *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)))
  6467. v15 = s + 5900
  6468. v14 = *(*TuInt)(unsafe.Pointer(v15))
  6469. *(*TuInt)(unsafe.Pointer(v15))++
  6470. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v14))) = uint8(0)
  6471. v17 = s + 5900
  6472. v16 = *(*TuInt)(unsafe.Pointer(v17))
  6473. *(*TuInt)(unsafe.Pointer(v17))++
  6474. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v16))) = uint8(0)
  6475. v19 = s + 5900
  6476. v18 = *(*TuInt)(unsafe.Pointer(v19))
  6477. *(*TuInt)(unsafe.Pointer(v19))++
  6478. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v18))) = cc
  6479. *(*Tush)(unsafe.Pointer(s + 212 + uintptr(cc)*4))++
  6480. bflush = libc.BoolInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next == (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_end)
  6481. (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead--
  6482. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart++
  6483. }
  6484. if bflush != 0 {
  6485. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6486. v20 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt64((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6487. } else {
  6488. v20 = libc.UintptrFromInt32(m_Z_NULL)
  6489. }
  6490. x__tr_flush_block(tls, s, v20, libc.Uint64FromInt64(libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), 0)
  6491. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6492. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6493. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6494. return int32(_need_more)
  6495. }
  6496. }
  6497. goto _1
  6498. _1:
  6499. }
  6500. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart < libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH)-libc.Int32FromInt32(1)) {
  6501. v21 = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart
  6502. } else {
  6503. v21 = libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH) - libc.Int32FromInt32(1))
  6504. }
  6505. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = v21
  6506. if flush == int32(m_Z_FINISH) {
  6507. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6508. v22 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt64((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6509. } else {
  6510. v22 = libc.UintptrFromInt32(m_Z_NULL)
  6511. }
  6512. x__tr_flush_block(tls, s, v22, libc.Uint64FromInt64(libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), int32(1))
  6513. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6514. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6515. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6516. return int32(_finish_started)
  6517. }
  6518. return int32(_finish_done)
  6519. }
  6520. if (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next != 0 {
  6521. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6522. v23 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt64((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6523. } else {
  6524. v23 = libc.UintptrFromInt32(m_Z_NULL)
  6525. }
  6526. x__tr_flush_block(tls, s, v23, libc.Uint64FromInt64(libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), 0)
  6527. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6528. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6529. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6530. return int32(_need_more)
  6531. }
  6532. }
  6533. return int32(_block_done)
  6534. }
  6535. // C documentation
  6536. //
  6537. // /* ===========================================================================
  6538. // * Same as above, but achieves better compression. We use a lazy
  6539. // * evaluation for matches: a match is finally adopted only if there is
  6540. // * no better match at the next window position.
  6541. // */
  6542. func _deflate_slow(tls *libc.TLS, s uintptr, flush int32) (r Tblock_state) {
  6543. var bflush, v9 int32
  6544. var cc, cc1, len1 Tuch
  6545. var dist Tush
  6546. var hash_head TIPos
  6547. var max_insert, v10, v13, v17, v19, v21, v24, v26, v28, v3, v5, v7 TuInt
  6548. var v11, v14, v16, v18, v20, v22, v23, v25, v27, v29, v31, v32, v4, v6, v8 uintptr
  6549. var v15, v2 TPosf
  6550. var v30 uint32
  6551. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bflush, cc, cc1, dist, hash_head, len1, max_insert, v10, v11, v13, v14, v15, v16, v17, v18, v19, v2, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v3, v30, v31, v32, v4, v5, v6, v7, v8, v9 /* set if current block must be flushed */
  6552. /* Process the input block. */
  6553. for {
  6554. /* Make sure that we always have enough lookahead, except
  6555. * at the end of the input file. We need MAX_MATCH bytes
  6556. * for the next match, plus MIN_MATCH bytes to insert the
  6557. * string following the next match.
  6558. */
  6559. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead < libc.Uint32FromInt32(libc.Int32FromInt32(m_MAX_MATCH)+libc.Int32FromInt32(m_MIN_MATCH)+libc.Int32FromInt32(1)) {
  6560. _fill_window(tls, s)
  6561. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead < libc.Uint32FromInt32(libc.Int32FromInt32(m_MAX_MATCH)+libc.Int32FromInt32(m_MIN_MATCH)+libc.Int32FromInt32(1)) && flush == m_Z_NO_FLUSH {
  6562. return int32(_need_more)
  6563. }
  6564. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead == uint32(0) {
  6565. break
  6566. } /* flush the current block */
  6567. }
  6568. /* Insert the string window[strstart .. strstart + 2] in the
  6569. * dictionary, and set hash_head to the head of the hash chain:
  6570. */
  6571. hash_head = uint32(m_NIL)
  6572. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead >= uint32(m_MIN_MATCH) {
  6573. (*Tdeflate_state)(unsafe.Pointer(s)).Fins_h = ((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h<<(*Tdeflate_state)(unsafe.Pointer(s)).Fhash_shift ^ uint32(*(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart+libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH)-libc.Int32FromInt32(1))))))) & (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_mask
  6574. v2 = *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h)*2))
  6575. *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fprev + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart&(*Tdeflate_state)(unsafe.Pointer(s)).Fw_mask)*2)) = v2
  6576. hash_head = uint32(v2)
  6577. *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h)*2)) = uint16((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6578. }
  6579. /* Find the longest match, discarding those <= prev_length.
  6580. */
  6581. (*Tdeflate_state)(unsafe.Pointer(s)).Fprev_length = (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length
  6582. /* Find the longest match, discarding those <= prev_length.
  6583. */
  6584. (*Tdeflate_state)(unsafe.Pointer(s)).Fprev_match = (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_start
  6585. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH) - libc.Int32FromInt32(1))
  6586. if hash_head != uint32(m_NIL) && (*Tdeflate_state)(unsafe.Pointer(s)).Fprev_length < (*Tdeflate_state)(unsafe.Pointer(s)).Fmax_lazy_match && (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart-hash_head <= (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size-libc.Uint32FromInt32(libc.Int32FromInt32(m_MAX_MATCH)+libc.Int32FromInt32(m_MIN_MATCH)+libc.Int32FromInt32(1)) {
  6587. /* To simplify the code, we prevent matches with the string
  6588. * of window index 0 (in particular we have to avoid a match
  6589. * of the string with itself at the start of the input file).
  6590. */
  6591. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = _longest_match(tls, s, hash_head)
  6592. /* longest_match() sets match_start */
  6593. if (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length <= uint32(5) && ((*Tdeflate_state)(unsafe.Pointer(s)).Fstrategy == int32(m_Z_FILTERED) || (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length == uint32(m_MIN_MATCH) && (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart-(*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_start > uint32(m_TOO_FAR)) {
  6594. /* If prev_match is also MIN_MATCH, match_start is garbage
  6595. * but we will ignore the current match anyway.
  6596. */
  6597. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH) - libc.Int32FromInt32(1))
  6598. }
  6599. }
  6600. /* If there was a match at the previous step and the current
  6601. * match is not better, output the previous match:
  6602. */
  6603. if (*Tdeflate_state)(unsafe.Pointer(s)).Fprev_length >= uint32(m_MIN_MATCH) && (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length <= (*Tdeflate_state)(unsafe.Pointer(s)).Fprev_length {
  6604. max_insert = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart + (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead - uint32(m_MIN_MATCH)
  6605. /* Do not insert strings in hash table beyond this. */
  6606. len1 = uint8((*Tdeflate_state)(unsafe.Pointer(s)).Fprev_length - libc.Uint32FromInt32(m_MIN_MATCH))
  6607. dist = uint16((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart - libc.Uint32FromInt32(1) - (*Tdeflate_state)(unsafe.Pointer(s)).Fprev_match)
  6608. v4 = s + 5900
  6609. v3 = *(*TuInt)(unsafe.Pointer(v4))
  6610. *(*TuInt)(unsafe.Pointer(v4))++
  6611. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v3))) = uint8(dist)
  6612. v6 = s + 5900
  6613. v5 = *(*TuInt)(unsafe.Pointer(v6))
  6614. *(*TuInt)(unsafe.Pointer(v6))++
  6615. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v5))) = libc.Uint8FromInt32(libc.Int32FromUint16(dist) >> libc.Int32FromInt32(8))
  6616. v8 = s + 5900
  6617. v7 = *(*TuInt)(unsafe.Pointer(v8))
  6618. *(*TuInt)(unsafe.Pointer(v8))++
  6619. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v7))) = len1
  6620. dist--
  6621. *(*Tush)(unsafe.Pointer(s + 212 + uintptr(libc.Int32FromUint8(x__length_code[len1])+int32(m_LITERALS)+int32(1))*4))++
  6622. if libc.Int32FromUint16(dist) < int32(256) {
  6623. v9 = libc.Int32FromUint8(x__dist_code[dist])
  6624. } else {
  6625. v9 = libc.Int32FromUint8(x__dist_code[int32(256)+libc.Int32FromUint16(dist)>>int32(7)])
  6626. }
  6627. *(*Tush)(unsafe.Pointer(s + 2504 + uintptr(v9)*4))++
  6628. bflush = libc.BoolInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next == (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_end)
  6629. /* Insert in hash table all strings up to the end of the match.
  6630. * strstart - 1 and strstart are already inserted. If there is not
  6631. * enough lookahead, the last two strings are not inserted in
  6632. * the hash table.
  6633. */
  6634. *(*TuInt)(unsafe.Pointer(s + 180)) -= (*Tdeflate_state)(unsafe.Pointer(s)).Fprev_length - uint32(1)
  6635. *(*TuInt)(unsafe.Pointer(s + 184)) -= uint32(2)
  6636. for {
  6637. v14 = s + 172
  6638. *(*TuInt)(unsafe.Pointer(v14))++
  6639. v13 = *(*TuInt)(unsafe.Pointer(v14))
  6640. if v13 <= max_insert {
  6641. (*Tdeflate_state)(unsafe.Pointer(s)).Fins_h = ((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h<<(*Tdeflate_state)(unsafe.Pointer(s)).Fhash_shift ^ uint32(*(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart+libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH)-libc.Int32FromInt32(1))))))) & (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_mask
  6642. v15 = *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h)*2))
  6643. *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fprev + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart&(*Tdeflate_state)(unsafe.Pointer(s)).Fw_mask)*2)) = v15
  6644. hash_head = uint32(v15)
  6645. *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h)*2)) = uint16((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6646. }
  6647. goto _12
  6648. _12:
  6649. ;
  6650. v11 = s + 184
  6651. *(*TuInt)(unsafe.Pointer(v11))--
  6652. v10 = *(*TuInt)(unsafe.Pointer(v11))
  6653. if !(v10 != uint32(0)) {
  6654. break
  6655. }
  6656. }
  6657. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_available = 0
  6658. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH) - libc.Int32FromInt32(1))
  6659. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart++
  6660. if bflush != 0 {
  6661. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6662. v16 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt64((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6663. } else {
  6664. v16 = libc.UintptrFromInt32(m_Z_NULL)
  6665. }
  6666. x__tr_flush_block(tls, s, v16, libc.Uint64FromInt64(libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), 0)
  6667. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6668. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6669. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6670. return int32(_need_more)
  6671. }
  6672. }
  6673. } else {
  6674. if (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_available != 0 {
  6675. /* If there was no match at the previous position, output a
  6676. * single literal. If there was a match but the current match
  6677. * is longer, truncate the previous match to a single literal.
  6678. */
  6679. cc = *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart-uint32(1))))
  6680. v18 = s + 5900
  6681. v17 = *(*TuInt)(unsafe.Pointer(v18))
  6682. *(*TuInt)(unsafe.Pointer(v18))++
  6683. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v17))) = uint8(0)
  6684. v20 = s + 5900
  6685. v19 = *(*TuInt)(unsafe.Pointer(v20))
  6686. *(*TuInt)(unsafe.Pointer(v20))++
  6687. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v19))) = uint8(0)
  6688. v22 = s + 5900
  6689. v21 = *(*TuInt)(unsafe.Pointer(v22))
  6690. *(*TuInt)(unsafe.Pointer(v22))++
  6691. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v21))) = cc
  6692. *(*Tush)(unsafe.Pointer(s + 212 + uintptr(cc)*4))++
  6693. bflush = libc.BoolInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next == (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_end)
  6694. if bflush != 0 {
  6695. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6696. v23 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt64((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6697. } else {
  6698. v23 = libc.UintptrFromInt32(m_Z_NULL)
  6699. }
  6700. x__tr_flush_block(tls, s, v23, libc.Uint64FromInt64(libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), 0)
  6701. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6702. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6703. }
  6704. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart++
  6705. (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead--
  6706. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6707. return int32(_need_more)
  6708. }
  6709. } else {
  6710. /* There is no previous match to compare with, wait for
  6711. * the next step to decide.
  6712. */
  6713. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_available = int32(1)
  6714. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart++
  6715. (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead--
  6716. }
  6717. }
  6718. goto _1
  6719. _1:
  6720. }
  6721. if (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_available != 0 {
  6722. cc1 = *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart-uint32(1))))
  6723. v25 = s + 5900
  6724. v24 = *(*TuInt)(unsafe.Pointer(v25))
  6725. *(*TuInt)(unsafe.Pointer(v25))++
  6726. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v24))) = uint8(0)
  6727. v27 = s + 5900
  6728. v26 = *(*TuInt)(unsafe.Pointer(v27))
  6729. *(*TuInt)(unsafe.Pointer(v27))++
  6730. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v26))) = uint8(0)
  6731. v29 = s + 5900
  6732. v28 = *(*TuInt)(unsafe.Pointer(v29))
  6733. *(*TuInt)(unsafe.Pointer(v29))++
  6734. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v28))) = cc1
  6735. *(*Tush)(unsafe.Pointer(s + 212 + uintptr(cc1)*4))++
  6736. bflush = libc.BoolInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next == (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_end)
  6737. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_available = 0
  6738. }
  6739. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart < libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH)-libc.Int32FromInt32(1)) {
  6740. v30 = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart
  6741. } else {
  6742. v30 = libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH) - libc.Int32FromInt32(1))
  6743. }
  6744. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = v30
  6745. if flush == int32(m_Z_FINISH) {
  6746. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6747. v31 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt64((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6748. } else {
  6749. v31 = libc.UintptrFromInt32(m_Z_NULL)
  6750. }
  6751. x__tr_flush_block(tls, s, v31, libc.Uint64FromInt64(libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), int32(1))
  6752. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6753. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6754. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6755. return int32(_finish_started)
  6756. }
  6757. return int32(_finish_done)
  6758. }
  6759. if (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next != 0 {
  6760. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6761. v32 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt64((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6762. } else {
  6763. v32 = libc.UintptrFromInt32(m_Z_NULL)
  6764. }
  6765. x__tr_flush_block(tls, s, v32, libc.Uint64FromInt64(libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), 0)
  6766. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6767. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6768. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6769. return int32(_need_more)
  6770. }
  6771. }
  6772. return int32(_block_done)
  6773. }
  6774. // C documentation
  6775. //
  6776. // /* ===========================================================================
  6777. // * For Z_RLE, simply look for runs of bytes, generate matches only of distance
  6778. // * one. Do not maintain a hash table. (It will be regenerated if this run of
  6779. // * deflate switches away from Z_RLE.)
  6780. // */
  6781. func _deflate_rle(tls *libc.TLS, s uintptr, flush int32) (r Tblock_state) {
  6782. var bflush, v29 int32
  6783. var cc, len1 Tuch
  6784. var dist Tush
  6785. var prev, v23, v25, v27, v30, v32, v34 TuInt
  6786. var scan, strend, v10, v12, v14, v16, v18, v2, v20, v24, v26, v28, v3, v31, v33, v35, v36, v37, v38, v5, v7, v8 uintptr
  6787. var v11, v13, v15, v17, v19, v21, v4, v6, v9 bool
  6788. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bflush, cc, dist, len1, prev, scan, strend, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v2, v20, v21, v23, v24, v25, v26, v27, v28, v29, v3, v30, v31, v32, v33, v34, v35, v36, v37, v38, v4, v5, v6, v7, v8, v9 /* scan goes up to strend for length of run */
  6789. for {
  6790. /* Make sure that we always have enough lookahead, except
  6791. * at the end of the input file. We need MAX_MATCH bytes
  6792. * for the longest run, plus one for the unrolled loop.
  6793. */
  6794. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead <= uint32(m_MAX_MATCH) {
  6795. _fill_window(tls, s)
  6796. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead <= uint32(m_MAX_MATCH) && flush == m_Z_NO_FLUSH {
  6797. return int32(_need_more)
  6798. }
  6799. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead == uint32(0) {
  6800. break
  6801. } /* flush the current block */
  6802. }
  6803. /* See how many times the previous byte repeats */
  6804. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = uint32(0)
  6805. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead >= uint32(m_MIN_MATCH) && (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart > uint32(0) {
  6806. scan = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart) - uintptr(1)
  6807. prev = uint32(*(*TBytef)(unsafe.Pointer(scan)))
  6808. scan++
  6809. v2 = scan
  6810. if v4 = prev == uint32(*(*TBytef)(unsafe.Pointer(v2))); v4 {
  6811. scan++
  6812. v3 = scan
  6813. }
  6814. if v6 = v4 && prev == uint32(*(*TBytef)(unsafe.Pointer(v3))); v6 {
  6815. scan++
  6816. v5 = scan
  6817. }
  6818. if v6 && prev == uint32(*(*TBytef)(unsafe.Pointer(v5))) {
  6819. strend = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart) + uintptr(m_MAX_MATCH)
  6820. for {
  6821. goto _22
  6822. _22:
  6823. ;
  6824. scan++
  6825. v7 = scan
  6826. if v9 = prev == uint32(*(*TBytef)(unsafe.Pointer(v7))); v9 {
  6827. scan++
  6828. v8 = scan
  6829. }
  6830. if v11 = v9 && prev == uint32(*(*TBytef)(unsafe.Pointer(v8))); v11 {
  6831. scan++
  6832. v10 = scan
  6833. }
  6834. if v13 = v11 && prev == uint32(*(*TBytef)(unsafe.Pointer(v10))); v13 {
  6835. scan++
  6836. v12 = scan
  6837. }
  6838. if v15 = v13 && prev == uint32(*(*TBytef)(unsafe.Pointer(v12))); v15 {
  6839. scan++
  6840. v14 = scan
  6841. }
  6842. if v17 = v15 && prev == uint32(*(*TBytef)(unsafe.Pointer(v14))); v17 {
  6843. scan++
  6844. v16 = scan
  6845. }
  6846. if v19 = v17 && prev == uint32(*(*TBytef)(unsafe.Pointer(v16))); v19 {
  6847. scan++
  6848. v18 = scan
  6849. }
  6850. if v21 = v19 && prev == uint32(*(*TBytef)(unsafe.Pointer(v18))); v21 {
  6851. scan++
  6852. v20 = scan
  6853. }
  6854. if !(v21 && prev == uint32(*(*TBytef)(unsafe.Pointer(v20))) && scan < strend) {
  6855. break
  6856. }
  6857. }
  6858. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = uint32(m_MAX_MATCH) - libc.Uint32FromInt64(int64(strend)-int64(scan))
  6859. if (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length > (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead {
  6860. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead
  6861. }
  6862. }
  6863. }
  6864. /* Emit match if have run of MIN_MATCH or longer, else emit literal */
  6865. if (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length >= uint32(m_MIN_MATCH) {
  6866. len1 = uint8((*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length - libc.Uint32FromInt32(m_MIN_MATCH))
  6867. dist = libc.Uint16FromInt32(libc.Int32FromInt32(1))
  6868. v24 = s + 5900
  6869. v23 = *(*TuInt)(unsafe.Pointer(v24))
  6870. *(*TuInt)(unsafe.Pointer(v24))++
  6871. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v23))) = uint8(dist)
  6872. v26 = s + 5900
  6873. v25 = *(*TuInt)(unsafe.Pointer(v26))
  6874. *(*TuInt)(unsafe.Pointer(v26))++
  6875. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v25))) = libc.Uint8FromInt32(libc.Int32FromUint16(dist) >> libc.Int32FromInt32(8))
  6876. v28 = s + 5900
  6877. v27 = *(*TuInt)(unsafe.Pointer(v28))
  6878. *(*TuInt)(unsafe.Pointer(v28))++
  6879. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v27))) = len1
  6880. dist--
  6881. *(*Tush)(unsafe.Pointer(s + 212 + uintptr(libc.Int32FromUint8(x__length_code[len1])+int32(m_LITERALS)+int32(1))*4))++
  6882. if libc.Int32FromUint16(dist) < int32(256) {
  6883. v29 = libc.Int32FromUint8(x__dist_code[dist])
  6884. } else {
  6885. v29 = libc.Int32FromUint8(x__dist_code[int32(256)+libc.Int32FromUint16(dist)>>int32(7)])
  6886. }
  6887. *(*Tush)(unsafe.Pointer(s + 2504 + uintptr(v29)*4))++
  6888. bflush = libc.BoolInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next == (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_end)
  6889. *(*TuInt)(unsafe.Pointer(s + 180)) -= (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length
  6890. *(*TuInt)(unsafe.Pointer(s + 172)) += (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length
  6891. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = uint32(0)
  6892. } else {
  6893. /* No match, output a literal byte */
  6894. cc = *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)))
  6895. v31 = s + 5900
  6896. v30 = *(*TuInt)(unsafe.Pointer(v31))
  6897. *(*TuInt)(unsafe.Pointer(v31))++
  6898. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v30))) = uint8(0)
  6899. v33 = s + 5900
  6900. v32 = *(*TuInt)(unsafe.Pointer(v33))
  6901. *(*TuInt)(unsafe.Pointer(v33))++
  6902. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v32))) = uint8(0)
  6903. v35 = s + 5900
  6904. v34 = *(*TuInt)(unsafe.Pointer(v35))
  6905. *(*TuInt)(unsafe.Pointer(v35))++
  6906. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v34))) = cc
  6907. *(*Tush)(unsafe.Pointer(s + 212 + uintptr(cc)*4))++
  6908. bflush = libc.BoolInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next == (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_end)
  6909. (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead--
  6910. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart++
  6911. }
  6912. if bflush != 0 {
  6913. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6914. v36 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt64((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6915. } else {
  6916. v36 = libc.UintptrFromInt32(m_Z_NULL)
  6917. }
  6918. x__tr_flush_block(tls, s, v36, libc.Uint64FromInt64(libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), 0)
  6919. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6920. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6921. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6922. return int32(_need_more)
  6923. }
  6924. }
  6925. goto _1
  6926. _1:
  6927. }
  6928. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = uint32(0)
  6929. if flush == int32(m_Z_FINISH) {
  6930. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6931. v37 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt64((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6932. } else {
  6933. v37 = libc.UintptrFromInt32(m_Z_NULL)
  6934. }
  6935. x__tr_flush_block(tls, s, v37, libc.Uint64FromInt64(libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), int32(1))
  6936. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6937. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6938. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6939. return int32(_finish_started)
  6940. }
  6941. return int32(_finish_done)
  6942. }
  6943. if (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next != 0 {
  6944. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6945. v38 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt64((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6946. } else {
  6947. v38 = libc.UintptrFromInt32(m_Z_NULL)
  6948. }
  6949. x__tr_flush_block(tls, s, v38, libc.Uint64FromInt64(libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), 0)
  6950. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6951. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6952. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6953. return int32(_need_more)
  6954. }
  6955. }
  6956. return int32(_block_done)
  6957. }
  6958. // C documentation
  6959. //
  6960. // /* ===========================================================================
  6961. // * For Z_HUFFMAN_ONLY, do not look for matches. Do not maintain a hash table.
  6962. // * (It will be regenerated if this run of deflate switches away from Huffman.)
  6963. // */
  6964. func _deflate_huff(tls *libc.TLS, s uintptr, flush int32) (r Tblock_state) {
  6965. var bflush int32
  6966. var cc Tuch
  6967. var v10, v3, v5, v7, v8, v9 uintptr
  6968. var v2, v4, v6 TuInt
  6969. _, _, _, _, _, _, _, _, _, _, _ = bflush, cc, v10, v2, v3, v4, v5, v6, v7, v8, v9 /* set if current block must be flushed */
  6970. for {
  6971. /* Make sure that we have a literal to write. */
  6972. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead == uint32(0) {
  6973. _fill_window(tls, s)
  6974. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead == uint32(0) {
  6975. if flush == m_Z_NO_FLUSH {
  6976. return int32(_need_more)
  6977. }
  6978. break /* flush the current block */
  6979. }
  6980. }
  6981. /* Output a literal byte */
  6982. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = uint32(0)
  6983. cc = *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)))
  6984. v3 = s + 5900
  6985. v2 = *(*TuInt)(unsafe.Pointer(v3))
  6986. *(*TuInt)(unsafe.Pointer(v3))++
  6987. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v2))) = uint8(0)
  6988. v5 = s + 5900
  6989. v4 = *(*TuInt)(unsafe.Pointer(v5))
  6990. *(*TuInt)(unsafe.Pointer(v5))++
  6991. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v4))) = uint8(0)
  6992. v7 = s + 5900
  6993. v6 = *(*TuInt)(unsafe.Pointer(v7))
  6994. *(*TuInt)(unsafe.Pointer(v7))++
  6995. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v6))) = cc
  6996. *(*Tush)(unsafe.Pointer(s + 212 + uintptr(cc)*4))++
  6997. bflush = libc.BoolInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next == (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_end)
  6998. (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead--
  6999. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart++
  7000. if bflush != 0 {
  7001. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  7002. v8 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt64((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  7003. } else {
  7004. v8 = libc.UintptrFromInt32(m_Z_NULL)
  7005. }
  7006. x__tr_flush_block(tls, s, v8, libc.Uint64FromInt64(libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), 0)
  7007. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  7008. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  7009. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  7010. return int32(_need_more)
  7011. }
  7012. }
  7013. goto _1
  7014. _1:
  7015. }
  7016. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = uint32(0)
  7017. if flush == int32(m_Z_FINISH) {
  7018. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  7019. v9 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt64((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  7020. } else {
  7021. v9 = libc.UintptrFromInt32(m_Z_NULL)
  7022. }
  7023. x__tr_flush_block(tls, s, v9, libc.Uint64FromInt64(libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), int32(1))
  7024. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  7025. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  7026. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  7027. return int32(_finish_started)
  7028. }
  7029. return int32(_finish_done)
  7030. }
  7031. if (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next != 0 {
  7032. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  7033. v10 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt64((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  7034. } else {
  7035. v10 = libc.UintptrFromInt32(m_Z_NULL)
  7036. }
  7037. x__tr_flush_block(tls, s, v10, libc.Uint64FromInt64(libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), 0)
  7038. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int64FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  7039. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  7040. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  7041. return int32(_need_more)
  7042. }
  7043. }
  7044. return int32(_block_done)
  7045. }
  7046. const m_ENOUGH_DISTS = 592
  7047. const m_ENOUGH_LENS = 852
  7048. const m_PRESET_DICT2 = 0x20
  7049. type Tcode = struct {
  7050. Fop uint8
  7051. Fbits uint8
  7052. Fval uint16
  7053. }
  7054. type Tcodetype = int32
  7055. const _CODES = 0
  7056. const _LENS = 1
  7057. const _DISTS = 2
  7058. type Tinflate_mode = int32
  7059. const _HEAD = 16180
  7060. const _FLAGS = 16181
  7061. const _TIME = 16182
  7062. const _OS = 16183
  7063. const _EXLEN = 16184
  7064. const _EXTRA = 16185
  7065. const _NAME = 16186
  7066. const _COMMENT = 16187
  7067. const _HCRC = 16188
  7068. const _DICTID = 16189
  7069. const _DICT = 16190
  7070. const _TYPE = 16191
  7071. const _TYPEDO = 16192
  7072. const _STORED = 16193
  7073. const _COPY_ = 16194
  7074. const _COPY = 16195
  7075. const _TABLE = 16196
  7076. const _LENLENS = 16197
  7077. const _CODELENS = 16198
  7078. const _LEN_ = 16199
  7079. const _LEN = 16200
  7080. const _LENEXT = 16201
  7081. const _DIST = 16202
  7082. const _DISTEXT = 16203
  7083. const _MATCH = 16204
  7084. const _LIT = 16205
  7085. const _CHECK = 16206
  7086. const _LENGTH = 16207
  7087. const _DONE = 16208
  7088. const _BAD = 16209
  7089. const _MEM = 16210
  7090. const _SYNC = 16211
  7091. type Tinflate_state = struct {
  7092. Fstrm Tz_streamp
  7093. Fmode Tinflate_mode
  7094. Flast int32
  7095. Fwrap int32
  7096. Fhavedict int32
  7097. Fflags int32
  7098. Fdmax uint32
  7099. Fcheck uint64
  7100. Ftotal uint64
  7101. Fhead Tgz_headerp
  7102. Fwbits uint32
  7103. Fwsize uint32
  7104. Fwhave uint32
  7105. Fwnext uint32
  7106. Fwindow uintptr
  7107. Fhold uint64
  7108. Fbits uint32
  7109. Flength uint32
  7110. Foffset uint32
  7111. Fextra uint32
  7112. Flencode uintptr
  7113. Fdistcode uintptr
  7114. Flenbits uint32
  7115. Fdistbits uint32
  7116. Fncode uint32
  7117. Fnlen uint32
  7118. Fndist uint32
  7119. Fhave uint32
  7120. Fnext uintptr
  7121. Flens [320]uint16
  7122. Fwork [288]uint16
  7123. Fcodes [1444]Tcode
  7124. Fsane int32
  7125. Fback int32
  7126. Fwas uint32
  7127. }
  7128. // C documentation
  7129. //
  7130. // /*
  7131. // strm provides memory allocation functions in zalloc and zfree, or
  7132. // Z_NULL to use the library memory allocation functions.
  7133. //
  7134. // windowBits is in the range 8..15, and window is a user-supplied
  7135. // window and output buffer that is 2**windowBits bytes.
  7136. // */
  7137. func XinflateBackInit_(tls *libc.TLS, strm Tz_streamp, windowBits int32, window uintptr, version uintptr, stream_size int32) (r int32) {
  7138. var state uintptr
  7139. _ = state
  7140. if version == uintptr(m_Z_NULL) || int32(*(*int8)(unsafe.Pointer(version))) != int32(*(*int8)(unsafe.Pointer(__ccgo_ts))) || stream_size != libc.Int32FromUint64(libc.Uint64FromInt64(112)) {
  7141. return -int32(6)
  7142. }
  7143. if strm == uintptr(m_Z_NULL) || window == uintptr(m_Z_NULL) || windowBits < int32(8) || windowBits > int32(15) {
  7144. return -int32(2)
  7145. }
  7146. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = uintptr(m_Z_NULL) /* in case we return an error */
  7147. if (*Tz_stream)(unsafe.Pointer(strm)).Fzalloc == libc.UintptrFromInt32(0) {
  7148. (*Tz_stream)(unsafe.Pointer(strm)).Fzalloc = __ccgo_fp(Xzcalloc)
  7149. (*Tz_stream)(unsafe.Pointer(strm)).Fopaque = libc.UintptrFromInt32(0)
  7150. }
  7151. if (*Tz_stream)(unsafe.Pointer(strm)).Fzfree == libc.UintptrFromInt32(0) {
  7152. (*Tz_stream)(unsafe.Pointer(strm)).Fzfree = __ccgo_fp(Xzcfree)
  7153. }
  7154. state = (*(*func(*libc.TLS, Tvoidpf, TuInt, TuInt) Tvoidpf)(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(strm)).Fzalloc})))(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fopaque, libc.Uint32FromInt32(libc.Int32FromInt32(1)), uint32(libc.Uint64FromInt64(7160)))
  7155. if state == uintptr(m_Z_NULL) {
  7156. return -int32(4)
  7157. }
  7158. (*Tz_stream)(unsafe.Pointer(strm)).Fstate = state
  7159. (*Tinflate_state)(unsafe.Pointer(state)).Fdmax = uint32(32768)
  7160. (*Tinflate_state)(unsafe.Pointer(state)).Fwbits = libc.Uint32FromInt32(windowBits)
  7161. (*Tinflate_state)(unsafe.Pointer(state)).Fwsize = uint32(1) << windowBits
  7162. (*Tinflate_state)(unsafe.Pointer(state)).Fwindow = window
  7163. (*Tinflate_state)(unsafe.Pointer(state)).Fwnext = uint32(0)
  7164. (*Tinflate_state)(unsafe.Pointer(state)).Fwhave = uint32(0)
  7165. (*Tinflate_state)(unsafe.Pointer(state)).Fsane = int32(1)
  7166. return m_Z_OK
  7167. }
  7168. // C documentation
  7169. //
  7170. // /*
  7171. // Return state with length and distance decoding tables and index sizes set to
  7172. // fixed code decoding. Normally this returns fixed tables from inffixed.h.
  7173. // If BUILDFIXED is defined, then instead this routine builds the tables the
  7174. // first time it's called, and returns those tables the first time and
  7175. // thereafter. This reduces the size of the code by about 2K bytes, in
  7176. // exchange for a little execution time. However, BUILDFIXED should not be
  7177. // used for threaded applications, since the rewriting of the tables and virgin
  7178. // may not be thread-safe.
  7179. // */
  7180. func _fixedtables(tls *libc.TLS, state uintptr) {
  7181. (*Tinflate_state)(unsafe.Pointer(state)).Flencode = uintptr(unsafe.Pointer(&_lenfix))
  7182. (*Tinflate_state)(unsafe.Pointer(state)).Flenbits = uint32(9)
  7183. (*Tinflate_state)(unsafe.Pointer(state)).Fdistcode = uintptr(unsafe.Pointer(&_distfix))
  7184. (*Tinflate_state)(unsafe.Pointer(state)).Fdistbits = uint32(5)
  7185. }
  7186. var _lenfix = [512]Tcode{
  7187. 0: {
  7188. Fop: uint8(96),
  7189. Fbits: uint8(7),
  7190. },
  7191. 1: {
  7192. Fbits: uint8(8),
  7193. Fval: uint16(80),
  7194. },
  7195. 2: {
  7196. Fbits: uint8(8),
  7197. Fval: uint16(16),
  7198. },
  7199. 3: {
  7200. Fop: uint8(20),
  7201. Fbits: uint8(8),
  7202. Fval: uint16(115),
  7203. },
  7204. 4: {
  7205. Fop: uint8(18),
  7206. Fbits: uint8(7),
  7207. Fval: uint16(31),
  7208. },
  7209. 5: {
  7210. Fbits: uint8(8),
  7211. Fval: uint16(112),
  7212. },
  7213. 6: {
  7214. Fbits: uint8(8),
  7215. Fval: uint16(48),
  7216. },
  7217. 7: {
  7218. Fbits: uint8(9),
  7219. Fval: uint16(192),
  7220. },
  7221. 8: {
  7222. Fop: uint8(16),
  7223. Fbits: uint8(7),
  7224. Fval: uint16(10),
  7225. },
  7226. 9: {
  7227. Fbits: uint8(8),
  7228. Fval: uint16(96),
  7229. },
  7230. 10: {
  7231. Fbits: uint8(8),
  7232. Fval: uint16(32),
  7233. },
  7234. 11: {
  7235. Fbits: uint8(9),
  7236. Fval: uint16(160),
  7237. },
  7238. 12: {
  7239. Fbits: uint8(8),
  7240. },
  7241. 13: {
  7242. Fbits: uint8(8),
  7243. Fval: uint16(128),
  7244. },
  7245. 14: {
  7246. Fbits: uint8(8),
  7247. Fval: uint16(64),
  7248. },
  7249. 15: {
  7250. Fbits: uint8(9),
  7251. Fval: uint16(224),
  7252. },
  7253. 16: {
  7254. Fop: uint8(16),
  7255. Fbits: uint8(7),
  7256. Fval: uint16(6),
  7257. },
  7258. 17: {
  7259. Fbits: uint8(8),
  7260. Fval: uint16(88),
  7261. },
  7262. 18: {
  7263. Fbits: uint8(8),
  7264. Fval: uint16(24),
  7265. },
  7266. 19: {
  7267. Fbits: uint8(9),
  7268. Fval: uint16(144),
  7269. },
  7270. 20: {
  7271. Fop: uint8(19),
  7272. Fbits: uint8(7),
  7273. Fval: uint16(59),
  7274. },
  7275. 21: {
  7276. Fbits: uint8(8),
  7277. Fval: uint16(120),
  7278. },
  7279. 22: {
  7280. Fbits: uint8(8),
  7281. Fval: uint16(56),
  7282. },
  7283. 23: {
  7284. Fbits: uint8(9),
  7285. Fval: uint16(208),
  7286. },
  7287. 24: {
  7288. Fop: uint8(17),
  7289. Fbits: uint8(7),
  7290. Fval: uint16(17),
  7291. },
  7292. 25: {
  7293. Fbits: uint8(8),
  7294. Fval: uint16(104),
  7295. },
  7296. 26: {
  7297. Fbits: uint8(8),
  7298. Fval: uint16(40),
  7299. },
  7300. 27: {
  7301. Fbits: uint8(9),
  7302. Fval: uint16(176),
  7303. },
  7304. 28: {
  7305. Fbits: uint8(8),
  7306. Fval: uint16(8),
  7307. },
  7308. 29: {
  7309. Fbits: uint8(8),
  7310. Fval: uint16(136),
  7311. },
  7312. 30: {
  7313. Fbits: uint8(8),
  7314. Fval: uint16(72),
  7315. },
  7316. 31: {
  7317. Fbits: uint8(9),
  7318. Fval: uint16(240),
  7319. },
  7320. 32: {
  7321. Fop: uint8(16),
  7322. Fbits: uint8(7),
  7323. Fval: uint16(4),
  7324. },
  7325. 33: {
  7326. Fbits: uint8(8),
  7327. Fval: uint16(84),
  7328. },
  7329. 34: {
  7330. Fbits: uint8(8),
  7331. Fval: uint16(20),
  7332. },
  7333. 35: {
  7334. Fop: uint8(21),
  7335. Fbits: uint8(8),
  7336. Fval: uint16(227),
  7337. },
  7338. 36: {
  7339. Fop: uint8(19),
  7340. Fbits: uint8(7),
  7341. Fval: uint16(43),
  7342. },
  7343. 37: {
  7344. Fbits: uint8(8),
  7345. Fval: uint16(116),
  7346. },
  7347. 38: {
  7348. Fbits: uint8(8),
  7349. Fval: uint16(52),
  7350. },
  7351. 39: {
  7352. Fbits: uint8(9),
  7353. Fval: uint16(200),
  7354. },
  7355. 40: {
  7356. Fop: uint8(17),
  7357. Fbits: uint8(7),
  7358. Fval: uint16(13),
  7359. },
  7360. 41: {
  7361. Fbits: uint8(8),
  7362. Fval: uint16(100),
  7363. },
  7364. 42: {
  7365. Fbits: uint8(8),
  7366. Fval: uint16(36),
  7367. },
  7368. 43: {
  7369. Fbits: uint8(9),
  7370. Fval: uint16(168),
  7371. },
  7372. 44: {
  7373. Fbits: uint8(8),
  7374. Fval: uint16(4),
  7375. },
  7376. 45: {
  7377. Fbits: uint8(8),
  7378. Fval: uint16(132),
  7379. },
  7380. 46: {
  7381. Fbits: uint8(8),
  7382. Fval: uint16(68),
  7383. },
  7384. 47: {
  7385. Fbits: uint8(9),
  7386. Fval: uint16(232),
  7387. },
  7388. 48: {
  7389. Fop: uint8(16),
  7390. Fbits: uint8(7),
  7391. Fval: uint16(8),
  7392. },
  7393. 49: {
  7394. Fbits: uint8(8),
  7395. Fval: uint16(92),
  7396. },
  7397. 50: {
  7398. Fbits: uint8(8),
  7399. Fval: uint16(28),
  7400. },
  7401. 51: {
  7402. Fbits: uint8(9),
  7403. Fval: uint16(152),
  7404. },
  7405. 52: {
  7406. Fop: uint8(20),
  7407. Fbits: uint8(7),
  7408. Fval: uint16(83),
  7409. },
  7410. 53: {
  7411. Fbits: uint8(8),
  7412. Fval: uint16(124),
  7413. },
  7414. 54: {
  7415. Fbits: uint8(8),
  7416. Fval: uint16(60),
  7417. },
  7418. 55: {
  7419. Fbits: uint8(9),
  7420. Fval: uint16(216),
  7421. },
  7422. 56: {
  7423. Fop: uint8(18),
  7424. Fbits: uint8(7),
  7425. Fval: uint16(23),
  7426. },
  7427. 57: {
  7428. Fbits: uint8(8),
  7429. Fval: uint16(108),
  7430. },
  7431. 58: {
  7432. Fbits: uint8(8),
  7433. Fval: uint16(44),
  7434. },
  7435. 59: {
  7436. Fbits: uint8(9),
  7437. Fval: uint16(184),
  7438. },
  7439. 60: {
  7440. Fbits: uint8(8),
  7441. Fval: uint16(12),
  7442. },
  7443. 61: {
  7444. Fbits: uint8(8),
  7445. Fval: uint16(140),
  7446. },
  7447. 62: {
  7448. Fbits: uint8(8),
  7449. Fval: uint16(76),
  7450. },
  7451. 63: {
  7452. Fbits: uint8(9),
  7453. Fval: uint16(248),
  7454. },
  7455. 64: {
  7456. Fop: uint8(16),
  7457. Fbits: uint8(7),
  7458. Fval: uint16(3),
  7459. },
  7460. 65: {
  7461. Fbits: uint8(8),
  7462. Fval: uint16(82),
  7463. },
  7464. 66: {
  7465. Fbits: uint8(8),
  7466. Fval: uint16(18),
  7467. },
  7468. 67: {
  7469. Fop: uint8(21),
  7470. Fbits: uint8(8),
  7471. Fval: uint16(163),
  7472. },
  7473. 68: {
  7474. Fop: uint8(19),
  7475. Fbits: uint8(7),
  7476. Fval: uint16(35),
  7477. },
  7478. 69: {
  7479. Fbits: uint8(8),
  7480. Fval: uint16(114),
  7481. },
  7482. 70: {
  7483. Fbits: uint8(8),
  7484. Fval: uint16(50),
  7485. },
  7486. 71: {
  7487. Fbits: uint8(9),
  7488. Fval: uint16(196),
  7489. },
  7490. 72: {
  7491. Fop: uint8(17),
  7492. Fbits: uint8(7),
  7493. Fval: uint16(11),
  7494. },
  7495. 73: {
  7496. Fbits: uint8(8),
  7497. Fval: uint16(98),
  7498. },
  7499. 74: {
  7500. Fbits: uint8(8),
  7501. Fval: uint16(34),
  7502. },
  7503. 75: {
  7504. Fbits: uint8(9),
  7505. Fval: uint16(164),
  7506. },
  7507. 76: {
  7508. Fbits: uint8(8),
  7509. Fval: uint16(2),
  7510. },
  7511. 77: {
  7512. Fbits: uint8(8),
  7513. Fval: uint16(130),
  7514. },
  7515. 78: {
  7516. Fbits: uint8(8),
  7517. Fval: uint16(66),
  7518. },
  7519. 79: {
  7520. Fbits: uint8(9),
  7521. Fval: uint16(228),
  7522. },
  7523. 80: {
  7524. Fop: uint8(16),
  7525. Fbits: uint8(7),
  7526. Fval: uint16(7),
  7527. },
  7528. 81: {
  7529. Fbits: uint8(8),
  7530. Fval: uint16(90),
  7531. },
  7532. 82: {
  7533. Fbits: uint8(8),
  7534. Fval: uint16(26),
  7535. },
  7536. 83: {
  7537. Fbits: uint8(9),
  7538. Fval: uint16(148),
  7539. },
  7540. 84: {
  7541. Fop: uint8(20),
  7542. Fbits: uint8(7),
  7543. Fval: uint16(67),
  7544. },
  7545. 85: {
  7546. Fbits: uint8(8),
  7547. Fval: uint16(122),
  7548. },
  7549. 86: {
  7550. Fbits: uint8(8),
  7551. Fval: uint16(58),
  7552. },
  7553. 87: {
  7554. Fbits: uint8(9),
  7555. Fval: uint16(212),
  7556. },
  7557. 88: {
  7558. Fop: uint8(18),
  7559. Fbits: uint8(7),
  7560. Fval: uint16(19),
  7561. },
  7562. 89: {
  7563. Fbits: uint8(8),
  7564. Fval: uint16(106),
  7565. },
  7566. 90: {
  7567. Fbits: uint8(8),
  7568. Fval: uint16(42),
  7569. },
  7570. 91: {
  7571. Fbits: uint8(9),
  7572. Fval: uint16(180),
  7573. },
  7574. 92: {
  7575. Fbits: uint8(8),
  7576. Fval: uint16(10),
  7577. },
  7578. 93: {
  7579. Fbits: uint8(8),
  7580. Fval: uint16(138),
  7581. },
  7582. 94: {
  7583. Fbits: uint8(8),
  7584. Fval: uint16(74),
  7585. },
  7586. 95: {
  7587. Fbits: uint8(9),
  7588. Fval: uint16(244),
  7589. },
  7590. 96: {
  7591. Fop: uint8(16),
  7592. Fbits: uint8(7),
  7593. Fval: uint16(5),
  7594. },
  7595. 97: {
  7596. Fbits: uint8(8),
  7597. Fval: uint16(86),
  7598. },
  7599. 98: {
  7600. Fbits: uint8(8),
  7601. Fval: uint16(22),
  7602. },
  7603. 99: {
  7604. Fop: uint8(64),
  7605. Fbits: uint8(8),
  7606. },
  7607. 100: {
  7608. Fop: uint8(19),
  7609. Fbits: uint8(7),
  7610. Fval: uint16(51),
  7611. },
  7612. 101: {
  7613. Fbits: uint8(8),
  7614. Fval: uint16(118),
  7615. },
  7616. 102: {
  7617. Fbits: uint8(8),
  7618. Fval: uint16(54),
  7619. },
  7620. 103: {
  7621. Fbits: uint8(9),
  7622. Fval: uint16(204),
  7623. },
  7624. 104: {
  7625. Fop: uint8(17),
  7626. Fbits: uint8(7),
  7627. Fval: uint16(15),
  7628. },
  7629. 105: {
  7630. Fbits: uint8(8),
  7631. Fval: uint16(102),
  7632. },
  7633. 106: {
  7634. Fbits: uint8(8),
  7635. Fval: uint16(38),
  7636. },
  7637. 107: {
  7638. Fbits: uint8(9),
  7639. Fval: uint16(172),
  7640. },
  7641. 108: {
  7642. Fbits: uint8(8),
  7643. Fval: uint16(6),
  7644. },
  7645. 109: {
  7646. Fbits: uint8(8),
  7647. Fval: uint16(134),
  7648. },
  7649. 110: {
  7650. Fbits: uint8(8),
  7651. Fval: uint16(70),
  7652. },
  7653. 111: {
  7654. Fbits: uint8(9),
  7655. Fval: uint16(236),
  7656. },
  7657. 112: {
  7658. Fop: uint8(16),
  7659. Fbits: uint8(7),
  7660. Fval: uint16(9),
  7661. },
  7662. 113: {
  7663. Fbits: uint8(8),
  7664. Fval: uint16(94),
  7665. },
  7666. 114: {
  7667. Fbits: uint8(8),
  7668. Fval: uint16(30),
  7669. },
  7670. 115: {
  7671. Fbits: uint8(9),
  7672. Fval: uint16(156),
  7673. },
  7674. 116: {
  7675. Fop: uint8(20),
  7676. Fbits: uint8(7),
  7677. Fval: uint16(99),
  7678. },
  7679. 117: {
  7680. Fbits: uint8(8),
  7681. Fval: uint16(126),
  7682. },
  7683. 118: {
  7684. Fbits: uint8(8),
  7685. Fval: uint16(62),
  7686. },
  7687. 119: {
  7688. Fbits: uint8(9),
  7689. Fval: uint16(220),
  7690. },
  7691. 120: {
  7692. Fop: uint8(18),
  7693. Fbits: uint8(7),
  7694. Fval: uint16(27),
  7695. },
  7696. 121: {
  7697. Fbits: uint8(8),
  7698. Fval: uint16(110),
  7699. },
  7700. 122: {
  7701. Fbits: uint8(8),
  7702. Fval: uint16(46),
  7703. },
  7704. 123: {
  7705. Fbits: uint8(9),
  7706. Fval: uint16(188),
  7707. },
  7708. 124: {
  7709. Fbits: uint8(8),
  7710. Fval: uint16(14),
  7711. },
  7712. 125: {
  7713. Fbits: uint8(8),
  7714. Fval: uint16(142),
  7715. },
  7716. 126: {
  7717. Fbits: uint8(8),
  7718. Fval: uint16(78),
  7719. },
  7720. 127: {
  7721. Fbits: uint8(9),
  7722. Fval: uint16(252),
  7723. },
  7724. 128: {
  7725. Fop: uint8(96),
  7726. Fbits: uint8(7),
  7727. },
  7728. 129: {
  7729. Fbits: uint8(8),
  7730. Fval: uint16(81),
  7731. },
  7732. 130: {
  7733. Fbits: uint8(8),
  7734. Fval: uint16(17),
  7735. },
  7736. 131: {
  7737. Fop: uint8(21),
  7738. Fbits: uint8(8),
  7739. Fval: uint16(131),
  7740. },
  7741. 132: {
  7742. Fop: uint8(18),
  7743. Fbits: uint8(7),
  7744. Fval: uint16(31),
  7745. },
  7746. 133: {
  7747. Fbits: uint8(8),
  7748. Fval: uint16(113),
  7749. },
  7750. 134: {
  7751. Fbits: uint8(8),
  7752. Fval: uint16(49),
  7753. },
  7754. 135: {
  7755. Fbits: uint8(9),
  7756. Fval: uint16(194),
  7757. },
  7758. 136: {
  7759. Fop: uint8(16),
  7760. Fbits: uint8(7),
  7761. Fval: uint16(10),
  7762. },
  7763. 137: {
  7764. Fbits: uint8(8),
  7765. Fval: uint16(97),
  7766. },
  7767. 138: {
  7768. Fbits: uint8(8),
  7769. Fval: uint16(33),
  7770. },
  7771. 139: {
  7772. Fbits: uint8(9),
  7773. Fval: uint16(162),
  7774. },
  7775. 140: {
  7776. Fbits: uint8(8),
  7777. Fval: uint16(1),
  7778. },
  7779. 141: {
  7780. Fbits: uint8(8),
  7781. Fval: uint16(129),
  7782. },
  7783. 142: {
  7784. Fbits: uint8(8),
  7785. Fval: uint16(65),
  7786. },
  7787. 143: {
  7788. Fbits: uint8(9),
  7789. Fval: uint16(226),
  7790. },
  7791. 144: {
  7792. Fop: uint8(16),
  7793. Fbits: uint8(7),
  7794. Fval: uint16(6),
  7795. },
  7796. 145: {
  7797. Fbits: uint8(8),
  7798. Fval: uint16(89),
  7799. },
  7800. 146: {
  7801. Fbits: uint8(8),
  7802. Fval: uint16(25),
  7803. },
  7804. 147: {
  7805. Fbits: uint8(9),
  7806. Fval: uint16(146),
  7807. },
  7808. 148: {
  7809. Fop: uint8(19),
  7810. Fbits: uint8(7),
  7811. Fval: uint16(59),
  7812. },
  7813. 149: {
  7814. Fbits: uint8(8),
  7815. Fval: uint16(121),
  7816. },
  7817. 150: {
  7818. Fbits: uint8(8),
  7819. Fval: uint16(57),
  7820. },
  7821. 151: {
  7822. Fbits: uint8(9),
  7823. Fval: uint16(210),
  7824. },
  7825. 152: {
  7826. Fop: uint8(17),
  7827. Fbits: uint8(7),
  7828. Fval: uint16(17),
  7829. },
  7830. 153: {
  7831. Fbits: uint8(8),
  7832. Fval: uint16(105),
  7833. },
  7834. 154: {
  7835. Fbits: uint8(8),
  7836. Fval: uint16(41),
  7837. },
  7838. 155: {
  7839. Fbits: uint8(9),
  7840. Fval: uint16(178),
  7841. },
  7842. 156: {
  7843. Fbits: uint8(8),
  7844. Fval: uint16(9),
  7845. },
  7846. 157: {
  7847. Fbits: uint8(8),
  7848. Fval: uint16(137),
  7849. },
  7850. 158: {
  7851. Fbits: uint8(8),
  7852. Fval: uint16(73),
  7853. },
  7854. 159: {
  7855. Fbits: uint8(9),
  7856. Fval: uint16(242),
  7857. },
  7858. 160: {
  7859. Fop: uint8(16),
  7860. Fbits: uint8(7),
  7861. Fval: uint16(4),
  7862. },
  7863. 161: {
  7864. Fbits: uint8(8),
  7865. Fval: uint16(85),
  7866. },
  7867. 162: {
  7868. Fbits: uint8(8),
  7869. Fval: uint16(21),
  7870. },
  7871. 163: {
  7872. Fop: uint8(16),
  7873. Fbits: uint8(8),
  7874. Fval: uint16(258),
  7875. },
  7876. 164: {
  7877. Fop: uint8(19),
  7878. Fbits: uint8(7),
  7879. Fval: uint16(43),
  7880. },
  7881. 165: {
  7882. Fbits: uint8(8),
  7883. Fval: uint16(117),
  7884. },
  7885. 166: {
  7886. Fbits: uint8(8),
  7887. Fval: uint16(53),
  7888. },
  7889. 167: {
  7890. Fbits: uint8(9),
  7891. Fval: uint16(202),
  7892. },
  7893. 168: {
  7894. Fop: uint8(17),
  7895. Fbits: uint8(7),
  7896. Fval: uint16(13),
  7897. },
  7898. 169: {
  7899. Fbits: uint8(8),
  7900. Fval: uint16(101),
  7901. },
  7902. 170: {
  7903. Fbits: uint8(8),
  7904. Fval: uint16(37),
  7905. },
  7906. 171: {
  7907. Fbits: uint8(9),
  7908. Fval: uint16(170),
  7909. },
  7910. 172: {
  7911. Fbits: uint8(8),
  7912. Fval: uint16(5),
  7913. },
  7914. 173: {
  7915. Fbits: uint8(8),
  7916. Fval: uint16(133),
  7917. },
  7918. 174: {
  7919. Fbits: uint8(8),
  7920. Fval: uint16(69),
  7921. },
  7922. 175: {
  7923. Fbits: uint8(9),
  7924. Fval: uint16(234),
  7925. },
  7926. 176: {
  7927. Fop: uint8(16),
  7928. Fbits: uint8(7),
  7929. Fval: uint16(8),
  7930. },
  7931. 177: {
  7932. Fbits: uint8(8),
  7933. Fval: uint16(93),
  7934. },
  7935. 178: {
  7936. Fbits: uint8(8),
  7937. Fval: uint16(29),
  7938. },
  7939. 179: {
  7940. Fbits: uint8(9),
  7941. Fval: uint16(154),
  7942. },
  7943. 180: {
  7944. Fop: uint8(20),
  7945. Fbits: uint8(7),
  7946. Fval: uint16(83),
  7947. },
  7948. 181: {
  7949. Fbits: uint8(8),
  7950. Fval: uint16(125),
  7951. },
  7952. 182: {
  7953. Fbits: uint8(8),
  7954. Fval: uint16(61),
  7955. },
  7956. 183: {
  7957. Fbits: uint8(9),
  7958. Fval: uint16(218),
  7959. },
  7960. 184: {
  7961. Fop: uint8(18),
  7962. Fbits: uint8(7),
  7963. Fval: uint16(23),
  7964. },
  7965. 185: {
  7966. Fbits: uint8(8),
  7967. Fval: uint16(109),
  7968. },
  7969. 186: {
  7970. Fbits: uint8(8),
  7971. Fval: uint16(45),
  7972. },
  7973. 187: {
  7974. Fbits: uint8(9),
  7975. Fval: uint16(186),
  7976. },
  7977. 188: {
  7978. Fbits: uint8(8),
  7979. Fval: uint16(13),
  7980. },
  7981. 189: {
  7982. Fbits: uint8(8),
  7983. Fval: uint16(141),
  7984. },
  7985. 190: {
  7986. Fbits: uint8(8),
  7987. Fval: uint16(77),
  7988. },
  7989. 191: {
  7990. Fbits: uint8(9),
  7991. Fval: uint16(250),
  7992. },
  7993. 192: {
  7994. Fop: uint8(16),
  7995. Fbits: uint8(7),
  7996. Fval: uint16(3),
  7997. },
  7998. 193: {
  7999. Fbits: uint8(8),
  8000. Fval: uint16(83),
  8001. },
  8002. 194: {
  8003. Fbits: uint8(8),
  8004. Fval: uint16(19),
  8005. },
  8006. 195: {
  8007. Fop: uint8(21),
  8008. Fbits: uint8(8),
  8009. Fval: uint16(195),
  8010. },
  8011. 196: {
  8012. Fop: uint8(19),
  8013. Fbits: uint8(7),
  8014. Fval: uint16(35),
  8015. },
  8016. 197: {
  8017. Fbits: uint8(8),
  8018. Fval: uint16(115),
  8019. },
  8020. 198: {
  8021. Fbits: uint8(8),
  8022. Fval: uint16(51),
  8023. },
  8024. 199: {
  8025. Fbits: uint8(9),
  8026. Fval: uint16(198),
  8027. },
  8028. 200: {
  8029. Fop: uint8(17),
  8030. Fbits: uint8(7),
  8031. Fval: uint16(11),
  8032. },
  8033. 201: {
  8034. Fbits: uint8(8),
  8035. Fval: uint16(99),
  8036. },
  8037. 202: {
  8038. Fbits: uint8(8),
  8039. Fval: uint16(35),
  8040. },
  8041. 203: {
  8042. Fbits: uint8(9),
  8043. Fval: uint16(166),
  8044. },
  8045. 204: {
  8046. Fbits: uint8(8),
  8047. Fval: uint16(3),
  8048. },
  8049. 205: {
  8050. Fbits: uint8(8),
  8051. Fval: uint16(131),
  8052. },
  8053. 206: {
  8054. Fbits: uint8(8),
  8055. Fval: uint16(67),
  8056. },
  8057. 207: {
  8058. Fbits: uint8(9),
  8059. Fval: uint16(230),
  8060. },
  8061. 208: {
  8062. Fop: uint8(16),
  8063. Fbits: uint8(7),
  8064. Fval: uint16(7),
  8065. },
  8066. 209: {
  8067. Fbits: uint8(8),
  8068. Fval: uint16(91),
  8069. },
  8070. 210: {
  8071. Fbits: uint8(8),
  8072. Fval: uint16(27),
  8073. },
  8074. 211: {
  8075. Fbits: uint8(9),
  8076. Fval: uint16(150),
  8077. },
  8078. 212: {
  8079. Fop: uint8(20),
  8080. Fbits: uint8(7),
  8081. Fval: uint16(67),
  8082. },
  8083. 213: {
  8084. Fbits: uint8(8),
  8085. Fval: uint16(123),
  8086. },
  8087. 214: {
  8088. Fbits: uint8(8),
  8089. Fval: uint16(59),
  8090. },
  8091. 215: {
  8092. Fbits: uint8(9),
  8093. Fval: uint16(214),
  8094. },
  8095. 216: {
  8096. Fop: uint8(18),
  8097. Fbits: uint8(7),
  8098. Fval: uint16(19),
  8099. },
  8100. 217: {
  8101. Fbits: uint8(8),
  8102. Fval: uint16(107),
  8103. },
  8104. 218: {
  8105. Fbits: uint8(8),
  8106. Fval: uint16(43),
  8107. },
  8108. 219: {
  8109. Fbits: uint8(9),
  8110. Fval: uint16(182),
  8111. },
  8112. 220: {
  8113. Fbits: uint8(8),
  8114. Fval: uint16(11),
  8115. },
  8116. 221: {
  8117. Fbits: uint8(8),
  8118. Fval: uint16(139),
  8119. },
  8120. 222: {
  8121. Fbits: uint8(8),
  8122. Fval: uint16(75),
  8123. },
  8124. 223: {
  8125. Fbits: uint8(9),
  8126. Fval: uint16(246),
  8127. },
  8128. 224: {
  8129. Fop: uint8(16),
  8130. Fbits: uint8(7),
  8131. Fval: uint16(5),
  8132. },
  8133. 225: {
  8134. Fbits: uint8(8),
  8135. Fval: uint16(87),
  8136. },
  8137. 226: {
  8138. Fbits: uint8(8),
  8139. Fval: uint16(23),
  8140. },
  8141. 227: {
  8142. Fop: uint8(64),
  8143. Fbits: uint8(8),
  8144. },
  8145. 228: {
  8146. Fop: uint8(19),
  8147. Fbits: uint8(7),
  8148. Fval: uint16(51),
  8149. },
  8150. 229: {
  8151. Fbits: uint8(8),
  8152. Fval: uint16(119),
  8153. },
  8154. 230: {
  8155. Fbits: uint8(8),
  8156. Fval: uint16(55),
  8157. },
  8158. 231: {
  8159. Fbits: uint8(9),
  8160. Fval: uint16(206),
  8161. },
  8162. 232: {
  8163. Fop: uint8(17),
  8164. Fbits: uint8(7),
  8165. Fval: uint16(15),
  8166. },
  8167. 233: {
  8168. Fbits: uint8(8),
  8169. Fval: uint16(103),
  8170. },
  8171. 234: {
  8172. Fbits: uint8(8),
  8173. Fval: uint16(39),
  8174. },
  8175. 235: {
  8176. Fbits: uint8(9),
  8177. Fval: uint16(174),
  8178. },
  8179. 236: {
  8180. Fbits: uint8(8),
  8181. Fval: uint16(7),
  8182. },
  8183. 237: {
  8184. Fbits: uint8(8),
  8185. Fval: uint16(135),
  8186. },
  8187. 238: {
  8188. Fbits: uint8(8),
  8189. Fval: uint16(71),
  8190. },
  8191. 239: {
  8192. Fbits: uint8(9),
  8193. Fval: uint16(238),
  8194. },
  8195. 240: {
  8196. Fop: uint8(16),
  8197. Fbits: uint8(7),
  8198. Fval: uint16(9),
  8199. },
  8200. 241: {
  8201. Fbits: uint8(8),
  8202. Fval: uint16(95),
  8203. },
  8204. 242: {
  8205. Fbits: uint8(8),
  8206. Fval: uint16(31),
  8207. },
  8208. 243: {
  8209. Fbits: uint8(9),
  8210. Fval: uint16(158),
  8211. },
  8212. 244: {
  8213. Fop: uint8(20),
  8214. Fbits: uint8(7),
  8215. Fval: uint16(99),
  8216. },
  8217. 245: {
  8218. Fbits: uint8(8),
  8219. Fval: uint16(127),
  8220. },
  8221. 246: {
  8222. Fbits: uint8(8),
  8223. Fval: uint16(63),
  8224. },
  8225. 247: {
  8226. Fbits: uint8(9),
  8227. Fval: uint16(222),
  8228. },
  8229. 248: {
  8230. Fop: uint8(18),
  8231. Fbits: uint8(7),
  8232. Fval: uint16(27),
  8233. },
  8234. 249: {
  8235. Fbits: uint8(8),
  8236. Fval: uint16(111),
  8237. },
  8238. 250: {
  8239. Fbits: uint8(8),
  8240. Fval: uint16(47),
  8241. },
  8242. 251: {
  8243. Fbits: uint8(9),
  8244. Fval: uint16(190),
  8245. },
  8246. 252: {
  8247. Fbits: uint8(8),
  8248. Fval: uint16(15),
  8249. },
  8250. 253: {
  8251. Fbits: uint8(8),
  8252. Fval: uint16(143),
  8253. },
  8254. 254: {
  8255. Fbits: uint8(8),
  8256. Fval: uint16(79),
  8257. },
  8258. 255: {
  8259. Fbits: uint8(9),
  8260. Fval: uint16(254),
  8261. },
  8262. 256: {
  8263. Fop: uint8(96),
  8264. Fbits: uint8(7),
  8265. },
  8266. 257: {
  8267. Fbits: uint8(8),
  8268. Fval: uint16(80),
  8269. },
  8270. 258: {
  8271. Fbits: uint8(8),
  8272. Fval: uint16(16),
  8273. },
  8274. 259: {
  8275. Fop: uint8(20),
  8276. Fbits: uint8(8),
  8277. Fval: uint16(115),
  8278. },
  8279. 260: {
  8280. Fop: uint8(18),
  8281. Fbits: uint8(7),
  8282. Fval: uint16(31),
  8283. },
  8284. 261: {
  8285. Fbits: uint8(8),
  8286. Fval: uint16(112),
  8287. },
  8288. 262: {
  8289. Fbits: uint8(8),
  8290. Fval: uint16(48),
  8291. },
  8292. 263: {
  8293. Fbits: uint8(9),
  8294. Fval: uint16(193),
  8295. },
  8296. 264: {
  8297. Fop: uint8(16),
  8298. Fbits: uint8(7),
  8299. Fval: uint16(10),
  8300. },
  8301. 265: {
  8302. Fbits: uint8(8),
  8303. Fval: uint16(96),
  8304. },
  8305. 266: {
  8306. Fbits: uint8(8),
  8307. Fval: uint16(32),
  8308. },
  8309. 267: {
  8310. Fbits: uint8(9),
  8311. Fval: uint16(161),
  8312. },
  8313. 268: {
  8314. Fbits: uint8(8),
  8315. },
  8316. 269: {
  8317. Fbits: uint8(8),
  8318. Fval: uint16(128),
  8319. },
  8320. 270: {
  8321. Fbits: uint8(8),
  8322. Fval: uint16(64),
  8323. },
  8324. 271: {
  8325. Fbits: uint8(9),
  8326. Fval: uint16(225),
  8327. },
  8328. 272: {
  8329. Fop: uint8(16),
  8330. Fbits: uint8(7),
  8331. Fval: uint16(6),
  8332. },
  8333. 273: {
  8334. Fbits: uint8(8),
  8335. Fval: uint16(88),
  8336. },
  8337. 274: {
  8338. Fbits: uint8(8),
  8339. Fval: uint16(24),
  8340. },
  8341. 275: {
  8342. Fbits: uint8(9),
  8343. Fval: uint16(145),
  8344. },
  8345. 276: {
  8346. Fop: uint8(19),
  8347. Fbits: uint8(7),
  8348. Fval: uint16(59),
  8349. },
  8350. 277: {
  8351. Fbits: uint8(8),
  8352. Fval: uint16(120),
  8353. },
  8354. 278: {
  8355. Fbits: uint8(8),
  8356. Fval: uint16(56),
  8357. },
  8358. 279: {
  8359. Fbits: uint8(9),
  8360. Fval: uint16(209),
  8361. },
  8362. 280: {
  8363. Fop: uint8(17),
  8364. Fbits: uint8(7),
  8365. Fval: uint16(17),
  8366. },
  8367. 281: {
  8368. Fbits: uint8(8),
  8369. Fval: uint16(104),
  8370. },
  8371. 282: {
  8372. Fbits: uint8(8),
  8373. Fval: uint16(40),
  8374. },
  8375. 283: {
  8376. Fbits: uint8(9),
  8377. Fval: uint16(177),
  8378. },
  8379. 284: {
  8380. Fbits: uint8(8),
  8381. Fval: uint16(8),
  8382. },
  8383. 285: {
  8384. Fbits: uint8(8),
  8385. Fval: uint16(136),
  8386. },
  8387. 286: {
  8388. Fbits: uint8(8),
  8389. Fval: uint16(72),
  8390. },
  8391. 287: {
  8392. Fbits: uint8(9),
  8393. Fval: uint16(241),
  8394. },
  8395. 288: {
  8396. Fop: uint8(16),
  8397. Fbits: uint8(7),
  8398. Fval: uint16(4),
  8399. },
  8400. 289: {
  8401. Fbits: uint8(8),
  8402. Fval: uint16(84),
  8403. },
  8404. 290: {
  8405. Fbits: uint8(8),
  8406. Fval: uint16(20),
  8407. },
  8408. 291: {
  8409. Fop: uint8(21),
  8410. Fbits: uint8(8),
  8411. Fval: uint16(227),
  8412. },
  8413. 292: {
  8414. Fop: uint8(19),
  8415. Fbits: uint8(7),
  8416. Fval: uint16(43),
  8417. },
  8418. 293: {
  8419. Fbits: uint8(8),
  8420. Fval: uint16(116),
  8421. },
  8422. 294: {
  8423. Fbits: uint8(8),
  8424. Fval: uint16(52),
  8425. },
  8426. 295: {
  8427. Fbits: uint8(9),
  8428. Fval: uint16(201),
  8429. },
  8430. 296: {
  8431. Fop: uint8(17),
  8432. Fbits: uint8(7),
  8433. Fval: uint16(13),
  8434. },
  8435. 297: {
  8436. Fbits: uint8(8),
  8437. Fval: uint16(100),
  8438. },
  8439. 298: {
  8440. Fbits: uint8(8),
  8441. Fval: uint16(36),
  8442. },
  8443. 299: {
  8444. Fbits: uint8(9),
  8445. Fval: uint16(169),
  8446. },
  8447. 300: {
  8448. Fbits: uint8(8),
  8449. Fval: uint16(4),
  8450. },
  8451. 301: {
  8452. Fbits: uint8(8),
  8453. Fval: uint16(132),
  8454. },
  8455. 302: {
  8456. Fbits: uint8(8),
  8457. Fval: uint16(68),
  8458. },
  8459. 303: {
  8460. Fbits: uint8(9),
  8461. Fval: uint16(233),
  8462. },
  8463. 304: {
  8464. Fop: uint8(16),
  8465. Fbits: uint8(7),
  8466. Fval: uint16(8),
  8467. },
  8468. 305: {
  8469. Fbits: uint8(8),
  8470. Fval: uint16(92),
  8471. },
  8472. 306: {
  8473. Fbits: uint8(8),
  8474. Fval: uint16(28),
  8475. },
  8476. 307: {
  8477. Fbits: uint8(9),
  8478. Fval: uint16(153),
  8479. },
  8480. 308: {
  8481. Fop: uint8(20),
  8482. Fbits: uint8(7),
  8483. Fval: uint16(83),
  8484. },
  8485. 309: {
  8486. Fbits: uint8(8),
  8487. Fval: uint16(124),
  8488. },
  8489. 310: {
  8490. Fbits: uint8(8),
  8491. Fval: uint16(60),
  8492. },
  8493. 311: {
  8494. Fbits: uint8(9),
  8495. Fval: uint16(217),
  8496. },
  8497. 312: {
  8498. Fop: uint8(18),
  8499. Fbits: uint8(7),
  8500. Fval: uint16(23),
  8501. },
  8502. 313: {
  8503. Fbits: uint8(8),
  8504. Fval: uint16(108),
  8505. },
  8506. 314: {
  8507. Fbits: uint8(8),
  8508. Fval: uint16(44),
  8509. },
  8510. 315: {
  8511. Fbits: uint8(9),
  8512. Fval: uint16(185),
  8513. },
  8514. 316: {
  8515. Fbits: uint8(8),
  8516. Fval: uint16(12),
  8517. },
  8518. 317: {
  8519. Fbits: uint8(8),
  8520. Fval: uint16(140),
  8521. },
  8522. 318: {
  8523. Fbits: uint8(8),
  8524. Fval: uint16(76),
  8525. },
  8526. 319: {
  8527. Fbits: uint8(9),
  8528. Fval: uint16(249),
  8529. },
  8530. 320: {
  8531. Fop: uint8(16),
  8532. Fbits: uint8(7),
  8533. Fval: uint16(3),
  8534. },
  8535. 321: {
  8536. Fbits: uint8(8),
  8537. Fval: uint16(82),
  8538. },
  8539. 322: {
  8540. Fbits: uint8(8),
  8541. Fval: uint16(18),
  8542. },
  8543. 323: {
  8544. Fop: uint8(21),
  8545. Fbits: uint8(8),
  8546. Fval: uint16(163),
  8547. },
  8548. 324: {
  8549. Fop: uint8(19),
  8550. Fbits: uint8(7),
  8551. Fval: uint16(35),
  8552. },
  8553. 325: {
  8554. Fbits: uint8(8),
  8555. Fval: uint16(114),
  8556. },
  8557. 326: {
  8558. Fbits: uint8(8),
  8559. Fval: uint16(50),
  8560. },
  8561. 327: {
  8562. Fbits: uint8(9),
  8563. Fval: uint16(197),
  8564. },
  8565. 328: {
  8566. Fop: uint8(17),
  8567. Fbits: uint8(7),
  8568. Fval: uint16(11),
  8569. },
  8570. 329: {
  8571. Fbits: uint8(8),
  8572. Fval: uint16(98),
  8573. },
  8574. 330: {
  8575. Fbits: uint8(8),
  8576. Fval: uint16(34),
  8577. },
  8578. 331: {
  8579. Fbits: uint8(9),
  8580. Fval: uint16(165),
  8581. },
  8582. 332: {
  8583. Fbits: uint8(8),
  8584. Fval: uint16(2),
  8585. },
  8586. 333: {
  8587. Fbits: uint8(8),
  8588. Fval: uint16(130),
  8589. },
  8590. 334: {
  8591. Fbits: uint8(8),
  8592. Fval: uint16(66),
  8593. },
  8594. 335: {
  8595. Fbits: uint8(9),
  8596. Fval: uint16(229),
  8597. },
  8598. 336: {
  8599. Fop: uint8(16),
  8600. Fbits: uint8(7),
  8601. Fval: uint16(7),
  8602. },
  8603. 337: {
  8604. Fbits: uint8(8),
  8605. Fval: uint16(90),
  8606. },
  8607. 338: {
  8608. Fbits: uint8(8),
  8609. Fval: uint16(26),
  8610. },
  8611. 339: {
  8612. Fbits: uint8(9),
  8613. Fval: uint16(149),
  8614. },
  8615. 340: {
  8616. Fop: uint8(20),
  8617. Fbits: uint8(7),
  8618. Fval: uint16(67),
  8619. },
  8620. 341: {
  8621. Fbits: uint8(8),
  8622. Fval: uint16(122),
  8623. },
  8624. 342: {
  8625. Fbits: uint8(8),
  8626. Fval: uint16(58),
  8627. },
  8628. 343: {
  8629. Fbits: uint8(9),
  8630. Fval: uint16(213),
  8631. },
  8632. 344: {
  8633. Fop: uint8(18),
  8634. Fbits: uint8(7),
  8635. Fval: uint16(19),
  8636. },
  8637. 345: {
  8638. Fbits: uint8(8),
  8639. Fval: uint16(106),
  8640. },
  8641. 346: {
  8642. Fbits: uint8(8),
  8643. Fval: uint16(42),
  8644. },
  8645. 347: {
  8646. Fbits: uint8(9),
  8647. Fval: uint16(181),
  8648. },
  8649. 348: {
  8650. Fbits: uint8(8),
  8651. Fval: uint16(10),
  8652. },
  8653. 349: {
  8654. Fbits: uint8(8),
  8655. Fval: uint16(138),
  8656. },
  8657. 350: {
  8658. Fbits: uint8(8),
  8659. Fval: uint16(74),
  8660. },
  8661. 351: {
  8662. Fbits: uint8(9),
  8663. Fval: uint16(245),
  8664. },
  8665. 352: {
  8666. Fop: uint8(16),
  8667. Fbits: uint8(7),
  8668. Fval: uint16(5),
  8669. },
  8670. 353: {
  8671. Fbits: uint8(8),
  8672. Fval: uint16(86),
  8673. },
  8674. 354: {
  8675. Fbits: uint8(8),
  8676. Fval: uint16(22),
  8677. },
  8678. 355: {
  8679. Fop: uint8(64),
  8680. Fbits: uint8(8),
  8681. },
  8682. 356: {
  8683. Fop: uint8(19),
  8684. Fbits: uint8(7),
  8685. Fval: uint16(51),
  8686. },
  8687. 357: {
  8688. Fbits: uint8(8),
  8689. Fval: uint16(118),
  8690. },
  8691. 358: {
  8692. Fbits: uint8(8),
  8693. Fval: uint16(54),
  8694. },
  8695. 359: {
  8696. Fbits: uint8(9),
  8697. Fval: uint16(205),
  8698. },
  8699. 360: {
  8700. Fop: uint8(17),
  8701. Fbits: uint8(7),
  8702. Fval: uint16(15),
  8703. },
  8704. 361: {
  8705. Fbits: uint8(8),
  8706. Fval: uint16(102),
  8707. },
  8708. 362: {
  8709. Fbits: uint8(8),
  8710. Fval: uint16(38),
  8711. },
  8712. 363: {
  8713. Fbits: uint8(9),
  8714. Fval: uint16(173),
  8715. },
  8716. 364: {
  8717. Fbits: uint8(8),
  8718. Fval: uint16(6),
  8719. },
  8720. 365: {
  8721. Fbits: uint8(8),
  8722. Fval: uint16(134),
  8723. },
  8724. 366: {
  8725. Fbits: uint8(8),
  8726. Fval: uint16(70),
  8727. },
  8728. 367: {
  8729. Fbits: uint8(9),
  8730. Fval: uint16(237),
  8731. },
  8732. 368: {
  8733. Fop: uint8(16),
  8734. Fbits: uint8(7),
  8735. Fval: uint16(9),
  8736. },
  8737. 369: {
  8738. Fbits: uint8(8),
  8739. Fval: uint16(94),
  8740. },
  8741. 370: {
  8742. Fbits: uint8(8),
  8743. Fval: uint16(30),
  8744. },
  8745. 371: {
  8746. Fbits: uint8(9),
  8747. Fval: uint16(157),
  8748. },
  8749. 372: {
  8750. Fop: uint8(20),
  8751. Fbits: uint8(7),
  8752. Fval: uint16(99),
  8753. },
  8754. 373: {
  8755. Fbits: uint8(8),
  8756. Fval: uint16(126),
  8757. },
  8758. 374: {
  8759. Fbits: uint8(8),
  8760. Fval: uint16(62),
  8761. },
  8762. 375: {
  8763. Fbits: uint8(9),
  8764. Fval: uint16(221),
  8765. },
  8766. 376: {
  8767. Fop: uint8(18),
  8768. Fbits: uint8(7),
  8769. Fval: uint16(27),
  8770. },
  8771. 377: {
  8772. Fbits: uint8(8),
  8773. Fval: uint16(110),
  8774. },
  8775. 378: {
  8776. Fbits: uint8(8),
  8777. Fval: uint16(46),
  8778. },
  8779. 379: {
  8780. Fbits: uint8(9),
  8781. Fval: uint16(189),
  8782. },
  8783. 380: {
  8784. Fbits: uint8(8),
  8785. Fval: uint16(14),
  8786. },
  8787. 381: {
  8788. Fbits: uint8(8),
  8789. Fval: uint16(142),
  8790. },
  8791. 382: {
  8792. Fbits: uint8(8),
  8793. Fval: uint16(78),
  8794. },
  8795. 383: {
  8796. Fbits: uint8(9),
  8797. Fval: uint16(253),
  8798. },
  8799. 384: {
  8800. Fop: uint8(96),
  8801. Fbits: uint8(7),
  8802. },
  8803. 385: {
  8804. Fbits: uint8(8),
  8805. Fval: uint16(81),
  8806. },
  8807. 386: {
  8808. Fbits: uint8(8),
  8809. Fval: uint16(17),
  8810. },
  8811. 387: {
  8812. Fop: uint8(21),
  8813. Fbits: uint8(8),
  8814. Fval: uint16(131),
  8815. },
  8816. 388: {
  8817. Fop: uint8(18),
  8818. Fbits: uint8(7),
  8819. Fval: uint16(31),
  8820. },
  8821. 389: {
  8822. Fbits: uint8(8),
  8823. Fval: uint16(113),
  8824. },
  8825. 390: {
  8826. Fbits: uint8(8),
  8827. Fval: uint16(49),
  8828. },
  8829. 391: {
  8830. Fbits: uint8(9),
  8831. Fval: uint16(195),
  8832. },
  8833. 392: {
  8834. Fop: uint8(16),
  8835. Fbits: uint8(7),
  8836. Fval: uint16(10),
  8837. },
  8838. 393: {
  8839. Fbits: uint8(8),
  8840. Fval: uint16(97),
  8841. },
  8842. 394: {
  8843. Fbits: uint8(8),
  8844. Fval: uint16(33),
  8845. },
  8846. 395: {
  8847. Fbits: uint8(9),
  8848. Fval: uint16(163),
  8849. },
  8850. 396: {
  8851. Fbits: uint8(8),
  8852. Fval: uint16(1),
  8853. },
  8854. 397: {
  8855. Fbits: uint8(8),
  8856. Fval: uint16(129),
  8857. },
  8858. 398: {
  8859. Fbits: uint8(8),
  8860. Fval: uint16(65),
  8861. },
  8862. 399: {
  8863. Fbits: uint8(9),
  8864. Fval: uint16(227),
  8865. },
  8866. 400: {
  8867. Fop: uint8(16),
  8868. Fbits: uint8(7),
  8869. Fval: uint16(6),
  8870. },
  8871. 401: {
  8872. Fbits: uint8(8),
  8873. Fval: uint16(89),
  8874. },
  8875. 402: {
  8876. Fbits: uint8(8),
  8877. Fval: uint16(25),
  8878. },
  8879. 403: {
  8880. Fbits: uint8(9),
  8881. Fval: uint16(147),
  8882. },
  8883. 404: {
  8884. Fop: uint8(19),
  8885. Fbits: uint8(7),
  8886. Fval: uint16(59),
  8887. },
  8888. 405: {
  8889. Fbits: uint8(8),
  8890. Fval: uint16(121),
  8891. },
  8892. 406: {
  8893. Fbits: uint8(8),
  8894. Fval: uint16(57),
  8895. },
  8896. 407: {
  8897. Fbits: uint8(9),
  8898. Fval: uint16(211),
  8899. },
  8900. 408: {
  8901. Fop: uint8(17),
  8902. Fbits: uint8(7),
  8903. Fval: uint16(17),
  8904. },
  8905. 409: {
  8906. Fbits: uint8(8),
  8907. Fval: uint16(105),
  8908. },
  8909. 410: {
  8910. Fbits: uint8(8),
  8911. Fval: uint16(41),
  8912. },
  8913. 411: {
  8914. Fbits: uint8(9),
  8915. Fval: uint16(179),
  8916. },
  8917. 412: {
  8918. Fbits: uint8(8),
  8919. Fval: uint16(9),
  8920. },
  8921. 413: {
  8922. Fbits: uint8(8),
  8923. Fval: uint16(137),
  8924. },
  8925. 414: {
  8926. Fbits: uint8(8),
  8927. Fval: uint16(73),
  8928. },
  8929. 415: {
  8930. Fbits: uint8(9),
  8931. Fval: uint16(243),
  8932. },
  8933. 416: {
  8934. Fop: uint8(16),
  8935. Fbits: uint8(7),
  8936. Fval: uint16(4),
  8937. },
  8938. 417: {
  8939. Fbits: uint8(8),
  8940. Fval: uint16(85),
  8941. },
  8942. 418: {
  8943. Fbits: uint8(8),
  8944. Fval: uint16(21),
  8945. },
  8946. 419: {
  8947. Fop: uint8(16),
  8948. Fbits: uint8(8),
  8949. Fval: uint16(258),
  8950. },
  8951. 420: {
  8952. Fop: uint8(19),
  8953. Fbits: uint8(7),
  8954. Fval: uint16(43),
  8955. },
  8956. 421: {
  8957. Fbits: uint8(8),
  8958. Fval: uint16(117),
  8959. },
  8960. 422: {
  8961. Fbits: uint8(8),
  8962. Fval: uint16(53),
  8963. },
  8964. 423: {
  8965. Fbits: uint8(9),
  8966. Fval: uint16(203),
  8967. },
  8968. 424: {
  8969. Fop: uint8(17),
  8970. Fbits: uint8(7),
  8971. Fval: uint16(13),
  8972. },
  8973. 425: {
  8974. Fbits: uint8(8),
  8975. Fval: uint16(101),
  8976. },
  8977. 426: {
  8978. Fbits: uint8(8),
  8979. Fval: uint16(37),
  8980. },
  8981. 427: {
  8982. Fbits: uint8(9),
  8983. Fval: uint16(171),
  8984. },
  8985. 428: {
  8986. Fbits: uint8(8),
  8987. Fval: uint16(5),
  8988. },
  8989. 429: {
  8990. Fbits: uint8(8),
  8991. Fval: uint16(133),
  8992. },
  8993. 430: {
  8994. Fbits: uint8(8),
  8995. Fval: uint16(69),
  8996. },
  8997. 431: {
  8998. Fbits: uint8(9),
  8999. Fval: uint16(235),
  9000. },
  9001. 432: {
  9002. Fop: uint8(16),
  9003. Fbits: uint8(7),
  9004. Fval: uint16(8),
  9005. },
  9006. 433: {
  9007. Fbits: uint8(8),
  9008. Fval: uint16(93),
  9009. },
  9010. 434: {
  9011. Fbits: uint8(8),
  9012. Fval: uint16(29),
  9013. },
  9014. 435: {
  9015. Fbits: uint8(9),
  9016. Fval: uint16(155),
  9017. },
  9018. 436: {
  9019. Fop: uint8(20),
  9020. Fbits: uint8(7),
  9021. Fval: uint16(83),
  9022. },
  9023. 437: {
  9024. Fbits: uint8(8),
  9025. Fval: uint16(125),
  9026. },
  9027. 438: {
  9028. Fbits: uint8(8),
  9029. Fval: uint16(61),
  9030. },
  9031. 439: {
  9032. Fbits: uint8(9),
  9033. Fval: uint16(219),
  9034. },
  9035. 440: {
  9036. Fop: uint8(18),
  9037. Fbits: uint8(7),
  9038. Fval: uint16(23),
  9039. },
  9040. 441: {
  9041. Fbits: uint8(8),
  9042. Fval: uint16(109),
  9043. },
  9044. 442: {
  9045. Fbits: uint8(8),
  9046. Fval: uint16(45),
  9047. },
  9048. 443: {
  9049. Fbits: uint8(9),
  9050. Fval: uint16(187),
  9051. },
  9052. 444: {
  9053. Fbits: uint8(8),
  9054. Fval: uint16(13),
  9055. },
  9056. 445: {
  9057. Fbits: uint8(8),
  9058. Fval: uint16(141),
  9059. },
  9060. 446: {
  9061. Fbits: uint8(8),
  9062. Fval: uint16(77),
  9063. },
  9064. 447: {
  9065. Fbits: uint8(9),
  9066. Fval: uint16(251),
  9067. },
  9068. 448: {
  9069. Fop: uint8(16),
  9070. Fbits: uint8(7),
  9071. Fval: uint16(3),
  9072. },
  9073. 449: {
  9074. Fbits: uint8(8),
  9075. Fval: uint16(83),
  9076. },
  9077. 450: {
  9078. Fbits: uint8(8),
  9079. Fval: uint16(19),
  9080. },
  9081. 451: {
  9082. Fop: uint8(21),
  9083. Fbits: uint8(8),
  9084. Fval: uint16(195),
  9085. },
  9086. 452: {
  9087. Fop: uint8(19),
  9088. Fbits: uint8(7),
  9089. Fval: uint16(35),
  9090. },
  9091. 453: {
  9092. Fbits: uint8(8),
  9093. Fval: uint16(115),
  9094. },
  9095. 454: {
  9096. Fbits: uint8(8),
  9097. Fval: uint16(51),
  9098. },
  9099. 455: {
  9100. Fbits: uint8(9),
  9101. Fval: uint16(199),
  9102. },
  9103. 456: {
  9104. Fop: uint8(17),
  9105. Fbits: uint8(7),
  9106. Fval: uint16(11),
  9107. },
  9108. 457: {
  9109. Fbits: uint8(8),
  9110. Fval: uint16(99),
  9111. },
  9112. 458: {
  9113. Fbits: uint8(8),
  9114. Fval: uint16(35),
  9115. },
  9116. 459: {
  9117. Fbits: uint8(9),
  9118. Fval: uint16(167),
  9119. },
  9120. 460: {
  9121. Fbits: uint8(8),
  9122. Fval: uint16(3),
  9123. },
  9124. 461: {
  9125. Fbits: uint8(8),
  9126. Fval: uint16(131),
  9127. },
  9128. 462: {
  9129. Fbits: uint8(8),
  9130. Fval: uint16(67),
  9131. },
  9132. 463: {
  9133. Fbits: uint8(9),
  9134. Fval: uint16(231),
  9135. },
  9136. 464: {
  9137. Fop: uint8(16),
  9138. Fbits: uint8(7),
  9139. Fval: uint16(7),
  9140. },
  9141. 465: {
  9142. Fbits: uint8(8),
  9143. Fval: uint16(91),
  9144. },
  9145. 466: {
  9146. Fbits: uint8(8),
  9147. Fval: uint16(27),
  9148. },
  9149. 467: {
  9150. Fbits: uint8(9),
  9151. Fval: uint16(151),
  9152. },
  9153. 468: {
  9154. Fop: uint8(20),
  9155. Fbits: uint8(7),
  9156. Fval: uint16(67),
  9157. },
  9158. 469: {
  9159. Fbits: uint8(8),
  9160. Fval: uint16(123),
  9161. },
  9162. 470: {
  9163. Fbits: uint8(8),
  9164. Fval: uint16(59),
  9165. },
  9166. 471: {
  9167. Fbits: uint8(9),
  9168. Fval: uint16(215),
  9169. },
  9170. 472: {
  9171. Fop: uint8(18),
  9172. Fbits: uint8(7),
  9173. Fval: uint16(19),
  9174. },
  9175. 473: {
  9176. Fbits: uint8(8),
  9177. Fval: uint16(107),
  9178. },
  9179. 474: {
  9180. Fbits: uint8(8),
  9181. Fval: uint16(43),
  9182. },
  9183. 475: {
  9184. Fbits: uint8(9),
  9185. Fval: uint16(183),
  9186. },
  9187. 476: {
  9188. Fbits: uint8(8),
  9189. Fval: uint16(11),
  9190. },
  9191. 477: {
  9192. Fbits: uint8(8),
  9193. Fval: uint16(139),
  9194. },
  9195. 478: {
  9196. Fbits: uint8(8),
  9197. Fval: uint16(75),
  9198. },
  9199. 479: {
  9200. Fbits: uint8(9),
  9201. Fval: uint16(247),
  9202. },
  9203. 480: {
  9204. Fop: uint8(16),
  9205. Fbits: uint8(7),
  9206. Fval: uint16(5),
  9207. },
  9208. 481: {
  9209. Fbits: uint8(8),
  9210. Fval: uint16(87),
  9211. },
  9212. 482: {
  9213. Fbits: uint8(8),
  9214. Fval: uint16(23),
  9215. },
  9216. 483: {
  9217. Fop: uint8(64),
  9218. Fbits: uint8(8),
  9219. },
  9220. 484: {
  9221. Fop: uint8(19),
  9222. Fbits: uint8(7),
  9223. Fval: uint16(51),
  9224. },
  9225. 485: {
  9226. Fbits: uint8(8),
  9227. Fval: uint16(119),
  9228. },
  9229. 486: {
  9230. Fbits: uint8(8),
  9231. Fval: uint16(55),
  9232. },
  9233. 487: {
  9234. Fbits: uint8(9),
  9235. Fval: uint16(207),
  9236. },
  9237. 488: {
  9238. Fop: uint8(17),
  9239. Fbits: uint8(7),
  9240. Fval: uint16(15),
  9241. },
  9242. 489: {
  9243. Fbits: uint8(8),
  9244. Fval: uint16(103),
  9245. },
  9246. 490: {
  9247. Fbits: uint8(8),
  9248. Fval: uint16(39),
  9249. },
  9250. 491: {
  9251. Fbits: uint8(9),
  9252. Fval: uint16(175),
  9253. },
  9254. 492: {
  9255. Fbits: uint8(8),
  9256. Fval: uint16(7),
  9257. },
  9258. 493: {
  9259. Fbits: uint8(8),
  9260. Fval: uint16(135),
  9261. },
  9262. 494: {
  9263. Fbits: uint8(8),
  9264. Fval: uint16(71),
  9265. },
  9266. 495: {
  9267. Fbits: uint8(9),
  9268. Fval: uint16(239),
  9269. },
  9270. 496: {
  9271. Fop: uint8(16),
  9272. Fbits: uint8(7),
  9273. Fval: uint16(9),
  9274. },
  9275. 497: {
  9276. Fbits: uint8(8),
  9277. Fval: uint16(95),
  9278. },
  9279. 498: {
  9280. Fbits: uint8(8),
  9281. Fval: uint16(31),
  9282. },
  9283. 499: {
  9284. Fbits: uint8(9),
  9285. Fval: uint16(159),
  9286. },
  9287. 500: {
  9288. Fop: uint8(20),
  9289. Fbits: uint8(7),
  9290. Fval: uint16(99),
  9291. },
  9292. 501: {
  9293. Fbits: uint8(8),
  9294. Fval: uint16(127),
  9295. },
  9296. 502: {
  9297. Fbits: uint8(8),
  9298. Fval: uint16(63),
  9299. },
  9300. 503: {
  9301. Fbits: uint8(9),
  9302. Fval: uint16(223),
  9303. },
  9304. 504: {
  9305. Fop: uint8(18),
  9306. Fbits: uint8(7),
  9307. Fval: uint16(27),
  9308. },
  9309. 505: {
  9310. Fbits: uint8(8),
  9311. Fval: uint16(111),
  9312. },
  9313. 506: {
  9314. Fbits: uint8(8),
  9315. Fval: uint16(47),
  9316. },
  9317. 507: {
  9318. Fbits: uint8(9),
  9319. Fval: uint16(191),
  9320. },
  9321. 508: {
  9322. Fbits: uint8(8),
  9323. Fval: uint16(15),
  9324. },
  9325. 509: {
  9326. Fbits: uint8(8),
  9327. Fval: uint16(143),
  9328. },
  9329. 510: {
  9330. Fbits: uint8(8),
  9331. Fval: uint16(79),
  9332. },
  9333. 511: {
  9334. Fbits: uint8(9),
  9335. Fval: uint16(255),
  9336. },
  9337. }
  9338. var _distfix = [32]Tcode{
  9339. 0: {
  9340. Fop: uint8(16),
  9341. Fbits: uint8(5),
  9342. Fval: uint16(1),
  9343. },
  9344. 1: {
  9345. Fop: uint8(23),
  9346. Fbits: uint8(5),
  9347. Fval: uint16(257),
  9348. },
  9349. 2: {
  9350. Fop: uint8(19),
  9351. Fbits: uint8(5),
  9352. Fval: uint16(17),
  9353. },
  9354. 3: {
  9355. Fop: uint8(27),
  9356. Fbits: uint8(5),
  9357. Fval: uint16(4097),
  9358. },
  9359. 4: {
  9360. Fop: uint8(17),
  9361. Fbits: uint8(5),
  9362. Fval: uint16(5),
  9363. },
  9364. 5: {
  9365. Fop: uint8(25),
  9366. Fbits: uint8(5),
  9367. Fval: uint16(1025),
  9368. },
  9369. 6: {
  9370. Fop: uint8(21),
  9371. Fbits: uint8(5),
  9372. Fval: uint16(65),
  9373. },
  9374. 7: {
  9375. Fop: uint8(29),
  9376. Fbits: uint8(5),
  9377. Fval: uint16(16385),
  9378. },
  9379. 8: {
  9380. Fop: uint8(16),
  9381. Fbits: uint8(5),
  9382. Fval: uint16(3),
  9383. },
  9384. 9: {
  9385. Fop: uint8(24),
  9386. Fbits: uint8(5),
  9387. Fval: uint16(513),
  9388. },
  9389. 10: {
  9390. Fop: uint8(20),
  9391. Fbits: uint8(5),
  9392. Fval: uint16(33),
  9393. },
  9394. 11: {
  9395. Fop: uint8(28),
  9396. Fbits: uint8(5),
  9397. Fval: uint16(8193),
  9398. },
  9399. 12: {
  9400. Fop: uint8(18),
  9401. Fbits: uint8(5),
  9402. Fval: uint16(9),
  9403. },
  9404. 13: {
  9405. Fop: uint8(26),
  9406. Fbits: uint8(5),
  9407. Fval: uint16(2049),
  9408. },
  9409. 14: {
  9410. Fop: uint8(22),
  9411. Fbits: uint8(5),
  9412. Fval: uint16(129),
  9413. },
  9414. 15: {
  9415. Fop: uint8(64),
  9416. Fbits: uint8(5),
  9417. },
  9418. 16: {
  9419. Fop: uint8(16),
  9420. Fbits: uint8(5),
  9421. Fval: uint16(2),
  9422. },
  9423. 17: {
  9424. Fop: uint8(23),
  9425. Fbits: uint8(5),
  9426. Fval: uint16(385),
  9427. },
  9428. 18: {
  9429. Fop: uint8(19),
  9430. Fbits: uint8(5),
  9431. Fval: uint16(25),
  9432. },
  9433. 19: {
  9434. Fop: uint8(27),
  9435. Fbits: uint8(5),
  9436. Fval: uint16(6145),
  9437. },
  9438. 20: {
  9439. Fop: uint8(17),
  9440. Fbits: uint8(5),
  9441. Fval: uint16(7),
  9442. },
  9443. 21: {
  9444. Fop: uint8(25),
  9445. Fbits: uint8(5),
  9446. Fval: uint16(1537),
  9447. },
  9448. 22: {
  9449. Fop: uint8(21),
  9450. Fbits: uint8(5),
  9451. Fval: uint16(97),
  9452. },
  9453. 23: {
  9454. Fop: uint8(29),
  9455. Fbits: uint8(5),
  9456. Fval: uint16(24577),
  9457. },
  9458. 24: {
  9459. Fop: uint8(16),
  9460. Fbits: uint8(5),
  9461. Fval: uint16(4),
  9462. },
  9463. 25: {
  9464. Fop: uint8(24),
  9465. Fbits: uint8(5),
  9466. Fval: uint16(769),
  9467. },
  9468. 26: {
  9469. Fop: uint8(20),
  9470. Fbits: uint8(5),
  9471. Fval: uint16(49),
  9472. },
  9473. 27: {
  9474. Fop: uint8(28),
  9475. Fbits: uint8(5),
  9476. Fval: uint16(12289),
  9477. },
  9478. 28: {
  9479. Fop: uint8(18),
  9480. Fbits: uint8(5),
  9481. Fval: uint16(13),
  9482. },
  9483. 29: {
  9484. Fop: uint8(26),
  9485. Fbits: uint8(5),
  9486. Fval: uint16(3073),
  9487. },
  9488. 30: {
  9489. Fop: uint8(22),
  9490. Fbits: uint8(5),
  9491. Fval: uint16(193),
  9492. },
  9493. 31: {
  9494. Fop: uint8(64),
  9495. Fbits: uint8(5),
  9496. },
  9497. }
  9498. /* Macros for inflateBack(): */
  9499. /* Load returned state from inflate_fast() */
  9500. /* Set state from registers for inflate_fast() */
  9501. /* Clear the input bit accumulator */
  9502. /* Assure that some input is available. If input is requested, but denied,
  9503. then return a Z_BUF_ERROR from inflateBack(). */
  9504. /* Get a byte of input into the bit accumulator, or return from inflateBack()
  9505. with an error if there is no input available. */
  9506. /* Assure that there are at least n bits in the bit accumulator. If there is
  9507. not enough available input to do that, then return from inflateBack() with
  9508. an error. */
  9509. /* Return the low n bits of the bit accumulator (n < 16) */
  9510. /* Remove n bits from the bit accumulator */
  9511. /* Remove zero to seven bits as needed to go to a byte boundary */
  9512. /* Assure that some output space is available, by writing out the window
  9513. if it's full. If the write fails, return from inflateBack() with a
  9514. Z_BUF_ERROR. */
  9515. // C documentation
  9516. //
  9517. // /*
  9518. // strm provides the memory allocation functions and window buffer on input,
  9519. // and provides information on the unused input on return. For Z_DATA_ERROR
  9520. // returns, strm will also provide an error message.
  9521. //
  9522. // in() and out() are the call-back input and output functions. When
  9523. // inflateBack() needs more input, it calls in(). When inflateBack() has
  9524. // filled the window with output, or when it completes with data in the
  9525. // window, it calls out() to write out the data. The application must not
  9526. // change the provided input until in() is called again or inflateBack()
  9527. // returns. The application must not change the window/output buffer until
  9528. // inflateBack() returns.
  9529. //
  9530. // in() and out() are called with a descriptor parameter provided in the
  9531. // inflateBack() call. This parameter can be a structure that provides the
  9532. // information required to do the read or write, as well as accumulated
  9533. // information on the input and output such as totals and check values.
  9534. //
  9535. // in() should return zero on failure. out() should return non-zero on
  9536. // failure. If either in() or out() fails, than inflateBack() returns a
  9537. // Z_BUF_ERROR. strm->next_in can be checked for Z_NULL to see whether it
  9538. // was in() or out() that caused in the error. Otherwise, inflateBack()
  9539. // returns Z_STREAM_END on success, Z_DATA_ERROR for an deflate format
  9540. // error, or Z_MEM_ERROR if it could not allocate memory for the state.
  9541. // inflateBack() can also return Z_STREAM_ERROR if the input parameters
  9542. // are not correct, i.e. strm is Z_NULL or the state was not initialized.
  9543. // */
  9544. func XinflateBack(tls *libc.TLS, strm Tz_streamp, in Tin_func, in_desc uintptr, out Tout_func, out_desc uintptr) (r int32) {
  9545. bp := tls.Alloc(16)
  9546. defer tls.Free(16)
  9547. var bits, copy1, have, left, len1, v1, v18, v20, v24, v29, v30, v43, v44 uint32
  9548. var from, put, state, v11, v15, v16, v17, v19, v21, v23, v25, v26, v27, v28, v31, v33, v35, v36, v37, v39, v41, v42, v46, v47 uintptr
  9549. var here, last Tcode
  9550. var hold uint64
  9551. var ret int32
  9552. var _ /* next at bp+0 */ uintptr
  9553. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bits, copy1, from, have, here, hold, last, left, len1, put, ret, state, v1, v11, v15, v16, v17, v18, v19, v20, v21, v23, v24, v25, v26, v27, v28, v29, v30, v31, v33, v35, v36, v37, v39, v41, v42, v43, v44, v46, v47 /* return code */
  9554. /* Check that the strm exists and that the state was initialized */
  9555. if strm == uintptr(m_Z_NULL) || (*Tz_stream)(unsafe.Pointer(strm)).Fstate == uintptr(m_Z_NULL) {
  9556. return -int32(2)
  9557. }
  9558. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  9559. /* Reset the state */
  9560. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = uintptr(m_Z_NULL)
  9561. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TYPE)
  9562. (*Tinflate_state)(unsafe.Pointer(state)).Flast = 0
  9563. (*Tinflate_state)(unsafe.Pointer(state)).Fwhave = uint32(0)
  9564. *(*uintptr)(unsafe.Pointer(bp)) = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in
  9565. if *(*uintptr)(unsafe.Pointer(bp)) != uintptr(m_Z_NULL) {
  9566. v1 = (*Tz_stream)(unsafe.Pointer(strm)).Favail_in
  9567. } else {
  9568. v1 = uint32(0)
  9569. }
  9570. have = v1
  9571. hold = uint64(0)
  9572. bits = uint32(0)
  9573. put = (*Tinflate_state)(unsafe.Pointer(state)).Fwindow
  9574. left = (*Tinflate_state)(unsafe.Pointer(state)).Fwsize
  9575. /* Inflate until end of block marked as last */
  9576. for {
  9577. switch (*Tinflate_state)(unsafe.Pointer(state)).Fmode {
  9578. case int32(_TYPE):
  9579. goto _3
  9580. case int32(_STORED):
  9581. goto _4
  9582. case int32(_TABLE):
  9583. goto _5
  9584. case int32(_LEN):
  9585. goto _6
  9586. case int32(_DONE):
  9587. goto _7
  9588. case int32(_BAD):
  9589. goto _8
  9590. default:
  9591. goto _9
  9592. }
  9593. goto _10
  9594. _3:
  9595. ;
  9596. /* determine and dispatch block type */
  9597. if (*Tinflate_state)(unsafe.Pointer(state)).Flast != 0 {
  9598. hold >>= uint64(bits & uint32(7))
  9599. bits -= bits & uint32(7)
  9600. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_DONE)
  9601. goto _10
  9602. }
  9603. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(3)) {
  9604. if have == uint32(0) {
  9605. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9606. if have == uint32(0) {
  9607. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9608. ret = -int32(5)
  9609. goto inf_leave
  9610. }
  9611. }
  9612. have--
  9613. v11 = *(*uintptr)(unsafe.Pointer(bp))
  9614. *(*uintptr)(unsafe.Pointer(bp))++
  9615. hold += uint64(*(*uint8)(unsafe.Pointer(v11))) << bits
  9616. bits += uint32(8)
  9617. }
  9618. (*Tinflate_state)(unsafe.Pointer(state)).Flast = libc.Int32FromUint32(uint32(hold) & (libc.Uint32FromUint32(1)<<libc.Int32FromInt32(1) - libc.Uint32FromInt32(1)))
  9619. hold >>= libc.Uint64FromInt32(libc.Int32FromInt32(1))
  9620. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(1))
  9621. switch uint32(hold) & (libc.Uint32FromUint32(1)<<libc.Int32FromInt32(2) - libc.Uint32FromInt32(1)) {
  9622. case uint32(0): /* stored block */
  9623. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_STORED)
  9624. case uint32(1): /* fixed block */
  9625. _fixedtables(tls, state)
  9626. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LEN) /* decode codes */
  9627. case uint32(2): /* dynamic block */
  9628. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TABLE)
  9629. case uint32(3):
  9630. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 6
  9631. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  9632. }
  9633. hold >>= libc.Uint64FromInt32(libc.Int32FromInt32(2))
  9634. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(2))
  9635. goto _10
  9636. _4:
  9637. ;
  9638. /* get and verify stored block length */
  9639. _14:
  9640. ;
  9641. hold >>= uint64(bits & uint32(7))
  9642. bits -= bits & uint32(7)
  9643. goto _13
  9644. _13:
  9645. ;
  9646. if 0 != 0 {
  9647. goto _14
  9648. }
  9649. goto _12
  9650. _12:
  9651. ; /* go to byte boundary */
  9652. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(32)) {
  9653. if have == uint32(0) {
  9654. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9655. if have == uint32(0) {
  9656. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9657. ret = -int32(5)
  9658. goto inf_leave
  9659. }
  9660. }
  9661. have--
  9662. v15 = *(*uintptr)(unsafe.Pointer(bp))
  9663. *(*uintptr)(unsafe.Pointer(bp))++
  9664. hold += uint64(*(*uint8)(unsafe.Pointer(v15))) << bits
  9665. bits += uint32(8)
  9666. }
  9667. if hold&uint64(0xffff) != hold>>int32(16)^uint64(0xffff) {
  9668. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 25
  9669. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  9670. goto _10
  9671. }
  9672. (*Tinflate_state)(unsafe.Pointer(state)).Flength = uint32(hold) & uint32(0xffff)
  9673. hold = uint64(0)
  9674. bits = uint32(0)
  9675. /* copy stored block from input to output */
  9676. for (*Tinflate_state)(unsafe.Pointer(state)).Flength != uint32(0) {
  9677. copy1 = (*Tinflate_state)(unsafe.Pointer(state)).Flength
  9678. if have == uint32(0) {
  9679. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9680. if have == uint32(0) {
  9681. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9682. ret = -int32(5)
  9683. goto inf_leave
  9684. }
  9685. }
  9686. if left == uint32(0) {
  9687. put = (*Tinflate_state)(unsafe.Pointer(state)).Fwindow
  9688. left = (*Tinflate_state)(unsafe.Pointer(state)).Fwsize
  9689. (*Tinflate_state)(unsafe.Pointer(state)).Fwhave = left
  9690. if (*(*func(*libc.TLS, uintptr, uintptr, uint32) int32)(unsafe.Pointer(&struct{ uintptr }{out})))(tls, out_desc, put, left) != 0 {
  9691. ret = -int32(5)
  9692. goto inf_leave
  9693. }
  9694. }
  9695. if copy1 > have {
  9696. copy1 = have
  9697. }
  9698. if copy1 > left {
  9699. copy1 = left
  9700. }
  9701. libc.Xmemcpy(tls, put, *(*uintptr)(unsafe.Pointer(bp)), uint64(copy1))
  9702. have -= copy1
  9703. *(*uintptr)(unsafe.Pointer(bp)) += uintptr(copy1)
  9704. left -= copy1
  9705. put += uintptr(copy1)
  9706. *(*uint32)(unsafe.Pointer(state + 92)) -= copy1
  9707. }
  9708. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TYPE)
  9709. goto _10
  9710. _5:
  9711. ;
  9712. /* get dynamic table entries descriptor */
  9713. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(14)) {
  9714. if have == uint32(0) {
  9715. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9716. if have == uint32(0) {
  9717. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9718. ret = -int32(5)
  9719. goto inf_leave
  9720. }
  9721. }
  9722. have--
  9723. v16 = *(*uintptr)(unsafe.Pointer(bp))
  9724. *(*uintptr)(unsafe.Pointer(bp))++
  9725. hold += uint64(*(*uint8)(unsafe.Pointer(v16))) << bits
  9726. bits += uint32(8)
  9727. }
  9728. (*Tinflate_state)(unsafe.Pointer(state)).Fnlen = uint32(hold)&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(5)-libc.Uint32FromInt32(1)) + uint32(257)
  9729. hold >>= libc.Uint64FromInt32(libc.Int32FromInt32(5))
  9730. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(5))
  9731. (*Tinflate_state)(unsafe.Pointer(state)).Fndist = uint32(hold)&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(5)-libc.Uint32FromInt32(1)) + uint32(1)
  9732. hold >>= libc.Uint64FromInt32(libc.Int32FromInt32(5))
  9733. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(5))
  9734. (*Tinflate_state)(unsafe.Pointer(state)).Fncode = uint32(hold)&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(4)-libc.Uint32FromInt32(1)) + uint32(4)
  9735. hold >>= libc.Uint64FromInt32(libc.Int32FromInt32(4))
  9736. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(4))
  9737. if (*Tinflate_state)(unsafe.Pointer(state)).Fnlen > uint32(286) || (*Tinflate_state)(unsafe.Pointer(state)).Fndist > uint32(30) {
  9738. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 54
  9739. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  9740. goto _10
  9741. }
  9742. /* get code length code lengths (not a typo) */
  9743. (*Tinflate_state)(unsafe.Pointer(state)).Fhave = uint32(0)
  9744. for (*Tinflate_state)(unsafe.Pointer(state)).Fhave < (*Tinflate_state)(unsafe.Pointer(state)).Fncode {
  9745. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(3)) {
  9746. if have == uint32(0) {
  9747. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9748. if have == uint32(0) {
  9749. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9750. ret = -int32(5)
  9751. goto inf_leave
  9752. }
  9753. }
  9754. have--
  9755. v17 = *(*uintptr)(unsafe.Pointer(bp))
  9756. *(*uintptr)(unsafe.Pointer(bp))++
  9757. hold += uint64(*(*uint8)(unsafe.Pointer(v17))) << bits
  9758. bits += uint32(8)
  9759. }
  9760. v19 = state + 140
  9761. v18 = *(*uint32)(unsafe.Pointer(v19))
  9762. *(*uint32)(unsafe.Pointer(v19))++
  9763. *(*uint16)(unsafe.Pointer(state + 152 + uintptr(_order[v18])*2)) = uint16(uint32(hold) & (libc.Uint32FromUint32(1)<<libc.Int32FromInt32(3) - libc.Uint32FromInt32(1)))
  9764. hold >>= libc.Uint64FromInt32(libc.Int32FromInt32(3))
  9765. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(3))
  9766. }
  9767. for (*Tinflate_state)(unsafe.Pointer(state)).Fhave < uint32(19) {
  9768. v21 = state + 140
  9769. v20 = *(*uint32)(unsafe.Pointer(v21))
  9770. *(*uint32)(unsafe.Pointer(v21))++
  9771. *(*uint16)(unsafe.Pointer(state + 152 + uintptr(_order[v20])*2)) = uint16(0)
  9772. }
  9773. (*Tinflate_state)(unsafe.Pointer(state)).Fnext = state + 1368
  9774. (*Tinflate_state)(unsafe.Pointer(state)).Flencode = (*Tinflate_state)(unsafe.Pointer(state)).Fnext
  9775. (*Tinflate_state)(unsafe.Pointer(state)).Flenbits = uint32(7)
  9776. ret = Xinflate_table(tls, int32(_CODES), state+152, uint32(19), state+144, state+120, state+792)
  9777. if ret != 0 {
  9778. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 90
  9779. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  9780. goto _10
  9781. }
  9782. /* get length and distance code code lengths */
  9783. (*Tinflate_state)(unsafe.Pointer(state)).Fhave = uint32(0)
  9784. for (*Tinflate_state)(unsafe.Pointer(state)).Fhave < (*Tinflate_state)(unsafe.Pointer(state)).Fnlen+(*Tinflate_state)(unsafe.Pointer(state)).Fndist {
  9785. for {
  9786. here = *(*Tcode)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Flencode + uintptr(uint32(hold)&(libc.Uint32FromUint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Flenbits-libc.Uint32FromInt32(1)))*4))
  9787. if uint32(here.Fbits) <= bits {
  9788. break
  9789. }
  9790. if have == uint32(0) {
  9791. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9792. if have == uint32(0) {
  9793. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9794. ret = -int32(5)
  9795. goto inf_leave
  9796. }
  9797. }
  9798. have--
  9799. v23 = *(*uintptr)(unsafe.Pointer(bp))
  9800. *(*uintptr)(unsafe.Pointer(bp))++
  9801. hold += uint64(*(*uint8)(unsafe.Pointer(v23))) << bits
  9802. bits += uint32(8)
  9803. goto _22
  9804. _22:
  9805. }
  9806. if libc.Int32FromUint16(here.Fval) < int32(16) {
  9807. hold >>= uint64(here.Fbits)
  9808. bits -= uint32(here.Fbits)
  9809. v25 = state + 140
  9810. v24 = *(*uint32)(unsafe.Pointer(v25))
  9811. *(*uint32)(unsafe.Pointer(v25))++
  9812. *(*uint16)(unsafe.Pointer(state + 152 + uintptr(v24)*2)) = here.Fval
  9813. } else {
  9814. if libc.Int32FromUint16(here.Fval) == int32(16) {
  9815. for bits < libc.Uint32FromInt32(libc.Int32FromUint8(here.Fbits)+libc.Int32FromInt32(2)) {
  9816. if have == uint32(0) {
  9817. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9818. if have == uint32(0) {
  9819. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9820. ret = -int32(5)
  9821. goto inf_leave
  9822. }
  9823. }
  9824. have--
  9825. v26 = *(*uintptr)(unsafe.Pointer(bp))
  9826. *(*uintptr)(unsafe.Pointer(bp))++
  9827. hold += uint64(*(*uint8)(unsafe.Pointer(v26))) << bits
  9828. bits += uint32(8)
  9829. }
  9830. hold >>= uint64(here.Fbits)
  9831. bits -= uint32(here.Fbits)
  9832. if (*Tinflate_state)(unsafe.Pointer(state)).Fhave == uint32(0) {
  9833. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 115
  9834. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  9835. break
  9836. }
  9837. len1 = uint32(*(*uint16)(unsafe.Pointer(state + 152 + uintptr((*Tinflate_state)(unsafe.Pointer(state)).Fhave-uint32(1))*2)))
  9838. copy1 = uint32(3) + uint32(hold)&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(2)-libc.Uint32FromInt32(1))
  9839. hold >>= libc.Uint64FromInt32(libc.Int32FromInt32(2))
  9840. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(2))
  9841. } else {
  9842. if libc.Int32FromUint16(here.Fval) == int32(17) {
  9843. for bits < libc.Uint32FromInt32(libc.Int32FromUint8(here.Fbits)+libc.Int32FromInt32(3)) {
  9844. if have == uint32(0) {
  9845. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9846. if have == uint32(0) {
  9847. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9848. ret = -int32(5)
  9849. goto inf_leave
  9850. }
  9851. }
  9852. have--
  9853. v27 = *(*uintptr)(unsafe.Pointer(bp))
  9854. *(*uintptr)(unsafe.Pointer(bp))++
  9855. hold += uint64(*(*uint8)(unsafe.Pointer(v27))) << bits
  9856. bits += uint32(8)
  9857. }
  9858. hold >>= uint64(here.Fbits)
  9859. bits -= uint32(here.Fbits)
  9860. len1 = uint32(0)
  9861. copy1 = uint32(3) + uint32(hold)&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(3)-libc.Uint32FromInt32(1))
  9862. hold >>= libc.Uint64FromInt32(libc.Int32FromInt32(3))
  9863. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(3))
  9864. } else {
  9865. for bits < libc.Uint32FromInt32(libc.Int32FromUint8(here.Fbits)+libc.Int32FromInt32(7)) {
  9866. if have == uint32(0) {
  9867. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9868. if have == uint32(0) {
  9869. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9870. ret = -int32(5)
  9871. goto inf_leave
  9872. }
  9873. }
  9874. have--
  9875. v28 = *(*uintptr)(unsafe.Pointer(bp))
  9876. *(*uintptr)(unsafe.Pointer(bp))++
  9877. hold += uint64(*(*uint8)(unsafe.Pointer(v28))) << bits
  9878. bits += uint32(8)
  9879. }
  9880. hold >>= uint64(here.Fbits)
  9881. bits -= uint32(here.Fbits)
  9882. len1 = uint32(0)
  9883. copy1 = uint32(11) + uint32(hold)&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(7)-libc.Uint32FromInt32(1))
  9884. hold >>= libc.Uint64FromInt32(libc.Int32FromInt32(7))
  9885. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(7))
  9886. }
  9887. }
  9888. if (*Tinflate_state)(unsafe.Pointer(state)).Fhave+copy1 > (*Tinflate_state)(unsafe.Pointer(state)).Fnlen+(*Tinflate_state)(unsafe.Pointer(state)).Fndist {
  9889. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 115
  9890. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  9891. break
  9892. }
  9893. for {
  9894. v29 = copy1
  9895. copy1--
  9896. if !(v29 != 0) {
  9897. break
  9898. }
  9899. v31 = state + 140
  9900. v30 = *(*uint32)(unsafe.Pointer(v31))
  9901. *(*uint32)(unsafe.Pointer(v31))++
  9902. *(*uint16)(unsafe.Pointer(state + 152 + uintptr(v30)*2)) = uint16(len1)
  9903. }
  9904. }
  9905. }
  9906. /* handle error breaks in while */
  9907. if (*Tinflate_state)(unsafe.Pointer(state)).Fmode == int32(_BAD) {
  9908. goto _10
  9909. }
  9910. /* check for end-of-block code (better have one) */
  9911. if libc.Int32FromUint16(*(*uint16)(unsafe.Pointer(state + 152 + 256*2))) == 0 {
  9912. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 141
  9913. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  9914. goto _10
  9915. }
  9916. /* build code tables -- note: do not change the lenbits or distbits
  9917. values here (9 and 6) without reading the comments in inftrees.h
  9918. concerning the ENOUGH constants, which depend on those values */
  9919. (*Tinflate_state)(unsafe.Pointer(state)).Fnext = state + 1368
  9920. (*Tinflate_state)(unsafe.Pointer(state)).Flencode = (*Tinflate_state)(unsafe.Pointer(state)).Fnext
  9921. (*Tinflate_state)(unsafe.Pointer(state)).Flenbits = uint32(9)
  9922. ret = Xinflate_table(tls, int32(_LENS), state+152, (*Tinflate_state)(unsafe.Pointer(state)).Fnlen, state+144, state+120, state+792)
  9923. if ret != 0 {
  9924. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 178
  9925. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  9926. goto _10
  9927. }
  9928. (*Tinflate_state)(unsafe.Pointer(state)).Fdistcode = (*Tinflate_state)(unsafe.Pointer(state)).Fnext
  9929. (*Tinflate_state)(unsafe.Pointer(state)).Fdistbits = uint32(6)
  9930. ret = Xinflate_table(tls, int32(_DISTS), state+152+uintptr((*Tinflate_state)(unsafe.Pointer(state)).Fnlen)*2, (*Tinflate_state)(unsafe.Pointer(state)).Fndist, state+144, state+124, state+792)
  9931. if ret != 0 {
  9932. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 206
  9933. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  9934. goto _10
  9935. }
  9936. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LEN)
  9937. /* fallthrough */
  9938. _6:
  9939. ;
  9940. /* use inflate_fast() if we have enough input and output */
  9941. if have >= uint32(6) && left >= uint32(258) {
  9942. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out = put
  9943. (*Tz_stream)(unsafe.Pointer(strm)).Favail_out = left
  9944. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = *(*uintptr)(unsafe.Pointer(bp))
  9945. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = have
  9946. (*Tinflate_state)(unsafe.Pointer(state)).Fhold = hold
  9947. (*Tinflate_state)(unsafe.Pointer(state)).Fbits = bits
  9948. if (*Tinflate_state)(unsafe.Pointer(state)).Fwhave < (*Tinflate_state)(unsafe.Pointer(state)).Fwsize {
  9949. (*Tinflate_state)(unsafe.Pointer(state)).Fwhave = (*Tinflate_state)(unsafe.Pointer(state)).Fwsize - left
  9950. }
  9951. Xinflate_fast(tls, strm, (*Tinflate_state)(unsafe.Pointer(state)).Fwsize)
  9952. put = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out
  9953. left = (*Tz_stream)(unsafe.Pointer(strm)).Favail_out
  9954. *(*uintptr)(unsafe.Pointer(bp)) = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in
  9955. have = (*Tz_stream)(unsafe.Pointer(strm)).Favail_in
  9956. hold = (*Tinflate_state)(unsafe.Pointer(state)).Fhold
  9957. bits = (*Tinflate_state)(unsafe.Pointer(state)).Fbits
  9958. goto _10
  9959. }
  9960. /* get a literal, length, or end-of-block code */
  9961. for {
  9962. here = *(*Tcode)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Flencode + uintptr(uint32(hold)&(libc.Uint32FromUint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Flenbits-libc.Uint32FromInt32(1)))*4))
  9963. if uint32(here.Fbits) <= bits {
  9964. break
  9965. }
  9966. if have == uint32(0) {
  9967. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9968. if have == uint32(0) {
  9969. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9970. ret = -int32(5)
  9971. goto inf_leave
  9972. }
  9973. }
  9974. have--
  9975. v33 = *(*uintptr)(unsafe.Pointer(bp))
  9976. *(*uintptr)(unsafe.Pointer(bp))++
  9977. hold += uint64(*(*uint8)(unsafe.Pointer(v33))) << bits
  9978. bits += uint32(8)
  9979. goto _32
  9980. _32:
  9981. }
  9982. if here.Fop != 0 && libc.Int32FromUint8(here.Fop)&int32(0xf0) == 0 {
  9983. last = here
  9984. for {
  9985. here = *(*Tcode)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Flencode + uintptr(uint32(last.Fval)+uint32(hold)&(uint32(1)<<(libc.Int32FromUint8(last.Fbits)+libc.Int32FromUint8(last.Fop))-uint32(1))>>last.Fbits)*4))
  9986. if libc.Uint32FromInt32(libc.Int32FromUint8(last.Fbits)+libc.Int32FromUint8(here.Fbits)) <= bits {
  9987. break
  9988. }
  9989. if have == uint32(0) {
  9990. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9991. if have == uint32(0) {
  9992. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9993. ret = -int32(5)
  9994. goto inf_leave
  9995. }
  9996. }
  9997. have--
  9998. v35 = *(*uintptr)(unsafe.Pointer(bp))
  9999. *(*uintptr)(unsafe.Pointer(bp))++
  10000. hold += uint64(*(*uint8)(unsafe.Pointer(v35))) << bits
  10001. bits += uint32(8)
  10002. goto _34
  10003. _34:
  10004. }
  10005. hold >>= uint64(last.Fbits)
  10006. bits -= uint32(last.Fbits)
  10007. }
  10008. hold >>= uint64(here.Fbits)
  10009. bits -= uint32(here.Fbits)
  10010. (*Tinflate_state)(unsafe.Pointer(state)).Flength = uint32(here.Fval)
  10011. /* process literal */
  10012. if libc.Int32FromUint8(here.Fop) == 0 {
  10013. if left == uint32(0) {
  10014. put = (*Tinflate_state)(unsafe.Pointer(state)).Fwindow
  10015. left = (*Tinflate_state)(unsafe.Pointer(state)).Fwsize
  10016. (*Tinflate_state)(unsafe.Pointer(state)).Fwhave = left
  10017. if (*(*func(*libc.TLS, uintptr, uintptr, uint32) int32)(unsafe.Pointer(&struct{ uintptr }{out})))(tls, out_desc, put, left) != 0 {
  10018. ret = -int32(5)
  10019. goto inf_leave
  10020. }
  10021. }
  10022. v36 = put
  10023. put++
  10024. *(*uint8)(unsafe.Pointer(v36)) = uint8((*Tinflate_state)(unsafe.Pointer(state)).Flength)
  10025. left--
  10026. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LEN)
  10027. goto _10
  10028. }
  10029. /* process end of block */
  10030. if libc.Int32FromUint8(here.Fop)&int32(32) != 0 {
  10031. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TYPE)
  10032. goto _10
  10033. }
  10034. /* invalid code */
  10035. if libc.Int32FromUint8(here.Fop)&int32(64) != 0 {
  10036. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 228
  10037. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  10038. goto _10
  10039. }
  10040. /* length code -- get extra bits, if any */
  10041. (*Tinflate_state)(unsafe.Pointer(state)).Fextra = uint32(here.Fop) & uint32(15)
  10042. if (*Tinflate_state)(unsafe.Pointer(state)).Fextra != uint32(0) {
  10043. for bits < (*Tinflate_state)(unsafe.Pointer(state)).Fextra {
  10044. if have == uint32(0) {
  10045. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  10046. if have == uint32(0) {
  10047. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  10048. ret = -int32(5)
  10049. goto inf_leave
  10050. }
  10051. }
  10052. have--
  10053. v37 = *(*uintptr)(unsafe.Pointer(bp))
  10054. *(*uintptr)(unsafe.Pointer(bp))++
  10055. hold += uint64(*(*uint8)(unsafe.Pointer(v37))) << bits
  10056. bits += uint32(8)
  10057. }
  10058. *(*uint32)(unsafe.Pointer(state + 92)) += uint32(hold) & (uint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Fextra - uint32(1))
  10059. hold >>= uint64((*Tinflate_state)(unsafe.Pointer(state)).Fextra)
  10060. bits -= (*Tinflate_state)(unsafe.Pointer(state)).Fextra
  10061. }
  10062. /* get distance code */
  10063. for {
  10064. here = *(*Tcode)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fdistcode + uintptr(uint32(hold)&(libc.Uint32FromUint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Fdistbits-libc.Uint32FromInt32(1)))*4))
  10065. if uint32(here.Fbits) <= bits {
  10066. break
  10067. }
  10068. if have == uint32(0) {
  10069. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  10070. if have == uint32(0) {
  10071. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  10072. ret = -int32(5)
  10073. goto inf_leave
  10074. }
  10075. }
  10076. have--
  10077. v39 = *(*uintptr)(unsafe.Pointer(bp))
  10078. *(*uintptr)(unsafe.Pointer(bp))++
  10079. hold += uint64(*(*uint8)(unsafe.Pointer(v39))) << bits
  10080. bits += uint32(8)
  10081. goto _38
  10082. _38:
  10083. }
  10084. if libc.Int32FromUint8(here.Fop)&int32(0xf0) == 0 {
  10085. last = here
  10086. for {
  10087. here = *(*Tcode)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fdistcode + uintptr(uint32(last.Fval)+uint32(hold)&(uint32(1)<<(libc.Int32FromUint8(last.Fbits)+libc.Int32FromUint8(last.Fop))-uint32(1))>>last.Fbits)*4))
  10088. if libc.Uint32FromInt32(libc.Int32FromUint8(last.Fbits)+libc.Int32FromUint8(here.Fbits)) <= bits {
  10089. break
  10090. }
  10091. if have == uint32(0) {
  10092. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  10093. if have == uint32(0) {
  10094. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  10095. ret = -int32(5)
  10096. goto inf_leave
  10097. }
  10098. }
  10099. have--
  10100. v41 = *(*uintptr)(unsafe.Pointer(bp))
  10101. *(*uintptr)(unsafe.Pointer(bp))++
  10102. hold += uint64(*(*uint8)(unsafe.Pointer(v41))) << bits
  10103. bits += uint32(8)
  10104. goto _40
  10105. _40:
  10106. }
  10107. hold >>= uint64(last.Fbits)
  10108. bits -= uint32(last.Fbits)
  10109. }
  10110. hold >>= uint64(here.Fbits)
  10111. bits -= uint32(here.Fbits)
  10112. if libc.Int32FromUint8(here.Fop)&int32(64) != 0 {
  10113. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 256
  10114. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  10115. goto _10
  10116. }
  10117. (*Tinflate_state)(unsafe.Pointer(state)).Foffset = uint32(here.Fval)
  10118. /* get distance extra bits, if any */
  10119. (*Tinflate_state)(unsafe.Pointer(state)).Fextra = uint32(here.Fop) & uint32(15)
  10120. if (*Tinflate_state)(unsafe.Pointer(state)).Fextra != uint32(0) {
  10121. for bits < (*Tinflate_state)(unsafe.Pointer(state)).Fextra {
  10122. if have == uint32(0) {
  10123. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  10124. if have == uint32(0) {
  10125. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  10126. ret = -int32(5)
  10127. goto inf_leave
  10128. }
  10129. }
  10130. have--
  10131. v42 = *(*uintptr)(unsafe.Pointer(bp))
  10132. *(*uintptr)(unsafe.Pointer(bp))++
  10133. hold += uint64(*(*uint8)(unsafe.Pointer(v42))) << bits
  10134. bits += uint32(8)
  10135. }
  10136. *(*uint32)(unsafe.Pointer(state + 96)) += uint32(hold) & (uint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Fextra - uint32(1))
  10137. hold >>= uint64((*Tinflate_state)(unsafe.Pointer(state)).Fextra)
  10138. bits -= (*Tinflate_state)(unsafe.Pointer(state)).Fextra
  10139. }
  10140. if (*Tinflate_state)(unsafe.Pointer(state)).Fwhave < (*Tinflate_state)(unsafe.Pointer(state)).Fwsize {
  10141. v43 = left
  10142. } else {
  10143. v43 = uint32(0)
  10144. }
  10145. if (*Tinflate_state)(unsafe.Pointer(state)).Foffset > (*Tinflate_state)(unsafe.Pointer(state)).Fwsize-v43 {
  10146. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 278
  10147. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  10148. goto _10
  10149. }
  10150. /* copy match from window to output */
  10151. for cond := true; cond; cond = (*Tinflate_state)(unsafe.Pointer(state)).Flength != uint32(0) {
  10152. if left == uint32(0) {
  10153. put = (*Tinflate_state)(unsafe.Pointer(state)).Fwindow
  10154. left = (*Tinflate_state)(unsafe.Pointer(state)).Fwsize
  10155. (*Tinflate_state)(unsafe.Pointer(state)).Fwhave = left
  10156. if (*(*func(*libc.TLS, uintptr, uintptr, uint32) int32)(unsafe.Pointer(&struct{ uintptr }{out})))(tls, out_desc, put, left) != 0 {
  10157. ret = -int32(5)
  10158. goto inf_leave
  10159. }
  10160. }
  10161. copy1 = (*Tinflate_state)(unsafe.Pointer(state)).Fwsize - (*Tinflate_state)(unsafe.Pointer(state)).Foffset
  10162. if copy1 < left {
  10163. from = put + uintptr(copy1)
  10164. copy1 = left - copy1
  10165. } else {
  10166. from = put - uintptr((*Tinflate_state)(unsafe.Pointer(state)).Foffset)
  10167. copy1 = left
  10168. }
  10169. if copy1 > (*Tinflate_state)(unsafe.Pointer(state)).Flength {
  10170. copy1 = (*Tinflate_state)(unsafe.Pointer(state)).Flength
  10171. }
  10172. *(*uint32)(unsafe.Pointer(state + 92)) -= copy1
  10173. left -= copy1
  10174. for {
  10175. v46 = put
  10176. put++
  10177. v47 = from
  10178. from++
  10179. *(*uint8)(unsafe.Pointer(v46)) = *(*uint8)(unsafe.Pointer(v47))
  10180. goto _45
  10181. _45:
  10182. ;
  10183. copy1--
  10184. v44 = copy1
  10185. if !(v44 != 0) {
  10186. break
  10187. }
  10188. }
  10189. }
  10190. goto _10
  10191. _7:
  10192. ;
  10193. /* inflate stream terminated properly */
  10194. ret = int32(m_Z_STREAM_END)
  10195. goto inf_leave
  10196. _8:
  10197. ;
  10198. ret = -int32(3)
  10199. goto inf_leave
  10200. _9:
  10201. ;
  10202. /* can't happen, but makes compilers happy */
  10203. ret = -int32(2)
  10204. goto inf_leave
  10205. _10:
  10206. ;
  10207. goto _2
  10208. _2:
  10209. }
  10210. /* Write leftover output and return unused input */
  10211. goto inf_leave
  10212. inf_leave:
  10213. ;
  10214. if left < (*Tinflate_state)(unsafe.Pointer(state)).Fwsize {
  10215. if (*(*func(*libc.TLS, uintptr, uintptr, uint32) int32)(unsafe.Pointer(&struct{ uintptr }{out})))(tls, out_desc, (*Tinflate_state)(unsafe.Pointer(state)).Fwindow, (*Tinflate_state)(unsafe.Pointer(state)).Fwsize-left) != 0 && ret == int32(m_Z_STREAM_END) {
  10216. ret = -int32(5)
  10217. }
  10218. }
  10219. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = *(*uintptr)(unsafe.Pointer(bp))
  10220. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = have
  10221. return ret
  10222. }
  10223. var _order = [19]uint16{
  10224. 0: uint16(16),
  10225. 1: uint16(17),
  10226. 2: uint16(18),
  10227. 4: uint16(8),
  10228. 5: uint16(7),
  10229. 6: uint16(9),
  10230. 7: uint16(6),
  10231. 8: uint16(10),
  10232. 9: uint16(5),
  10233. 10: uint16(11),
  10234. 11: uint16(4),
  10235. 12: uint16(12),
  10236. 13: uint16(3),
  10237. 14: uint16(13),
  10238. 15: uint16(2),
  10239. 16: uint16(14),
  10240. 17: uint16(1),
  10241. 18: uint16(15),
  10242. }
  10243. func XinflateBackEnd(tls *libc.TLS, strm Tz_streamp) (r int32) {
  10244. if strm == uintptr(m_Z_NULL) || (*Tz_stream)(unsafe.Pointer(strm)).Fstate == uintptr(m_Z_NULL) || (*Tz_stream)(unsafe.Pointer(strm)).Fzfree == libc.UintptrFromInt32(0) {
  10245. return -int32(2)
  10246. }
  10247. (*(*func(*libc.TLS, Tvoidpf, Tvoidpf))(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(strm)).Fzfree})))(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fopaque, (*Tz_stream)(unsafe.Pointer(strm)).Fstate)
  10248. (*Tz_stream)(unsafe.Pointer(strm)).Fstate = uintptr(m_Z_NULL)
  10249. return m_Z_OK
  10250. }
  10251. // C documentation
  10252. //
  10253. // /*
  10254. // Decode literal, length, and distance codes and write out the resulting
  10255. // literal and match bytes until either not enough input or output is
  10256. // available, an end-of-block is encountered, or a data error is encountered.
  10257. // When large enough input and output buffers are supplied to inflate(), for
  10258. // example, a 16K input buffer and a 64K output buffer, more than 95% of the
  10259. // inflate execution time is spent in this routine.
  10260. //
  10261. // Entry assumptions:
  10262. //
  10263. // state->mode == LEN
  10264. // strm->avail_in >= 6
  10265. // strm->avail_out >= 258
  10266. // start >= strm->avail_out
  10267. // state->bits < 8
  10268. //
  10269. // On return, state->mode is one of:
  10270. //
  10271. // LEN -- ran out of enough output space or enough available input
  10272. // TYPE -- reached end of block code, inflate() to interpret next block
  10273. // BAD -- error in block data
  10274. //
  10275. // Notes:
  10276. //
  10277. // - The maximum input bits used by a length/distance pair is 15 bits for the
  10278. // length code, 5 bits for the length extra, 15 bits for the distance code,
  10279. // and 13 bits for the distance extra. This totals 48 bits, or six bytes.
  10280. // Therefore if strm->avail_in >= 6, then there is enough input to avoid
  10281. // checking for available input while decoding.
  10282. //
  10283. // - The maximum bytes that a single length/distance pair can output is 258
  10284. // bytes, which is the maximum length that can be coded. inflate_fast()
  10285. // requires strm->avail_out >= 258 for each loop to avoid checking for
  10286. // output space.
  10287. // */
  10288. func Xinflate_fast(tls *libc.TLS, strm Tz_streamp, start uint32) {
  10289. var beg, dcode, end, from, here, in, last, lcode, out, state, window, v1, v11, v12, v15, v16, v19, v2, v20, v23, v24, v25, v26, v27, v28, v29, v3, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v4, v40, v41, v42, v43, v44, v5, v6, v7, v8 uintptr
  10290. var bits, dist, dmask, len1, lmask, op, whave, wnext, wsize, v13, v17, v21, v9 uint32
  10291. var hold uint64
  10292. var v45, v46 int64
  10293. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = beg, bits, dcode, dist, dmask, end, from, here, hold, in, last, lcode, len1, lmask, op, out, state, whave, window, wnext, wsize, v1, v11, v12, v13, v15, v16, v17, v19, v2, v20, v21, v23, v24, v25, v26, v27, v28, v29, v3, v30, v31, v32, v33, v34, v35, v36, v37, v38, v39, v4, v40, v41, v42, v43, v44, v45, v46, v5, v6, v7, v8, v9 /* where to copy match from */
  10294. /* copy state to local variables */
  10295. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  10296. in = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in
  10297. last = in + uintptr((*Tz_stream)(unsafe.Pointer(strm)).Favail_in-libc.Uint32FromInt32(5))
  10298. out = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out
  10299. beg = out - uintptr(start-(*Tz_stream)(unsafe.Pointer(strm)).Favail_out)
  10300. end = out + uintptr((*Tz_stream)(unsafe.Pointer(strm)).Favail_out-libc.Uint32FromInt32(257))
  10301. wsize = (*Tinflate_state)(unsafe.Pointer(state)).Fwsize
  10302. whave = (*Tinflate_state)(unsafe.Pointer(state)).Fwhave
  10303. wnext = (*Tinflate_state)(unsafe.Pointer(state)).Fwnext
  10304. window = (*Tinflate_state)(unsafe.Pointer(state)).Fwindow
  10305. hold = (*Tinflate_state)(unsafe.Pointer(state)).Fhold
  10306. bits = (*Tinflate_state)(unsafe.Pointer(state)).Fbits
  10307. lcode = (*Tinflate_state)(unsafe.Pointer(state)).Flencode
  10308. dcode = (*Tinflate_state)(unsafe.Pointer(state)).Fdistcode
  10309. lmask = uint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Flenbits - uint32(1)
  10310. dmask = uint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Fdistbits - uint32(1)
  10311. /* decode literals and length/distances until end-of-block or not enough
  10312. input data or output space */
  10313. for cond := true; cond; cond = in < last && out < end {
  10314. if bits < uint32(15) {
  10315. v1 = in
  10316. in++
  10317. hold += uint64(*(*uint8)(unsafe.Pointer(v1))) << bits
  10318. bits += uint32(8)
  10319. v2 = in
  10320. in++
  10321. hold += uint64(*(*uint8)(unsafe.Pointer(v2))) << bits
  10322. bits += uint32(8)
  10323. }
  10324. here = lcode + uintptr(hold&uint64(lmask))*4
  10325. goto dolen
  10326. dolen:
  10327. ;
  10328. op = uint32((*Tcode)(unsafe.Pointer(here)).Fbits)
  10329. hold >>= uint64(op)
  10330. bits -= op
  10331. op = uint32((*Tcode)(unsafe.Pointer(here)).Fop)
  10332. if op == uint32(0) { /* literal */
  10333. v3 = out
  10334. out++
  10335. *(*uint8)(unsafe.Pointer(v3)) = uint8((*Tcode)(unsafe.Pointer(here)).Fval)
  10336. } else {
  10337. if op&uint32(16) != 0 { /* length base */
  10338. len1 = uint32((*Tcode)(unsafe.Pointer(here)).Fval)
  10339. op &= uint32(15) /* number of extra bits */
  10340. if op != 0 {
  10341. if bits < op {
  10342. v4 = in
  10343. in++
  10344. hold += uint64(*(*uint8)(unsafe.Pointer(v4))) << bits
  10345. bits += uint32(8)
  10346. }
  10347. len1 += uint32(hold) & (uint32(1)<<op - uint32(1))
  10348. hold >>= uint64(op)
  10349. bits -= op
  10350. }
  10351. if bits < uint32(15) {
  10352. v5 = in
  10353. in++
  10354. hold += uint64(*(*uint8)(unsafe.Pointer(v5))) << bits
  10355. bits += uint32(8)
  10356. v6 = in
  10357. in++
  10358. hold += uint64(*(*uint8)(unsafe.Pointer(v6))) << bits
  10359. bits += uint32(8)
  10360. }
  10361. here = dcode + uintptr(hold&uint64(dmask))*4
  10362. goto dodist
  10363. dodist:
  10364. ;
  10365. op = uint32((*Tcode)(unsafe.Pointer(here)).Fbits)
  10366. hold >>= uint64(op)
  10367. bits -= op
  10368. op = uint32((*Tcode)(unsafe.Pointer(here)).Fop)
  10369. if op&uint32(16) != 0 { /* distance base */
  10370. dist = uint32((*Tcode)(unsafe.Pointer(here)).Fval)
  10371. op &= uint32(15) /* number of extra bits */
  10372. if bits < op {
  10373. v7 = in
  10374. in++
  10375. hold += uint64(*(*uint8)(unsafe.Pointer(v7))) << bits
  10376. bits += uint32(8)
  10377. if bits < op {
  10378. v8 = in
  10379. in++
  10380. hold += uint64(*(*uint8)(unsafe.Pointer(v8))) << bits
  10381. bits += uint32(8)
  10382. }
  10383. }
  10384. dist += uint32(hold) & (uint32(1)<<op - uint32(1))
  10385. hold >>= uint64(op)
  10386. bits -= op
  10387. op = libc.Uint32FromInt64(int64(out) - int64(beg)) /* max distance in output */
  10388. if dist > op { /* see if copy from window */
  10389. op = dist - op /* distance back in window */
  10390. if op > whave {
  10391. if (*Tinflate_state)(unsafe.Pointer(state)).Fsane != 0 {
  10392. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 278
  10393. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  10394. break
  10395. }
  10396. }
  10397. from = window
  10398. if wnext == uint32(0) { /* very common case */
  10399. from += uintptr(wsize - op)
  10400. if op < len1 { /* some from window */
  10401. len1 -= op
  10402. for {
  10403. v11 = out
  10404. out++
  10405. v12 = from
  10406. from++
  10407. *(*uint8)(unsafe.Pointer(v11)) = *(*uint8)(unsafe.Pointer(v12))
  10408. goto _10
  10409. _10:
  10410. ;
  10411. op--
  10412. v9 = op
  10413. if !(v9 != 0) {
  10414. break
  10415. }
  10416. }
  10417. from = out - uintptr(dist) /* rest from output */
  10418. }
  10419. } else {
  10420. if wnext < op { /* wrap around window */
  10421. from += uintptr(wsize + wnext - op)
  10422. op -= wnext
  10423. if op < len1 { /* some from end of window */
  10424. len1 -= op
  10425. for {
  10426. v15 = out
  10427. out++
  10428. v16 = from
  10429. from++
  10430. *(*uint8)(unsafe.Pointer(v15)) = *(*uint8)(unsafe.Pointer(v16))
  10431. goto _14
  10432. _14:
  10433. ;
  10434. op--
  10435. v13 = op
  10436. if !(v13 != 0) {
  10437. break
  10438. }
  10439. }
  10440. from = window
  10441. if wnext < len1 { /* some from start of window */
  10442. op = wnext
  10443. len1 -= op
  10444. for {
  10445. v19 = out
  10446. out++
  10447. v20 = from
  10448. from++
  10449. *(*uint8)(unsafe.Pointer(v19)) = *(*uint8)(unsafe.Pointer(v20))
  10450. goto _18
  10451. _18:
  10452. ;
  10453. op--
  10454. v17 = op
  10455. if !(v17 != 0) {
  10456. break
  10457. }
  10458. }
  10459. from = out - uintptr(dist) /* rest from output */
  10460. }
  10461. }
  10462. } else { /* contiguous in window */
  10463. from += uintptr(wnext - op)
  10464. if op < len1 { /* some from window */
  10465. len1 -= op
  10466. for {
  10467. v23 = out
  10468. out++
  10469. v24 = from
  10470. from++
  10471. *(*uint8)(unsafe.Pointer(v23)) = *(*uint8)(unsafe.Pointer(v24))
  10472. goto _22
  10473. _22:
  10474. ;
  10475. op--
  10476. v21 = op
  10477. if !(v21 != 0) {
  10478. break
  10479. }
  10480. }
  10481. from = out - uintptr(dist) /* rest from output */
  10482. }
  10483. }
  10484. }
  10485. for len1 > uint32(2) {
  10486. v25 = out
  10487. out++
  10488. v26 = from
  10489. from++
  10490. *(*uint8)(unsafe.Pointer(v25)) = *(*uint8)(unsafe.Pointer(v26))
  10491. v27 = out
  10492. out++
  10493. v28 = from
  10494. from++
  10495. *(*uint8)(unsafe.Pointer(v27)) = *(*uint8)(unsafe.Pointer(v28))
  10496. v29 = out
  10497. out++
  10498. v30 = from
  10499. from++
  10500. *(*uint8)(unsafe.Pointer(v29)) = *(*uint8)(unsafe.Pointer(v30))
  10501. len1 -= uint32(3)
  10502. }
  10503. if len1 != 0 {
  10504. v31 = out
  10505. out++
  10506. v32 = from
  10507. from++
  10508. *(*uint8)(unsafe.Pointer(v31)) = *(*uint8)(unsafe.Pointer(v32))
  10509. if len1 > uint32(1) {
  10510. v33 = out
  10511. out++
  10512. v34 = from
  10513. from++
  10514. *(*uint8)(unsafe.Pointer(v33)) = *(*uint8)(unsafe.Pointer(v34))
  10515. }
  10516. }
  10517. } else {
  10518. from = out - uintptr(dist) /* copy direct from output */
  10519. for cond := true; cond; cond = len1 > uint32(2) { /* minimum length is three */
  10520. v35 = out
  10521. out++
  10522. v36 = from
  10523. from++
  10524. *(*uint8)(unsafe.Pointer(v35)) = *(*uint8)(unsafe.Pointer(v36))
  10525. v37 = out
  10526. out++
  10527. v38 = from
  10528. from++
  10529. *(*uint8)(unsafe.Pointer(v37)) = *(*uint8)(unsafe.Pointer(v38))
  10530. v39 = out
  10531. out++
  10532. v40 = from
  10533. from++
  10534. *(*uint8)(unsafe.Pointer(v39)) = *(*uint8)(unsafe.Pointer(v40))
  10535. len1 -= uint32(3)
  10536. }
  10537. if len1 != 0 {
  10538. v41 = out
  10539. out++
  10540. v42 = from
  10541. from++
  10542. *(*uint8)(unsafe.Pointer(v41)) = *(*uint8)(unsafe.Pointer(v42))
  10543. if len1 > uint32(1) {
  10544. v43 = out
  10545. out++
  10546. v44 = from
  10547. from++
  10548. *(*uint8)(unsafe.Pointer(v43)) = *(*uint8)(unsafe.Pointer(v44))
  10549. }
  10550. }
  10551. }
  10552. } else {
  10553. if op&uint32(64) == uint32(0) { /* 2nd level distance code */
  10554. here = dcode + uintptr((*Tcode)(unsafe.Pointer(here)).Fval)*4 + uintptr(hold&uint64(libc.Uint32FromUint32(1)<<op-libc.Uint32FromInt32(1)))*4
  10555. goto dodist
  10556. } else {
  10557. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 256
  10558. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  10559. break
  10560. }
  10561. }
  10562. } else {
  10563. if op&uint32(64) == uint32(0) { /* 2nd level length code */
  10564. here = lcode + uintptr((*Tcode)(unsafe.Pointer(here)).Fval)*4 + uintptr(hold&uint64(libc.Uint32FromUint32(1)<<op-libc.Uint32FromInt32(1)))*4
  10565. goto dolen
  10566. } else {
  10567. if op&uint32(32) != 0 { /* end-of-block */
  10568. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TYPE)
  10569. break
  10570. } else {
  10571. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 228
  10572. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  10573. break
  10574. }
  10575. }
  10576. }
  10577. }
  10578. }
  10579. /* return unused bytes (on entry, bits < 8, so in won't go too far back) */
  10580. len1 = bits >> int32(3)
  10581. in -= uintptr(len1)
  10582. bits -= len1 << int32(3)
  10583. hold &= uint64(uint32(1)<<bits - uint32(1))
  10584. /* update state and return */
  10585. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = in
  10586. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out = out
  10587. if in < last {
  10588. v45 = int64(5) + (int64(last) - int64(in))
  10589. } else {
  10590. v45 = int64(5) - (int64(in) - int64(last))
  10591. }
  10592. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = libc.Uint32FromInt64(v45)
  10593. if out < end {
  10594. v46 = int64(257) + (int64(end) - int64(out))
  10595. } else {
  10596. v46 = int64(257) - (int64(out) - int64(end))
  10597. }
  10598. (*Tz_stream)(unsafe.Pointer(strm)).Favail_out = libc.Uint32FromInt64(v46)
  10599. (*Tinflate_state)(unsafe.Pointer(state)).Fhold = hold
  10600. (*Tinflate_state)(unsafe.Pointer(state)).Fbits = bits
  10601. return
  10602. }
  10603. func _inflateStateCheck(tls *libc.TLS, strm Tz_streamp) (r int32) {
  10604. var state uintptr
  10605. _ = state
  10606. if strm == uintptr(m_Z_NULL) || (*Tz_stream)(unsafe.Pointer(strm)).Fzalloc == libc.UintptrFromInt32(0) || (*Tz_stream)(unsafe.Pointer(strm)).Fzfree == libc.UintptrFromInt32(0) {
  10607. return int32(1)
  10608. }
  10609. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  10610. if state == uintptr(m_Z_NULL) || (*Tinflate_state)(unsafe.Pointer(state)).Fstrm != strm || (*Tinflate_state)(unsafe.Pointer(state)).Fmode < int32(_HEAD) || (*Tinflate_state)(unsafe.Pointer(state)).Fmode > int32(_SYNC) {
  10611. return int32(1)
  10612. }
  10613. return 0
  10614. }
  10615. func XinflateResetKeep(tls *libc.TLS, strm Tz_streamp) (r int32) {
  10616. var state, v3, v4 uintptr
  10617. var v1 TuLong
  10618. var v2 uint64
  10619. _, _, _, _, _ = state, v1, v2, v3, v4
  10620. if _inflateStateCheck(tls, strm) != 0 {
  10621. return -int32(2)
  10622. }
  10623. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  10624. v2 = libc.Uint64FromInt32(0)
  10625. (*Tinflate_state)(unsafe.Pointer(state)).Ftotal = v2
  10626. v1 = v2
  10627. (*Tz_stream)(unsafe.Pointer(strm)).Ftotal_out = v1
  10628. (*Tz_stream)(unsafe.Pointer(strm)).Ftotal_in = v1
  10629. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = uintptr(m_Z_NULL)
  10630. if (*Tinflate_state)(unsafe.Pointer(state)).Fwrap != 0 { /* to support ill-conceived Java test suite */
  10631. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = libc.Uint64FromInt32((*Tinflate_state)(unsafe.Pointer(state)).Fwrap & int32(1))
  10632. }
  10633. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_HEAD)
  10634. (*Tinflate_state)(unsafe.Pointer(state)).Flast = 0
  10635. (*Tinflate_state)(unsafe.Pointer(state)).Fhavedict = 0
  10636. (*Tinflate_state)(unsafe.Pointer(state)).Fflags = -int32(1)
  10637. (*Tinflate_state)(unsafe.Pointer(state)).Fdmax = uint32(32768)
  10638. (*Tinflate_state)(unsafe.Pointer(state)).Fhead = uintptr(m_Z_NULL)
  10639. (*Tinflate_state)(unsafe.Pointer(state)).Fhold = uint64(0)
  10640. (*Tinflate_state)(unsafe.Pointer(state)).Fbits = uint32(0)
  10641. v4 = state + 1368
  10642. (*Tinflate_state)(unsafe.Pointer(state)).Fnext = v4
  10643. v3 = v4
  10644. (*Tinflate_state)(unsafe.Pointer(state)).Fdistcode = v3
  10645. (*Tinflate_state)(unsafe.Pointer(state)).Flencode = v3
  10646. (*Tinflate_state)(unsafe.Pointer(state)).Fsane = int32(1)
  10647. (*Tinflate_state)(unsafe.Pointer(state)).Fback = -int32(1)
  10648. return m_Z_OK
  10649. }
  10650. func XinflateReset(tls *libc.TLS, strm Tz_streamp) (r int32) {
  10651. var state uintptr
  10652. _ = state
  10653. if _inflateStateCheck(tls, strm) != 0 {
  10654. return -int32(2)
  10655. }
  10656. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  10657. (*Tinflate_state)(unsafe.Pointer(state)).Fwsize = uint32(0)
  10658. (*Tinflate_state)(unsafe.Pointer(state)).Fwhave = uint32(0)
  10659. (*Tinflate_state)(unsafe.Pointer(state)).Fwnext = uint32(0)
  10660. return XinflateResetKeep(tls, strm)
  10661. }
  10662. func XinflateReset2(tls *libc.TLS, strm Tz_streamp, windowBits int32) (r int32) {
  10663. var state uintptr
  10664. var wrap int32
  10665. _, _ = state, wrap
  10666. /* get the state */
  10667. if _inflateStateCheck(tls, strm) != 0 {
  10668. return -int32(2)
  10669. }
  10670. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  10671. /* extract wrap request from windowBits parameter */
  10672. if windowBits < 0 {
  10673. if windowBits < -int32(15) {
  10674. return -int32(2)
  10675. }
  10676. wrap = 0
  10677. windowBits = -windowBits
  10678. } else {
  10679. wrap = windowBits>>int32(4) + int32(5)
  10680. if windowBits < int32(48) {
  10681. windowBits &= int32(15)
  10682. }
  10683. }
  10684. /* set number of window bits, free window if different */
  10685. if windowBits != 0 && (windowBits < int32(8) || windowBits > int32(15)) {
  10686. return -int32(2)
  10687. }
  10688. if (*Tinflate_state)(unsafe.Pointer(state)).Fwindow != uintptr(m_Z_NULL) && (*Tinflate_state)(unsafe.Pointer(state)).Fwbits != libc.Uint32FromInt32(windowBits) {
  10689. (*(*func(*libc.TLS, Tvoidpf, Tvoidpf))(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(strm)).Fzfree})))(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fopaque, (*Tinflate_state)(unsafe.Pointer(state)).Fwindow)
  10690. (*Tinflate_state)(unsafe.Pointer(state)).Fwindow = uintptr(m_Z_NULL)
  10691. }
  10692. /* update state and reset the rest of it */
  10693. (*Tinflate_state)(unsafe.Pointer(state)).Fwrap = wrap
  10694. (*Tinflate_state)(unsafe.Pointer(state)).Fwbits = libc.Uint32FromInt32(windowBits)
  10695. return XinflateReset(tls, strm)
  10696. }
  10697. func XinflateInit2_(tls *libc.TLS, strm Tz_streamp, windowBits int32, version uintptr, stream_size int32) (r int32) {
  10698. var ret int32
  10699. var state uintptr
  10700. _, _ = ret, state
  10701. if version == uintptr(m_Z_NULL) || int32(*(*int8)(unsafe.Pointer(version))) != int32(*(*int8)(unsafe.Pointer(__ccgo_ts))) || stream_size != libc.Int32FromUint64(libc.Uint64FromInt64(112)) {
  10702. return -int32(6)
  10703. }
  10704. if strm == uintptr(m_Z_NULL) {
  10705. return -int32(2)
  10706. }
  10707. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = uintptr(m_Z_NULL) /* in case we return an error */
  10708. if (*Tz_stream)(unsafe.Pointer(strm)).Fzalloc == libc.UintptrFromInt32(0) {
  10709. (*Tz_stream)(unsafe.Pointer(strm)).Fzalloc = __ccgo_fp(Xzcalloc)
  10710. (*Tz_stream)(unsafe.Pointer(strm)).Fopaque = libc.UintptrFromInt32(0)
  10711. }
  10712. if (*Tz_stream)(unsafe.Pointer(strm)).Fzfree == libc.UintptrFromInt32(0) {
  10713. (*Tz_stream)(unsafe.Pointer(strm)).Fzfree = __ccgo_fp(Xzcfree)
  10714. }
  10715. state = (*(*func(*libc.TLS, Tvoidpf, TuInt, TuInt) Tvoidpf)(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(strm)).Fzalloc})))(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fopaque, libc.Uint32FromInt32(libc.Int32FromInt32(1)), uint32(libc.Uint64FromInt64(7160)))
  10716. if state == uintptr(m_Z_NULL) {
  10717. return -int32(4)
  10718. }
  10719. (*Tz_stream)(unsafe.Pointer(strm)).Fstate = state
  10720. (*Tinflate_state)(unsafe.Pointer(state)).Fstrm = strm
  10721. (*Tinflate_state)(unsafe.Pointer(state)).Fwindow = uintptr(m_Z_NULL)
  10722. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_HEAD) /* to pass state test in inflateReset2() */
  10723. ret = XinflateReset2(tls, strm, windowBits)
  10724. if ret != m_Z_OK {
  10725. (*(*func(*libc.TLS, Tvoidpf, Tvoidpf))(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(strm)).Fzfree})))(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fopaque, state)
  10726. (*Tz_stream)(unsafe.Pointer(strm)).Fstate = uintptr(m_Z_NULL)
  10727. }
  10728. return ret
  10729. }
  10730. func XinflateInit_(tls *libc.TLS, strm Tz_streamp, version uintptr, stream_size int32) (r int32) {
  10731. return XinflateInit2_(tls, strm, int32(m_MAX_WBITS), version, stream_size)
  10732. }
  10733. func XinflatePrime(tls *libc.TLS, strm Tz_streamp, bits int32, value int32) (r int32) {
  10734. var state uintptr
  10735. _ = state
  10736. if _inflateStateCheck(tls, strm) != 0 {
  10737. return -int32(2)
  10738. }
  10739. if bits == 0 {
  10740. return m_Z_OK
  10741. }
  10742. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  10743. if bits < 0 {
  10744. (*Tinflate_state)(unsafe.Pointer(state)).Fhold = uint64(0)
  10745. (*Tinflate_state)(unsafe.Pointer(state)).Fbits = uint32(0)
  10746. return m_Z_OK
  10747. }
  10748. if bits > int32(16) || (*Tinflate_state)(unsafe.Pointer(state)).Fbits+libc.Uint32FromInt32(bits) > uint32(32) {
  10749. return -int32(2)
  10750. }
  10751. value = int32(int64(value) & (libc.Int64FromInt64(1)<<bits - libc.Int64FromInt32(1)))
  10752. *(*uint64)(unsafe.Pointer(state + 80)) += uint64(libc.Uint32FromInt32(value) << (*Tinflate_state)(unsafe.Pointer(state)).Fbits)
  10753. *(*uint32)(unsafe.Pointer(state + 88)) += libc.Uint32FromInt32(bits)
  10754. return m_Z_OK
  10755. }
  10756. // C documentation
  10757. //
  10758. // /*
  10759. // Return state with length and distance decoding tables and index sizes set to
  10760. // fixed code decoding. Normally this returns fixed tables from inffixed.h.
  10761. // If BUILDFIXED is defined, then instead this routine builds the tables the
  10762. // first time it's called, and returns those tables the first time and
  10763. // thereafter. This reduces the size of the code by about 2K bytes, in
  10764. // exchange for a little execution time. However, BUILDFIXED should not be
  10765. // used for threaded applications, since the rewriting of the tables and virgin
  10766. // may not be thread-safe.
  10767. // */
  10768. func _fixedtables1(tls *libc.TLS, state uintptr) {
  10769. (*Tinflate_state)(unsafe.Pointer(state)).Flencode = uintptr(unsafe.Pointer(&_lenfix1))
  10770. (*Tinflate_state)(unsafe.Pointer(state)).Flenbits = uint32(9)
  10771. (*Tinflate_state)(unsafe.Pointer(state)).Fdistcode = uintptr(unsafe.Pointer(&_distfix1))
  10772. (*Tinflate_state)(unsafe.Pointer(state)).Fdistbits = uint32(5)
  10773. }
  10774. var _lenfix1 = [512]Tcode{
  10775. 0: {
  10776. Fop: uint8(96),
  10777. Fbits: uint8(7),
  10778. },
  10779. 1: {
  10780. Fbits: uint8(8),
  10781. Fval: uint16(80),
  10782. },
  10783. 2: {
  10784. Fbits: uint8(8),
  10785. Fval: uint16(16),
  10786. },
  10787. 3: {
  10788. Fop: uint8(20),
  10789. Fbits: uint8(8),
  10790. Fval: uint16(115),
  10791. },
  10792. 4: {
  10793. Fop: uint8(18),
  10794. Fbits: uint8(7),
  10795. Fval: uint16(31),
  10796. },
  10797. 5: {
  10798. Fbits: uint8(8),
  10799. Fval: uint16(112),
  10800. },
  10801. 6: {
  10802. Fbits: uint8(8),
  10803. Fval: uint16(48),
  10804. },
  10805. 7: {
  10806. Fbits: uint8(9),
  10807. Fval: uint16(192),
  10808. },
  10809. 8: {
  10810. Fop: uint8(16),
  10811. Fbits: uint8(7),
  10812. Fval: uint16(10),
  10813. },
  10814. 9: {
  10815. Fbits: uint8(8),
  10816. Fval: uint16(96),
  10817. },
  10818. 10: {
  10819. Fbits: uint8(8),
  10820. Fval: uint16(32),
  10821. },
  10822. 11: {
  10823. Fbits: uint8(9),
  10824. Fval: uint16(160),
  10825. },
  10826. 12: {
  10827. Fbits: uint8(8),
  10828. },
  10829. 13: {
  10830. Fbits: uint8(8),
  10831. Fval: uint16(128),
  10832. },
  10833. 14: {
  10834. Fbits: uint8(8),
  10835. Fval: uint16(64),
  10836. },
  10837. 15: {
  10838. Fbits: uint8(9),
  10839. Fval: uint16(224),
  10840. },
  10841. 16: {
  10842. Fop: uint8(16),
  10843. Fbits: uint8(7),
  10844. Fval: uint16(6),
  10845. },
  10846. 17: {
  10847. Fbits: uint8(8),
  10848. Fval: uint16(88),
  10849. },
  10850. 18: {
  10851. Fbits: uint8(8),
  10852. Fval: uint16(24),
  10853. },
  10854. 19: {
  10855. Fbits: uint8(9),
  10856. Fval: uint16(144),
  10857. },
  10858. 20: {
  10859. Fop: uint8(19),
  10860. Fbits: uint8(7),
  10861. Fval: uint16(59),
  10862. },
  10863. 21: {
  10864. Fbits: uint8(8),
  10865. Fval: uint16(120),
  10866. },
  10867. 22: {
  10868. Fbits: uint8(8),
  10869. Fval: uint16(56),
  10870. },
  10871. 23: {
  10872. Fbits: uint8(9),
  10873. Fval: uint16(208),
  10874. },
  10875. 24: {
  10876. Fop: uint8(17),
  10877. Fbits: uint8(7),
  10878. Fval: uint16(17),
  10879. },
  10880. 25: {
  10881. Fbits: uint8(8),
  10882. Fval: uint16(104),
  10883. },
  10884. 26: {
  10885. Fbits: uint8(8),
  10886. Fval: uint16(40),
  10887. },
  10888. 27: {
  10889. Fbits: uint8(9),
  10890. Fval: uint16(176),
  10891. },
  10892. 28: {
  10893. Fbits: uint8(8),
  10894. Fval: uint16(8),
  10895. },
  10896. 29: {
  10897. Fbits: uint8(8),
  10898. Fval: uint16(136),
  10899. },
  10900. 30: {
  10901. Fbits: uint8(8),
  10902. Fval: uint16(72),
  10903. },
  10904. 31: {
  10905. Fbits: uint8(9),
  10906. Fval: uint16(240),
  10907. },
  10908. 32: {
  10909. Fop: uint8(16),
  10910. Fbits: uint8(7),
  10911. Fval: uint16(4),
  10912. },
  10913. 33: {
  10914. Fbits: uint8(8),
  10915. Fval: uint16(84),
  10916. },
  10917. 34: {
  10918. Fbits: uint8(8),
  10919. Fval: uint16(20),
  10920. },
  10921. 35: {
  10922. Fop: uint8(21),
  10923. Fbits: uint8(8),
  10924. Fval: uint16(227),
  10925. },
  10926. 36: {
  10927. Fop: uint8(19),
  10928. Fbits: uint8(7),
  10929. Fval: uint16(43),
  10930. },
  10931. 37: {
  10932. Fbits: uint8(8),
  10933. Fval: uint16(116),
  10934. },
  10935. 38: {
  10936. Fbits: uint8(8),
  10937. Fval: uint16(52),
  10938. },
  10939. 39: {
  10940. Fbits: uint8(9),
  10941. Fval: uint16(200),
  10942. },
  10943. 40: {
  10944. Fop: uint8(17),
  10945. Fbits: uint8(7),
  10946. Fval: uint16(13),
  10947. },
  10948. 41: {
  10949. Fbits: uint8(8),
  10950. Fval: uint16(100),
  10951. },
  10952. 42: {
  10953. Fbits: uint8(8),
  10954. Fval: uint16(36),
  10955. },
  10956. 43: {
  10957. Fbits: uint8(9),
  10958. Fval: uint16(168),
  10959. },
  10960. 44: {
  10961. Fbits: uint8(8),
  10962. Fval: uint16(4),
  10963. },
  10964. 45: {
  10965. Fbits: uint8(8),
  10966. Fval: uint16(132),
  10967. },
  10968. 46: {
  10969. Fbits: uint8(8),
  10970. Fval: uint16(68),
  10971. },
  10972. 47: {
  10973. Fbits: uint8(9),
  10974. Fval: uint16(232),
  10975. },
  10976. 48: {
  10977. Fop: uint8(16),
  10978. Fbits: uint8(7),
  10979. Fval: uint16(8),
  10980. },
  10981. 49: {
  10982. Fbits: uint8(8),
  10983. Fval: uint16(92),
  10984. },
  10985. 50: {
  10986. Fbits: uint8(8),
  10987. Fval: uint16(28),
  10988. },
  10989. 51: {
  10990. Fbits: uint8(9),
  10991. Fval: uint16(152),
  10992. },
  10993. 52: {
  10994. Fop: uint8(20),
  10995. Fbits: uint8(7),
  10996. Fval: uint16(83),
  10997. },
  10998. 53: {
  10999. Fbits: uint8(8),
  11000. Fval: uint16(124),
  11001. },
  11002. 54: {
  11003. Fbits: uint8(8),
  11004. Fval: uint16(60),
  11005. },
  11006. 55: {
  11007. Fbits: uint8(9),
  11008. Fval: uint16(216),
  11009. },
  11010. 56: {
  11011. Fop: uint8(18),
  11012. Fbits: uint8(7),
  11013. Fval: uint16(23),
  11014. },
  11015. 57: {
  11016. Fbits: uint8(8),
  11017. Fval: uint16(108),
  11018. },
  11019. 58: {
  11020. Fbits: uint8(8),
  11021. Fval: uint16(44),
  11022. },
  11023. 59: {
  11024. Fbits: uint8(9),
  11025. Fval: uint16(184),
  11026. },
  11027. 60: {
  11028. Fbits: uint8(8),
  11029. Fval: uint16(12),
  11030. },
  11031. 61: {
  11032. Fbits: uint8(8),
  11033. Fval: uint16(140),
  11034. },
  11035. 62: {
  11036. Fbits: uint8(8),
  11037. Fval: uint16(76),
  11038. },
  11039. 63: {
  11040. Fbits: uint8(9),
  11041. Fval: uint16(248),
  11042. },
  11043. 64: {
  11044. Fop: uint8(16),
  11045. Fbits: uint8(7),
  11046. Fval: uint16(3),
  11047. },
  11048. 65: {
  11049. Fbits: uint8(8),
  11050. Fval: uint16(82),
  11051. },
  11052. 66: {
  11053. Fbits: uint8(8),
  11054. Fval: uint16(18),
  11055. },
  11056. 67: {
  11057. Fop: uint8(21),
  11058. Fbits: uint8(8),
  11059. Fval: uint16(163),
  11060. },
  11061. 68: {
  11062. Fop: uint8(19),
  11063. Fbits: uint8(7),
  11064. Fval: uint16(35),
  11065. },
  11066. 69: {
  11067. Fbits: uint8(8),
  11068. Fval: uint16(114),
  11069. },
  11070. 70: {
  11071. Fbits: uint8(8),
  11072. Fval: uint16(50),
  11073. },
  11074. 71: {
  11075. Fbits: uint8(9),
  11076. Fval: uint16(196),
  11077. },
  11078. 72: {
  11079. Fop: uint8(17),
  11080. Fbits: uint8(7),
  11081. Fval: uint16(11),
  11082. },
  11083. 73: {
  11084. Fbits: uint8(8),
  11085. Fval: uint16(98),
  11086. },
  11087. 74: {
  11088. Fbits: uint8(8),
  11089. Fval: uint16(34),
  11090. },
  11091. 75: {
  11092. Fbits: uint8(9),
  11093. Fval: uint16(164),
  11094. },
  11095. 76: {
  11096. Fbits: uint8(8),
  11097. Fval: uint16(2),
  11098. },
  11099. 77: {
  11100. Fbits: uint8(8),
  11101. Fval: uint16(130),
  11102. },
  11103. 78: {
  11104. Fbits: uint8(8),
  11105. Fval: uint16(66),
  11106. },
  11107. 79: {
  11108. Fbits: uint8(9),
  11109. Fval: uint16(228),
  11110. },
  11111. 80: {
  11112. Fop: uint8(16),
  11113. Fbits: uint8(7),
  11114. Fval: uint16(7),
  11115. },
  11116. 81: {
  11117. Fbits: uint8(8),
  11118. Fval: uint16(90),
  11119. },
  11120. 82: {
  11121. Fbits: uint8(8),
  11122. Fval: uint16(26),
  11123. },
  11124. 83: {
  11125. Fbits: uint8(9),
  11126. Fval: uint16(148),
  11127. },
  11128. 84: {
  11129. Fop: uint8(20),
  11130. Fbits: uint8(7),
  11131. Fval: uint16(67),
  11132. },
  11133. 85: {
  11134. Fbits: uint8(8),
  11135. Fval: uint16(122),
  11136. },
  11137. 86: {
  11138. Fbits: uint8(8),
  11139. Fval: uint16(58),
  11140. },
  11141. 87: {
  11142. Fbits: uint8(9),
  11143. Fval: uint16(212),
  11144. },
  11145. 88: {
  11146. Fop: uint8(18),
  11147. Fbits: uint8(7),
  11148. Fval: uint16(19),
  11149. },
  11150. 89: {
  11151. Fbits: uint8(8),
  11152. Fval: uint16(106),
  11153. },
  11154. 90: {
  11155. Fbits: uint8(8),
  11156. Fval: uint16(42),
  11157. },
  11158. 91: {
  11159. Fbits: uint8(9),
  11160. Fval: uint16(180),
  11161. },
  11162. 92: {
  11163. Fbits: uint8(8),
  11164. Fval: uint16(10),
  11165. },
  11166. 93: {
  11167. Fbits: uint8(8),
  11168. Fval: uint16(138),
  11169. },
  11170. 94: {
  11171. Fbits: uint8(8),
  11172. Fval: uint16(74),
  11173. },
  11174. 95: {
  11175. Fbits: uint8(9),
  11176. Fval: uint16(244),
  11177. },
  11178. 96: {
  11179. Fop: uint8(16),
  11180. Fbits: uint8(7),
  11181. Fval: uint16(5),
  11182. },
  11183. 97: {
  11184. Fbits: uint8(8),
  11185. Fval: uint16(86),
  11186. },
  11187. 98: {
  11188. Fbits: uint8(8),
  11189. Fval: uint16(22),
  11190. },
  11191. 99: {
  11192. Fop: uint8(64),
  11193. Fbits: uint8(8),
  11194. },
  11195. 100: {
  11196. Fop: uint8(19),
  11197. Fbits: uint8(7),
  11198. Fval: uint16(51),
  11199. },
  11200. 101: {
  11201. Fbits: uint8(8),
  11202. Fval: uint16(118),
  11203. },
  11204. 102: {
  11205. Fbits: uint8(8),
  11206. Fval: uint16(54),
  11207. },
  11208. 103: {
  11209. Fbits: uint8(9),
  11210. Fval: uint16(204),
  11211. },
  11212. 104: {
  11213. Fop: uint8(17),
  11214. Fbits: uint8(7),
  11215. Fval: uint16(15),
  11216. },
  11217. 105: {
  11218. Fbits: uint8(8),
  11219. Fval: uint16(102),
  11220. },
  11221. 106: {
  11222. Fbits: uint8(8),
  11223. Fval: uint16(38),
  11224. },
  11225. 107: {
  11226. Fbits: uint8(9),
  11227. Fval: uint16(172),
  11228. },
  11229. 108: {
  11230. Fbits: uint8(8),
  11231. Fval: uint16(6),
  11232. },
  11233. 109: {
  11234. Fbits: uint8(8),
  11235. Fval: uint16(134),
  11236. },
  11237. 110: {
  11238. Fbits: uint8(8),
  11239. Fval: uint16(70),
  11240. },
  11241. 111: {
  11242. Fbits: uint8(9),
  11243. Fval: uint16(236),
  11244. },
  11245. 112: {
  11246. Fop: uint8(16),
  11247. Fbits: uint8(7),
  11248. Fval: uint16(9),
  11249. },
  11250. 113: {
  11251. Fbits: uint8(8),
  11252. Fval: uint16(94),
  11253. },
  11254. 114: {
  11255. Fbits: uint8(8),
  11256. Fval: uint16(30),
  11257. },
  11258. 115: {
  11259. Fbits: uint8(9),
  11260. Fval: uint16(156),
  11261. },
  11262. 116: {
  11263. Fop: uint8(20),
  11264. Fbits: uint8(7),
  11265. Fval: uint16(99),
  11266. },
  11267. 117: {
  11268. Fbits: uint8(8),
  11269. Fval: uint16(126),
  11270. },
  11271. 118: {
  11272. Fbits: uint8(8),
  11273. Fval: uint16(62),
  11274. },
  11275. 119: {
  11276. Fbits: uint8(9),
  11277. Fval: uint16(220),
  11278. },
  11279. 120: {
  11280. Fop: uint8(18),
  11281. Fbits: uint8(7),
  11282. Fval: uint16(27),
  11283. },
  11284. 121: {
  11285. Fbits: uint8(8),
  11286. Fval: uint16(110),
  11287. },
  11288. 122: {
  11289. Fbits: uint8(8),
  11290. Fval: uint16(46),
  11291. },
  11292. 123: {
  11293. Fbits: uint8(9),
  11294. Fval: uint16(188),
  11295. },
  11296. 124: {
  11297. Fbits: uint8(8),
  11298. Fval: uint16(14),
  11299. },
  11300. 125: {
  11301. Fbits: uint8(8),
  11302. Fval: uint16(142),
  11303. },
  11304. 126: {
  11305. Fbits: uint8(8),
  11306. Fval: uint16(78),
  11307. },
  11308. 127: {
  11309. Fbits: uint8(9),
  11310. Fval: uint16(252),
  11311. },
  11312. 128: {
  11313. Fop: uint8(96),
  11314. Fbits: uint8(7),
  11315. },
  11316. 129: {
  11317. Fbits: uint8(8),
  11318. Fval: uint16(81),
  11319. },
  11320. 130: {
  11321. Fbits: uint8(8),
  11322. Fval: uint16(17),
  11323. },
  11324. 131: {
  11325. Fop: uint8(21),
  11326. Fbits: uint8(8),
  11327. Fval: uint16(131),
  11328. },
  11329. 132: {
  11330. Fop: uint8(18),
  11331. Fbits: uint8(7),
  11332. Fval: uint16(31),
  11333. },
  11334. 133: {
  11335. Fbits: uint8(8),
  11336. Fval: uint16(113),
  11337. },
  11338. 134: {
  11339. Fbits: uint8(8),
  11340. Fval: uint16(49),
  11341. },
  11342. 135: {
  11343. Fbits: uint8(9),
  11344. Fval: uint16(194),
  11345. },
  11346. 136: {
  11347. Fop: uint8(16),
  11348. Fbits: uint8(7),
  11349. Fval: uint16(10),
  11350. },
  11351. 137: {
  11352. Fbits: uint8(8),
  11353. Fval: uint16(97),
  11354. },
  11355. 138: {
  11356. Fbits: uint8(8),
  11357. Fval: uint16(33),
  11358. },
  11359. 139: {
  11360. Fbits: uint8(9),
  11361. Fval: uint16(162),
  11362. },
  11363. 140: {
  11364. Fbits: uint8(8),
  11365. Fval: uint16(1),
  11366. },
  11367. 141: {
  11368. Fbits: uint8(8),
  11369. Fval: uint16(129),
  11370. },
  11371. 142: {
  11372. Fbits: uint8(8),
  11373. Fval: uint16(65),
  11374. },
  11375. 143: {
  11376. Fbits: uint8(9),
  11377. Fval: uint16(226),
  11378. },
  11379. 144: {
  11380. Fop: uint8(16),
  11381. Fbits: uint8(7),
  11382. Fval: uint16(6),
  11383. },
  11384. 145: {
  11385. Fbits: uint8(8),
  11386. Fval: uint16(89),
  11387. },
  11388. 146: {
  11389. Fbits: uint8(8),
  11390. Fval: uint16(25),
  11391. },
  11392. 147: {
  11393. Fbits: uint8(9),
  11394. Fval: uint16(146),
  11395. },
  11396. 148: {
  11397. Fop: uint8(19),
  11398. Fbits: uint8(7),
  11399. Fval: uint16(59),
  11400. },
  11401. 149: {
  11402. Fbits: uint8(8),
  11403. Fval: uint16(121),
  11404. },
  11405. 150: {
  11406. Fbits: uint8(8),
  11407. Fval: uint16(57),
  11408. },
  11409. 151: {
  11410. Fbits: uint8(9),
  11411. Fval: uint16(210),
  11412. },
  11413. 152: {
  11414. Fop: uint8(17),
  11415. Fbits: uint8(7),
  11416. Fval: uint16(17),
  11417. },
  11418. 153: {
  11419. Fbits: uint8(8),
  11420. Fval: uint16(105),
  11421. },
  11422. 154: {
  11423. Fbits: uint8(8),
  11424. Fval: uint16(41),
  11425. },
  11426. 155: {
  11427. Fbits: uint8(9),
  11428. Fval: uint16(178),
  11429. },
  11430. 156: {
  11431. Fbits: uint8(8),
  11432. Fval: uint16(9),
  11433. },
  11434. 157: {
  11435. Fbits: uint8(8),
  11436. Fval: uint16(137),
  11437. },
  11438. 158: {
  11439. Fbits: uint8(8),
  11440. Fval: uint16(73),
  11441. },
  11442. 159: {
  11443. Fbits: uint8(9),
  11444. Fval: uint16(242),
  11445. },
  11446. 160: {
  11447. Fop: uint8(16),
  11448. Fbits: uint8(7),
  11449. Fval: uint16(4),
  11450. },
  11451. 161: {
  11452. Fbits: uint8(8),
  11453. Fval: uint16(85),
  11454. },
  11455. 162: {
  11456. Fbits: uint8(8),
  11457. Fval: uint16(21),
  11458. },
  11459. 163: {
  11460. Fop: uint8(16),
  11461. Fbits: uint8(8),
  11462. Fval: uint16(258),
  11463. },
  11464. 164: {
  11465. Fop: uint8(19),
  11466. Fbits: uint8(7),
  11467. Fval: uint16(43),
  11468. },
  11469. 165: {
  11470. Fbits: uint8(8),
  11471. Fval: uint16(117),
  11472. },
  11473. 166: {
  11474. Fbits: uint8(8),
  11475. Fval: uint16(53),
  11476. },
  11477. 167: {
  11478. Fbits: uint8(9),
  11479. Fval: uint16(202),
  11480. },
  11481. 168: {
  11482. Fop: uint8(17),
  11483. Fbits: uint8(7),
  11484. Fval: uint16(13),
  11485. },
  11486. 169: {
  11487. Fbits: uint8(8),
  11488. Fval: uint16(101),
  11489. },
  11490. 170: {
  11491. Fbits: uint8(8),
  11492. Fval: uint16(37),
  11493. },
  11494. 171: {
  11495. Fbits: uint8(9),
  11496. Fval: uint16(170),
  11497. },
  11498. 172: {
  11499. Fbits: uint8(8),
  11500. Fval: uint16(5),
  11501. },
  11502. 173: {
  11503. Fbits: uint8(8),
  11504. Fval: uint16(133),
  11505. },
  11506. 174: {
  11507. Fbits: uint8(8),
  11508. Fval: uint16(69),
  11509. },
  11510. 175: {
  11511. Fbits: uint8(9),
  11512. Fval: uint16(234),
  11513. },
  11514. 176: {
  11515. Fop: uint8(16),
  11516. Fbits: uint8(7),
  11517. Fval: uint16(8),
  11518. },
  11519. 177: {
  11520. Fbits: uint8(8),
  11521. Fval: uint16(93),
  11522. },
  11523. 178: {
  11524. Fbits: uint8(8),
  11525. Fval: uint16(29),
  11526. },
  11527. 179: {
  11528. Fbits: uint8(9),
  11529. Fval: uint16(154),
  11530. },
  11531. 180: {
  11532. Fop: uint8(20),
  11533. Fbits: uint8(7),
  11534. Fval: uint16(83),
  11535. },
  11536. 181: {
  11537. Fbits: uint8(8),
  11538. Fval: uint16(125),
  11539. },
  11540. 182: {
  11541. Fbits: uint8(8),
  11542. Fval: uint16(61),
  11543. },
  11544. 183: {
  11545. Fbits: uint8(9),
  11546. Fval: uint16(218),
  11547. },
  11548. 184: {
  11549. Fop: uint8(18),
  11550. Fbits: uint8(7),
  11551. Fval: uint16(23),
  11552. },
  11553. 185: {
  11554. Fbits: uint8(8),
  11555. Fval: uint16(109),
  11556. },
  11557. 186: {
  11558. Fbits: uint8(8),
  11559. Fval: uint16(45),
  11560. },
  11561. 187: {
  11562. Fbits: uint8(9),
  11563. Fval: uint16(186),
  11564. },
  11565. 188: {
  11566. Fbits: uint8(8),
  11567. Fval: uint16(13),
  11568. },
  11569. 189: {
  11570. Fbits: uint8(8),
  11571. Fval: uint16(141),
  11572. },
  11573. 190: {
  11574. Fbits: uint8(8),
  11575. Fval: uint16(77),
  11576. },
  11577. 191: {
  11578. Fbits: uint8(9),
  11579. Fval: uint16(250),
  11580. },
  11581. 192: {
  11582. Fop: uint8(16),
  11583. Fbits: uint8(7),
  11584. Fval: uint16(3),
  11585. },
  11586. 193: {
  11587. Fbits: uint8(8),
  11588. Fval: uint16(83),
  11589. },
  11590. 194: {
  11591. Fbits: uint8(8),
  11592. Fval: uint16(19),
  11593. },
  11594. 195: {
  11595. Fop: uint8(21),
  11596. Fbits: uint8(8),
  11597. Fval: uint16(195),
  11598. },
  11599. 196: {
  11600. Fop: uint8(19),
  11601. Fbits: uint8(7),
  11602. Fval: uint16(35),
  11603. },
  11604. 197: {
  11605. Fbits: uint8(8),
  11606. Fval: uint16(115),
  11607. },
  11608. 198: {
  11609. Fbits: uint8(8),
  11610. Fval: uint16(51),
  11611. },
  11612. 199: {
  11613. Fbits: uint8(9),
  11614. Fval: uint16(198),
  11615. },
  11616. 200: {
  11617. Fop: uint8(17),
  11618. Fbits: uint8(7),
  11619. Fval: uint16(11),
  11620. },
  11621. 201: {
  11622. Fbits: uint8(8),
  11623. Fval: uint16(99),
  11624. },
  11625. 202: {
  11626. Fbits: uint8(8),
  11627. Fval: uint16(35),
  11628. },
  11629. 203: {
  11630. Fbits: uint8(9),
  11631. Fval: uint16(166),
  11632. },
  11633. 204: {
  11634. Fbits: uint8(8),
  11635. Fval: uint16(3),
  11636. },
  11637. 205: {
  11638. Fbits: uint8(8),
  11639. Fval: uint16(131),
  11640. },
  11641. 206: {
  11642. Fbits: uint8(8),
  11643. Fval: uint16(67),
  11644. },
  11645. 207: {
  11646. Fbits: uint8(9),
  11647. Fval: uint16(230),
  11648. },
  11649. 208: {
  11650. Fop: uint8(16),
  11651. Fbits: uint8(7),
  11652. Fval: uint16(7),
  11653. },
  11654. 209: {
  11655. Fbits: uint8(8),
  11656. Fval: uint16(91),
  11657. },
  11658. 210: {
  11659. Fbits: uint8(8),
  11660. Fval: uint16(27),
  11661. },
  11662. 211: {
  11663. Fbits: uint8(9),
  11664. Fval: uint16(150),
  11665. },
  11666. 212: {
  11667. Fop: uint8(20),
  11668. Fbits: uint8(7),
  11669. Fval: uint16(67),
  11670. },
  11671. 213: {
  11672. Fbits: uint8(8),
  11673. Fval: uint16(123),
  11674. },
  11675. 214: {
  11676. Fbits: uint8(8),
  11677. Fval: uint16(59),
  11678. },
  11679. 215: {
  11680. Fbits: uint8(9),
  11681. Fval: uint16(214),
  11682. },
  11683. 216: {
  11684. Fop: uint8(18),
  11685. Fbits: uint8(7),
  11686. Fval: uint16(19),
  11687. },
  11688. 217: {
  11689. Fbits: uint8(8),
  11690. Fval: uint16(107),
  11691. },
  11692. 218: {
  11693. Fbits: uint8(8),
  11694. Fval: uint16(43),
  11695. },
  11696. 219: {
  11697. Fbits: uint8(9),
  11698. Fval: uint16(182),
  11699. },
  11700. 220: {
  11701. Fbits: uint8(8),
  11702. Fval: uint16(11),
  11703. },
  11704. 221: {
  11705. Fbits: uint8(8),
  11706. Fval: uint16(139),
  11707. },
  11708. 222: {
  11709. Fbits: uint8(8),
  11710. Fval: uint16(75),
  11711. },
  11712. 223: {
  11713. Fbits: uint8(9),
  11714. Fval: uint16(246),
  11715. },
  11716. 224: {
  11717. Fop: uint8(16),
  11718. Fbits: uint8(7),
  11719. Fval: uint16(5),
  11720. },
  11721. 225: {
  11722. Fbits: uint8(8),
  11723. Fval: uint16(87),
  11724. },
  11725. 226: {
  11726. Fbits: uint8(8),
  11727. Fval: uint16(23),
  11728. },
  11729. 227: {
  11730. Fop: uint8(64),
  11731. Fbits: uint8(8),
  11732. },
  11733. 228: {
  11734. Fop: uint8(19),
  11735. Fbits: uint8(7),
  11736. Fval: uint16(51),
  11737. },
  11738. 229: {
  11739. Fbits: uint8(8),
  11740. Fval: uint16(119),
  11741. },
  11742. 230: {
  11743. Fbits: uint8(8),
  11744. Fval: uint16(55),
  11745. },
  11746. 231: {
  11747. Fbits: uint8(9),
  11748. Fval: uint16(206),
  11749. },
  11750. 232: {
  11751. Fop: uint8(17),
  11752. Fbits: uint8(7),
  11753. Fval: uint16(15),
  11754. },
  11755. 233: {
  11756. Fbits: uint8(8),
  11757. Fval: uint16(103),
  11758. },
  11759. 234: {
  11760. Fbits: uint8(8),
  11761. Fval: uint16(39),
  11762. },
  11763. 235: {
  11764. Fbits: uint8(9),
  11765. Fval: uint16(174),
  11766. },
  11767. 236: {
  11768. Fbits: uint8(8),
  11769. Fval: uint16(7),
  11770. },
  11771. 237: {
  11772. Fbits: uint8(8),
  11773. Fval: uint16(135),
  11774. },
  11775. 238: {
  11776. Fbits: uint8(8),
  11777. Fval: uint16(71),
  11778. },
  11779. 239: {
  11780. Fbits: uint8(9),
  11781. Fval: uint16(238),
  11782. },
  11783. 240: {
  11784. Fop: uint8(16),
  11785. Fbits: uint8(7),
  11786. Fval: uint16(9),
  11787. },
  11788. 241: {
  11789. Fbits: uint8(8),
  11790. Fval: uint16(95),
  11791. },
  11792. 242: {
  11793. Fbits: uint8(8),
  11794. Fval: uint16(31),
  11795. },
  11796. 243: {
  11797. Fbits: uint8(9),
  11798. Fval: uint16(158),
  11799. },
  11800. 244: {
  11801. Fop: uint8(20),
  11802. Fbits: uint8(7),
  11803. Fval: uint16(99),
  11804. },
  11805. 245: {
  11806. Fbits: uint8(8),
  11807. Fval: uint16(127),
  11808. },
  11809. 246: {
  11810. Fbits: uint8(8),
  11811. Fval: uint16(63),
  11812. },
  11813. 247: {
  11814. Fbits: uint8(9),
  11815. Fval: uint16(222),
  11816. },
  11817. 248: {
  11818. Fop: uint8(18),
  11819. Fbits: uint8(7),
  11820. Fval: uint16(27),
  11821. },
  11822. 249: {
  11823. Fbits: uint8(8),
  11824. Fval: uint16(111),
  11825. },
  11826. 250: {
  11827. Fbits: uint8(8),
  11828. Fval: uint16(47),
  11829. },
  11830. 251: {
  11831. Fbits: uint8(9),
  11832. Fval: uint16(190),
  11833. },
  11834. 252: {
  11835. Fbits: uint8(8),
  11836. Fval: uint16(15),
  11837. },
  11838. 253: {
  11839. Fbits: uint8(8),
  11840. Fval: uint16(143),
  11841. },
  11842. 254: {
  11843. Fbits: uint8(8),
  11844. Fval: uint16(79),
  11845. },
  11846. 255: {
  11847. Fbits: uint8(9),
  11848. Fval: uint16(254),
  11849. },
  11850. 256: {
  11851. Fop: uint8(96),
  11852. Fbits: uint8(7),
  11853. },
  11854. 257: {
  11855. Fbits: uint8(8),
  11856. Fval: uint16(80),
  11857. },
  11858. 258: {
  11859. Fbits: uint8(8),
  11860. Fval: uint16(16),
  11861. },
  11862. 259: {
  11863. Fop: uint8(20),
  11864. Fbits: uint8(8),
  11865. Fval: uint16(115),
  11866. },
  11867. 260: {
  11868. Fop: uint8(18),
  11869. Fbits: uint8(7),
  11870. Fval: uint16(31),
  11871. },
  11872. 261: {
  11873. Fbits: uint8(8),
  11874. Fval: uint16(112),
  11875. },
  11876. 262: {
  11877. Fbits: uint8(8),
  11878. Fval: uint16(48),
  11879. },
  11880. 263: {
  11881. Fbits: uint8(9),
  11882. Fval: uint16(193),
  11883. },
  11884. 264: {
  11885. Fop: uint8(16),
  11886. Fbits: uint8(7),
  11887. Fval: uint16(10),
  11888. },
  11889. 265: {
  11890. Fbits: uint8(8),
  11891. Fval: uint16(96),
  11892. },
  11893. 266: {
  11894. Fbits: uint8(8),
  11895. Fval: uint16(32),
  11896. },
  11897. 267: {
  11898. Fbits: uint8(9),
  11899. Fval: uint16(161),
  11900. },
  11901. 268: {
  11902. Fbits: uint8(8),
  11903. },
  11904. 269: {
  11905. Fbits: uint8(8),
  11906. Fval: uint16(128),
  11907. },
  11908. 270: {
  11909. Fbits: uint8(8),
  11910. Fval: uint16(64),
  11911. },
  11912. 271: {
  11913. Fbits: uint8(9),
  11914. Fval: uint16(225),
  11915. },
  11916. 272: {
  11917. Fop: uint8(16),
  11918. Fbits: uint8(7),
  11919. Fval: uint16(6),
  11920. },
  11921. 273: {
  11922. Fbits: uint8(8),
  11923. Fval: uint16(88),
  11924. },
  11925. 274: {
  11926. Fbits: uint8(8),
  11927. Fval: uint16(24),
  11928. },
  11929. 275: {
  11930. Fbits: uint8(9),
  11931. Fval: uint16(145),
  11932. },
  11933. 276: {
  11934. Fop: uint8(19),
  11935. Fbits: uint8(7),
  11936. Fval: uint16(59),
  11937. },
  11938. 277: {
  11939. Fbits: uint8(8),
  11940. Fval: uint16(120),
  11941. },
  11942. 278: {
  11943. Fbits: uint8(8),
  11944. Fval: uint16(56),
  11945. },
  11946. 279: {
  11947. Fbits: uint8(9),
  11948. Fval: uint16(209),
  11949. },
  11950. 280: {
  11951. Fop: uint8(17),
  11952. Fbits: uint8(7),
  11953. Fval: uint16(17),
  11954. },
  11955. 281: {
  11956. Fbits: uint8(8),
  11957. Fval: uint16(104),
  11958. },
  11959. 282: {
  11960. Fbits: uint8(8),
  11961. Fval: uint16(40),
  11962. },
  11963. 283: {
  11964. Fbits: uint8(9),
  11965. Fval: uint16(177),
  11966. },
  11967. 284: {
  11968. Fbits: uint8(8),
  11969. Fval: uint16(8),
  11970. },
  11971. 285: {
  11972. Fbits: uint8(8),
  11973. Fval: uint16(136),
  11974. },
  11975. 286: {
  11976. Fbits: uint8(8),
  11977. Fval: uint16(72),
  11978. },
  11979. 287: {
  11980. Fbits: uint8(9),
  11981. Fval: uint16(241),
  11982. },
  11983. 288: {
  11984. Fop: uint8(16),
  11985. Fbits: uint8(7),
  11986. Fval: uint16(4),
  11987. },
  11988. 289: {
  11989. Fbits: uint8(8),
  11990. Fval: uint16(84),
  11991. },
  11992. 290: {
  11993. Fbits: uint8(8),
  11994. Fval: uint16(20),
  11995. },
  11996. 291: {
  11997. Fop: uint8(21),
  11998. Fbits: uint8(8),
  11999. Fval: uint16(227),
  12000. },
  12001. 292: {
  12002. Fop: uint8(19),
  12003. Fbits: uint8(7),
  12004. Fval: uint16(43),
  12005. },
  12006. 293: {
  12007. Fbits: uint8(8),
  12008. Fval: uint16(116),
  12009. },
  12010. 294: {
  12011. Fbits: uint8(8),
  12012. Fval: uint16(52),
  12013. },
  12014. 295: {
  12015. Fbits: uint8(9),
  12016. Fval: uint16(201),
  12017. },
  12018. 296: {
  12019. Fop: uint8(17),
  12020. Fbits: uint8(7),
  12021. Fval: uint16(13),
  12022. },
  12023. 297: {
  12024. Fbits: uint8(8),
  12025. Fval: uint16(100),
  12026. },
  12027. 298: {
  12028. Fbits: uint8(8),
  12029. Fval: uint16(36),
  12030. },
  12031. 299: {
  12032. Fbits: uint8(9),
  12033. Fval: uint16(169),
  12034. },
  12035. 300: {
  12036. Fbits: uint8(8),
  12037. Fval: uint16(4),
  12038. },
  12039. 301: {
  12040. Fbits: uint8(8),
  12041. Fval: uint16(132),
  12042. },
  12043. 302: {
  12044. Fbits: uint8(8),
  12045. Fval: uint16(68),
  12046. },
  12047. 303: {
  12048. Fbits: uint8(9),
  12049. Fval: uint16(233),
  12050. },
  12051. 304: {
  12052. Fop: uint8(16),
  12053. Fbits: uint8(7),
  12054. Fval: uint16(8),
  12055. },
  12056. 305: {
  12057. Fbits: uint8(8),
  12058. Fval: uint16(92),
  12059. },
  12060. 306: {
  12061. Fbits: uint8(8),
  12062. Fval: uint16(28),
  12063. },
  12064. 307: {
  12065. Fbits: uint8(9),
  12066. Fval: uint16(153),
  12067. },
  12068. 308: {
  12069. Fop: uint8(20),
  12070. Fbits: uint8(7),
  12071. Fval: uint16(83),
  12072. },
  12073. 309: {
  12074. Fbits: uint8(8),
  12075. Fval: uint16(124),
  12076. },
  12077. 310: {
  12078. Fbits: uint8(8),
  12079. Fval: uint16(60),
  12080. },
  12081. 311: {
  12082. Fbits: uint8(9),
  12083. Fval: uint16(217),
  12084. },
  12085. 312: {
  12086. Fop: uint8(18),
  12087. Fbits: uint8(7),
  12088. Fval: uint16(23),
  12089. },
  12090. 313: {
  12091. Fbits: uint8(8),
  12092. Fval: uint16(108),
  12093. },
  12094. 314: {
  12095. Fbits: uint8(8),
  12096. Fval: uint16(44),
  12097. },
  12098. 315: {
  12099. Fbits: uint8(9),
  12100. Fval: uint16(185),
  12101. },
  12102. 316: {
  12103. Fbits: uint8(8),
  12104. Fval: uint16(12),
  12105. },
  12106. 317: {
  12107. Fbits: uint8(8),
  12108. Fval: uint16(140),
  12109. },
  12110. 318: {
  12111. Fbits: uint8(8),
  12112. Fval: uint16(76),
  12113. },
  12114. 319: {
  12115. Fbits: uint8(9),
  12116. Fval: uint16(249),
  12117. },
  12118. 320: {
  12119. Fop: uint8(16),
  12120. Fbits: uint8(7),
  12121. Fval: uint16(3),
  12122. },
  12123. 321: {
  12124. Fbits: uint8(8),
  12125. Fval: uint16(82),
  12126. },
  12127. 322: {
  12128. Fbits: uint8(8),
  12129. Fval: uint16(18),
  12130. },
  12131. 323: {
  12132. Fop: uint8(21),
  12133. Fbits: uint8(8),
  12134. Fval: uint16(163),
  12135. },
  12136. 324: {
  12137. Fop: uint8(19),
  12138. Fbits: uint8(7),
  12139. Fval: uint16(35),
  12140. },
  12141. 325: {
  12142. Fbits: uint8(8),
  12143. Fval: uint16(114),
  12144. },
  12145. 326: {
  12146. Fbits: uint8(8),
  12147. Fval: uint16(50),
  12148. },
  12149. 327: {
  12150. Fbits: uint8(9),
  12151. Fval: uint16(197),
  12152. },
  12153. 328: {
  12154. Fop: uint8(17),
  12155. Fbits: uint8(7),
  12156. Fval: uint16(11),
  12157. },
  12158. 329: {
  12159. Fbits: uint8(8),
  12160. Fval: uint16(98),
  12161. },
  12162. 330: {
  12163. Fbits: uint8(8),
  12164. Fval: uint16(34),
  12165. },
  12166. 331: {
  12167. Fbits: uint8(9),
  12168. Fval: uint16(165),
  12169. },
  12170. 332: {
  12171. Fbits: uint8(8),
  12172. Fval: uint16(2),
  12173. },
  12174. 333: {
  12175. Fbits: uint8(8),
  12176. Fval: uint16(130),
  12177. },
  12178. 334: {
  12179. Fbits: uint8(8),
  12180. Fval: uint16(66),
  12181. },
  12182. 335: {
  12183. Fbits: uint8(9),
  12184. Fval: uint16(229),
  12185. },
  12186. 336: {
  12187. Fop: uint8(16),
  12188. Fbits: uint8(7),
  12189. Fval: uint16(7),
  12190. },
  12191. 337: {
  12192. Fbits: uint8(8),
  12193. Fval: uint16(90),
  12194. },
  12195. 338: {
  12196. Fbits: uint8(8),
  12197. Fval: uint16(26),
  12198. },
  12199. 339: {
  12200. Fbits: uint8(9),
  12201. Fval: uint16(149),
  12202. },
  12203. 340: {
  12204. Fop: uint8(20),
  12205. Fbits: uint8(7),
  12206. Fval: uint16(67),
  12207. },
  12208. 341: {
  12209. Fbits: uint8(8),
  12210. Fval: uint16(122),
  12211. },
  12212. 342: {
  12213. Fbits: uint8(8),
  12214. Fval: uint16(58),
  12215. },
  12216. 343: {
  12217. Fbits: uint8(9),
  12218. Fval: uint16(213),
  12219. },
  12220. 344: {
  12221. Fop: uint8(18),
  12222. Fbits: uint8(7),
  12223. Fval: uint16(19),
  12224. },
  12225. 345: {
  12226. Fbits: uint8(8),
  12227. Fval: uint16(106),
  12228. },
  12229. 346: {
  12230. Fbits: uint8(8),
  12231. Fval: uint16(42),
  12232. },
  12233. 347: {
  12234. Fbits: uint8(9),
  12235. Fval: uint16(181),
  12236. },
  12237. 348: {
  12238. Fbits: uint8(8),
  12239. Fval: uint16(10),
  12240. },
  12241. 349: {
  12242. Fbits: uint8(8),
  12243. Fval: uint16(138),
  12244. },
  12245. 350: {
  12246. Fbits: uint8(8),
  12247. Fval: uint16(74),
  12248. },
  12249. 351: {
  12250. Fbits: uint8(9),
  12251. Fval: uint16(245),
  12252. },
  12253. 352: {
  12254. Fop: uint8(16),
  12255. Fbits: uint8(7),
  12256. Fval: uint16(5),
  12257. },
  12258. 353: {
  12259. Fbits: uint8(8),
  12260. Fval: uint16(86),
  12261. },
  12262. 354: {
  12263. Fbits: uint8(8),
  12264. Fval: uint16(22),
  12265. },
  12266. 355: {
  12267. Fop: uint8(64),
  12268. Fbits: uint8(8),
  12269. },
  12270. 356: {
  12271. Fop: uint8(19),
  12272. Fbits: uint8(7),
  12273. Fval: uint16(51),
  12274. },
  12275. 357: {
  12276. Fbits: uint8(8),
  12277. Fval: uint16(118),
  12278. },
  12279. 358: {
  12280. Fbits: uint8(8),
  12281. Fval: uint16(54),
  12282. },
  12283. 359: {
  12284. Fbits: uint8(9),
  12285. Fval: uint16(205),
  12286. },
  12287. 360: {
  12288. Fop: uint8(17),
  12289. Fbits: uint8(7),
  12290. Fval: uint16(15),
  12291. },
  12292. 361: {
  12293. Fbits: uint8(8),
  12294. Fval: uint16(102),
  12295. },
  12296. 362: {
  12297. Fbits: uint8(8),
  12298. Fval: uint16(38),
  12299. },
  12300. 363: {
  12301. Fbits: uint8(9),
  12302. Fval: uint16(173),
  12303. },
  12304. 364: {
  12305. Fbits: uint8(8),
  12306. Fval: uint16(6),
  12307. },
  12308. 365: {
  12309. Fbits: uint8(8),
  12310. Fval: uint16(134),
  12311. },
  12312. 366: {
  12313. Fbits: uint8(8),
  12314. Fval: uint16(70),
  12315. },
  12316. 367: {
  12317. Fbits: uint8(9),
  12318. Fval: uint16(237),
  12319. },
  12320. 368: {
  12321. Fop: uint8(16),
  12322. Fbits: uint8(7),
  12323. Fval: uint16(9),
  12324. },
  12325. 369: {
  12326. Fbits: uint8(8),
  12327. Fval: uint16(94),
  12328. },
  12329. 370: {
  12330. Fbits: uint8(8),
  12331. Fval: uint16(30),
  12332. },
  12333. 371: {
  12334. Fbits: uint8(9),
  12335. Fval: uint16(157),
  12336. },
  12337. 372: {
  12338. Fop: uint8(20),
  12339. Fbits: uint8(7),
  12340. Fval: uint16(99),
  12341. },
  12342. 373: {
  12343. Fbits: uint8(8),
  12344. Fval: uint16(126),
  12345. },
  12346. 374: {
  12347. Fbits: uint8(8),
  12348. Fval: uint16(62),
  12349. },
  12350. 375: {
  12351. Fbits: uint8(9),
  12352. Fval: uint16(221),
  12353. },
  12354. 376: {
  12355. Fop: uint8(18),
  12356. Fbits: uint8(7),
  12357. Fval: uint16(27),
  12358. },
  12359. 377: {
  12360. Fbits: uint8(8),
  12361. Fval: uint16(110),
  12362. },
  12363. 378: {
  12364. Fbits: uint8(8),
  12365. Fval: uint16(46),
  12366. },
  12367. 379: {
  12368. Fbits: uint8(9),
  12369. Fval: uint16(189),
  12370. },
  12371. 380: {
  12372. Fbits: uint8(8),
  12373. Fval: uint16(14),
  12374. },
  12375. 381: {
  12376. Fbits: uint8(8),
  12377. Fval: uint16(142),
  12378. },
  12379. 382: {
  12380. Fbits: uint8(8),
  12381. Fval: uint16(78),
  12382. },
  12383. 383: {
  12384. Fbits: uint8(9),
  12385. Fval: uint16(253),
  12386. },
  12387. 384: {
  12388. Fop: uint8(96),
  12389. Fbits: uint8(7),
  12390. },
  12391. 385: {
  12392. Fbits: uint8(8),
  12393. Fval: uint16(81),
  12394. },
  12395. 386: {
  12396. Fbits: uint8(8),
  12397. Fval: uint16(17),
  12398. },
  12399. 387: {
  12400. Fop: uint8(21),
  12401. Fbits: uint8(8),
  12402. Fval: uint16(131),
  12403. },
  12404. 388: {
  12405. Fop: uint8(18),
  12406. Fbits: uint8(7),
  12407. Fval: uint16(31),
  12408. },
  12409. 389: {
  12410. Fbits: uint8(8),
  12411. Fval: uint16(113),
  12412. },
  12413. 390: {
  12414. Fbits: uint8(8),
  12415. Fval: uint16(49),
  12416. },
  12417. 391: {
  12418. Fbits: uint8(9),
  12419. Fval: uint16(195),
  12420. },
  12421. 392: {
  12422. Fop: uint8(16),
  12423. Fbits: uint8(7),
  12424. Fval: uint16(10),
  12425. },
  12426. 393: {
  12427. Fbits: uint8(8),
  12428. Fval: uint16(97),
  12429. },
  12430. 394: {
  12431. Fbits: uint8(8),
  12432. Fval: uint16(33),
  12433. },
  12434. 395: {
  12435. Fbits: uint8(9),
  12436. Fval: uint16(163),
  12437. },
  12438. 396: {
  12439. Fbits: uint8(8),
  12440. Fval: uint16(1),
  12441. },
  12442. 397: {
  12443. Fbits: uint8(8),
  12444. Fval: uint16(129),
  12445. },
  12446. 398: {
  12447. Fbits: uint8(8),
  12448. Fval: uint16(65),
  12449. },
  12450. 399: {
  12451. Fbits: uint8(9),
  12452. Fval: uint16(227),
  12453. },
  12454. 400: {
  12455. Fop: uint8(16),
  12456. Fbits: uint8(7),
  12457. Fval: uint16(6),
  12458. },
  12459. 401: {
  12460. Fbits: uint8(8),
  12461. Fval: uint16(89),
  12462. },
  12463. 402: {
  12464. Fbits: uint8(8),
  12465. Fval: uint16(25),
  12466. },
  12467. 403: {
  12468. Fbits: uint8(9),
  12469. Fval: uint16(147),
  12470. },
  12471. 404: {
  12472. Fop: uint8(19),
  12473. Fbits: uint8(7),
  12474. Fval: uint16(59),
  12475. },
  12476. 405: {
  12477. Fbits: uint8(8),
  12478. Fval: uint16(121),
  12479. },
  12480. 406: {
  12481. Fbits: uint8(8),
  12482. Fval: uint16(57),
  12483. },
  12484. 407: {
  12485. Fbits: uint8(9),
  12486. Fval: uint16(211),
  12487. },
  12488. 408: {
  12489. Fop: uint8(17),
  12490. Fbits: uint8(7),
  12491. Fval: uint16(17),
  12492. },
  12493. 409: {
  12494. Fbits: uint8(8),
  12495. Fval: uint16(105),
  12496. },
  12497. 410: {
  12498. Fbits: uint8(8),
  12499. Fval: uint16(41),
  12500. },
  12501. 411: {
  12502. Fbits: uint8(9),
  12503. Fval: uint16(179),
  12504. },
  12505. 412: {
  12506. Fbits: uint8(8),
  12507. Fval: uint16(9),
  12508. },
  12509. 413: {
  12510. Fbits: uint8(8),
  12511. Fval: uint16(137),
  12512. },
  12513. 414: {
  12514. Fbits: uint8(8),
  12515. Fval: uint16(73),
  12516. },
  12517. 415: {
  12518. Fbits: uint8(9),
  12519. Fval: uint16(243),
  12520. },
  12521. 416: {
  12522. Fop: uint8(16),
  12523. Fbits: uint8(7),
  12524. Fval: uint16(4),
  12525. },
  12526. 417: {
  12527. Fbits: uint8(8),
  12528. Fval: uint16(85),
  12529. },
  12530. 418: {
  12531. Fbits: uint8(8),
  12532. Fval: uint16(21),
  12533. },
  12534. 419: {
  12535. Fop: uint8(16),
  12536. Fbits: uint8(8),
  12537. Fval: uint16(258),
  12538. },
  12539. 420: {
  12540. Fop: uint8(19),
  12541. Fbits: uint8(7),
  12542. Fval: uint16(43),
  12543. },
  12544. 421: {
  12545. Fbits: uint8(8),
  12546. Fval: uint16(117),
  12547. },
  12548. 422: {
  12549. Fbits: uint8(8),
  12550. Fval: uint16(53),
  12551. },
  12552. 423: {
  12553. Fbits: uint8(9),
  12554. Fval: uint16(203),
  12555. },
  12556. 424: {
  12557. Fop: uint8(17),
  12558. Fbits: uint8(7),
  12559. Fval: uint16(13),
  12560. },
  12561. 425: {
  12562. Fbits: uint8(8),
  12563. Fval: uint16(101),
  12564. },
  12565. 426: {
  12566. Fbits: uint8(8),
  12567. Fval: uint16(37),
  12568. },
  12569. 427: {
  12570. Fbits: uint8(9),
  12571. Fval: uint16(171),
  12572. },
  12573. 428: {
  12574. Fbits: uint8(8),
  12575. Fval: uint16(5),
  12576. },
  12577. 429: {
  12578. Fbits: uint8(8),
  12579. Fval: uint16(133),
  12580. },
  12581. 430: {
  12582. Fbits: uint8(8),
  12583. Fval: uint16(69),
  12584. },
  12585. 431: {
  12586. Fbits: uint8(9),
  12587. Fval: uint16(235),
  12588. },
  12589. 432: {
  12590. Fop: uint8(16),
  12591. Fbits: uint8(7),
  12592. Fval: uint16(8),
  12593. },
  12594. 433: {
  12595. Fbits: uint8(8),
  12596. Fval: uint16(93),
  12597. },
  12598. 434: {
  12599. Fbits: uint8(8),
  12600. Fval: uint16(29),
  12601. },
  12602. 435: {
  12603. Fbits: uint8(9),
  12604. Fval: uint16(155),
  12605. },
  12606. 436: {
  12607. Fop: uint8(20),
  12608. Fbits: uint8(7),
  12609. Fval: uint16(83),
  12610. },
  12611. 437: {
  12612. Fbits: uint8(8),
  12613. Fval: uint16(125),
  12614. },
  12615. 438: {
  12616. Fbits: uint8(8),
  12617. Fval: uint16(61),
  12618. },
  12619. 439: {
  12620. Fbits: uint8(9),
  12621. Fval: uint16(219),
  12622. },
  12623. 440: {
  12624. Fop: uint8(18),
  12625. Fbits: uint8(7),
  12626. Fval: uint16(23),
  12627. },
  12628. 441: {
  12629. Fbits: uint8(8),
  12630. Fval: uint16(109),
  12631. },
  12632. 442: {
  12633. Fbits: uint8(8),
  12634. Fval: uint16(45),
  12635. },
  12636. 443: {
  12637. Fbits: uint8(9),
  12638. Fval: uint16(187),
  12639. },
  12640. 444: {
  12641. Fbits: uint8(8),
  12642. Fval: uint16(13),
  12643. },
  12644. 445: {
  12645. Fbits: uint8(8),
  12646. Fval: uint16(141),
  12647. },
  12648. 446: {
  12649. Fbits: uint8(8),
  12650. Fval: uint16(77),
  12651. },
  12652. 447: {
  12653. Fbits: uint8(9),
  12654. Fval: uint16(251),
  12655. },
  12656. 448: {
  12657. Fop: uint8(16),
  12658. Fbits: uint8(7),
  12659. Fval: uint16(3),
  12660. },
  12661. 449: {
  12662. Fbits: uint8(8),
  12663. Fval: uint16(83),
  12664. },
  12665. 450: {
  12666. Fbits: uint8(8),
  12667. Fval: uint16(19),
  12668. },
  12669. 451: {
  12670. Fop: uint8(21),
  12671. Fbits: uint8(8),
  12672. Fval: uint16(195),
  12673. },
  12674. 452: {
  12675. Fop: uint8(19),
  12676. Fbits: uint8(7),
  12677. Fval: uint16(35),
  12678. },
  12679. 453: {
  12680. Fbits: uint8(8),
  12681. Fval: uint16(115),
  12682. },
  12683. 454: {
  12684. Fbits: uint8(8),
  12685. Fval: uint16(51),
  12686. },
  12687. 455: {
  12688. Fbits: uint8(9),
  12689. Fval: uint16(199),
  12690. },
  12691. 456: {
  12692. Fop: uint8(17),
  12693. Fbits: uint8(7),
  12694. Fval: uint16(11),
  12695. },
  12696. 457: {
  12697. Fbits: uint8(8),
  12698. Fval: uint16(99),
  12699. },
  12700. 458: {
  12701. Fbits: uint8(8),
  12702. Fval: uint16(35),
  12703. },
  12704. 459: {
  12705. Fbits: uint8(9),
  12706. Fval: uint16(167),
  12707. },
  12708. 460: {
  12709. Fbits: uint8(8),
  12710. Fval: uint16(3),
  12711. },
  12712. 461: {
  12713. Fbits: uint8(8),
  12714. Fval: uint16(131),
  12715. },
  12716. 462: {
  12717. Fbits: uint8(8),
  12718. Fval: uint16(67),
  12719. },
  12720. 463: {
  12721. Fbits: uint8(9),
  12722. Fval: uint16(231),
  12723. },
  12724. 464: {
  12725. Fop: uint8(16),
  12726. Fbits: uint8(7),
  12727. Fval: uint16(7),
  12728. },
  12729. 465: {
  12730. Fbits: uint8(8),
  12731. Fval: uint16(91),
  12732. },
  12733. 466: {
  12734. Fbits: uint8(8),
  12735. Fval: uint16(27),
  12736. },
  12737. 467: {
  12738. Fbits: uint8(9),
  12739. Fval: uint16(151),
  12740. },
  12741. 468: {
  12742. Fop: uint8(20),
  12743. Fbits: uint8(7),
  12744. Fval: uint16(67),
  12745. },
  12746. 469: {
  12747. Fbits: uint8(8),
  12748. Fval: uint16(123),
  12749. },
  12750. 470: {
  12751. Fbits: uint8(8),
  12752. Fval: uint16(59),
  12753. },
  12754. 471: {
  12755. Fbits: uint8(9),
  12756. Fval: uint16(215),
  12757. },
  12758. 472: {
  12759. Fop: uint8(18),
  12760. Fbits: uint8(7),
  12761. Fval: uint16(19),
  12762. },
  12763. 473: {
  12764. Fbits: uint8(8),
  12765. Fval: uint16(107),
  12766. },
  12767. 474: {
  12768. Fbits: uint8(8),
  12769. Fval: uint16(43),
  12770. },
  12771. 475: {
  12772. Fbits: uint8(9),
  12773. Fval: uint16(183),
  12774. },
  12775. 476: {
  12776. Fbits: uint8(8),
  12777. Fval: uint16(11),
  12778. },
  12779. 477: {
  12780. Fbits: uint8(8),
  12781. Fval: uint16(139),
  12782. },
  12783. 478: {
  12784. Fbits: uint8(8),
  12785. Fval: uint16(75),
  12786. },
  12787. 479: {
  12788. Fbits: uint8(9),
  12789. Fval: uint16(247),
  12790. },
  12791. 480: {
  12792. Fop: uint8(16),
  12793. Fbits: uint8(7),
  12794. Fval: uint16(5),
  12795. },
  12796. 481: {
  12797. Fbits: uint8(8),
  12798. Fval: uint16(87),
  12799. },
  12800. 482: {
  12801. Fbits: uint8(8),
  12802. Fval: uint16(23),
  12803. },
  12804. 483: {
  12805. Fop: uint8(64),
  12806. Fbits: uint8(8),
  12807. },
  12808. 484: {
  12809. Fop: uint8(19),
  12810. Fbits: uint8(7),
  12811. Fval: uint16(51),
  12812. },
  12813. 485: {
  12814. Fbits: uint8(8),
  12815. Fval: uint16(119),
  12816. },
  12817. 486: {
  12818. Fbits: uint8(8),
  12819. Fval: uint16(55),
  12820. },
  12821. 487: {
  12822. Fbits: uint8(9),
  12823. Fval: uint16(207),
  12824. },
  12825. 488: {
  12826. Fop: uint8(17),
  12827. Fbits: uint8(7),
  12828. Fval: uint16(15),
  12829. },
  12830. 489: {
  12831. Fbits: uint8(8),
  12832. Fval: uint16(103),
  12833. },
  12834. 490: {
  12835. Fbits: uint8(8),
  12836. Fval: uint16(39),
  12837. },
  12838. 491: {
  12839. Fbits: uint8(9),
  12840. Fval: uint16(175),
  12841. },
  12842. 492: {
  12843. Fbits: uint8(8),
  12844. Fval: uint16(7),
  12845. },
  12846. 493: {
  12847. Fbits: uint8(8),
  12848. Fval: uint16(135),
  12849. },
  12850. 494: {
  12851. Fbits: uint8(8),
  12852. Fval: uint16(71),
  12853. },
  12854. 495: {
  12855. Fbits: uint8(9),
  12856. Fval: uint16(239),
  12857. },
  12858. 496: {
  12859. Fop: uint8(16),
  12860. Fbits: uint8(7),
  12861. Fval: uint16(9),
  12862. },
  12863. 497: {
  12864. Fbits: uint8(8),
  12865. Fval: uint16(95),
  12866. },
  12867. 498: {
  12868. Fbits: uint8(8),
  12869. Fval: uint16(31),
  12870. },
  12871. 499: {
  12872. Fbits: uint8(9),
  12873. Fval: uint16(159),
  12874. },
  12875. 500: {
  12876. Fop: uint8(20),
  12877. Fbits: uint8(7),
  12878. Fval: uint16(99),
  12879. },
  12880. 501: {
  12881. Fbits: uint8(8),
  12882. Fval: uint16(127),
  12883. },
  12884. 502: {
  12885. Fbits: uint8(8),
  12886. Fval: uint16(63),
  12887. },
  12888. 503: {
  12889. Fbits: uint8(9),
  12890. Fval: uint16(223),
  12891. },
  12892. 504: {
  12893. Fop: uint8(18),
  12894. Fbits: uint8(7),
  12895. Fval: uint16(27),
  12896. },
  12897. 505: {
  12898. Fbits: uint8(8),
  12899. Fval: uint16(111),
  12900. },
  12901. 506: {
  12902. Fbits: uint8(8),
  12903. Fval: uint16(47),
  12904. },
  12905. 507: {
  12906. Fbits: uint8(9),
  12907. Fval: uint16(191),
  12908. },
  12909. 508: {
  12910. Fbits: uint8(8),
  12911. Fval: uint16(15),
  12912. },
  12913. 509: {
  12914. Fbits: uint8(8),
  12915. Fval: uint16(143),
  12916. },
  12917. 510: {
  12918. Fbits: uint8(8),
  12919. Fval: uint16(79),
  12920. },
  12921. 511: {
  12922. Fbits: uint8(9),
  12923. Fval: uint16(255),
  12924. },
  12925. }
  12926. var _distfix1 = [32]Tcode{
  12927. 0: {
  12928. Fop: uint8(16),
  12929. Fbits: uint8(5),
  12930. Fval: uint16(1),
  12931. },
  12932. 1: {
  12933. Fop: uint8(23),
  12934. Fbits: uint8(5),
  12935. Fval: uint16(257),
  12936. },
  12937. 2: {
  12938. Fop: uint8(19),
  12939. Fbits: uint8(5),
  12940. Fval: uint16(17),
  12941. },
  12942. 3: {
  12943. Fop: uint8(27),
  12944. Fbits: uint8(5),
  12945. Fval: uint16(4097),
  12946. },
  12947. 4: {
  12948. Fop: uint8(17),
  12949. Fbits: uint8(5),
  12950. Fval: uint16(5),
  12951. },
  12952. 5: {
  12953. Fop: uint8(25),
  12954. Fbits: uint8(5),
  12955. Fval: uint16(1025),
  12956. },
  12957. 6: {
  12958. Fop: uint8(21),
  12959. Fbits: uint8(5),
  12960. Fval: uint16(65),
  12961. },
  12962. 7: {
  12963. Fop: uint8(29),
  12964. Fbits: uint8(5),
  12965. Fval: uint16(16385),
  12966. },
  12967. 8: {
  12968. Fop: uint8(16),
  12969. Fbits: uint8(5),
  12970. Fval: uint16(3),
  12971. },
  12972. 9: {
  12973. Fop: uint8(24),
  12974. Fbits: uint8(5),
  12975. Fval: uint16(513),
  12976. },
  12977. 10: {
  12978. Fop: uint8(20),
  12979. Fbits: uint8(5),
  12980. Fval: uint16(33),
  12981. },
  12982. 11: {
  12983. Fop: uint8(28),
  12984. Fbits: uint8(5),
  12985. Fval: uint16(8193),
  12986. },
  12987. 12: {
  12988. Fop: uint8(18),
  12989. Fbits: uint8(5),
  12990. Fval: uint16(9),
  12991. },
  12992. 13: {
  12993. Fop: uint8(26),
  12994. Fbits: uint8(5),
  12995. Fval: uint16(2049),
  12996. },
  12997. 14: {
  12998. Fop: uint8(22),
  12999. Fbits: uint8(5),
  13000. Fval: uint16(129),
  13001. },
  13002. 15: {
  13003. Fop: uint8(64),
  13004. Fbits: uint8(5),
  13005. },
  13006. 16: {
  13007. Fop: uint8(16),
  13008. Fbits: uint8(5),
  13009. Fval: uint16(2),
  13010. },
  13011. 17: {
  13012. Fop: uint8(23),
  13013. Fbits: uint8(5),
  13014. Fval: uint16(385),
  13015. },
  13016. 18: {
  13017. Fop: uint8(19),
  13018. Fbits: uint8(5),
  13019. Fval: uint16(25),
  13020. },
  13021. 19: {
  13022. Fop: uint8(27),
  13023. Fbits: uint8(5),
  13024. Fval: uint16(6145),
  13025. },
  13026. 20: {
  13027. Fop: uint8(17),
  13028. Fbits: uint8(5),
  13029. Fval: uint16(7),
  13030. },
  13031. 21: {
  13032. Fop: uint8(25),
  13033. Fbits: uint8(5),
  13034. Fval: uint16(1537),
  13035. },
  13036. 22: {
  13037. Fop: uint8(21),
  13038. Fbits: uint8(5),
  13039. Fval: uint16(97),
  13040. },
  13041. 23: {
  13042. Fop: uint8(29),
  13043. Fbits: uint8(5),
  13044. Fval: uint16(24577),
  13045. },
  13046. 24: {
  13047. Fop: uint8(16),
  13048. Fbits: uint8(5),
  13049. Fval: uint16(4),
  13050. },
  13051. 25: {
  13052. Fop: uint8(24),
  13053. Fbits: uint8(5),
  13054. Fval: uint16(769),
  13055. },
  13056. 26: {
  13057. Fop: uint8(20),
  13058. Fbits: uint8(5),
  13059. Fval: uint16(49),
  13060. },
  13061. 27: {
  13062. Fop: uint8(28),
  13063. Fbits: uint8(5),
  13064. Fval: uint16(12289),
  13065. },
  13066. 28: {
  13067. Fop: uint8(18),
  13068. Fbits: uint8(5),
  13069. Fval: uint16(13),
  13070. },
  13071. 29: {
  13072. Fop: uint8(26),
  13073. Fbits: uint8(5),
  13074. Fval: uint16(3073),
  13075. },
  13076. 30: {
  13077. Fop: uint8(22),
  13078. Fbits: uint8(5),
  13079. Fval: uint16(193),
  13080. },
  13081. 31: {
  13082. Fop: uint8(64),
  13083. Fbits: uint8(5),
  13084. },
  13085. }
  13086. // C documentation
  13087. //
  13088. // /*
  13089. // Update the window with the last wsize (normally 32K) bytes written before
  13090. // returning. If window does not exist yet, create it. This is only called
  13091. // when a window is already in use, or when output has been written during this
  13092. // inflate call, but the end of the deflate stream has not been reached yet.
  13093. // It is also called to create a window for dictionary data when a dictionary
  13094. // is loaded.
  13095. //
  13096. // Providing output buffers larger than 32K to inflate() should provide a speed
  13097. // advantage, since only the last 32K of output is copied to the sliding window
  13098. // upon return from inflate(), and since all distances after the first 32K of
  13099. // output will fall in the output data, making match copies simpler and faster.
  13100. // The advantage may be dependent on the size of the processor's data caches.
  13101. // */
  13102. func _updatewindow(tls *libc.TLS, strm Tz_streamp, end uintptr, copy1 uint32) (r int32) {
  13103. var dist uint32
  13104. var state uintptr
  13105. _, _ = dist, state
  13106. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  13107. /* if it hasn't been done already, allocate space for the window */
  13108. if (*Tinflate_state)(unsafe.Pointer(state)).Fwindow == uintptr(m_Z_NULL) {
  13109. (*Tinflate_state)(unsafe.Pointer(state)).Fwindow = (*(*func(*libc.TLS, Tvoidpf, TuInt, TuInt) Tvoidpf)(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(strm)).Fzalloc})))(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fopaque, libc.Uint32FromUint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Fwbits, uint32(libc.Uint64FromInt64(1)))
  13110. if (*Tinflate_state)(unsafe.Pointer(state)).Fwindow == uintptr(m_Z_NULL) {
  13111. return int32(1)
  13112. }
  13113. }
  13114. /* if window not in use yet, initialize */
  13115. if (*Tinflate_state)(unsafe.Pointer(state)).Fwsize == uint32(0) {
  13116. (*Tinflate_state)(unsafe.Pointer(state)).Fwsize = uint32(1) << (*Tinflate_state)(unsafe.Pointer(state)).Fwbits
  13117. (*Tinflate_state)(unsafe.Pointer(state)).Fwnext = uint32(0)
  13118. (*Tinflate_state)(unsafe.Pointer(state)).Fwhave = uint32(0)
  13119. }
  13120. /* copy state->wsize or less output bytes into the circular window */
  13121. if copy1 >= (*Tinflate_state)(unsafe.Pointer(state)).Fwsize {
  13122. libc.Xmemcpy(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fwindow, end-uintptr((*Tinflate_state)(unsafe.Pointer(state)).Fwsize), uint64((*Tinflate_state)(unsafe.Pointer(state)).Fwsize))
  13123. (*Tinflate_state)(unsafe.Pointer(state)).Fwnext = uint32(0)
  13124. (*Tinflate_state)(unsafe.Pointer(state)).Fwhave = (*Tinflate_state)(unsafe.Pointer(state)).Fwsize
  13125. } else {
  13126. dist = (*Tinflate_state)(unsafe.Pointer(state)).Fwsize - (*Tinflate_state)(unsafe.Pointer(state)).Fwnext
  13127. if dist > copy1 {
  13128. dist = copy1
  13129. }
  13130. libc.Xmemcpy(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fwindow+uintptr((*Tinflate_state)(unsafe.Pointer(state)).Fwnext), end-uintptr(copy1), uint64(dist))
  13131. copy1 -= dist
  13132. if copy1 != 0 {
  13133. libc.Xmemcpy(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fwindow, end-uintptr(copy1), uint64(copy1))
  13134. (*Tinflate_state)(unsafe.Pointer(state)).Fwnext = copy1
  13135. (*Tinflate_state)(unsafe.Pointer(state)).Fwhave = (*Tinflate_state)(unsafe.Pointer(state)).Fwsize
  13136. } else {
  13137. *(*uint32)(unsafe.Pointer(state + 68)) += dist
  13138. if (*Tinflate_state)(unsafe.Pointer(state)).Fwnext == (*Tinflate_state)(unsafe.Pointer(state)).Fwsize {
  13139. (*Tinflate_state)(unsafe.Pointer(state)).Fwnext = uint32(0)
  13140. }
  13141. if (*Tinflate_state)(unsafe.Pointer(state)).Fwhave < (*Tinflate_state)(unsafe.Pointer(state)).Fwsize {
  13142. *(*uint32)(unsafe.Pointer(state + 64)) += dist
  13143. }
  13144. }
  13145. }
  13146. return 0
  13147. }
  13148. /* Macros for inflate(): */
  13149. /* check function to use adler32() for zlib or crc32() for gzip */
  13150. /* check macros for header crc */
  13151. /* Load registers with state in inflate() for speed */
  13152. /* Restore state from registers in inflate() */
  13153. /* Clear the input bit accumulator */
  13154. /* Get a byte of input into the bit accumulator, or return from inflate()
  13155. if there is no input available. */
  13156. /* Assure that there are at least n bits in the bit accumulator. If there is
  13157. not enough available input to do that, then return from inflate(). */
  13158. /* Return the low n bits of the bit accumulator (n < 16) */
  13159. /* Remove n bits from the bit accumulator */
  13160. /* Remove zero to seven bits as needed to go to a byte boundary */
  13161. /*
  13162. inflate() uses a state machine to process as much input data and generate as
  13163. much output data as possible before returning. The state machine is
  13164. structured roughly as follows:
  13165. for (;;) switch (state) {
  13166. ...
  13167. case STATEn:
  13168. if (not enough input data or output space to make progress)
  13169. return;
  13170. ... make progress ...
  13171. state = STATEm;
  13172. break;
  13173. ...
  13174. }
  13175. so when inflate() is called again, the same case is attempted again, and
  13176. if the appropriate resources are provided, the machine proceeds to the
  13177. next state. The NEEDBITS() macro is usually the way the state evaluates
  13178. whether it can proceed or should return. NEEDBITS() does the return if
  13179. the requested bits are not available. The typical use of the BITS macros
  13180. is:
  13181. NEEDBITS(n);
  13182. ... do something with BITS(n) ...
  13183. DROPBITS(n);
  13184. where NEEDBITS(n) either returns from inflate() if there isn't enough
  13185. input left to load n bits into the accumulator, or it continues. BITS(n)
  13186. gives the low n bits in the accumulator. When done, DROPBITS(n) drops
  13187. the low n bits off the accumulator. INITBITS() clears the accumulator
  13188. and sets the number of available bits to zero. BYTEBITS() discards just
  13189. enough bits to put the accumulator on a byte boundary. After BYTEBITS()
  13190. and a NEEDBITS(8), then BITS(8) would return the next byte in the stream.
  13191. NEEDBITS(n) uses PULLBYTE() to get an available byte of input, or to return
  13192. if there is no input available. The decoding of variable length codes uses
  13193. PULLBYTE() directly in order to pull just enough bytes to decode the next
  13194. code, and no more.
  13195. Some states loop until they get enough input, making sure that enough
  13196. state information is maintained to continue the loop where it left off
  13197. if NEEDBITS() returns in the loop. For example, want, need, and keep
  13198. would all have to actually be part of the saved state in case NEEDBITS()
  13199. returns:
  13200. case STATEw:
  13201. while (want < need) {
  13202. NEEDBITS(n);
  13203. keep[want++] = BITS(n);
  13204. DROPBITS(n);
  13205. }
  13206. state = STATEx;
  13207. case STATEx:
  13208. As shown above, if the next state is also the next case, then the break
  13209. is omitted.
  13210. A state may also return if there is not enough output space available to
  13211. complete that state. Those states are copying stored data, writing a
  13212. literal byte, and copying a matching string.
  13213. When returning, a "goto inf_leave" is used to update the total counters,
  13214. update the check value, and determine whether any progress has been made
  13215. during that inflate() call in order to return the proper return code.
  13216. Progress is defined as a change in either strm->avail_in or strm->avail_out.
  13217. When there is a window, goto inf_leave will update the window with the last
  13218. output written. If a goto inf_leave occurs in the middle of decompression
  13219. and there is no window currently, goto inf_leave will create one and copy
  13220. output to the window for the next call of inflate().
  13221. In this implementation, the flush parameter of inflate() only affects the
  13222. return code (per zlib.h). inflate() always writes as much as possible to
  13223. strm->next_out, given the space available and the provided input--the effect
  13224. documented in zlib.h of Z_SYNC_FLUSH. Furthermore, inflate() always defers
  13225. the allocation of and copying into a sliding window until necessary, which
  13226. provides the effect documented in zlib.h for Z_FINISH when the entire input
  13227. stream available. So the only thing the flush parameter actually does is:
  13228. when flush is set to Z_FINISH, inflate() cannot return Z_OK. Instead it
  13229. will return Z_BUF_ERROR if it has not reached the end of the stream.
  13230. */
  13231. func Xinflate(tls *libc.TLS, strm Tz_streamp, flush int32) (r int32) {
  13232. bp := tls.Alloc(16)
  13233. defer tls.Free(16)
  13234. var bits, copy1, have, in, left, len1, out, v46, v48, v49, v50, v52, v53, v64, v66, v70, v75, v76, v90 uint32
  13235. var from, next, put, state, v100, v36, v42, v43, v44, v45, v51, v54, v55, v57, v60, v61, v62, v63, v65, v67, v69, v71, v72, v73, v74, v77, v79, v81, v82, v85, v87, v88, v92, v93, v94, v95, p83, p89 uintptr
  13236. var here, last Tcode
  13237. var hold, v101, v102, v37, v56, v58, v59, v96, v97, v98 uint64
  13238. var ret, v103, v104, v105, v38 int32
  13239. var v47, v99 bool
  13240. var _ /* hbuf at bp+0 */ [4]uint8
  13241. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = bits, copy1, from, have, here, hold, in, last, left, len1, next, out, put, ret, state, v100, v101, v102, v103, v104, v105, v36, v37, v38, v42, v43, v44, v45, v46, v47, v48, v49, v50, v51, v52, v53, v54, v55, v56, v57, v58, v59, v60, v61, v62, v63, v64, v65, v66, v67, v69, v70, v71, v72, v73, v74, v75, v76, v77, v79, v81, v82, v85, v87, v88, v90, v92, v93, v94, v95, v96, v97, v98, v99, p83, p89 /* buffer for gzip header crc calculation */
  13242. if _inflateStateCheck(tls, strm) != 0 || (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out == uintptr(m_Z_NULL) || (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in == uintptr(m_Z_NULL) && (*Tz_stream)(unsafe.Pointer(strm)).Favail_in != uint32(0) {
  13243. return -int32(2)
  13244. }
  13245. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  13246. if (*Tinflate_state)(unsafe.Pointer(state)).Fmode == int32(_TYPE) {
  13247. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TYPEDO)
  13248. } /* skip check */
  13249. put = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out
  13250. left = (*Tz_stream)(unsafe.Pointer(strm)).Favail_out
  13251. next = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in
  13252. have = (*Tz_stream)(unsafe.Pointer(strm)).Favail_in
  13253. hold = (*Tinflate_state)(unsafe.Pointer(state)).Fhold
  13254. bits = (*Tinflate_state)(unsafe.Pointer(state)).Fbits
  13255. in = have
  13256. out = left
  13257. ret = m_Z_OK
  13258. for {
  13259. switch (*Tinflate_state)(unsafe.Pointer(state)).Fmode {
  13260. case int32(_HEAD):
  13261. goto _2
  13262. case int32(_FLAGS):
  13263. goto _3
  13264. case int32(_TIME):
  13265. goto _4
  13266. case int32(_OS):
  13267. goto _5
  13268. case int32(_EXLEN):
  13269. goto _6
  13270. case int32(_EXTRA):
  13271. goto _7
  13272. case int32(_NAME):
  13273. goto _8
  13274. case int32(_COMMENT):
  13275. goto _9
  13276. case int32(_HCRC):
  13277. goto _10
  13278. case int32(_DICTID):
  13279. goto _11
  13280. case int32(_DICT):
  13281. goto _12
  13282. case int32(_TYPE):
  13283. goto _13
  13284. case int32(_TYPEDO):
  13285. goto _14
  13286. case int32(_STORED):
  13287. goto _15
  13288. case int32(_COPY_):
  13289. goto _16
  13290. case int32(_COPY):
  13291. goto _17
  13292. case int32(_TABLE):
  13293. goto _18
  13294. case int32(_LENLENS):
  13295. goto _19
  13296. case int32(_CODELENS):
  13297. goto _20
  13298. case int32(_LEN_):
  13299. goto _21
  13300. case int32(_LEN):
  13301. goto _22
  13302. case int32(_LENEXT):
  13303. goto _23
  13304. case int32(_DIST):
  13305. goto _24
  13306. case int32(_DISTEXT):
  13307. goto _25
  13308. case int32(_MATCH):
  13309. goto _26
  13310. case int32(_LIT):
  13311. goto _27
  13312. case int32(_CHECK):
  13313. goto _28
  13314. case int32(_LENGTH):
  13315. goto _29
  13316. case int32(_DONE):
  13317. goto _30
  13318. case int32(_BAD):
  13319. goto _31
  13320. case int32(_MEM):
  13321. goto _32
  13322. default:
  13323. goto _33
  13324. case int32(_SYNC):
  13325. goto _34
  13326. }
  13327. goto _35
  13328. _2:
  13329. ;
  13330. if (*Tinflate_state)(unsafe.Pointer(state)).Fwrap == 0 {
  13331. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TYPEDO)
  13332. goto _35
  13333. }
  13334. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(16)) {
  13335. if have == uint32(0) {
  13336. goto inf_leave
  13337. }
  13338. have--
  13339. v36 = next
  13340. next++
  13341. hold += uint64(*(*uint8)(unsafe.Pointer(v36))) << bits
  13342. bits += uint32(8)
  13343. }
  13344. if (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(2) != 0 && hold == uint64(0x8b1f) { /* gzip header */
  13345. if (*Tinflate_state)(unsafe.Pointer(state)).Fwbits == uint32(0) {
  13346. (*Tinflate_state)(unsafe.Pointer(state)).Fwbits = uint32(15)
  13347. }
  13348. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, uint64(0), uintptr(m_Z_NULL), uint32(0))
  13349. (*(*[4]uint8)(unsafe.Pointer(bp)))[0] = uint8(hold)
  13350. (*(*[4]uint8)(unsafe.Pointer(bp)))[int32(1)] = uint8(hold >> libc.Int32FromInt32(8))
  13351. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, bp, uint32(2))
  13352. hold = uint64(0)
  13353. bits = uint32(0)
  13354. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_FLAGS)
  13355. goto _35
  13356. }
  13357. if (*Tinflate_state)(unsafe.Pointer(state)).Fhead != uintptr(m_Z_NULL) {
  13358. (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fdone = -int32(1)
  13359. }
  13360. if !((*Tinflate_state)(unsafe.Pointer(state)).Fwrap&libc.Int32FromInt32(1) != 0) || (uint64(uint32(hold)&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(8)-libc.Uint32FromInt32(1))<<libc.Int32FromInt32(8))+hold>>int32(8))%uint64(31) != 0 {
  13361. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 308
  13362. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13363. goto _35
  13364. }
  13365. if uint32(hold)&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(4)-libc.Uint32FromInt32(1)) != uint32(m_Z_DEFLATED) {
  13366. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 331
  13367. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13368. goto _35
  13369. }
  13370. hold >>= libc.Uint64FromInt32(libc.Int32FromInt32(4))
  13371. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(4))
  13372. len1 = uint32(hold)&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(4)-libc.Uint32FromInt32(1)) + uint32(8)
  13373. if (*Tinflate_state)(unsafe.Pointer(state)).Fwbits == uint32(0) {
  13374. (*Tinflate_state)(unsafe.Pointer(state)).Fwbits = len1
  13375. }
  13376. if len1 > uint32(15) || len1 > (*Tinflate_state)(unsafe.Pointer(state)).Fwbits {
  13377. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 358
  13378. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13379. goto _35
  13380. }
  13381. (*Tinflate_state)(unsafe.Pointer(state)).Fdmax = uint32(1) << len1
  13382. (*Tinflate_state)(unsafe.Pointer(state)).Fflags = 0 /* indicate zlib header */
  13383. v37 = Xadler32(tls, uint64(0), uintptr(m_Z_NULL), uint32(0))
  13384. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = v37
  13385. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = v37
  13386. if hold&uint64(0x200) != 0 {
  13387. v38 = int32(_DICTID)
  13388. } else {
  13389. v38 = int32(_TYPE)
  13390. }
  13391. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = v38
  13392. hold = uint64(0)
  13393. bits = uint32(0)
  13394. goto _35
  13395. _3:
  13396. ;
  13397. _41:
  13398. ;
  13399. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(16)) {
  13400. if have == uint32(0) {
  13401. goto inf_leave
  13402. }
  13403. have--
  13404. v42 = next
  13405. next++
  13406. hold += uint64(*(*uint8)(unsafe.Pointer(v42))) << bits
  13407. bits += uint32(8)
  13408. }
  13409. goto _40
  13410. _40:
  13411. ;
  13412. if 0 != 0 {
  13413. goto _41
  13414. }
  13415. goto _39
  13416. _39:
  13417. ;
  13418. (*Tinflate_state)(unsafe.Pointer(state)).Fflags = libc.Int32FromUint64(hold)
  13419. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0xff) != int32(m_Z_DEFLATED) {
  13420. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 331
  13421. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13422. goto _35
  13423. }
  13424. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0xe000) != 0 {
  13425. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 378
  13426. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13427. goto _35
  13428. }
  13429. if (*Tinflate_state)(unsafe.Pointer(state)).Fhead != uintptr(m_Z_NULL) {
  13430. (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Ftext = libc.Int32FromUint64(hold >> libc.Int32FromInt32(8) & libc.Uint64FromInt32(1))
  13431. }
  13432. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x0200) != 0 && (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0 {
  13433. (*(*[4]uint8)(unsafe.Pointer(bp)))[0] = uint8(hold)
  13434. (*(*[4]uint8)(unsafe.Pointer(bp)))[int32(1)] = uint8(hold >> libc.Int32FromInt32(8))
  13435. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, bp, uint32(2))
  13436. }
  13437. hold = uint64(0)
  13438. bits = uint32(0)
  13439. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TIME)
  13440. /* fallthrough */
  13441. _4:
  13442. ;
  13443. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(32)) {
  13444. if have == uint32(0) {
  13445. goto inf_leave
  13446. }
  13447. have--
  13448. v43 = next
  13449. next++
  13450. hold += uint64(*(*uint8)(unsafe.Pointer(v43))) << bits
  13451. bits += uint32(8)
  13452. }
  13453. if (*Tinflate_state)(unsafe.Pointer(state)).Fhead != uintptr(m_Z_NULL) {
  13454. (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Ftime = hold
  13455. }
  13456. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x0200) != 0 && (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0 {
  13457. (*(*[4]uint8)(unsafe.Pointer(bp)))[0] = uint8(hold)
  13458. (*(*[4]uint8)(unsafe.Pointer(bp)))[int32(1)] = uint8(hold >> libc.Int32FromInt32(8))
  13459. (*(*[4]uint8)(unsafe.Pointer(bp)))[int32(2)] = uint8(hold >> libc.Int32FromInt32(16))
  13460. (*(*[4]uint8)(unsafe.Pointer(bp)))[int32(3)] = uint8(hold >> libc.Int32FromInt32(24))
  13461. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, bp, uint32(4))
  13462. }
  13463. hold = uint64(0)
  13464. bits = uint32(0)
  13465. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_OS)
  13466. /* fallthrough */
  13467. _5:
  13468. ;
  13469. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(16)) {
  13470. if have == uint32(0) {
  13471. goto inf_leave
  13472. }
  13473. have--
  13474. v44 = next
  13475. next++
  13476. hold += uint64(*(*uint8)(unsafe.Pointer(v44))) << bits
  13477. bits += uint32(8)
  13478. }
  13479. if (*Tinflate_state)(unsafe.Pointer(state)).Fhead != uintptr(m_Z_NULL) {
  13480. (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fxflags = libc.Int32FromUint64(hold & libc.Uint64FromInt32(0xff))
  13481. (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fos = libc.Int32FromUint64(hold >> libc.Int32FromInt32(8))
  13482. }
  13483. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x0200) != 0 && (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0 {
  13484. (*(*[4]uint8)(unsafe.Pointer(bp)))[0] = uint8(hold)
  13485. (*(*[4]uint8)(unsafe.Pointer(bp)))[int32(1)] = uint8(hold >> libc.Int32FromInt32(8))
  13486. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, bp, uint32(2))
  13487. }
  13488. hold = uint64(0)
  13489. bits = uint32(0)
  13490. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_EXLEN)
  13491. /* fallthrough */
  13492. _6:
  13493. ;
  13494. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x0400) != 0 {
  13495. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(16)) {
  13496. if have == uint32(0) {
  13497. goto inf_leave
  13498. }
  13499. have--
  13500. v45 = next
  13501. next++
  13502. hold += uint64(*(*uint8)(unsafe.Pointer(v45))) << bits
  13503. bits += uint32(8)
  13504. }
  13505. (*Tinflate_state)(unsafe.Pointer(state)).Flength = uint32(hold)
  13506. if (*Tinflate_state)(unsafe.Pointer(state)).Fhead != uintptr(m_Z_NULL) {
  13507. (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fextra_len = uint32(hold)
  13508. }
  13509. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x0200) != 0 && (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0 {
  13510. (*(*[4]uint8)(unsafe.Pointer(bp)))[0] = uint8(hold)
  13511. (*(*[4]uint8)(unsafe.Pointer(bp)))[int32(1)] = uint8(hold >> libc.Int32FromInt32(8))
  13512. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, bp, uint32(2))
  13513. }
  13514. hold = uint64(0)
  13515. bits = uint32(0)
  13516. } else {
  13517. if (*Tinflate_state)(unsafe.Pointer(state)).Fhead != uintptr(m_Z_NULL) {
  13518. (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fextra = uintptr(m_Z_NULL)
  13519. }
  13520. }
  13521. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_EXTRA)
  13522. /* fallthrough */
  13523. _7:
  13524. ;
  13525. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x0400) != 0 {
  13526. copy1 = (*Tinflate_state)(unsafe.Pointer(state)).Flength
  13527. if copy1 > have {
  13528. copy1 = have
  13529. }
  13530. if copy1 != 0 {
  13531. if v47 = (*Tinflate_state)(unsafe.Pointer(state)).Fhead != uintptr(m_Z_NULL) && (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fextra != uintptr(m_Z_NULL); v47 {
  13532. v46 = (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fextra_len - (*Tinflate_state)(unsafe.Pointer(state)).Flength
  13533. len1 = v46
  13534. }
  13535. if v47 && v46 < (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fextra_max {
  13536. if len1+copy1 > (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fextra_max {
  13537. v48 = (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fextra_max - len1
  13538. } else {
  13539. v48 = copy1
  13540. }
  13541. libc.Xmemcpy(tls, (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fextra+uintptr(len1), next, uint64(v48))
  13542. }
  13543. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x0200) != 0 && (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0 {
  13544. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, next, copy1)
  13545. }
  13546. have -= copy1
  13547. next += uintptr(copy1)
  13548. *(*uint32)(unsafe.Pointer(state + 92)) -= copy1
  13549. }
  13550. if (*Tinflate_state)(unsafe.Pointer(state)).Flength != 0 {
  13551. goto inf_leave
  13552. }
  13553. }
  13554. (*Tinflate_state)(unsafe.Pointer(state)).Flength = uint32(0)
  13555. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_NAME)
  13556. /* fallthrough */
  13557. _8:
  13558. ;
  13559. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x0800) != 0 {
  13560. if have == uint32(0) {
  13561. goto inf_leave
  13562. }
  13563. copy1 = uint32(0)
  13564. for cond := true; cond; cond = len1 != 0 && copy1 < have {
  13565. v49 = copy1
  13566. copy1++
  13567. len1 = uint32(*(*uint8)(unsafe.Pointer(next + uintptr(v49))))
  13568. if (*Tinflate_state)(unsafe.Pointer(state)).Fhead != uintptr(m_Z_NULL) && (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fname != uintptr(m_Z_NULL) && (*Tinflate_state)(unsafe.Pointer(state)).Flength < (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fname_max {
  13569. v51 = state + 92
  13570. v50 = *(*uint32)(unsafe.Pointer(v51))
  13571. *(*uint32)(unsafe.Pointer(v51))++
  13572. *(*TBytef)(unsafe.Pointer((*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fname + uintptr(v50))) = uint8(len1)
  13573. }
  13574. }
  13575. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x0200) != 0 && (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0 {
  13576. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, next, copy1)
  13577. }
  13578. have -= copy1
  13579. next += uintptr(copy1)
  13580. if len1 != 0 {
  13581. goto inf_leave
  13582. }
  13583. } else {
  13584. if (*Tinflate_state)(unsafe.Pointer(state)).Fhead != uintptr(m_Z_NULL) {
  13585. (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fname = uintptr(m_Z_NULL)
  13586. }
  13587. }
  13588. (*Tinflate_state)(unsafe.Pointer(state)).Flength = uint32(0)
  13589. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_COMMENT)
  13590. /* fallthrough */
  13591. _9:
  13592. ;
  13593. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x1000) != 0 {
  13594. if have == uint32(0) {
  13595. goto inf_leave
  13596. }
  13597. copy1 = uint32(0)
  13598. for cond := true; cond; cond = len1 != 0 && copy1 < have {
  13599. v52 = copy1
  13600. copy1++
  13601. len1 = uint32(*(*uint8)(unsafe.Pointer(next + uintptr(v52))))
  13602. if (*Tinflate_state)(unsafe.Pointer(state)).Fhead != uintptr(m_Z_NULL) && (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fcomment != uintptr(m_Z_NULL) && (*Tinflate_state)(unsafe.Pointer(state)).Flength < (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fcomm_max {
  13603. v54 = state + 92
  13604. v53 = *(*uint32)(unsafe.Pointer(v54))
  13605. *(*uint32)(unsafe.Pointer(v54))++
  13606. *(*TBytef)(unsafe.Pointer((*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fcomment + uintptr(v53))) = uint8(len1)
  13607. }
  13608. }
  13609. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x0200) != 0 && (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0 {
  13610. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, next, copy1)
  13611. }
  13612. have -= copy1
  13613. next += uintptr(copy1)
  13614. if len1 != 0 {
  13615. goto inf_leave
  13616. }
  13617. } else {
  13618. if (*Tinflate_state)(unsafe.Pointer(state)).Fhead != uintptr(m_Z_NULL) {
  13619. (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fcomment = uintptr(m_Z_NULL)
  13620. }
  13621. }
  13622. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_HCRC)
  13623. /* fallthrough */
  13624. _10:
  13625. ;
  13626. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x0200) != 0 {
  13627. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(16)) {
  13628. if have == uint32(0) {
  13629. goto inf_leave
  13630. }
  13631. have--
  13632. v55 = next
  13633. next++
  13634. hold += uint64(*(*uint8)(unsafe.Pointer(v55))) << bits
  13635. bits += uint32(8)
  13636. }
  13637. if (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0 && hold != (*Tinflate_state)(unsafe.Pointer(state)).Fcheck&uint64(0xffff) {
  13638. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 403
  13639. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13640. goto _35
  13641. }
  13642. hold = uint64(0)
  13643. bits = uint32(0)
  13644. }
  13645. if (*Tinflate_state)(unsafe.Pointer(state)).Fhead != uintptr(m_Z_NULL) {
  13646. (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fhcrc = (*Tinflate_state)(unsafe.Pointer(state)).Fflags >> libc.Int32FromInt32(9) & libc.Int32FromInt32(1)
  13647. (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fdone = int32(1)
  13648. }
  13649. v56 = Xcrc32(tls, uint64(0), uintptr(m_Z_NULL), uint32(0))
  13650. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = v56
  13651. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = v56
  13652. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TYPE)
  13653. goto _35
  13654. _11:
  13655. ;
  13656. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(32)) {
  13657. if have == uint32(0) {
  13658. goto inf_leave
  13659. }
  13660. have--
  13661. v57 = next
  13662. next++
  13663. hold += uint64(*(*uint8)(unsafe.Pointer(v57))) << bits
  13664. bits += uint32(8)
  13665. }
  13666. v58 = hold>>libc.Int32FromInt32(24)&libc.Uint64FromInt32(0xff) + hold>>libc.Int32FromInt32(8)&libc.Uint64FromInt32(0xff00) + hold&libc.Uint64FromInt32(0xff00)<<libc.Int32FromInt32(8) + hold&libc.Uint64FromInt32(0xff)<<libc.Int32FromInt32(24)
  13667. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = v58
  13668. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = v58
  13669. hold = uint64(0)
  13670. bits = uint32(0)
  13671. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_DICT)
  13672. /* fallthrough */
  13673. _12:
  13674. ;
  13675. if (*Tinflate_state)(unsafe.Pointer(state)).Fhavedict == 0 {
  13676. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out = put
  13677. (*Tz_stream)(unsafe.Pointer(strm)).Favail_out = left
  13678. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = next
  13679. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = have
  13680. (*Tinflate_state)(unsafe.Pointer(state)).Fhold = hold
  13681. (*Tinflate_state)(unsafe.Pointer(state)).Fbits = bits
  13682. return int32(m_Z_NEED_DICT)
  13683. }
  13684. v59 = Xadler32(tls, uint64(0), uintptr(m_Z_NULL), uint32(0))
  13685. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = v59
  13686. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = v59
  13687. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TYPE)
  13688. /* fallthrough */
  13689. _13:
  13690. ;
  13691. if flush == int32(m_Z_BLOCK) || flush == int32(m_Z_TREES) {
  13692. goto inf_leave
  13693. }
  13694. /* fallthrough */
  13695. _14:
  13696. ;
  13697. if (*Tinflate_state)(unsafe.Pointer(state)).Flast != 0 {
  13698. hold >>= uint64(bits & uint32(7))
  13699. bits -= bits & uint32(7)
  13700. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_CHECK)
  13701. goto _35
  13702. }
  13703. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(3)) {
  13704. if have == uint32(0) {
  13705. goto inf_leave
  13706. }
  13707. have--
  13708. v60 = next
  13709. next++
  13710. hold += uint64(*(*uint8)(unsafe.Pointer(v60))) << bits
  13711. bits += uint32(8)
  13712. }
  13713. (*Tinflate_state)(unsafe.Pointer(state)).Flast = libc.Int32FromUint32(uint32(hold) & (libc.Uint32FromUint32(1)<<libc.Int32FromInt32(1) - libc.Uint32FromInt32(1)))
  13714. hold >>= libc.Uint64FromInt32(libc.Int32FromInt32(1))
  13715. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(1))
  13716. switch uint32(hold) & (libc.Uint32FromUint32(1)<<libc.Int32FromInt32(2) - libc.Uint32FromInt32(1)) {
  13717. case uint32(0): /* stored block */
  13718. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_STORED)
  13719. case uint32(1): /* fixed block */
  13720. _fixedtables1(tls, state)
  13721. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LEN_) /* decode codes */
  13722. if flush == int32(m_Z_TREES) {
  13723. hold >>= libc.Uint64FromInt32(libc.Int32FromInt32(2))
  13724. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(2))
  13725. goto inf_leave
  13726. }
  13727. case uint32(2): /* dynamic block */
  13728. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TABLE)
  13729. case uint32(3):
  13730. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 6
  13731. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13732. }
  13733. hold >>= libc.Uint64FromInt32(libc.Int32FromInt32(2))
  13734. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(2))
  13735. goto _35
  13736. _15:
  13737. ;
  13738. hold >>= uint64(bits & uint32(7))
  13739. bits -= bits & uint32(7) /* go to byte boundary */
  13740. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(32)) {
  13741. if have == uint32(0) {
  13742. goto inf_leave
  13743. }
  13744. have--
  13745. v61 = next
  13746. next++
  13747. hold += uint64(*(*uint8)(unsafe.Pointer(v61))) << bits
  13748. bits += uint32(8)
  13749. }
  13750. if hold&uint64(0xffff) != hold>>int32(16)^uint64(0xffff) {
  13751. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 25
  13752. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13753. goto _35
  13754. }
  13755. (*Tinflate_state)(unsafe.Pointer(state)).Flength = uint32(hold) & uint32(0xffff)
  13756. hold = uint64(0)
  13757. bits = uint32(0)
  13758. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_COPY_)
  13759. if flush == int32(m_Z_TREES) {
  13760. goto inf_leave
  13761. }
  13762. /* fallthrough */
  13763. _16:
  13764. ;
  13765. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_COPY)
  13766. /* fallthrough */
  13767. _17:
  13768. ;
  13769. copy1 = (*Tinflate_state)(unsafe.Pointer(state)).Flength
  13770. if copy1 != 0 {
  13771. if copy1 > have {
  13772. copy1 = have
  13773. }
  13774. if copy1 > left {
  13775. copy1 = left
  13776. }
  13777. if copy1 == uint32(0) {
  13778. goto inf_leave
  13779. }
  13780. libc.Xmemcpy(tls, put, next, uint64(copy1))
  13781. have -= copy1
  13782. next += uintptr(copy1)
  13783. left -= copy1
  13784. put += uintptr(copy1)
  13785. *(*uint32)(unsafe.Pointer(state + 92)) -= copy1
  13786. goto _35
  13787. }
  13788. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TYPE)
  13789. goto _35
  13790. _18:
  13791. ;
  13792. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(14)) {
  13793. if have == uint32(0) {
  13794. goto inf_leave
  13795. }
  13796. have--
  13797. v62 = next
  13798. next++
  13799. hold += uint64(*(*uint8)(unsafe.Pointer(v62))) << bits
  13800. bits += uint32(8)
  13801. }
  13802. (*Tinflate_state)(unsafe.Pointer(state)).Fnlen = uint32(hold)&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(5)-libc.Uint32FromInt32(1)) + uint32(257)
  13803. hold >>= libc.Uint64FromInt32(libc.Int32FromInt32(5))
  13804. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(5))
  13805. (*Tinflate_state)(unsafe.Pointer(state)).Fndist = uint32(hold)&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(5)-libc.Uint32FromInt32(1)) + uint32(1)
  13806. hold >>= libc.Uint64FromInt32(libc.Int32FromInt32(5))
  13807. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(5))
  13808. (*Tinflate_state)(unsafe.Pointer(state)).Fncode = uint32(hold)&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(4)-libc.Uint32FromInt32(1)) + uint32(4)
  13809. hold >>= libc.Uint64FromInt32(libc.Int32FromInt32(4))
  13810. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(4))
  13811. if (*Tinflate_state)(unsafe.Pointer(state)).Fnlen > uint32(286) || (*Tinflate_state)(unsafe.Pointer(state)).Fndist > uint32(30) {
  13812. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 54
  13813. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13814. goto _35
  13815. }
  13816. (*Tinflate_state)(unsafe.Pointer(state)).Fhave = uint32(0)
  13817. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LENLENS)
  13818. /* fallthrough */
  13819. _19:
  13820. ;
  13821. for (*Tinflate_state)(unsafe.Pointer(state)).Fhave < (*Tinflate_state)(unsafe.Pointer(state)).Fncode {
  13822. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(3)) {
  13823. if have == uint32(0) {
  13824. goto inf_leave
  13825. }
  13826. have--
  13827. v63 = next
  13828. next++
  13829. hold += uint64(*(*uint8)(unsafe.Pointer(v63))) << bits
  13830. bits += uint32(8)
  13831. }
  13832. v65 = state + 140
  13833. v64 = *(*uint32)(unsafe.Pointer(v65))
  13834. *(*uint32)(unsafe.Pointer(v65))++
  13835. *(*uint16)(unsafe.Pointer(state + 152 + uintptr(_order1[v64])*2)) = uint16(uint32(hold) & (libc.Uint32FromUint32(1)<<libc.Int32FromInt32(3) - libc.Uint32FromInt32(1)))
  13836. hold >>= libc.Uint64FromInt32(libc.Int32FromInt32(3))
  13837. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(3))
  13838. }
  13839. for (*Tinflate_state)(unsafe.Pointer(state)).Fhave < uint32(19) {
  13840. v67 = state + 140
  13841. v66 = *(*uint32)(unsafe.Pointer(v67))
  13842. *(*uint32)(unsafe.Pointer(v67))++
  13843. *(*uint16)(unsafe.Pointer(state + 152 + uintptr(_order1[v66])*2)) = uint16(0)
  13844. }
  13845. (*Tinflate_state)(unsafe.Pointer(state)).Fnext = state + 1368
  13846. (*Tinflate_state)(unsafe.Pointer(state)).Flencode = (*Tinflate_state)(unsafe.Pointer(state)).Fnext
  13847. (*Tinflate_state)(unsafe.Pointer(state)).Flenbits = uint32(7)
  13848. ret = Xinflate_table(tls, int32(_CODES), state+152, uint32(19), state+144, state+120, state+792)
  13849. if ret != 0 {
  13850. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 90
  13851. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13852. goto _35
  13853. }
  13854. (*Tinflate_state)(unsafe.Pointer(state)).Fhave = uint32(0)
  13855. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_CODELENS)
  13856. /* fallthrough */
  13857. _20:
  13858. ;
  13859. for (*Tinflate_state)(unsafe.Pointer(state)).Fhave < (*Tinflate_state)(unsafe.Pointer(state)).Fnlen+(*Tinflate_state)(unsafe.Pointer(state)).Fndist {
  13860. for {
  13861. here = *(*Tcode)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Flencode + uintptr(uint32(hold)&(libc.Uint32FromUint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Flenbits-libc.Uint32FromInt32(1)))*4))
  13862. if uint32(here.Fbits) <= bits {
  13863. break
  13864. }
  13865. if have == uint32(0) {
  13866. goto inf_leave
  13867. }
  13868. have--
  13869. v69 = next
  13870. next++
  13871. hold += uint64(*(*uint8)(unsafe.Pointer(v69))) << bits
  13872. bits += uint32(8)
  13873. goto _68
  13874. _68:
  13875. }
  13876. if libc.Int32FromUint16(here.Fval) < int32(16) {
  13877. hold >>= uint64(here.Fbits)
  13878. bits -= uint32(here.Fbits)
  13879. v71 = state + 140
  13880. v70 = *(*uint32)(unsafe.Pointer(v71))
  13881. *(*uint32)(unsafe.Pointer(v71))++
  13882. *(*uint16)(unsafe.Pointer(state + 152 + uintptr(v70)*2)) = here.Fval
  13883. } else {
  13884. if libc.Int32FromUint16(here.Fval) == int32(16) {
  13885. for bits < libc.Uint32FromInt32(libc.Int32FromUint8(here.Fbits)+libc.Int32FromInt32(2)) {
  13886. if have == uint32(0) {
  13887. goto inf_leave
  13888. }
  13889. have--
  13890. v72 = next
  13891. next++
  13892. hold += uint64(*(*uint8)(unsafe.Pointer(v72))) << bits
  13893. bits += uint32(8)
  13894. }
  13895. hold >>= uint64(here.Fbits)
  13896. bits -= uint32(here.Fbits)
  13897. if (*Tinflate_state)(unsafe.Pointer(state)).Fhave == uint32(0) {
  13898. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 115
  13899. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13900. break
  13901. }
  13902. len1 = uint32(*(*uint16)(unsafe.Pointer(state + 152 + uintptr((*Tinflate_state)(unsafe.Pointer(state)).Fhave-uint32(1))*2)))
  13903. copy1 = uint32(3) + uint32(hold)&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(2)-libc.Uint32FromInt32(1))
  13904. hold >>= libc.Uint64FromInt32(libc.Int32FromInt32(2))
  13905. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(2))
  13906. } else {
  13907. if libc.Int32FromUint16(here.Fval) == int32(17) {
  13908. for bits < libc.Uint32FromInt32(libc.Int32FromUint8(here.Fbits)+libc.Int32FromInt32(3)) {
  13909. if have == uint32(0) {
  13910. goto inf_leave
  13911. }
  13912. have--
  13913. v73 = next
  13914. next++
  13915. hold += uint64(*(*uint8)(unsafe.Pointer(v73))) << bits
  13916. bits += uint32(8)
  13917. }
  13918. hold >>= uint64(here.Fbits)
  13919. bits -= uint32(here.Fbits)
  13920. len1 = uint32(0)
  13921. copy1 = uint32(3) + uint32(hold)&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(3)-libc.Uint32FromInt32(1))
  13922. hold >>= libc.Uint64FromInt32(libc.Int32FromInt32(3))
  13923. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(3))
  13924. } else {
  13925. for bits < libc.Uint32FromInt32(libc.Int32FromUint8(here.Fbits)+libc.Int32FromInt32(7)) {
  13926. if have == uint32(0) {
  13927. goto inf_leave
  13928. }
  13929. have--
  13930. v74 = next
  13931. next++
  13932. hold += uint64(*(*uint8)(unsafe.Pointer(v74))) << bits
  13933. bits += uint32(8)
  13934. }
  13935. hold >>= uint64(here.Fbits)
  13936. bits -= uint32(here.Fbits)
  13937. len1 = uint32(0)
  13938. copy1 = uint32(11) + uint32(hold)&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(7)-libc.Uint32FromInt32(1))
  13939. hold >>= libc.Uint64FromInt32(libc.Int32FromInt32(7))
  13940. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(7))
  13941. }
  13942. }
  13943. if (*Tinflate_state)(unsafe.Pointer(state)).Fhave+copy1 > (*Tinflate_state)(unsafe.Pointer(state)).Fnlen+(*Tinflate_state)(unsafe.Pointer(state)).Fndist {
  13944. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 115
  13945. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13946. break
  13947. }
  13948. for {
  13949. v75 = copy1
  13950. copy1--
  13951. if !(v75 != 0) {
  13952. break
  13953. }
  13954. v77 = state + 140
  13955. v76 = *(*uint32)(unsafe.Pointer(v77))
  13956. *(*uint32)(unsafe.Pointer(v77))++
  13957. *(*uint16)(unsafe.Pointer(state + 152 + uintptr(v76)*2)) = uint16(len1)
  13958. }
  13959. }
  13960. }
  13961. /* handle error breaks in while */
  13962. if (*Tinflate_state)(unsafe.Pointer(state)).Fmode == int32(_BAD) {
  13963. goto _35
  13964. }
  13965. /* check for end-of-block code (better have one) */
  13966. if libc.Int32FromUint16(*(*uint16)(unsafe.Pointer(state + 152 + 256*2))) == 0 {
  13967. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 141
  13968. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13969. goto _35
  13970. }
  13971. /* build code tables -- note: do not change the lenbits or distbits
  13972. values here (9 and 6) without reading the comments in inftrees.h
  13973. concerning the ENOUGH constants, which depend on those values */
  13974. (*Tinflate_state)(unsafe.Pointer(state)).Fnext = state + 1368
  13975. (*Tinflate_state)(unsafe.Pointer(state)).Flencode = (*Tinflate_state)(unsafe.Pointer(state)).Fnext
  13976. (*Tinflate_state)(unsafe.Pointer(state)).Flenbits = uint32(9)
  13977. ret = Xinflate_table(tls, int32(_LENS), state+152, (*Tinflate_state)(unsafe.Pointer(state)).Fnlen, state+144, state+120, state+792)
  13978. if ret != 0 {
  13979. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 178
  13980. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13981. goto _35
  13982. }
  13983. (*Tinflate_state)(unsafe.Pointer(state)).Fdistcode = (*Tinflate_state)(unsafe.Pointer(state)).Fnext
  13984. (*Tinflate_state)(unsafe.Pointer(state)).Fdistbits = uint32(6)
  13985. ret = Xinflate_table(tls, int32(_DISTS), state+152+uintptr((*Tinflate_state)(unsafe.Pointer(state)).Fnlen)*2, (*Tinflate_state)(unsafe.Pointer(state)).Fndist, state+144, state+124, state+792)
  13986. if ret != 0 {
  13987. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 206
  13988. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13989. goto _35
  13990. }
  13991. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LEN_)
  13992. if flush == int32(m_Z_TREES) {
  13993. goto inf_leave
  13994. }
  13995. /* fallthrough */
  13996. _21:
  13997. ;
  13998. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LEN)
  13999. /* fallthrough */
  14000. _22:
  14001. ;
  14002. if have >= uint32(6) && left >= uint32(258) {
  14003. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out = put
  14004. (*Tz_stream)(unsafe.Pointer(strm)).Favail_out = left
  14005. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = next
  14006. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = have
  14007. (*Tinflate_state)(unsafe.Pointer(state)).Fhold = hold
  14008. (*Tinflate_state)(unsafe.Pointer(state)).Fbits = bits
  14009. Xinflate_fast(tls, strm, out)
  14010. put = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out
  14011. left = (*Tz_stream)(unsafe.Pointer(strm)).Favail_out
  14012. next = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in
  14013. have = (*Tz_stream)(unsafe.Pointer(strm)).Favail_in
  14014. hold = (*Tinflate_state)(unsafe.Pointer(state)).Fhold
  14015. bits = (*Tinflate_state)(unsafe.Pointer(state)).Fbits
  14016. if (*Tinflate_state)(unsafe.Pointer(state)).Fmode == int32(_TYPE) {
  14017. (*Tinflate_state)(unsafe.Pointer(state)).Fback = -int32(1)
  14018. }
  14019. goto _35
  14020. }
  14021. (*Tinflate_state)(unsafe.Pointer(state)).Fback = 0
  14022. for {
  14023. here = *(*Tcode)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Flencode + uintptr(uint32(hold)&(libc.Uint32FromUint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Flenbits-libc.Uint32FromInt32(1)))*4))
  14024. if uint32(here.Fbits) <= bits {
  14025. break
  14026. }
  14027. if have == uint32(0) {
  14028. goto inf_leave
  14029. }
  14030. have--
  14031. v79 = next
  14032. next++
  14033. hold += uint64(*(*uint8)(unsafe.Pointer(v79))) << bits
  14034. bits += uint32(8)
  14035. goto _78
  14036. _78:
  14037. }
  14038. if here.Fop != 0 && libc.Int32FromUint8(here.Fop)&int32(0xf0) == 0 {
  14039. last = here
  14040. for {
  14041. here = *(*Tcode)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Flencode + uintptr(uint32(last.Fval)+uint32(hold)&(uint32(1)<<(libc.Int32FromUint8(last.Fbits)+libc.Int32FromUint8(last.Fop))-uint32(1))>>last.Fbits)*4))
  14042. if libc.Uint32FromInt32(libc.Int32FromUint8(last.Fbits)+libc.Int32FromUint8(here.Fbits)) <= bits {
  14043. break
  14044. }
  14045. if have == uint32(0) {
  14046. goto inf_leave
  14047. }
  14048. have--
  14049. v81 = next
  14050. next++
  14051. hold += uint64(*(*uint8)(unsafe.Pointer(v81))) << bits
  14052. bits += uint32(8)
  14053. goto _80
  14054. _80:
  14055. }
  14056. hold >>= uint64(last.Fbits)
  14057. bits -= uint32(last.Fbits)
  14058. *(*int32)(unsafe.Pointer(state + 7148)) += libc.Int32FromUint8(last.Fbits)
  14059. }
  14060. hold >>= uint64(here.Fbits)
  14061. bits -= uint32(here.Fbits)
  14062. *(*int32)(unsafe.Pointer(state + 7148)) += libc.Int32FromUint8(here.Fbits)
  14063. (*Tinflate_state)(unsafe.Pointer(state)).Flength = uint32(here.Fval)
  14064. if libc.Int32FromUint8(here.Fop) == 0 {
  14065. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LIT)
  14066. goto _35
  14067. }
  14068. if libc.Int32FromUint8(here.Fop)&int32(32) != 0 {
  14069. (*Tinflate_state)(unsafe.Pointer(state)).Fback = -int32(1)
  14070. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TYPE)
  14071. goto _35
  14072. }
  14073. if libc.Int32FromUint8(here.Fop)&int32(64) != 0 {
  14074. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 228
  14075. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  14076. goto _35
  14077. }
  14078. (*Tinflate_state)(unsafe.Pointer(state)).Fextra = uint32(here.Fop) & uint32(15)
  14079. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LENEXT)
  14080. /* fallthrough */
  14081. _23:
  14082. ;
  14083. if (*Tinflate_state)(unsafe.Pointer(state)).Fextra != 0 {
  14084. for bits < (*Tinflate_state)(unsafe.Pointer(state)).Fextra {
  14085. if have == uint32(0) {
  14086. goto inf_leave
  14087. }
  14088. have--
  14089. v82 = next
  14090. next++
  14091. hold += uint64(*(*uint8)(unsafe.Pointer(v82))) << bits
  14092. bits += uint32(8)
  14093. }
  14094. *(*uint32)(unsafe.Pointer(state + 92)) += uint32(hold) & (uint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Fextra - uint32(1))
  14095. hold >>= uint64((*Tinflate_state)(unsafe.Pointer(state)).Fextra)
  14096. bits -= (*Tinflate_state)(unsafe.Pointer(state)).Fextra
  14097. p83 = state + 7148
  14098. *(*int32)(unsafe.Pointer(p83)) = int32(uint32(*(*int32)(unsafe.Pointer(p83))) + (*Tinflate_state)(unsafe.Pointer(state)).Fextra)
  14099. }
  14100. (*Tinflate_state)(unsafe.Pointer(state)).Fwas = (*Tinflate_state)(unsafe.Pointer(state)).Flength
  14101. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_DIST)
  14102. /* fallthrough */
  14103. _24:
  14104. ;
  14105. for {
  14106. here = *(*Tcode)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fdistcode + uintptr(uint32(hold)&(libc.Uint32FromUint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Fdistbits-libc.Uint32FromInt32(1)))*4))
  14107. if uint32(here.Fbits) <= bits {
  14108. break
  14109. }
  14110. if have == uint32(0) {
  14111. goto inf_leave
  14112. }
  14113. have--
  14114. v85 = next
  14115. next++
  14116. hold += uint64(*(*uint8)(unsafe.Pointer(v85))) << bits
  14117. bits += uint32(8)
  14118. goto _84
  14119. _84:
  14120. }
  14121. if libc.Int32FromUint8(here.Fop)&int32(0xf0) == 0 {
  14122. last = here
  14123. for {
  14124. here = *(*Tcode)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fdistcode + uintptr(uint32(last.Fval)+uint32(hold)&(uint32(1)<<(libc.Int32FromUint8(last.Fbits)+libc.Int32FromUint8(last.Fop))-uint32(1))>>last.Fbits)*4))
  14125. if libc.Uint32FromInt32(libc.Int32FromUint8(last.Fbits)+libc.Int32FromUint8(here.Fbits)) <= bits {
  14126. break
  14127. }
  14128. if have == uint32(0) {
  14129. goto inf_leave
  14130. }
  14131. have--
  14132. v87 = next
  14133. next++
  14134. hold += uint64(*(*uint8)(unsafe.Pointer(v87))) << bits
  14135. bits += uint32(8)
  14136. goto _86
  14137. _86:
  14138. }
  14139. hold >>= uint64(last.Fbits)
  14140. bits -= uint32(last.Fbits)
  14141. *(*int32)(unsafe.Pointer(state + 7148)) += libc.Int32FromUint8(last.Fbits)
  14142. }
  14143. hold >>= uint64(here.Fbits)
  14144. bits -= uint32(here.Fbits)
  14145. *(*int32)(unsafe.Pointer(state + 7148)) += libc.Int32FromUint8(here.Fbits)
  14146. if libc.Int32FromUint8(here.Fop)&int32(64) != 0 {
  14147. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 256
  14148. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  14149. goto _35
  14150. }
  14151. (*Tinflate_state)(unsafe.Pointer(state)).Foffset = uint32(here.Fval)
  14152. (*Tinflate_state)(unsafe.Pointer(state)).Fextra = uint32(here.Fop) & uint32(15)
  14153. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_DISTEXT)
  14154. /* fallthrough */
  14155. _25:
  14156. ;
  14157. if (*Tinflate_state)(unsafe.Pointer(state)).Fextra != 0 {
  14158. for bits < (*Tinflate_state)(unsafe.Pointer(state)).Fextra {
  14159. if have == uint32(0) {
  14160. goto inf_leave
  14161. }
  14162. have--
  14163. v88 = next
  14164. next++
  14165. hold += uint64(*(*uint8)(unsafe.Pointer(v88))) << bits
  14166. bits += uint32(8)
  14167. }
  14168. *(*uint32)(unsafe.Pointer(state + 96)) += uint32(hold) & (uint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Fextra - uint32(1))
  14169. hold >>= uint64((*Tinflate_state)(unsafe.Pointer(state)).Fextra)
  14170. bits -= (*Tinflate_state)(unsafe.Pointer(state)).Fextra
  14171. p89 = state + 7148
  14172. *(*int32)(unsafe.Pointer(p89)) = int32(uint32(*(*int32)(unsafe.Pointer(p89))) + (*Tinflate_state)(unsafe.Pointer(state)).Fextra)
  14173. }
  14174. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_MATCH)
  14175. /* fallthrough */
  14176. _26:
  14177. ;
  14178. if left == uint32(0) {
  14179. goto inf_leave
  14180. }
  14181. copy1 = out - left
  14182. if (*Tinflate_state)(unsafe.Pointer(state)).Foffset > copy1 { /* copy from window */
  14183. copy1 = (*Tinflate_state)(unsafe.Pointer(state)).Foffset - copy1
  14184. if copy1 > (*Tinflate_state)(unsafe.Pointer(state)).Fwhave {
  14185. if (*Tinflate_state)(unsafe.Pointer(state)).Fsane != 0 {
  14186. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 278
  14187. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  14188. goto _35
  14189. }
  14190. }
  14191. if copy1 > (*Tinflate_state)(unsafe.Pointer(state)).Fwnext {
  14192. copy1 -= (*Tinflate_state)(unsafe.Pointer(state)).Fwnext
  14193. from = (*Tinflate_state)(unsafe.Pointer(state)).Fwindow + uintptr((*Tinflate_state)(unsafe.Pointer(state)).Fwsize-copy1)
  14194. } else {
  14195. from = (*Tinflate_state)(unsafe.Pointer(state)).Fwindow + uintptr((*Tinflate_state)(unsafe.Pointer(state)).Fwnext-copy1)
  14196. }
  14197. if copy1 > (*Tinflate_state)(unsafe.Pointer(state)).Flength {
  14198. copy1 = (*Tinflate_state)(unsafe.Pointer(state)).Flength
  14199. }
  14200. } else { /* copy from output */
  14201. from = put - uintptr((*Tinflate_state)(unsafe.Pointer(state)).Foffset)
  14202. copy1 = (*Tinflate_state)(unsafe.Pointer(state)).Flength
  14203. }
  14204. if copy1 > left {
  14205. copy1 = left
  14206. }
  14207. left -= copy1
  14208. *(*uint32)(unsafe.Pointer(state + 92)) -= copy1
  14209. for {
  14210. v92 = put
  14211. put++
  14212. v93 = from
  14213. from++
  14214. *(*uint8)(unsafe.Pointer(v92)) = *(*uint8)(unsafe.Pointer(v93))
  14215. goto _91
  14216. _91:
  14217. ;
  14218. copy1--
  14219. v90 = copy1
  14220. if !(v90 != 0) {
  14221. break
  14222. }
  14223. }
  14224. if (*Tinflate_state)(unsafe.Pointer(state)).Flength == uint32(0) {
  14225. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LEN)
  14226. }
  14227. goto _35
  14228. _27:
  14229. ;
  14230. if left == uint32(0) {
  14231. goto inf_leave
  14232. }
  14233. v94 = put
  14234. put++
  14235. *(*uint8)(unsafe.Pointer(v94)) = uint8((*Tinflate_state)(unsafe.Pointer(state)).Flength)
  14236. left--
  14237. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LEN)
  14238. goto _35
  14239. _28:
  14240. ;
  14241. if (*Tinflate_state)(unsafe.Pointer(state)).Fwrap != 0 {
  14242. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(32)) {
  14243. if have == uint32(0) {
  14244. goto inf_leave
  14245. }
  14246. have--
  14247. v95 = next
  14248. next++
  14249. hold += uint64(*(*uint8)(unsafe.Pointer(v95))) << bits
  14250. bits += uint32(8)
  14251. }
  14252. out -= left
  14253. *(*TuLong)(unsafe.Pointer(strm + 40)) += uint64(out)
  14254. *(*uint64)(unsafe.Pointer(state + 40)) += uint64(out)
  14255. if (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0 && out != 0 {
  14256. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags != 0 {
  14257. v97 = Xcrc32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, put-uintptr(out), out)
  14258. } else {
  14259. v97 = Xadler32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, put-uintptr(out), out)
  14260. }
  14261. v96 = v97
  14262. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = v96
  14263. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = v96
  14264. }
  14265. out = left
  14266. if v99 = (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0; v99 {
  14267. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags != 0 {
  14268. v98 = hold
  14269. } else {
  14270. v98 = hold>>int32(24)&uint64(0xff) + hold>>int32(8)&uint64(0xff00) + hold&uint64(0xff00)<<int32(8) + hold&uint64(0xff)<<int32(24)
  14271. }
  14272. }
  14273. if v99 && v98 != (*Tinflate_state)(unsafe.Pointer(state)).Fcheck {
  14274. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 423
  14275. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  14276. goto _35
  14277. }
  14278. hold = uint64(0)
  14279. bits = uint32(0)
  14280. }
  14281. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LENGTH)
  14282. /* fallthrough */
  14283. _29:
  14284. ;
  14285. if (*Tinflate_state)(unsafe.Pointer(state)).Fwrap != 0 && (*Tinflate_state)(unsafe.Pointer(state)).Fflags != 0 {
  14286. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(32)) {
  14287. if have == uint32(0) {
  14288. goto inf_leave
  14289. }
  14290. have--
  14291. v100 = next
  14292. next++
  14293. hold += uint64(*(*uint8)(unsafe.Pointer(v100))) << bits
  14294. bits += uint32(8)
  14295. }
  14296. if (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0 && hold != (*Tinflate_state)(unsafe.Pointer(state)).Ftotal&uint64(0xffffffff) {
  14297. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 444
  14298. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  14299. goto _35
  14300. }
  14301. hold = uint64(0)
  14302. bits = uint32(0)
  14303. }
  14304. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_DONE)
  14305. /* fallthrough */
  14306. _30:
  14307. ;
  14308. ret = int32(m_Z_STREAM_END)
  14309. goto inf_leave
  14310. _31:
  14311. ;
  14312. ret = -int32(3)
  14313. goto inf_leave
  14314. _32:
  14315. ;
  14316. return -int32(4)
  14317. _34:
  14318. ;
  14319. /* fallthrough */
  14320. _33:
  14321. ;
  14322. return -int32(2)
  14323. _35:
  14324. ;
  14325. goto _1
  14326. _1:
  14327. }
  14328. /*
  14329. Return from inflate(), updating the total counts and the check value.
  14330. If there was no progress during the inflate() call, return a buffer
  14331. error. Call updatewindow() to create and/or update the window state.
  14332. Note: a memory error from inflate() is non-recoverable.
  14333. */
  14334. goto inf_leave
  14335. inf_leave:
  14336. ;
  14337. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out = put
  14338. (*Tz_stream)(unsafe.Pointer(strm)).Favail_out = left
  14339. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = next
  14340. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = have
  14341. (*Tinflate_state)(unsafe.Pointer(state)).Fhold = hold
  14342. (*Tinflate_state)(unsafe.Pointer(state)).Fbits = bits
  14343. if (*Tinflate_state)(unsafe.Pointer(state)).Fwsize != 0 || out != (*Tz_stream)(unsafe.Pointer(strm)).Favail_out && (*Tinflate_state)(unsafe.Pointer(state)).Fmode < int32(_BAD) && ((*Tinflate_state)(unsafe.Pointer(state)).Fmode < int32(_CHECK) || flush != int32(m_Z_FINISH)) {
  14344. if _updatewindow(tls, strm, (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out, out-(*Tz_stream)(unsafe.Pointer(strm)).Favail_out) != 0 {
  14345. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_MEM)
  14346. return -int32(4)
  14347. }
  14348. }
  14349. in -= (*Tz_stream)(unsafe.Pointer(strm)).Favail_in
  14350. out -= (*Tz_stream)(unsafe.Pointer(strm)).Favail_out
  14351. *(*TuLong)(unsafe.Pointer(strm + 16)) += uint64(in)
  14352. *(*TuLong)(unsafe.Pointer(strm + 40)) += uint64(out)
  14353. *(*uint64)(unsafe.Pointer(state + 40)) += uint64(out)
  14354. if (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0 && out != 0 {
  14355. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags != 0 {
  14356. v102 = Xcrc32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out-uintptr(out), out)
  14357. } else {
  14358. v102 = Xadler32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out-uintptr(out), out)
  14359. }
  14360. v101 = v102
  14361. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = v101
  14362. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = v101
  14363. }
  14364. if (*Tinflate_state)(unsafe.Pointer(state)).Flast != 0 {
  14365. v103 = int32(64)
  14366. } else {
  14367. v103 = 0
  14368. }
  14369. if (*Tinflate_state)(unsafe.Pointer(state)).Fmode == int32(_TYPE) {
  14370. v104 = int32(128)
  14371. } else {
  14372. v104 = 0
  14373. }
  14374. if (*Tinflate_state)(unsafe.Pointer(state)).Fmode == int32(_LEN_) || (*Tinflate_state)(unsafe.Pointer(state)).Fmode == int32(_COPY_) {
  14375. v105 = int32(256)
  14376. } else {
  14377. v105 = 0
  14378. }
  14379. (*Tz_stream)(unsafe.Pointer(strm)).Fdata_type = libc.Int32FromUint32((*Tinflate_state)(unsafe.Pointer(state)).Fbits) + v103 + v104 + v105
  14380. if (in == uint32(0) && out == uint32(0) || flush == int32(m_Z_FINISH)) && ret == m_Z_OK {
  14381. ret = -int32(5)
  14382. }
  14383. return ret
  14384. }
  14385. var _order1 = [19]uint16{
  14386. 0: uint16(16),
  14387. 1: uint16(17),
  14388. 2: uint16(18),
  14389. 4: uint16(8),
  14390. 5: uint16(7),
  14391. 6: uint16(9),
  14392. 7: uint16(6),
  14393. 8: uint16(10),
  14394. 9: uint16(5),
  14395. 10: uint16(11),
  14396. 11: uint16(4),
  14397. 12: uint16(12),
  14398. 13: uint16(3),
  14399. 14: uint16(13),
  14400. 15: uint16(2),
  14401. 16: uint16(14),
  14402. 17: uint16(1),
  14403. 18: uint16(15),
  14404. }
  14405. func XinflateEnd(tls *libc.TLS, strm Tz_streamp) (r int32) {
  14406. var state uintptr
  14407. _ = state
  14408. if _inflateStateCheck(tls, strm) != 0 {
  14409. return -int32(2)
  14410. }
  14411. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  14412. if (*Tinflate_state)(unsafe.Pointer(state)).Fwindow != uintptr(m_Z_NULL) {
  14413. (*(*func(*libc.TLS, Tvoidpf, Tvoidpf))(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(strm)).Fzfree})))(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fopaque, (*Tinflate_state)(unsafe.Pointer(state)).Fwindow)
  14414. }
  14415. (*(*func(*libc.TLS, Tvoidpf, Tvoidpf))(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(strm)).Fzfree})))(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fopaque, (*Tz_stream)(unsafe.Pointer(strm)).Fstate)
  14416. (*Tz_stream)(unsafe.Pointer(strm)).Fstate = uintptr(m_Z_NULL)
  14417. return m_Z_OK
  14418. }
  14419. func XinflateGetDictionary(tls *libc.TLS, strm Tz_streamp, dictionary uintptr, dictLength uintptr) (r int32) {
  14420. var state uintptr
  14421. _ = state
  14422. /* check state */
  14423. if _inflateStateCheck(tls, strm) != 0 {
  14424. return -int32(2)
  14425. }
  14426. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  14427. /* copy dictionary */
  14428. if (*Tinflate_state)(unsafe.Pointer(state)).Fwhave != 0 && dictionary != uintptr(m_Z_NULL) {
  14429. libc.Xmemcpy(tls, dictionary, (*Tinflate_state)(unsafe.Pointer(state)).Fwindow+uintptr((*Tinflate_state)(unsafe.Pointer(state)).Fwnext), uint64((*Tinflate_state)(unsafe.Pointer(state)).Fwhave-(*Tinflate_state)(unsafe.Pointer(state)).Fwnext))
  14430. libc.Xmemcpy(tls, dictionary+uintptr((*Tinflate_state)(unsafe.Pointer(state)).Fwhave)-uintptr((*Tinflate_state)(unsafe.Pointer(state)).Fwnext), (*Tinflate_state)(unsafe.Pointer(state)).Fwindow, uint64((*Tinflate_state)(unsafe.Pointer(state)).Fwnext))
  14431. }
  14432. if dictLength != uintptr(m_Z_NULL) {
  14433. *(*TuInt)(unsafe.Pointer(dictLength)) = (*Tinflate_state)(unsafe.Pointer(state)).Fwhave
  14434. }
  14435. return m_Z_OK
  14436. }
  14437. func XinflateSetDictionary(tls *libc.TLS, strm Tz_streamp, dictionary uintptr, dictLength TuInt) (r int32) {
  14438. var dictid uint64
  14439. var ret int32
  14440. var state uintptr
  14441. _, _, _ = dictid, ret, state
  14442. /* check state */
  14443. if _inflateStateCheck(tls, strm) != 0 {
  14444. return -int32(2)
  14445. }
  14446. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  14447. if (*Tinflate_state)(unsafe.Pointer(state)).Fwrap != 0 && (*Tinflate_state)(unsafe.Pointer(state)).Fmode != int32(_DICT) {
  14448. return -int32(2)
  14449. }
  14450. /* check for correct dictionary identifier */
  14451. if (*Tinflate_state)(unsafe.Pointer(state)).Fmode == int32(_DICT) {
  14452. dictid = Xadler32(tls, uint64(0), uintptr(m_Z_NULL), uint32(0))
  14453. dictid = Xadler32(tls, dictid, dictionary, dictLength)
  14454. if dictid != (*Tinflate_state)(unsafe.Pointer(state)).Fcheck {
  14455. return -int32(3)
  14456. }
  14457. }
  14458. /* copy dictionary to window using updatewindow(), which will amend the
  14459. existing dictionary if appropriate */
  14460. ret = _updatewindow(tls, strm, dictionary+uintptr(dictLength), dictLength)
  14461. if ret != 0 {
  14462. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_MEM)
  14463. return -int32(4)
  14464. }
  14465. (*Tinflate_state)(unsafe.Pointer(state)).Fhavedict = int32(1)
  14466. return m_Z_OK
  14467. }
  14468. func XinflateGetHeader(tls *libc.TLS, strm Tz_streamp, head Tgz_headerp) (r int32) {
  14469. var state uintptr
  14470. _ = state
  14471. /* check state */
  14472. if _inflateStateCheck(tls, strm) != 0 {
  14473. return -int32(2)
  14474. }
  14475. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  14476. if (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(2) == 0 {
  14477. return -int32(2)
  14478. }
  14479. /* save header structure */
  14480. (*Tinflate_state)(unsafe.Pointer(state)).Fhead = head
  14481. (*Tgz_header)(unsafe.Pointer(head)).Fdone = 0
  14482. return m_Z_OK
  14483. }
  14484. // C documentation
  14485. //
  14486. // /*
  14487. // Search buf[0..len-1] for the pattern: 0, 0, 0xff, 0xff. Return when found
  14488. // or when out of input. When called, *have is the number of pattern bytes
  14489. // found in order so far, in 0..3. On return *have is updated to the new
  14490. // state. If on return *have equals four, then the pattern was found and the
  14491. // return value is how many bytes were read including the last byte of the
  14492. // pattern. If *have is less than four, then the pattern has not been found
  14493. // yet and the return value is len. In the latter case, syncsearch() can be
  14494. // called again with more data and the *have state. *have is initialized to
  14495. // zero for the first call.
  14496. // */
  14497. func _syncsearch(tls *libc.TLS, have uintptr, buf uintptr, len1 uint32) (r uint32) {
  14498. var got, next uint32
  14499. var v1 int32
  14500. _, _, _ = got, next, v1
  14501. got = *(*uint32)(unsafe.Pointer(have))
  14502. next = uint32(0)
  14503. for next < len1 && got < uint32(4) {
  14504. if got < uint32(2) {
  14505. v1 = 0
  14506. } else {
  14507. v1 = int32(0xff)
  14508. }
  14509. if libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(buf + uintptr(next)))) == v1 {
  14510. got++
  14511. } else {
  14512. if *(*uint8)(unsafe.Pointer(buf + uintptr(next))) != 0 {
  14513. got = uint32(0)
  14514. } else {
  14515. got = uint32(4) - got
  14516. }
  14517. }
  14518. next++
  14519. }
  14520. *(*uint32)(unsafe.Pointer(have)) = got
  14521. return next
  14522. }
  14523. func XinflateSync(tls *libc.TLS, strm Tz_streamp) (r int32) {
  14524. bp := tls.Alloc(16)
  14525. defer tls.Free(16)
  14526. var flags int32
  14527. var in, out uint64
  14528. var len1, v1 uint32
  14529. var state uintptr
  14530. var _ /* buf at bp+0 */ [4]uint8
  14531. _, _, _, _, _, _ = flags, in, len1, out, state, v1
  14532. /* check parameters */
  14533. if _inflateStateCheck(tls, strm) != 0 {
  14534. return -int32(2)
  14535. }
  14536. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  14537. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in == uint32(0) && (*Tinflate_state)(unsafe.Pointer(state)).Fbits < uint32(8) {
  14538. return -int32(5)
  14539. }
  14540. /* if first time, start search in bit buffer */
  14541. if (*Tinflate_state)(unsafe.Pointer(state)).Fmode != int32(_SYNC) {
  14542. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_SYNC)
  14543. *(*uint64)(unsafe.Pointer(state + 80)) >>= uint64((*Tinflate_state)(unsafe.Pointer(state)).Fbits & uint32(7))
  14544. *(*uint32)(unsafe.Pointer(state + 88)) -= (*Tinflate_state)(unsafe.Pointer(state)).Fbits & uint32(7)
  14545. len1 = uint32(0)
  14546. for (*Tinflate_state)(unsafe.Pointer(state)).Fbits >= uint32(8) {
  14547. v1 = len1
  14548. len1++
  14549. (*(*[4]uint8)(unsafe.Pointer(bp)))[v1] = uint8((*Tinflate_state)(unsafe.Pointer(state)).Fhold)
  14550. *(*uint64)(unsafe.Pointer(state + 80)) >>= uint64(8)
  14551. *(*uint32)(unsafe.Pointer(state + 88)) -= uint32(8)
  14552. }
  14553. (*Tinflate_state)(unsafe.Pointer(state)).Fhave = uint32(0)
  14554. _syncsearch(tls, state+140, bp, len1)
  14555. }
  14556. /* search available input */
  14557. len1 = _syncsearch(tls, state+140, (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in, (*Tz_stream)(unsafe.Pointer(strm)).Favail_in)
  14558. *(*TuInt)(unsafe.Pointer(strm + 8)) -= len1
  14559. *(*uintptr)(unsafe.Pointer(strm)) += uintptr(len1)
  14560. *(*TuLong)(unsafe.Pointer(strm + 16)) += uint64(len1)
  14561. /* return no joy or set up to restart inflate() on a new block */
  14562. if (*Tinflate_state)(unsafe.Pointer(state)).Fhave != uint32(4) {
  14563. return -int32(3)
  14564. }
  14565. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags == -int32(1) {
  14566. (*Tinflate_state)(unsafe.Pointer(state)).Fwrap = 0
  14567. } else {
  14568. *(*int32)(unsafe.Pointer(state + 16)) &= ^libc.Int32FromInt32(4)
  14569. } /* no point in computing a check value now */
  14570. flags = (*Tinflate_state)(unsafe.Pointer(state)).Fflags
  14571. in = (*Tz_stream)(unsafe.Pointer(strm)).Ftotal_in
  14572. out = (*Tz_stream)(unsafe.Pointer(strm)).Ftotal_out
  14573. XinflateReset(tls, strm)
  14574. (*Tz_stream)(unsafe.Pointer(strm)).Ftotal_in = in
  14575. (*Tz_stream)(unsafe.Pointer(strm)).Ftotal_out = out
  14576. (*Tinflate_state)(unsafe.Pointer(state)).Fflags = flags
  14577. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TYPE)
  14578. return m_Z_OK
  14579. }
  14580. // C documentation
  14581. //
  14582. // /*
  14583. // Returns true if inflate is currently at the end of a block generated by
  14584. // Z_SYNC_FLUSH or Z_FULL_FLUSH. This function is used by one PPP
  14585. // implementation to provide an additional safety check. PPP uses
  14586. // Z_SYNC_FLUSH but removes the length bytes of the resulting empty stored
  14587. // block. When decompressing, PPP checks that at the end of input packet,
  14588. // inflate is waiting for these length bytes.
  14589. // */
  14590. func XinflateSyncPoint(tls *libc.TLS, strm Tz_streamp) (r int32) {
  14591. var state uintptr
  14592. _ = state
  14593. if _inflateStateCheck(tls, strm) != 0 {
  14594. return -int32(2)
  14595. }
  14596. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  14597. return libc.BoolInt32((*Tinflate_state)(unsafe.Pointer(state)).Fmode == int32(_STORED) && (*Tinflate_state)(unsafe.Pointer(state)).Fbits == uint32(0))
  14598. }
  14599. func XinflateCopy(tls *libc.TLS, dest Tz_streamp, source Tz_streamp) (r int32) {
  14600. var copy1, state, window uintptr
  14601. var wsize uint32
  14602. _, _, _, _ = copy1, state, window, wsize
  14603. /* check input */
  14604. if _inflateStateCheck(tls, source) != 0 || dest == uintptr(m_Z_NULL) {
  14605. return -int32(2)
  14606. }
  14607. state = (*Tz_stream)(unsafe.Pointer(source)).Fstate
  14608. /* allocate space */
  14609. copy1 = (*(*func(*libc.TLS, Tvoidpf, TuInt, TuInt) Tvoidpf)(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(source)).Fzalloc})))(tls, (*Tz_stream)(unsafe.Pointer(source)).Fopaque, libc.Uint32FromInt32(libc.Int32FromInt32(1)), uint32(libc.Uint64FromInt64(7160)))
  14610. if copy1 == uintptr(m_Z_NULL) {
  14611. return -int32(4)
  14612. }
  14613. window = uintptr(m_Z_NULL)
  14614. if (*Tinflate_state)(unsafe.Pointer(state)).Fwindow != uintptr(m_Z_NULL) {
  14615. window = (*(*func(*libc.TLS, Tvoidpf, TuInt, TuInt) Tvoidpf)(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(source)).Fzalloc})))(tls, (*Tz_stream)(unsafe.Pointer(source)).Fopaque, libc.Uint32FromUint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Fwbits, uint32(libc.Uint64FromInt64(1)))
  14616. if window == uintptr(m_Z_NULL) {
  14617. (*(*func(*libc.TLS, Tvoidpf, Tvoidpf))(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(source)).Fzfree})))(tls, (*Tz_stream)(unsafe.Pointer(source)).Fopaque, copy1)
  14618. return -int32(4)
  14619. }
  14620. }
  14621. /* copy state */
  14622. libc.Xmemcpy(tls, dest, source, uint64(112))
  14623. libc.Xmemcpy(tls, copy1, state, uint64(7160))
  14624. (*Tinflate_state)(unsafe.Pointer(copy1)).Fstrm = dest
  14625. if (*Tinflate_state)(unsafe.Pointer(state)).Flencode >= state+1368 && (*Tinflate_state)(unsafe.Pointer(state)).Flencode <= state+1368+uintptr(libc.Int32FromInt32(m_ENOUGH_LENS)+libc.Int32FromInt32(m_ENOUGH_DISTS))*4-uintptr(1)*4 {
  14626. (*Tinflate_state)(unsafe.Pointer(copy1)).Flencode = copy1 + 1368 + uintptr((int64((*Tinflate_state)(unsafe.Pointer(state)).Flencode)-t__predefined_ptrdiff_t(state+1368))/4)*4
  14627. (*Tinflate_state)(unsafe.Pointer(copy1)).Fdistcode = copy1 + 1368 + uintptr((int64((*Tinflate_state)(unsafe.Pointer(state)).Fdistcode)-t__predefined_ptrdiff_t(state+1368))/4)*4
  14628. }
  14629. (*Tinflate_state)(unsafe.Pointer(copy1)).Fnext = copy1 + 1368 + uintptr((int64((*Tinflate_state)(unsafe.Pointer(state)).Fnext)-t__predefined_ptrdiff_t(state+1368))/4)*4
  14630. if window != uintptr(m_Z_NULL) {
  14631. wsize = uint32(1) << (*Tinflate_state)(unsafe.Pointer(state)).Fwbits
  14632. libc.Xmemcpy(tls, window, (*Tinflate_state)(unsafe.Pointer(state)).Fwindow, uint64(wsize))
  14633. }
  14634. (*Tinflate_state)(unsafe.Pointer(copy1)).Fwindow = window
  14635. (*Tz_stream)(unsafe.Pointer(dest)).Fstate = copy1
  14636. return m_Z_OK
  14637. }
  14638. func XinflateUndermine(tls *libc.TLS, strm Tz_streamp, subvert int32) (r int32) {
  14639. var state uintptr
  14640. _ = state
  14641. if _inflateStateCheck(tls, strm) != 0 {
  14642. return -int32(2)
  14643. }
  14644. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  14645. _ = subvert
  14646. (*Tinflate_state)(unsafe.Pointer(state)).Fsane = int32(1)
  14647. return -int32(3)
  14648. }
  14649. func XinflateValidate(tls *libc.TLS, strm Tz_streamp, check int32) (r int32) {
  14650. var state uintptr
  14651. _ = state
  14652. if _inflateStateCheck(tls, strm) != 0 {
  14653. return -int32(2)
  14654. }
  14655. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  14656. if check != 0 && (*Tinflate_state)(unsafe.Pointer(state)).Fwrap != 0 {
  14657. *(*int32)(unsafe.Pointer(state + 16)) |= int32(4)
  14658. } else {
  14659. *(*int32)(unsafe.Pointer(state + 16)) &= ^libc.Int32FromInt32(4)
  14660. }
  14661. return m_Z_OK
  14662. }
  14663. func XinflateMark(tls *libc.TLS, strm Tz_streamp) (r int64) {
  14664. var state uintptr
  14665. var v1, v2 uint32
  14666. _, _, _ = state, v1, v2
  14667. if _inflateStateCheck(tls, strm) != 0 {
  14668. return -(libc.Int64FromInt64(1) << libc.Int32FromInt32(16))
  14669. }
  14670. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  14671. if (*Tinflate_state)(unsafe.Pointer(state)).Fmode == int32(_COPY) {
  14672. v1 = (*Tinflate_state)(unsafe.Pointer(state)).Flength
  14673. } else {
  14674. if (*Tinflate_state)(unsafe.Pointer(state)).Fmode == int32(_MATCH) {
  14675. v2 = (*Tinflate_state)(unsafe.Pointer(state)).Fwas - (*Tinflate_state)(unsafe.Pointer(state)).Flength
  14676. } else {
  14677. v2 = uint32(0)
  14678. }
  14679. v1 = v2
  14680. }
  14681. return libc.Int64FromUint64(libc.Uint64FromInt64(int64((*Tinflate_state)(unsafe.Pointer(state)).Fback))<<libc.Int32FromInt32(16)) + libc.Int64FromUint32(v1)
  14682. }
  14683. func XinflateCodesUsed(tls *libc.TLS, strm Tz_streamp) (r uint64) {
  14684. var state uintptr
  14685. _ = state
  14686. if _inflateStateCheck(tls, strm) != 0 {
  14687. return libc.Uint64FromInt32(-libc.Int32FromInt32(1))
  14688. }
  14689. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  14690. return libc.Uint64FromInt64((int64((*Tinflate_state)(unsafe.Pointer(state)).Fnext) - t__predefined_ptrdiff_t(state+1368)) / 4)
  14691. }
  14692. const m_MAXBITS = 15
  14693. /*
  14694. If you use the zlib library in a product, an acknowledgment is welcome
  14695. in the documentation of your product. If for some reason you cannot
  14696. include such an acknowledgment, I would appreciate that you keep this
  14697. copyright string in the executable of your product.
  14698. */
  14699. // C documentation
  14700. //
  14701. // /*
  14702. // Build a set of tables to decode the provided canonical Huffman code.
  14703. // The code lengths are lens[0..codes-1]. The result starts at *table,
  14704. // whose indices are 0..2^bits-1. work is a writable array of at least
  14705. // lens shorts, which is used as a work area. type is the type of code
  14706. // to be generated, CODES, LENS, or DISTS. On return, zero is success,
  14707. // -1 is an invalid code, and +1 means that ENOUGH isn't enough. table
  14708. // on return points to the next available entry's address. bits is the
  14709. // requested root table index bits, and on return it is the actual root
  14710. // table index bits. It will differ if the request is greater than the
  14711. // longest code or if it is less than the shortest code.
  14712. // */
  14713. func Xinflate_table(tls *libc.TLS, type1 Tcodetype, lens uintptr, codes uint32, table uintptr, bits uintptr, work uintptr) (r int32) {
  14714. bp := tls.Alloc(64)
  14715. defer tls.Free(64)
  14716. var base, extra, next, v13, v14, v17, v4, v5, v6, v7 uintptr
  14717. var curr, drop, fill, huff, incr, len1, low, mask, match, max, min, root, sym, used uint32
  14718. var here Tcode
  14719. var left int32
  14720. var v12, v16 uint16
  14721. var _ /* count at bp+0 */ [16]uint16
  14722. var _ /* offs at bp+32 */ [16]uint16
  14723. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = base, curr, drop, extra, fill, here, huff, incr, left, len1, low, mask, match, max, min, next, root, sym, used, v12, v13, v14, v16, v17, v4, v5, v6, v7 /* offsets in table for each length */
  14724. /*
  14725. Process a set of code lengths to create a canonical Huffman code. The
  14726. code lengths are lens[0..codes-1]. Each length corresponds to the
  14727. symbols 0..codes-1. The Huffman code is generated by first sorting the
  14728. symbols by length from short to long, and retaining the symbol order
  14729. for codes with equal lengths. Then the code starts with all zero bits
  14730. for the first code of the shortest length, and the codes are integer
  14731. increments for the same length, and zeros are appended as the length
  14732. increases. For the deflate format, these bits are stored backwards
  14733. from their more natural integer increment ordering, and so when the
  14734. decoding tables are built in the large loop below, the integer codes
  14735. are incremented backwards.
  14736. This routine assumes, but does not check, that all of the entries in
  14737. lens[] are in the range 0..MAXBITS. The caller must assure this.
  14738. 1..MAXBITS is interpreted as that code length. zero means that that
  14739. symbol does not occur in this code.
  14740. The codes are sorted by computing a count of codes for each length,
  14741. creating from that a table of starting indices for each length in the
  14742. sorted table, and then entering the symbols in order in the sorted
  14743. table. The sorted table is work[], with that space being provided by
  14744. the caller.
  14745. The length counts are used for other purposes as well, i.e. finding
  14746. the minimum and maximum length codes, determining if there are any
  14747. codes at all, checking for a valid set of lengths, and looking ahead
  14748. at length counts to determine sub-table sizes when building the
  14749. decoding tables.
  14750. */
  14751. /* accumulate lengths for codes (assumes lens[] all in 0..MAXBITS) */
  14752. len1 = uint32(0)
  14753. for {
  14754. if !(len1 <= uint32(m_MAXBITS)) {
  14755. break
  14756. }
  14757. (*(*[16]uint16)(unsafe.Pointer(bp)))[len1] = uint16(0)
  14758. goto _1
  14759. _1:
  14760. ;
  14761. len1++
  14762. }
  14763. sym = uint32(0)
  14764. for {
  14765. if !(sym < codes) {
  14766. break
  14767. }
  14768. (*(*[16]uint16)(unsafe.Pointer(bp)))[*(*uint16)(unsafe.Pointer(lens + uintptr(sym)*2))]++
  14769. goto _2
  14770. _2:
  14771. ;
  14772. sym++
  14773. }
  14774. /* bound code lengths, force root to be within code lengths */
  14775. root = *(*uint32)(unsafe.Pointer(bits))
  14776. max = uint32(m_MAXBITS)
  14777. for {
  14778. if !(max >= uint32(1)) {
  14779. break
  14780. }
  14781. if libc.Int32FromUint16((*(*[16]uint16)(unsafe.Pointer(bp)))[max]) != 0 {
  14782. break
  14783. }
  14784. goto _3
  14785. _3:
  14786. ;
  14787. max--
  14788. }
  14789. if root > max {
  14790. root = max
  14791. }
  14792. if max == uint32(0) { /* no symbols to code at all */
  14793. here.Fop = libc.Uint8FromInt32(64) /* invalid code marker */
  14794. here.Fbits = libc.Uint8FromInt32(1)
  14795. here.Fval = libc.Uint16FromInt32(0)
  14796. v5 = table
  14797. v4 = *(*uintptr)(unsafe.Pointer(v5))
  14798. *(*uintptr)(unsafe.Pointer(v5)) += 4
  14799. *(*Tcode)(unsafe.Pointer(v4)) = here /* make a table to force an error */
  14800. v7 = table
  14801. v6 = *(*uintptr)(unsafe.Pointer(v7))
  14802. *(*uintptr)(unsafe.Pointer(v7)) += 4
  14803. *(*Tcode)(unsafe.Pointer(v6)) = here
  14804. *(*uint32)(unsafe.Pointer(bits)) = uint32(1)
  14805. return 0 /* no symbols, but wait for decoding to report error */
  14806. }
  14807. min = uint32(1)
  14808. for {
  14809. if !(min < max) {
  14810. break
  14811. }
  14812. if libc.Int32FromUint16((*(*[16]uint16)(unsafe.Pointer(bp)))[min]) != 0 {
  14813. break
  14814. }
  14815. goto _8
  14816. _8:
  14817. ;
  14818. min++
  14819. }
  14820. if root < min {
  14821. root = min
  14822. }
  14823. /* check for an over-subscribed or incomplete set of lengths */
  14824. left = int32(1)
  14825. len1 = uint32(1)
  14826. for {
  14827. if !(len1 <= uint32(m_MAXBITS)) {
  14828. break
  14829. }
  14830. left <<= int32(1)
  14831. left -= libc.Int32FromUint16((*(*[16]uint16)(unsafe.Pointer(bp)))[len1])
  14832. if left < 0 {
  14833. return -int32(1)
  14834. } /* over-subscribed */
  14835. goto _9
  14836. _9:
  14837. ;
  14838. len1++
  14839. }
  14840. if left > 0 && (type1 == int32(_CODES) || max != uint32(1)) {
  14841. return -int32(1)
  14842. } /* incomplete set */
  14843. /* generate offsets into symbol table for each length for sorting */
  14844. (*(*[16]uint16)(unsafe.Pointer(bp + 32)))[int32(1)] = uint16(0)
  14845. len1 = uint32(1)
  14846. for {
  14847. if !(len1 < uint32(m_MAXBITS)) {
  14848. break
  14849. }
  14850. (*(*[16]uint16)(unsafe.Pointer(bp + 32)))[len1+uint32(1)] = libc.Uint16FromInt32(libc.Int32FromUint16((*(*[16]uint16)(unsafe.Pointer(bp + 32)))[len1]) + libc.Int32FromUint16((*(*[16]uint16)(unsafe.Pointer(bp)))[len1]))
  14851. goto _10
  14852. _10:
  14853. ;
  14854. len1++
  14855. }
  14856. /* sort symbols by length, by symbol order within each length */
  14857. sym = uint32(0)
  14858. for {
  14859. if !(sym < codes) {
  14860. break
  14861. }
  14862. if libc.Int32FromUint16(*(*uint16)(unsafe.Pointer(lens + uintptr(sym)*2))) != 0 {
  14863. v13 = bp + 32 + uintptr(*(*uint16)(unsafe.Pointer(lens + uintptr(sym)*2)))*2
  14864. v12 = *(*uint16)(unsafe.Pointer(v13))
  14865. *(*uint16)(unsafe.Pointer(v13))++
  14866. *(*uint16)(unsafe.Pointer(work + uintptr(v12)*2)) = uint16(sym)
  14867. }
  14868. goto _11
  14869. _11:
  14870. ;
  14871. sym++
  14872. }
  14873. /*
  14874. Create and fill in decoding tables. In this loop, the table being
  14875. filled is at next and has curr index bits. The code being used is huff
  14876. with length len. That code is converted to an index by dropping drop
  14877. bits off of the bottom. For codes where len is less than drop + curr,
  14878. those top drop + curr - len bits are incremented through all values to
  14879. fill the table with replicated entries.
  14880. root is the number of index bits for the root table. When len exceeds
  14881. root, sub-tables are created pointed to by the root entry with an index
  14882. of the low root bits of huff. This is saved in low to check for when a
  14883. new sub-table should be started. drop is zero when the root table is
  14884. being filled, and drop is root when sub-tables are being filled.
  14885. When a new sub-table is needed, it is necessary to look ahead in the
  14886. code lengths to determine what size sub-table is needed. The length
  14887. counts are used for this, and so count[] is decremented as codes are
  14888. entered in the tables.
  14889. used keeps track of how many table entries have been allocated from the
  14890. provided *table space. It is checked for LENS and DIST tables against
  14891. the constants ENOUGH_LENS and ENOUGH_DISTS to guard against changes in
  14892. the initial root table size constants. See the comments in inftrees.h
  14893. for more information.
  14894. sym increments through all symbols, and the loop terminates when
  14895. all codes of length max, i.e. all codes, have been processed. This
  14896. routine permits incomplete codes, so another loop after this one fills
  14897. in the rest of the decoding tables with invalid code markers.
  14898. */
  14899. /* set up for code type */
  14900. switch type1 {
  14901. case int32(_CODES):
  14902. v14 = work
  14903. extra = v14
  14904. base = v14 /* dummy value--not used */
  14905. match = uint32(20)
  14906. case int32(_LENS):
  14907. base = uintptr(unsafe.Pointer(&_lbase))
  14908. extra = uintptr(unsafe.Pointer(&_lext))
  14909. match = uint32(257)
  14910. default: /* DISTS */
  14911. base = uintptr(unsafe.Pointer(&_dbase))
  14912. extra = uintptr(unsafe.Pointer(&_dext))
  14913. match = uint32(0)
  14914. }
  14915. /* initialize state for loop */
  14916. huff = uint32(0) /* starting code */
  14917. sym = uint32(0) /* starting code symbol */
  14918. len1 = min /* starting code length */
  14919. next = *(*uintptr)(unsafe.Pointer(table)) /* current table to fill in */
  14920. curr = root /* current table index bits */
  14921. drop = uint32(0) /* current bits to drop from code for index */
  14922. low = libc.Uint32FromInt32(-libc.Int32FromInt32(1)) /* trigger new sub-table when len > root */
  14923. used = uint32(1) << root /* use root table entries */
  14924. mask = used - uint32(1) /* mask for comparing low */
  14925. /* check available table space */
  14926. if type1 == int32(_LENS) && used > uint32(m_ENOUGH_LENS) || type1 == int32(_DISTS) && used > uint32(m_ENOUGH_DISTS) {
  14927. return int32(1)
  14928. }
  14929. /* process all codes and make table entries */
  14930. for {
  14931. /* create table entry */
  14932. here.Fbits = uint8(len1 - drop)
  14933. if uint32(*(*uint16)(unsafe.Pointer(work + uintptr(sym)*2)))+uint32(1) < match {
  14934. here.Fop = libc.Uint8FromInt32(0)
  14935. here.Fval = *(*uint16)(unsafe.Pointer(work + uintptr(sym)*2))
  14936. } else {
  14937. if uint32(*(*uint16)(unsafe.Pointer(work + uintptr(sym)*2))) >= match {
  14938. here.Fop = uint8(*(*uint16)(unsafe.Pointer(extra + uintptr(uint32(*(*uint16)(unsafe.Pointer(work + uintptr(sym)*2)))-match)*2)))
  14939. here.Fval = *(*uint16)(unsafe.Pointer(base + uintptr(uint32(*(*uint16)(unsafe.Pointer(work + uintptr(sym)*2)))-match)*2))
  14940. } else {
  14941. here.Fop = libc.Uint8FromInt32(libc.Int32FromInt32(32) + libc.Int32FromInt32(64)) /* end of block */
  14942. here.Fval = uint16(0)
  14943. }
  14944. }
  14945. /* replicate for those indices with low len bits equal to huff */
  14946. incr = uint32(1) << (len1 - drop)
  14947. fill = uint32(1) << curr
  14948. min = fill /* save offset to next table */
  14949. for cond := true; cond; cond = fill != uint32(0) {
  14950. fill -= incr
  14951. *(*Tcode)(unsafe.Pointer(next + uintptr(huff>>drop+fill)*4)) = here
  14952. }
  14953. /* backwards increment the len-bit code huff */
  14954. incr = uint32(1) << (len1 - uint32(1))
  14955. for huff&incr != 0 {
  14956. incr >>= uint32(1)
  14957. }
  14958. if incr != uint32(0) {
  14959. huff &= incr - uint32(1)
  14960. huff += incr
  14961. } else {
  14962. huff = uint32(0)
  14963. }
  14964. /* go to next symbol, update count, len */
  14965. sym++
  14966. v17 = bp + uintptr(len1)*2
  14967. *(*uint16)(unsafe.Pointer(v17))--
  14968. v16 = *(*uint16)(unsafe.Pointer(v17))
  14969. if libc.Int32FromUint16(v16) == 0 {
  14970. if len1 == max {
  14971. break
  14972. }
  14973. len1 = uint32(*(*uint16)(unsafe.Pointer(lens + uintptr(*(*uint16)(unsafe.Pointer(work + uintptr(sym)*2)))*2)))
  14974. }
  14975. /* create new sub-table if needed */
  14976. if len1 > root && huff&mask != low {
  14977. /* if first time, transition to sub-tables */
  14978. if drop == uint32(0) {
  14979. drop = root
  14980. }
  14981. /* increment past last table */
  14982. next += uintptr(min) * 4 /* here min is 1 << curr */
  14983. /* determine length of next table */
  14984. curr = len1 - drop
  14985. left = libc.Int32FromInt32(1) << curr
  14986. for curr+drop < max {
  14987. left -= libc.Int32FromUint16((*(*[16]uint16)(unsafe.Pointer(bp)))[curr+drop])
  14988. if left <= 0 {
  14989. break
  14990. }
  14991. curr++
  14992. left <<= int32(1)
  14993. }
  14994. /* check for enough space */
  14995. used += uint32(1) << curr
  14996. if type1 == int32(_LENS) && used > uint32(m_ENOUGH_LENS) || type1 == int32(_DISTS) && used > uint32(m_ENOUGH_DISTS) {
  14997. return int32(1)
  14998. }
  14999. /* point entry in root table to sub-table */
  15000. low = huff & mask
  15001. (*(*Tcode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(table)) + uintptr(low)*4))).Fop = uint8(curr)
  15002. (*(*Tcode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(table)) + uintptr(low)*4))).Fbits = uint8(root)
  15003. (*(*Tcode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(table)) + uintptr(low)*4))).Fval = libc.Uint16FromInt64((int64(next) - int64(*(*uintptr)(unsafe.Pointer(table)))) / 4)
  15004. }
  15005. goto _15
  15006. _15:
  15007. }
  15008. /* fill in remaining table entry if code is incomplete (guaranteed to have
  15009. at most one remaining entry, since if the code is incomplete, the
  15010. maximum code length that was allowed to get this far is one bit) */
  15011. if huff != uint32(0) {
  15012. here.Fop = libc.Uint8FromInt32(64) /* invalid code marker */
  15013. here.Fbits = uint8(len1 - drop)
  15014. here.Fval = libc.Uint16FromInt32(0)
  15015. *(*Tcode)(unsafe.Pointer(next + uintptr(huff)*4)) = here
  15016. }
  15017. /* set return parameters */
  15018. *(*uintptr)(unsafe.Pointer(table)) += uintptr(used) * 4
  15019. *(*uint32)(unsafe.Pointer(bits)) = root
  15020. return 0
  15021. }
  15022. var _lbase = [31]uint16{
  15023. 0: uint16(3),
  15024. 1: uint16(4),
  15025. 2: uint16(5),
  15026. 3: uint16(6),
  15027. 4: uint16(7),
  15028. 5: uint16(8),
  15029. 6: uint16(9),
  15030. 7: uint16(10),
  15031. 8: uint16(11),
  15032. 9: uint16(13),
  15033. 10: uint16(15),
  15034. 11: uint16(17),
  15035. 12: uint16(19),
  15036. 13: uint16(23),
  15037. 14: uint16(27),
  15038. 15: uint16(31),
  15039. 16: uint16(35),
  15040. 17: uint16(43),
  15041. 18: uint16(51),
  15042. 19: uint16(59),
  15043. 20: uint16(67),
  15044. 21: uint16(83),
  15045. 22: uint16(99),
  15046. 23: uint16(115),
  15047. 24: uint16(131),
  15048. 25: uint16(163),
  15049. 26: uint16(195),
  15050. 27: uint16(227),
  15051. 28: uint16(258),
  15052. }
  15053. var _lext = [31]uint16{
  15054. 0: uint16(16),
  15055. 1: uint16(16),
  15056. 2: uint16(16),
  15057. 3: uint16(16),
  15058. 4: uint16(16),
  15059. 5: uint16(16),
  15060. 6: uint16(16),
  15061. 7: uint16(16),
  15062. 8: uint16(17),
  15063. 9: uint16(17),
  15064. 10: uint16(17),
  15065. 11: uint16(17),
  15066. 12: uint16(18),
  15067. 13: uint16(18),
  15068. 14: uint16(18),
  15069. 15: uint16(18),
  15070. 16: uint16(19),
  15071. 17: uint16(19),
  15072. 18: uint16(19),
  15073. 19: uint16(19),
  15074. 20: uint16(20),
  15075. 21: uint16(20),
  15076. 22: uint16(20),
  15077. 23: uint16(20),
  15078. 24: uint16(21),
  15079. 25: uint16(21),
  15080. 26: uint16(21),
  15081. 27: uint16(21),
  15082. 28: uint16(16),
  15083. 29: uint16(203),
  15084. 30: uint16(77),
  15085. }
  15086. var _dbase = [32]uint16{
  15087. 0: uint16(1),
  15088. 1: uint16(2),
  15089. 2: uint16(3),
  15090. 3: uint16(4),
  15091. 4: uint16(5),
  15092. 5: uint16(7),
  15093. 6: uint16(9),
  15094. 7: uint16(13),
  15095. 8: uint16(17),
  15096. 9: uint16(25),
  15097. 10: uint16(33),
  15098. 11: uint16(49),
  15099. 12: uint16(65),
  15100. 13: uint16(97),
  15101. 14: uint16(129),
  15102. 15: uint16(193),
  15103. 16: uint16(257),
  15104. 17: uint16(385),
  15105. 18: uint16(513),
  15106. 19: uint16(769),
  15107. 20: uint16(1025),
  15108. 21: uint16(1537),
  15109. 22: uint16(2049),
  15110. 23: uint16(3073),
  15111. 24: uint16(4097),
  15112. 25: uint16(6145),
  15113. 26: uint16(8193),
  15114. 27: uint16(12289),
  15115. 28: uint16(16385),
  15116. 29: uint16(24577),
  15117. }
  15118. var _dext = [32]uint16{
  15119. 0: uint16(16),
  15120. 1: uint16(16),
  15121. 2: uint16(16),
  15122. 3: uint16(16),
  15123. 4: uint16(17),
  15124. 5: uint16(17),
  15125. 6: uint16(18),
  15126. 7: uint16(18),
  15127. 8: uint16(19),
  15128. 9: uint16(19),
  15129. 10: uint16(20),
  15130. 11: uint16(20),
  15131. 12: uint16(21),
  15132. 13: uint16(21),
  15133. 14: uint16(22),
  15134. 15: uint16(22),
  15135. 16: uint16(23),
  15136. 17: uint16(23),
  15137. 18: uint16(24),
  15138. 19: uint16(24),
  15139. 20: uint16(25),
  15140. 21: uint16(25),
  15141. 22: uint16(26),
  15142. 23: uint16(26),
  15143. 24: uint16(27),
  15144. 25: uint16(27),
  15145. 26: uint16(28),
  15146. 27: uint16(28),
  15147. 28: uint16(29),
  15148. 29: uint16(29),
  15149. 30: uint16(64),
  15150. 31: uint16(64),
  15151. }
  15152. const m_DIST_CODE_LEN = 512
  15153. const m_END_BLOCK = 256
  15154. const m_MAX_BL_BITS = 7
  15155. const m_REPZ_11_138 = 18
  15156. const m_REPZ_3_10 = 17
  15157. const m_REP_3_6 = 16
  15158. const m_SMALLEST = 1
  15159. const m_TCONST = "const"
  15160. type Tstatic_tree_desc = struct {
  15161. Fstatic_tree uintptr
  15162. Fextra_bits uintptr
  15163. Fextra_base int32
  15164. Felems int32
  15165. Fmax_length int32
  15166. }
  15167. type Tstatic_tree_desc_s = Tstatic_tree_desc
  15168. /* ===========================================================================
  15169. * Constants
  15170. */
  15171. /* Bit length codes must not exceed MAX_BL_BITS bits */
  15172. /* end of block literal code */
  15173. /* repeat previous bit length 3-6 times (2 bits of repeat count) */
  15174. /* repeat a zero length 3-10 times (3 bits of repeat count) */
  15175. /* repeat a zero length 11-138 times (7 bits of repeat count) */
  15176. var _extra_lbits = [29]int32{
  15177. 8: int32(1),
  15178. 9: int32(1),
  15179. 10: int32(1),
  15180. 11: int32(1),
  15181. 12: int32(2),
  15182. 13: int32(2),
  15183. 14: int32(2),
  15184. 15: int32(2),
  15185. 16: int32(3),
  15186. 17: int32(3),
  15187. 18: int32(3),
  15188. 19: int32(3),
  15189. 20: int32(4),
  15190. 21: int32(4),
  15191. 22: int32(4),
  15192. 23: int32(4),
  15193. 24: int32(5),
  15194. 25: int32(5),
  15195. 26: int32(5),
  15196. 27: int32(5),
  15197. }
  15198. var _extra_dbits = [30]int32{
  15199. 4: int32(1),
  15200. 5: int32(1),
  15201. 6: int32(2),
  15202. 7: int32(2),
  15203. 8: int32(3),
  15204. 9: int32(3),
  15205. 10: int32(4),
  15206. 11: int32(4),
  15207. 12: int32(5),
  15208. 13: int32(5),
  15209. 14: int32(6),
  15210. 15: int32(6),
  15211. 16: int32(7),
  15212. 17: int32(7),
  15213. 18: int32(8),
  15214. 19: int32(8),
  15215. 20: int32(9),
  15216. 21: int32(9),
  15217. 22: int32(10),
  15218. 23: int32(10),
  15219. 24: int32(11),
  15220. 25: int32(11),
  15221. 26: int32(12),
  15222. 27: int32(12),
  15223. 28: int32(13),
  15224. 29: int32(13),
  15225. }
  15226. var _extra_blbits = [19]int32{
  15227. 16: int32(2),
  15228. 17: int32(3),
  15229. 18: int32(7),
  15230. }
  15231. var _bl_order = [19]Tuch{
  15232. 0: uint8(16),
  15233. 1: uint8(17),
  15234. 2: uint8(18),
  15235. 4: uint8(8),
  15236. 5: uint8(7),
  15237. 6: uint8(9),
  15238. 7: uint8(6),
  15239. 8: uint8(10),
  15240. 9: uint8(5),
  15241. 10: uint8(11),
  15242. 11: uint8(4),
  15243. 12: uint8(12),
  15244. 13: uint8(3),
  15245. 14: uint8(13),
  15246. 15: uint8(2),
  15247. 16: uint8(14),
  15248. 17: uint8(1),
  15249. 18: uint8(15),
  15250. }
  15251. var _static_ltree = [288]Tct_data{
  15252. 0: {
  15253. Ffc: *(*struct {
  15254. Fcode [0]Tush
  15255. Ffreq Tush
  15256. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(12)})),
  15257. Fdl: *(*struct {
  15258. Flen1 [0]Tush
  15259. Fdad Tush
  15260. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15261. },
  15262. 1: {
  15263. Ffc: *(*struct {
  15264. Fcode [0]Tush
  15265. Ffreq Tush
  15266. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(140)})),
  15267. Fdl: *(*struct {
  15268. Flen1 [0]Tush
  15269. Fdad Tush
  15270. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15271. },
  15272. 2: {
  15273. Ffc: *(*struct {
  15274. Fcode [0]Tush
  15275. Ffreq Tush
  15276. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(76)})),
  15277. Fdl: *(*struct {
  15278. Flen1 [0]Tush
  15279. Fdad Tush
  15280. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15281. },
  15282. 3: {
  15283. Ffc: *(*struct {
  15284. Fcode [0]Tush
  15285. Ffreq Tush
  15286. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(204)})),
  15287. Fdl: *(*struct {
  15288. Flen1 [0]Tush
  15289. Fdad Tush
  15290. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15291. },
  15292. 4: {
  15293. Ffc: *(*struct {
  15294. Fcode [0]Tush
  15295. Ffreq Tush
  15296. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(44)})),
  15297. Fdl: *(*struct {
  15298. Flen1 [0]Tush
  15299. Fdad Tush
  15300. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15301. },
  15302. 5: {
  15303. Ffc: *(*struct {
  15304. Fcode [0]Tush
  15305. Ffreq Tush
  15306. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(172)})),
  15307. Fdl: *(*struct {
  15308. Flen1 [0]Tush
  15309. Fdad Tush
  15310. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15311. },
  15312. 6: {
  15313. Ffc: *(*struct {
  15314. Fcode [0]Tush
  15315. Ffreq Tush
  15316. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(108)})),
  15317. Fdl: *(*struct {
  15318. Flen1 [0]Tush
  15319. Fdad Tush
  15320. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15321. },
  15322. 7: {
  15323. Ffc: *(*struct {
  15324. Fcode [0]Tush
  15325. Ffreq Tush
  15326. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(236)})),
  15327. Fdl: *(*struct {
  15328. Flen1 [0]Tush
  15329. Fdad Tush
  15330. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15331. },
  15332. 8: {
  15333. Ffc: *(*struct {
  15334. Fcode [0]Tush
  15335. Ffreq Tush
  15336. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(28)})),
  15337. Fdl: *(*struct {
  15338. Flen1 [0]Tush
  15339. Fdad Tush
  15340. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15341. },
  15342. 9: {
  15343. Ffc: *(*struct {
  15344. Fcode [0]Tush
  15345. Ffreq Tush
  15346. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(156)})),
  15347. Fdl: *(*struct {
  15348. Flen1 [0]Tush
  15349. Fdad Tush
  15350. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15351. },
  15352. 10: {
  15353. Ffc: *(*struct {
  15354. Fcode [0]Tush
  15355. Ffreq Tush
  15356. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(92)})),
  15357. Fdl: *(*struct {
  15358. Flen1 [0]Tush
  15359. Fdad Tush
  15360. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15361. },
  15362. 11: {
  15363. Ffc: *(*struct {
  15364. Fcode [0]Tush
  15365. Ffreq Tush
  15366. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(220)})),
  15367. Fdl: *(*struct {
  15368. Flen1 [0]Tush
  15369. Fdad Tush
  15370. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15371. },
  15372. 12: {
  15373. Ffc: *(*struct {
  15374. Fcode [0]Tush
  15375. Ffreq Tush
  15376. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(60)})),
  15377. Fdl: *(*struct {
  15378. Flen1 [0]Tush
  15379. Fdad Tush
  15380. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15381. },
  15382. 13: {
  15383. Ffc: *(*struct {
  15384. Fcode [0]Tush
  15385. Ffreq Tush
  15386. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(188)})),
  15387. Fdl: *(*struct {
  15388. Flen1 [0]Tush
  15389. Fdad Tush
  15390. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15391. },
  15392. 14: {
  15393. Ffc: *(*struct {
  15394. Fcode [0]Tush
  15395. Ffreq Tush
  15396. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(124)})),
  15397. Fdl: *(*struct {
  15398. Flen1 [0]Tush
  15399. Fdad Tush
  15400. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15401. },
  15402. 15: {
  15403. Ffc: *(*struct {
  15404. Fcode [0]Tush
  15405. Ffreq Tush
  15406. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(252)})),
  15407. Fdl: *(*struct {
  15408. Flen1 [0]Tush
  15409. Fdad Tush
  15410. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15411. },
  15412. 16: {
  15413. Ffc: *(*struct {
  15414. Fcode [0]Tush
  15415. Ffreq Tush
  15416. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(2)})),
  15417. Fdl: *(*struct {
  15418. Flen1 [0]Tush
  15419. Fdad Tush
  15420. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15421. },
  15422. 17: {
  15423. Ffc: *(*struct {
  15424. Fcode [0]Tush
  15425. Ffreq Tush
  15426. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(130)})),
  15427. Fdl: *(*struct {
  15428. Flen1 [0]Tush
  15429. Fdad Tush
  15430. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15431. },
  15432. 18: {
  15433. Ffc: *(*struct {
  15434. Fcode [0]Tush
  15435. Ffreq Tush
  15436. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(66)})),
  15437. Fdl: *(*struct {
  15438. Flen1 [0]Tush
  15439. Fdad Tush
  15440. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15441. },
  15442. 19: {
  15443. Ffc: *(*struct {
  15444. Fcode [0]Tush
  15445. Ffreq Tush
  15446. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(194)})),
  15447. Fdl: *(*struct {
  15448. Flen1 [0]Tush
  15449. Fdad Tush
  15450. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15451. },
  15452. 20: {
  15453. Ffc: *(*struct {
  15454. Fcode [0]Tush
  15455. Ffreq Tush
  15456. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(34)})),
  15457. Fdl: *(*struct {
  15458. Flen1 [0]Tush
  15459. Fdad Tush
  15460. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15461. },
  15462. 21: {
  15463. Ffc: *(*struct {
  15464. Fcode [0]Tush
  15465. Ffreq Tush
  15466. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(162)})),
  15467. Fdl: *(*struct {
  15468. Flen1 [0]Tush
  15469. Fdad Tush
  15470. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15471. },
  15472. 22: {
  15473. Ffc: *(*struct {
  15474. Fcode [0]Tush
  15475. Ffreq Tush
  15476. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(98)})),
  15477. Fdl: *(*struct {
  15478. Flen1 [0]Tush
  15479. Fdad Tush
  15480. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15481. },
  15482. 23: {
  15483. Ffc: *(*struct {
  15484. Fcode [0]Tush
  15485. Ffreq Tush
  15486. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(226)})),
  15487. Fdl: *(*struct {
  15488. Flen1 [0]Tush
  15489. Fdad Tush
  15490. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15491. },
  15492. 24: {
  15493. Ffc: *(*struct {
  15494. Fcode [0]Tush
  15495. Ffreq Tush
  15496. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(18)})),
  15497. Fdl: *(*struct {
  15498. Flen1 [0]Tush
  15499. Fdad Tush
  15500. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15501. },
  15502. 25: {
  15503. Ffc: *(*struct {
  15504. Fcode [0]Tush
  15505. Ffreq Tush
  15506. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(146)})),
  15507. Fdl: *(*struct {
  15508. Flen1 [0]Tush
  15509. Fdad Tush
  15510. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15511. },
  15512. 26: {
  15513. Ffc: *(*struct {
  15514. Fcode [0]Tush
  15515. Ffreq Tush
  15516. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(82)})),
  15517. Fdl: *(*struct {
  15518. Flen1 [0]Tush
  15519. Fdad Tush
  15520. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15521. },
  15522. 27: {
  15523. Ffc: *(*struct {
  15524. Fcode [0]Tush
  15525. Ffreq Tush
  15526. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(210)})),
  15527. Fdl: *(*struct {
  15528. Flen1 [0]Tush
  15529. Fdad Tush
  15530. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15531. },
  15532. 28: {
  15533. Ffc: *(*struct {
  15534. Fcode [0]Tush
  15535. Ffreq Tush
  15536. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(50)})),
  15537. Fdl: *(*struct {
  15538. Flen1 [0]Tush
  15539. Fdad Tush
  15540. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15541. },
  15542. 29: {
  15543. Ffc: *(*struct {
  15544. Fcode [0]Tush
  15545. Ffreq Tush
  15546. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(178)})),
  15547. Fdl: *(*struct {
  15548. Flen1 [0]Tush
  15549. Fdad Tush
  15550. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15551. },
  15552. 30: {
  15553. Ffc: *(*struct {
  15554. Fcode [0]Tush
  15555. Ffreq Tush
  15556. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(114)})),
  15557. Fdl: *(*struct {
  15558. Flen1 [0]Tush
  15559. Fdad Tush
  15560. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15561. },
  15562. 31: {
  15563. Ffc: *(*struct {
  15564. Fcode [0]Tush
  15565. Ffreq Tush
  15566. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(242)})),
  15567. Fdl: *(*struct {
  15568. Flen1 [0]Tush
  15569. Fdad Tush
  15570. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15571. },
  15572. 32: {
  15573. Ffc: *(*struct {
  15574. Fcode [0]Tush
  15575. Ffreq Tush
  15576. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(10)})),
  15577. Fdl: *(*struct {
  15578. Flen1 [0]Tush
  15579. Fdad Tush
  15580. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15581. },
  15582. 33: {
  15583. Ffc: *(*struct {
  15584. Fcode [0]Tush
  15585. Ffreq Tush
  15586. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(138)})),
  15587. Fdl: *(*struct {
  15588. Flen1 [0]Tush
  15589. Fdad Tush
  15590. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15591. },
  15592. 34: {
  15593. Ffc: *(*struct {
  15594. Fcode [0]Tush
  15595. Ffreq Tush
  15596. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(74)})),
  15597. Fdl: *(*struct {
  15598. Flen1 [0]Tush
  15599. Fdad Tush
  15600. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15601. },
  15602. 35: {
  15603. Ffc: *(*struct {
  15604. Fcode [0]Tush
  15605. Ffreq Tush
  15606. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(202)})),
  15607. Fdl: *(*struct {
  15608. Flen1 [0]Tush
  15609. Fdad Tush
  15610. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15611. },
  15612. 36: {
  15613. Ffc: *(*struct {
  15614. Fcode [0]Tush
  15615. Ffreq Tush
  15616. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(42)})),
  15617. Fdl: *(*struct {
  15618. Flen1 [0]Tush
  15619. Fdad Tush
  15620. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15621. },
  15622. 37: {
  15623. Ffc: *(*struct {
  15624. Fcode [0]Tush
  15625. Ffreq Tush
  15626. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(170)})),
  15627. Fdl: *(*struct {
  15628. Flen1 [0]Tush
  15629. Fdad Tush
  15630. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15631. },
  15632. 38: {
  15633. Ffc: *(*struct {
  15634. Fcode [0]Tush
  15635. Ffreq Tush
  15636. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(106)})),
  15637. Fdl: *(*struct {
  15638. Flen1 [0]Tush
  15639. Fdad Tush
  15640. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15641. },
  15642. 39: {
  15643. Ffc: *(*struct {
  15644. Fcode [0]Tush
  15645. Ffreq Tush
  15646. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(234)})),
  15647. Fdl: *(*struct {
  15648. Flen1 [0]Tush
  15649. Fdad Tush
  15650. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15651. },
  15652. 40: {
  15653. Ffc: *(*struct {
  15654. Fcode [0]Tush
  15655. Ffreq Tush
  15656. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(26)})),
  15657. Fdl: *(*struct {
  15658. Flen1 [0]Tush
  15659. Fdad Tush
  15660. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15661. },
  15662. 41: {
  15663. Ffc: *(*struct {
  15664. Fcode [0]Tush
  15665. Ffreq Tush
  15666. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(154)})),
  15667. Fdl: *(*struct {
  15668. Flen1 [0]Tush
  15669. Fdad Tush
  15670. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15671. },
  15672. 42: {
  15673. Ffc: *(*struct {
  15674. Fcode [0]Tush
  15675. Ffreq Tush
  15676. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(90)})),
  15677. Fdl: *(*struct {
  15678. Flen1 [0]Tush
  15679. Fdad Tush
  15680. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15681. },
  15682. 43: {
  15683. Ffc: *(*struct {
  15684. Fcode [0]Tush
  15685. Ffreq Tush
  15686. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(218)})),
  15687. Fdl: *(*struct {
  15688. Flen1 [0]Tush
  15689. Fdad Tush
  15690. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15691. },
  15692. 44: {
  15693. Ffc: *(*struct {
  15694. Fcode [0]Tush
  15695. Ffreq Tush
  15696. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(58)})),
  15697. Fdl: *(*struct {
  15698. Flen1 [0]Tush
  15699. Fdad Tush
  15700. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15701. },
  15702. 45: {
  15703. Ffc: *(*struct {
  15704. Fcode [0]Tush
  15705. Ffreq Tush
  15706. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(186)})),
  15707. Fdl: *(*struct {
  15708. Flen1 [0]Tush
  15709. Fdad Tush
  15710. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15711. },
  15712. 46: {
  15713. Ffc: *(*struct {
  15714. Fcode [0]Tush
  15715. Ffreq Tush
  15716. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(122)})),
  15717. Fdl: *(*struct {
  15718. Flen1 [0]Tush
  15719. Fdad Tush
  15720. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15721. },
  15722. 47: {
  15723. Ffc: *(*struct {
  15724. Fcode [0]Tush
  15725. Ffreq Tush
  15726. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(250)})),
  15727. Fdl: *(*struct {
  15728. Flen1 [0]Tush
  15729. Fdad Tush
  15730. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15731. },
  15732. 48: {
  15733. Ffc: *(*struct {
  15734. Fcode [0]Tush
  15735. Ffreq Tush
  15736. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(6)})),
  15737. Fdl: *(*struct {
  15738. Flen1 [0]Tush
  15739. Fdad Tush
  15740. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15741. },
  15742. 49: {
  15743. Ffc: *(*struct {
  15744. Fcode [0]Tush
  15745. Ffreq Tush
  15746. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(134)})),
  15747. Fdl: *(*struct {
  15748. Flen1 [0]Tush
  15749. Fdad Tush
  15750. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15751. },
  15752. 50: {
  15753. Ffc: *(*struct {
  15754. Fcode [0]Tush
  15755. Ffreq Tush
  15756. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(70)})),
  15757. Fdl: *(*struct {
  15758. Flen1 [0]Tush
  15759. Fdad Tush
  15760. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15761. },
  15762. 51: {
  15763. Ffc: *(*struct {
  15764. Fcode [0]Tush
  15765. Ffreq Tush
  15766. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(198)})),
  15767. Fdl: *(*struct {
  15768. Flen1 [0]Tush
  15769. Fdad Tush
  15770. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15771. },
  15772. 52: {
  15773. Ffc: *(*struct {
  15774. Fcode [0]Tush
  15775. Ffreq Tush
  15776. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(38)})),
  15777. Fdl: *(*struct {
  15778. Flen1 [0]Tush
  15779. Fdad Tush
  15780. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15781. },
  15782. 53: {
  15783. Ffc: *(*struct {
  15784. Fcode [0]Tush
  15785. Ffreq Tush
  15786. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(166)})),
  15787. Fdl: *(*struct {
  15788. Flen1 [0]Tush
  15789. Fdad Tush
  15790. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15791. },
  15792. 54: {
  15793. Ffc: *(*struct {
  15794. Fcode [0]Tush
  15795. Ffreq Tush
  15796. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(102)})),
  15797. Fdl: *(*struct {
  15798. Flen1 [0]Tush
  15799. Fdad Tush
  15800. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15801. },
  15802. 55: {
  15803. Ffc: *(*struct {
  15804. Fcode [0]Tush
  15805. Ffreq Tush
  15806. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(230)})),
  15807. Fdl: *(*struct {
  15808. Flen1 [0]Tush
  15809. Fdad Tush
  15810. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15811. },
  15812. 56: {
  15813. Ffc: *(*struct {
  15814. Fcode [0]Tush
  15815. Ffreq Tush
  15816. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(22)})),
  15817. Fdl: *(*struct {
  15818. Flen1 [0]Tush
  15819. Fdad Tush
  15820. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15821. },
  15822. 57: {
  15823. Ffc: *(*struct {
  15824. Fcode [0]Tush
  15825. Ffreq Tush
  15826. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(150)})),
  15827. Fdl: *(*struct {
  15828. Flen1 [0]Tush
  15829. Fdad Tush
  15830. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15831. },
  15832. 58: {
  15833. Ffc: *(*struct {
  15834. Fcode [0]Tush
  15835. Ffreq Tush
  15836. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(86)})),
  15837. Fdl: *(*struct {
  15838. Flen1 [0]Tush
  15839. Fdad Tush
  15840. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15841. },
  15842. 59: {
  15843. Ffc: *(*struct {
  15844. Fcode [0]Tush
  15845. Ffreq Tush
  15846. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(214)})),
  15847. Fdl: *(*struct {
  15848. Flen1 [0]Tush
  15849. Fdad Tush
  15850. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15851. },
  15852. 60: {
  15853. Ffc: *(*struct {
  15854. Fcode [0]Tush
  15855. Ffreq Tush
  15856. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(54)})),
  15857. Fdl: *(*struct {
  15858. Flen1 [0]Tush
  15859. Fdad Tush
  15860. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15861. },
  15862. 61: {
  15863. Ffc: *(*struct {
  15864. Fcode [0]Tush
  15865. Ffreq Tush
  15866. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(182)})),
  15867. Fdl: *(*struct {
  15868. Flen1 [0]Tush
  15869. Fdad Tush
  15870. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15871. },
  15872. 62: {
  15873. Ffc: *(*struct {
  15874. Fcode [0]Tush
  15875. Ffreq Tush
  15876. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(118)})),
  15877. Fdl: *(*struct {
  15878. Flen1 [0]Tush
  15879. Fdad Tush
  15880. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15881. },
  15882. 63: {
  15883. Ffc: *(*struct {
  15884. Fcode [0]Tush
  15885. Ffreq Tush
  15886. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(246)})),
  15887. Fdl: *(*struct {
  15888. Flen1 [0]Tush
  15889. Fdad Tush
  15890. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15891. },
  15892. 64: {
  15893. Ffc: *(*struct {
  15894. Fcode [0]Tush
  15895. Ffreq Tush
  15896. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(14)})),
  15897. Fdl: *(*struct {
  15898. Flen1 [0]Tush
  15899. Fdad Tush
  15900. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15901. },
  15902. 65: {
  15903. Ffc: *(*struct {
  15904. Fcode [0]Tush
  15905. Ffreq Tush
  15906. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(142)})),
  15907. Fdl: *(*struct {
  15908. Flen1 [0]Tush
  15909. Fdad Tush
  15910. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15911. },
  15912. 66: {
  15913. Ffc: *(*struct {
  15914. Fcode [0]Tush
  15915. Ffreq Tush
  15916. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(78)})),
  15917. Fdl: *(*struct {
  15918. Flen1 [0]Tush
  15919. Fdad Tush
  15920. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15921. },
  15922. 67: {
  15923. Ffc: *(*struct {
  15924. Fcode [0]Tush
  15925. Ffreq Tush
  15926. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(206)})),
  15927. Fdl: *(*struct {
  15928. Flen1 [0]Tush
  15929. Fdad Tush
  15930. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15931. },
  15932. 68: {
  15933. Ffc: *(*struct {
  15934. Fcode [0]Tush
  15935. Ffreq Tush
  15936. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(46)})),
  15937. Fdl: *(*struct {
  15938. Flen1 [0]Tush
  15939. Fdad Tush
  15940. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15941. },
  15942. 69: {
  15943. Ffc: *(*struct {
  15944. Fcode [0]Tush
  15945. Ffreq Tush
  15946. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(174)})),
  15947. Fdl: *(*struct {
  15948. Flen1 [0]Tush
  15949. Fdad Tush
  15950. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15951. },
  15952. 70: {
  15953. Ffc: *(*struct {
  15954. Fcode [0]Tush
  15955. Ffreq Tush
  15956. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(110)})),
  15957. Fdl: *(*struct {
  15958. Flen1 [0]Tush
  15959. Fdad Tush
  15960. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15961. },
  15962. 71: {
  15963. Ffc: *(*struct {
  15964. Fcode [0]Tush
  15965. Ffreq Tush
  15966. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(238)})),
  15967. Fdl: *(*struct {
  15968. Flen1 [0]Tush
  15969. Fdad Tush
  15970. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15971. },
  15972. 72: {
  15973. Ffc: *(*struct {
  15974. Fcode [0]Tush
  15975. Ffreq Tush
  15976. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(30)})),
  15977. Fdl: *(*struct {
  15978. Flen1 [0]Tush
  15979. Fdad Tush
  15980. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15981. },
  15982. 73: {
  15983. Ffc: *(*struct {
  15984. Fcode [0]Tush
  15985. Ffreq Tush
  15986. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(158)})),
  15987. Fdl: *(*struct {
  15988. Flen1 [0]Tush
  15989. Fdad Tush
  15990. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15991. },
  15992. 74: {
  15993. Ffc: *(*struct {
  15994. Fcode [0]Tush
  15995. Ffreq Tush
  15996. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(94)})),
  15997. Fdl: *(*struct {
  15998. Flen1 [0]Tush
  15999. Fdad Tush
  16000. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16001. },
  16002. 75: {
  16003. Ffc: *(*struct {
  16004. Fcode [0]Tush
  16005. Ffreq Tush
  16006. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(222)})),
  16007. Fdl: *(*struct {
  16008. Flen1 [0]Tush
  16009. Fdad Tush
  16010. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16011. },
  16012. 76: {
  16013. Ffc: *(*struct {
  16014. Fcode [0]Tush
  16015. Ffreq Tush
  16016. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(62)})),
  16017. Fdl: *(*struct {
  16018. Flen1 [0]Tush
  16019. Fdad Tush
  16020. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16021. },
  16022. 77: {
  16023. Ffc: *(*struct {
  16024. Fcode [0]Tush
  16025. Ffreq Tush
  16026. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(190)})),
  16027. Fdl: *(*struct {
  16028. Flen1 [0]Tush
  16029. Fdad Tush
  16030. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16031. },
  16032. 78: {
  16033. Ffc: *(*struct {
  16034. Fcode [0]Tush
  16035. Ffreq Tush
  16036. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(126)})),
  16037. Fdl: *(*struct {
  16038. Flen1 [0]Tush
  16039. Fdad Tush
  16040. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16041. },
  16042. 79: {
  16043. Ffc: *(*struct {
  16044. Fcode [0]Tush
  16045. Ffreq Tush
  16046. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(254)})),
  16047. Fdl: *(*struct {
  16048. Flen1 [0]Tush
  16049. Fdad Tush
  16050. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16051. },
  16052. 80: {
  16053. Ffc: *(*struct {
  16054. Fcode [0]Tush
  16055. Ffreq Tush
  16056. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(1)})),
  16057. Fdl: *(*struct {
  16058. Flen1 [0]Tush
  16059. Fdad Tush
  16060. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16061. },
  16062. 81: {
  16063. Ffc: *(*struct {
  16064. Fcode [0]Tush
  16065. Ffreq Tush
  16066. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(129)})),
  16067. Fdl: *(*struct {
  16068. Flen1 [0]Tush
  16069. Fdad Tush
  16070. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16071. },
  16072. 82: {
  16073. Ffc: *(*struct {
  16074. Fcode [0]Tush
  16075. Ffreq Tush
  16076. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(65)})),
  16077. Fdl: *(*struct {
  16078. Flen1 [0]Tush
  16079. Fdad Tush
  16080. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16081. },
  16082. 83: {
  16083. Ffc: *(*struct {
  16084. Fcode [0]Tush
  16085. Ffreq Tush
  16086. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(193)})),
  16087. Fdl: *(*struct {
  16088. Flen1 [0]Tush
  16089. Fdad Tush
  16090. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16091. },
  16092. 84: {
  16093. Ffc: *(*struct {
  16094. Fcode [0]Tush
  16095. Ffreq Tush
  16096. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(33)})),
  16097. Fdl: *(*struct {
  16098. Flen1 [0]Tush
  16099. Fdad Tush
  16100. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16101. },
  16102. 85: {
  16103. Ffc: *(*struct {
  16104. Fcode [0]Tush
  16105. Ffreq Tush
  16106. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(161)})),
  16107. Fdl: *(*struct {
  16108. Flen1 [0]Tush
  16109. Fdad Tush
  16110. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16111. },
  16112. 86: {
  16113. Ffc: *(*struct {
  16114. Fcode [0]Tush
  16115. Ffreq Tush
  16116. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(97)})),
  16117. Fdl: *(*struct {
  16118. Flen1 [0]Tush
  16119. Fdad Tush
  16120. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16121. },
  16122. 87: {
  16123. Ffc: *(*struct {
  16124. Fcode [0]Tush
  16125. Ffreq Tush
  16126. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(225)})),
  16127. Fdl: *(*struct {
  16128. Flen1 [0]Tush
  16129. Fdad Tush
  16130. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16131. },
  16132. 88: {
  16133. Ffc: *(*struct {
  16134. Fcode [0]Tush
  16135. Ffreq Tush
  16136. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(17)})),
  16137. Fdl: *(*struct {
  16138. Flen1 [0]Tush
  16139. Fdad Tush
  16140. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16141. },
  16142. 89: {
  16143. Ffc: *(*struct {
  16144. Fcode [0]Tush
  16145. Ffreq Tush
  16146. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(145)})),
  16147. Fdl: *(*struct {
  16148. Flen1 [0]Tush
  16149. Fdad Tush
  16150. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16151. },
  16152. 90: {
  16153. Ffc: *(*struct {
  16154. Fcode [0]Tush
  16155. Ffreq Tush
  16156. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(81)})),
  16157. Fdl: *(*struct {
  16158. Flen1 [0]Tush
  16159. Fdad Tush
  16160. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16161. },
  16162. 91: {
  16163. Ffc: *(*struct {
  16164. Fcode [0]Tush
  16165. Ffreq Tush
  16166. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(209)})),
  16167. Fdl: *(*struct {
  16168. Flen1 [0]Tush
  16169. Fdad Tush
  16170. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16171. },
  16172. 92: {
  16173. Ffc: *(*struct {
  16174. Fcode [0]Tush
  16175. Ffreq Tush
  16176. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(49)})),
  16177. Fdl: *(*struct {
  16178. Flen1 [0]Tush
  16179. Fdad Tush
  16180. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16181. },
  16182. 93: {
  16183. Ffc: *(*struct {
  16184. Fcode [0]Tush
  16185. Ffreq Tush
  16186. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(177)})),
  16187. Fdl: *(*struct {
  16188. Flen1 [0]Tush
  16189. Fdad Tush
  16190. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16191. },
  16192. 94: {
  16193. Ffc: *(*struct {
  16194. Fcode [0]Tush
  16195. Ffreq Tush
  16196. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(113)})),
  16197. Fdl: *(*struct {
  16198. Flen1 [0]Tush
  16199. Fdad Tush
  16200. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16201. },
  16202. 95: {
  16203. Ffc: *(*struct {
  16204. Fcode [0]Tush
  16205. Ffreq Tush
  16206. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(241)})),
  16207. Fdl: *(*struct {
  16208. Flen1 [0]Tush
  16209. Fdad Tush
  16210. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16211. },
  16212. 96: {
  16213. Ffc: *(*struct {
  16214. Fcode [0]Tush
  16215. Ffreq Tush
  16216. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16217. Fdl: *(*struct {
  16218. Flen1 [0]Tush
  16219. Fdad Tush
  16220. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16221. },
  16222. 97: {
  16223. Ffc: *(*struct {
  16224. Fcode [0]Tush
  16225. Ffreq Tush
  16226. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(137)})),
  16227. Fdl: *(*struct {
  16228. Flen1 [0]Tush
  16229. Fdad Tush
  16230. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16231. },
  16232. 98: {
  16233. Ffc: *(*struct {
  16234. Fcode [0]Tush
  16235. Ffreq Tush
  16236. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(73)})),
  16237. Fdl: *(*struct {
  16238. Flen1 [0]Tush
  16239. Fdad Tush
  16240. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16241. },
  16242. 99: {
  16243. Ffc: *(*struct {
  16244. Fcode [0]Tush
  16245. Ffreq Tush
  16246. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(201)})),
  16247. Fdl: *(*struct {
  16248. Flen1 [0]Tush
  16249. Fdad Tush
  16250. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16251. },
  16252. 100: {
  16253. Ffc: *(*struct {
  16254. Fcode [0]Tush
  16255. Ffreq Tush
  16256. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(41)})),
  16257. Fdl: *(*struct {
  16258. Flen1 [0]Tush
  16259. Fdad Tush
  16260. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16261. },
  16262. 101: {
  16263. Ffc: *(*struct {
  16264. Fcode [0]Tush
  16265. Ffreq Tush
  16266. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(169)})),
  16267. Fdl: *(*struct {
  16268. Flen1 [0]Tush
  16269. Fdad Tush
  16270. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16271. },
  16272. 102: {
  16273. Ffc: *(*struct {
  16274. Fcode [0]Tush
  16275. Ffreq Tush
  16276. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(105)})),
  16277. Fdl: *(*struct {
  16278. Flen1 [0]Tush
  16279. Fdad Tush
  16280. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16281. },
  16282. 103: {
  16283. Ffc: *(*struct {
  16284. Fcode [0]Tush
  16285. Ffreq Tush
  16286. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(233)})),
  16287. Fdl: *(*struct {
  16288. Flen1 [0]Tush
  16289. Fdad Tush
  16290. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16291. },
  16292. 104: {
  16293. Ffc: *(*struct {
  16294. Fcode [0]Tush
  16295. Ffreq Tush
  16296. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(25)})),
  16297. Fdl: *(*struct {
  16298. Flen1 [0]Tush
  16299. Fdad Tush
  16300. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16301. },
  16302. 105: {
  16303. Ffc: *(*struct {
  16304. Fcode [0]Tush
  16305. Ffreq Tush
  16306. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(153)})),
  16307. Fdl: *(*struct {
  16308. Flen1 [0]Tush
  16309. Fdad Tush
  16310. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16311. },
  16312. 106: {
  16313. Ffc: *(*struct {
  16314. Fcode [0]Tush
  16315. Ffreq Tush
  16316. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(89)})),
  16317. Fdl: *(*struct {
  16318. Flen1 [0]Tush
  16319. Fdad Tush
  16320. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16321. },
  16322. 107: {
  16323. Ffc: *(*struct {
  16324. Fcode [0]Tush
  16325. Ffreq Tush
  16326. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(217)})),
  16327. Fdl: *(*struct {
  16328. Flen1 [0]Tush
  16329. Fdad Tush
  16330. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16331. },
  16332. 108: {
  16333. Ffc: *(*struct {
  16334. Fcode [0]Tush
  16335. Ffreq Tush
  16336. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(57)})),
  16337. Fdl: *(*struct {
  16338. Flen1 [0]Tush
  16339. Fdad Tush
  16340. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16341. },
  16342. 109: {
  16343. Ffc: *(*struct {
  16344. Fcode [0]Tush
  16345. Ffreq Tush
  16346. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(185)})),
  16347. Fdl: *(*struct {
  16348. Flen1 [0]Tush
  16349. Fdad Tush
  16350. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16351. },
  16352. 110: {
  16353. Ffc: *(*struct {
  16354. Fcode [0]Tush
  16355. Ffreq Tush
  16356. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(121)})),
  16357. Fdl: *(*struct {
  16358. Flen1 [0]Tush
  16359. Fdad Tush
  16360. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16361. },
  16362. 111: {
  16363. Ffc: *(*struct {
  16364. Fcode [0]Tush
  16365. Ffreq Tush
  16366. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(249)})),
  16367. Fdl: *(*struct {
  16368. Flen1 [0]Tush
  16369. Fdad Tush
  16370. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16371. },
  16372. 112: {
  16373. Ffc: *(*struct {
  16374. Fcode [0]Tush
  16375. Ffreq Tush
  16376. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  16377. Fdl: *(*struct {
  16378. Flen1 [0]Tush
  16379. Fdad Tush
  16380. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16381. },
  16382. 113: {
  16383. Ffc: *(*struct {
  16384. Fcode [0]Tush
  16385. Ffreq Tush
  16386. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(133)})),
  16387. Fdl: *(*struct {
  16388. Flen1 [0]Tush
  16389. Fdad Tush
  16390. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16391. },
  16392. 114: {
  16393. Ffc: *(*struct {
  16394. Fcode [0]Tush
  16395. Ffreq Tush
  16396. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(69)})),
  16397. Fdl: *(*struct {
  16398. Flen1 [0]Tush
  16399. Fdad Tush
  16400. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16401. },
  16402. 115: {
  16403. Ffc: *(*struct {
  16404. Fcode [0]Tush
  16405. Ffreq Tush
  16406. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(197)})),
  16407. Fdl: *(*struct {
  16408. Flen1 [0]Tush
  16409. Fdad Tush
  16410. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16411. },
  16412. 116: {
  16413. Ffc: *(*struct {
  16414. Fcode [0]Tush
  16415. Ffreq Tush
  16416. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(37)})),
  16417. Fdl: *(*struct {
  16418. Flen1 [0]Tush
  16419. Fdad Tush
  16420. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16421. },
  16422. 117: {
  16423. Ffc: *(*struct {
  16424. Fcode [0]Tush
  16425. Ffreq Tush
  16426. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(165)})),
  16427. Fdl: *(*struct {
  16428. Flen1 [0]Tush
  16429. Fdad Tush
  16430. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16431. },
  16432. 118: {
  16433. Ffc: *(*struct {
  16434. Fcode [0]Tush
  16435. Ffreq Tush
  16436. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(101)})),
  16437. Fdl: *(*struct {
  16438. Flen1 [0]Tush
  16439. Fdad Tush
  16440. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16441. },
  16442. 119: {
  16443. Ffc: *(*struct {
  16444. Fcode [0]Tush
  16445. Ffreq Tush
  16446. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(229)})),
  16447. Fdl: *(*struct {
  16448. Flen1 [0]Tush
  16449. Fdad Tush
  16450. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16451. },
  16452. 120: {
  16453. Ffc: *(*struct {
  16454. Fcode [0]Tush
  16455. Ffreq Tush
  16456. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(21)})),
  16457. Fdl: *(*struct {
  16458. Flen1 [0]Tush
  16459. Fdad Tush
  16460. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16461. },
  16462. 121: {
  16463. Ffc: *(*struct {
  16464. Fcode [0]Tush
  16465. Ffreq Tush
  16466. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(149)})),
  16467. Fdl: *(*struct {
  16468. Flen1 [0]Tush
  16469. Fdad Tush
  16470. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16471. },
  16472. 122: {
  16473. Ffc: *(*struct {
  16474. Fcode [0]Tush
  16475. Ffreq Tush
  16476. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(85)})),
  16477. Fdl: *(*struct {
  16478. Flen1 [0]Tush
  16479. Fdad Tush
  16480. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16481. },
  16482. 123: {
  16483. Ffc: *(*struct {
  16484. Fcode [0]Tush
  16485. Ffreq Tush
  16486. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(213)})),
  16487. Fdl: *(*struct {
  16488. Flen1 [0]Tush
  16489. Fdad Tush
  16490. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16491. },
  16492. 124: {
  16493. Ffc: *(*struct {
  16494. Fcode [0]Tush
  16495. Ffreq Tush
  16496. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(53)})),
  16497. Fdl: *(*struct {
  16498. Flen1 [0]Tush
  16499. Fdad Tush
  16500. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16501. },
  16502. 125: {
  16503. Ffc: *(*struct {
  16504. Fcode [0]Tush
  16505. Ffreq Tush
  16506. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(181)})),
  16507. Fdl: *(*struct {
  16508. Flen1 [0]Tush
  16509. Fdad Tush
  16510. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16511. },
  16512. 126: {
  16513. Ffc: *(*struct {
  16514. Fcode [0]Tush
  16515. Ffreq Tush
  16516. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(117)})),
  16517. Fdl: *(*struct {
  16518. Flen1 [0]Tush
  16519. Fdad Tush
  16520. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16521. },
  16522. 127: {
  16523. Ffc: *(*struct {
  16524. Fcode [0]Tush
  16525. Ffreq Tush
  16526. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(245)})),
  16527. Fdl: *(*struct {
  16528. Flen1 [0]Tush
  16529. Fdad Tush
  16530. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16531. },
  16532. 128: {
  16533. Ffc: *(*struct {
  16534. Fcode [0]Tush
  16535. Ffreq Tush
  16536. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(13)})),
  16537. Fdl: *(*struct {
  16538. Flen1 [0]Tush
  16539. Fdad Tush
  16540. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16541. },
  16542. 129: {
  16543. Ffc: *(*struct {
  16544. Fcode [0]Tush
  16545. Ffreq Tush
  16546. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(141)})),
  16547. Fdl: *(*struct {
  16548. Flen1 [0]Tush
  16549. Fdad Tush
  16550. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16551. },
  16552. 130: {
  16553. Ffc: *(*struct {
  16554. Fcode [0]Tush
  16555. Ffreq Tush
  16556. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(77)})),
  16557. Fdl: *(*struct {
  16558. Flen1 [0]Tush
  16559. Fdad Tush
  16560. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16561. },
  16562. 131: {
  16563. Ffc: *(*struct {
  16564. Fcode [0]Tush
  16565. Ffreq Tush
  16566. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(205)})),
  16567. Fdl: *(*struct {
  16568. Flen1 [0]Tush
  16569. Fdad Tush
  16570. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16571. },
  16572. 132: {
  16573. Ffc: *(*struct {
  16574. Fcode [0]Tush
  16575. Ffreq Tush
  16576. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(45)})),
  16577. Fdl: *(*struct {
  16578. Flen1 [0]Tush
  16579. Fdad Tush
  16580. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16581. },
  16582. 133: {
  16583. Ffc: *(*struct {
  16584. Fcode [0]Tush
  16585. Ffreq Tush
  16586. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(173)})),
  16587. Fdl: *(*struct {
  16588. Flen1 [0]Tush
  16589. Fdad Tush
  16590. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16591. },
  16592. 134: {
  16593. Ffc: *(*struct {
  16594. Fcode [0]Tush
  16595. Ffreq Tush
  16596. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(109)})),
  16597. Fdl: *(*struct {
  16598. Flen1 [0]Tush
  16599. Fdad Tush
  16600. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16601. },
  16602. 135: {
  16603. Ffc: *(*struct {
  16604. Fcode [0]Tush
  16605. Ffreq Tush
  16606. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(237)})),
  16607. Fdl: *(*struct {
  16608. Flen1 [0]Tush
  16609. Fdad Tush
  16610. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16611. },
  16612. 136: {
  16613. Ffc: *(*struct {
  16614. Fcode [0]Tush
  16615. Ffreq Tush
  16616. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(29)})),
  16617. Fdl: *(*struct {
  16618. Flen1 [0]Tush
  16619. Fdad Tush
  16620. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16621. },
  16622. 137: {
  16623. Ffc: *(*struct {
  16624. Fcode [0]Tush
  16625. Ffreq Tush
  16626. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(157)})),
  16627. Fdl: *(*struct {
  16628. Flen1 [0]Tush
  16629. Fdad Tush
  16630. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16631. },
  16632. 138: {
  16633. Ffc: *(*struct {
  16634. Fcode [0]Tush
  16635. Ffreq Tush
  16636. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(93)})),
  16637. Fdl: *(*struct {
  16638. Flen1 [0]Tush
  16639. Fdad Tush
  16640. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16641. },
  16642. 139: {
  16643. Ffc: *(*struct {
  16644. Fcode [0]Tush
  16645. Ffreq Tush
  16646. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(221)})),
  16647. Fdl: *(*struct {
  16648. Flen1 [0]Tush
  16649. Fdad Tush
  16650. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16651. },
  16652. 140: {
  16653. Ffc: *(*struct {
  16654. Fcode [0]Tush
  16655. Ffreq Tush
  16656. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(61)})),
  16657. Fdl: *(*struct {
  16658. Flen1 [0]Tush
  16659. Fdad Tush
  16660. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16661. },
  16662. 141: {
  16663. Ffc: *(*struct {
  16664. Fcode [0]Tush
  16665. Ffreq Tush
  16666. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(189)})),
  16667. Fdl: *(*struct {
  16668. Flen1 [0]Tush
  16669. Fdad Tush
  16670. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16671. },
  16672. 142: {
  16673. Ffc: *(*struct {
  16674. Fcode [0]Tush
  16675. Ffreq Tush
  16676. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(125)})),
  16677. Fdl: *(*struct {
  16678. Flen1 [0]Tush
  16679. Fdad Tush
  16680. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16681. },
  16682. 143: {
  16683. Ffc: *(*struct {
  16684. Fcode [0]Tush
  16685. Ffreq Tush
  16686. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(253)})),
  16687. Fdl: *(*struct {
  16688. Flen1 [0]Tush
  16689. Fdad Tush
  16690. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16691. },
  16692. 144: {
  16693. Ffc: *(*struct {
  16694. Fcode [0]Tush
  16695. Ffreq Tush
  16696. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(19)})),
  16697. Fdl: *(*struct {
  16698. Flen1 [0]Tush
  16699. Fdad Tush
  16700. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16701. },
  16702. 145: {
  16703. Ffc: *(*struct {
  16704. Fcode [0]Tush
  16705. Ffreq Tush
  16706. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(275)})),
  16707. Fdl: *(*struct {
  16708. Flen1 [0]Tush
  16709. Fdad Tush
  16710. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16711. },
  16712. 146: {
  16713. Ffc: *(*struct {
  16714. Fcode [0]Tush
  16715. Ffreq Tush
  16716. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(147)})),
  16717. Fdl: *(*struct {
  16718. Flen1 [0]Tush
  16719. Fdad Tush
  16720. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16721. },
  16722. 147: {
  16723. Ffc: *(*struct {
  16724. Fcode [0]Tush
  16725. Ffreq Tush
  16726. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(403)})),
  16727. Fdl: *(*struct {
  16728. Flen1 [0]Tush
  16729. Fdad Tush
  16730. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16731. },
  16732. 148: {
  16733. Ffc: *(*struct {
  16734. Fcode [0]Tush
  16735. Ffreq Tush
  16736. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(83)})),
  16737. Fdl: *(*struct {
  16738. Flen1 [0]Tush
  16739. Fdad Tush
  16740. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16741. },
  16742. 149: {
  16743. Ffc: *(*struct {
  16744. Fcode [0]Tush
  16745. Ffreq Tush
  16746. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(339)})),
  16747. Fdl: *(*struct {
  16748. Flen1 [0]Tush
  16749. Fdad Tush
  16750. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16751. },
  16752. 150: {
  16753. Ffc: *(*struct {
  16754. Fcode [0]Tush
  16755. Ffreq Tush
  16756. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(211)})),
  16757. Fdl: *(*struct {
  16758. Flen1 [0]Tush
  16759. Fdad Tush
  16760. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16761. },
  16762. 151: {
  16763. Ffc: *(*struct {
  16764. Fcode [0]Tush
  16765. Ffreq Tush
  16766. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(467)})),
  16767. Fdl: *(*struct {
  16768. Flen1 [0]Tush
  16769. Fdad Tush
  16770. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16771. },
  16772. 152: {
  16773. Ffc: *(*struct {
  16774. Fcode [0]Tush
  16775. Ffreq Tush
  16776. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(51)})),
  16777. Fdl: *(*struct {
  16778. Flen1 [0]Tush
  16779. Fdad Tush
  16780. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16781. },
  16782. 153: {
  16783. Ffc: *(*struct {
  16784. Fcode [0]Tush
  16785. Ffreq Tush
  16786. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(307)})),
  16787. Fdl: *(*struct {
  16788. Flen1 [0]Tush
  16789. Fdad Tush
  16790. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16791. },
  16792. 154: {
  16793. Ffc: *(*struct {
  16794. Fcode [0]Tush
  16795. Ffreq Tush
  16796. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(179)})),
  16797. Fdl: *(*struct {
  16798. Flen1 [0]Tush
  16799. Fdad Tush
  16800. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16801. },
  16802. 155: {
  16803. Ffc: *(*struct {
  16804. Fcode [0]Tush
  16805. Ffreq Tush
  16806. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(435)})),
  16807. Fdl: *(*struct {
  16808. Flen1 [0]Tush
  16809. Fdad Tush
  16810. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16811. },
  16812. 156: {
  16813. Ffc: *(*struct {
  16814. Fcode [0]Tush
  16815. Ffreq Tush
  16816. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(115)})),
  16817. Fdl: *(*struct {
  16818. Flen1 [0]Tush
  16819. Fdad Tush
  16820. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16821. },
  16822. 157: {
  16823. Ffc: *(*struct {
  16824. Fcode [0]Tush
  16825. Ffreq Tush
  16826. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(371)})),
  16827. Fdl: *(*struct {
  16828. Flen1 [0]Tush
  16829. Fdad Tush
  16830. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16831. },
  16832. 158: {
  16833. Ffc: *(*struct {
  16834. Fcode [0]Tush
  16835. Ffreq Tush
  16836. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(243)})),
  16837. Fdl: *(*struct {
  16838. Flen1 [0]Tush
  16839. Fdad Tush
  16840. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16841. },
  16842. 159: {
  16843. Ffc: *(*struct {
  16844. Fcode [0]Tush
  16845. Ffreq Tush
  16846. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(499)})),
  16847. Fdl: *(*struct {
  16848. Flen1 [0]Tush
  16849. Fdad Tush
  16850. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16851. },
  16852. 160: {
  16853. Ffc: *(*struct {
  16854. Fcode [0]Tush
  16855. Ffreq Tush
  16856. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(11)})),
  16857. Fdl: *(*struct {
  16858. Flen1 [0]Tush
  16859. Fdad Tush
  16860. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16861. },
  16862. 161: {
  16863. Ffc: *(*struct {
  16864. Fcode [0]Tush
  16865. Ffreq Tush
  16866. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(267)})),
  16867. Fdl: *(*struct {
  16868. Flen1 [0]Tush
  16869. Fdad Tush
  16870. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16871. },
  16872. 162: {
  16873. Ffc: *(*struct {
  16874. Fcode [0]Tush
  16875. Ffreq Tush
  16876. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(139)})),
  16877. Fdl: *(*struct {
  16878. Flen1 [0]Tush
  16879. Fdad Tush
  16880. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16881. },
  16882. 163: {
  16883. Ffc: *(*struct {
  16884. Fcode [0]Tush
  16885. Ffreq Tush
  16886. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(395)})),
  16887. Fdl: *(*struct {
  16888. Flen1 [0]Tush
  16889. Fdad Tush
  16890. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16891. },
  16892. 164: {
  16893. Ffc: *(*struct {
  16894. Fcode [0]Tush
  16895. Ffreq Tush
  16896. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(75)})),
  16897. Fdl: *(*struct {
  16898. Flen1 [0]Tush
  16899. Fdad Tush
  16900. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16901. },
  16902. 165: {
  16903. Ffc: *(*struct {
  16904. Fcode [0]Tush
  16905. Ffreq Tush
  16906. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(331)})),
  16907. Fdl: *(*struct {
  16908. Flen1 [0]Tush
  16909. Fdad Tush
  16910. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16911. },
  16912. 166: {
  16913. Ffc: *(*struct {
  16914. Fcode [0]Tush
  16915. Ffreq Tush
  16916. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(203)})),
  16917. Fdl: *(*struct {
  16918. Flen1 [0]Tush
  16919. Fdad Tush
  16920. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16921. },
  16922. 167: {
  16923. Ffc: *(*struct {
  16924. Fcode [0]Tush
  16925. Ffreq Tush
  16926. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(459)})),
  16927. Fdl: *(*struct {
  16928. Flen1 [0]Tush
  16929. Fdad Tush
  16930. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16931. },
  16932. 168: {
  16933. Ffc: *(*struct {
  16934. Fcode [0]Tush
  16935. Ffreq Tush
  16936. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(43)})),
  16937. Fdl: *(*struct {
  16938. Flen1 [0]Tush
  16939. Fdad Tush
  16940. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16941. },
  16942. 169: {
  16943. Ffc: *(*struct {
  16944. Fcode [0]Tush
  16945. Ffreq Tush
  16946. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(299)})),
  16947. Fdl: *(*struct {
  16948. Flen1 [0]Tush
  16949. Fdad Tush
  16950. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16951. },
  16952. 170: {
  16953. Ffc: *(*struct {
  16954. Fcode [0]Tush
  16955. Ffreq Tush
  16956. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(171)})),
  16957. Fdl: *(*struct {
  16958. Flen1 [0]Tush
  16959. Fdad Tush
  16960. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16961. },
  16962. 171: {
  16963. Ffc: *(*struct {
  16964. Fcode [0]Tush
  16965. Ffreq Tush
  16966. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(427)})),
  16967. Fdl: *(*struct {
  16968. Flen1 [0]Tush
  16969. Fdad Tush
  16970. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16971. },
  16972. 172: {
  16973. Ffc: *(*struct {
  16974. Fcode [0]Tush
  16975. Ffreq Tush
  16976. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(107)})),
  16977. Fdl: *(*struct {
  16978. Flen1 [0]Tush
  16979. Fdad Tush
  16980. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16981. },
  16982. 173: {
  16983. Ffc: *(*struct {
  16984. Fcode [0]Tush
  16985. Ffreq Tush
  16986. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(363)})),
  16987. Fdl: *(*struct {
  16988. Flen1 [0]Tush
  16989. Fdad Tush
  16990. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16991. },
  16992. 174: {
  16993. Ffc: *(*struct {
  16994. Fcode [0]Tush
  16995. Ffreq Tush
  16996. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(235)})),
  16997. Fdl: *(*struct {
  16998. Flen1 [0]Tush
  16999. Fdad Tush
  17000. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17001. },
  17002. 175: {
  17003. Ffc: *(*struct {
  17004. Fcode [0]Tush
  17005. Ffreq Tush
  17006. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(491)})),
  17007. Fdl: *(*struct {
  17008. Flen1 [0]Tush
  17009. Fdad Tush
  17010. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17011. },
  17012. 176: {
  17013. Ffc: *(*struct {
  17014. Fcode [0]Tush
  17015. Ffreq Tush
  17016. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(27)})),
  17017. Fdl: *(*struct {
  17018. Flen1 [0]Tush
  17019. Fdad Tush
  17020. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17021. },
  17022. 177: {
  17023. Ffc: *(*struct {
  17024. Fcode [0]Tush
  17025. Ffreq Tush
  17026. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(283)})),
  17027. Fdl: *(*struct {
  17028. Flen1 [0]Tush
  17029. Fdad Tush
  17030. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17031. },
  17032. 178: {
  17033. Ffc: *(*struct {
  17034. Fcode [0]Tush
  17035. Ffreq Tush
  17036. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(155)})),
  17037. Fdl: *(*struct {
  17038. Flen1 [0]Tush
  17039. Fdad Tush
  17040. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17041. },
  17042. 179: {
  17043. Ffc: *(*struct {
  17044. Fcode [0]Tush
  17045. Ffreq Tush
  17046. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(411)})),
  17047. Fdl: *(*struct {
  17048. Flen1 [0]Tush
  17049. Fdad Tush
  17050. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17051. },
  17052. 180: {
  17053. Ffc: *(*struct {
  17054. Fcode [0]Tush
  17055. Ffreq Tush
  17056. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(91)})),
  17057. Fdl: *(*struct {
  17058. Flen1 [0]Tush
  17059. Fdad Tush
  17060. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17061. },
  17062. 181: {
  17063. Ffc: *(*struct {
  17064. Fcode [0]Tush
  17065. Ffreq Tush
  17066. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(347)})),
  17067. Fdl: *(*struct {
  17068. Flen1 [0]Tush
  17069. Fdad Tush
  17070. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17071. },
  17072. 182: {
  17073. Ffc: *(*struct {
  17074. Fcode [0]Tush
  17075. Ffreq Tush
  17076. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(219)})),
  17077. Fdl: *(*struct {
  17078. Flen1 [0]Tush
  17079. Fdad Tush
  17080. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17081. },
  17082. 183: {
  17083. Ffc: *(*struct {
  17084. Fcode [0]Tush
  17085. Ffreq Tush
  17086. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(475)})),
  17087. Fdl: *(*struct {
  17088. Flen1 [0]Tush
  17089. Fdad Tush
  17090. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17091. },
  17092. 184: {
  17093. Ffc: *(*struct {
  17094. Fcode [0]Tush
  17095. Ffreq Tush
  17096. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(59)})),
  17097. Fdl: *(*struct {
  17098. Flen1 [0]Tush
  17099. Fdad Tush
  17100. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17101. },
  17102. 185: {
  17103. Ffc: *(*struct {
  17104. Fcode [0]Tush
  17105. Ffreq Tush
  17106. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(315)})),
  17107. Fdl: *(*struct {
  17108. Flen1 [0]Tush
  17109. Fdad Tush
  17110. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17111. },
  17112. 186: {
  17113. Ffc: *(*struct {
  17114. Fcode [0]Tush
  17115. Ffreq Tush
  17116. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(187)})),
  17117. Fdl: *(*struct {
  17118. Flen1 [0]Tush
  17119. Fdad Tush
  17120. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17121. },
  17122. 187: {
  17123. Ffc: *(*struct {
  17124. Fcode [0]Tush
  17125. Ffreq Tush
  17126. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(443)})),
  17127. Fdl: *(*struct {
  17128. Flen1 [0]Tush
  17129. Fdad Tush
  17130. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17131. },
  17132. 188: {
  17133. Ffc: *(*struct {
  17134. Fcode [0]Tush
  17135. Ffreq Tush
  17136. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(123)})),
  17137. Fdl: *(*struct {
  17138. Flen1 [0]Tush
  17139. Fdad Tush
  17140. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17141. },
  17142. 189: {
  17143. Ffc: *(*struct {
  17144. Fcode [0]Tush
  17145. Ffreq Tush
  17146. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(379)})),
  17147. Fdl: *(*struct {
  17148. Flen1 [0]Tush
  17149. Fdad Tush
  17150. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17151. },
  17152. 190: {
  17153. Ffc: *(*struct {
  17154. Fcode [0]Tush
  17155. Ffreq Tush
  17156. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(251)})),
  17157. Fdl: *(*struct {
  17158. Flen1 [0]Tush
  17159. Fdad Tush
  17160. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17161. },
  17162. 191: {
  17163. Ffc: *(*struct {
  17164. Fcode [0]Tush
  17165. Ffreq Tush
  17166. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(507)})),
  17167. Fdl: *(*struct {
  17168. Flen1 [0]Tush
  17169. Fdad Tush
  17170. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17171. },
  17172. 192: {
  17173. Ffc: *(*struct {
  17174. Fcode [0]Tush
  17175. Ffreq Tush
  17176. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17177. Fdl: *(*struct {
  17178. Flen1 [0]Tush
  17179. Fdad Tush
  17180. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17181. },
  17182. 193: {
  17183. Ffc: *(*struct {
  17184. Fcode [0]Tush
  17185. Ffreq Tush
  17186. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(263)})),
  17187. Fdl: *(*struct {
  17188. Flen1 [0]Tush
  17189. Fdad Tush
  17190. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17191. },
  17192. 194: {
  17193. Ffc: *(*struct {
  17194. Fcode [0]Tush
  17195. Ffreq Tush
  17196. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(135)})),
  17197. Fdl: *(*struct {
  17198. Flen1 [0]Tush
  17199. Fdad Tush
  17200. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17201. },
  17202. 195: {
  17203. Ffc: *(*struct {
  17204. Fcode [0]Tush
  17205. Ffreq Tush
  17206. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(391)})),
  17207. Fdl: *(*struct {
  17208. Flen1 [0]Tush
  17209. Fdad Tush
  17210. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17211. },
  17212. 196: {
  17213. Ffc: *(*struct {
  17214. Fcode [0]Tush
  17215. Ffreq Tush
  17216. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(71)})),
  17217. Fdl: *(*struct {
  17218. Flen1 [0]Tush
  17219. Fdad Tush
  17220. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17221. },
  17222. 197: {
  17223. Ffc: *(*struct {
  17224. Fcode [0]Tush
  17225. Ffreq Tush
  17226. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(327)})),
  17227. Fdl: *(*struct {
  17228. Flen1 [0]Tush
  17229. Fdad Tush
  17230. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17231. },
  17232. 198: {
  17233. Ffc: *(*struct {
  17234. Fcode [0]Tush
  17235. Ffreq Tush
  17236. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(199)})),
  17237. Fdl: *(*struct {
  17238. Flen1 [0]Tush
  17239. Fdad Tush
  17240. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17241. },
  17242. 199: {
  17243. Ffc: *(*struct {
  17244. Fcode [0]Tush
  17245. Ffreq Tush
  17246. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(455)})),
  17247. Fdl: *(*struct {
  17248. Flen1 [0]Tush
  17249. Fdad Tush
  17250. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17251. },
  17252. 200: {
  17253. Ffc: *(*struct {
  17254. Fcode [0]Tush
  17255. Ffreq Tush
  17256. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(39)})),
  17257. Fdl: *(*struct {
  17258. Flen1 [0]Tush
  17259. Fdad Tush
  17260. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17261. },
  17262. 201: {
  17263. Ffc: *(*struct {
  17264. Fcode [0]Tush
  17265. Ffreq Tush
  17266. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(295)})),
  17267. Fdl: *(*struct {
  17268. Flen1 [0]Tush
  17269. Fdad Tush
  17270. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17271. },
  17272. 202: {
  17273. Ffc: *(*struct {
  17274. Fcode [0]Tush
  17275. Ffreq Tush
  17276. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(167)})),
  17277. Fdl: *(*struct {
  17278. Flen1 [0]Tush
  17279. Fdad Tush
  17280. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17281. },
  17282. 203: {
  17283. Ffc: *(*struct {
  17284. Fcode [0]Tush
  17285. Ffreq Tush
  17286. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(423)})),
  17287. Fdl: *(*struct {
  17288. Flen1 [0]Tush
  17289. Fdad Tush
  17290. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17291. },
  17292. 204: {
  17293. Ffc: *(*struct {
  17294. Fcode [0]Tush
  17295. Ffreq Tush
  17296. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(103)})),
  17297. Fdl: *(*struct {
  17298. Flen1 [0]Tush
  17299. Fdad Tush
  17300. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17301. },
  17302. 205: {
  17303. Ffc: *(*struct {
  17304. Fcode [0]Tush
  17305. Ffreq Tush
  17306. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(359)})),
  17307. Fdl: *(*struct {
  17308. Flen1 [0]Tush
  17309. Fdad Tush
  17310. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17311. },
  17312. 206: {
  17313. Ffc: *(*struct {
  17314. Fcode [0]Tush
  17315. Ffreq Tush
  17316. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(231)})),
  17317. Fdl: *(*struct {
  17318. Flen1 [0]Tush
  17319. Fdad Tush
  17320. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17321. },
  17322. 207: {
  17323. Ffc: *(*struct {
  17324. Fcode [0]Tush
  17325. Ffreq Tush
  17326. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(487)})),
  17327. Fdl: *(*struct {
  17328. Flen1 [0]Tush
  17329. Fdad Tush
  17330. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17331. },
  17332. 208: {
  17333. Ffc: *(*struct {
  17334. Fcode [0]Tush
  17335. Ffreq Tush
  17336. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(23)})),
  17337. Fdl: *(*struct {
  17338. Flen1 [0]Tush
  17339. Fdad Tush
  17340. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17341. },
  17342. 209: {
  17343. Ffc: *(*struct {
  17344. Fcode [0]Tush
  17345. Ffreq Tush
  17346. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(279)})),
  17347. Fdl: *(*struct {
  17348. Flen1 [0]Tush
  17349. Fdad Tush
  17350. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17351. },
  17352. 210: {
  17353. Ffc: *(*struct {
  17354. Fcode [0]Tush
  17355. Ffreq Tush
  17356. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(151)})),
  17357. Fdl: *(*struct {
  17358. Flen1 [0]Tush
  17359. Fdad Tush
  17360. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17361. },
  17362. 211: {
  17363. Ffc: *(*struct {
  17364. Fcode [0]Tush
  17365. Ffreq Tush
  17366. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(407)})),
  17367. Fdl: *(*struct {
  17368. Flen1 [0]Tush
  17369. Fdad Tush
  17370. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17371. },
  17372. 212: {
  17373. Ffc: *(*struct {
  17374. Fcode [0]Tush
  17375. Ffreq Tush
  17376. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(87)})),
  17377. Fdl: *(*struct {
  17378. Flen1 [0]Tush
  17379. Fdad Tush
  17380. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17381. },
  17382. 213: {
  17383. Ffc: *(*struct {
  17384. Fcode [0]Tush
  17385. Ffreq Tush
  17386. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(343)})),
  17387. Fdl: *(*struct {
  17388. Flen1 [0]Tush
  17389. Fdad Tush
  17390. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17391. },
  17392. 214: {
  17393. Ffc: *(*struct {
  17394. Fcode [0]Tush
  17395. Ffreq Tush
  17396. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(215)})),
  17397. Fdl: *(*struct {
  17398. Flen1 [0]Tush
  17399. Fdad Tush
  17400. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17401. },
  17402. 215: {
  17403. Ffc: *(*struct {
  17404. Fcode [0]Tush
  17405. Ffreq Tush
  17406. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(471)})),
  17407. Fdl: *(*struct {
  17408. Flen1 [0]Tush
  17409. Fdad Tush
  17410. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17411. },
  17412. 216: {
  17413. Ffc: *(*struct {
  17414. Fcode [0]Tush
  17415. Ffreq Tush
  17416. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(55)})),
  17417. Fdl: *(*struct {
  17418. Flen1 [0]Tush
  17419. Fdad Tush
  17420. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17421. },
  17422. 217: {
  17423. Ffc: *(*struct {
  17424. Fcode [0]Tush
  17425. Ffreq Tush
  17426. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(311)})),
  17427. Fdl: *(*struct {
  17428. Flen1 [0]Tush
  17429. Fdad Tush
  17430. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17431. },
  17432. 218: {
  17433. Ffc: *(*struct {
  17434. Fcode [0]Tush
  17435. Ffreq Tush
  17436. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(183)})),
  17437. Fdl: *(*struct {
  17438. Flen1 [0]Tush
  17439. Fdad Tush
  17440. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17441. },
  17442. 219: {
  17443. Ffc: *(*struct {
  17444. Fcode [0]Tush
  17445. Ffreq Tush
  17446. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(439)})),
  17447. Fdl: *(*struct {
  17448. Flen1 [0]Tush
  17449. Fdad Tush
  17450. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17451. },
  17452. 220: {
  17453. Ffc: *(*struct {
  17454. Fcode [0]Tush
  17455. Ffreq Tush
  17456. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(119)})),
  17457. Fdl: *(*struct {
  17458. Flen1 [0]Tush
  17459. Fdad Tush
  17460. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17461. },
  17462. 221: {
  17463. Ffc: *(*struct {
  17464. Fcode [0]Tush
  17465. Ffreq Tush
  17466. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(375)})),
  17467. Fdl: *(*struct {
  17468. Flen1 [0]Tush
  17469. Fdad Tush
  17470. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17471. },
  17472. 222: {
  17473. Ffc: *(*struct {
  17474. Fcode [0]Tush
  17475. Ffreq Tush
  17476. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(247)})),
  17477. Fdl: *(*struct {
  17478. Flen1 [0]Tush
  17479. Fdad Tush
  17480. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17481. },
  17482. 223: {
  17483. Ffc: *(*struct {
  17484. Fcode [0]Tush
  17485. Ffreq Tush
  17486. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(503)})),
  17487. Fdl: *(*struct {
  17488. Flen1 [0]Tush
  17489. Fdad Tush
  17490. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17491. },
  17492. 224: {
  17493. Ffc: *(*struct {
  17494. Fcode [0]Tush
  17495. Ffreq Tush
  17496. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(15)})),
  17497. Fdl: *(*struct {
  17498. Flen1 [0]Tush
  17499. Fdad Tush
  17500. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17501. },
  17502. 225: {
  17503. Ffc: *(*struct {
  17504. Fcode [0]Tush
  17505. Ffreq Tush
  17506. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(271)})),
  17507. Fdl: *(*struct {
  17508. Flen1 [0]Tush
  17509. Fdad Tush
  17510. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17511. },
  17512. 226: {
  17513. Ffc: *(*struct {
  17514. Fcode [0]Tush
  17515. Ffreq Tush
  17516. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(143)})),
  17517. Fdl: *(*struct {
  17518. Flen1 [0]Tush
  17519. Fdad Tush
  17520. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17521. },
  17522. 227: {
  17523. Ffc: *(*struct {
  17524. Fcode [0]Tush
  17525. Ffreq Tush
  17526. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(399)})),
  17527. Fdl: *(*struct {
  17528. Flen1 [0]Tush
  17529. Fdad Tush
  17530. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17531. },
  17532. 228: {
  17533. Ffc: *(*struct {
  17534. Fcode [0]Tush
  17535. Ffreq Tush
  17536. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(79)})),
  17537. Fdl: *(*struct {
  17538. Flen1 [0]Tush
  17539. Fdad Tush
  17540. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17541. },
  17542. 229: {
  17543. Ffc: *(*struct {
  17544. Fcode [0]Tush
  17545. Ffreq Tush
  17546. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(335)})),
  17547. Fdl: *(*struct {
  17548. Flen1 [0]Tush
  17549. Fdad Tush
  17550. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17551. },
  17552. 230: {
  17553. Ffc: *(*struct {
  17554. Fcode [0]Tush
  17555. Ffreq Tush
  17556. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(207)})),
  17557. Fdl: *(*struct {
  17558. Flen1 [0]Tush
  17559. Fdad Tush
  17560. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17561. },
  17562. 231: {
  17563. Ffc: *(*struct {
  17564. Fcode [0]Tush
  17565. Ffreq Tush
  17566. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(463)})),
  17567. Fdl: *(*struct {
  17568. Flen1 [0]Tush
  17569. Fdad Tush
  17570. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17571. },
  17572. 232: {
  17573. Ffc: *(*struct {
  17574. Fcode [0]Tush
  17575. Ffreq Tush
  17576. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(47)})),
  17577. Fdl: *(*struct {
  17578. Flen1 [0]Tush
  17579. Fdad Tush
  17580. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17581. },
  17582. 233: {
  17583. Ffc: *(*struct {
  17584. Fcode [0]Tush
  17585. Ffreq Tush
  17586. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(303)})),
  17587. Fdl: *(*struct {
  17588. Flen1 [0]Tush
  17589. Fdad Tush
  17590. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17591. },
  17592. 234: {
  17593. Ffc: *(*struct {
  17594. Fcode [0]Tush
  17595. Ffreq Tush
  17596. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(175)})),
  17597. Fdl: *(*struct {
  17598. Flen1 [0]Tush
  17599. Fdad Tush
  17600. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17601. },
  17602. 235: {
  17603. Ffc: *(*struct {
  17604. Fcode [0]Tush
  17605. Ffreq Tush
  17606. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(431)})),
  17607. Fdl: *(*struct {
  17608. Flen1 [0]Tush
  17609. Fdad Tush
  17610. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17611. },
  17612. 236: {
  17613. Ffc: *(*struct {
  17614. Fcode [0]Tush
  17615. Ffreq Tush
  17616. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(111)})),
  17617. Fdl: *(*struct {
  17618. Flen1 [0]Tush
  17619. Fdad Tush
  17620. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17621. },
  17622. 237: {
  17623. Ffc: *(*struct {
  17624. Fcode [0]Tush
  17625. Ffreq Tush
  17626. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(367)})),
  17627. Fdl: *(*struct {
  17628. Flen1 [0]Tush
  17629. Fdad Tush
  17630. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17631. },
  17632. 238: {
  17633. Ffc: *(*struct {
  17634. Fcode [0]Tush
  17635. Ffreq Tush
  17636. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(239)})),
  17637. Fdl: *(*struct {
  17638. Flen1 [0]Tush
  17639. Fdad Tush
  17640. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17641. },
  17642. 239: {
  17643. Ffc: *(*struct {
  17644. Fcode [0]Tush
  17645. Ffreq Tush
  17646. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(495)})),
  17647. Fdl: *(*struct {
  17648. Flen1 [0]Tush
  17649. Fdad Tush
  17650. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17651. },
  17652. 240: {
  17653. Ffc: *(*struct {
  17654. Fcode [0]Tush
  17655. Ffreq Tush
  17656. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(31)})),
  17657. Fdl: *(*struct {
  17658. Flen1 [0]Tush
  17659. Fdad Tush
  17660. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17661. },
  17662. 241: {
  17663. Ffc: *(*struct {
  17664. Fcode [0]Tush
  17665. Ffreq Tush
  17666. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(287)})),
  17667. Fdl: *(*struct {
  17668. Flen1 [0]Tush
  17669. Fdad Tush
  17670. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17671. },
  17672. 242: {
  17673. Ffc: *(*struct {
  17674. Fcode [0]Tush
  17675. Ffreq Tush
  17676. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(159)})),
  17677. Fdl: *(*struct {
  17678. Flen1 [0]Tush
  17679. Fdad Tush
  17680. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17681. },
  17682. 243: {
  17683. Ffc: *(*struct {
  17684. Fcode [0]Tush
  17685. Ffreq Tush
  17686. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(415)})),
  17687. Fdl: *(*struct {
  17688. Flen1 [0]Tush
  17689. Fdad Tush
  17690. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17691. },
  17692. 244: {
  17693. Ffc: *(*struct {
  17694. Fcode [0]Tush
  17695. Ffreq Tush
  17696. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(95)})),
  17697. Fdl: *(*struct {
  17698. Flen1 [0]Tush
  17699. Fdad Tush
  17700. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17701. },
  17702. 245: {
  17703. Ffc: *(*struct {
  17704. Fcode [0]Tush
  17705. Ffreq Tush
  17706. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(351)})),
  17707. Fdl: *(*struct {
  17708. Flen1 [0]Tush
  17709. Fdad Tush
  17710. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17711. },
  17712. 246: {
  17713. Ffc: *(*struct {
  17714. Fcode [0]Tush
  17715. Ffreq Tush
  17716. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(223)})),
  17717. Fdl: *(*struct {
  17718. Flen1 [0]Tush
  17719. Fdad Tush
  17720. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17721. },
  17722. 247: {
  17723. Ffc: *(*struct {
  17724. Fcode [0]Tush
  17725. Ffreq Tush
  17726. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(479)})),
  17727. Fdl: *(*struct {
  17728. Flen1 [0]Tush
  17729. Fdad Tush
  17730. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17731. },
  17732. 248: {
  17733. Ffc: *(*struct {
  17734. Fcode [0]Tush
  17735. Ffreq Tush
  17736. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(63)})),
  17737. Fdl: *(*struct {
  17738. Flen1 [0]Tush
  17739. Fdad Tush
  17740. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17741. },
  17742. 249: {
  17743. Ffc: *(*struct {
  17744. Fcode [0]Tush
  17745. Ffreq Tush
  17746. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(319)})),
  17747. Fdl: *(*struct {
  17748. Flen1 [0]Tush
  17749. Fdad Tush
  17750. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17751. },
  17752. 250: {
  17753. Ffc: *(*struct {
  17754. Fcode [0]Tush
  17755. Ffreq Tush
  17756. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(191)})),
  17757. Fdl: *(*struct {
  17758. Flen1 [0]Tush
  17759. Fdad Tush
  17760. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17761. },
  17762. 251: {
  17763. Ffc: *(*struct {
  17764. Fcode [0]Tush
  17765. Ffreq Tush
  17766. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(447)})),
  17767. Fdl: *(*struct {
  17768. Flen1 [0]Tush
  17769. Fdad Tush
  17770. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17771. },
  17772. 252: {
  17773. Ffc: *(*struct {
  17774. Fcode [0]Tush
  17775. Ffreq Tush
  17776. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(127)})),
  17777. Fdl: *(*struct {
  17778. Flen1 [0]Tush
  17779. Fdad Tush
  17780. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17781. },
  17782. 253: {
  17783. Ffc: *(*struct {
  17784. Fcode [0]Tush
  17785. Ffreq Tush
  17786. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(383)})),
  17787. Fdl: *(*struct {
  17788. Flen1 [0]Tush
  17789. Fdad Tush
  17790. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17791. },
  17792. 254: {
  17793. Ffc: *(*struct {
  17794. Fcode [0]Tush
  17795. Ffreq Tush
  17796. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(255)})),
  17797. Fdl: *(*struct {
  17798. Flen1 [0]Tush
  17799. Fdad Tush
  17800. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17801. },
  17802. 255: {
  17803. Ffc: *(*struct {
  17804. Fcode [0]Tush
  17805. Ffreq Tush
  17806. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(511)})),
  17807. Fdl: *(*struct {
  17808. Flen1 [0]Tush
  17809. Fdad Tush
  17810. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17811. },
  17812. 256: {
  17813. Fdl: *(*struct {
  17814. Flen1 [0]Tush
  17815. Fdad Tush
  17816. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17817. },
  17818. 257: {
  17819. Ffc: *(*struct {
  17820. Fcode [0]Tush
  17821. Ffreq Tush
  17822. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(64)})),
  17823. Fdl: *(*struct {
  17824. Flen1 [0]Tush
  17825. Fdad Tush
  17826. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17827. },
  17828. 258: {
  17829. Ffc: *(*struct {
  17830. Fcode [0]Tush
  17831. Ffreq Tush
  17832. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(32)})),
  17833. Fdl: *(*struct {
  17834. Flen1 [0]Tush
  17835. Fdad Tush
  17836. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17837. },
  17838. 259: {
  17839. Ffc: *(*struct {
  17840. Fcode [0]Tush
  17841. Ffreq Tush
  17842. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(96)})),
  17843. Fdl: *(*struct {
  17844. Flen1 [0]Tush
  17845. Fdad Tush
  17846. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17847. },
  17848. 260: {
  17849. Ffc: *(*struct {
  17850. Fcode [0]Tush
  17851. Ffreq Tush
  17852. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(16)})),
  17853. Fdl: *(*struct {
  17854. Flen1 [0]Tush
  17855. Fdad Tush
  17856. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17857. },
  17858. 261: {
  17859. Ffc: *(*struct {
  17860. Fcode [0]Tush
  17861. Ffreq Tush
  17862. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(80)})),
  17863. Fdl: *(*struct {
  17864. Flen1 [0]Tush
  17865. Fdad Tush
  17866. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17867. },
  17868. 262: {
  17869. Ffc: *(*struct {
  17870. Fcode [0]Tush
  17871. Ffreq Tush
  17872. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(48)})),
  17873. Fdl: *(*struct {
  17874. Flen1 [0]Tush
  17875. Fdad Tush
  17876. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17877. },
  17878. 263: {
  17879. Ffc: *(*struct {
  17880. Fcode [0]Tush
  17881. Ffreq Tush
  17882. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(112)})),
  17883. Fdl: *(*struct {
  17884. Flen1 [0]Tush
  17885. Fdad Tush
  17886. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17887. },
  17888. 264: {
  17889. Ffc: *(*struct {
  17890. Fcode [0]Tush
  17891. Ffreq Tush
  17892. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  17893. Fdl: *(*struct {
  17894. Flen1 [0]Tush
  17895. Fdad Tush
  17896. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17897. },
  17898. 265: {
  17899. Ffc: *(*struct {
  17900. Fcode [0]Tush
  17901. Ffreq Tush
  17902. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(72)})),
  17903. Fdl: *(*struct {
  17904. Flen1 [0]Tush
  17905. Fdad Tush
  17906. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17907. },
  17908. 266: {
  17909. Ffc: *(*struct {
  17910. Fcode [0]Tush
  17911. Ffreq Tush
  17912. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(40)})),
  17913. Fdl: *(*struct {
  17914. Flen1 [0]Tush
  17915. Fdad Tush
  17916. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17917. },
  17918. 267: {
  17919. Ffc: *(*struct {
  17920. Fcode [0]Tush
  17921. Ffreq Tush
  17922. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(104)})),
  17923. Fdl: *(*struct {
  17924. Flen1 [0]Tush
  17925. Fdad Tush
  17926. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17927. },
  17928. 268: {
  17929. Ffc: *(*struct {
  17930. Fcode [0]Tush
  17931. Ffreq Tush
  17932. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(24)})),
  17933. Fdl: *(*struct {
  17934. Flen1 [0]Tush
  17935. Fdad Tush
  17936. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17937. },
  17938. 269: {
  17939. Ffc: *(*struct {
  17940. Fcode [0]Tush
  17941. Ffreq Tush
  17942. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(88)})),
  17943. Fdl: *(*struct {
  17944. Flen1 [0]Tush
  17945. Fdad Tush
  17946. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17947. },
  17948. 270: {
  17949. Ffc: *(*struct {
  17950. Fcode [0]Tush
  17951. Ffreq Tush
  17952. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(56)})),
  17953. Fdl: *(*struct {
  17954. Flen1 [0]Tush
  17955. Fdad Tush
  17956. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17957. },
  17958. 271: {
  17959. Ffc: *(*struct {
  17960. Fcode [0]Tush
  17961. Ffreq Tush
  17962. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(120)})),
  17963. Fdl: *(*struct {
  17964. Flen1 [0]Tush
  17965. Fdad Tush
  17966. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17967. },
  17968. 272: {
  17969. Ffc: *(*struct {
  17970. Fcode [0]Tush
  17971. Ffreq Tush
  17972. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(4)})),
  17973. Fdl: *(*struct {
  17974. Flen1 [0]Tush
  17975. Fdad Tush
  17976. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17977. },
  17978. 273: {
  17979. Ffc: *(*struct {
  17980. Fcode [0]Tush
  17981. Ffreq Tush
  17982. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(68)})),
  17983. Fdl: *(*struct {
  17984. Flen1 [0]Tush
  17985. Fdad Tush
  17986. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17987. },
  17988. 274: {
  17989. Ffc: *(*struct {
  17990. Fcode [0]Tush
  17991. Ffreq Tush
  17992. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(36)})),
  17993. Fdl: *(*struct {
  17994. Flen1 [0]Tush
  17995. Fdad Tush
  17996. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17997. },
  17998. 275: {
  17999. Ffc: *(*struct {
  18000. Fcode [0]Tush
  18001. Ffreq Tush
  18002. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(100)})),
  18003. Fdl: *(*struct {
  18004. Flen1 [0]Tush
  18005. Fdad Tush
  18006. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  18007. },
  18008. 276: {
  18009. Ffc: *(*struct {
  18010. Fcode [0]Tush
  18011. Ffreq Tush
  18012. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(20)})),
  18013. Fdl: *(*struct {
  18014. Flen1 [0]Tush
  18015. Fdad Tush
  18016. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  18017. },
  18018. 277: {
  18019. Ffc: *(*struct {
  18020. Fcode [0]Tush
  18021. Ffreq Tush
  18022. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(84)})),
  18023. Fdl: *(*struct {
  18024. Flen1 [0]Tush
  18025. Fdad Tush
  18026. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  18027. },
  18028. 278: {
  18029. Ffc: *(*struct {
  18030. Fcode [0]Tush
  18031. Ffreq Tush
  18032. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(52)})),
  18033. Fdl: *(*struct {
  18034. Flen1 [0]Tush
  18035. Fdad Tush
  18036. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  18037. },
  18038. 279: {
  18039. Ffc: *(*struct {
  18040. Fcode [0]Tush
  18041. Ffreq Tush
  18042. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(116)})),
  18043. Fdl: *(*struct {
  18044. Flen1 [0]Tush
  18045. Fdad Tush
  18046. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  18047. },
  18048. 280: {
  18049. Ffc: *(*struct {
  18050. Fcode [0]Tush
  18051. Ffreq Tush
  18052. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(3)})),
  18053. Fdl: *(*struct {
  18054. Flen1 [0]Tush
  18055. Fdad Tush
  18056. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  18057. },
  18058. 281: {
  18059. Ffc: *(*struct {
  18060. Fcode [0]Tush
  18061. Ffreq Tush
  18062. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(131)})),
  18063. Fdl: *(*struct {
  18064. Flen1 [0]Tush
  18065. Fdad Tush
  18066. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  18067. },
  18068. 282: {
  18069. Ffc: *(*struct {
  18070. Fcode [0]Tush
  18071. Ffreq Tush
  18072. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(67)})),
  18073. Fdl: *(*struct {
  18074. Flen1 [0]Tush
  18075. Fdad Tush
  18076. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  18077. },
  18078. 283: {
  18079. Ffc: *(*struct {
  18080. Fcode [0]Tush
  18081. Ffreq Tush
  18082. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(195)})),
  18083. Fdl: *(*struct {
  18084. Flen1 [0]Tush
  18085. Fdad Tush
  18086. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  18087. },
  18088. 284: {
  18089. Ffc: *(*struct {
  18090. Fcode [0]Tush
  18091. Ffreq Tush
  18092. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(35)})),
  18093. Fdl: *(*struct {
  18094. Flen1 [0]Tush
  18095. Fdad Tush
  18096. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  18097. },
  18098. 285: {
  18099. Ffc: *(*struct {
  18100. Fcode [0]Tush
  18101. Ffreq Tush
  18102. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(163)})),
  18103. Fdl: *(*struct {
  18104. Flen1 [0]Tush
  18105. Fdad Tush
  18106. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  18107. },
  18108. 286: {
  18109. Ffc: *(*struct {
  18110. Fcode [0]Tush
  18111. Ffreq Tush
  18112. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(99)})),
  18113. Fdl: *(*struct {
  18114. Flen1 [0]Tush
  18115. Fdad Tush
  18116. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  18117. },
  18118. 287: {
  18119. Ffc: *(*struct {
  18120. Fcode [0]Tush
  18121. Ffreq Tush
  18122. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(227)})),
  18123. Fdl: *(*struct {
  18124. Flen1 [0]Tush
  18125. Fdad Tush
  18126. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  18127. },
  18128. }
  18129. var _static_dtree = [30]Tct_data{
  18130. 0: {
  18131. Fdl: *(*struct {
  18132. Flen1 [0]Tush
  18133. Fdad Tush
  18134. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18135. },
  18136. 1: {
  18137. Ffc: *(*struct {
  18138. Fcode [0]Tush
  18139. Ffreq Tush
  18140. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(16)})),
  18141. Fdl: *(*struct {
  18142. Flen1 [0]Tush
  18143. Fdad Tush
  18144. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18145. },
  18146. 2: {
  18147. Ffc: *(*struct {
  18148. Fcode [0]Tush
  18149. Ffreq Tush
  18150. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  18151. Fdl: *(*struct {
  18152. Flen1 [0]Tush
  18153. Fdad Tush
  18154. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18155. },
  18156. 3: {
  18157. Ffc: *(*struct {
  18158. Fcode [0]Tush
  18159. Ffreq Tush
  18160. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(24)})),
  18161. Fdl: *(*struct {
  18162. Flen1 [0]Tush
  18163. Fdad Tush
  18164. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18165. },
  18166. 4: {
  18167. Ffc: *(*struct {
  18168. Fcode [0]Tush
  18169. Ffreq Tush
  18170. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(4)})),
  18171. Fdl: *(*struct {
  18172. Flen1 [0]Tush
  18173. Fdad Tush
  18174. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18175. },
  18176. 5: {
  18177. Ffc: *(*struct {
  18178. Fcode [0]Tush
  18179. Ffreq Tush
  18180. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(20)})),
  18181. Fdl: *(*struct {
  18182. Flen1 [0]Tush
  18183. Fdad Tush
  18184. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18185. },
  18186. 6: {
  18187. Ffc: *(*struct {
  18188. Fcode [0]Tush
  18189. Ffreq Tush
  18190. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(12)})),
  18191. Fdl: *(*struct {
  18192. Flen1 [0]Tush
  18193. Fdad Tush
  18194. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18195. },
  18196. 7: {
  18197. Ffc: *(*struct {
  18198. Fcode [0]Tush
  18199. Ffreq Tush
  18200. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(28)})),
  18201. Fdl: *(*struct {
  18202. Flen1 [0]Tush
  18203. Fdad Tush
  18204. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18205. },
  18206. 8: {
  18207. Ffc: *(*struct {
  18208. Fcode [0]Tush
  18209. Ffreq Tush
  18210. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(2)})),
  18211. Fdl: *(*struct {
  18212. Flen1 [0]Tush
  18213. Fdad Tush
  18214. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18215. },
  18216. 9: {
  18217. Ffc: *(*struct {
  18218. Fcode [0]Tush
  18219. Ffreq Tush
  18220. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(18)})),
  18221. Fdl: *(*struct {
  18222. Flen1 [0]Tush
  18223. Fdad Tush
  18224. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18225. },
  18226. 10: {
  18227. Ffc: *(*struct {
  18228. Fcode [0]Tush
  18229. Ffreq Tush
  18230. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(10)})),
  18231. Fdl: *(*struct {
  18232. Flen1 [0]Tush
  18233. Fdad Tush
  18234. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18235. },
  18236. 11: {
  18237. Ffc: *(*struct {
  18238. Fcode [0]Tush
  18239. Ffreq Tush
  18240. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(26)})),
  18241. Fdl: *(*struct {
  18242. Flen1 [0]Tush
  18243. Fdad Tush
  18244. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18245. },
  18246. 12: {
  18247. Ffc: *(*struct {
  18248. Fcode [0]Tush
  18249. Ffreq Tush
  18250. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(6)})),
  18251. Fdl: *(*struct {
  18252. Flen1 [0]Tush
  18253. Fdad Tush
  18254. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18255. },
  18256. 13: {
  18257. Ffc: *(*struct {
  18258. Fcode [0]Tush
  18259. Ffreq Tush
  18260. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(22)})),
  18261. Fdl: *(*struct {
  18262. Flen1 [0]Tush
  18263. Fdad Tush
  18264. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18265. },
  18266. 14: {
  18267. Ffc: *(*struct {
  18268. Fcode [0]Tush
  18269. Ffreq Tush
  18270. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(14)})),
  18271. Fdl: *(*struct {
  18272. Flen1 [0]Tush
  18273. Fdad Tush
  18274. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18275. },
  18276. 15: {
  18277. Ffc: *(*struct {
  18278. Fcode [0]Tush
  18279. Ffreq Tush
  18280. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(30)})),
  18281. Fdl: *(*struct {
  18282. Flen1 [0]Tush
  18283. Fdad Tush
  18284. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18285. },
  18286. 16: {
  18287. Ffc: *(*struct {
  18288. Fcode [0]Tush
  18289. Ffreq Tush
  18290. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(1)})),
  18291. Fdl: *(*struct {
  18292. Flen1 [0]Tush
  18293. Fdad Tush
  18294. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18295. },
  18296. 17: {
  18297. Ffc: *(*struct {
  18298. Fcode [0]Tush
  18299. Ffreq Tush
  18300. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(17)})),
  18301. Fdl: *(*struct {
  18302. Flen1 [0]Tush
  18303. Fdad Tush
  18304. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18305. },
  18306. 18: {
  18307. Ffc: *(*struct {
  18308. Fcode [0]Tush
  18309. Ffreq Tush
  18310. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  18311. Fdl: *(*struct {
  18312. Flen1 [0]Tush
  18313. Fdad Tush
  18314. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18315. },
  18316. 19: {
  18317. Ffc: *(*struct {
  18318. Fcode [0]Tush
  18319. Ffreq Tush
  18320. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(25)})),
  18321. Fdl: *(*struct {
  18322. Flen1 [0]Tush
  18323. Fdad Tush
  18324. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18325. },
  18326. 20: {
  18327. Ffc: *(*struct {
  18328. Fcode [0]Tush
  18329. Ffreq Tush
  18330. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18331. Fdl: *(*struct {
  18332. Flen1 [0]Tush
  18333. Fdad Tush
  18334. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18335. },
  18336. 21: {
  18337. Ffc: *(*struct {
  18338. Fcode [0]Tush
  18339. Ffreq Tush
  18340. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(21)})),
  18341. Fdl: *(*struct {
  18342. Flen1 [0]Tush
  18343. Fdad Tush
  18344. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18345. },
  18346. 22: {
  18347. Ffc: *(*struct {
  18348. Fcode [0]Tush
  18349. Ffreq Tush
  18350. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(13)})),
  18351. Fdl: *(*struct {
  18352. Flen1 [0]Tush
  18353. Fdad Tush
  18354. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18355. },
  18356. 23: {
  18357. Ffc: *(*struct {
  18358. Fcode [0]Tush
  18359. Ffreq Tush
  18360. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(29)})),
  18361. Fdl: *(*struct {
  18362. Flen1 [0]Tush
  18363. Fdad Tush
  18364. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18365. },
  18366. 24: {
  18367. Ffc: *(*struct {
  18368. Fcode [0]Tush
  18369. Ffreq Tush
  18370. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(3)})),
  18371. Fdl: *(*struct {
  18372. Flen1 [0]Tush
  18373. Fdad Tush
  18374. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18375. },
  18376. 25: {
  18377. Ffc: *(*struct {
  18378. Fcode [0]Tush
  18379. Ffreq Tush
  18380. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(19)})),
  18381. Fdl: *(*struct {
  18382. Flen1 [0]Tush
  18383. Fdad Tush
  18384. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18385. },
  18386. 26: {
  18387. Ffc: *(*struct {
  18388. Fcode [0]Tush
  18389. Ffreq Tush
  18390. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(11)})),
  18391. Fdl: *(*struct {
  18392. Flen1 [0]Tush
  18393. Fdad Tush
  18394. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18395. },
  18396. 27: {
  18397. Ffc: *(*struct {
  18398. Fcode [0]Tush
  18399. Ffreq Tush
  18400. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(27)})),
  18401. Fdl: *(*struct {
  18402. Flen1 [0]Tush
  18403. Fdad Tush
  18404. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18405. },
  18406. 28: {
  18407. Ffc: *(*struct {
  18408. Fcode [0]Tush
  18409. Ffreq Tush
  18410. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  18411. Fdl: *(*struct {
  18412. Flen1 [0]Tush
  18413. Fdad Tush
  18414. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18415. },
  18416. 29: {
  18417. Ffc: *(*struct {
  18418. Fcode [0]Tush
  18419. Ffreq Tush
  18420. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(23)})),
  18421. Fdl: *(*struct {
  18422. Flen1 [0]Tush
  18423. Fdad Tush
  18424. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18425. },
  18426. }
  18427. var _base_length = [29]int32{
  18428. 1: int32(1),
  18429. 2: int32(2),
  18430. 3: int32(3),
  18431. 4: int32(4),
  18432. 5: int32(5),
  18433. 6: int32(6),
  18434. 7: int32(7),
  18435. 8: int32(8),
  18436. 9: int32(10),
  18437. 10: int32(12),
  18438. 11: int32(14),
  18439. 12: int32(16),
  18440. 13: int32(20),
  18441. 14: int32(24),
  18442. 15: int32(28),
  18443. 16: int32(32),
  18444. 17: int32(40),
  18445. 18: int32(48),
  18446. 19: int32(56),
  18447. 20: int32(64),
  18448. 21: int32(80),
  18449. 22: int32(96),
  18450. 23: int32(112),
  18451. 24: int32(128),
  18452. 25: int32(160),
  18453. 26: int32(192),
  18454. 27: int32(224),
  18455. }
  18456. var _base_dist = [30]int32{
  18457. 1: int32(1),
  18458. 2: int32(2),
  18459. 3: int32(3),
  18460. 4: int32(4),
  18461. 5: int32(6),
  18462. 6: int32(8),
  18463. 7: int32(12),
  18464. 8: int32(16),
  18465. 9: int32(24),
  18466. 10: int32(32),
  18467. 11: int32(48),
  18468. 12: int32(64),
  18469. 13: int32(96),
  18470. 14: int32(128),
  18471. 15: int32(192),
  18472. 16: int32(256),
  18473. 17: int32(384),
  18474. 18: int32(512),
  18475. 19: int32(768),
  18476. 20: int32(1024),
  18477. 21: int32(1536),
  18478. 22: int32(2048),
  18479. 23: int32(3072),
  18480. 24: int32(4096),
  18481. 25: int32(6144),
  18482. 26: int32(8192),
  18483. 27: int32(12288),
  18484. 28: int32(16384),
  18485. 29: int32(24576),
  18486. }
  18487. var _static_l_desc = Tstatic_tree_desc{
  18488. Fstatic_tree: uintptr(unsafe.Pointer(&_static_ltree)),
  18489. Fextra_bits: uintptr(unsafe.Pointer(&_extra_lbits)),
  18490. Fextra_base: libc.Int32FromInt32(m_LITERALS) + libc.Int32FromInt32(1),
  18491. Felems: libc.Int32FromInt32(m_LITERALS) + libc.Int32FromInt32(1) + libc.Int32FromInt32(m_LENGTH_CODES),
  18492. Fmax_length: int32(m_MAX_BITS),
  18493. }
  18494. var _static_d_desc = Tstatic_tree_desc{
  18495. Fstatic_tree: uintptr(unsafe.Pointer(&_static_dtree)),
  18496. Fextra_bits: uintptr(unsafe.Pointer(&_extra_dbits)),
  18497. Felems: int32(m_D_CODES),
  18498. Fmax_length: int32(m_MAX_BITS),
  18499. }
  18500. var _static_bl_desc = Tstatic_tree_desc{
  18501. Fextra_bits: uintptr(unsafe.Pointer(&_extra_blbits)),
  18502. Felems: int32(m_BL_CODES),
  18503. Fmax_length: int32(m_MAX_BL_BITS),
  18504. }
  18505. /* ===========================================================================
  18506. * Output a short LSB first on the stream.
  18507. * IN assertion: there is enough room in pendingBuf.
  18508. */
  18509. // C documentation
  18510. //
  18511. // /* ===========================================================================
  18512. // * Reverse the first len bits of a code, using straightforward code (a faster
  18513. // * method would use a table)
  18514. // * IN assertion: 1 <= len <= 15
  18515. // */
  18516. func _bi_reverse(tls *libc.TLS, code uint32, len1 int32) (r uint32) {
  18517. var res uint32
  18518. var v1 int32
  18519. _, _ = res, v1
  18520. res = uint32(0)
  18521. for {
  18522. res |= code & uint32(1)
  18523. code >>= uint32(1)
  18524. res <<= uint32(1)
  18525. goto _2
  18526. _2:
  18527. ;
  18528. len1--
  18529. v1 = len1
  18530. if !(v1 > 0) {
  18531. break
  18532. }
  18533. }
  18534. return res >> int32(1)
  18535. }
  18536. // C documentation
  18537. //
  18538. // /* ===========================================================================
  18539. // * Flush the bit buffer, keeping at most 7 bits in it.
  18540. // */
  18541. func _bi_flush(tls *libc.TLS, s uintptr) {
  18542. var v1, v3, v5 Tulg
  18543. var v2, v4, v6, p7 uintptr
  18544. _, _, _, _, _, _, _ = v1, v2, v3, v4, v5, v6, p7
  18545. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid == int32(16) {
  18546. v2 = s + 40
  18547. v1 = *(*Tulg)(unsafe.Pointer(v2))
  18548. *(*Tulg)(unsafe.Pointer(v2))++
  18549. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v1))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  18550. v4 = s + 40
  18551. v3 = *(*Tulg)(unsafe.Pointer(v4))
  18552. *(*Tulg)(unsafe.Pointer(v4))++
  18553. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v3))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  18554. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = uint16(0)
  18555. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid = 0
  18556. } else {
  18557. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid >= int32(8) {
  18558. v6 = s + 40
  18559. v5 = *(*Tulg)(unsafe.Pointer(v6))
  18560. *(*Tulg)(unsafe.Pointer(v6))++
  18561. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v5))) = uint8((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf)
  18562. p7 = s + 5936
  18563. *(*Tush)(unsafe.Pointer(p7)) = Tush(int32(*(*Tush)(unsafe.Pointer(p7))) >> libc.Int32FromInt32(8))
  18564. *(*int32)(unsafe.Pointer(s + 5940)) -= int32(8)
  18565. }
  18566. }
  18567. }
  18568. // C documentation
  18569. //
  18570. // /* ===========================================================================
  18571. // * Flush the bit buffer and align the output on a byte boundary
  18572. // */
  18573. func _bi_windup(tls *libc.TLS, s uintptr) {
  18574. var v1, v3, v5 Tulg
  18575. var v2, v4, v6 uintptr
  18576. _, _, _, _, _, _ = v1, v2, v3, v4, v5, v6
  18577. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > int32(8) {
  18578. v2 = s + 40
  18579. v1 = *(*Tulg)(unsafe.Pointer(v2))
  18580. *(*Tulg)(unsafe.Pointer(v2))++
  18581. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v1))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  18582. v4 = s + 40
  18583. v3 = *(*Tulg)(unsafe.Pointer(v4))
  18584. *(*Tulg)(unsafe.Pointer(v4))++
  18585. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v3))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  18586. } else {
  18587. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > 0 {
  18588. v6 = s + 40
  18589. v5 = *(*Tulg)(unsafe.Pointer(v6))
  18590. *(*Tulg)(unsafe.Pointer(v6))++
  18591. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v5))) = uint8((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf)
  18592. }
  18593. }
  18594. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = uint16(0)
  18595. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid = 0
  18596. }
  18597. // C documentation
  18598. //
  18599. // /* ===========================================================================
  18600. // * Generate the codes for a given tree and bit counts (which need not be
  18601. // * optimal).
  18602. // * IN assertion: the array bl_count contains the bit length statistics for
  18603. // * the given tree and the field len is set for all tree elements.
  18604. // * OUT assertion: the field code is set for all tree elements of non
  18605. // * zero code length.
  18606. // */
  18607. func _gen_codes(tls *libc.TLS, tree uintptr, max_code int32, bl_count uintptr) {
  18608. bp := tls.Alloc(32)
  18609. defer tls.Free(32)
  18610. var bits, len1, n int32
  18611. var code uint32
  18612. var v3 Tush
  18613. var v4 uintptr
  18614. var _ /* next_code at bp+0 */ [16]Tush
  18615. _, _, _, _, _, _ = bits, code, len1, n, v3, v4 /* next code value for each bit length */
  18616. code = uint32(0) /* code index */
  18617. /* The distribution counts are first used to generate the code values
  18618. * without bit reversal.
  18619. */
  18620. bits = int32(1)
  18621. for {
  18622. if !(bits <= int32(m_MAX_BITS)) {
  18623. break
  18624. }
  18625. code = (code + uint32(*(*Tushf)(unsafe.Pointer(bl_count + uintptr(bits-int32(1))*2)))) << int32(1)
  18626. (*(*[16]Tush)(unsafe.Pointer(bp)))[bits] = uint16(code)
  18627. goto _1
  18628. _1:
  18629. ;
  18630. bits++
  18631. }
  18632. /* Check that the bit counts in bl_count are consistent. The last code
  18633. * must be all ones.
  18634. */
  18635. n = 0
  18636. for {
  18637. if !(n <= max_code) {
  18638. break
  18639. }
  18640. len1 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(n)*4 + 2)))
  18641. if len1 == 0 {
  18642. goto _2
  18643. }
  18644. /* Now reverse the bits */
  18645. v4 = bp + uintptr(len1)*2
  18646. v3 = *(*Tush)(unsafe.Pointer(v4))
  18647. *(*Tush)(unsafe.Pointer(v4))++
  18648. *(*Tush)(unsafe.Pointer(tree + uintptr(n)*4)) = uint16(_bi_reverse(tls, uint32(v3), len1))
  18649. goto _2
  18650. _2:
  18651. ;
  18652. n++
  18653. }
  18654. }
  18655. /* Send a code of the given tree. c and tree must not have side effects */
  18656. /* ===========================================================================
  18657. * Send a value on a given number of bits.
  18658. * IN assertion: length <= 16 and value fits in length bits.
  18659. */
  18660. /* the arguments must not have side effects */
  18661. // C documentation
  18662. //
  18663. // /* ===========================================================================
  18664. // * Initialize the various 'constant' tables.
  18665. // */
  18666. func _tr_static_init(tls *libc.TLS) {
  18667. }
  18668. /* ===========================================================================
  18669. * Generate the file trees.h describing the static trees.
  18670. */
  18671. // C documentation
  18672. //
  18673. // /* ===========================================================================
  18674. // * Initialize a new block.
  18675. // */
  18676. func _init_block(tls *libc.TLS, s uintptr) {
  18677. var n int32
  18678. var v4 Tulg
  18679. var v5 TuInt
  18680. _, _, _ = n, v4, v5 /* iterates over tree elements */
  18681. /* Initialize the trees. */
  18682. n = 0
  18683. for {
  18684. if !(n < libc.Int32FromInt32(m_LITERALS)+libc.Int32FromInt32(1)+libc.Int32FromInt32(m_LENGTH_CODES)) {
  18685. break
  18686. }
  18687. *(*Tush)(unsafe.Pointer(s + 212 + uintptr(n)*4)) = uint16(0)
  18688. goto _1
  18689. _1:
  18690. ;
  18691. n++
  18692. }
  18693. n = 0
  18694. for {
  18695. if !(n < int32(m_D_CODES)) {
  18696. break
  18697. }
  18698. *(*Tush)(unsafe.Pointer(s + 2504 + uintptr(n)*4)) = uint16(0)
  18699. goto _2
  18700. _2:
  18701. ;
  18702. n++
  18703. }
  18704. n = 0
  18705. for {
  18706. if !(n < int32(m_BL_CODES)) {
  18707. break
  18708. }
  18709. *(*Tush)(unsafe.Pointer(s + 2748 + uintptr(n)*4)) = uint16(0)
  18710. goto _3
  18711. _3:
  18712. ;
  18713. n++
  18714. }
  18715. *(*Tush)(unsafe.Pointer(s + 212 + 256*4)) = uint16(1)
  18716. v4 = libc.Uint64FromInt64(0)
  18717. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatic_len = v4
  18718. (*Tdeflate_state)(unsafe.Pointer(s)).Fopt_len = v4
  18719. v5 = libc.Uint32FromInt32(0)
  18720. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatches = v5
  18721. (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next = v5
  18722. }
  18723. // C documentation
  18724. //
  18725. // /* ===========================================================================
  18726. // * Initialize the tree data structures for a new zlib stream.
  18727. // */
  18728. func x__tr_init(tls *libc.TLS, s uintptr) {
  18729. _tr_static_init(tls)
  18730. (*Tdeflate_state)(unsafe.Pointer(s)).Fl_desc.Fdyn_tree = s + 212
  18731. (*Tdeflate_state)(unsafe.Pointer(s)).Fl_desc.Fstat_desc = uintptr(unsafe.Pointer(&_static_l_desc))
  18732. (*Tdeflate_state)(unsafe.Pointer(s)).Fd_desc.Fdyn_tree = s + 2504
  18733. (*Tdeflate_state)(unsafe.Pointer(s)).Fd_desc.Fstat_desc = uintptr(unsafe.Pointer(&_static_d_desc))
  18734. (*Tdeflate_state)(unsafe.Pointer(s)).Fbl_desc.Fdyn_tree = s + 2748
  18735. (*Tdeflate_state)(unsafe.Pointer(s)).Fbl_desc.Fstat_desc = uintptr(unsafe.Pointer(&_static_bl_desc))
  18736. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = uint16(0)
  18737. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid = 0
  18738. /* Initialize the first block of the first file: */
  18739. _init_block(tls, s)
  18740. }
  18741. /* Index within the heap array of least frequent node in the Huffman tree */
  18742. /* ===========================================================================
  18743. * Remove the smallest element from the heap and recreate the heap with
  18744. * one less element. Updates heap and heap_len.
  18745. */
  18746. /* ===========================================================================
  18747. * Compares to subtrees, using the tree depth as tie breaker when
  18748. * the subtrees have equal frequency. This minimizes the worst case length.
  18749. */
  18750. // C documentation
  18751. //
  18752. // /* ===========================================================================
  18753. // * Restore the heap property by moving down the tree starting at node k,
  18754. // * exchanging a node with the smallest of its two sons if necessary, stopping
  18755. // * when the heap property is re-established (each father smaller than its
  18756. // * two sons).
  18757. // */
  18758. func _pqdownheap(tls *libc.TLS, s uintptr, tree uintptr, k int32) {
  18759. var j, v int32
  18760. _, _ = j, v
  18761. v = *(*int32)(unsafe.Pointer(s + 3008 + uintptr(k)*4))
  18762. j = k << int32(1) /* left son of k */
  18763. for j <= (*Tdeflate_state)(unsafe.Pointer(s)).Fheap_len {
  18764. /* Set j to the smallest of the two sons: */
  18765. if j < (*Tdeflate_state)(unsafe.Pointer(s)).Fheap_len && (libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(*(*int32)(unsafe.Pointer(s + 3008 + uintptr(j+int32(1))*4)))*4))) < libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(*(*int32)(unsafe.Pointer(s + 3008 + uintptr(j)*4)))*4))) || libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(*(*int32)(unsafe.Pointer(s + 3008 + uintptr(j+int32(1))*4)))*4))) == libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(*(*int32)(unsafe.Pointer(s + 3008 + uintptr(j)*4)))*4))) && libc.Int32FromUint8(*(*Tuch)(unsafe.Pointer(s + 5308 + uintptr(*(*int32)(unsafe.Pointer(s + 3008 + uintptr(j+int32(1))*4)))))) <= libc.Int32FromUint8(*(*Tuch)(unsafe.Pointer(s + 5308 + uintptr(*(*int32)(unsafe.Pointer(s + 3008 + uintptr(j)*4))))))) {
  18766. j++
  18767. }
  18768. /* Exit if v is smaller than both sons */
  18769. if libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(v)*4))) < libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(*(*int32)(unsafe.Pointer(s + 3008 + uintptr(j)*4)))*4))) || libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(v)*4))) == libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(*(*int32)(unsafe.Pointer(s + 3008 + uintptr(j)*4)))*4))) && libc.Int32FromUint8(*(*Tuch)(unsafe.Pointer(s + 5308 + uintptr(v)))) <= libc.Int32FromUint8(*(*Tuch)(unsafe.Pointer(s + 5308 + uintptr(*(*int32)(unsafe.Pointer(s + 3008 + uintptr(j)*4)))))) {
  18770. break
  18771. }
  18772. /* Exchange v with the smallest son */
  18773. *(*int32)(unsafe.Pointer(s + 3008 + uintptr(k)*4)) = *(*int32)(unsafe.Pointer(s + 3008 + uintptr(j)*4))
  18774. k = j
  18775. /* And continue down the tree, setting j to the left son of k */
  18776. j <<= int32(1)
  18777. }
  18778. *(*int32)(unsafe.Pointer(s + 3008 + uintptr(k)*4)) = v
  18779. }
  18780. // C documentation
  18781. //
  18782. // /* ===========================================================================
  18783. // * Compute the optimal bit lengths for a tree and update the total bit length
  18784. // * for the current block.
  18785. // * IN assertion: the fields freq and dad are set, heap[heap_max] and
  18786. // * above are the tree nodes sorted by increasing frequency.
  18787. // * OUT assertions: the field len is set to the optimal bit length, the
  18788. // * array bl_count contains the frequencies for each bit length.
  18789. // * The length opt_len is updated; static_len is also updated if stree is
  18790. // * not null.
  18791. // */
  18792. func _gen_bitlen(tls *libc.TLS, s uintptr, desc uintptr) {
  18793. var base, bits, h, m, max_code, max_length, n, overflow, xbits, v5 int32
  18794. var extra, stree, tree, p3 uintptr
  18795. var f Tush
  18796. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = base, bits, extra, f, h, m, max_code, max_length, n, overflow, stree, tree, xbits, v5, p3
  18797. tree = (*Ttree_desc)(unsafe.Pointer(desc)).Fdyn_tree
  18798. max_code = (*Ttree_desc)(unsafe.Pointer(desc)).Fmax_code
  18799. stree = (*Tstatic_tree_desc)(unsafe.Pointer((*Ttree_desc)(unsafe.Pointer(desc)).Fstat_desc)).Fstatic_tree
  18800. extra = (*Tstatic_tree_desc)(unsafe.Pointer((*Ttree_desc)(unsafe.Pointer(desc)).Fstat_desc)).Fextra_bits
  18801. base = (*Tstatic_tree_desc)(unsafe.Pointer((*Ttree_desc)(unsafe.Pointer(desc)).Fstat_desc)).Fextra_base
  18802. max_length = (*Tstatic_tree_desc)(unsafe.Pointer((*Ttree_desc)(unsafe.Pointer(desc)).Fstat_desc)).Fmax_length /* frequency */
  18803. overflow = 0 /* number of elements with bit length too large */
  18804. bits = 0
  18805. for {
  18806. if !(bits <= int32(m_MAX_BITS)) {
  18807. break
  18808. }
  18809. *(*Tush)(unsafe.Pointer(s + 2976 + uintptr(bits)*2)) = uint16(0)
  18810. goto _1
  18811. _1:
  18812. ;
  18813. bits++
  18814. }
  18815. /* In a first pass, compute the optimal bit lengths (which may
  18816. * overflow in the case of the bit length tree).
  18817. */
  18818. *(*Tush)(unsafe.Pointer(tree + uintptr(*(*int32)(unsafe.Pointer(s + 3008 + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fheap_max)*4)))*4 + 2)) = uint16(0) /* root of the heap */
  18819. h = (*Tdeflate_state)(unsafe.Pointer(s)).Fheap_max + int32(1)
  18820. for {
  18821. if !(h < libc.Int32FromInt32(2)*(libc.Int32FromInt32(m_LITERALS)+libc.Int32FromInt32(1)+libc.Int32FromInt32(m_LENGTH_CODES))+libc.Int32FromInt32(1)) {
  18822. break
  18823. }
  18824. n = *(*int32)(unsafe.Pointer(s + 3008 + uintptr(h)*4))
  18825. bits = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(*(*Tush)(unsafe.Pointer(tree + uintptr(n)*4 + 2)))*4 + 2))) + int32(1)
  18826. if bits > max_length {
  18827. bits = max_length
  18828. overflow++
  18829. }
  18830. *(*Tush)(unsafe.Pointer(tree + uintptr(n)*4 + 2)) = libc.Uint16FromInt32(bits)
  18831. /* We overwrite tree[n].Dad which is no longer needed */
  18832. if n > max_code {
  18833. goto _2
  18834. } /* not a leaf node */
  18835. *(*Tush)(unsafe.Pointer(s + 2976 + uintptr(bits)*2))++
  18836. xbits = 0
  18837. if n >= base {
  18838. xbits = *(*Tintf)(unsafe.Pointer(extra + uintptr(n-base)*4))
  18839. }
  18840. f = *(*Tush)(unsafe.Pointer(tree + uintptr(n)*4))
  18841. *(*Tulg)(unsafe.Pointer(s + 5912)) += uint64(f) * uint64(libc.Uint32FromInt32(bits+xbits))
  18842. if stree != 0 {
  18843. *(*Tulg)(unsafe.Pointer(s + 5920)) += uint64(f) * uint64(libc.Uint32FromInt32(libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(stree + uintptr(n)*4 + 2)))+xbits))
  18844. }
  18845. goto _2
  18846. _2:
  18847. ;
  18848. h++
  18849. }
  18850. if overflow == 0 {
  18851. return
  18852. }
  18853. /* This happens for example on obj2 and pic of the Calgary corpus */
  18854. /* Find the first bit length which could increase: */
  18855. for cond := true; cond; cond = overflow > 0 {
  18856. bits = max_length - int32(1)
  18857. for libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2976 + uintptr(bits)*2))) == 0 {
  18858. bits--
  18859. }
  18860. *(*Tush)(unsafe.Pointer(s + 2976 + uintptr(bits)*2))-- /* move one leaf down the tree */
  18861. p3 = s + 2976 + uintptr(bits+int32(1))*2
  18862. *(*Tush)(unsafe.Pointer(p3)) = Tush(int32(*(*Tush)(unsafe.Pointer(p3))) + libc.Int32FromInt32(2)) /* move one overflow item as its brother */
  18863. *(*Tush)(unsafe.Pointer(s + 2976 + uintptr(max_length)*2))--
  18864. /* The brother of the overflow item also moves one step up,
  18865. * but this does not affect bl_count[max_length]
  18866. */
  18867. overflow -= int32(2)
  18868. }
  18869. /* Now recompute all bit lengths, scanning in increasing frequency.
  18870. * h is still equal to HEAP_SIZE. (It is simpler to reconstruct all
  18871. * lengths instead of fixing only the wrong ones. This idea is taken
  18872. * from 'ar' written by Haruhiko Okumura.)
  18873. */
  18874. bits = max_length
  18875. for {
  18876. if !(bits != 0) {
  18877. break
  18878. }
  18879. n = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2976 + uintptr(bits)*2)))
  18880. for n != 0 {
  18881. h--
  18882. v5 = h
  18883. m = *(*int32)(unsafe.Pointer(s + 3008 + uintptr(v5)*4))
  18884. if m > max_code {
  18885. continue
  18886. }
  18887. if uint32(*(*Tush)(unsafe.Pointer(tree + uintptr(m)*4 + 2))) != libc.Uint32FromInt32(bits) {
  18888. *(*Tulg)(unsafe.Pointer(s + 5912)) += (libc.Uint64FromInt32(bits) - uint64(*(*Tush)(unsafe.Pointer(tree + uintptr(m)*4 + 2)))) * uint64(*(*Tush)(unsafe.Pointer(tree + uintptr(m)*4)))
  18889. *(*Tush)(unsafe.Pointer(tree + uintptr(m)*4 + 2)) = libc.Uint16FromInt32(bits)
  18890. }
  18891. n--
  18892. }
  18893. goto _4
  18894. _4:
  18895. ;
  18896. bits--
  18897. }
  18898. }
  18899. // C documentation
  18900. //
  18901. // /* ===========================================================================
  18902. // * Construct one Huffman tree and assigns the code bit strings and lengths.
  18903. // * Update the total bit length for the current block.
  18904. // * IN assertion: the field freq is set for all tree elements.
  18905. // * OUT assertions: the fields len and code are set to the optimal bit length
  18906. // * and corresponding code. The length opt_len is updated; static_len is
  18907. // * also updated if stree is not null. The field max_code is set.
  18908. // */
  18909. func _build_tree(tls *libc.TLS, s uintptr, desc uintptr) {
  18910. var elems, m, max_code, n, node, v11, v13, v15, v17, v19, v2, v20, v4, v5, v6, v7, v8 int32
  18911. var stree, tree, v12, v14, v16, v21, v3, v9 uintptr
  18912. var v18 Tush
  18913. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = elems, m, max_code, n, node, stree, tree, v11, v12, v13, v14, v15, v16, v17, v18, v19, v2, v20, v21, v3, v4, v5, v6, v7, v8, v9
  18914. tree = (*Ttree_desc)(unsafe.Pointer(desc)).Fdyn_tree
  18915. stree = (*Tstatic_tree_desc)(unsafe.Pointer((*Ttree_desc)(unsafe.Pointer(desc)).Fstat_desc)).Fstatic_tree
  18916. elems = (*Tstatic_tree_desc)(unsafe.Pointer((*Ttree_desc)(unsafe.Pointer(desc)).Fstat_desc)).Felems /* iterate over heap elements */
  18917. max_code = -int32(1) /* new node being created */
  18918. /* Construct the initial heap, with least frequent element in
  18919. * heap[SMALLEST]. The sons of heap[n] are heap[2*n] and heap[2*n + 1].
  18920. * heap[0] is not used.
  18921. */
  18922. (*Tdeflate_state)(unsafe.Pointer(s)).Fheap_len = 0 /* new node being created */
  18923. /* Construct the initial heap, with least frequent element in
  18924. * heap[SMALLEST]. The sons of heap[n] are heap[2*n] and heap[2*n + 1].
  18925. * heap[0] is not used.
  18926. */
  18927. (*Tdeflate_state)(unsafe.Pointer(s)).Fheap_max = libc.Int32FromInt32(2)*(libc.Int32FromInt32(m_LITERALS)+libc.Int32FromInt32(1)+libc.Int32FromInt32(m_LENGTH_CODES)) + libc.Int32FromInt32(1)
  18928. n = 0
  18929. for {
  18930. if !(n < elems) {
  18931. break
  18932. }
  18933. if libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(n)*4))) != 0 {
  18934. v3 = s + 5300
  18935. *(*int32)(unsafe.Pointer(v3))++
  18936. v2 = *(*int32)(unsafe.Pointer(v3))
  18937. v4 = n
  18938. max_code = v4
  18939. *(*int32)(unsafe.Pointer(s + 3008 + uintptr(v2)*4)) = v4
  18940. *(*Tuch)(unsafe.Pointer(s + 5308 + uintptr(n))) = uint8(0)
  18941. } else {
  18942. *(*Tush)(unsafe.Pointer(tree + uintptr(n)*4 + 2)) = uint16(0)
  18943. }
  18944. goto _1
  18945. _1:
  18946. ;
  18947. n++
  18948. }
  18949. /* The pkzip format requires that at least one distance code exists,
  18950. * and that at least one bit should be sent even if there is only one
  18951. * possible code. So to avoid special checks later on we force at least
  18952. * two codes of non zero frequency.
  18953. */
  18954. for (*Tdeflate_state)(unsafe.Pointer(s)).Fheap_len < int32(2) {
  18955. if max_code < int32(2) {
  18956. max_code++
  18957. v7 = max_code
  18958. v6 = v7
  18959. } else {
  18960. v6 = 0
  18961. }
  18962. v5 = v6
  18963. v9 = s + 5300
  18964. *(*int32)(unsafe.Pointer(v9))++
  18965. v8 = *(*int32)(unsafe.Pointer(v9))
  18966. *(*int32)(unsafe.Pointer(s + 3008 + uintptr(v8)*4)) = v5
  18967. node = v5
  18968. *(*Tush)(unsafe.Pointer(tree + uintptr(node)*4)) = uint16(1)
  18969. *(*Tuch)(unsafe.Pointer(s + 5308 + uintptr(node))) = uint8(0)
  18970. (*Tdeflate_state)(unsafe.Pointer(s)).Fopt_len--
  18971. if stree != 0 {
  18972. *(*Tulg)(unsafe.Pointer(s + 5920)) -= uint64(*(*Tush)(unsafe.Pointer(stree + uintptr(node)*4 + 2)))
  18973. }
  18974. /* node is 0 or 1 so it does not have extra bits */
  18975. }
  18976. (*Ttree_desc)(unsafe.Pointer(desc)).Fmax_code = max_code
  18977. /* The elements heap[heap_len/2 + 1 .. heap_len] are leaves of the tree,
  18978. * establish sub-heaps of increasing lengths:
  18979. */
  18980. n = (*Tdeflate_state)(unsafe.Pointer(s)).Fheap_len / int32(2)
  18981. for {
  18982. if !(n >= int32(1)) {
  18983. break
  18984. }
  18985. _pqdownheap(tls, s, tree, n)
  18986. goto _10
  18987. _10:
  18988. ;
  18989. n--
  18990. }
  18991. /* Construct the Huffman tree by repeatedly combining the least two
  18992. * frequent nodes.
  18993. */
  18994. node = elems /* next internal node of the tree */
  18995. for cond := true; cond; cond = (*Tdeflate_state)(unsafe.Pointer(s)).Fheap_len >= int32(2) {
  18996. n = *(*int32)(unsafe.Pointer(s + 3008 + 1*4))
  18997. v12 = s + 5300
  18998. v11 = *(*int32)(unsafe.Pointer(v12))
  18999. *(*int32)(unsafe.Pointer(v12))--
  19000. *(*int32)(unsafe.Pointer(s + 3008 + 1*4)) = *(*int32)(unsafe.Pointer(s + 3008 + uintptr(v11)*4))
  19001. _pqdownheap(tls, s, tree, int32(m_SMALLEST)) /* n = node of least frequency */
  19002. m = *(*int32)(unsafe.Pointer(s + 3008 + 1*4)) /* m = node of next least frequency */
  19003. v14 = s + 5304
  19004. *(*int32)(unsafe.Pointer(v14))--
  19005. v13 = *(*int32)(unsafe.Pointer(v14))
  19006. *(*int32)(unsafe.Pointer(s + 3008 + uintptr(v13)*4)) = n /* keep the nodes sorted by frequency */
  19007. v16 = s + 5304
  19008. *(*int32)(unsafe.Pointer(v16))--
  19009. v15 = *(*int32)(unsafe.Pointer(v16))
  19010. *(*int32)(unsafe.Pointer(s + 3008 + uintptr(v15)*4)) = m
  19011. /* Create a new node father of n and m */
  19012. *(*Tush)(unsafe.Pointer(tree + uintptr(node)*4)) = libc.Uint16FromInt32(libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(n)*4))) + libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(m)*4))))
  19013. if libc.Int32FromUint8(*(*Tuch)(unsafe.Pointer(s + 5308 + uintptr(n)))) >= libc.Int32FromUint8(*(*Tuch)(unsafe.Pointer(s + 5308 + uintptr(m)))) {
  19014. v17 = libc.Int32FromUint8(*(*Tuch)(unsafe.Pointer(s + 5308 + uintptr(n))))
  19015. } else {
  19016. v17 = libc.Int32FromUint8(*(*Tuch)(unsafe.Pointer(s + 5308 + uintptr(m))))
  19017. }
  19018. *(*Tuch)(unsafe.Pointer(s + 5308 + uintptr(node))) = libc.Uint8FromInt32(v17 + libc.Int32FromInt32(1))
  19019. v18 = libc.Uint16FromInt32(node)
  19020. *(*Tush)(unsafe.Pointer(tree + uintptr(m)*4 + 2)) = v18
  19021. *(*Tush)(unsafe.Pointer(tree + uintptr(n)*4 + 2)) = v18
  19022. /* and insert the new node in the heap */
  19023. v19 = node
  19024. node++
  19025. *(*int32)(unsafe.Pointer(s + 3008 + 1*4)) = v19
  19026. _pqdownheap(tls, s, tree, int32(m_SMALLEST))
  19027. }
  19028. v21 = s + 5304
  19029. *(*int32)(unsafe.Pointer(v21))--
  19030. v20 = *(*int32)(unsafe.Pointer(v21))
  19031. *(*int32)(unsafe.Pointer(s + 3008 + uintptr(v20)*4)) = *(*int32)(unsafe.Pointer(s + 3008 + 1*4))
  19032. /* At this point, the fields freq and dad are set. We can now
  19033. * generate the bit lengths.
  19034. */
  19035. _gen_bitlen(tls, s, desc)
  19036. /* The field len is now set, we can generate the bit codes */
  19037. _gen_codes(tls, tree, max_code, s+2976)
  19038. }
  19039. // C documentation
  19040. //
  19041. // /* ===========================================================================
  19042. // * Scan a literal or distance tree to determine the frequencies of the codes
  19043. // * in the bit length tree.
  19044. // */
  19045. func _scan_tree(tls *libc.TLS, s uintptr, tree uintptr, max_code int32) {
  19046. var count, curlen, max_count, min_count, n, nextlen, prevlen, v2 int32
  19047. var p3 uintptr
  19048. _, _, _, _, _, _, _, _, _ = count, curlen, max_count, min_count, n, nextlen, prevlen, v2, p3 /* iterates over all tree elements */
  19049. prevlen = -int32(1) /* length of current code */
  19050. nextlen = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + 2))) /* length of next code */
  19051. count = 0 /* repeat count of the current code */
  19052. max_count = int32(7) /* max repeat count */
  19053. min_count = int32(4) /* min repeat count */
  19054. if nextlen == 0 {
  19055. max_count = int32(138)
  19056. min_count = libc.Int32FromInt32(3)
  19057. }
  19058. *(*Tush)(unsafe.Pointer(tree + uintptr(max_code+int32(1))*4 + 2)) = libc.Uint16FromInt32(0xffff) /* guard */
  19059. n = 0
  19060. for {
  19061. if !(n <= max_code) {
  19062. break
  19063. }
  19064. curlen = nextlen
  19065. nextlen = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(n+int32(1))*4 + 2)))
  19066. count++
  19067. v2 = count
  19068. if v2 < max_count && curlen == nextlen {
  19069. goto _1
  19070. } else {
  19071. if count < min_count {
  19072. p3 = s + 2748 + uintptr(curlen)*4
  19073. *(*Tush)(unsafe.Pointer(p3)) = Tush(int32(*(*Tush)(unsafe.Pointer(p3))) + count)
  19074. } else {
  19075. if curlen != 0 {
  19076. if curlen != prevlen {
  19077. *(*Tush)(unsafe.Pointer(s + 2748 + uintptr(curlen)*4))++
  19078. }
  19079. *(*Tush)(unsafe.Pointer(s + 2748 + 16*4))++
  19080. } else {
  19081. if count <= int32(10) {
  19082. *(*Tush)(unsafe.Pointer(s + 2748 + 17*4))++
  19083. } else {
  19084. *(*Tush)(unsafe.Pointer(s + 2748 + 18*4))++
  19085. }
  19086. }
  19087. }
  19088. }
  19089. count = 0
  19090. prevlen = curlen
  19091. if nextlen == 0 {
  19092. max_count = int32(138)
  19093. min_count = libc.Int32FromInt32(3)
  19094. } else {
  19095. if curlen == nextlen {
  19096. max_count = int32(6)
  19097. min_count = libc.Int32FromInt32(3)
  19098. } else {
  19099. max_count = int32(7)
  19100. min_count = libc.Int32FromInt32(4)
  19101. }
  19102. }
  19103. goto _1
  19104. _1:
  19105. ;
  19106. n++
  19107. }
  19108. }
  19109. // C documentation
  19110. //
  19111. // /* ===========================================================================
  19112. // * Send a literal or distance tree in compressed form, using the codes in
  19113. // * bl_tree.
  19114. // */
  19115. func _send_tree(tls *libc.TLS, s uintptr, tree uintptr, max_code int32) {
  19116. var count, curlen, len1, len11, len2, len3, len4, len5, len6, len7, max_count, min_count, n, nextlen, prevlen, val, val1, val2, val3, val4, val5, val6, val7, v2, v3 int32
  19117. var v12, v14, v18, v20, v24, v26, v30, v32, v36, v38, v42, v44, v48, v50, v6, v8 Tulg
  19118. var v13, v15, v19, v21, v25, v27, v31, v33, v37, v39, v43, v45, v49, v51, v7, v9, p10, p11, p16, p17, p22, p23, p28, p29, p34, p35, p40, p41, p46, p47, p5, p52 uintptr
  19119. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = count, curlen, len1, len11, len2, len3, len4, len5, len6, len7, max_count, min_count, n, nextlen, prevlen, val, val1, val2, val3, val4, val5, val6, val7, v12, v13, v14, v15, v18, v19, v2, v20, v21, v24, v25, v26, v27, v3, v30, v31, v32, v33, v36, v37, v38, v39, v42, v43, v44, v45, v48, v49, v50, v51, v6, v7, v8, v9, p10, p11, p16, p17, p22, p23, p28, p29, p34, p35, p40, p41, p46, p47, p5, p52 /* iterates over all tree elements */
  19120. prevlen = -int32(1) /* length of current code */
  19121. nextlen = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + 2))) /* length of next code */
  19122. count = 0 /* repeat count of the current code */
  19123. max_count = int32(7) /* max repeat count */
  19124. min_count = int32(4) /* min repeat count */
  19125. /* tree[max_code + 1].Len = -1; */ /* guard already set */
  19126. if nextlen == 0 {
  19127. max_count = int32(138)
  19128. min_count = libc.Int32FromInt32(3)
  19129. }
  19130. n = 0
  19131. for {
  19132. if !(n <= max_code) {
  19133. break
  19134. }
  19135. curlen = nextlen
  19136. nextlen = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(n+int32(1))*4 + 2)))
  19137. count++
  19138. v2 = count
  19139. if v2 < max_count && curlen == nextlen {
  19140. goto _1
  19141. } else {
  19142. if count < min_count {
  19143. for {
  19144. len1 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2748 + uintptr(curlen)*4 + 2)))
  19145. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len1 {
  19146. val = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2748 + uintptr(curlen)*4)))
  19147. p5 = s + 5936
  19148. *(*Tush)(unsafe.Pointer(p5)) = Tush(int32(*(*Tush)(unsafe.Pointer(p5))) | libc.Int32FromUint16(libc.Uint16FromInt32(val))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19149. v7 = s + 40
  19150. v6 = *(*Tulg)(unsafe.Pointer(v7))
  19151. *(*Tulg)(unsafe.Pointer(v7))++
  19152. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v6))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19153. v9 = s + 40
  19154. v8 = *(*Tulg)(unsafe.Pointer(v9))
  19155. *(*Tulg)(unsafe.Pointer(v9))++
  19156. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v8))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19157. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19158. *(*int32)(unsafe.Pointer(s + 5940)) += len1 - int32(m_Buf_size)
  19159. } else {
  19160. p10 = s + 5936
  19161. *(*Tush)(unsafe.Pointer(p10)) = Tush(int32(*(*Tush)(unsafe.Pointer(p10))) | libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2748 + uintptr(curlen)*4)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19162. *(*int32)(unsafe.Pointer(s + 5940)) += len1
  19163. }
  19164. goto _4
  19165. _4:
  19166. ;
  19167. count--
  19168. v3 = count
  19169. if !(v3 != 0) {
  19170. break
  19171. }
  19172. }
  19173. } else {
  19174. if curlen != 0 {
  19175. if curlen != prevlen {
  19176. len11 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2748 + uintptr(curlen)*4 + 2)))
  19177. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len11 {
  19178. val1 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2748 + uintptr(curlen)*4)))
  19179. p11 = s + 5936
  19180. *(*Tush)(unsafe.Pointer(p11)) = Tush(int32(*(*Tush)(unsafe.Pointer(p11))) | libc.Int32FromUint16(libc.Uint16FromInt32(val1))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19181. v13 = s + 40
  19182. v12 = *(*Tulg)(unsafe.Pointer(v13))
  19183. *(*Tulg)(unsafe.Pointer(v13))++
  19184. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v12))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19185. v15 = s + 40
  19186. v14 = *(*Tulg)(unsafe.Pointer(v15))
  19187. *(*Tulg)(unsafe.Pointer(v15))++
  19188. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v14))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19189. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val1)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19190. *(*int32)(unsafe.Pointer(s + 5940)) += len11 - int32(m_Buf_size)
  19191. } else {
  19192. p16 = s + 5936
  19193. *(*Tush)(unsafe.Pointer(p16)) = Tush(int32(*(*Tush)(unsafe.Pointer(p16))) | libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2748 + uintptr(curlen)*4)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19194. *(*int32)(unsafe.Pointer(s + 5940)) += len11
  19195. }
  19196. count--
  19197. }
  19198. len2 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2748 + 16*4 + 2)))
  19199. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len2 {
  19200. val2 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2748 + 16*4)))
  19201. p17 = s + 5936
  19202. *(*Tush)(unsafe.Pointer(p17)) = Tush(int32(*(*Tush)(unsafe.Pointer(p17))) | libc.Int32FromUint16(libc.Uint16FromInt32(val2))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19203. v19 = s + 40
  19204. v18 = *(*Tulg)(unsafe.Pointer(v19))
  19205. *(*Tulg)(unsafe.Pointer(v19))++
  19206. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v18))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19207. v21 = s + 40
  19208. v20 = *(*Tulg)(unsafe.Pointer(v21))
  19209. *(*Tulg)(unsafe.Pointer(v21))++
  19210. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v20))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19211. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val2)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19212. *(*int32)(unsafe.Pointer(s + 5940)) += len2 - int32(m_Buf_size)
  19213. } else {
  19214. p22 = s + 5936
  19215. *(*Tush)(unsafe.Pointer(p22)) = Tush(int32(*(*Tush)(unsafe.Pointer(p22))) | libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2748 + 16*4)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19216. *(*int32)(unsafe.Pointer(s + 5940)) += len2
  19217. }
  19218. len3 = int32(2)
  19219. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len3 {
  19220. val3 = count - int32(3)
  19221. p23 = s + 5936
  19222. *(*Tush)(unsafe.Pointer(p23)) = Tush(int32(*(*Tush)(unsafe.Pointer(p23))) | libc.Int32FromUint16(libc.Uint16FromInt32(val3))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19223. v25 = s + 40
  19224. v24 = *(*Tulg)(unsafe.Pointer(v25))
  19225. *(*Tulg)(unsafe.Pointer(v25))++
  19226. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v24))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19227. v27 = s + 40
  19228. v26 = *(*Tulg)(unsafe.Pointer(v27))
  19229. *(*Tulg)(unsafe.Pointer(v27))++
  19230. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v26))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19231. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val3)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19232. *(*int32)(unsafe.Pointer(s + 5940)) += len3 - int32(m_Buf_size)
  19233. } else {
  19234. p28 = s + 5936
  19235. *(*Tush)(unsafe.Pointer(p28)) = Tush(int32(*(*Tush)(unsafe.Pointer(p28))) | libc.Int32FromUint16(libc.Uint16FromInt32(count-libc.Int32FromInt32(3)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19236. *(*int32)(unsafe.Pointer(s + 5940)) += len3
  19237. }
  19238. } else {
  19239. if count <= int32(10) {
  19240. len4 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2748 + 17*4 + 2)))
  19241. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len4 {
  19242. val4 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2748 + 17*4)))
  19243. p29 = s + 5936
  19244. *(*Tush)(unsafe.Pointer(p29)) = Tush(int32(*(*Tush)(unsafe.Pointer(p29))) | libc.Int32FromUint16(libc.Uint16FromInt32(val4))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19245. v31 = s + 40
  19246. v30 = *(*Tulg)(unsafe.Pointer(v31))
  19247. *(*Tulg)(unsafe.Pointer(v31))++
  19248. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v30))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19249. v33 = s + 40
  19250. v32 = *(*Tulg)(unsafe.Pointer(v33))
  19251. *(*Tulg)(unsafe.Pointer(v33))++
  19252. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v32))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19253. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val4)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19254. *(*int32)(unsafe.Pointer(s + 5940)) += len4 - int32(m_Buf_size)
  19255. } else {
  19256. p34 = s + 5936
  19257. *(*Tush)(unsafe.Pointer(p34)) = Tush(int32(*(*Tush)(unsafe.Pointer(p34))) | libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2748 + 17*4)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19258. *(*int32)(unsafe.Pointer(s + 5940)) += len4
  19259. }
  19260. len5 = int32(3)
  19261. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len5 {
  19262. val5 = count - int32(3)
  19263. p35 = s + 5936
  19264. *(*Tush)(unsafe.Pointer(p35)) = Tush(int32(*(*Tush)(unsafe.Pointer(p35))) | libc.Int32FromUint16(libc.Uint16FromInt32(val5))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19265. v37 = s + 40
  19266. v36 = *(*Tulg)(unsafe.Pointer(v37))
  19267. *(*Tulg)(unsafe.Pointer(v37))++
  19268. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v36))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19269. v39 = s + 40
  19270. v38 = *(*Tulg)(unsafe.Pointer(v39))
  19271. *(*Tulg)(unsafe.Pointer(v39))++
  19272. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v38))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19273. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val5)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19274. *(*int32)(unsafe.Pointer(s + 5940)) += len5 - int32(m_Buf_size)
  19275. } else {
  19276. p40 = s + 5936
  19277. *(*Tush)(unsafe.Pointer(p40)) = Tush(int32(*(*Tush)(unsafe.Pointer(p40))) | libc.Int32FromUint16(libc.Uint16FromInt32(count-libc.Int32FromInt32(3)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19278. *(*int32)(unsafe.Pointer(s + 5940)) += len5
  19279. }
  19280. } else {
  19281. len6 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2748 + 18*4 + 2)))
  19282. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len6 {
  19283. val6 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2748 + 18*4)))
  19284. p41 = s + 5936
  19285. *(*Tush)(unsafe.Pointer(p41)) = Tush(int32(*(*Tush)(unsafe.Pointer(p41))) | libc.Int32FromUint16(libc.Uint16FromInt32(val6))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19286. v43 = s + 40
  19287. v42 = *(*Tulg)(unsafe.Pointer(v43))
  19288. *(*Tulg)(unsafe.Pointer(v43))++
  19289. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v42))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19290. v45 = s + 40
  19291. v44 = *(*Tulg)(unsafe.Pointer(v45))
  19292. *(*Tulg)(unsafe.Pointer(v45))++
  19293. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v44))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19294. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val6)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19295. *(*int32)(unsafe.Pointer(s + 5940)) += len6 - int32(m_Buf_size)
  19296. } else {
  19297. p46 = s + 5936
  19298. *(*Tush)(unsafe.Pointer(p46)) = Tush(int32(*(*Tush)(unsafe.Pointer(p46))) | libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2748 + 18*4)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19299. *(*int32)(unsafe.Pointer(s + 5940)) += len6
  19300. }
  19301. len7 = int32(7)
  19302. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len7 {
  19303. val7 = count - int32(11)
  19304. p47 = s + 5936
  19305. *(*Tush)(unsafe.Pointer(p47)) = Tush(int32(*(*Tush)(unsafe.Pointer(p47))) | libc.Int32FromUint16(libc.Uint16FromInt32(val7))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19306. v49 = s + 40
  19307. v48 = *(*Tulg)(unsafe.Pointer(v49))
  19308. *(*Tulg)(unsafe.Pointer(v49))++
  19309. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v48))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19310. v51 = s + 40
  19311. v50 = *(*Tulg)(unsafe.Pointer(v51))
  19312. *(*Tulg)(unsafe.Pointer(v51))++
  19313. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v50))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19314. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val7)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19315. *(*int32)(unsafe.Pointer(s + 5940)) += len7 - int32(m_Buf_size)
  19316. } else {
  19317. p52 = s + 5936
  19318. *(*Tush)(unsafe.Pointer(p52)) = Tush(int32(*(*Tush)(unsafe.Pointer(p52))) | libc.Int32FromUint16(libc.Uint16FromInt32(count-libc.Int32FromInt32(11)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19319. *(*int32)(unsafe.Pointer(s + 5940)) += len7
  19320. }
  19321. }
  19322. }
  19323. }
  19324. }
  19325. count = 0
  19326. prevlen = curlen
  19327. if nextlen == 0 {
  19328. max_count = int32(138)
  19329. min_count = libc.Int32FromInt32(3)
  19330. } else {
  19331. if curlen == nextlen {
  19332. max_count = int32(6)
  19333. min_count = libc.Int32FromInt32(3)
  19334. } else {
  19335. max_count = int32(7)
  19336. min_count = libc.Int32FromInt32(4)
  19337. }
  19338. }
  19339. goto _1
  19340. _1:
  19341. ;
  19342. n++
  19343. }
  19344. }
  19345. // C documentation
  19346. //
  19347. // /* ===========================================================================
  19348. // * Construct the Huffman tree for the bit lengths and return the index in
  19349. // * bl_order of the last bit length code to send.
  19350. // */
  19351. func _build_bl_tree(tls *libc.TLS, s uintptr) (r int32) {
  19352. var max_blindex int32
  19353. _ = max_blindex /* index of last bit length code of non zero freq */
  19354. /* Determine the bit length frequencies for literal and distance trees */
  19355. _scan_tree(tls, s, s+212, (*Tdeflate_state)(unsafe.Pointer(s)).Fl_desc.Fmax_code)
  19356. _scan_tree(tls, s, s+2504, (*Tdeflate_state)(unsafe.Pointer(s)).Fd_desc.Fmax_code)
  19357. /* Build the bit length tree: */
  19358. _build_tree(tls, s, s+2952)
  19359. /* opt_len now includes the length of the tree representations, except the
  19360. * lengths of the bit lengths codes and the 5 + 5 + 4 bits for the counts.
  19361. */
  19362. /* Determine the number of bit length codes to send. The pkzip format
  19363. * requires that at least 4 bit length codes be sent. (appnote.txt says
  19364. * 3 but the actual value used is 4.)
  19365. */
  19366. max_blindex = libc.Int32FromInt32(m_BL_CODES) - libc.Int32FromInt32(1)
  19367. for {
  19368. if !(max_blindex >= int32(3)) {
  19369. break
  19370. }
  19371. if libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2748 + uintptr(_bl_order[max_blindex])*4 + 2))) != 0 {
  19372. break
  19373. }
  19374. goto _1
  19375. _1:
  19376. ;
  19377. max_blindex--
  19378. }
  19379. /* Update opt_len to include the bit length tree and counts */
  19380. *(*Tulg)(unsafe.Pointer(s + 5912)) += uint64(3)*(libc.Uint64FromInt32(max_blindex)+uint64(1)) + uint64(5) + uint64(5) + uint64(4)
  19381. return max_blindex
  19382. }
  19383. // C documentation
  19384. //
  19385. // /* ===========================================================================
  19386. // * Send the header for a block using dynamic Huffman trees: the counts, the
  19387. // * lengths of the bit length codes, the literal tree and the distance tree.
  19388. // * IN assertion: lcodes >= 257, dcodes >= 1, blcodes >= 4.
  19389. // */
  19390. func _send_all_trees(tls *libc.TLS, s uintptr, lcodes int32, dcodes int32, blcodes int32) {
  19391. var len1, len11, len2, len3, rank, val, val1, val2, val3 int32
  19392. var v10, v14, v16, v2, v21, v23, v4, v8 Tulg
  19393. var v11, v15, v17, v22, v24, v3, v5, v9, p1, p12, p13, p18, p20, p25, p6, p7 uintptr
  19394. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = len1, len11, len2, len3, rank, val, val1, val2, val3, v10, v11, v14, v15, v16, v17, v2, v21, v22, v23, v24, v3, v4, v5, v8, v9, p1, p12, p13, p18, p20, p25, p6, p7 /* index in bl_order */
  19395. len1 = int32(5)
  19396. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len1 {
  19397. val = lcodes - int32(257)
  19398. p1 = s + 5936
  19399. *(*Tush)(unsafe.Pointer(p1)) = Tush(int32(*(*Tush)(unsafe.Pointer(p1))) | libc.Int32FromUint16(libc.Uint16FromInt32(val))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19400. v3 = s + 40
  19401. v2 = *(*Tulg)(unsafe.Pointer(v3))
  19402. *(*Tulg)(unsafe.Pointer(v3))++
  19403. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v2))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19404. v5 = s + 40
  19405. v4 = *(*Tulg)(unsafe.Pointer(v5))
  19406. *(*Tulg)(unsafe.Pointer(v5))++
  19407. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v4))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19408. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19409. *(*int32)(unsafe.Pointer(s + 5940)) += len1 - int32(m_Buf_size)
  19410. } else {
  19411. p6 = s + 5936
  19412. *(*Tush)(unsafe.Pointer(p6)) = Tush(int32(*(*Tush)(unsafe.Pointer(p6))) | libc.Int32FromUint16(libc.Uint16FromInt32(lcodes-libc.Int32FromInt32(257)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19413. *(*int32)(unsafe.Pointer(s + 5940)) += len1
  19414. } /* not +255 as stated in appnote.txt */
  19415. len11 = int32(5)
  19416. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len11 {
  19417. val1 = dcodes - int32(1)
  19418. p7 = s + 5936
  19419. *(*Tush)(unsafe.Pointer(p7)) = Tush(int32(*(*Tush)(unsafe.Pointer(p7))) | libc.Int32FromUint16(libc.Uint16FromInt32(val1))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19420. v9 = s + 40
  19421. v8 = *(*Tulg)(unsafe.Pointer(v9))
  19422. *(*Tulg)(unsafe.Pointer(v9))++
  19423. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v8))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19424. v11 = s + 40
  19425. v10 = *(*Tulg)(unsafe.Pointer(v11))
  19426. *(*Tulg)(unsafe.Pointer(v11))++
  19427. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v10))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19428. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val1)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19429. *(*int32)(unsafe.Pointer(s + 5940)) += len11 - int32(m_Buf_size)
  19430. } else {
  19431. p12 = s + 5936
  19432. *(*Tush)(unsafe.Pointer(p12)) = Tush(int32(*(*Tush)(unsafe.Pointer(p12))) | libc.Int32FromUint16(libc.Uint16FromInt32(dcodes-libc.Int32FromInt32(1)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19433. *(*int32)(unsafe.Pointer(s + 5940)) += len11
  19434. }
  19435. len2 = int32(4)
  19436. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len2 {
  19437. val2 = blcodes - int32(4)
  19438. p13 = s + 5936
  19439. *(*Tush)(unsafe.Pointer(p13)) = Tush(int32(*(*Tush)(unsafe.Pointer(p13))) | libc.Int32FromUint16(libc.Uint16FromInt32(val2))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19440. v15 = s + 40
  19441. v14 = *(*Tulg)(unsafe.Pointer(v15))
  19442. *(*Tulg)(unsafe.Pointer(v15))++
  19443. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v14))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19444. v17 = s + 40
  19445. v16 = *(*Tulg)(unsafe.Pointer(v17))
  19446. *(*Tulg)(unsafe.Pointer(v17))++
  19447. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v16))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19448. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val2)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19449. *(*int32)(unsafe.Pointer(s + 5940)) += len2 - int32(m_Buf_size)
  19450. } else {
  19451. p18 = s + 5936
  19452. *(*Tush)(unsafe.Pointer(p18)) = Tush(int32(*(*Tush)(unsafe.Pointer(p18))) | libc.Int32FromUint16(libc.Uint16FromInt32(blcodes-libc.Int32FromInt32(4)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19453. *(*int32)(unsafe.Pointer(s + 5940)) += len2
  19454. } /* not -3 as stated in appnote.txt */
  19455. rank = 0
  19456. for {
  19457. if !(rank < blcodes) {
  19458. break
  19459. }
  19460. len3 = int32(3)
  19461. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len3 {
  19462. val3 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2748 + uintptr(_bl_order[rank])*4 + 2)))
  19463. p20 = s + 5936
  19464. *(*Tush)(unsafe.Pointer(p20)) = Tush(int32(*(*Tush)(unsafe.Pointer(p20))) | libc.Int32FromUint16(libc.Uint16FromInt32(val3))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19465. v22 = s + 40
  19466. v21 = *(*Tulg)(unsafe.Pointer(v22))
  19467. *(*Tulg)(unsafe.Pointer(v22))++
  19468. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v21))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19469. v24 = s + 40
  19470. v23 = *(*Tulg)(unsafe.Pointer(v24))
  19471. *(*Tulg)(unsafe.Pointer(v24))++
  19472. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v23))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19473. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val3)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19474. *(*int32)(unsafe.Pointer(s + 5940)) += len3 - int32(m_Buf_size)
  19475. } else {
  19476. p25 = s + 5936
  19477. *(*Tush)(unsafe.Pointer(p25)) = Tush(int32(*(*Tush)(unsafe.Pointer(p25))) | libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2748 + uintptr(_bl_order[rank])*4 + 2)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19478. *(*int32)(unsafe.Pointer(s + 5940)) += len3
  19479. }
  19480. goto _19
  19481. _19:
  19482. ;
  19483. rank++
  19484. }
  19485. _send_tree(tls, s, s+212, lcodes-int32(1)) /* literal tree */
  19486. _send_tree(tls, s, s+2504, dcodes-int32(1)) /* distance tree */
  19487. }
  19488. // C documentation
  19489. //
  19490. // /* ===========================================================================
  19491. // * Send a stored block
  19492. // */
  19493. func x__tr_stored_block(tls *libc.TLS, s uintptr, buf uintptr, stored_len Tulg, last int32) {
  19494. var len1, val int32
  19495. var v10, v12, v14, v3, v5, v8, p1, p6 uintptr
  19496. var v11, v13, v2, v4, v7, v9 Tulg
  19497. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = len1, val, v10, v11, v12, v13, v14, v2, v3, v4, v5, v7, v8, v9, p1, p6
  19498. len1 = int32(3)
  19499. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len1 {
  19500. val = libc.Int32FromInt32(m_STORED_BLOCK)<<libc.Int32FromInt32(1) + last
  19501. p1 = s + 5936
  19502. *(*Tush)(unsafe.Pointer(p1)) = Tush(int32(*(*Tush)(unsafe.Pointer(p1))) | libc.Int32FromUint16(libc.Uint16FromInt32(val))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19503. v3 = s + 40
  19504. v2 = *(*Tulg)(unsafe.Pointer(v3))
  19505. *(*Tulg)(unsafe.Pointer(v3))++
  19506. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v2))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19507. v5 = s + 40
  19508. v4 = *(*Tulg)(unsafe.Pointer(v5))
  19509. *(*Tulg)(unsafe.Pointer(v5))++
  19510. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v4))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19511. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19512. *(*int32)(unsafe.Pointer(s + 5940)) += len1 - int32(m_Buf_size)
  19513. } else {
  19514. p6 = s + 5936
  19515. *(*Tush)(unsafe.Pointer(p6)) = Tush(int32(*(*Tush)(unsafe.Pointer(p6))) | libc.Int32FromUint16(libc.Uint16FromInt32(libc.Int32FromInt32(m_STORED_BLOCK)<<libc.Int32FromInt32(1)+last))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19516. *(*int32)(unsafe.Pointer(s + 5940)) += len1
  19517. } /* send block type */
  19518. _bi_windup(tls, s) /* align on byte boundary */
  19519. v8 = s + 40
  19520. v7 = *(*Tulg)(unsafe.Pointer(v8))
  19521. *(*Tulg)(unsafe.Pointer(v8))++
  19522. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v7))) = libc.Uint8FromInt32(libc.Int32FromUint16(uint16(stored_len)) & libc.Int32FromInt32(0xff))
  19523. v10 = s + 40
  19524. v9 = *(*Tulg)(unsafe.Pointer(v10))
  19525. *(*Tulg)(unsafe.Pointer(v10))++
  19526. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v9))) = libc.Uint8FromInt32(libc.Int32FromUint16(uint16(stored_len)) >> libc.Int32FromInt32(8))
  19527. v12 = s + 40
  19528. v11 = *(*Tulg)(unsafe.Pointer(v12))
  19529. *(*Tulg)(unsafe.Pointer(v12))++
  19530. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v11))) = libc.Uint8FromInt32(libc.Int32FromUint16(uint16(^stored_len)) & libc.Int32FromInt32(0xff))
  19531. v14 = s + 40
  19532. v13 = *(*Tulg)(unsafe.Pointer(v14))
  19533. *(*Tulg)(unsafe.Pointer(v14))++
  19534. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v13))) = libc.Uint8FromInt32(libc.Int32FromUint16(uint16(^stored_len)) >> libc.Int32FromInt32(8))
  19535. if stored_len != 0 {
  19536. libc.Xmemcpy(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf+uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fpending), buf, stored_len)
  19537. }
  19538. *(*Tulg)(unsafe.Pointer(s + 40)) += stored_len
  19539. }
  19540. // C documentation
  19541. //
  19542. // /* ===========================================================================
  19543. // * Flush the bits in the bit buffer to pending output (leaves at most 7 bits)
  19544. // */
  19545. func x__tr_flush_bits(tls *libc.TLS, s uintptr) {
  19546. _bi_flush(tls, s)
  19547. }
  19548. // C documentation
  19549. //
  19550. // /* ===========================================================================
  19551. // * Send one empty static block to give enough lookahead for inflate.
  19552. // * This takes 10 bits, of which 7 may remain in the bit buffer.
  19553. // */
  19554. func x__tr_align(tls *libc.TLS, s uintptr) {
  19555. var len1, len11, val, val1 int32
  19556. var v10, v2, v4, v8 Tulg
  19557. var v11, v3, v5, v9, p1, p12, p6, p7 uintptr
  19558. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = len1, len11, val, val1, v10, v11, v2, v3, v4, v5, v8, v9, p1, p12, p6, p7
  19559. len1 = int32(3)
  19560. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len1 {
  19561. val = libc.Int32FromInt32(m_STATIC_TREES) << libc.Int32FromInt32(1)
  19562. p1 = s + 5936
  19563. *(*Tush)(unsafe.Pointer(p1)) = Tush(int32(*(*Tush)(unsafe.Pointer(p1))) | libc.Int32FromUint16(libc.Uint16FromInt32(val))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19564. v3 = s + 40
  19565. v2 = *(*Tulg)(unsafe.Pointer(v3))
  19566. *(*Tulg)(unsafe.Pointer(v3))++
  19567. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v2))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19568. v5 = s + 40
  19569. v4 = *(*Tulg)(unsafe.Pointer(v5))
  19570. *(*Tulg)(unsafe.Pointer(v5))++
  19571. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v4))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19572. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19573. *(*int32)(unsafe.Pointer(s + 5940)) += len1 - int32(m_Buf_size)
  19574. } else {
  19575. p6 = s + 5936
  19576. *(*Tush)(unsafe.Pointer(p6)) = Tush(int32(*(*Tush)(unsafe.Pointer(p6))) | libc.Int32FromUint16(libc.Uint16FromInt32(libc.Int32FromInt32(m_STATIC_TREES)<<libc.Int32FromInt32(1)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19577. *(*int32)(unsafe.Pointer(s + 5940)) += len1
  19578. }
  19579. len11 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(uintptr(unsafe.Pointer(&_static_ltree)) + 256*4 + 2)))
  19580. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len11 {
  19581. val1 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(uintptr(unsafe.Pointer(&_static_ltree)) + 256*4)))
  19582. p7 = s + 5936
  19583. *(*Tush)(unsafe.Pointer(p7)) = Tush(int32(*(*Tush)(unsafe.Pointer(p7))) | libc.Int32FromUint16(libc.Uint16FromInt32(val1))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19584. v9 = s + 40
  19585. v8 = *(*Tulg)(unsafe.Pointer(v9))
  19586. *(*Tulg)(unsafe.Pointer(v9))++
  19587. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v8))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19588. v11 = s + 40
  19589. v10 = *(*Tulg)(unsafe.Pointer(v11))
  19590. *(*Tulg)(unsafe.Pointer(v11))++
  19591. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v10))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19592. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val1)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19593. *(*int32)(unsafe.Pointer(s + 5940)) += len11 - int32(m_Buf_size)
  19594. } else {
  19595. p12 = s + 5936
  19596. *(*Tush)(unsafe.Pointer(p12)) = Tush(int32(*(*Tush)(unsafe.Pointer(p12))) | libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(uintptr(unsafe.Pointer(&_static_ltree)) + 256*4)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19597. *(*int32)(unsafe.Pointer(s + 5940)) += len11
  19598. }
  19599. _bi_flush(tls, s)
  19600. }
  19601. // C documentation
  19602. //
  19603. // /* ===========================================================================
  19604. // * Send the block data compressed using the given Huffman trees
  19605. // */
  19606. func _compress_block(tls *libc.TLS, s uintptr, ltree uintptr, dtree uintptr) {
  19607. var code, dist, sx, v1, v2, v3 uint32
  19608. var extra, lc, len1, len11, len2, len3, len4, len5, val, val1, val2, val3, val4, val5, v22 int32
  19609. var v11, v13, v17, v19, v24, v26, v30, v32, v36, v38, v5, v7 Tulg
  19610. var v12, v14, v18, v20, v25, v27, v31, v33, v37, v39, v6, v8, p10, p15, p16, p21, p23, p28, p29, p34, p35, p4, p40, p9 uintptr
  19611. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = code, dist, extra, lc, len1, len11, len2, len3, len4, len5, sx, val, val1, val2, val3, val4, val5, v1, v11, v12, v13, v14, v17, v18, v19, v2, v20, v22, v24, v25, v26, v27, v3, v30, v31, v32, v33, v36, v37, v38, v39, v5, v6, v7, v8, p10, p15, p16, p21, p23, p28, p29, p34, p35, p4, p40, p9 /* match length or unmatched char (if dist == 0) */
  19612. sx = uint32(0) /* number of extra bits to send */
  19613. if (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next != uint32(0) {
  19614. for cond := true; cond; cond = sx < (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next {
  19615. v1 = sx
  19616. sx++
  19617. dist = libc.Uint32FromInt32(libc.Int32FromUint8(*(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v1)))) & int32(0xff))
  19618. v2 = sx
  19619. sx++
  19620. dist += libc.Uint32FromInt32(libc.Int32FromUint8(*(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v2))))&libc.Int32FromInt32(0xff)) << int32(8)
  19621. v3 = sx
  19622. sx++
  19623. lc = libc.Int32FromUint8(*(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v3))))
  19624. if dist == uint32(0) {
  19625. len1 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(ltree + uintptr(lc)*4 + 2)))
  19626. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len1 {
  19627. val = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(ltree + uintptr(lc)*4)))
  19628. p4 = s + 5936
  19629. *(*Tush)(unsafe.Pointer(p4)) = Tush(int32(*(*Tush)(unsafe.Pointer(p4))) | libc.Int32FromUint16(libc.Uint16FromInt32(val))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19630. v6 = s + 40
  19631. v5 = *(*Tulg)(unsafe.Pointer(v6))
  19632. *(*Tulg)(unsafe.Pointer(v6))++
  19633. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v5))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19634. v8 = s + 40
  19635. v7 = *(*Tulg)(unsafe.Pointer(v8))
  19636. *(*Tulg)(unsafe.Pointer(v8))++
  19637. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v7))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19638. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19639. *(*int32)(unsafe.Pointer(s + 5940)) += len1 - int32(m_Buf_size)
  19640. } else {
  19641. p9 = s + 5936
  19642. *(*Tush)(unsafe.Pointer(p9)) = Tush(int32(*(*Tush)(unsafe.Pointer(p9))) | libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(ltree + uintptr(lc)*4)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19643. *(*int32)(unsafe.Pointer(s + 5940)) += len1
  19644. } /* send a literal byte */
  19645. } else {
  19646. /* Here, lc is the match length - MIN_MATCH */
  19647. code = uint32(x__length_code[lc])
  19648. len11 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(ltree + uintptr(code+uint32(m_LITERALS)+uint32(1))*4 + 2)))
  19649. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len11 {
  19650. val1 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(ltree + uintptr(code+uint32(m_LITERALS)+uint32(1))*4)))
  19651. p10 = s + 5936
  19652. *(*Tush)(unsafe.Pointer(p10)) = Tush(int32(*(*Tush)(unsafe.Pointer(p10))) | libc.Int32FromUint16(libc.Uint16FromInt32(val1))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19653. v12 = s + 40
  19654. v11 = *(*Tulg)(unsafe.Pointer(v12))
  19655. *(*Tulg)(unsafe.Pointer(v12))++
  19656. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v11))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19657. v14 = s + 40
  19658. v13 = *(*Tulg)(unsafe.Pointer(v14))
  19659. *(*Tulg)(unsafe.Pointer(v14))++
  19660. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v13))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19661. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val1)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19662. *(*int32)(unsafe.Pointer(s + 5940)) += len11 - int32(m_Buf_size)
  19663. } else {
  19664. p15 = s + 5936
  19665. *(*Tush)(unsafe.Pointer(p15)) = Tush(int32(*(*Tush)(unsafe.Pointer(p15))) | libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(ltree + uintptr(code+uint32(m_LITERALS)+uint32(1))*4)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19666. *(*int32)(unsafe.Pointer(s + 5940)) += len11
  19667. } /* send length code */
  19668. extra = _extra_lbits[code]
  19669. if extra != 0 {
  19670. lc -= _base_length[code]
  19671. len2 = extra
  19672. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len2 {
  19673. val2 = lc
  19674. p16 = s + 5936
  19675. *(*Tush)(unsafe.Pointer(p16)) = Tush(int32(*(*Tush)(unsafe.Pointer(p16))) | libc.Int32FromUint16(libc.Uint16FromInt32(val2))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19676. v18 = s + 40
  19677. v17 = *(*Tulg)(unsafe.Pointer(v18))
  19678. *(*Tulg)(unsafe.Pointer(v18))++
  19679. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v17))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19680. v20 = s + 40
  19681. v19 = *(*Tulg)(unsafe.Pointer(v20))
  19682. *(*Tulg)(unsafe.Pointer(v20))++
  19683. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v19))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19684. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val2)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19685. *(*int32)(unsafe.Pointer(s + 5940)) += len2 - int32(m_Buf_size)
  19686. } else {
  19687. p21 = s + 5936
  19688. *(*Tush)(unsafe.Pointer(p21)) = Tush(int32(*(*Tush)(unsafe.Pointer(p21))) | libc.Int32FromUint16(libc.Uint16FromInt32(lc))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19689. *(*int32)(unsafe.Pointer(s + 5940)) += len2
  19690. } /* send the extra length bits */
  19691. }
  19692. dist-- /* dist is now the match distance - 1 */
  19693. if dist < uint32(256) {
  19694. v22 = libc.Int32FromUint8(x__dist_code[dist])
  19695. } else {
  19696. v22 = libc.Int32FromUint8(x__dist_code[uint32(256)+dist>>int32(7)])
  19697. }
  19698. code = libc.Uint32FromInt32(v22)
  19699. len3 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(dtree + uintptr(code)*4 + 2)))
  19700. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len3 {
  19701. val3 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(dtree + uintptr(code)*4)))
  19702. p23 = s + 5936
  19703. *(*Tush)(unsafe.Pointer(p23)) = Tush(int32(*(*Tush)(unsafe.Pointer(p23))) | libc.Int32FromUint16(libc.Uint16FromInt32(val3))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19704. v25 = s + 40
  19705. v24 = *(*Tulg)(unsafe.Pointer(v25))
  19706. *(*Tulg)(unsafe.Pointer(v25))++
  19707. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v24))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19708. v27 = s + 40
  19709. v26 = *(*Tulg)(unsafe.Pointer(v27))
  19710. *(*Tulg)(unsafe.Pointer(v27))++
  19711. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v26))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19712. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val3)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19713. *(*int32)(unsafe.Pointer(s + 5940)) += len3 - int32(m_Buf_size)
  19714. } else {
  19715. p28 = s + 5936
  19716. *(*Tush)(unsafe.Pointer(p28)) = Tush(int32(*(*Tush)(unsafe.Pointer(p28))) | libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(dtree + uintptr(code)*4)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19717. *(*int32)(unsafe.Pointer(s + 5940)) += len3
  19718. } /* send the distance code */
  19719. extra = _extra_dbits[code]
  19720. if extra != 0 {
  19721. dist -= libc.Uint32FromInt32(_base_dist[code])
  19722. len4 = extra
  19723. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len4 {
  19724. val4 = libc.Int32FromUint32(dist)
  19725. p29 = s + 5936
  19726. *(*Tush)(unsafe.Pointer(p29)) = Tush(int32(*(*Tush)(unsafe.Pointer(p29))) | libc.Int32FromUint16(libc.Uint16FromInt32(val4))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19727. v31 = s + 40
  19728. v30 = *(*Tulg)(unsafe.Pointer(v31))
  19729. *(*Tulg)(unsafe.Pointer(v31))++
  19730. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v30))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19731. v33 = s + 40
  19732. v32 = *(*Tulg)(unsafe.Pointer(v33))
  19733. *(*Tulg)(unsafe.Pointer(v33))++
  19734. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v32))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19735. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val4)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19736. *(*int32)(unsafe.Pointer(s + 5940)) += len4 - int32(m_Buf_size)
  19737. } else {
  19738. p34 = s + 5936
  19739. *(*Tush)(unsafe.Pointer(p34)) = Tush(int32(*(*Tush)(unsafe.Pointer(p34))) | libc.Int32FromUint16(uint16(dist))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19740. *(*int32)(unsafe.Pointer(s + 5940)) += len4
  19741. } /* send the extra distance bits */
  19742. }
  19743. } /* literal or match pair ? */
  19744. /* Check for no overlay of pending_buf on needed symbols */
  19745. }
  19746. }
  19747. len5 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(ltree + 256*4 + 2)))
  19748. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len5 {
  19749. val5 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(ltree + 256*4)))
  19750. p35 = s + 5936
  19751. *(*Tush)(unsafe.Pointer(p35)) = Tush(int32(*(*Tush)(unsafe.Pointer(p35))) | libc.Int32FromUint16(libc.Uint16FromInt32(val5))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19752. v37 = s + 40
  19753. v36 = *(*Tulg)(unsafe.Pointer(v37))
  19754. *(*Tulg)(unsafe.Pointer(v37))++
  19755. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v36))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19756. v39 = s + 40
  19757. v38 = *(*Tulg)(unsafe.Pointer(v39))
  19758. *(*Tulg)(unsafe.Pointer(v39))++
  19759. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v38))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19760. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val5)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19761. *(*int32)(unsafe.Pointer(s + 5940)) += len5 - int32(m_Buf_size)
  19762. } else {
  19763. p40 = s + 5936
  19764. *(*Tush)(unsafe.Pointer(p40)) = Tush(int32(*(*Tush)(unsafe.Pointer(p40))) | libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(ltree + 256*4)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19765. *(*int32)(unsafe.Pointer(s + 5940)) += len5
  19766. }
  19767. }
  19768. // C documentation
  19769. //
  19770. // /* ===========================================================================
  19771. // * Check if the data type is TEXT or BINARY, using the following algorithm:
  19772. // * - TEXT if the two conditions below are satisfied:
  19773. // * a) There are no non-portable control characters belonging to the
  19774. // * "block list" (0..6, 14..25, 28..31).
  19775. // * b) There is at least one printable character belonging to the
  19776. // * "allow list" (9 {TAB}, 10 {LF}, 13 {CR}, 32..255).
  19777. // * - BINARY otherwise.
  19778. // * - The following partially-portable control characters form a
  19779. // * "gray list" that is ignored in this detection algorithm:
  19780. // * (7 {BEL}, 8 {BS}, 11 {VT}, 12 {FF}, 26 {SUB}, 27 {ESC}).
  19781. // * IN assertion: the fields Freq of dyn_ltree are set.
  19782. // */
  19783. func _detect_data_type(tls *libc.TLS, s uintptr) (r int32) {
  19784. var block_mask uint64
  19785. var n int32
  19786. _, _ = block_mask, n
  19787. /* block_mask is the bit mask of block-listed bytes
  19788. * set bits 0..6, 14..25, and 28..31
  19789. * 0xf3ffc07f = binary 11110011111111111100000001111111
  19790. */
  19791. block_mask = uint64(0xf3ffc07f)
  19792. /* Check for non-textual ("block-listed") bytes. */
  19793. n = 0
  19794. for {
  19795. if !(n <= int32(31)) {
  19796. break
  19797. }
  19798. if block_mask&uint64(1) != 0 && libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 212 + uintptr(n)*4))) != 0 {
  19799. return m_Z_BINARY
  19800. }
  19801. goto _1
  19802. _1:
  19803. ;
  19804. n++
  19805. block_mask >>= uint64(1)
  19806. }
  19807. /* Check for textual ("allow-listed") bytes. */
  19808. if libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 212 + 9*4))) != 0 || libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 212 + 10*4))) != 0 || libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 212 + 13*4))) != 0 {
  19809. return int32(m_Z_TEXT)
  19810. }
  19811. n = int32(32)
  19812. for {
  19813. if !(n < int32(m_LITERALS)) {
  19814. break
  19815. }
  19816. if libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 212 + uintptr(n)*4))) != 0 {
  19817. return int32(m_Z_TEXT)
  19818. }
  19819. goto _2
  19820. _2:
  19821. ;
  19822. n++
  19823. }
  19824. /* There are no "block-listed" or "allow-listed" bytes:
  19825. * this stream either is empty or has tolerated ("gray-listed") bytes only.
  19826. */
  19827. return m_Z_BINARY
  19828. }
  19829. // C documentation
  19830. //
  19831. // /* ===========================================================================
  19832. // * Determine the best encoding for the current block: dynamic trees, static
  19833. // * trees or store, and write out the encoded block.
  19834. // */
  19835. func x__tr_flush_block(tls *libc.TLS, s uintptr, buf uintptr, stored_len Tulg, last int32) {
  19836. var len1, len11, max_blindex, val, val1 int32
  19837. var opt_lenb, static_lenb, v1, v11, v3, v5, v9 Tulg
  19838. var v10, v12, v4, v6, p13, p2, p7, p8 uintptr
  19839. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = len1, len11, max_blindex, opt_lenb, static_lenb, val, val1, v1, v10, v11, v12, v3, v4, v5, v6, v9, p13, p2, p7, p8 /* opt_len and static_len in bytes */
  19840. max_blindex = 0 /* index of last bit length code of non zero freq */
  19841. /* Build the Huffman trees unless a stored block is forced */
  19842. if (*Tdeflate_state)(unsafe.Pointer(s)).Flevel > 0 {
  19843. /* Check if the file is binary or text */
  19844. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Fdata_type == int32(m_Z_UNKNOWN) {
  19845. (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Fdata_type = _detect_data_type(tls, s)
  19846. }
  19847. /* Construct the literal and distance trees */
  19848. _build_tree(tls, s, s+2904)
  19849. _build_tree(tls, s, s+2928)
  19850. /* At this point, opt_len and static_len are the total bit lengths of
  19851. * the compressed block data, excluding the tree representations.
  19852. */
  19853. /* Build the bit length tree for the above two trees, and get the index
  19854. * in bl_order of the last bit length code to send.
  19855. */
  19856. max_blindex = _build_bl_tree(tls, s)
  19857. /* Determine the best encoding. Compute the block lengths in bytes. */
  19858. opt_lenb = ((*Tdeflate_state)(unsafe.Pointer(s)).Fopt_len + uint64(3) + uint64(7)) >> int32(3)
  19859. static_lenb = ((*Tdeflate_state)(unsafe.Pointer(s)).Fstatic_len + uint64(3) + uint64(7)) >> int32(3)
  19860. if static_lenb <= opt_lenb || (*Tdeflate_state)(unsafe.Pointer(s)).Fstrategy == int32(m_Z_FIXED) {
  19861. opt_lenb = static_lenb
  19862. }
  19863. } else {
  19864. v1 = stored_len + libc.Uint64FromInt32(5)
  19865. static_lenb = v1
  19866. opt_lenb = v1 /* force a stored block */
  19867. }
  19868. if stored_len+uint64(4) <= opt_lenb && buf != libc.UintptrFromInt32(0) {
  19869. /* 4: two words for the lengths */
  19870. /* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE.
  19871. * Otherwise we can't have processed more than WSIZE input bytes since
  19872. * the last block flush, because compression would have been
  19873. * successful. If LIT_BUFSIZE <= WSIZE, it is never too late to
  19874. * transform a block into a stored block.
  19875. */
  19876. x__tr_stored_block(tls, s, buf, stored_len, last)
  19877. } else {
  19878. if static_lenb == opt_lenb {
  19879. len1 = int32(3)
  19880. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len1 {
  19881. val = libc.Int32FromInt32(m_STATIC_TREES)<<libc.Int32FromInt32(1) + last
  19882. p2 = s + 5936
  19883. *(*Tush)(unsafe.Pointer(p2)) = Tush(int32(*(*Tush)(unsafe.Pointer(p2))) | libc.Int32FromUint16(libc.Uint16FromInt32(val))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19884. v4 = s + 40
  19885. v3 = *(*Tulg)(unsafe.Pointer(v4))
  19886. *(*Tulg)(unsafe.Pointer(v4))++
  19887. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v3))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19888. v6 = s + 40
  19889. v5 = *(*Tulg)(unsafe.Pointer(v6))
  19890. *(*Tulg)(unsafe.Pointer(v6))++
  19891. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v5))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19892. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19893. *(*int32)(unsafe.Pointer(s + 5940)) += len1 - int32(m_Buf_size)
  19894. } else {
  19895. p7 = s + 5936
  19896. *(*Tush)(unsafe.Pointer(p7)) = Tush(int32(*(*Tush)(unsafe.Pointer(p7))) | libc.Int32FromUint16(libc.Uint16FromInt32(libc.Int32FromInt32(m_STATIC_TREES)<<libc.Int32FromInt32(1)+last))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19897. *(*int32)(unsafe.Pointer(s + 5940)) += len1
  19898. }
  19899. _compress_block(tls, s, uintptr(unsafe.Pointer(&_static_ltree)), uintptr(unsafe.Pointer(&_static_dtree)))
  19900. } else {
  19901. len11 = int32(3)
  19902. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len11 {
  19903. val1 = libc.Int32FromInt32(m_DYN_TREES)<<libc.Int32FromInt32(1) + last
  19904. p8 = s + 5936
  19905. *(*Tush)(unsafe.Pointer(p8)) = Tush(int32(*(*Tush)(unsafe.Pointer(p8))) | libc.Int32FromUint16(libc.Uint16FromInt32(val1))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19906. v10 = s + 40
  19907. v9 = *(*Tulg)(unsafe.Pointer(v10))
  19908. *(*Tulg)(unsafe.Pointer(v10))++
  19909. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v9))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) & libc.Int32FromInt32(0xff))
  19910. v12 = s + 40
  19911. v11 = *(*Tulg)(unsafe.Pointer(v12))
  19912. *(*Tulg)(unsafe.Pointer(v12))++
  19913. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v11))) = libc.Uint8FromInt32(libc.Int32FromUint16((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf) >> libc.Int32FromInt32(8))
  19914. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = libc.Uint16FromInt32(libc.Int32FromUint16(libc.Uint16FromInt32(val1)) >> (int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid))
  19915. *(*int32)(unsafe.Pointer(s + 5940)) += len11 - int32(m_Buf_size)
  19916. } else {
  19917. p13 = s + 5936
  19918. *(*Tush)(unsafe.Pointer(p13)) = Tush(int32(*(*Tush)(unsafe.Pointer(p13))) | libc.Int32FromUint16(libc.Uint16FromInt32(libc.Int32FromInt32(m_DYN_TREES)<<libc.Int32FromInt32(1)+last))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19919. *(*int32)(unsafe.Pointer(s + 5940)) += len11
  19920. }
  19921. _send_all_trees(tls, s, (*Tdeflate_state)(unsafe.Pointer(s)).Fl_desc.Fmax_code+int32(1), (*Tdeflate_state)(unsafe.Pointer(s)).Fd_desc.Fmax_code+int32(1), max_blindex+int32(1))
  19922. _compress_block(tls, s, s+212, s+2504)
  19923. }
  19924. }
  19925. /* The above check is made mod 2^32, for files larger than 512 MB
  19926. * and uLong implemented on 32 bits.
  19927. */
  19928. _init_block(tls, s)
  19929. if last != 0 {
  19930. _bi_windup(tls, s)
  19931. }
  19932. }
  19933. // C documentation
  19934. //
  19935. // /* ===========================================================================
  19936. // * Save the match info and tally the frequency counts. Return true if
  19937. // * the current block must be flushed.
  19938. // */
  19939. func x__tr_tally(tls *libc.TLS, s uintptr, dist uint32, lc uint32) (r int32) {
  19940. var v1, v3, v5 TuInt
  19941. var v2, v4, v6 uintptr
  19942. var v7 int32
  19943. _, _, _, _, _, _, _ = v1, v2, v3, v4, v5, v6, v7
  19944. v2 = s + 5900
  19945. v1 = *(*TuInt)(unsafe.Pointer(v2))
  19946. *(*TuInt)(unsafe.Pointer(v2))++
  19947. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v1))) = uint8(dist)
  19948. v4 = s + 5900
  19949. v3 = *(*TuInt)(unsafe.Pointer(v4))
  19950. *(*TuInt)(unsafe.Pointer(v4))++
  19951. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v3))) = uint8(dist >> libc.Int32FromInt32(8))
  19952. v6 = s + 5900
  19953. v5 = *(*TuInt)(unsafe.Pointer(v6))
  19954. *(*TuInt)(unsafe.Pointer(v6))++
  19955. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v5))) = uint8(lc)
  19956. if dist == uint32(0) {
  19957. /* lc is the unmatched char */
  19958. *(*Tush)(unsafe.Pointer(s + 212 + uintptr(lc)*4))++
  19959. } else {
  19960. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatches++
  19961. /* Here, lc is the match length - MIN_MATCH */
  19962. dist-- /* dist = match distance - 1 */
  19963. *(*Tush)(unsafe.Pointer(s + 212 + uintptr(libc.Int32FromUint8(x__length_code[lc])+int32(m_LITERALS)+int32(1))*4))++
  19964. if dist < uint32(256) {
  19965. v7 = libc.Int32FromUint8(x__dist_code[dist])
  19966. } else {
  19967. v7 = libc.Int32FromUint8(x__dist_code[uint32(256)+dist>>int32(7)])
  19968. }
  19969. *(*Tush)(unsafe.Pointer(s + 2504 + uintptr(v7)*4))++
  19970. }
  19971. return libc.BoolInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next == (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_end)
  19972. }
  19973. const m_AT_EACCESS = 0x200
  19974. const m_AT_EMPTY_PATH = 0x1000
  19975. const m_AT_NO_AUTOMOUNT = 0x800
  19976. const m_AT_RECURSIVE = 0x8000
  19977. const m_AT_REMOVEDIR = 0x200
  19978. const m_AT_STATX_DONT_SYNC = 0x4000
  19979. const m_AT_STATX_FORCE_SYNC = 0x2000
  19980. const m_AT_STATX_SYNC_AS_STAT = 0x0000
  19981. const m_AT_STATX_SYNC_TYPE = 0x6000
  19982. const m_AT_SYMLINK_FOLLOW = 0x400
  19983. const m_AT_SYMLINK_NOFOLLOW = 0x100
  19984. const m_BUFSIZ = 1024
  19985. const m_COPY = 1
  19986. const m_DN_ACCESS = 0x00000001
  19987. const m_DN_ATTRIB = 0x00000020
  19988. const m_DN_CREATE = 0x00000004
  19989. const m_DN_DELETE = 0x00000008
  19990. const m_DN_MODIFY = 0x00000002
  19991. const m_DN_MULTISHOT = 0x80000000
  19992. const m_DN_RENAME = 0x00000010
  19993. const m_E2BIG = 7
  19994. const m_EACCES = 13
  19995. const m_EADDRINUSE = 98
  19996. const m_EADDRNOTAVAIL = 99
  19997. const m_EADV = 68
  19998. const m_EAFNOSUPPORT = 97
  19999. const m_EAGAIN = 11
  20000. const m_EALREADY = 114
  20001. const m_EBADE = 52
  20002. const m_EBADF = 9
  20003. const m_EBADFD = 77
  20004. const m_EBADMSG = 74
  20005. const m_EBADR = 53
  20006. const m_EBADRQC = 56
  20007. const m_EBADSLT = 57
  20008. const m_EBFONT = 59
  20009. const m_EBUSY = 16
  20010. const m_ECANCELED = 125
  20011. const m_ECHILD = 10
  20012. const m_ECHRNG = 44
  20013. const m_ECOMM = 70
  20014. const m_ECONNABORTED = 103
  20015. const m_ECONNREFUSED = 111
  20016. const m_ECONNRESET = 104
  20017. const m_EDEADLK = 35
  20018. const m_EDEADLOCK = "EDEADLK"
  20019. const m_EDESTADDRREQ = 89
  20020. const m_EDOM = 33
  20021. const m_EDOTDOT = 73
  20022. const m_EDQUOT = 122
  20023. const m_EEXIST = 17
  20024. const m_EFAULT = 14
  20025. const m_EFBIG = 27
  20026. const m_EHOSTDOWN = 112
  20027. const m_EHOSTUNREACH = 113
  20028. const m_EHWPOISON = 133
  20029. const m_EIDRM = 43
  20030. const m_EILSEQ = 84
  20031. const m_EINPROGRESS = 115
  20032. const m_EINTR = 4
  20033. const m_EINVAL = 22
  20034. const m_EIO = 5
  20035. const m_EISCONN = 106
  20036. const m_EISDIR = 21
  20037. const m_EISNAM = 120
  20038. const m_EKEYEXPIRED = 127
  20039. const m_EKEYREJECTED = 129
  20040. const m_EKEYREVOKED = 128
  20041. const m_EL2HLT = 51
  20042. const m_EL2NSYNC = 45
  20043. const m_EL3HLT = 46
  20044. const m_EL3RST = 47
  20045. const m_ELIBACC = 79
  20046. const m_ELIBBAD = 80
  20047. const m_ELIBEXEC = 83
  20048. const m_ELIBMAX = 82
  20049. const m_ELIBSCN = 81
  20050. const m_ELNRNG = 48
  20051. const m_ELOOP = 40
  20052. const m_EMEDIUMTYPE = 124
  20053. const m_EMFILE = 24
  20054. const m_EMLINK = 31
  20055. const m_EMSGSIZE = 90
  20056. const m_EMULTIHOP = 72
  20057. const m_ENAMETOOLONG = 36
  20058. const m_ENAVAIL = 119
  20059. const m_ENETDOWN = 100
  20060. const m_ENETRESET = 102
  20061. const m_ENETUNREACH = 101
  20062. const m_ENFILE = 23
  20063. const m_ENOANO = 55
  20064. const m_ENOBUFS = 105
  20065. const m_ENOCSI = 50
  20066. const m_ENODATA = 61
  20067. const m_ENODEV = 19
  20068. const m_ENOENT = 2
  20069. const m_ENOEXEC = 8
  20070. const m_ENOKEY = 126
  20071. const m_ENOLCK = 37
  20072. const m_ENOLINK = 67
  20073. const m_ENOMEDIUM = 123
  20074. const m_ENOMEM = 12
  20075. const m_ENOMSG = 42
  20076. const m_ENONET = 64
  20077. const m_ENOPKG = 65
  20078. const m_ENOPROTOOPT = 92
  20079. const m_ENOSPC = 28
  20080. const m_ENOSR = 63
  20081. const m_ENOSTR = 60
  20082. const m_ENOSYS = 38
  20083. const m_ENOTBLK = 15
  20084. const m_ENOTCONN = 107
  20085. const m_ENOTDIR = 20
  20086. const m_ENOTEMPTY = 39
  20087. const m_ENOTNAM = 118
  20088. const m_ENOTRECOVERABLE = 131
  20089. const m_ENOTSOCK = 88
  20090. const m_ENOTSUP = "EOPNOTSUPP"
  20091. const m_ENOTTY = 25
  20092. const m_ENOTUNIQ = 76
  20093. const m_ENXIO = 6
  20094. const m_EOPNOTSUPP = 95
  20095. const m_EOVERFLOW = 75
  20096. const m_EOWNERDEAD = 130
  20097. const m_EPERM = 1
  20098. const m_EPFNOSUPPORT = 96
  20099. const m_EPIPE = 32
  20100. const m_EPROTO = 71
  20101. const m_EPROTONOSUPPORT = 93
  20102. const m_EPROTOTYPE = 91
  20103. const m_ERANGE = 34
  20104. const m_EREMCHG = 78
  20105. const m_EREMOTE = 66
  20106. const m_EREMOTEIO = 121
  20107. const m_ERESTART = 85
  20108. const m_ERFKILL = 132
  20109. const m_EROFS = 30
  20110. const m_ESHUTDOWN = 108
  20111. const m_ESOCKTNOSUPPORT = 94
  20112. const m_ESPIPE = 29
  20113. const m_ESRCH = 3
  20114. const m_ESRMNT = 69
  20115. const m_ESTALE = 116
  20116. const m_ESTRPIPE = 86
  20117. const m_ETIME = 62
  20118. const m_ETIMEDOUT = 110
  20119. const m_ETOOMANYREFS = 109
  20120. const m_ETXTBSY = 26
  20121. const m_EUCLEAN = 117
  20122. const m_EUNATCH = 49
  20123. const m_EUSERS = 87
  20124. const m_EWOULDBLOCK = "EAGAIN"
  20125. const m_EXDEV = 18
  20126. const m_EXFULL = 54
  20127. const m_FALLOC_FL_KEEP_SIZE = 1
  20128. const m_FALLOC_FL_PUNCH_HOLE = 2
  20129. const m_FAPPEND = "O_APPEND"
  20130. const m_FASYNC = "O_ASYNC"
  20131. const m_FD_CLOEXEC = 1
  20132. const m_FFSYNC = "O_SYNC"
  20133. const m_FILENAME_MAX = 4096
  20134. const m_FNDELAY = "O_NDELAY"
  20135. const m_FNONBLOCK = "O_NONBLOCK"
  20136. const m_FOPEN_MAX = 1000
  20137. const m_F_ADD_SEALS = 1033
  20138. const m_F_CANCELLK = 1029
  20139. const m_F_DUPFD = 0
  20140. const m_F_DUPFD_CLOEXEC = 1030
  20141. const m_F_GETFD = 1
  20142. const m_F_GETFL = 3
  20143. const m_F_GETLEASE = 1025
  20144. const m_F_GETLK = 5
  20145. const m_F_GETLK64 = "F_GETLK"
  20146. const m_F_GETOWN = 9
  20147. const m_F_GETOWNER_UIDS = 17
  20148. const m_F_GETOWN_EX = 16
  20149. const m_F_GETPIPE_SZ = 1032
  20150. const m_F_GETSIG = 11
  20151. const m_F_GET_FILE_RW_HINT = 1037
  20152. const m_F_GET_RW_HINT = 1035
  20153. const m_F_GET_SEALS = 1034
  20154. const m_F_NOTIFY = 1026
  20155. const m_F_OFD_GETLK = 36
  20156. const m_F_OFD_SETLK = 37
  20157. const m_F_OFD_SETLKW = 38
  20158. const m_F_OWNER_GID = 2
  20159. const m_F_OWNER_PGRP = 2
  20160. const m_F_OWNER_PID = 1
  20161. const m_F_OWNER_TID = 0
  20162. const m_F_RDLCK = 0
  20163. const m_F_SEAL_FUTURE_WRITE = 0x0010
  20164. const m_F_SEAL_GROW = 0x0004
  20165. const m_F_SEAL_SEAL = 0x0001
  20166. const m_F_SEAL_SHRINK = 0x0002
  20167. const m_F_SEAL_WRITE = 0x0008
  20168. const m_F_SETFD = 2
  20169. const m_F_SETFL = 4
  20170. const m_F_SETLEASE = 1024
  20171. const m_F_SETLK = 6
  20172. const m_F_SETLK64 = "F_SETLK"
  20173. const m_F_SETLKW = 7
  20174. const m_F_SETLKW64 = "F_SETLKW"
  20175. const m_F_SETOWN = 8
  20176. const m_F_SETOWN_EX = 15
  20177. const m_F_SETPIPE_SZ = 1031
  20178. const m_F_SETSIG = 10
  20179. const m_F_SET_FILE_RW_HINT = 1038
  20180. const m_F_SET_RW_HINT = 1036
  20181. const m_F_UNLCK = 2
  20182. const m_F_WRLCK = 1
  20183. const m_GZBUFSIZE = 8192
  20184. const m_GZIP = 2
  20185. const m_GZ_APPEND = 1
  20186. const m_GZ_NONE = 0
  20187. const m_GZ_READ = 7247
  20188. const m_GZ_WRITE = 31153
  20189. const m_LOOK = 0
  20190. const m_L_ctermid = 20
  20191. const m_L_cuserid = 20
  20192. const m_L_tmpnam = 20
  20193. const m_MAX_HANDLE_SZ = 128
  20194. const m_O_APPEND = 02000
  20195. const m_O_ASYNC = 020000
  20196. const m_O_CLOEXEC = 02000000
  20197. const m_O_CREAT = 0100
  20198. const m_O_DIRECT = 040000
  20199. const m_O_DIRECTORY = 0200000
  20200. const m_O_DSYNC = 010000
  20201. const m_O_EXCL = 0200
  20202. const m_O_EXEC = "O_PATH"
  20203. const m_O_LARGEFILE = 0100000
  20204. const m_O_NDELAY = "O_NONBLOCK"
  20205. const m_O_NOATIME = 01000000
  20206. const m_O_NOCTTY = 0400
  20207. const m_O_NOFOLLOW = 0400000
  20208. const m_O_NONBLOCK = 04000
  20209. const m_O_PATH = 010000000
  20210. const m_O_RDONLY = 00
  20211. const m_O_RDWR = 02
  20212. const m_O_RSYNC = 04010000
  20213. const m_O_SEARCH = "O_PATH"
  20214. const m_O_SYNC = 04010000
  20215. const m_O_TMPFILE = 020200000
  20216. const m_O_TRUNC = 01000
  20217. const m_O_TTY_INIT = 0
  20218. const m_O_WRONLY = 01
  20219. const m_POSIX_FADV_DONTNEED = 4
  20220. const m_POSIX_FADV_NOREUSE = 5
  20221. const m_POSIX_FADV_NORMAL = 0
  20222. const m_POSIX_FADV_RANDOM = 1
  20223. const m_POSIX_FADV_SEQUENTIAL = 2
  20224. const m_POSIX_FADV_WILLNEED = 3
  20225. const m_P_tmpdir = "/tmp"
  20226. const m_RWF_WRITE_LIFE_NOT_SET = 0
  20227. const m_RWH_WRITE_LIFE_EXTREME = 5
  20228. const m_RWH_WRITE_LIFE_LONG = 4
  20229. const m_RWH_WRITE_LIFE_MEDIUM = 3
  20230. const m_RWH_WRITE_LIFE_NONE = 1
  20231. const m_RWH_WRITE_LIFE_SHORT = 2
  20232. const m_SPLICE_F_GIFT = 8
  20233. const m_SPLICE_F_MORE = 4
  20234. const m_SPLICE_F_MOVE = 1
  20235. const m_SPLICE_F_NONBLOCK = 2
  20236. const m_SYNC_FILE_RANGE_WAIT_AFTER = 4
  20237. const m_SYNC_FILE_RANGE_WAIT_BEFORE = 1
  20238. const m_SYNC_FILE_RANGE_WRITE = 2
  20239. const m_S_IRGRP = 0040
  20240. const m_S_IROTH = 0004
  20241. const m_S_IRUSR = 0400
  20242. const m_S_IRWXG = 0070
  20243. const m_S_IRWXO = 0007
  20244. const m_S_IRWXU = 0700
  20245. const m_S_ISGID = 02000
  20246. const m_S_ISUID = 04000
  20247. const m_S_ISVTX = 01000
  20248. const m_S_IWGRP = 0020
  20249. const m_S_IWOTH = 0002
  20250. const m_S_IWUSR = 0200
  20251. const m_S_IXGRP = 0010
  20252. const m_S_IXOTH = 0001
  20253. const m_S_IXUSR = 0100
  20254. const m_TMP_MAX = 10000
  20255. const m__IOFBF = 0
  20256. const m__IOLBF = 1
  20257. const m__IONBF = 2
  20258. const m__LARGEFILE_SOURCE = 1
  20259. const m_creat64 = "creat"
  20260. const m_fallocate64 = "fallocate"
  20261. const m_fgetpos64 = "fgetpos"
  20262. const m_flock64 = "flock"
  20263. const m_fopen64 = "fopen"
  20264. const m_fpos64_t = "fpos_t"
  20265. const m_freopen64 = "freopen"
  20266. const m_fseeko64 = "fseeko"
  20267. const m_fsetpos64 = "fsetpos"
  20268. const m_ftello64 = "ftello"
  20269. const m_loff_t = "off_t"
  20270. const m_open64 = "open"
  20271. const m_openat64 = "openat"
  20272. const m_posix_fadvise64 = "posix_fadvise"
  20273. const m_posix_fallocate64 = "posix_fallocate"
  20274. const m_tmpfile64 = "tmpfile"
  20275. type t__isoc_va_list = uintptr
  20276. type Tfpos_t = struct {
  20277. F__lldata [0]int64
  20278. F__align [0]float64
  20279. F__opaque [16]int8
  20280. }
  20281. type T_G_fpos64_t = Tfpos_t
  20282. type Tcookie_io_functions_t = struct {
  20283. Fread uintptr
  20284. Fwrite uintptr
  20285. Fseek uintptr
  20286. Fclose1 uintptr
  20287. }
  20288. type T_IO_cookie_io_functions_t = Tcookie_io_functions_t
  20289. type Tiovec = struct {
  20290. Fiov_base uintptr
  20291. Fiov_len Tsize_t
  20292. }
  20293. type Tflock = struct {
  20294. Fl_type int16
  20295. Fl_whence int16
  20296. Fl_start Toff_t
  20297. Fl_len Toff_t
  20298. Fl_pid Tpid_t
  20299. }
  20300. type Tfile_handle = struct {
  20301. Fhandle_bytes uint32
  20302. Fhandle_type int32
  20303. }
  20304. type Tf_owner_ex = struct {
  20305. Ftype1 int32
  20306. Fpid Tpid_t
  20307. }
  20308. type Tgz_state = struct {
  20309. Fx TgzFile_s
  20310. Fmode int32
  20311. Ffd int32
  20312. Fpath uintptr
  20313. Fsize uint32
  20314. Fwant uint32
  20315. Fin uintptr
  20316. Fout uintptr
  20317. Fdirect int32
  20318. Fhow int32
  20319. Fstart Toff_t
  20320. Feof int32
  20321. Fpast int32
  20322. Flevel int32
  20323. Fstrategy int32
  20324. Freset int32
  20325. Fskip Toff_t
  20326. Fseek int32
  20327. Ferr int32
  20328. Fmsg uintptr
  20329. Fstrm Tz_stream
  20330. }
  20331. type Tgz_statep = uintptr
  20332. func XzlibVersion(tls *libc.TLS) (r uintptr) {
  20333. return __ccgo_ts
  20334. }
  20335. func XzlibCompileFlags(tls *libc.TLS) (r TuLong) {
  20336. var flags TuLong
  20337. _ = flags
  20338. flags = uint64(0)
  20339. switch libc.Int32FromUint64(libc.Uint64FromInt64(4)) {
  20340. case int32(2):
  20341. case int32(4):
  20342. flags += uint64(1)
  20343. case int32(8):
  20344. flags += uint64(2)
  20345. default:
  20346. flags += uint64(3)
  20347. }
  20348. switch libc.Int32FromUint64(libc.Uint64FromInt64(8)) {
  20349. case int32(2):
  20350. case int32(4):
  20351. flags += libc.Uint64FromInt32(libc.Int32FromInt32(1) << libc.Int32FromInt32(2))
  20352. case int32(8):
  20353. flags += libc.Uint64FromInt32(libc.Int32FromInt32(2) << libc.Int32FromInt32(2))
  20354. default:
  20355. flags += libc.Uint64FromInt32(libc.Int32FromInt32(3) << libc.Int32FromInt32(2))
  20356. }
  20357. switch libc.Int32FromUint64(libc.Uint64FromInt64(8)) {
  20358. case int32(2):
  20359. case int32(4):
  20360. flags += libc.Uint64FromInt32(libc.Int32FromInt32(1) << libc.Int32FromInt32(4))
  20361. case int32(8):
  20362. flags += libc.Uint64FromInt32(libc.Int32FromInt32(2) << libc.Int32FromInt32(4))
  20363. default:
  20364. flags += libc.Uint64FromInt32(libc.Int32FromInt32(3) << libc.Int32FromInt32(4))
  20365. }
  20366. switch libc.Int32FromUint64(libc.Uint64FromInt64(8)) {
  20367. case int32(2):
  20368. case int32(4):
  20369. flags += libc.Uint64FromInt32(libc.Int32FromInt32(1) << libc.Int32FromInt32(6))
  20370. case int32(8):
  20371. flags += libc.Uint64FromInt32(libc.Int32FromInt32(2) << libc.Int32FromInt32(6))
  20372. default:
  20373. flags += libc.Uint64FromInt32(libc.Int32FromInt32(3) << libc.Int32FromInt32(6))
  20374. }
  20375. /*
  20376. #if defined(ASMV) || defined(ASMINF)
  20377. flags += 1 << 9;
  20378. #endif
  20379. */
  20380. return flags
  20381. }
  20382. // C documentation
  20383. //
  20384. // /* exported to allow conversion of error code to string for compress() and
  20385. // * uncompress()
  20386. // */
  20387. func XzError(tls *libc.TLS, err int32) (r uintptr) {
  20388. var v1 int32
  20389. _ = v1
  20390. if err < -int32(6) || err > int32(2) {
  20391. v1 = int32(9)
  20392. } else {
  20393. v1 = int32(2) - err
  20394. }
  20395. return Xz_errmsg[v1]
  20396. }
  20397. func Xzcalloc(tls *libc.TLS, opaque Tvoidpf, items uint32, size uint32) (r Tvoidpf) {
  20398. _ = opaque
  20399. return libc.Xmalloc(tls, uint64(items*size))
  20400. }
  20401. func Xzcfree(tls *libc.TLS, opaque Tvoidpf, ptr Tvoidpf) {
  20402. _ = opaque
  20403. libc.Xfree(tls, ptr)
  20404. }
  20405. // C documentation
  20406. //
  20407. // /* ===========================================================================
  20408. // Compresses the source buffer into the destination buffer. The level
  20409. // parameter has the same meaning as in deflateInit. sourceLen is the byte
  20410. // length of the source buffer. Upon entry, destLen is the total size of the
  20411. // destination buffer, which must be at least 0.1% larger than sourceLen plus
  20412. // 12 bytes. Upon exit, destLen is the actual size of the compressed buffer.
  20413. //
  20414. // compress2 returns Z_OK if success, Z_MEM_ERROR if there was not enough
  20415. // memory, Z_BUF_ERROR if there was not enough room in the output buffer,
  20416. // Z_STREAM_ERROR if the level parameter is invalid.
  20417. // */
  20418. func Xcompress2(tls *libc.TLS, dest uintptr, destLen uintptr, source uintptr, sourceLen TuLong, level int32) (r int32) {
  20419. bp := tls.Alloc(112)
  20420. defer tls.Free(112)
  20421. var err, v3, v4 int32
  20422. var left TuLong
  20423. var max TuInt
  20424. var v1, v2 uint32
  20425. var _ /* stream at bp+0 */ Tz_stream
  20426. _, _, _, _, _, _, _ = err, left, max, v1, v2, v3, v4
  20427. max = libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  20428. left = *(*TuLongf)(unsafe.Pointer(destLen))
  20429. *(*TuLongf)(unsafe.Pointer(destLen)) = uint64(0)
  20430. (*(*Tz_stream)(unsafe.Pointer(bp))).Fzalloc = libc.UintptrFromInt32(0)
  20431. (*(*Tz_stream)(unsafe.Pointer(bp))).Fzfree = libc.UintptrFromInt32(0)
  20432. (*(*Tz_stream)(unsafe.Pointer(bp))).Fopaque = libc.UintptrFromInt32(0)
  20433. err = XdeflateInit_(tls, bp, level, __ccgo_ts, libc.Int32FromInt64(112))
  20434. if err != m_Z_OK {
  20435. return err
  20436. }
  20437. (*(*Tz_stream)(unsafe.Pointer(bp))).Fnext_out = dest
  20438. (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_out = uint32(0)
  20439. (*(*Tz_stream)(unsafe.Pointer(bp))).Fnext_in = source
  20440. (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_in = uint32(0)
  20441. for cond := true; cond; cond = err == m_Z_OK {
  20442. if (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_out == uint32(0) {
  20443. if left > uint64(max) {
  20444. v1 = max
  20445. } else {
  20446. v1 = uint32(left)
  20447. }
  20448. (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_out = v1
  20449. left -= uint64((*(*Tz_stream)(unsafe.Pointer(bp))).Favail_out)
  20450. }
  20451. if (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_in == uint32(0) {
  20452. if sourceLen > uint64(max) {
  20453. v2 = max
  20454. } else {
  20455. v2 = uint32(sourceLen)
  20456. }
  20457. (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_in = v2
  20458. sourceLen -= uint64((*(*Tz_stream)(unsafe.Pointer(bp))).Favail_in)
  20459. }
  20460. if sourceLen != 0 {
  20461. v3 = m_Z_NO_FLUSH
  20462. } else {
  20463. v3 = int32(m_Z_FINISH)
  20464. }
  20465. err = Xdeflate(tls, bp, v3)
  20466. }
  20467. *(*TuLongf)(unsafe.Pointer(destLen)) = (*(*Tz_stream)(unsafe.Pointer(bp))).Ftotal_out
  20468. XdeflateEnd(tls, bp)
  20469. if err == int32(m_Z_STREAM_END) {
  20470. v4 = m_Z_OK
  20471. } else {
  20472. v4 = err
  20473. }
  20474. return v4
  20475. }
  20476. // C documentation
  20477. //
  20478. // /* ===========================================================================
  20479. // */
  20480. func Xcompress(tls *libc.TLS, dest uintptr, destLen uintptr, source uintptr, sourceLen TuLong) (r int32) {
  20481. return Xcompress2(tls, dest, destLen, source, sourceLen, -int32(1))
  20482. }
  20483. // C documentation
  20484. //
  20485. // /* ===========================================================================
  20486. // If the default memLevel or windowBits for deflateInit() is changed, then
  20487. // this function needs to be updated.
  20488. // */
  20489. func XcompressBound(tls *libc.TLS, sourceLen TuLong) (r TuLong) {
  20490. return sourceLen + sourceLen>>libc.Int32FromInt32(12) + sourceLen>>libc.Int32FromInt32(14) + sourceLen>>libc.Int32FromInt32(25) + uint64(13)
  20491. }
  20492. // C documentation
  20493. //
  20494. // /* ===========================================================================
  20495. // Decompresses the source buffer into the destination buffer. *sourceLen is
  20496. // the byte length of the source buffer. Upon entry, *destLen is the total size
  20497. // of the destination buffer, which must be large enough to hold the entire
  20498. // uncompressed data. (The size of the uncompressed data must have been saved
  20499. // previously by the compressor and transmitted to the decompressor by some
  20500. // mechanism outside the scope of this compression library.) Upon exit,
  20501. // *destLen is the size of the decompressed data and *sourceLen is the number
  20502. // of source bytes consumed. Upon return, source + *sourceLen points to the
  20503. // first unused input byte.
  20504. //
  20505. // uncompress returns Z_OK if success, Z_MEM_ERROR if there was not enough
  20506. // memory, Z_BUF_ERROR if there was not enough room in the output buffer, or
  20507. // Z_DATA_ERROR if the input data was corrupted, including if the input data is
  20508. // an incomplete zlib stream.
  20509. // */
  20510. func Xuncompress2(tls *libc.TLS, dest uintptr, destLen uintptr, source uintptr, sourceLen uintptr) (r int32) {
  20511. bp := tls.Alloc(128)
  20512. defer tls.Free(128)
  20513. var err, v3, v4, v5 int32
  20514. var left, len1 TuLong
  20515. var max TuInt
  20516. var v1, v2 uint32
  20517. var _ /* buf at bp+112 */ [1]TByte
  20518. var _ /* stream at bp+0 */ Tz_stream
  20519. _, _, _, _, _, _, _, _, _ = err, left, len1, max, v1, v2, v3, v4, v5
  20520. max = libc.Uint32FromInt32(-libc.Int32FromInt32(1)) /* for detection of incomplete stream when *destLen == 0 */
  20521. len1 = *(*TuLong)(unsafe.Pointer(sourceLen))
  20522. if *(*TuLongf)(unsafe.Pointer(destLen)) != 0 {
  20523. left = *(*TuLongf)(unsafe.Pointer(destLen))
  20524. *(*TuLongf)(unsafe.Pointer(destLen)) = uint64(0)
  20525. } else {
  20526. left = uint64(1)
  20527. dest = bp + 112
  20528. }
  20529. (*(*Tz_stream)(unsafe.Pointer(bp))).Fnext_in = source
  20530. (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_in = uint32(0)
  20531. (*(*Tz_stream)(unsafe.Pointer(bp))).Fzalloc = libc.UintptrFromInt32(0)
  20532. (*(*Tz_stream)(unsafe.Pointer(bp))).Fzfree = libc.UintptrFromInt32(0)
  20533. (*(*Tz_stream)(unsafe.Pointer(bp))).Fopaque = libc.UintptrFromInt32(0)
  20534. err = XinflateInit_(tls, bp, __ccgo_ts, libc.Int32FromInt64(112))
  20535. if err != m_Z_OK {
  20536. return err
  20537. }
  20538. (*(*Tz_stream)(unsafe.Pointer(bp))).Fnext_out = dest
  20539. (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_out = uint32(0)
  20540. for cond := true; cond; cond = err == m_Z_OK {
  20541. if (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_out == uint32(0) {
  20542. if left > uint64(max) {
  20543. v1 = max
  20544. } else {
  20545. v1 = uint32(left)
  20546. }
  20547. (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_out = v1
  20548. left -= uint64((*(*Tz_stream)(unsafe.Pointer(bp))).Favail_out)
  20549. }
  20550. if (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_in == uint32(0) {
  20551. if len1 > uint64(max) {
  20552. v2 = max
  20553. } else {
  20554. v2 = uint32(len1)
  20555. }
  20556. (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_in = v2
  20557. len1 -= uint64((*(*Tz_stream)(unsafe.Pointer(bp))).Favail_in)
  20558. }
  20559. err = Xinflate(tls, bp, m_Z_NO_FLUSH)
  20560. }
  20561. *(*TuLong)(unsafe.Pointer(sourceLen)) -= len1 + uint64((*(*Tz_stream)(unsafe.Pointer(bp))).Favail_in)
  20562. if dest != bp+112 {
  20563. *(*TuLongf)(unsafe.Pointer(destLen)) = (*(*Tz_stream)(unsafe.Pointer(bp))).Ftotal_out
  20564. } else {
  20565. if (*(*Tz_stream)(unsafe.Pointer(bp))).Ftotal_out != 0 && err == -int32(5) {
  20566. left = uint64(1)
  20567. }
  20568. }
  20569. XinflateEnd(tls, bp)
  20570. if err == int32(m_Z_STREAM_END) {
  20571. v3 = m_Z_OK
  20572. } else {
  20573. if err == int32(m_Z_NEED_DICT) {
  20574. v4 = -int32(3)
  20575. } else {
  20576. if err == -int32(5) && left+uint64((*(*Tz_stream)(unsafe.Pointer(bp))).Favail_out) != 0 {
  20577. v5 = -int32(3)
  20578. } else {
  20579. v5 = err
  20580. }
  20581. v4 = v5
  20582. }
  20583. v3 = v4
  20584. }
  20585. return v3
  20586. }
  20587. func Xuncompress(tls *libc.TLS, dest uintptr, destLen uintptr, source uintptr, _sourceLen TuLong) (r int32) {
  20588. bp := tls.Alloc(16)
  20589. defer tls.Free(16)
  20590. *(*TuLong)(unsafe.Pointer(bp)) = _sourceLen
  20591. return Xuncompress2(tls, dest, destLen, source, bp)
  20592. }
  20593. // C documentation
  20594. //
  20595. // /* gzclose() is in a separate file so that it is linked in only if it is used.
  20596. // That way the other gzclose functions can be used instead to avoid linking in
  20597. // unneeded compression or decompression routines. */
  20598. func Xgzclose(tls *libc.TLS, file TgzFile) (r int32) {
  20599. var state Tgz_statep
  20600. var v1 int32
  20601. _, _ = state, v1
  20602. if file == libc.UintptrFromInt32(0) {
  20603. return -int32(2)
  20604. }
  20605. state = file
  20606. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_READ) {
  20607. v1 = Xgzclose_r(tls, file)
  20608. } else {
  20609. v1 = Xgzclose_w(tls, file)
  20610. }
  20611. return v1
  20612. }
  20613. const m_INT_MAX1 = 2147483647
  20614. const m_LSEEK = "lseek"
  20615. const m_O_APPEND1 = 1024
  20616. const m_O_CLOEXEC1 = 524288
  20617. const m_O_CREAT1 = 64
  20618. const m_O_EXCL1 = 128
  20619. const m_O_LARGEFILE1 = 32768
  20620. const m_O_RDONLY1 = 0
  20621. const m_O_TRUNC1 = 512
  20622. const m_O_WRONLY1 = 1
  20623. // C documentation
  20624. //
  20625. // /* Reset gzip file state */
  20626. func _gz_reset(tls *libc.TLS, state Tgz_statep) {
  20627. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave = uint32(0) /* no output data available */
  20628. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_READ) { /* for reading ... */
  20629. (*Tgz_state)(unsafe.Pointer(state)).Feof = 0 /* not at end of file */
  20630. (*Tgz_state)(unsafe.Pointer(state)).Fpast = 0 /* have not read past end yet */
  20631. (*Tgz_state)(unsafe.Pointer(state)).Fhow = m_LOOK /* look for gzip header */
  20632. } else { /* for writing ... */
  20633. (*Tgz_state)(unsafe.Pointer(state)).Freset = 0
  20634. } /* no deflateReset pending */
  20635. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0 /* no seek request pending */
  20636. Xgz_error(tls, state, m_Z_OK, libc.UintptrFromInt32(0)) /* clear error */
  20637. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos = 0 /* no uncompressed data yet */
  20638. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_in = uint32(0) /* no input data yet */
  20639. }
  20640. // C documentation
  20641. //
  20642. // /* Open a gzip file either by name or file descriptor. */
  20643. func _gz_open(tls *libc.TLS, path uintptr, fd int32, mode uintptr) (r TgzFile) {
  20644. bp := tls.Alloc(16)
  20645. defer tls.Free(16)
  20646. var cloexec, exclusive, oflag, v1, v2, v3, v4, v5 int32
  20647. var len1 Tz_size_t
  20648. var state Tgz_statep
  20649. _, _, _, _, _, _, _, _, _, _ = cloexec, exclusive, len1, oflag, state, v1, v2, v3, v4, v5
  20650. cloexec = 0
  20651. exclusive = 0
  20652. /* check input */
  20653. if path == libc.UintptrFromInt32(0) {
  20654. return libc.UintptrFromInt32(0)
  20655. }
  20656. /* allocate gzFile structure to return */
  20657. state = libc.Xmalloc(tls, uint64(240))
  20658. if state == libc.UintptrFromInt32(0) {
  20659. return libc.UintptrFromInt32(0)
  20660. }
  20661. (*Tgz_state)(unsafe.Pointer(state)).Fsize = uint32(0) /* no buffers allocated yet */
  20662. (*Tgz_state)(unsafe.Pointer(state)).Fwant = uint32(m_GZBUFSIZE) /* requested buffer size */
  20663. (*Tgz_state)(unsafe.Pointer(state)).Fmsg = libc.UintptrFromInt32(0) /* no error message yet */
  20664. /* interpret mode */
  20665. (*Tgz_state)(unsafe.Pointer(state)).Fmode = m_GZ_NONE
  20666. (*Tgz_state)(unsafe.Pointer(state)).Flevel = -int32(1)
  20667. (*Tgz_state)(unsafe.Pointer(state)).Fstrategy = m_Z_DEFAULT_STRATEGY
  20668. (*Tgz_state)(unsafe.Pointer(state)).Fdirect = 0
  20669. for *(*int8)(unsafe.Pointer(mode)) != 0 {
  20670. if int32(*(*int8)(unsafe.Pointer(mode))) >= int32('0') && int32(*(*int8)(unsafe.Pointer(mode))) <= int32('9') {
  20671. (*Tgz_state)(unsafe.Pointer(state)).Flevel = int32(*(*int8)(unsafe.Pointer(mode))) - int32('0')
  20672. } else {
  20673. switch int32(*(*int8)(unsafe.Pointer(mode))) {
  20674. case int32('r'):
  20675. (*Tgz_state)(unsafe.Pointer(state)).Fmode = int32(m_GZ_READ)
  20676. case int32('w'):
  20677. (*Tgz_state)(unsafe.Pointer(state)).Fmode = int32(m_GZ_WRITE)
  20678. case int32('a'):
  20679. (*Tgz_state)(unsafe.Pointer(state)).Fmode = int32(m_GZ_APPEND)
  20680. case int32('+'): /* can't read and write at the same time */
  20681. libc.Xfree(tls, state)
  20682. return libc.UintptrFromInt32(0)
  20683. case int32('b'): /* ignore -- will request binary anyway */
  20684. case int32('e'):
  20685. cloexec = int32(1)
  20686. case int32('x'):
  20687. exclusive = int32(1)
  20688. case int32('f'):
  20689. (*Tgz_state)(unsafe.Pointer(state)).Fstrategy = int32(m_Z_FILTERED)
  20690. case int32('h'):
  20691. (*Tgz_state)(unsafe.Pointer(state)).Fstrategy = int32(m_Z_HUFFMAN_ONLY)
  20692. case int32('R'):
  20693. (*Tgz_state)(unsafe.Pointer(state)).Fstrategy = int32(m_Z_RLE)
  20694. case int32('F'):
  20695. (*Tgz_state)(unsafe.Pointer(state)).Fstrategy = int32(m_Z_FIXED)
  20696. case int32('T'):
  20697. (*Tgz_state)(unsafe.Pointer(state)).Fdirect = int32(1)
  20698. default: /* could consider as an error, but just ignore */
  20699. }
  20700. }
  20701. mode++
  20702. }
  20703. /* must provide an "r", "w", or "a" */
  20704. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == m_GZ_NONE {
  20705. libc.Xfree(tls, state)
  20706. return libc.UintptrFromInt32(0)
  20707. }
  20708. /* can't force transparent read */
  20709. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_READ) {
  20710. if (*Tgz_state)(unsafe.Pointer(state)).Fdirect != 0 {
  20711. libc.Xfree(tls, state)
  20712. return libc.UintptrFromInt32(0)
  20713. }
  20714. (*Tgz_state)(unsafe.Pointer(state)).Fdirect = int32(1) /* for empty file */
  20715. }
  20716. /* save the path name for error messages */
  20717. len1 = libc.Xstrlen(tls, path)
  20718. (*Tgz_state)(unsafe.Pointer(state)).Fpath = libc.Xmalloc(tls, len1+uint64(1))
  20719. if (*Tgz_state)(unsafe.Pointer(state)).Fpath == libc.UintptrFromInt32(0) {
  20720. libc.Xfree(tls, state)
  20721. return libc.UintptrFromInt32(0)
  20722. }
  20723. libc.X__builtin_snprintf(tls, (*Tgz_state)(unsafe.Pointer(state)).Fpath, len1+uint64(1), __ccgo_ts+584, libc.VaList(bp+8, path))
  20724. /* compute the flags for open() */
  20725. if cloexec != 0 {
  20726. v1 = int32(m_O_CLOEXEC1)
  20727. } else {
  20728. v1 = 0
  20729. }
  20730. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_READ) {
  20731. v2 = m_O_RDONLY1
  20732. } else {
  20733. if exclusive != 0 {
  20734. v3 = int32(m_O_EXCL1)
  20735. } else {
  20736. v3 = 0
  20737. }
  20738. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_WRITE) {
  20739. v4 = int32(m_O_TRUNC1)
  20740. } else {
  20741. v4 = int32(m_O_APPEND1)
  20742. }
  20743. v2 = libc.Int32FromInt32(m_O_WRONLY1) | libc.Int32FromInt32(m_O_CREAT1) | v3 | v4
  20744. }
  20745. oflag = int32(m_O_LARGEFILE1) | v1 | v2
  20746. /* open the file with the appropriate flags (or just use fd) */
  20747. if fd > -int32(1) {
  20748. v5 = fd
  20749. } else {
  20750. v5 = libc.Xopen(tls, path, oflag, libc.VaList(bp+8, int32(0666)))
  20751. }
  20752. (*Tgz_state)(unsafe.Pointer(state)).Ffd = v5
  20753. if (*Tgz_state)(unsafe.Pointer(state)).Ffd == -int32(1) {
  20754. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fpath)
  20755. libc.Xfree(tls, state)
  20756. return libc.UintptrFromInt32(0)
  20757. }
  20758. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_APPEND) {
  20759. libc.Xlseek(tls, (*Tgz_state)(unsafe.Pointer(state)).Ffd, 0, int32(2)) /* so gzoffset() is correct */
  20760. (*Tgz_state)(unsafe.Pointer(state)).Fmode = int32(m_GZ_WRITE) /* simplify later checks */
  20761. }
  20762. /* save the current position for rewinding (only if reading) */
  20763. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_READ) {
  20764. (*Tgz_state)(unsafe.Pointer(state)).Fstart = libc.Xlseek(tls, (*Tgz_state)(unsafe.Pointer(state)).Ffd, 0, int32(1))
  20765. if (*Tgz_state)(unsafe.Pointer(state)).Fstart == int64(-int32(1)) {
  20766. (*Tgz_state)(unsafe.Pointer(state)).Fstart = 0
  20767. }
  20768. }
  20769. /* initialize stream */
  20770. _gz_reset(tls, state)
  20771. /* return stream */
  20772. return state
  20773. }
  20774. // C documentation
  20775. //
  20776. // /* -- see zlib.h -- */
  20777. func Xgzopen(tls *libc.TLS, path uintptr, mode uintptr) (r TgzFile) {
  20778. return _gz_open(tls, path, -int32(1), mode)
  20779. }
  20780. // C documentation
  20781. //
  20782. // /* -- see zlib.h -- */
  20783. func Xgzopen64(tls *libc.TLS, path uintptr, mode uintptr) (r TgzFile) {
  20784. return _gz_open(tls, path, -int32(1), mode)
  20785. }
  20786. // C documentation
  20787. //
  20788. // /* -- see zlib.h -- */
  20789. func Xgzdopen(tls *libc.TLS, fd int32, mode uintptr) (r TgzFile) {
  20790. bp := tls.Alloc(16)
  20791. defer tls.Free(16)
  20792. var gz TgzFile
  20793. var path, v1 uintptr
  20794. var v2 bool
  20795. _, _, _, _ = gz, path, v1, v2
  20796. if v2 = fd == -int32(1); !v2 {
  20797. v1 = libc.Xmalloc(tls, libc.Uint64FromInt32(7)+libc.Uint64FromInt32(3)*libc.Uint64FromInt64(4))
  20798. path = v1
  20799. }
  20800. if v2 || v1 == libc.UintptrFromInt32(0) {
  20801. return libc.UintptrFromInt32(0)
  20802. }
  20803. libc.X__builtin_snprintf(tls, path, libc.Uint64FromInt32(7)+libc.Uint64FromInt32(3)*libc.Uint64FromInt64(4), __ccgo_ts+587, libc.VaList(bp+8, fd))
  20804. gz = _gz_open(tls, path, fd, mode)
  20805. libc.Xfree(tls, path)
  20806. return gz
  20807. }
  20808. /* -- see zlib.h -- */
  20809. // C documentation
  20810. //
  20811. // /* -- see zlib.h -- */
  20812. func Xgzbuffer(tls *libc.TLS, file TgzFile, size uint32) (r int32) {
  20813. var state Tgz_statep
  20814. _ = state
  20815. /* get internal structure and check integrity */
  20816. if file == libc.UintptrFromInt32(0) {
  20817. return -int32(1)
  20818. }
  20819. state = file
  20820. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) && (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) {
  20821. return -int32(1)
  20822. }
  20823. /* make sure we haven't already allocated memory */
  20824. if (*Tgz_state)(unsafe.Pointer(state)).Fsize != uint32(0) {
  20825. return -int32(1)
  20826. }
  20827. /* check and set requested size */
  20828. if size<<int32(1) < size {
  20829. return -int32(1)
  20830. } /* need to be able to double it */
  20831. if size < uint32(8) {
  20832. size = uint32(8)
  20833. } /* needed to behave well with flushing */
  20834. (*Tgz_state)(unsafe.Pointer(state)).Fwant = size
  20835. return 0
  20836. }
  20837. // C documentation
  20838. //
  20839. // /* -- see zlib.h -- */
  20840. func Xgzrewind(tls *libc.TLS, file TgzFile) (r int32) {
  20841. var state Tgz_statep
  20842. _ = state
  20843. /* get internal structure */
  20844. if file == libc.UintptrFromInt32(0) {
  20845. return -int32(1)
  20846. }
  20847. state = file
  20848. /* check that we're reading and that there's no error */
  20849. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) || (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK && (*Tgz_state)(unsafe.Pointer(state)).Ferr != -int32(5) {
  20850. return -int32(1)
  20851. }
  20852. /* back up and start over */
  20853. if libc.Xlseek(tls, (*Tgz_state)(unsafe.Pointer(state)).Ffd, (*Tgz_state)(unsafe.Pointer(state)).Fstart, 0) == int64(-int32(1)) {
  20854. return -int32(1)
  20855. }
  20856. _gz_reset(tls, state)
  20857. return 0
  20858. }
  20859. // C documentation
  20860. //
  20861. // /* -- see zlib.h -- */
  20862. func Xgzseek64(tls *libc.TLS, file TgzFile, offset Toff_t, whence int32) (r Toff_t) {
  20863. var n, v1 uint32
  20864. var ret Toff_t
  20865. var state Tgz_statep
  20866. _, _, _, _ = n, ret, state, v1
  20867. /* get internal structure and check integrity */
  20868. if file == libc.UintptrFromInt32(0) {
  20869. return int64(-int32(1))
  20870. }
  20871. state = file
  20872. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) && (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) {
  20873. return int64(-int32(1))
  20874. }
  20875. /* check that there's no error */
  20876. if (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK && (*Tgz_state)(unsafe.Pointer(state)).Ferr != -int32(5) {
  20877. return int64(-int32(1))
  20878. }
  20879. /* can only seek from start or relative to current position */
  20880. if whence != 0 && whence != int32(1) {
  20881. return int64(-int32(1))
  20882. }
  20883. /* normalize offset to a SEEK_CUR specification */
  20884. if whence == 0 {
  20885. offset -= (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos
  20886. } else {
  20887. if (*Tgz_state)(unsafe.Pointer(state)).Fseek != 0 {
  20888. offset += (*Tgz_state)(unsafe.Pointer(state)).Fskip
  20889. }
  20890. }
  20891. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0
  20892. /* if within raw area while reading, just go there */
  20893. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_READ) && (*Tgz_state)(unsafe.Pointer(state)).Fhow == int32(m_COPY) && (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos+offset >= 0 {
  20894. ret = libc.Xlseek(tls, (*Tgz_state)(unsafe.Pointer(state)).Ffd, offset-libc.Int64FromUint32((*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave), int32(1))
  20895. if ret == int64(-int32(1)) {
  20896. return int64(-int32(1))
  20897. }
  20898. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave = uint32(0)
  20899. (*Tgz_state)(unsafe.Pointer(state)).Feof = 0
  20900. (*Tgz_state)(unsafe.Pointer(state)).Fpast = 0
  20901. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0
  20902. Xgz_error(tls, state, m_Z_OK, libc.UintptrFromInt32(0))
  20903. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_in = uint32(0)
  20904. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos += offset
  20905. return (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos
  20906. }
  20907. /* calculate skip amount, rewinding if needed for back seek when reading */
  20908. if offset < 0 {
  20909. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) { /* writing -- can't go backwards */
  20910. return int64(-int32(1))
  20911. }
  20912. offset += (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos
  20913. if offset < 0 { /* before start of file! */
  20914. return int64(-int32(1))
  20915. }
  20916. if Xgzrewind(tls, file) == -int32(1) { /* rewind, then skip to offset */
  20917. return int64(-int32(1))
  20918. }
  20919. }
  20920. /* if reading, skip what's in output buffer (one less gzgetc() check) */
  20921. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_READ) {
  20922. if libc.Bool(libc.Bool(uint64(4) == uint64(8)) && (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave > Xgz_intmax(tls)) || libc.Int64FromUint32((*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave) > offset {
  20923. v1 = libc.Uint32FromInt64(offset)
  20924. } else {
  20925. v1 = (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave
  20926. }
  20927. n = v1
  20928. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave -= n
  20929. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext += uintptr(n)
  20930. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos += libc.Int64FromUint32(n)
  20931. offset -= libc.Int64FromUint32(n)
  20932. }
  20933. /* request skip (if not zero) */
  20934. if offset != 0 {
  20935. (*Tgz_state)(unsafe.Pointer(state)).Fseek = int32(1)
  20936. (*Tgz_state)(unsafe.Pointer(state)).Fskip = offset
  20937. }
  20938. return (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos + offset
  20939. }
  20940. // C documentation
  20941. //
  20942. // /* -- see zlib.h -- */
  20943. func Xgzseek(tls *libc.TLS, file TgzFile, offset Toff_t, whence int32) (r Toff_t) {
  20944. var ret Toff_t
  20945. var v1 int64
  20946. _, _ = ret, v1
  20947. ret = Xgzseek64(tls, file, offset, whence)
  20948. if ret == ret {
  20949. v1 = ret
  20950. } else {
  20951. v1 = int64(-int32(1))
  20952. }
  20953. return v1
  20954. }
  20955. // C documentation
  20956. //
  20957. // /* -- see zlib.h -- */
  20958. func Xgztell64(tls *libc.TLS, file TgzFile) (r Toff_t) {
  20959. var state Tgz_statep
  20960. var v1 int64
  20961. _, _ = state, v1
  20962. /* get internal structure and check integrity */
  20963. if file == libc.UintptrFromInt32(0) {
  20964. return int64(-int32(1))
  20965. }
  20966. state = file
  20967. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) && (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) {
  20968. return int64(-int32(1))
  20969. }
  20970. /* return position */
  20971. if (*Tgz_state)(unsafe.Pointer(state)).Fseek != 0 {
  20972. v1 = (*Tgz_state)(unsafe.Pointer(state)).Fskip
  20973. } else {
  20974. v1 = 0
  20975. }
  20976. return (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos + v1
  20977. }
  20978. // C documentation
  20979. //
  20980. // /* -- see zlib.h -- */
  20981. func Xgztell(tls *libc.TLS, file TgzFile) (r Toff_t) {
  20982. var ret Toff_t
  20983. var v1 int64
  20984. _, _ = ret, v1
  20985. ret = Xgztell64(tls, file)
  20986. if ret == ret {
  20987. v1 = ret
  20988. } else {
  20989. v1 = int64(-int32(1))
  20990. }
  20991. return v1
  20992. }
  20993. // C documentation
  20994. //
  20995. // /* -- see zlib.h -- */
  20996. func Xgzoffset64(tls *libc.TLS, file TgzFile) (r Toff_t) {
  20997. var offset Toff_t
  20998. var state Tgz_statep
  20999. _, _ = offset, state
  21000. /* get internal structure and check integrity */
  21001. if file == libc.UintptrFromInt32(0) {
  21002. return int64(-int32(1))
  21003. }
  21004. state = file
  21005. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) && (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) {
  21006. return int64(-int32(1))
  21007. }
  21008. /* compute and return effective offset in file */
  21009. offset = libc.Xlseek(tls, (*Tgz_state)(unsafe.Pointer(state)).Ffd, 0, int32(1))
  21010. if offset == int64(-int32(1)) {
  21011. return int64(-int32(1))
  21012. }
  21013. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_READ) { /* reading */
  21014. offset -= libc.Int64FromUint32((*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_in)
  21015. } /* don't count buffered input */
  21016. return offset
  21017. }
  21018. // C documentation
  21019. //
  21020. // /* -- see zlib.h -- */
  21021. func Xgzoffset(tls *libc.TLS, file TgzFile) (r Toff_t) {
  21022. var ret Toff_t
  21023. var v1 int64
  21024. _, _ = ret, v1
  21025. ret = Xgzoffset64(tls, file)
  21026. if ret == ret {
  21027. v1 = ret
  21028. } else {
  21029. v1 = int64(-int32(1))
  21030. }
  21031. return v1
  21032. }
  21033. // C documentation
  21034. //
  21035. // /* -- see zlib.h -- */
  21036. func Xgzeof(tls *libc.TLS, file TgzFile) (r int32) {
  21037. var state Tgz_statep
  21038. var v1 int32
  21039. _, _ = state, v1
  21040. /* get internal structure and check integrity */
  21041. if file == libc.UintptrFromInt32(0) {
  21042. return 0
  21043. }
  21044. state = file
  21045. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) && (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) {
  21046. return 0
  21047. }
  21048. /* return end-of-file state */
  21049. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_READ) {
  21050. v1 = (*Tgz_state)(unsafe.Pointer(state)).Fpast
  21051. } else {
  21052. v1 = 0
  21053. }
  21054. return v1
  21055. }
  21056. // C documentation
  21057. //
  21058. // /* -- see zlib.h -- */
  21059. func Xgzerror(tls *libc.TLS, file TgzFile, errnum uintptr) (r uintptr) {
  21060. var state Tgz_statep
  21061. var v1, v2 uintptr
  21062. _, _, _ = state, v1, v2
  21063. /* get internal structure and check integrity */
  21064. if file == libc.UintptrFromInt32(0) {
  21065. return libc.UintptrFromInt32(0)
  21066. }
  21067. state = file
  21068. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) && (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) {
  21069. return libc.UintptrFromInt32(0)
  21070. }
  21071. /* return error information */
  21072. if errnum != libc.UintptrFromInt32(0) {
  21073. *(*int32)(unsafe.Pointer(errnum)) = (*Tgz_state)(unsafe.Pointer(state)).Ferr
  21074. }
  21075. if (*Tgz_state)(unsafe.Pointer(state)).Ferr == -int32(4) {
  21076. v1 = __ccgo_ts + 595
  21077. } else {
  21078. if (*Tgz_state)(unsafe.Pointer(state)).Fmsg == libc.UintptrFromInt32(0) {
  21079. v2 = __ccgo_ts + 494
  21080. } else {
  21081. v2 = (*Tgz_state)(unsafe.Pointer(state)).Fmsg
  21082. }
  21083. v1 = v2
  21084. }
  21085. return v1
  21086. }
  21087. // C documentation
  21088. //
  21089. // /* -- see zlib.h -- */
  21090. func Xgzclearerr(tls *libc.TLS, file TgzFile) {
  21091. var state Tgz_statep
  21092. _ = state
  21093. /* get internal structure and check integrity */
  21094. if file == libc.UintptrFromInt32(0) {
  21095. return
  21096. }
  21097. state = file
  21098. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) && (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) {
  21099. return
  21100. }
  21101. /* clear error and end-of-file */
  21102. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_READ) {
  21103. (*Tgz_state)(unsafe.Pointer(state)).Feof = 0
  21104. (*Tgz_state)(unsafe.Pointer(state)).Fpast = 0
  21105. }
  21106. Xgz_error(tls, state, m_Z_OK, libc.UintptrFromInt32(0))
  21107. }
  21108. // C documentation
  21109. //
  21110. // /* Create an error message in allocated memory and set state->err and
  21111. // state->msg accordingly. Free any previous error message already there. Do
  21112. // not try to free or allocate space if the error is Z_MEM_ERROR (out of
  21113. // memory). Simply save the error message as a static string. If there is an
  21114. // allocation failure constructing the error message, then convert the error to
  21115. // out of memory. */
  21116. func Xgz_error(tls *libc.TLS, state Tgz_statep, err int32, msg uintptr) {
  21117. bp := tls.Alloc(32)
  21118. defer tls.Free(32)
  21119. var v1 uintptr
  21120. _ = v1
  21121. /* free previously allocated message and clear */
  21122. if (*Tgz_state)(unsafe.Pointer(state)).Fmsg != libc.UintptrFromInt32(0) {
  21123. if (*Tgz_state)(unsafe.Pointer(state)).Ferr != -int32(4) {
  21124. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fmsg)
  21125. }
  21126. (*Tgz_state)(unsafe.Pointer(state)).Fmsg = libc.UintptrFromInt32(0)
  21127. }
  21128. /* if fatal, set state->x.have to 0 so that the gzgetc() macro fails */
  21129. if err != m_Z_OK && err != -int32(5) {
  21130. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave = uint32(0)
  21131. }
  21132. /* set error code, and if no message, then done */
  21133. (*Tgz_state)(unsafe.Pointer(state)).Ferr = err
  21134. if msg == libc.UintptrFromInt32(0) {
  21135. return
  21136. }
  21137. /* for an out of memory error, return literal string when requested */
  21138. if err == -int32(4) {
  21139. return
  21140. }
  21141. /* construct error message with path */
  21142. v1 = libc.Xmalloc(tls, libc.Xstrlen(tls, (*Tgz_state)(unsafe.Pointer(state)).Fpath)+libc.Xstrlen(tls, msg)+uint64(3))
  21143. (*Tgz_state)(unsafe.Pointer(state)).Fmsg = v1
  21144. if v1 == libc.UintptrFromInt32(0) {
  21145. (*Tgz_state)(unsafe.Pointer(state)).Ferr = -int32(4)
  21146. return
  21147. }
  21148. libc.X__builtin_snprintf(tls, (*Tgz_state)(unsafe.Pointer(state)).Fmsg, libc.Xstrlen(tls, (*Tgz_state)(unsafe.Pointer(state)).Fpath)+libc.Xstrlen(tls, msg)+uint64(3), __ccgo_ts+609, libc.VaList(bp+8, (*Tgz_state)(unsafe.Pointer(state)).Fpath, __ccgo_ts+616, msg))
  21149. }
  21150. // C documentation
  21151. //
  21152. // /* portably return maximum value for an int (when limits.h presumed not
  21153. // available) -- we need to do this to cover cases where 2's complement not
  21154. // used, since C standard permits 1's complement and sign-bit representations,
  21155. // otherwise we could just use ((unsigned)-1) >> 1 */
  21156. func Xgz_intmax(tls *libc.TLS) (r uint32) {
  21157. return uint32(m_INT_MAX1)
  21158. }
  21159. const m_INT_MAX2 = 0x7fffffff
  21160. const m_O_APPEND2 = 02000
  21161. const m_O_CLOEXEC2 = 02000000
  21162. const m_O_CREAT2 = 0100
  21163. const m_O_EXCL2 = 0200
  21164. const m_O_LARGEFILE2 = 0100000
  21165. const m_O_RDONLY2 = 00
  21166. const m_O_TRUNC2 = 01000
  21167. const m_O_WRONLY2 = 01
  21168. // C documentation
  21169. //
  21170. // /* Use read() to load a buffer -- return -1 on error, otherwise 0. Read from
  21171. // state->fd, and update state->eof, state->err, and state->msg as appropriate.
  21172. // This function needs to loop on read(), since read() is not guaranteed to
  21173. // read the number of bytes requested, depending on the type of descriptor. */
  21174. func _gz_load(tls *libc.TLS, state Tgz_statep, buf uintptr, len1 uint32, have uintptr) (r int32) {
  21175. var get, max uint32
  21176. var ret int32
  21177. _, _, _ = get, max, ret
  21178. max = libc.Uint32FromInt32(-libc.Int32FromInt32(1))>>libc.Int32FromInt32(2) + libc.Uint32FromInt32(1)
  21179. *(*uint32)(unsafe.Pointer(have)) = uint32(0)
  21180. for cond := true; cond; cond = *(*uint32)(unsafe.Pointer(have)) < len1 {
  21181. get = len1 - *(*uint32)(unsafe.Pointer(have))
  21182. if get > max {
  21183. get = max
  21184. }
  21185. ret = int32(libc.Xread(tls, (*Tgz_state)(unsafe.Pointer(state)).Ffd, buf+uintptr(*(*uint32)(unsafe.Pointer(have))), uint64(get)))
  21186. if ret <= 0 {
  21187. break
  21188. }
  21189. *(*uint32)(unsafe.Pointer(have)) += libc.Uint32FromInt32(ret)
  21190. }
  21191. if ret < 0 {
  21192. Xgz_error(tls, state, -int32(1), libc.Xstrerror(tls, *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))))
  21193. return -int32(1)
  21194. }
  21195. if ret == 0 {
  21196. (*Tgz_state)(unsafe.Pointer(state)).Feof = int32(1)
  21197. }
  21198. return 0
  21199. }
  21200. // C documentation
  21201. //
  21202. // /* Load up input buffer and set eof flag if last data loaded -- return -1 on
  21203. // error, 0 otherwise. Note that the eof flag is set when the end of the input
  21204. // file is reached, even though there may be unused data in the buffer. Once
  21205. // that data has been used, no more attempts will be made to read the file.
  21206. // If strm->avail_in != 0, then the current data is moved to the beginning of
  21207. // the input buffer, and then the remainder of the buffer is loaded with the
  21208. // available data from the input file. */
  21209. func _gz_avail(tls *libc.TLS, state Tgz_statep) (r int32) {
  21210. bp := tls.Alloc(16)
  21211. defer tls.Free(16)
  21212. var n, v1 uint32
  21213. var p, q, v3, v4 uintptr
  21214. var strm Tz_streamp
  21215. var _ /* got at bp+0 */ uint32
  21216. _, _, _, _, _, _, _ = n, p, q, strm, v1, v3, v4
  21217. strm = state + 128
  21218. if (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK && (*Tgz_state)(unsafe.Pointer(state)).Ferr != -int32(5) {
  21219. return -int32(1)
  21220. }
  21221. if (*Tgz_state)(unsafe.Pointer(state)).Feof == 0 {
  21222. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in != 0 { /* copy what's there to the start */
  21223. p = (*Tgz_state)(unsafe.Pointer(state)).Fin
  21224. q = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in
  21225. n = (*Tz_stream)(unsafe.Pointer(strm)).Favail_in
  21226. for {
  21227. v3 = p
  21228. p++
  21229. v4 = q
  21230. q++
  21231. *(*uint8)(unsafe.Pointer(v3)) = *(*uint8)(unsafe.Pointer(v4))
  21232. goto _2
  21233. _2:
  21234. ;
  21235. n--
  21236. v1 = n
  21237. if !(v1 != 0) {
  21238. break
  21239. }
  21240. }
  21241. }
  21242. if _gz_load(tls, state, (*Tgz_state)(unsafe.Pointer(state)).Fin+uintptr((*Tz_stream)(unsafe.Pointer(strm)).Favail_in), (*Tgz_state)(unsafe.Pointer(state)).Fsize-(*Tz_stream)(unsafe.Pointer(strm)).Favail_in, bp) == -int32(1) {
  21243. return -int32(1)
  21244. }
  21245. *(*TuInt)(unsafe.Pointer(strm + 8)) += *(*uint32)(unsafe.Pointer(bp))
  21246. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = (*Tgz_state)(unsafe.Pointer(state)).Fin
  21247. }
  21248. return 0
  21249. }
  21250. // C documentation
  21251. //
  21252. // /* Look for gzip header, set up for inflate or copy. state->x.have must be 0.
  21253. // If this is the first time in, allocate required memory. state->how will be
  21254. // left unchanged if there is no more input data available, will be set to COPY
  21255. // if there is no gzip header and direct copying will be performed, or it will
  21256. // be set to GZIP for decompression. If direct copying, then leftover input
  21257. // data from the input buffer will be copied to the output buffer. In that
  21258. // case, all further file reads will be directly to either the output buffer or
  21259. // a user buffer. If decompressing, the inflate state will be initialized.
  21260. // gz_look() will return 0 on success or -1 on failure. */
  21261. func _gz_look(tls *libc.TLS, state Tgz_statep) (r int32) {
  21262. var strm Tz_streamp
  21263. _ = strm
  21264. strm = state + 128
  21265. /* allocate read buffers and inflate memory */
  21266. if (*Tgz_state)(unsafe.Pointer(state)).Fsize == uint32(0) {
  21267. /* allocate buffers */
  21268. (*Tgz_state)(unsafe.Pointer(state)).Fin = libc.Xmalloc(tls, uint64((*Tgz_state)(unsafe.Pointer(state)).Fwant))
  21269. (*Tgz_state)(unsafe.Pointer(state)).Fout = libc.Xmalloc(tls, uint64((*Tgz_state)(unsafe.Pointer(state)).Fwant<<int32(1)))
  21270. if (*Tgz_state)(unsafe.Pointer(state)).Fin == libc.UintptrFromInt32(0) || (*Tgz_state)(unsafe.Pointer(state)).Fout == libc.UintptrFromInt32(0) {
  21271. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fout)
  21272. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fin)
  21273. Xgz_error(tls, state, -int32(4), __ccgo_ts+595)
  21274. return -int32(1)
  21275. }
  21276. (*Tgz_state)(unsafe.Pointer(state)).Fsize = (*Tgz_state)(unsafe.Pointer(state)).Fwant
  21277. /* allocate inflate memory */
  21278. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Fzalloc = uintptr(m_Z_NULL)
  21279. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Fzfree = uintptr(m_Z_NULL)
  21280. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Fopaque = uintptr(m_Z_NULL)
  21281. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_in = uint32(0)
  21282. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Fnext_in = uintptr(m_Z_NULL)
  21283. if XinflateInit2_(tls, state+128, libc.Int32FromInt32(15)+libc.Int32FromInt32(16), __ccgo_ts, libc.Int32FromInt64(112)) != m_Z_OK { /* gunzip */
  21284. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fout)
  21285. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fin)
  21286. (*Tgz_state)(unsafe.Pointer(state)).Fsize = uint32(0)
  21287. Xgz_error(tls, state, -int32(4), __ccgo_ts+595)
  21288. return -int32(1)
  21289. }
  21290. }
  21291. /* get at least the magic bytes in the input buffer */
  21292. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in < uint32(2) {
  21293. if _gz_avail(tls, state) == -int32(1) {
  21294. return -int32(1)
  21295. }
  21296. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in == uint32(0) {
  21297. return 0
  21298. }
  21299. }
  21300. /* look for gzip magic bytes -- if there, do gzip decoding (note: there is
  21301. a logical dilemma here when considering the case of a partially written
  21302. gzip file, to wit, if a single 31 byte is written, then we cannot tell
  21303. whether this is a single-byte file, or just a partially written gzip
  21304. file -- for here we assume that if a gzip file is being written, then
  21305. the header will be written in a single operation, so that reading a
  21306. single byte is sufficient indication that it is not a gzip file) */
  21307. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in > uint32(1) && libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fnext_in))) == int32(31) && libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fnext_in + 1))) == int32(139) {
  21308. XinflateReset(tls, strm)
  21309. (*Tgz_state)(unsafe.Pointer(state)).Fhow = int32(m_GZIP)
  21310. (*Tgz_state)(unsafe.Pointer(state)).Fdirect = 0
  21311. return 0
  21312. }
  21313. /* no gzip header -- if we were decoding gzip before, then this is trailing
  21314. garbage. Ignore the trailing garbage and finish. */
  21315. if (*Tgz_state)(unsafe.Pointer(state)).Fdirect == 0 {
  21316. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = uint32(0)
  21317. (*Tgz_state)(unsafe.Pointer(state)).Feof = int32(1)
  21318. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave = uint32(0)
  21319. return 0
  21320. }
  21321. /* doing raw i/o, copy any leftover input to output -- this assumes that
  21322. the output buffer is larger than the input buffer, which also assures
  21323. space for gzungetc() */
  21324. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext = (*Tgz_state)(unsafe.Pointer(state)).Fout
  21325. libc.Xmemcpy(tls, (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext, (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in, uint64((*Tz_stream)(unsafe.Pointer(strm)).Favail_in))
  21326. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave = (*Tz_stream)(unsafe.Pointer(strm)).Favail_in
  21327. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = uint32(0)
  21328. (*Tgz_state)(unsafe.Pointer(state)).Fhow = int32(m_COPY)
  21329. (*Tgz_state)(unsafe.Pointer(state)).Fdirect = int32(1)
  21330. return 0
  21331. }
  21332. // C documentation
  21333. //
  21334. // /* Decompress from input to the provided next_out and avail_out in the state.
  21335. // On return, state->x.have and state->x.next point to the just decompressed
  21336. // data. If the gzip stream completes, state->how is reset to LOOK to look for
  21337. // the next gzip stream or raw data, once state->x.have is depleted. Returns 0
  21338. // on success, -1 on failure. */
  21339. func _gz_decomp(tls *libc.TLS, state Tgz_statep) (r int32) {
  21340. var had uint32
  21341. var ret int32
  21342. var strm Tz_streamp
  21343. var v1 uintptr
  21344. _, _, _, _ = had, ret, strm, v1
  21345. ret = m_Z_OK
  21346. strm = state + 128
  21347. /* fill output buffer up to end of deflate stream */
  21348. had = (*Tz_stream)(unsafe.Pointer(strm)).Favail_out
  21349. for cond := true; cond; cond = (*Tz_stream)(unsafe.Pointer(strm)).Favail_out != 0 && ret != int32(m_Z_STREAM_END) {
  21350. /* get more input for inflate() */
  21351. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in == uint32(0) && _gz_avail(tls, state) == -int32(1) {
  21352. return -int32(1)
  21353. }
  21354. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in == uint32(0) {
  21355. Xgz_error(tls, state, -int32(5), __ccgo_ts+619)
  21356. break
  21357. }
  21358. /* decompress and handle errors */
  21359. ret = Xinflate(tls, strm, m_Z_NO_FLUSH)
  21360. if ret == -int32(2) || ret == int32(m_Z_NEED_DICT) {
  21361. Xgz_error(tls, state, -int32(2), __ccgo_ts+642)
  21362. return -int32(1)
  21363. }
  21364. if ret == -int32(4) {
  21365. Xgz_error(tls, state, -int32(4), __ccgo_ts+595)
  21366. return -int32(1)
  21367. }
  21368. if ret == -int32(3) { /* deflate stream invalid */
  21369. if (*Tz_stream)(unsafe.Pointer(strm)).Fmsg == libc.UintptrFromInt32(0) {
  21370. v1 = __ccgo_ts + 681
  21371. } else {
  21372. v1 = (*Tz_stream)(unsafe.Pointer(strm)).Fmsg
  21373. }
  21374. Xgz_error(tls, state, -int32(3), v1)
  21375. return -int32(1)
  21376. }
  21377. }
  21378. /* update available output */
  21379. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave = had - (*Tz_stream)(unsafe.Pointer(strm)).Favail_out
  21380. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out - uintptr((*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave)
  21381. /* if the gzip stream completed successfully, look for another */
  21382. if ret == int32(m_Z_STREAM_END) {
  21383. (*Tgz_state)(unsafe.Pointer(state)).Fhow = m_LOOK
  21384. }
  21385. /* good decompression */
  21386. return 0
  21387. }
  21388. // C documentation
  21389. //
  21390. // /* Fetch data and put it in the output buffer. Assumes state->x.have is 0.
  21391. // Data is either copied from the input file or decompressed from the input
  21392. // file depending on state->how. If state->how is LOOK, then a gzip header is
  21393. // looked for to determine whether to copy or decompress. Returns -1 on error,
  21394. // otherwise 0. gz_fetch() will leave state->how as COPY or GZIP unless the
  21395. // end of the input file has been reached and all data has been processed. */
  21396. func _gz_fetch(tls *libc.TLS, state Tgz_statep) (r int32) {
  21397. var strm Tz_streamp
  21398. _ = strm
  21399. strm = state + 128
  21400. for cond := true; cond; cond = (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave == uint32(0) && (!((*Tgz_state)(unsafe.Pointer(state)).Feof != 0) || (*Tz_stream)(unsafe.Pointer(strm)).Favail_in != 0) {
  21401. switch (*Tgz_state)(unsafe.Pointer(state)).Fhow {
  21402. case m_LOOK: /* -> LOOK, COPY (only if never GZIP), or GZIP */
  21403. if _gz_look(tls, state) == -int32(1) {
  21404. return -int32(1)
  21405. }
  21406. if (*Tgz_state)(unsafe.Pointer(state)).Fhow == m_LOOK {
  21407. return 0
  21408. }
  21409. case int32(m_COPY): /* -> COPY */
  21410. if _gz_load(tls, state, (*Tgz_state)(unsafe.Pointer(state)).Fout, (*Tgz_state)(unsafe.Pointer(state)).Fsize<<int32(1), state) == -int32(1) {
  21411. return -int32(1)
  21412. }
  21413. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext = (*Tgz_state)(unsafe.Pointer(state)).Fout
  21414. return 0
  21415. case int32(m_GZIP): /* -> GZIP or LOOK (if end of gzip stream) */
  21416. (*Tz_stream)(unsafe.Pointer(strm)).Favail_out = (*Tgz_state)(unsafe.Pointer(state)).Fsize << int32(1)
  21417. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out = (*Tgz_state)(unsafe.Pointer(state)).Fout
  21418. if _gz_decomp(tls, state) == -int32(1) {
  21419. return -int32(1)
  21420. }
  21421. }
  21422. }
  21423. return 0
  21424. }
  21425. // C documentation
  21426. //
  21427. // /* Skip len uncompressed bytes of output. Return -1 on error, 0 on success. */
  21428. func _gz_skip(tls *libc.TLS, state Tgz_statep, len1 Toff_t) (r int32) {
  21429. var n, v1 uint32
  21430. _, _ = n, v1
  21431. /* skip over len bytes or reach end-of-file, whichever comes first */
  21432. for len1 != 0 {
  21433. /* skip over whatever is in output buffer */
  21434. if (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave != 0 {
  21435. if libc.Bool(libc.Bool(uint64(4) == uint64(8)) && (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave > Xgz_intmax(tls)) || libc.Int64FromUint32((*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave) > len1 {
  21436. v1 = libc.Uint32FromInt64(len1)
  21437. } else {
  21438. v1 = (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave
  21439. }
  21440. n = v1
  21441. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave -= n
  21442. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext += uintptr(n)
  21443. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos += libc.Int64FromUint32(n)
  21444. len1 -= libc.Int64FromUint32(n)
  21445. } else {
  21446. if (*Tgz_state)(unsafe.Pointer(state)).Feof != 0 && (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_in == uint32(0) {
  21447. break
  21448. } else {
  21449. /* get more output, looking for header if required */
  21450. if _gz_fetch(tls, state) == -int32(1) {
  21451. return -int32(1)
  21452. }
  21453. }
  21454. }
  21455. }
  21456. return 0
  21457. }
  21458. // C documentation
  21459. //
  21460. // /* Read len bytes into buf from file, or less than len up to the end of the
  21461. // input. Return the number of bytes read. If zero is returned, either the
  21462. // end of file was reached, or there was an error. state->err must be
  21463. // consulted in that case to determine which. */
  21464. func _gz_read(tls *libc.TLS, state Tgz_statep, buf Tvoidp, len1 Tz_size_t) (r Tz_size_t) {
  21465. bp := tls.Alloc(16)
  21466. defer tls.Free(16)
  21467. var got Tz_size_t
  21468. var _ /* n at bp+0 */ uint32
  21469. _ = got
  21470. /* if len is zero, avoid unnecessary operations */
  21471. if len1 == uint64(0) {
  21472. return uint64(0)
  21473. }
  21474. /* process a skip request */
  21475. if (*Tgz_state)(unsafe.Pointer(state)).Fseek != 0 {
  21476. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0
  21477. if _gz_skip(tls, state, (*Tgz_state)(unsafe.Pointer(state)).Fskip) == -int32(1) {
  21478. return uint64(0)
  21479. }
  21480. }
  21481. /* get len bytes to buf, or less than len if at the end */
  21482. got = uint64(0)
  21483. for cond := true; cond; cond = len1 != 0 {
  21484. /* set n to the maximum amount of len that fits in an unsigned int */
  21485. *(*uint32)(unsafe.Pointer(bp)) = libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  21486. if uint64(*(*uint32)(unsafe.Pointer(bp))) > len1 {
  21487. *(*uint32)(unsafe.Pointer(bp)) = uint32(len1)
  21488. }
  21489. /* first just try copying data from the output buffer */
  21490. if (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave != 0 {
  21491. if (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave < *(*uint32)(unsafe.Pointer(bp)) {
  21492. *(*uint32)(unsafe.Pointer(bp)) = (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave
  21493. }
  21494. libc.Xmemcpy(tls, buf, (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext, uint64(*(*uint32)(unsafe.Pointer(bp))))
  21495. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext += uintptr(*(*uint32)(unsafe.Pointer(bp)))
  21496. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave -= *(*uint32)(unsafe.Pointer(bp))
  21497. } else {
  21498. if (*Tgz_state)(unsafe.Pointer(state)).Feof != 0 && (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_in == uint32(0) {
  21499. (*Tgz_state)(unsafe.Pointer(state)).Fpast = int32(1) /* tried to read past end */
  21500. break
  21501. } else {
  21502. if (*Tgz_state)(unsafe.Pointer(state)).Fhow == m_LOOK || *(*uint32)(unsafe.Pointer(bp)) < (*Tgz_state)(unsafe.Pointer(state)).Fsize<<int32(1) {
  21503. /* get more output, looking for header if required */
  21504. if _gz_fetch(tls, state) == -int32(1) {
  21505. return uint64(0)
  21506. }
  21507. continue /* no progress yet -- go back to copy above */
  21508. /* the copy above assures that we will leave with space in the
  21509. output buffer, allowing at least one gzungetc() to succeed */
  21510. } else {
  21511. if (*Tgz_state)(unsafe.Pointer(state)).Fhow == int32(m_COPY) { /* read directly */
  21512. if _gz_load(tls, state, buf, *(*uint32)(unsafe.Pointer(bp)), bp) == -int32(1) {
  21513. return uint64(0)
  21514. }
  21515. } else { /* state->how == GZIP */
  21516. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_out = *(*uint32)(unsafe.Pointer(bp))
  21517. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Fnext_out = buf
  21518. if _gz_decomp(tls, state) == -int32(1) {
  21519. return uint64(0)
  21520. }
  21521. *(*uint32)(unsafe.Pointer(bp)) = (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave
  21522. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave = uint32(0)
  21523. }
  21524. }
  21525. }
  21526. }
  21527. /* update progress */
  21528. len1 -= uint64(*(*uint32)(unsafe.Pointer(bp)))
  21529. buf = buf + uintptr(*(*uint32)(unsafe.Pointer(bp)))
  21530. got += uint64(*(*uint32)(unsafe.Pointer(bp)))
  21531. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos += libc.Int64FromUint32(*(*uint32)(unsafe.Pointer(bp)))
  21532. }
  21533. /* return number of bytes read into user buffer */
  21534. return got
  21535. }
  21536. // C documentation
  21537. //
  21538. // /* -- see zlib.h -- */
  21539. func Xgzread(tls *libc.TLS, file TgzFile, buf Tvoidp, len1 uint32) (r int32) {
  21540. var state Tgz_statep
  21541. _ = state
  21542. /* get internal structure */
  21543. if file == libc.UintptrFromInt32(0) {
  21544. return -int32(1)
  21545. }
  21546. state = file
  21547. /* check that we're reading and that there's no (serious) error */
  21548. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) || (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK && (*Tgz_state)(unsafe.Pointer(state)).Ferr != -int32(5) {
  21549. return -int32(1)
  21550. }
  21551. /* since an int is returned, make sure len fits in one, otherwise return
  21552. with an error (this avoids a flaw in the interface) */
  21553. if libc.Int32FromUint32(len1) < 0 {
  21554. Xgz_error(tls, state, -int32(2), __ccgo_ts+703)
  21555. return -int32(1)
  21556. }
  21557. /* read len or fewer bytes to buf */
  21558. len1 = uint32(_gz_read(tls, state, buf, uint64(len1)))
  21559. /* check for an error */
  21560. if len1 == uint32(0) && (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK && (*Tgz_state)(unsafe.Pointer(state)).Ferr != -int32(5) {
  21561. return -int32(1)
  21562. }
  21563. /* return the number of bytes read (this is assured to fit in an int) */
  21564. return libc.Int32FromUint32(len1)
  21565. }
  21566. // C documentation
  21567. //
  21568. // /* -- see zlib.h -- */
  21569. func Xgzfread(tls *libc.TLS, buf Tvoidp, size Tz_size_t, nitems Tz_size_t, file TgzFile) (r Tz_size_t) {
  21570. var len1 Tz_size_t
  21571. var state Tgz_statep
  21572. var v1 uint64
  21573. _, _, _ = len1, state, v1
  21574. /* get internal structure */
  21575. if file == libc.UintptrFromInt32(0) {
  21576. return uint64(0)
  21577. }
  21578. state = file
  21579. /* check that we're reading and that there's no (serious) error */
  21580. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) || (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK && (*Tgz_state)(unsafe.Pointer(state)).Ferr != -int32(5) {
  21581. return uint64(0)
  21582. }
  21583. /* compute bytes to read -- error on overflow */
  21584. len1 = nitems * size
  21585. if size != 0 && len1/size != nitems {
  21586. Xgz_error(tls, state, -int32(2), __ccgo_ts+734)
  21587. return uint64(0)
  21588. }
  21589. /* read len or fewer bytes to buf, return the number of full items read */
  21590. if len1 != 0 {
  21591. v1 = _gz_read(tls, state, buf, len1) / size
  21592. } else {
  21593. v1 = uint64(0)
  21594. }
  21595. return v1
  21596. }
  21597. // C documentation
  21598. //
  21599. // /* -- see zlib.h -- */
  21600. func Xgzgetc(tls *libc.TLS, file TgzFile) (r int32) {
  21601. bp := tls.Alloc(16)
  21602. defer tls.Free(16)
  21603. var state Tgz_statep
  21604. var v1, v2 uintptr
  21605. var v3 int32
  21606. var _ /* buf at bp+0 */ [1]uint8
  21607. _, _, _, _ = state, v1, v2, v3
  21608. /* get internal structure */
  21609. if file == libc.UintptrFromInt32(0) {
  21610. return -int32(1)
  21611. }
  21612. state = file
  21613. /* check that we're reading and that there's no (serious) error */
  21614. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) || (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK && (*Tgz_state)(unsafe.Pointer(state)).Ferr != -int32(5) {
  21615. return -int32(1)
  21616. }
  21617. /* try output buffer (no need to check for skip request) */
  21618. if (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave != 0 {
  21619. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave--
  21620. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos++
  21621. v2 = state + 8
  21622. v1 = *(*uintptr)(unsafe.Pointer(v2))
  21623. *(*uintptr)(unsafe.Pointer(v2))++
  21624. return libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(v1)))
  21625. }
  21626. /* nothing there -- try gz_read() */
  21627. if _gz_read(tls, state, bp, uint64(1)) < uint64(1) {
  21628. v3 = -int32(1)
  21629. } else {
  21630. v3 = libc.Int32FromUint8((*(*[1]uint8)(unsafe.Pointer(bp)))[0])
  21631. }
  21632. return v3
  21633. }
  21634. func Xgzgetc_(tls *libc.TLS, file TgzFile) (r int32) {
  21635. return Xgzgetc(tls, file)
  21636. }
  21637. // C documentation
  21638. //
  21639. // /* -- see zlib.h -- */
  21640. func Xgzungetc(tls *libc.TLS, c int32, file TgzFile) (r int32) {
  21641. var dest, src, v1, v2 uintptr
  21642. var state Tgz_statep
  21643. _, _, _, _, _ = dest, src, state, v1, v2
  21644. /* get internal structure */
  21645. if file == libc.UintptrFromInt32(0) {
  21646. return -int32(1)
  21647. }
  21648. state = file
  21649. /* in case this was just opened, set up the input buffer */
  21650. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_READ) && (*Tgz_state)(unsafe.Pointer(state)).Fhow == m_LOOK && (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave == uint32(0) {
  21651. _gz_look(tls, state)
  21652. }
  21653. /* check that we're reading and that there's no (serious) error */
  21654. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) || (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK && (*Tgz_state)(unsafe.Pointer(state)).Ferr != -int32(5) {
  21655. return -int32(1)
  21656. }
  21657. /* process a skip request */
  21658. if (*Tgz_state)(unsafe.Pointer(state)).Fseek != 0 {
  21659. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0
  21660. if _gz_skip(tls, state, (*Tgz_state)(unsafe.Pointer(state)).Fskip) == -int32(1) {
  21661. return -int32(1)
  21662. }
  21663. }
  21664. /* can't push EOF */
  21665. if c < 0 {
  21666. return -int32(1)
  21667. }
  21668. /* if output buffer empty, put byte at end (allows more pushing) */
  21669. if (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave == uint32(0) {
  21670. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave = uint32(1)
  21671. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext = (*Tgz_state)(unsafe.Pointer(state)).Fout + uintptr((*Tgz_state)(unsafe.Pointer(state)).Fsize<<libc.Int32FromInt32(1)) - uintptr(1)
  21672. *(*uint8)(unsafe.Pointer((*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext)) = libc.Uint8FromInt32(c)
  21673. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos--
  21674. (*Tgz_state)(unsafe.Pointer(state)).Fpast = 0
  21675. return c
  21676. }
  21677. /* if no room, give up (must have already done a gzungetc()) */
  21678. if (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave == (*Tgz_state)(unsafe.Pointer(state)).Fsize<<int32(1) {
  21679. Xgz_error(tls, state, -int32(3), __ccgo_ts+767)
  21680. return -int32(1)
  21681. }
  21682. /* slide output data if needed and insert byte before existing data */
  21683. if (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext == (*Tgz_state)(unsafe.Pointer(state)).Fout {
  21684. src = (*Tgz_state)(unsafe.Pointer(state)).Fout + uintptr((*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave)
  21685. dest = (*Tgz_state)(unsafe.Pointer(state)).Fout + uintptr((*Tgz_state)(unsafe.Pointer(state)).Fsize<<libc.Int32FromInt32(1))
  21686. for src > (*Tgz_state)(unsafe.Pointer(state)).Fout {
  21687. dest--
  21688. v1 = dest
  21689. src--
  21690. v2 = src
  21691. *(*uint8)(unsafe.Pointer(v1)) = *(*uint8)(unsafe.Pointer(v2))
  21692. }
  21693. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext = dest
  21694. }
  21695. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave++
  21696. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext--
  21697. *(*uint8)(unsafe.Pointer((*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext)) = libc.Uint8FromInt32(c)
  21698. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos--
  21699. (*Tgz_state)(unsafe.Pointer(state)).Fpast = 0
  21700. return c
  21701. }
  21702. // C documentation
  21703. //
  21704. // /* -- see zlib.h -- */
  21705. func Xgzgets(tls *libc.TLS, file TgzFile, buf uintptr, len1 int32) (r uintptr) {
  21706. var eol, str uintptr
  21707. var left, n, v1 uint32
  21708. var state Tgz_statep
  21709. _, _, _, _, _, _ = eol, left, n, state, str, v1
  21710. /* check parameters and get internal structure */
  21711. if file == libc.UintptrFromInt32(0) || buf == libc.UintptrFromInt32(0) || len1 < int32(1) {
  21712. return libc.UintptrFromInt32(0)
  21713. }
  21714. state = file
  21715. /* check that we're reading and that there's no (serious) error */
  21716. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) || (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK && (*Tgz_state)(unsafe.Pointer(state)).Ferr != -int32(5) {
  21717. return libc.UintptrFromInt32(0)
  21718. }
  21719. /* process a skip request */
  21720. if (*Tgz_state)(unsafe.Pointer(state)).Fseek != 0 {
  21721. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0
  21722. if _gz_skip(tls, state, (*Tgz_state)(unsafe.Pointer(state)).Fskip) == -int32(1) {
  21723. return libc.UintptrFromInt32(0)
  21724. }
  21725. }
  21726. /* copy output bytes up to new line or len - 1, whichever comes first --
  21727. append a terminating zero to the string (we don't check for a zero in
  21728. the contents, let the user worry about that) */
  21729. str = buf
  21730. left = libc.Uint32FromInt32(len1) - uint32(1)
  21731. if left != 0 {
  21732. for cond := true; cond; cond = left != 0 && eol == libc.UintptrFromInt32(0) {
  21733. /* assure that something is in the output buffer */
  21734. if (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave == uint32(0) && _gz_fetch(tls, state) == -int32(1) {
  21735. return libc.UintptrFromInt32(0)
  21736. } /* error */
  21737. if (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave == uint32(0) { /* end of file */
  21738. (*Tgz_state)(unsafe.Pointer(state)).Fpast = int32(1) /* read past end */
  21739. break /* return what we have */
  21740. }
  21741. /* look for end-of-line in current output buffer */
  21742. if (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave > left {
  21743. v1 = left
  21744. } else {
  21745. v1 = (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave
  21746. }
  21747. n = v1
  21748. eol = libc.Xmemchr(tls, (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext, int32('\n'), uint64(n))
  21749. if eol != libc.UintptrFromInt32(0) {
  21750. n = libc.Uint32FromInt64(int64(eol)-int64((*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext)) + uint32(1)
  21751. }
  21752. /* copy through end-of-line, or remainder if not found */
  21753. libc.Xmemcpy(tls, buf, (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext, uint64(n))
  21754. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave -= n
  21755. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext += uintptr(n)
  21756. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos += libc.Int64FromUint32(n)
  21757. left -= n
  21758. buf += uintptr(n)
  21759. }
  21760. }
  21761. /* return terminated string, or if nothing, end of file */
  21762. if buf == str {
  21763. return libc.UintptrFromInt32(0)
  21764. }
  21765. *(*int8)(unsafe.Pointer(buf)) = 0
  21766. return str
  21767. }
  21768. // C documentation
  21769. //
  21770. // /* -- see zlib.h -- */
  21771. func Xgzdirect(tls *libc.TLS, file TgzFile) (r int32) {
  21772. var state Tgz_statep
  21773. _ = state
  21774. /* get internal structure */
  21775. if file == libc.UintptrFromInt32(0) {
  21776. return 0
  21777. }
  21778. state = file
  21779. /* if the state is not known, but we can find out, then do so (this is
  21780. mainly for right after a gzopen() or gzdopen()) */
  21781. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_READ) && (*Tgz_state)(unsafe.Pointer(state)).Fhow == m_LOOK && (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave == uint32(0) {
  21782. _gz_look(tls, state)
  21783. }
  21784. /* return 1 if transparent, 0 if processing a gzip stream */
  21785. return (*Tgz_state)(unsafe.Pointer(state)).Fdirect
  21786. }
  21787. // C documentation
  21788. //
  21789. // /* -- see zlib.h -- */
  21790. func Xgzclose_r(tls *libc.TLS, file TgzFile) (r int32) {
  21791. var err, ret, v1, v2 int32
  21792. var state Tgz_statep
  21793. _, _, _, _, _ = err, ret, state, v1, v2
  21794. /* get internal structure */
  21795. if file == libc.UintptrFromInt32(0) {
  21796. return -int32(2)
  21797. }
  21798. state = file
  21799. /* check that we're reading */
  21800. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) {
  21801. return -int32(2)
  21802. }
  21803. /* free memory and close file */
  21804. if (*Tgz_state)(unsafe.Pointer(state)).Fsize != 0 {
  21805. XinflateEnd(tls, state+128)
  21806. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fout)
  21807. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fin)
  21808. }
  21809. if (*Tgz_state)(unsafe.Pointer(state)).Ferr == -int32(5) {
  21810. v1 = -int32(5)
  21811. } else {
  21812. v1 = m_Z_OK
  21813. }
  21814. err = v1
  21815. Xgz_error(tls, state, m_Z_OK, libc.UintptrFromInt32(0))
  21816. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fpath)
  21817. ret = libc.Xclose(tls, (*Tgz_state)(unsafe.Pointer(state)).Ffd)
  21818. libc.Xfree(tls, state)
  21819. if ret != 0 {
  21820. v2 = -int32(1)
  21821. } else {
  21822. v2 = err
  21823. }
  21824. return v2
  21825. }
  21826. // C documentation
  21827. //
  21828. // /* Initialize state for writing a gzip file. Mark initialization by setting
  21829. // state->size to non-zero. Return -1 on a memory allocation failure, or 0 on
  21830. // success. */
  21831. func _gz_init(tls *libc.TLS, state Tgz_statep) (r int32) {
  21832. var ret int32
  21833. var strm Tz_streamp
  21834. _, _ = ret, strm
  21835. strm = state + 128
  21836. /* allocate input buffer (double size for gzprintf) */
  21837. (*Tgz_state)(unsafe.Pointer(state)).Fin = libc.Xmalloc(tls, uint64((*Tgz_state)(unsafe.Pointer(state)).Fwant<<int32(1)))
  21838. if (*Tgz_state)(unsafe.Pointer(state)).Fin == libc.UintptrFromInt32(0) {
  21839. Xgz_error(tls, state, -int32(4), __ccgo_ts+595)
  21840. return -int32(1)
  21841. }
  21842. /* only need output buffer and deflate state if compressing */
  21843. if !((*Tgz_state)(unsafe.Pointer(state)).Fdirect != 0) {
  21844. /* allocate output buffer */
  21845. (*Tgz_state)(unsafe.Pointer(state)).Fout = libc.Xmalloc(tls, uint64((*Tgz_state)(unsafe.Pointer(state)).Fwant))
  21846. if (*Tgz_state)(unsafe.Pointer(state)).Fout == libc.UintptrFromInt32(0) {
  21847. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fin)
  21848. Xgz_error(tls, state, -int32(4), __ccgo_ts+595)
  21849. return -int32(1)
  21850. }
  21851. /* allocate deflate memory, set up for gzip compression */
  21852. (*Tz_stream)(unsafe.Pointer(strm)).Fzalloc = uintptr(m_Z_NULL)
  21853. (*Tz_stream)(unsafe.Pointer(strm)).Fzfree = uintptr(m_Z_NULL)
  21854. (*Tz_stream)(unsafe.Pointer(strm)).Fopaque = uintptr(m_Z_NULL)
  21855. ret = XdeflateInit2_(tls, strm, (*Tgz_state)(unsafe.Pointer(state)).Flevel, int32(m_Z_DEFLATED), libc.Int32FromInt32(m_MAX_WBITS)+libc.Int32FromInt32(16), int32(m_DEF_MEM_LEVEL), (*Tgz_state)(unsafe.Pointer(state)).Fstrategy, __ccgo_ts, libc.Int32FromInt64(112))
  21856. if ret != m_Z_OK {
  21857. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fout)
  21858. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fin)
  21859. Xgz_error(tls, state, -int32(4), __ccgo_ts+595)
  21860. return -int32(1)
  21861. }
  21862. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = libc.UintptrFromInt32(0)
  21863. }
  21864. /* mark state as initialized */
  21865. (*Tgz_state)(unsafe.Pointer(state)).Fsize = (*Tgz_state)(unsafe.Pointer(state)).Fwant
  21866. /* initialize write buffer if compressing */
  21867. if !((*Tgz_state)(unsafe.Pointer(state)).Fdirect != 0) {
  21868. (*Tz_stream)(unsafe.Pointer(strm)).Favail_out = (*Tgz_state)(unsafe.Pointer(state)).Fsize
  21869. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out = (*Tgz_state)(unsafe.Pointer(state)).Fout
  21870. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out
  21871. }
  21872. return 0
  21873. }
  21874. // C documentation
  21875. //
  21876. // /* Compress whatever is at avail_in and next_in and write to the output file.
  21877. // Return -1 if there is an error writing to the output file or if gz_init()
  21878. // fails to allocate memory, otherwise 0. flush is assumed to be a valid
  21879. // deflate() flush value. If flush is Z_FINISH, then the deflate() state is
  21880. // reset to start a new gzip stream. If gz->direct is true, then simply write
  21881. // to the output file without compressing, and ignore flush. */
  21882. func _gz_comp(tls *libc.TLS, state Tgz_statep, flush int32) (r int32) {
  21883. var have, max, put, v1, v2 uint32
  21884. var ret, writ int32
  21885. var strm Tz_streamp
  21886. _, _, _, _, _, _, _, _ = have, max, put, ret, strm, writ, v1, v2
  21887. max = libc.Uint32FromInt32(-libc.Int32FromInt32(1))>>libc.Int32FromInt32(2) + libc.Uint32FromInt32(1)
  21888. strm = state + 128
  21889. /* allocate memory if this is the first time through */
  21890. if (*Tgz_state)(unsafe.Pointer(state)).Fsize == uint32(0) && _gz_init(tls, state) == -int32(1) {
  21891. return -int32(1)
  21892. }
  21893. /* write directly if requested */
  21894. if (*Tgz_state)(unsafe.Pointer(state)).Fdirect != 0 {
  21895. for (*Tz_stream)(unsafe.Pointer(strm)).Favail_in != 0 {
  21896. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in > max {
  21897. v1 = max
  21898. } else {
  21899. v1 = (*Tz_stream)(unsafe.Pointer(strm)).Favail_in
  21900. }
  21901. put = v1
  21902. writ = int32(libc.Xwrite(tls, (*Tgz_state)(unsafe.Pointer(state)).Ffd, (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in, uint64(put)))
  21903. if writ < 0 {
  21904. Xgz_error(tls, state, -int32(1), libc.Xstrerror(tls, *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))))
  21905. return -int32(1)
  21906. }
  21907. *(*TuInt)(unsafe.Pointer(strm + 8)) -= libc.Uint32FromInt32(writ)
  21908. *(*uintptr)(unsafe.Pointer(strm)) += uintptr(writ)
  21909. }
  21910. return 0
  21911. }
  21912. /* check for a pending reset */
  21913. if (*Tgz_state)(unsafe.Pointer(state)).Freset != 0 {
  21914. /* don't start a new gzip member unless there is data to write */
  21915. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in == uint32(0) {
  21916. return 0
  21917. }
  21918. XdeflateReset(tls, strm)
  21919. (*Tgz_state)(unsafe.Pointer(state)).Freset = 0
  21920. }
  21921. /* run deflate() on provided input until it produces no more output */
  21922. ret = m_Z_OK
  21923. for cond := true; cond; cond = have != 0 {
  21924. /* write out current buffer contents if full, or if flushing, but if
  21925. doing Z_FINISH then don't write until we get to Z_STREAM_END */
  21926. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_out == uint32(0) || flush != m_Z_NO_FLUSH && (flush != int32(m_Z_FINISH) || ret == int32(m_Z_STREAM_END)) {
  21927. for (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out > (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext {
  21928. if int64((*Tz_stream)(unsafe.Pointer(strm)).Fnext_out)-int64((*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext) > int64(libc.Int32FromUint32(max)) {
  21929. v2 = max
  21930. } else {
  21931. v2 = libc.Uint32FromInt64(int64((*Tz_stream)(unsafe.Pointer(strm)).Fnext_out) - int64((*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext))
  21932. }
  21933. put = v2
  21934. writ = int32(libc.Xwrite(tls, (*Tgz_state)(unsafe.Pointer(state)).Ffd, (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext, uint64(put)))
  21935. if writ < 0 {
  21936. Xgz_error(tls, state, -int32(1), libc.Xstrerror(tls, *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))))
  21937. return -int32(1)
  21938. }
  21939. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext += uintptr(writ)
  21940. }
  21941. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_out == uint32(0) {
  21942. (*Tz_stream)(unsafe.Pointer(strm)).Favail_out = (*Tgz_state)(unsafe.Pointer(state)).Fsize
  21943. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out = (*Tgz_state)(unsafe.Pointer(state)).Fout
  21944. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext = (*Tgz_state)(unsafe.Pointer(state)).Fout
  21945. }
  21946. }
  21947. /* compress */
  21948. have = (*Tz_stream)(unsafe.Pointer(strm)).Favail_out
  21949. ret = Xdeflate(tls, strm, flush)
  21950. if ret == -int32(2) {
  21951. Xgz_error(tls, state, -int32(2), __ccgo_ts+798)
  21952. return -int32(1)
  21953. }
  21954. have -= (*Tz_stream)(unsafe.Pointer(strm)).Favail_out
  21955. }
  21956. /* if that completed a deflate stream, allow another to start */
  21957. if flush == int32(m_Z_FINISH) {
  21958. (*Tgz_state)(unsafe.Pointer(state)).Freset = int32(1)
  21959. }
  21960. /* all done, no errors */
  21961. return 0
  21962. }
  21963. // C documentation
  21964. //
  21965. // /* Compress len zeros to output. Return -1 on a write error or memory
  21966. // allocation failure by gz_comp(), or 0 on success. */
  21967. func _gz_zero(tls *libc.TLS, state Tgz_statep, len1 Toff_t) (r int32) {
  21968. var first int32
  21969. var n, v1 uint32
  21970. var strm Tz_streamp
  21971. _, _, _, _ = first, n, strm, v1
  21972. strm = state + 128
  21973. /* consume whatever's left in the input buffer */
  21974. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in != 0 && _gz_comp(tls, state, m_Z_NO_FLUSH) == -int32(1) {
  21975. return -int32(1)
  21976. }
  21977. /* compress len zeros (len guaranteed > 0) */
  21978. first = int32(1)
  21979. for len1 != 0 {
  21980. if libc.Bool(libc.Bool(uint64(4) == uint64(8)) && (*Tgz_state)(unsafe.Pointer(state)).Fsize > Xgz_intmax(tls)) || libc.Int64FromUint32((*Tgz_state)(unsafe.Pointer(state)).Fsize) > len1 {
  21981. v1 = libc.Uint32FromInt64(len1)
  21982. } else {
  21983. v1 = (*Tgz_state)(unsafe.Pointer(state)).Fsize
  21984. }
  21985. n = v1
  21986. if first != 0 {
  21987. libc.Xmemset(tls, (*Tgz_state)(unsafe.Pointer(state)).Fin, 0, uint64(n))
  21988. first = 0
  21989. }
  21990. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = n
  21991. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = (*Tgz_state)(unsafe.Pointer(state)).Fin
  21992. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos += libc.Int64FromUint32(n)
  21993. if _gz_comp(tls, state, m_Z_NO_FLUSH) == -int32(1) {
  21994. return -int32(1)
  21995. }
  21996. len1 -= libc.Int64FromUint32(n)
  21997. }
  21998. return 0
  21999. }
  22000. // C documentation
  22001. //
  22002. // /* Write len bytes from buf to file. Return the number of bytes written. If
  22003. // the returned value is less than len, then there was an error. */
  22004. func _gz_write(tls *libc.TLS, state Tgz_statep, buf Tvoidpc, len1 Tz_size_t) (r Tz_size_t) {
  22005. var copy1, have, n uint32
  22006. var put Tz_size_t
  22007. _, _, _, _ = copy1, have, n, put
  22008. put = len1
  22009. /* if len is zero, avoid unnecessary operations */
  22010. if len1 == uint64(0) {
  22011. return uint64(0)
  22012. }
  22013. /* allocate memory if this is the first time through */
  22014. if (*Tgz_state)(unsafe.Pointer(state)).Fsize == uint32(0) && _gz_init(tls, state) == -int32(1) {
  22015. return uint64(0)
  22016. }
  22017. /* check for seek request */
  22018. if (*Tgz_state)(unsafe.Pointer(state)).Fseek != 0 {
  22019. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0
  22020. if _gz_zero(tls, state, (*Tgz_state)(unsafe.Pointer(state)).Fskip) == -int32(1) {
  22021. return uint64(0)
  22022. }
  22023. }
  22024. /* for small len, copy to input buffer, otherwise compress directly */
  22025. if len1 < uint64((*Tgz_state)(unsafe.Pointer(state)).Fsize) {
  22026. /* copy to input buffer, compress when full */
  22027. for cond := true; cond; cond = len1 != 0 {
  22028. if (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_in == uint32(0) {
  22029. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Fnext_in = (*Tgz_state)(unsafe.Pointer(state)).Fin
  22030. }
  22031. have = libc.Uint32FromInt64(int64((*Tgz_state)(unsafe.Pointer(state)).Fstrm.Fnext_in+uintptr((*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_in)) - int64((*Tgz_state)(unsafe.Pointer(state)).Fin))
  22032. copy1 = (*Tgz_state)(unsafe.Pointer(state)).Fsize - have
  22033. if uint64(copy1) > len1 {
  22034. copy1 = uint32(len1)
  22035. }
  22036. libc.Xmemcpy(tls, (*Tgz_state)(unsafe.Pointer(state)).Fin+uintptr(have), buf, uint64(copy1))
  22037. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_in += copy1
  22038. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos += libc.Int64FromUint32(copy1)
  22039. buf = buf + uintptr(copy1)
  22040. len1 -= uint64(copy1)
  22041. if len1 != 0 && _gz_comp(tls, state, m_Z_NO_FLUSH) == -int32(1) {
  22042. return uint64(0)
  22043. }
  22044. }
  22045. } else {
  22046. /* consume whatever's left in the input buffer */
  22047. if (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_in != 0 && _gz_comp(tls, state, m_Z_NO_FLUSH) == -int32(1) {
  22048. return uint64(0)
  22049. }
  22050. /* directly compress user buffer to file */
  22051. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Fnext_in = buf
  22052. for cond := true; cond; cond = len1 != 0 {
  22053. n = libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  22054. if uint64(n) > len1 {
  22055. n = uint32(len1)
  22056. }
  22057. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_in = n
  22058. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos += libc.Int64FromUint32(n)
  22059. if _gz_comp(tls, state, m_Z_NO_FLUSH) == -int32(1) {
  22060. return uint64(0)
  22061. }
  22062. len1 -= uint64(n)
  22063. }
  22064. }
  22065. /* input was all buffered or compressed */
  22066. return put
  22067. }
  22068. // C documentation
  22069. //
  22070. // /* -- see zlib.h -- */
  22071. func Xgzwrite(tls *libc.TLS, file TgzFile, buf Tvoidpc, len1 uint32) (r int32) {
  22072. var state Tgz_statep
  22073. _ = state
  22074. /* get internal structure */
  22075. if file == libc.UintptrFromInt32(0) {
  22076. return 0
  22077. }
  22078. state = file
  22079. /* check that we're writing and that there's no error */
  22080. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) || (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK {
  22081. return 0
  22082. }
  22083. /* since an int is returned, make sure len fits in one, otherwise return
  22084. with an error (this avoids a flaw in the interface) */
  22085. if libc.Int32FromUint32(len1) < 0 {
  22086. Xgz_error(tls, state, -int32(3), __ccgo_ts+837)
  22087. return 0
  22088. }
  22089. /* write len bytes from buf (the return value will fit in an int) */
  22090. return libc.Int32FromUint64(_gz_write(tls, state, buf, uint64(len1)))
  22091. }
  22092. // C documentation
  22093. //
  22094. // /* -- see zlib.h -- */
  22095. func Xgzfwrite(tls *libc.TLS, buf Tvoidpc, size Tz_size_t, nitems Tz_size_t, file TgzFile) (r Tz_size_t) {
  22096. var len1 Tz_size_t
  22097. var state Tgz_statep
  22098. var v1 uint64
  22099. _, _, _ = len1, state, v1
  22100. /* get internal structure */
  22101. if file == libc.UintptrFromInt32(0) {
  22102. return uint64(0)
  22103. }
  22104. state = file
  22105. /* check that we're writing and that there's no error */
  22106. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) || (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK {
  22107. return uint64(0)
  22108. }
  22109. /* compute bytes to read -- error on overflow */
  22110. len1 = nitems * size
  22111. if size != 0 && len1/size != nitems {
  22112. Xgz_error(tls, state, -int32(2), __ccgo_ts+734)
  22113. return uint64(0)
  22114. }
  22115. /* write len bytes to buf, return the number of full items written */
  22116. if len1 != 0 {
  22117. v1 = _gz_write(tls, state, buf, len1) / size
  22118. } else {
  22119. v1 = uint64(0)
  22120. }
  22121. return v1
  22122. }
  22123. // C documentation
  22124. //
  22125. // /* -- see zlib.h -- */
  22126. func Xgzputc(tls *libc.TLS, file TgzFile, c int32) (r int32) {
  22127. bp := tls.Alloc(16)
  22128. defer tls.Free(16)
  22129. var have uint32
  22130. var state Tgz_statep
  22131. var strm Tz_streamp
  22132. var _ /* buf at bp+0 */ [1]uint8
  22133. _, _, _ = have, state, strm
  22134. /* get internal structure */
  22135. if file == libc.UintptrFromInt32(0) {
  22136. return -int32(1)
  22137. }
  22138. state = file
  22139. strm = state + 128
  22140. /* check that we're writing and that there's no error */
  22141. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) || (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK {
  22142. return -int32(1)
  22143. }
  22144. /* check for seek request */
  22145. if (*Tgz_state)(unsafe.Pointer(state)).Fseek != 0 {
  22146. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0
  22147. if _gz_zero(tls, state, (*Tgz_state)(unsafe.Pointer(state)).Fskip) == -int32(1) {
  22148. return -int32(1)
  22149. }
  22150. }
  22151. /* try writing to input buffer for speed (state->size == 0 if buffer not
  22152. initialized) */
  22153. if (*Tgz_state)(unsafe.Pointer(state)).Fsize != 0 {
  22154. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in == uint32(0) {
  22155. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = (*Tgz_state)(unsafe.Pointer(state)).Fin
  22156. }
  22157. have = libc.Uint32FromInt64(int64((*Tz_stream)(unsafe.Pointer(strm)).Fnext_in+uintptr((*Tz_stream)(unsafe.Pointer(strm)).Favail_in)) - int64((*Tgz_state)(unsafe.Pointer(state)).Fin))
  22158. if have < (*Tgz_state)(unsafe.Pointer(state)).Fsize {
  22159. *(*uint8)(unsafe.Pointer((*Tgz_state)(unsafe.Pointer(state)).Fin + uintptr(have))) = libc.Uint8FromInt32(c)
  22160. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in++
  22161. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos++
  22162. return c & int32(0xff)
  22163. }
  22164. }
  22165. /* no room in buffer or not initialized, use gz_write() */
  22166. (*(*[1]uint8)(unsafe.Pointer(bp)))[0] = libc.Uint8FromInt32(c)
  22167. if _gz_write(tls, state, bp, uint64(1)) != uint64(1) {
  22168. return -int32(1)
  22169. }
  22170. return c & int32(0xff)
  22171. }
  22172. // C documentation
  22173. //
  22174. // /* -- see zlib.h -- */
  22175. func Xgzputs(tls *libc.TLS, file TgzFile, s uintptr) (r int32) {
  22176. var len1, put Tz_size_t
  22177. var state Tgz_statep
  22178. var v1 int32
  22179. _, _, _, _ = len1, put, state, v1
  22180. /* get internal structure */
  22181. if file == libc.UintptrFromInt32(0) {
  22182. return -int32(1)
  22183. }
  22184. state = file
  22185. /* check that we're writing and that there's no error */
  22186. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) || (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK {
  22187. return -int32(1)
  22188. }
  22189. /* write string */
  22190. len1 = libc.Xstrlen(tls, s)
  22191. if libc.Int32FromUint64(len1) < 0 || uint64(uint32(len1)) != len1 {
  22192. Xgz_error(tls, state, -int32(2), __ccgo_ts+874)
  22193. return -int32(1)
  22194. }
  22195. put = _gz_write(tls, state, s, len1)
  22196. if put < len1 {
  22197. v1 = -int32(1)
  22198. } else {
  22199. v1 = libc.Int32FromUint64(len1)
  22200. }
  22201. return v1
  22202. }
  22203. // C documentation
  22204. //
  22205. // /* -- see zlib.h -- */
  22206. func Xgzvprintf(tls *libc.TLS, file TgzFile, format uintptr, va Tva_list) (r int32) {
  22207. var left uint32
  22208. var len1 int32
  22209. var next uintptr
  22210. var state Tgz_statep
  22211. var strm Tz_streamp
  22212. _, _, _, _, _ = left, len1, next, state, strm
  22213. /* get internal structure */
  22214. if file == libc.UintptrFromInt32(0) {
  22215. return -int32(2)
  22216. }
  22217. state = file
  22218. strm = state + 128
  22219. /* check that we're writing and that there's no error */
  22220. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) || (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK {
  22221. return -int32(2)
  22222. }
  22223. /* make sure we have some buffer space */
  22224. if (*Tgz_state)(unsafe.Pointer(state)).Fsize == uint32(0) && _gz_init(tls, state) == -int32(1) {
  22225. return (*Tgz_state)(unsafe.Pointer(state)).Ferr
  22226. }
  22227. /* check for seek request */
  22228. if (*Tgz_state)(unsafe.Pointer(state)).Fseek != 0 {
  22229. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0
  22230. if _gz_zero(tls, state, (*Tgz_state)(unsafe.Pointer(state)).Fskip) == -int32(1) {
  22231. return (*Tgz_state)(unsafe.Pointer(state)).Ferr
  22232. }
  22233. }
  22234. /* do the printf() into the input buffer, put length in len -- the input
  22235. buffer is double-sized just for this function, so there is guaranteed to
  22236. be state->size bytes available after the current contents */
  22237. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in == uint32(0) {
  22238. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = (*Tgz_state)(unsafe.Pointer(state)).Fin
  22239. }
  22240. next = (*Tgz_state)(unsafe.Pointer(state)).Fin + uintptr(int64((*Tz_stream)(unsafe.Pointer(strm)).Fnext_in)-int64((*Tgz_state)(unsafe.Pointer(state)).Fin)) + uintptr((*Tz_stream)(unsafe.Pointer(strm)).Favail_in)
  22241. *(*int8)(unsafe.Pointer(next + uintptr((*Tgz_state)(unsafe.Pointer(state)).Fsize-uint32(1)))) = 0
  22242. len1 = libc.X__builtin_vsnprintf(tls, next, uint64((*Tgz_state)(unsafe.Pointer(state)).Fsize), format, va)
  22243. /* check that printf() results fit in buffer */
  22244. if len1 == 0 || libc.Uint32FromInt32(len1) >= (*Tgz_state)(unsafe.Pointer(state)).Fsize || int32(*(*int8)(unsafe.Pointer(next + uintptr((*Tgz_state)(unsafe.Pointer(state)).Fsize-uint32(1))))) != 0 {
  22245. return 0
  22246. }
  22247. /* update buffer and position, compress first half if past that */
  22248. *(*TuInt)(unsafe.Pointer(strm + 8)) += libc.Uint32FromInt32(len1)
  22249. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos += int64(len1)
  22250. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in >= (*Tgz_state)(unsafe.Pointer(state)).Fsize {
  22251. left = (*Tz_stream)(unsafe.Pointer(strm)).Favail_in - (*Tgz_state)(unsafe.Pointer(state)).Fsize
  22252. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = (*Tgz_state)(unsafe.Pointer(state)).Fsize
  22253. if _gz_comp(tls, state, m_Z_NO_FLUSH) == -int32(1) {
  22254. return (*Tgz_state)(unsafe.Pointer(state)).Ferr
  22255. }
  22256. libc.Xmemmove(tls, (*Tgz_state)(unsafe.Pointer(state)).Fin, (*Tgz_state)(unsafe.Pointer(state)).Fin+uintptr((*Tgz_state)(unsafe.Pointer(state)).Fsize), uint64(left))
  22257. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = (*Tgz_state)(unsafe.Pointer(state)).Fin
  22258. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = left
  22259. }
  22260. return len1
  22261. }
  22262. func Xgzprintf(tls *libc.TLS, file TgzFile, format uintptr, va1 uintptr) (r int32) {
  22263. var ret int32
  22264. var va Tva_list
  22265. _, _ = ret, va
  22266. va = va1
  22267. ret = Xgzvprintf(tls, file, format, va)
  22268. _ = va
  22269. return ret
  22270. }
  22271. // C documentation
  22272. //
  22273. // /* -- see zlib.h -- */
  22274. func Xgzflush(tls *libc.TLS, file TgzFile, flush int32) (r int32) {
  22275. var state Tgz_statep
  22276. _ = state
  22277. /* get internal structure */
  22278. if file == libc.UintptrFromInt32(0) {
  22279. return -int32(2)
  22280. }
  22281. state = file
  22282. /* check that we're writing and that there's no error */
  22283. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) || (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK {
  22284. return -int32(2)
  22285. }
  22286. /* check flush parameter */
  22287. if flush < 0 || flush > int32(m_Z_FINISH) {
  22288. return -int32(2)
  22289. }
  22290. /* check for seek request */
  22291. if (*Tgz_state)(unsafe.Pointer(state)).Fseek != 0 {
  22292. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0
  22293. if _gz_zero(tls, state, (*Tgz_state)(unsafe.Pointer(state)).Fskip) == -int32(1) {
  22294. return (*Tgz_state)(unsafe.Pointer(state)).Ferr
  22295. }
  22296. }
  22297. /* compress remaining data with requested flush */
  22298. _gz_comp(tls, state, flush)
  22299. return (*Tgz_state)(unsafe.Pointer(state)).Ferr
  22300. }
  22301. // C documentation
  22302. //
  22303. // /* -- see zlib.h -- */
  22304. func Xgzsetparams(tls *libc.TLS, file TgzFile, level int32, strategy int32) (r int32) {
  22305. var state Tgz_statep
  22306. var strm Tz_streamp
  22307. _, _ = state, strm
  22308. /* get internal structure */
  22309. if file == libc.UintptrFromInt32(0) {
  22310. return -int32(2)
  22311. }
  22312. state = file
  22313. strm = state + 128
  22314. /* check that we're writing and that there's no error */
  22315. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) || (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK || (*Tgz_state)(unsafe.Pointer(state)).Fdirect != 0 {
  22316. return -int32(2)
  22317. }
  22318. /* if no change is requested, then do nothing */
  22319. if level == (*Tgz_state)(unsafe.Pointer(state)).Flevel && strategy == (*Tgz_state)(unsafe.Pointer(state)).Fstrategy {
  22320. return m_Z_OK
  22321. }
  22322. /* check for seek request */
  22323. if (*Tgz_state)(unsafe.Pointer(state)).Fseek != 0 {
  22324. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0
  22325. if _gz_zero(tls, state, (*Tgz_state)(unsafe.Pointer(state)).Fskip) == -int32(1) {
  22326. return (*Tgz_state)(unsafe.Pointer(state)).Ferr
  22327. }
  22328. }
  22329. /* change compression parameters for subsequent input */
  22330. if (*Tgz_state)(unsafe.Pointer(state)).Fsize != 0 {
  22331. /* flush previous input with previous parameters before changing */
  22332. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in != 0 && _gz_comp(tls, state, int32(m_Z_BLOCK)) == -int32(1) {
  22333. return (*Tgz_state)(unsafe.Pointer(state)).Ferr
  22334. }
  22335. XdeflateParams(tls, strm, level, strategy)
  22336. }
  22337. (*Tgz_state)(unsafe.Pointer(state)).Flevel = level
  22338. (*Tgz_state)(unsafe.Pointer(state)).Fstrategy = strategy
  22339. return m_Z_OK
  22340. }
  22341. // C documentation
  22342. //
  22343. // /* -- see zlib.h -- */
  22344. func Xgzclose_w(tls *libc.TLS, file TgzFile) (r int32) {
  22345. var ret int32
  22346. var state Tgz_statep
  22347. _, _ = ret, state
  22348. ret = m_Z_OK
  22349. /* get internal structure */
  22350. if file == libc.UintptrFromInt32(0) {
  22351. return -int32(2)
  22352. }
  22353. state = file
  22354. /* check that we're writing */
  22355. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) {
  22356. return -int32(2)
  22357. }
  22358. /* check for seek request */
  22359. if (*Tgz_state)(unsafe.Pointer(state)).Fseek != 0 {
  22360. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0
  22361. if _gz_zero(tls, state, (*Tgz_state)(unsafe.Pointer(state)).Fskip) == -int32(1) {
  22362. ret = (*Tgz_state)(unsafe.Pointer(state)).Ferr
  22363. }
  22364. }
  22365. /* flush, free memory, and close file */
  22366. if _gz_comp(tls, state, int32(m_Z_FINISH)) == -int32(1) {
  22367. ret = (*Tgz_state)(unsafe.Pointer(state)).Ferr
  22368. }
  22369. if (*Tgz_state)(unsafe.Pointer(state)).Fsize != 0 {
  22370. if !((*Tgz_state)(unsafe.Pointer(state)).Fdirect != 0) {
  22371. XdeflateEnd(tls, state+128)
  22372. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fout)
  22373. }
  22374. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fin)
  22375. }
  22376. Xgz_error(tls, state, m_Z_OK, libc.UintptrFromInt32(0))
  22377. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fpath)
  22378. if libc.Xclose(tls, (*Tgz_state)(unsafe.Pointer(state)).Ffd) == -int32(1) {
  22379. ret = -int32(1)
  22380. }
  22381. libc.Xfree(tls, state)
  22382. return ret
  22383. }
  22384. func __ccgo_fp(f interface{}) uintptr {
  22385. type iface [2]uintptr
  22386. return (*iface)(unsafe.Pointer(&f))[1]
  22387. }
  22388. var x__dist_code = [512]Tuch{
  22389. 1: uint8(1),
  22390. 2: uint8(2),
  22391. 3: uint8(3),
  22392. 4: uint8(4),
  22393. 5: uint8(4),
  22394. 6: uint8(5),
  22395. 7: uint8(5),
  22396. 8: uint8(6),
  22397. 9: uint8(6),
  22398. 10: uint8(6),
  22399. 11: uint8(6),
  22400. 12: uint8(7),
  22401. 13: uint8(7),
  22402. 14: uint8(7),
  22403. 15: uint8(7),
  22404. 16: uint8(8),
  22405. 17: uint8(8),
  22406. 18: uint8(8),
  22407. 19: uint8(8),
  22408. 20: uint8(8),
  22409. 21: uint8(8),
  22410. 22: uint8(8),
  22411. 23: uint8(8),
  22412. 24: uint8(9),
  22413. 25: uint8(9),
  22414. 26: uint8(9),
  22415. 27: uint8(9),
  22416. 28: uint8(9),
  22417. 29: uint8(9),
  22418. 30: uint8(9),
  22419. 31: uint8(9),
  22420. 32: uint8(10),
  22421. 33: uint8(10),
  22422. 34: uint8(10),
  22423. 35: uint8(10),
  22424. 36: uint8(10),
  22425. 37: uint8(10),
  22426. 38: uint8(10),
  22427. 39: uint8(10),
  22428. 40: uint8(10),
  22429. 41: uint8(10),
  22430. 42: uint8(10),
  22431. 43: uint8(10),
  22432. 44: uint8(10),
  22433. 45: uint8(10),
  22434. 46: uint8(10),
  22435. 47: uint8(10),
  22436. 48: uint8(11),
  22437. 49: uint8(11),
  22438. 50: uint8(11),
  22439. 51: uint8(11),
  22440. 52: uint8(11),
  22441. 53: uint8(11),
  22442. 54: uint8(11),
  22443. 55: uint8(11),
  22444. 56: uint8(11),
  22445. 57: uint8(11),
  22446. 58: uint8(11),
  22447. 59: uint8(11),
  22448. 60: uint8(11),
  22449. 61: uint8(11),
  22450. 62: uint8(11),
  22451. 63: uint8(11),
  22452. 64: uint8(12),
  22453. 65: uint8(12),
  22454. 66: uint8(12),
  22455. 67: uint8(12),
  22456. 68: uint8(12),
  22457. 69: uint8(12),
  22458. 70: uint8(12),
  22459. 71: uint8(12),
  22460. 72: uint8(12),
  22461. 73: uint8(12),
  22462. 74: uint8(12),
  22463. 75: uint8(12),
  22464. 76: uint8(12),
  22465. 77: uint8(12),
  22466. 78: uint8(12),
  22467. 79: uint8(12),
  22468. 80: uint8(12),
  22469. 81: uint8(12),
  22470. 82: uint8(12),
  22471. 83: uint8(12),
  22472. 84: uint8(12),
  22473. 85: uint8(12),
  22474. 86: uint8(12),
  22475. 87: uint8(12),
  22476. 88: uint8(12),
  22477. 89: uint8(12),
  22478. 90: uint8(12),
  22479. 91: uint8(12),
  22480. 92: uint8(12),
  22481. 93: uint8(12),
  22482. 94: uint8(12),
  22483. 95: uint8(12),
  22484. 96: uint8(13),
  22485. 97: uint8(13),
  22486. 98: uint8(13),
  22487. 99: uint8(13),
  22488. 100: uint8(13),
  22489. 101: uint8(13),
  22490. 102: uint8(13),
  22491. 103: uint8(13),
  22492. 104: uint8(13),
  22493. 105: uint8(13),
  22494. 106: uint8(13),
  22495. 107: uint8(13),
  22496. 108: uint8(13),
  22497. 109: uint8(13),
  22498. 110: uint8(13),
  22499. 111: uint8(13),
  22500. 112: uint8(13),
  22501. 113: uint8(13),
  22502. 114: uint8(13),
  22503. 115: uint8(13),
  22504. 116: uint8(13),
  22505. 117: uint8(13),
  22506. 118: uint8(13),
  22507. 119: uint8(13),
  22508. 120: uint8(13),
  22509. 121: uint8(13),
  22510. 122: uint8(13),
  22511. 123: uint8(13),
  22512. 124: uint8(13),
  22513. 125: uint8(13),
  22514. 126: uint8(13),
  22515. 127: uint8(13),
  22516. 128: uint8(14),
  22517. 129: uint8(14),
  22518. 130: uint8(14),
  22519. 131: uint8(14),
  22520. 132: uint8(14),
  22521. 133: uint8(14),
  22522. 134: uint8(14),
  22523. 135: uint8(14),
  22524. 136: uint8(14),
  22525. 137: uint8(14),
  22526. 138: uint8(14),
  22527. 139: uint8(14),
  22528. 140: uint8(14),
  22529. 141: uint8(14),
  22530. 142: uint8(14),
  22531. 143: uint8(14),
  22532. 144: uint8(14),
  22533. 145: uint8(14),
  22534. 146: uint8(14),
  22535. 147: uint8(14),
  22536. 148: uint8(14),
  22537. 149: uint8(14),
  22538. 150: uint8(14),
  22539. 151: uint8(14),
  22540. 152: uint8(14),
  22541. 153: uint8(14),
  22542. 154: uint8(14),
  22543. 155: uint8(14),
  22544. 156: uint8(14),
  22545. 157: uint8(14),
  22546. 158: uint8(14),
  22547. 159: uint8(14),
  22548. 160: uint8(14),
  22549. 161: uint8(14),
  22550. 162: uint8(14),
  22551. 163: uint8(14),
  22552. 164: uint8(14),
  22553. 165: uint8(14),
  22554. 166: uint8(14),
  22555. 167: uint8(14),
  22556. 168: uint8(14),
  22557. 169: uint8(14),
  22558. 170: uint8(14),
  22559. 171: uint8(14),
  22560. 172: uint8(14),
  22561. 173: uint8(14),
  22562. 174: uint8(14),
  22563. 175: uint8(14),
  22564. 176: uint8(14),
  22565. 177: uint8(14),
  22566. 178: uint8(14),
  22567. 179: uint8(14),
  22568. 180: uint8(14),
  22569. 181: uint8(14),
  22570. 182: uint8(14),
  22571. 183: uint8(14),
  22572. 184: uint8(14),
  22573. 185: uint8(14),
  22574. 186: uint8(14),
  22575. 187: uint8(14),
  22576. 188: uint8(14),
  22577. 189: uint8(14),
  22578. 190: uint8(14),
  22579. 191: uint8(14),
  22580. 192: uint8(15),
  22581. 193: uint8(15),
  22582. 194: uint8(15),
  22583. 195: uint8(15),
  22584. 196: uint8(15),
  22585. 197: uint8(15),
  22586. 198: uint8(15),
  22587. 199: uint8(15),
  22588. 200: uint8(15),
  22589. 201: uint8(15),
  22590. 202: uint8(15),
  22591. 203: uint8(15),
  22592. 204: uint8(15),
  22593. 205: uint8(15),
  22594. 206: uint8(15),
  22595. 207: uint8(15),
  22596. 208: uint8(15),
  22597. 209: uint8(15),
  22598. 210: uint8(15),
  22599. 211: uint8(15),
  22600. 212: uint8(15),
  22601. 213: uint8(15),
  22602. 214: uint8(15),
  22603. 215: uint8(15),
  22604. 216: uint8(15),
  22605. 217: uint8(15),
  22606. 218: uint8(15),
  22607. 219: uint8(15),
  22608. 220: uint8(15),
  22609. 221: uint8(15),
  22610. 222: uint8(15),
  22611. 223: uint8(15),
  22612. 224: uint8(15),
  22613. 225: uint8(15),
  22614. 226: uint8(15),
  22615. 227: uint8(15),
  22616. 228: uint8(15),
  22617. 229: uint8(15),
  22618. 230: uint8(15),
  22619. 231: uint8(15),
  22620. 232: uint8(15),
  22621. 233: uint8(15),
  22622. 234: uint8(15),
  22623. 235: uint8(15),
  22624. 236: uint8(15),
  22625. 237: uint8(15),
  22626. 238: uint8(15),
  22627. 239: uint8(15),
  22628. 240: uint8(15),
  22629. 241: uint8(15),
  22630. 242: uint8(15),
  22631. 243: uint8(15),
  22632. 244: uint8(15),
  22633. 245: uint8(15),
  22634. 246: uint8(15),
  22635. 247: uint8(15),
  22636. 248: uint8(15),
  22637. 249: uint8(15),
  22638. 250: uint8(15),
  22639. 251: uint8(15),
  22640. 252: uint8(15),
  22641. 253: uint8(15),
  22642. 254: uint8(15),
  22643. 255: uint8(15),
  22644. 258: uint8(16),
  22645. 259: uint8(17),
  22646. 260: uint8(18),
  22647. 261: uint8(18),
  22648. 262: uint8(19),
  22649. 263: uint8(19),
  22650. 264: uint8(20),
  22651. 265: uint8(20),
  22652. 266: uint8(20),
  22653. 267: uint8(20),
  22654. 268: uint8(21),
  22655. 269: uint8(21),
  22656. 270: uint8(21),
  22657. 271: uint8(21),
  22658. 272: uint8(22),
  22659. 273: uint8(22),
  22660. 274: uint8(22),
  22661. 275: uint8(22),
  22662. 276: uint8(22),
  22663. 277: uint8(22),
  22664. 278: uint8(22),
  22665. 279: uint8(22),
  22666. 280: uint8(23),
  22667. 281: uint8(23),
  22668. 282: uint8(23),
  22669. 283: uint8(23),
  22670. 284: uint8(23),
  22671. 285: uint8(23),
  22672. 286: uint8(23),
  22673. 287: uint8(23),
  22674. 288: uint8(24),
  22675. 289: uint8(24),
  22676. 290: uint8(24),
  22677. 291: uint8(24),
  22678. 292: uint8(24),
  22679. 293: uint8(24),
  22680. 294: uint8(24),
  22681. 295: uint8(24),
  22682. 296: uint8(24),
  22683. 297: uint8(24),
  22684. 298: uint8(24),
  22685. 299: uint8(24),
  22686. 300: uint8(24),
  22687. 301: uint8(24),
  22688. 302: uint8(24),
  22689. 303: uint8(24),
  22690. 304: uint8(25),
  22691. 305: uint8(25),
  22692. 306: uint8(25),
  22693. 307: uint8(25),
  22694. 308: uint8(25),
  22695. 309: uint8(25),
  22696. 310: uint8(25),
  22697. 311: uint8(25),
  22698. 312: uint8(25),
  22699. 313: uint8(25),
  22700. 314: uint8(25),
  22701. 315: uint8(25),
  22702. 316: uint8(25),
  22703. 317: uint8(25),
  22704. 318: uint8(25),
  22705. 319: uint8(25),
  22706. 320: uint8(26),
  22707. 321: uint8(26),
  22708. 322: uint8(26),
  22709. 323: uint8(26),
  22710. 324: uint8(26),
  22711. 325: uint8(26),
  22712. 326: uint8(26),
  22713. 327: uint8(26),
  22714. 328: uint8(26),
  22715. 329: uint8(26),
  22716. 330: uint8(26),
  22717. 331: uint8(26),
  22718. 332: uint8(26),
  22719. 333: uint8(26),
  22720. 334: uint8(26),
  22721. 335: uint8(26),
  22722. 336: uint8(26),
  22723. 337: uint8(26),
  22724. 338: uint8(26),
  22725. 339: uint8(26),
  22726. 340: uint8(26),
  22727. 341: uint8(26),
  22728. 342: uint8(26),
  22729. 343: uint8(26),
  22730. 344: uint8(26),
  22731. 345: uint8(26),
  22732. 346: uint8(26),
  22733. 347: uint8(26),
  22734. 348: uint8(26),
  22735. 349: uint8(26),
  22736. 350: uint8(26),
  22737. 351: uint8(26),
  22738. 352: uint8(27),
  22739. 353: uint8(27),
  22740. 354: uint8(27),
  22741. 355: uint8(27),
  22742. 356: uint8(27),
  22743. 357: uint8(27),
  22744. 358: uint8(27),
  22745. 359: uint8(27),
  22746. 360: uint8(27),
  22747. 361: uint8(27),
  22748. 362: uint8(27),
  22749. 363: uint8(27),
  22750. 364: uint8(27),
  22751. 365: uint8(27),
  22752. 366: uint8(27),
  22753. 367: uint8(27),
  22754. 368: uint8(27),
  22755. 369: uint8(27),
  22756. 370: uint8(27),
  22757. 371: uint8(27),
  22758. 372: uint8(27),
  22759. 373: uint8(27),
  22760. 374: uint8(27),
  22761. 375: uint8(27),
  22762. 376: uint8(27),
  22763. 377: uint8(27),
  22764. 378: uint8(27),
  22765. 379: uint8(27),
  22766. 380: uint8(27),
  22767. 381: uint8(27),
  22768. 382: uint8(27),
  22769. 383: uint8(27),
  22770. 384: uint8(28),
  22771. 385: uint8(28),
  22772. 386: uint8(28),
  22773. 387: uint8(28),
  22774. 388: uint8(28),
  22775. 389: uint8(28),
  22776. 390: uint8(28),
  22777. 391: uint8(28),
  22778. 392: uint8(28),
  22779. 393: uint8(28),
  22780. 394: uint8(28),
  22781. 395: uint8(28),
  22782. 396: uint8(28),
  22783. 397: uint8(28),
  22784. 398: uint8(28),
  22785. 399: uint8(28),
  22786. 400: uint8(28),
  22787. 401: uint8(28),
  22788. 402: uint8(28),
  22789. 403: uint8(28),
  22790. 404: uint8(28),
  22791. 405: uint8(28),
  22792. 406: uint8(28),
  22793. 407: uint8(28),
  22794. 408: uint8(28),
  22795. 409: uint8(28),
  22796. 410: uint8(28),
  22797. 411: uint8(28),
  22798. 412: uint8(28),
  22799. 413: uint8(28),
  22800. 414: uint8(28),
  22801. 415: uint8(28),
  22802. 416: uint8(28),
  22803. 417: uint8(28),
  22804. 418: uint8(28),
  22805. 419: uint8(28),
  22806. 420: uint8(28),
  22807. 421: uint8(28),
  22808. 422: uint8(28),
  22809. 423: uint8(28),
  22810. 424: uint8(28),
  22811. 425: uint8(28),
  22812. 426: uint8(28),
  22813. 427: uint8(28),
  22814. 428: uint8(28),
  22815. 429: uint8(28),
  22816. 430: uint8(28),
  22817. 431: uint8(28),
  22818. 432: uint8(28),
  22819. 433: uint8(28),
  22820. 434: uint8(28),
  22821. 435: uint8(28),
  22822. 436: uint8(28),
  22823. 437: uint8(28),
  22824. 438: uint8(28),
  22825. 439: uint8(28),
  22826. 440: uint8(28),
  22827. 441: uint8(28),
  22828. 442: uint8(28),
  22829. 443: uint8(28),
  22830. 444: uint8(28),
  22831. 445: uint8(28),
  22832. 446: uint8(28),
  22833. 447: uint8(28),
  22834. 448: uint8(29),
  22835. 449: uint8(29),
  22836. 450: uint8(29),
  22837. 451: uint8(29),
  22838. 452: uint8(29),
  22839. 453: uint8(29),
  22840. 454: uint8(29),
  22841. 455: uint8(29),
  22842. 456: uint8(29),
  22843. 457: uint8(29),
  22844. 458: uint8(29),
  22845. 459: uint8(29),
  22846. 460: uint8(29),
  22847. 461: uint8(29),
  22848. 462: uint8(29),
  22849. 463: uint8(29),
  22850. 464: uint8(29),
  22851. 465: uint8(29),
  22852. 466: uint8(29),
  22853. 467: uint8(29),
  22854. 468: uint8(29),
  22855. 469: uint8(29),
  22856. 470: uint8(29),
  22857. 471: uint8(29),
  22858. 472: uint8(29),
  22859. 473: uint8(29),
  22860. 474: uint8(29),
  22861. 475: uint8(29),
  22862. 476: uint8(29),
  22863. 477: uint8(29),
  22864. 478: uint8(29),
  22865. 479: uint8(29),
  22866. 480: uint8(29),
  22867. 481: uint8(29),
  22868. 482: uint8(29),
  22869. 483: uint8(29),
  22870. 484: uint8(29),
  22871. 485: uint8(29),
  22872. 486: uint8(29),
  22873. 487: uint8(29),
  22874. 488: uint8(29),
  22875. 489: uint8(29),
  22876. 490: uint8(29),
  22877. 491: uint8(29),
  22878. 492: uint8(29),
  22879. 493: uint8(29),
  22880. 494: uint8(29),
  22881. 495: uint8(29),
  22882. 496: uint8(29),
  22883. 497: uint8(29),
  22884. 498: uint8(29),
  22885. 499: uint8(29),
  22886. 500: uint8(29),
  22887. 501: uint8(29),
  22888. 502: uint8(29),
  22889. 503: uint8(29),
  22890. 504: uint8(29),
  22891. 505: uint8(29),
  22892. 506: uint8(29),
  22893. 507: uint8(29),
  22894. 508: uint8(29),
  22895. 509: uint8(29),
  22896. 510: uint8(29),
  22897. 511: uint8(29),
  22898. }
  22899. var x__length_code = [256]Tuch{
  22900. 1: uint8(1),
  22901. 2: uint8(2),
  22902. 3: uint8(3),
  22903. 4: uint8(4),
  22904. 5: uint8(5),
  22905. 6: uint8(6),
  22906. 7: uint8(7),
  22907. 8: uint8(8),
  22908. 9: uint8(8),
  22909. 10: uint8(9),
  22910. 11: uint8(9),
  22911. 12: uint8(10),
  22912. 13: uint8(10),
  22913. 14: uint8(11),
  22914. 15: uint8(11),
  22915. 16: uint8(12),
  22916. 17: uint8(12),
  22917. 18: uint8(12),
  22918. 19: uint8(12),
  22919. 20: uint8(13),
  22920. 21: uint8(13),
  22921. 22: uint8(13),
  22922. 23: uint8(13),
  22923. 24: uint8(14),
  22924. 25: uint8(14),
  22925. 26: uint8(14),
  22926. 27: uint8(14),
  22927. 28: uint8(15),
  22928. 29: uint8(15),
  22929. 30: uint8(15),
  22930. 31: uint8(15),
  22931. 32: uint8(16),
  22932. 33: uint8(16),
  22933. 34: uint8(16),
  22934. 35: uint8(16),
  22935. 36: uint8(16),
  22936. 37: uint8(16),
  22937. 38: uint8(16),
  22938. 39: uint8(16),
  22939. 40: uint8(17),
  22940. 41: uint8(17),
  22941. 42: uint8(17),
  22942. 43: uint8(17),
  22943. 44: uint8(17),
  22944. 45: uint8(17),
  22945. 46: uint8(17),
  22946. 47: uint8(17),
  22947. 48: uint8(18),
  22948. 49: uint8(18),
  22949. 50: uint8(18),
  22950. 51: uint8(18),
  22951. 52: uint8(18),
  22952. 53: uint8(18),
  22953. 54: uint8(18),
  22954. 55: uint8(18),
  22955. 56: uint8(19),
  22956. 57: uint8(19),
  22957. 58: uint8(19),
  22958. 59: uint8(19),
  22959. 60: uint8(19),
  22960. 61: uint8(19),
  22961. 62: uint8(19),
  22962. 63: uint8(19),
  22963. 64: uint8(20),
  22964. 65: uint8(20),
  22965. 66: uint8(20),
  22966. 67: uint8(20),
  22967. 68: uint8(20),
  22968. 69: uint8(20),
  22969. 70: uint8(20),
  22970. 71: uint8(20),
  22971. 72: uint8(20),
  22972. 73: uint8(20),
  22973. 74: uint8(20),
  22974. 75: uint8(20),
  22975. 76: uint8(20),
  22976. 77: uint8(20),
  22977. 78: uint8(20),
  22978. 79: uint8(20),
  22979. 80: uint8(21),
  22980. 81: uint8(21),
  22981. 82: uint8(21),
  22982. 83: uint8(21),
  22983. 84: uint8(21),
  22984. 85: uint8(21),
  22985. 86: uint8(21),
  22986. 87: uint8(21),
  22987. 88: uint8(21),
  22988. 89: uint8(21),
  22989. 90: uint8(21),
  22990. 91: uint8(21),
  22991. 92: uint8(21),
  22992. 93: uint8(21),
  22993. 94: uint8(21),
  22994. 95: uint8(21),
  22995. 96: uint8(22),
  22996. 97: uint8(22),
  22997. 98: uint8(22),
  22998. 99: uint8(22),
  22999. 100: uint8(22),
  23000. 101: uint8(22),
  23001. 102: uint8(22),
  23002. 103: uint8(22),
  23003. 104: uint8(22),
  23004. 105: uint8(22),
  23005. 106: uint8(22),
  23006. 107: uint8(22),
  23007. 108: uint8(22),
  23008. 109: uint8(22),
  23009. 110: uint8(22),
  23010. 111: uint8(22),
  23011. 112: uint8(23),
  23012. 113: uint8(23),
  23013. 114: uint8(23),
  23014. 115: uint8(23),
  23015. 116: uint8(23),
  23016. 117: uint8(23),
  23017. 118: uint8(23),
  23018. 119: uint8(23),
  23019. 120: uint8(23),
  23020. 121: uint8(23),
  23021. 122: uint8(23),
  23022. 123: uint8(23),
  23023. 124: uint8(23),
  23024. 125: uint8(23),
  23025. 126: uint8(23),
  23026. 127: uint8(23),
  23027. 128: uint8(24),
  23028. 129: uint8(24),
  23029. 130: uint8(24),
  23030. 131: uint8(24),
  23031. 132: uint8(24),
  23032. 133: uint8(24),
  23033. 134: uint8(24),
  23034. 135: uint8(24),
  23035. 136: uint8(24),
  23036. 137: uint8(24),
  23037. 138: uint8(24),
  23038. 139: uint8(24),
  23039. 140: uint8(24),
  23040. 141: uint8(24),
  23041. 142: uint8(24),
  23042. 143: uint8(24),
  23043. 144: uint8(24),
  23044. 145: uint8(24),
  23045. 146: uint8(24),
  23046. 147: uint8(24),
  23047. 148: uint8(24),
  23048. 149: uint8(24),
  23049. 150: uint8(24),
  23050. 151: uint8(24),
  23051. 152: uint8(24),
  23052. 153: uint8(24),
  23053. 154: uint8(24),
  23054. 155: uint8(24),
  23055. 156: uint8(24),
  23056. 157: uint8(24),
  23057. 158: uint8(24),
  23058. 159: uint8(24),
  23059. 160: uint8(25),
  23060. 161: uint8(25),
  23061. 162: uint8(25),
  23062. 163: uint8(25),
  23063. 164: uint8(25),
  23064. 165: uint8(25),
  23065. 166: uint8(25),
  23066. 167: uint8(25),
  23067. 168: uint8(25),
  23068. 169: uint8(25),
  23069. 170: uint8(25),
  23070. 171: uint8(25),
  23071. 172: uint8(25),
  23072. 173: uint8(25),
  23073. 174: uint8(25),
  23074. 175: uint8(25),
  23075. 176: uint8(25),
  23076. 177: uint8(25),
  23077. 178: uint8(25),
  23078. 179: uint8(25),
  23079. 180: uint8(25),
  23080. 181: uint8(25),
  23081. 182: uint8(25),
  23082. 183: uint8(25),
  23083. 184: uint8(25),
  23084. 185: uint8(25),
  23085. 186: uint8(25),
  23086. 187: uint8(25),
  23087. 188: uint8(25),
  23088. 189: uint8(25),
  23089. 190: uint8(25),
  23090. 191: uint8(25),
  23091. 192: uint8(26),
  23092. 193: uint8(26),
  23093. 194: uint8(26),
  23094. 195: uint8(26),
  23095. 196: uint8(26),
  23096. 197: uint8(26),
  23097. 198: uint8(26),
  23098. 199: uint8(26),
  23099. 200: uint8(26),
  23100. 201: uint8(26),
  23101. 202: uint8(26),
  23102. 203: uint8(26),
  23103. 204: uint8(26),
  23104. 205: uint8(26),
  23105. 206: uint8(26),
  23106. 207: uint8(26),
  23107. 208: uint8(26),
  23108. 209: uint8(26),
  23109. 210: uint8(26),
  23110. 211: uint8(26),
  23111. 212: uint8(26),
  23112. 213: uint8(26),
  23113. 214: uint8(26),
  23114. 215: uint8(26),
  23115. 216: uint8(26),
  23116. 217: uint8(26),
  23117. 218: uint8(26),
  23118. 219: uint8(26),
  23119. 220: uint8(26),
  23120. 221: uint8(26),
  23121. 222: uint8(26),
  23122. 223: uint8(26),
  23123. 224: uint8(27),
  23124. 225: uint8(27),
  23125. 226: uint8(27),
  23126. 227: uint8(27),
  23127. 228: uint8(27),
  23128. 229: uint8(27),
  23129. 230: uint8(27),
  23130. 231: uint8(27),
  23131. 232: uint8(27),
  23132. 233: uint8(27),
  23133. 234: uint8(27),
  23134. 235: uint8(27),
  23135. 236: uint8(27),
  23136. 237: uint8(27),
  23137. 238: uint8(27),
  23138. 239: uint8(27),
  23139. 240: uint8(27),
  23140. 241: uint8(27),
  23141. 242: uint8(27),
  23142. 243: uint8(27),
  23143. 244: uint8(27),
  23144. 245: uint8(27),
  23145. 246: uint8(27),
  23146. 247: uint8(27),
  23147. 248: uint8(27),
  23148. 249: uint8(27),
  23149. 250: uint8(27),
  23150. 251: uint8(27),
  23151. 252: uint8(27),
  23152. 253: uint8(27),
  23153. 254: uint8(27),
  23154. 255: uint8(28),
  23155. }
  23156. var Xdeflate_copyright = [68]int8{' ', 'd', 'e', 'f', 'l', 'a', 't', 'e', ' ', '1', '.', '3', '.', '1', ' ', 'C', 'o', 'p', 'y', 'r', 'i', 'g', 'h', 't', ' ', '1', '9', '9', '5', '-', '2', '0', '2', '4', ' ', 'J', 'e', 'a', 'n', '-', 'l', 'o', 'u', 'p', ' ', 'G', 'a', 'i', 'l', 'l', 'y', ' ', 'a', 'n', 'd', ' ', 'M', 'a', 'r', 'k', ' ', 'A', 'd', 'l', 'e', 'r', ' '}
  23157. var Xinflate_copyright = [47]int8{' ', 'i', 'n', 'f', 'l', 'a', 't', 'e', ' ', '1', '.', '3', '.', '1', ' ', 'C', 'o', 'p', 'y', 'r', 'i', 'g', 'h', 't', ' ', '1', '9', '9', '5', '-', '2', '0', '2', '4', ' ', 'M', 'a', 'r', 'k', ' ', 'A', 'd', 'l', 'e', 'r', ' '}
  23158. var Xz_errmsg = [10]uintptr{
  23159. 0: __ccgo_ts + 467,
  23160. 1: __ccgo_ts + 483,
  23161. 2: __ccgo_ts + 494,
  23162. 3: __ccgo_ts + 495,
  23163. 4: __ccgo_ts + 506,
  23164. 5: __ccgo_ts + 519,
  23165. 6: __ccgo_ts + 530,
  23166. 7: __ccgo_ts + 550,
  23167. 8: __ccgo_ts + 563,
  23168. 9: __ccgo_ts + 494,
  23169. }
  23170. var __ccgo_ts = (*reflect.StringHeader)(unsafe.Pointer(&__ccgo_ts1)).Data
  23171. var __ccgo_ts1 = "1.3.1\x00invalid block type\x00invalid stored block lengths\x00too many length or distance symbols\x00invalid code lengths set\x00invalid bit length repeat\x00invalid code -- missing end-of-block\x00invalid literal/lengths set\x00invalid distances set\x00invalid literal/length code\x00invalid distance code\x00invalid distance too far back\x00incorrect header check\x00unknown compression method\x00invalid window size\x00unknown header flags set\x00header crc mismatch\x00incorrect data check\x00incorrect length check\x00need dictionary\x00stream end\x00\x00file error\x00stream error\x00data error\x00insufficient memory\x00buffer error\x00incompatible version\x00%s\x00<fd:%d>\x00out of memory\x00%s%s%s\x00: \x00unexpected end of file\x00internal error: inflate stream corrupt\x00compressed data error\x00request does not fit in an int\x00request does not fit in a size_t\x00out of room to push characters\x00internal error: deflate stream corrupt\x00requested length does not fit in int\x00string length does not fit in int\x00"