ccgo_linux_386.go 710 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486
  1. // Code generated for linux/386 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 && 386
  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 = 32
  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_PAGESIZE = 4096
  70. const m_PAGE_SIZE = "PAGESIZE"
  71. const m_PATH_MAX = 4096
  72. const m_PDP_ENDIAN = "__PDP_ENDIAN"
  73. const m_PIPE_BUF = 4096
  74. const m_POSIX_CLOSE_RESTART = 0
  75. const m_PRESET_DICT = 0x20
  76. const m_PTHREAD_DESTRUCTOR_ITERATIONS = 4
  77. const m_PTHREAD_KEYS_MAX = 128
  78. const m_PTHREAD_STACK_MIN = 2048
  79. const m_RAND_MAX = 0x7fffffff
  80. const m_RE_DUP_MAX = 255
  81. const m_R_OK = 4
  82. const m_SCHAR_MAX = 127
  83. const m_SEEK_CUR = 1
  84. const m_SEEK_DATA = 3
  85. const m_SEEK_END = 2
  86. const m_SEEK_HOLE = 4
  87. const m_SEEK_SET = 0
  88. const m_SEM_NSEMS_MAX = 256
  89. const m_SEM_VALUE_MAX = 0x7fffffff
  90. const m_SHRT_MAX = 0x7fff
  91. const m_SSIZE_MAX = "LONG_MAX"
  92. const m_STATIC_TREES = 1
  93. const m_STDERR_FILENO = 2
  94. const m_STDIN_FILENO = 0
  95. const m_STDOUT_FILENO = 1
  96. const m_STORED_BLOCK = 0
  97. const m_SYMLOOP_MAX = 40
  98. const m_TTY_NAME_MAX = 32
  99. const m_TZNAME_MAX = 6
  100. const m_UCHAR_MAX = 255
  101. const m_UINT_MAX = 0xffffffff
  102. const m_USHRT_MAX = 0xffff
  103. const m_WNOHANG = 1
  104. const m_WORD_BIT = 32
  105. const m_WUNTRACED = 2
  106. const m_W_OK = 2
  107. const m_X_OK = 1
  108. const m_ZEXTERN = "extern"
  109. const m_ZLIB_VERNUM = 0x1310
  110. const m_ZLIB_VERSION = "1.3.1"
  111. const m_ZLIB_VER_MAJOR = 1
  112. const m_ZLIB_VER_MINOR = 3
  113. const m_ZLIB_VER_REVISION = 1
  114. const m_ZLIB_VER_SUBREVISION = 0
  115. const m_Z_ASCII = "Z_TEXT"
  116. const m_Z_BEST_COMPRESSION = 9
  117. const m_Z_BEST_SPEED = 1
  118. const m_Z_BINARY = 0
  119. const m_Z_BLOCK = 5
  120. const m_Z_DEFAULT_STRATEGY = 0
  121. const m_Z_DEFLATED = 8
  122. const m_Z_FILTERED = 1
  123. const m_Z_FINISH = 4
  124. const m_Z_FIXED = 4
  125. const m_Z_FULL_FLUSH = 3
  126. const m_Z_HUFFMAN_ONLY = 2
  127. const m_Z_NEED_DICT = 2
  128. const m_Z_NO_COMPRESSION = 0
  129. const m_Z_NO_FLUSH = 0
  130. const m_Z_NULL = 0
  131. const m_Z_OK = 0
  132. const m_Z_PARTIAL_FLUSH = 1
  133. const m_Z_RLE = 3
  134. const m_Z_STREAM_END = 1
  135. const m_Z_SYNC_FLUSH = 2
  136. const m_Z_TEXT = 1
  137. const m_Z_TREES = 6
  138. const m_Z_U4 = "unsigned"
  139. const m_Z_UNKNOWN = 2
  140. const m__CS_GNU_LIBC_VERSION = 2
  141. const m__CS_GNU_LIBPTHREAD_VERSION = 3
  142. const m__CS_PATH = 0
  143. const m__CS_POSIX_V5_WIDTH_RESTRICTED_ENVS = 4
  144. const m__CS_POSIX_V6_ILP32_OFF32_CFLAGS = 1116
  145. const m__CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 1117
  146. const m__CS_POSIX_V6_ILP32_OFF32_LIBS = 1118
  147. const m__CS_POSIX_V6_ILP32_OFF32_LINTFLAGS = 1119
  148. const m__CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 1120
  149. const m__CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 1121
  150. const m__CS_POSIX_V6_ILP32_OFFBIG_LIBS = 1122
  151. const m__CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS = 1123
  152. const m__CS_POSIX_V6_LP64_OFF64_CFLAGS = 1124
  153. const m__CS_POSIX_V6_LP64_OFF64_LDFLAGS = 1125
  154. const m__CS_POSIX_V6_LP64_OFF64_LIBS = 1126
  155. const m__CS_POSIX_V6_LP64_OFF64_LINTFLAGS = 1127
  156. const m__CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 1128
  157. const m__CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 1129
  158. const m__CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 1130
  159. const m__CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS = 1131
  160. const m__CS_POSIX_V6_WIDTH_RESTRICTED_ENVS = 1
  161. const m__CS_POSIX_V7_ILP32_OFF32_CFLAGS = 1132
  162. const m__CS_POSIX_V7_ILP32_OFF32_LDFLAGS = 1133
  163. const m__CS_POSIX_V7_ILP32_OFF32_LIBS = 1134
  164. const m__CS_POSIX_V7_ILP32_OFF32_LINTFLAGS = 1135
  165. const m__CS_POSIX_V7_ILP32_OFFBIG_CFLAGS = 1136
  166. const m__CS_POSIX_V7_ILP32_OFFBIG_LDFLAGS = 1137
  167. const m__CS_POSIX_V7_ILP32_OFFBIG_LIBS = 1138
  168. const m__CS_POSIX_V7_ILP32_OFFBIG_LINTFLAGS = 1139
  169. const m__CS_POSIX_V7_LP64_OFF64_CFLAGS = 1140
  170. const m__CS_POSIX_V7_LP64_OFF64_LDFLAGS = 1141
  171. const m__CS_POSIX_V7_LP64_OFF64_LIBS = 1142
  172. const m__CS_POSIX_V7_LP64_OFF64_LINTFLAGS = 1143
  173. const m__CS_POSIX_V7_LPBIG_OFFBIG_CFLAGS = 1144
  174. const m__CS_POSIX_V7_LPBIG_OFFBIG_LDFLAGS = 1145
  175. const m__CS_POSIX_V7_LPBIG_OFFBIG_LIBS = 1146
  176. const m__CS_POSIX_V7_LPBIG_OFFBIG_LINTFLAGS = 1147
  177. const m__CS_POSIX_V7_THREADS_CFLAGS = 1150
  178. const m__CS_POSIX_V7_THREADS_LDFLAGS = 1151
  179. const m__CS_POSIX_V7_WIDTH_RESTRICTED_ENVS = 5
  180. const m__CS_V6_ENV = 1148
  181. const m__CS_V7_ENV = 1149
  182. const m__FILE_OFFSET_BITS = 64
  183. const m__GNU_SOURCE = 1
  184. const m__ILP32 = 1
  185. const m__LARGEFILE64_SOURCE = 1
  186. const m__PC_2_SYMLINKS = 20
  187. const m__PC_ALLOC_SIZE_MIN = 18
  188. const m__PC_ASYNC_IO = 10
  189. const m__PC_CHOWN_RESTRICTED = 6
  190. const m__PC_FILESIZEBITS = 13
  191. const m__PC_LINK_MAX = 0
  192. const m__PC_MAX_CANON = 1
  193. const m__PC_MAX_INPUT = 2
  194. const m__PC_NAME_MAX = 3
  195. const m__PC_NO_TRUNC = 7
  196. const m__PC_PATH_MAX = 4
  197. const m__PC_PIPE_BUF = 5
  198. const m__PC_PRIO_IO = 11
  199. const m__PC_REC_INCR_XFER_SIZE = 14
  200. const m__PC_REC_MAX_XFER_SIZE = 15
  201. const m__PC_REC_MIN_XFER_SIZE = 16
  202. const m__PC_REC_XFER_ALIGN = 17
  203. const m__PC_SOCK_MAXBUF = 12
  204. const m__PC_SYMLINK_MAX = 19
  205. const m__PC_SYNC_IO = 9
  206. const m__PC_VDISABLE = 8
  207. const m__POSIX2_BC_BASE_MAX = 99
  208. const m__POSIX2_BC_DIM_MAX = 2048
  209. const m__POSIX2_BC_SCALE_MAX = 99
  210. const m__POSIX2_BC_STRING_MAX = 1000
  211. const m__POSIX2_CHARCLASS_NAME_MAX = 14
  212. const m__POSIX2_COLL_WEIGHTS_MAX = 2
  213. const m__POSIX2_C_BIND = "_POSIX_VERSION"
  214. const m__POSIX2_EXPR_NEST_MAX = 32
  215. const m__POSIX2_LINE_MAX = 2048
  216. const m__POSIX2_RE_DUP_MAX = 255
  217. const m__POSIX2_VERSION = "_POSIX_VERSION"
  218. const m__POSIX_ADVISORY_INFO = "_POSIX_VERSION"
  219. const m__POSIX_AIO_LISTIO_MAX = 2
  220. const m__POSIX_AIO_MAX = 1
  221. const m__POSIX_ARG_MAX = 4096
  222. const m__POSIX_ASYNCHRONOUS_IO = "_POSIX_VERSION"
  223. const m__POSIX_BARRIERS = "_POSIX_VERSION"
  224. const m__POSIX_CHILD_MAX = 25
  225. const m__POSIX_CHOWN_RESTRICTED = 1
  226. const m__POSIX_CLOCKRES_MIN = 20000000
  227. const m__POSIX_CLOCK_SELECTION = "_POSIX_VERSION"
  228. const m__POSIX_CPUTIME = "_POSIX_VERSION"
  229. const m__POSIX_DELAYTIMER_MAX = 32
  230. const m__POSIX_FSYNC = "_POSIX_VERSION"
  231. const m__POSIX_HOST_NAME_MAX = 255
  232. const m__POSIX_IPV6 = "_POSIX_VERSION"
  233. const m__POSIX_JOB_CONTROL = 1
  234. const m__POSIX_LINK_MAX = 8
  235. const m__POSIX_LOGIN_NAME_MAX = 9
  236. const m__POSIX_MAPPED_FILES = "_POSIX_VERSION"
  237. const m__POSIX_MAX_CANON = 255
  238. const m__POSIX_MAX_INPUT = 255
  239. const m__POSIX_MEMLOCK = "_POSIX_VERSION"
  240. const m__POSIX_MEMLOCK_RANGE = "_POSIX_VERSION"
  241. const m__POSIX_MEMORY_PROTECTION = "_POSIX_VERSION"
  242. const m__POSIX_MESSAGE_PASSING = "_POSIX_VERSION"
  243. const m__POSIX_MONOTONIC_CLOCK = "_POSIX_VERSION"
  244. const m__POSIX_MQ_OPEN_MAX = 8
  245. const m__POSIX_MQ_PRIO_MAX = 32
  246. const m__POSIX_NAME_MAX = 14
  247. const m__POSIX_NGROUPS_MAX = 8
  248. const m__POSIX_NO_TRUNC = 1
  249. const m__POSIX_OPEN_MAX = 20
  250. const m__POSIX_PATH_MAX = 256
  251. const m__POSIX_PIPE_BUF = 512
  252. const m__POSIX_RAW_SOCKETS = "_POSIX_VERSION"
  253. const m__POSIX_READER_WRITER_LOCKS = "_POSIX_VERSION"
  254. const m__POSIX_REALTIME_SIGNALS = "_POSIX_VERSION"
  255. const m__POSIX_REGEXP = 1
  256. const m__POSIX_RE_DUP_MAX = 255
  257. const m__POSIX_RTSIG_MAX = 8
  258. const m__POSIX_SAVED_IDS = 1
  259. const m__POSIX_SEMAPHORES = "_POSIX_VERSION"
  260. const m__POSIX_SEM_NSEMS_MAX = 256
  261. const m__POSIX_SEM_VALUE_MAX = 32767
  262. const m__POSIX_SHARED_MEMORY_OBJECTS = "_POSIX_VERSION"
  263. const m__POSIX_SHELL = 1
  264. const m__POSIX_SIGQUEUE_MAX = 32
  265. const m__POSIX_SPAWN = "_POSIX_VERSION"
  266. const m__POSIX_SPIN_LOCKS = "_POSIX_VERSION"
  267. const m__POSIX_SSIZE_MAX = 32767
  268. const m__POSIX_SS_REPL_MAX = 4
  269. const m__POSIX_STREAM_MAX = 8
  270. const m__POSIX_SYMLINK_MAX = 255
  271. const m__POSIX_SYMLOOP_MAX = 8
  272. const m__POSIX_THREADS = "_POSIX_VERSION"
  273. const m__POSIX_THREAD_ATTR_STACKADDR = "_POSIX_VERSION"
  274. const m__POSIX_THREAD_ATTR_STACKSIZE = "_POSIX_VERSION"
  275. const m__POSIX_THREAD_CPUTIME = "_POSIX_VERSION"
  276. const m__POSIX_THREAD_DESTRUCTOR_ITERATIONS = 4
  277. const m__POSIX_THREAD_KEYS_MAX = 128
  278. const m__POSIX_THREAD_PRIORITY_SCHEDULING = "_POSIX_VERSION"
  279. const m__POSIX_THREAD_PROCESS_SHARED = "_POSIX_VERSION"
  280. const m__POSIX_THREAD_SAFE_FUNCTIONS = "_POSIX_VERSION"
  281. const m__POSIX_THREAD_THREADS_MAX = 64
  282. const m__POSIX_TIMEOUTS = "_POSIX_VERSION"
  283. const m__POSIX_TIMERS = "_POSIX_VERSION"
  284. const m__POSIX_TIMER_MAX = 32
  285. const m__POSIX_TRACE_EVENT_NAME_MAX = 30
  286. const m__POSIX_TRACE_NAME_MAX = 8
  287. const m__POSIX_TRACE_SYS_MAX = 8
  288. const m__POSIX_TRACE_USER_EVENT_MAX = 32
  289. const m__POSIX_TTY_NAME_MAX = 9
  290. const m__POSIX_TZNAME_MAX = 6
  291. const m__POSIX_V6_ILP32_OFFBIG = 1
  292. const m__POSIX_V7_ILP32_OFFBIG = 1
  293. const m__POSIX_VDISABLE = 0
  294. const m__POSIX_VERSION = 200809
  295. const m__REDIR_TIME64 = 1
  296. const m__SC_2_CHAR_TERM = 95
  297. const m__SC_2_C_BIND = 47
  298. const m__SC_2_C_DEV = 48
  299. const m__SC_2_FORT_DEV = 49
  300. const m__SC_2_FORT_RUN = 50
  301. const m__SC_2_LOCALEDEF = 52
  302. const m__SC_2_PBS = 168
  303. const m__SC_2_PBS_ACCOUNTING = 169
  304. const m__SC_2_PBS_CHECKPOINT = 175
  305. const m__SC_2_PBS_LOCATE = 170
  306. const m__SC_2_PBS_MESSAGE = 171
  307. const m__SC_2_PBS_TRACK = 172
  308. const m__SC_2_SW_DEV = 51
  309. const m__SC_2_UPE = 97
  310. const m__SC_2_VERSION = 46
  311. const m__SC_ADVISORY_INFO = 132
  312. const m__SC_AIO_LISTIO_MAX = 23
  313. const m__SC_AIO_MAX = 24
  314. const m__SC_AIO_PRIO_DELTA_MAX = 25
  315. const m__SC_ARG_MAX = 0
  316. const m__SC_ASYNCHRONOUS_IO = 12
  317. const m__SC_ATEXIT_MAX = 87
  318. const m__SC_AVPHYS_PAGES = 86
  319. const m__SC_BARRIERS = 133
  320. const m__SC_BC_BASE_MAX = 36
  321. const m__SC_BC_DIM_MAX = 37
  322. const m__SC_BC_SCALE_MAX = 38
  323. const m__SC_BC_STRING_MAX = 39
  324. const m__SC_CHILD_MAX = 1
  325. const m__SC_CLK_TCK = 2
  326. const m__SC_CLOCK_SELECTION = 137
  327. const m__SC_COLL_WEIGHTS_MAX = 40
  328. const m__SC_CPUTIME = 138
  329. const m__SC_DELAYTIMER_MAX = 26
  330. const m__SC_EXPR_NEST_MAX = 42
  331. const m__SC_FSYNC = 15
  332. const m__SC_GETGR_R_SIZE_MAX = 69
  333. const m__SC_GETPW_R_SIZE_MAX = 70
  334. const m__SC_HOST_NAME_MAX = 180
  335. const m__SC_IOV_MAX = 60
  336. const m__SC_IPV6 = 235
  337. const m__SC_JOB_CONTROL = 7
  338. const m__SC_LINE_MAX = 43
  339. const m__SC_LOGIN_NAME_MAX = 71
  340. const m__SC_MAPPED_FILES = 16
  341. const m__SC_MEMLOCK = 17
  342. const m__SC_MEMLOCK_RANGE = 18
  343. const m__SC_MEMORY_PROTECTION = 19
  344. const m__SC_MESSAGE_PASSING = 20
  345. const m__SC_MINSIGSTKSZ = 249
  346. const m__SC_MONOTONIC_CLOCK = 149
  347. const m__SC_MQ_OPEN_MAX = 27
  348. const m__SC_MQ_PRIO_MAX = 28
  349. const m__SC_NGROUPS_MAX = 3
  350. const m__SC_NPROCESSORS_CONF = 83
  351. const m__SC_NPROCESSORS_ONLN = 84
  352. const m__SC_NZERO = 109
  353. const m__SC_OPEN_MAX = 4
  354. const m__SC_PAGESIZE = 30
  355. const m__SC_PAGE_SIZE = 30
  356. const m__SC_PASS_MAX = 88
  357. const m__SC_PHYS_PAGES = 85
  358. const m__SC_PRIORITIZED_IO = 13
  359. const m__SC_PRIORITY_SCHEDULING = 10
  360. const m__SC_RAW_SOCKETS = 236
  361. const m__SC_READER_WRITER_LOCKS = 153
  362. const m__SC_REALTIME_SIGNALS = 9
  363. const m__SC_REGEXP = 155
  364. const m__SC_RE_DUP_MAX = 44
  365. const m__SC_RTSIG_MAX = 31
  366. const m__SC_SAVED_IDS = 8
  367. const m__SC_SEMAPHORES = 21
  368. const m__SC_SEM_NSEMS_MAX = 32
  369. const m__SC_SEM_VALUE_MAX = 33
  370. const m__SC_SHARED_MEMORY_OBJECTS = 22
  371. const m__SC_SHELL = 157
  372. const m__SC_SIGQUEUE_MAX = 34
  373. const m__SC_SIGSTKSZ = 250
  374. const m__SC_SPAWN = 159
  375. const m__SC_SPIN_LOCKS = 154
  376. const m__SC_SPORADIC_SERVER = 160
  377. const m__SC_SS_REPL_MAX = 241
  378. const m__SC_STREAMS = 174
  379. const m__SC_STREAM_MAX = 5
  380. const m__SC_SYMLOOP_MAX = 173
  381. const m__SC_SYNCHRONIZED_IO = 14
  382. const m__SC_THREADS = 67
  383. const m__SC_THREAD_ATTR_STACKADDR = 77
  384. const m__SC_THREAD_ATTR_STACKSIZE = 78
  385. const m__SC_THREAD_CPUTIME = 139
  386. const m__SC_THREAD_DESTRUCTOR_ITERATIONS = 73
  387. const m__SC_THREAD_KEYS_MAX = 74
  388. const m__SC_THREAD_PRIORITY_SCHEDULING = 79
  389. const m__SC_THREAD_PRIO_INHERIT = 80
  390. const m__SC_THREAD_PRIO_PROTECT = 81
  391. const m__SC_THREAD_PROCESS_SHARED = 82
  392. const m__SC_THREAD_ROBUST_PRIO_INHERIT = 247
  393. const m__SC_THREAD_ROBUST_PRIO_PROTECT = 248
  394. const m__SC_THREAD_SAFE_FUNCTIONS = 68
  395. const m__SC_THREAD_SPORADIC_SERVER = 161
  396. const m__SC_THREAD_STACK_MIN = 75
  397. const m__SC_THREAD_THREADS_MAX = 76
  398. const m__SC_TIMEOUTS = 164
  399. const m__SC_TIMERS = 11
  400. const m__SC_TIMER_MAX = 35
  401. const m__SC_TRACE = 181
  402. const m__SC_TRACE_EVENT_FILTER = 182
  403. const m__SC_TRACE_EVENT_NAME_MAX = 242
  404. const m__SC_TRACE_INHERIT = 183
  405. const m__SC_TRACE_LOG = 184
  406. const m__SC_TRACE_NAME_MAX = 243
  407. const m__SC_TRACE_SYS_MAX = 244
  408. const m__SC_TRACE_USER_EVENT_MAX = 245
  409. const m__SC_TTY_NAME_MAX = 72
  410. const m__SC_TYPED_MEMORY_OBJECTS = 165
  411. const m__SC_TZNAME_MAX = 6
  412. const m__SC_UIO_MAXIOV = 60
  413. const m__SC_V6_ILP32_OFF32 = 176
  414. const m__SC_V6_ILP32_OFFBIG = 177
  415. const m__SC_V6_LP64_OFF64 = 178
  416. const m__SC_V6_LPBIG_OFFBIG = 179
  417. const m__SC_V7_ILP32_OFF32 = 237
  418. const m__SC_V7_ILP32_OFFBIG = 238
  419. const m__SC_V7_LP64_OFF64 = 239
  420. const m__SC_V7_LPBIG_OFFBIG = 240
  421. const m__SC_VERSION = 29
  422. const m__SC_XBS5_ILP32_OFF32 = 125
  423. const m__SC_XBS5_ILP32_OFFBIG = 126
  424. const m__SC_XBS5_LP64_OFF64 = 127
  425. const m__SC_XBS5_LPBIG_OFFBIG = 128
  426. const m__SC_XOPEN_CRYPT = 92
  427. const m__SC_XOPEN_ENH_I18N = 93
  428. const m__SC_XOPEN_LEGACY = 129
  429. const m__SC_XOPEN_REALTIME = 130
  430. const m__SC_XOPEN_REALTIME_THREADS = 131
  431. const m__SC_XOPEN_SHM = 94
  432. const m__SC_XOPEN_STREAMS = 246
  433. const m__SC_XOPEN_UNIX = 91
  434. const m__SC_XOPEN_VERSION = 89
  435. const m__SC_XOPEN_XCU_VERSION = 90
  436. const m__SC_XOPEN_XPG2 = 98
  437. const m__SC_XOPEN_XPG3 = 99
  438. const m__SC_XOPEN_XPG4 = 100
  439. const m__STDC_PREDEF_H = 1
  440. const m__XOPEN_ENH_I18N = 1
  441. const m__XOPEN_IOV_MAX = 16
  442. const m__XOPEN_NAME_MAX = 255
  443. const m__XOPEN_PATH_MAX = 1024
  444. const m__XOPEN_UNIX = 1
  445. const m__XOPEN_VERSION = 700
  446. const m___ATOMIC_ACQUIRE = 2
  447. const m___ATOMIC_ACQ_REL = 4
  448. const m___ATOMIC_CONSUME = 1
  449. const m___ATOMIC_HLE_ACQUIRE = 65536
  450. const m___ATOMIC_HLE_RELEASE = 131072
  451. const m___ATOMIC_RELAXED = 0
  452. const m___ATOMIC_RELEASE = 3
  453. const m___ATOMIC_SEQ_CST = 5
  454. const m___BIGGEST_ALIGNMENT__ = 16
  455. const m___BIG_ENDIAN = 4321
  456. const m___BYTE_ORDER = 1234
  457. const m___BYTE_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  458. const m___CCGO__ = 1
  459. const m___CHAR_BIT__ = 8
  460. const m___DBL_DECIMAL_DIG__ = 17
  461. const m___DBL_DIG__ = 15
  462. const m___DBL_HAS_DENORM__ = 1
  463. const m___DBL_HAS_INFINITY__ = 1
  464. const m___DBL_HAS_QUIET_NAN__ = 1
  465. const m___DBL_IS_IEC_60559__ = 2
  466. const m___DBL_MANT_DIG__ = 53
  467. const m___DBL_MAX_10_EXP__ = 308
  468. const m___DBL_MAX_EXP__ = 1024
  469. const m___DEC128_EPSILON__ = 1e-33
  470. const m___DEC128_MANT_DIG__ = 34
  471. const m___DEC128_MAX_EXP__ = 6145
  472. const m___DEC128_MAX__ = "9.999999999999999999999999999999999E6144"
  473. const m___DEC128_MIN__ = 1e-6143
  474. const m___DEC128_SUBNORMAL_MIN__ = 0.000000000000000000000000000000001e-6143
  475. const m___DEC32_EPSILON__ = 1e-6
  476. const m___DEC32_MANT_DIG__ = 7
  477. const m___DEC32_MAX_EXP__ = 97
  478. const m___DEC32_MAX__ = 9.999999e96
  479. const m___DEC32_MIN__ = 1e-95
  480. const m___DEC32_SUBNORMAL_MIN__ = 0.000001e-95
  481. const m___DEC64_EPSILON__ = 1e-15
  482. const m___DEC64_MANT_DIG__ = 16
  483. const m___DEC64_MAX_EXP__ = 385
  484. const m___DEC64_MAX__ = "9.999999999999999E384"
  485. const m___DEC64_MIN__ = 1e-383
  486. const m___DEC64_SUBNORMAL_MIN__ = 0.000000000000001e-383
  487. const m___DECIMAL_BID_FORMAT__ = 1
  488. const m___DECIMAL_DIG__ = 17
  489. const m___DEC_EVAL_METHOD__ = 2
  490. const m___ELF__ = 1
  491. const m___FINITE_MATH_ONLY__ = 0
  492. const m___FLOAT_WORD_ORDER__ = "__ORDER_LITTLE_ENDIAN__"
  493. const m___FLT128_DECIMAL_DIG__ = 36
  494. const m___FLT128_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  495. const m___FLT128_DIG__ = 33
  496. const m___FLT128_EPSILON__ = 1.92592994438723585305597794258492732e-34
  497. const m___FLT128_HAS_DENORM__ = 1
  498. const m___FLT128_HAS_INFINITY__ = 1
  499. const m___FLT128_HAS_QUIET_NAN__ = 1
  500. const m___FLT128_IS_IEC_60559__ = 2
  501. const m___FLT128_MANT_DIG__ = 113
  502. const m___FLT128_MAX_10_EXP__ = 4932
  503. const m___FLT128_MAX_EXP__ = 16384
  504. const m___FLT128_MAX__ = "1.18973149535723176508575932662800702e+4932"
  505. const m___FLT128_MIN__ = 3.36210314311209350626267781732175260e-4932
  506. const m___FLT128_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  507. const m___FLT32X_DECIMAL_DIG__ = 17
  508. const m___FLT32X_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  509. const m___FLT32X_DIG__ = 15
  510. const m___FLT32X_EPSILON__ = 2.22044604925031308084726333618164062e-16
  511. const m___FLT32X_HAS_DENORM__ = 1
  512. const m___FLT32X_HAS_INFINITY__ = 1
  513. const m___FLT32X_HAS_QUIET_NAN__ = 1
  514. const m___FLT32X_IS_IEC_60559__ = 2
  515. const m___FLT32X_MANT_DIG__ = 53
  516. const m___FLT32X_MAX_10_EXP__ = 308
  517. const m___FLT32X_MAX_EXP__ = 1024
  518. const m___FLT32X_MAX__ = 1.79769313486231570814527423731704357e+308
  519. const m___FLT32X_MIN__ = 2.22507385850720138309023271733240406e-308
  520. const m___FLT32X_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  521. const m___FLT32_DECIMAL_DIG__ = 9
  522. const m___FLT32_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
  523. const m___FLT32_DIG__ = 6
  524. const m___FLT32_EPSILON__ = 1.19209289550781250000000000000000000e-7
  525. const m___FLT32_HAS_DENORM__ = 1
  526. const m___FLT32_HAS_INFINITY__ = 1
  527. const m___FLT32_HAS_QUIET_NAN__ = 1
  528. const m___FLT32_IS_IEC_60559__ = 2
  529. const m___FLT32_MANT_DIG__ = 24
  530. const m___FLT32_MAX_10_EXP__ = 38
  531. const m___FLT32_MAX_EXP__ = 128
  532. const m___FLT32_MAX__ = 3.40282346638528859811704183484516925e+38
  533. const m___FLT32_MIN__ = 1.17549435082228750796873653722224568e-38
  534. const m___FLT32_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
  535. const m___FLT64X_DECIMAL_DIG__ = 36
  536. const m___FLT64X_DENORM_MIN__ = 6.47517511943802511092443895822764655e-4966
  537. const m___FLT64X_DIG__ = 33
  538. const m___FLT64X_EPSILON__ = 1.92592994438723585305597794258492732e-34
  539. const m___FLT64X_HAS_DENORM__ = 1
  540. const m___FLT64X_HAS_INFINITY__ = 1
  541. const m___FLT64X_HAS_QUIET_NAN__ = 1
  542. const m___FLT64X_IS_IEC_60559__ = 2
  543. const m___FLT64X_MANT_DIG__ = 113
  544. const m___FLT64X_MAX_10_EXP__ = 4932
  545. const m___FLT64X_MAX_EXP__ = 16384
  546. const m___FLT64X_MAX__ = "1.18973149535723176508575932662800702e+4932"
  547. const m___FLT64X_MIN__ = 3.36210314311209350626267781732175260e-4932
  548. const m___FLT64X_NORM_MAX__ = "1.18973149535723176508575932662800702e+4932"
  549. const m___FLT64_DECIMAL_DIG__ = 17
  550. const m___FLT64_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  551. const m___FLT64_DIG__ = 15
  552. const m___FLT64_EPSILON__ = 2.22044604925031308084726333618164062e-16
  553. const m___FLT64_HAS_DENORM__ = 1
  554. const m___FLT64_HAS_INFINITY__ = 1
  555. const m___FLT64_HAS_QUIET_NAN__ = 1
  556. const m___FLT64_IS_IEC_60559__ = 2
  557. const m___FLT64_MANT_DIG__ = 53
  558. const m___FLT64_MAX_10_EXP__ = 308
  559. const m___FLT64_MAX_EXP__ = 1024
  560. const m___FLT64_MAX__ = 1.79769313486231570814527423731704357e+308
  561. const m___FLT64_MIN__ = 2.22507385850720138309023271733240406e-308
  562. const m___FLT64_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  563. const m___FLT_DECIMAL_DIG__ = 9
  564. const m___FLT_DENORM_MIN__ = 1.40129846432481707092372958328991613e-45
  565. const m___FLT_DIG__ = 6
  566. const m___FLT_EPSILON__ = 1.19209289550781250000000000000000000e-7
  567. const m___FLT_EVAL_METHOD_TS_18661_3__ = 2
  568. const m___FLT_EVAL_METHOD__ = 2
  569. const m___FLT_HAS_DENORM__ = 1
  570. const m___FLT_HAS_INFINITY__ = 1
  571. const m___FLT_HAS_QUIET_NAN__ = 1
  572. const m___FLT_IS_IEC_60559__ = 2
  573. const m___FLT_MANT_DIG__ = 24
  574. const m___FLT_MAX_10_EXP__ = 38
  575. const m___FLT_MAX_EXP__ = 128
  576. const m___FLT_MAX__ = 3.40282346638528859811704183484516925e+38
  577. const m___FLT_MIN__ = 1.17549435082228750796873653722224568e-38
  578. const m___FLT_NORM_MAX__ = 3.40282346638528859811704183484516925e+38
  579. const m___FLT_RADIX__ = 2
  580. const m___FUNCTION__ = "__func__"
  581. const m___GCC_ASM_FLAG_OUTPUTS__ = 1
  582. const m___GCC_ATOMIC_BOOL_LOCK_FREE = 2
  583. const m___GCC_ATOMIC_CHAR16_T_LOCK_FREE = 2
  584. const m___GCC_ATOMIC_CHAR32_T_LOCK_FREE = 2
  585. const m___GCC_ATOMIC_CHAR_LOCK_FREE = 2
  586. const m___GCC_ATOMIC_INT_LOCK_FREE = 2
  587. const m___GCC_ATOMIC_LLONG_LOCK_FREE = 2
  588. const m___GCC_ATOMIC_LONG_LOCK_FREE = 2
  589. const m___GCC_ATOMIC_POINTER_LOCK_FREE = 2
  590. const m___GCC_ATOMIC_SHORT_LOCK_FREE = 2
  591. const m___GCC_ATOMIC_TEST_AND_SET_TRUEVAL = 1
  592. const m___GCC_ATOMIC_WCHAR_T_LOCK_FREE = 2
  593. const m___GCC_CONSTRUCTIVE_SIZE = 64
  594. const m___GCC_DESTRUCTIVE_SIZE = 64
  595. const m___GCC_HAVE_DWARF2_CFI_ASM = 1
  596. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_1 = 1
  597. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_2 = 1
  598. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 = 1
  599. const m___GCC_HAVE_SYNC_COMPARE_AND_SWAP_8 = 1
  600. const m___GCC_IEC_559 = 2
  601. const m___GCC_IEC_559_COMPLEX = 2
  602. const m___GNUC_EXECUTION_CHARSET_NAME = "UTF-8"
  603. const m___GNUC_MINOR__ = 2
  604. const m___GNUC_PATCHLEVEL__ = 0
  605. const m___GNUC_STDC_INLINE__ = 1
  606. const m___GNUC_WIDE_EXECUTION_CHARSET_NAME = "UTF-32LE"
  607. const m___GNUC__ = 12
  608. const m___GXX_ABI_VERSION = 1017
  609. const m___HAVE_SPECULATION_SAFE_VALUE = 1
  610. const m___ILP32__ = 1
  611. const m___INT16_MAX__ = 0x7fff
  612. const m___INT32_MAX__ = 0x7fffffff
  613. const m___INT32_TYPE__ = "int"
  614. const m___INT64_MAX__ = 0x7fffffffffffffff
  615. const m___INT8_MAX__ = 0x7f
  616. const m___INTMAX_MAX__ = 0x7fffffffffffffff
  617. const m___INTMAX_WIDTH__ = 64
  618. const m___INTPTR_MAX__ = 0x7fffffff
  619. const m___INTPTR_TYPE__ = "int"
  620. const m___INTPTR_WIDTH__ = 32
  621. const m___INT_FAST16_MAX__ = 0x7fffffff
  622. const m___INT_FAST16_TYPE__ = "int"
  623. const m___INT_FAST16_WIDTH__ = 32
  624. const m___INT_FAST32_MAX__ = 0x7fffffff
  625. const m___INT_FAST32_TYPE__ = "int"
  626. const m___INT_FAST32_WIDTH__ = 32
  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___LAHF_SAHF__ = 1
  643. const m___LDBL_DECIMAL_DIG__ = 17
  644. const m___LDBL_DENORM_MIN__ = 4.94065645841246544176568792868221372e-324
  645. const m___LDBL_DIG__ = 15
  646. const m___LDBL_EPSILON__ = 2.22044604925031308084726333618164062e-16
  647. const m___LDBL_HAS_DENORM__ = 1
  648. const m___LDBL_HAS_INFINITY__ = 1
  649. const m___LDBL_HAS_QUIET_NAN__ = 1
  650. const m___LDBL_IS_IEC_60559__ = 2
  651. const m___LDBL_MANT_DIG__ = 53
  652. const m___LDBL_MAX_10_EXP__ = 308
  653. const m___LDBL_MAX_EXP__ = 1024
  654. const m___LDBL_MAX__ = 1.79769313486231570814527423731704357e+308
  655. const m___LDBL_MIN__ = 2.22507385850720138309023271733240406e-308
  656. const m___LDBL_NORM_MAX__ = 1.79769313486231570814527423731704357e+308
  657. const m___LITTLE_ENDIAN = 1234
  658. const m___LONG_DOUBLE_64__ = 1
  659. const m___LONG_LONG_MAX__ = 0x7fffffffffffffff
  660. const m___LONG_LONG_WIDTH__ = 64
  661. const m___LONG_MAX = 0x7fffffff
  662. const m___LONG_MAX__ = 0x7fffffff
  663. const m___LONG_WIDTH__ = 32
  664. const m___NO_INLINE__ = 1
  665. const m___ORDER_BIG_ENDIAN__ = 4321
  666. const m___ORDER_LITTLE_ENDIAN__ = 1234
  667. const m___ORDER_PDP_ENDIAN__ = 3412
  668. const m___PDP_ENDIAN = 3412
  669. const m___PIC__ = 2
  670. const m___PIE__ = 2
  671. const m___PRAGMA_REDEFINE_EXTNAME = 1
  672. const m___PRETTY_FUNCTION__ = "__func__"
  673. const m___PTRDIFF_MAX__ = 0x7fffffff
  674. const m___PTRDIFF_TYPE__ = "int"
  675. const m___PTRDIFF_WIDTH__ = 32
  676. const m___SCHAR_MAX__ = 0x7f
  677. const m___SCHAR_WIDTH__ = 8
  678. const m___SEG_FS = 1
  679. const m___SEG_GS = 1
  680. const m___SHRT_MAX__ = 0x7fff
  681. const m___SHRT_WIDTH__ = 16
  682. const m___SIG_ATOMIC_MAX__ = 0x7fffffff
  683. const m___SIG_ATOMIC_TYPE__ = "int"
  684. const m___SIG_ATOMIC_WIDTH__ = 32
  685. const m___SIZEOF_DOUBLE__ = 8
  686. const m___SIZEOF_FLOAT128__ = 16
  687. const m___SIZEOF_FLOAT80__ = 12
  688. const m___SIZEOF_FLOAT__ = 4
  689. const m___SIZEOF_INT__ = 4
  690. const m___SIZEOF_LONG_DOUBLE__ = 8
  691. const m___SIZEOF_LONG_LONG__ = 8
  692. const m___SIZEOF_LONG__ = 4
  693. const m___SIZEOF_POINTER__ = 4
  694. const m___SIZEOF_PTRDIFF_T__ = 4
  695. const m___SIZEOF_SHORT__ = 2
  696. const m___SIZEOF_SIZE_T__ = 4
  697. const m___SIZEOF_WCHAR_T__ = 4
  698. const m___SIZEOF_WINT_T__ = 4
  699. const m___SIZE_MAX__ = 0xffffffff
  700. const m___SIZE_WIDTH__ = 32
  701. const m___STDC_HOSTED__ = 1
  702. const m___STDC_IEC_559_COMPLEX__ = 1
  703. const m___STDC_IEC_559__ = 1
  704. const m___STDC_IEC_60559_BFP__ = 201404
  705. const m___STDC_IEC_60559_COMPLEX__ = 201404
  706. const m___STDC_ISO_10646__ = 201706
  707. const m___STDC_UTF_16__ = 1
  708. const m___STDC_UTF_32__ = 1
  709. const m___STDC_VERSION__ = 201710
  710. const m___STDC__ = 1
  711. const m___UINT16_MAX__ = 0xffff
  712. const m___UINT32_MAX__ = 0xffffffff
  713. const m___UINT64_MAX__ = "0xffffffffffffffffU"
  714. const m___UINT8_MAX__ = 0xff
  715. const m___UINTMAX_MAX__ = "0xffffffffffffffffU"
  716. const m___UINTPTR_MAX__ = 0xffffffff
  717. const m___UINT_FAST16_MAX__ = 0xffffffff
  718. const m___UINT_FAST32_MAX__ = 0xffffffff
  719. const m___UINT_FAST64_MAX__ = "0xffffffffffffffffU"
  720. const m___UINT_FAST8_MAX__ = 0xff
  721. const m___UINT_LEAST16_MAX__ = 0xffff
  722. const m___UINT_LEAST32_MAX__ = 0xffffffff
  723. const m___UINT_LEAST64_MAX__ = "0xffffffffffffffffU"
  724. const m___UINT_LEAST8_MAX__ = 0xff
  725. const m___USE_TIME_BITS64 = 1
  726. const m___VERSION__ = "12.2.0"
  727. const m___WCHAR_MAX__ = 0x7fffffff
  728. const m___WCHAR_WIDTH__ = 32
  729. const m___WINT_MAX__ = 0xffffffff
  730. const m___WINT_MIN__ = 0
  731. const m___WINT_WIDTH__ = 32
  732. const m___code_model_32__ = 1
  733. const m___gnu_linux__ = 1
  734. const m___i386 = 1
  735. const m___i386__ = 1
  736. const m___i686 = 1
  737. const m___i686__ = 1
  738. const m___inline = "inline"
  739. const m___linux = 1
  740. const m___linux__ = 1
  741. const m___pentiumpro = 1
  742. const m___pentiumpro__ = 1
  743. const m___pic__ = 2
  744. const m___pie__ = 2
  745. const m___restrict = "restrict"
  746. const m___restrict_arr = "restrict"
  747. const m___unix = 1
  748. const m___unix__ = 1
  749. const m_alloca = "__builtin_alloca"
  750. const m_blkcnt64_t = "blkcnt_t"
  751. const m_fsblkcnt64_t = "fsblkcnt_t"
  752. const m_fsfilcnt64_t = "fsfilcnt_t"
  753. const m_ftruncate64 = "ftruncate"
  754. const m_i386 = 1
  755. const m_ino64_t = "ino_t"
  756. const m_linux = 1
  757. const m_local = "static"
  758. const m_lockf64 = "lockf"
  759. const m_lseek64 = "lseek"
  760. const m_mkostemp64 = "mkostemp"
  761. const m_mkostemps64 = "mkostemps"
  762. const m_mkstemp64 = "mkstemp"
  763. const m_mkstemps64 = "mkstemps"
  764. const m_off64_t = "off_t"
  765. const m_pread64 = "pread"
  766. const m_pwrite64 = "pwrite"
  767. const m_truncate64 = "truncate"
  768. const m_unix = 1
  769. const m_z_off64_t = "z_off_t"
  770. const m_z_off_t = "off_t"
  771. const m_zmemcmp = "memcmp"
  772. const m_zmemcpy = "memcpy"
  773. type t__builtin_va_list = uintptr
  774. type t__predefined_size_t = uint32
  775. type t__predefined_wchar_t = int32
  776. type t__predefined_ptrdiff_t = int32
  777. type Twchar_t = int32
  778. type Tmax_align_t = struct {
  779. F__ll int64
  780. F__ld float64
  781. }
  782. type Tsize_t = uint32
  783. type Tptrdiff_t = int32
  784. type Tz_size_t = uint32
  785. type TByte = uint8
  786. type TuInt = uint32
  787. type TuLong = uint32
  788. type TBytef = uint8
  789. type Tcharf = int8
  790. type Tintf = int32
  791. type TuIntf = uint32
  792. type TuLongf = uint32
  793. type Tvoidpc = uintptr
  794. type Tvoidpf = uintptr
  795. type Tvoidp = uintptr
  796. type Tz_crc_t = uint32
  797. type Tssize_t = int32
  798. type Tregister_t = int32
  799. type Ttime_t = int64
  800. type Tsuseconds_t = int64
  801. type Tint8_t = int8
  802. type Tint16_t = int16
  803. type Tint32_t = int32
  804. type Tint64_t = int64
  805. type Tu_int64_t = uint64
  806. type Tmode_t = uint32
  807. type Tnlink_t = uint32
  808. type Toff_t = int64
  809. type Tino_t = uint64
  810. type Tdev_t = uint64
  811. type Tblksize_t = int32
  812. type Tblkcnt_t = int64
  813. type Tfsblkcnt_t = uint64
  814. type Tfsfilcnt_t = uint64
  815. type Ttimer_t = uintptr
  816. type Tclockid_t = int32
  817. type Tclock_t = int32
  818. type Tpid_t = int32
  819. type Tid_t = uint32
  820. type Tuid_t = uint32
  821. type Tgid_t = uint32
  822. type Tkey_t = int32
  823. type Tuseconds_t = uint32
  824. type Tpthread_t = uintptr
  825. type Tpthread_once_t = int32
  826. type Tpthread_key_t = uint32
  827. type Tpthread_spinlock_t = int32
  828. type Tpthread_mutexattr_t = struct {
  829. F__attr uint32
  830. }
  831. type Tpthread_condattr_t = struct {
  832. F__attr uint32
  833. }
  834. type Tpthread_barrierattr_t = struct {
  835. F__attr uint32
  836. }
  837. type Tpthread_rwlockattr_t = struct {
  838. F__attr [2]uint32
  839. }
  840. type Tpthread_attr_t = struct {
  841. F__u struct {
  842. F__vi [0][9]int32
  843. F__s [0][9]uint32
  844. F__i [9]int32
  845. }
  846. }
  847. type Tpthread_mutex_t = struct {
  848. F__u struct {
  849. F__vi [0][6]int32
  850. F__p [0][6]uintptr
  851. F__i [6]int32
  852. }
  853. F__ccgo_room int32
  854. }
  855. type Tpthread_cond_t = struct {
  856. F__u struct {
  857. F__vi [0][12]int32
  858. F__p [0][12]uintptr
  859. F__i [12]int32
  860. }
  861. }
  862. type Tpthread_rwlock_t = struct {
  863. F__u struct {
  864. F__vi [0][8]int32
  865. F__p [0][8]uintptr
  866. F__i [8]int32
  867. }
  868. }
  869. type Tpthread_barrier_t = struct {
  870. F__u struct {
  871. F__vi [0][5]int32
  872. F__p [0][5]uintptr
  873. F__i [5]int32
  874. }
  875. }
  876. type Tu_int8_t = uint8
  877. type Tu_int16_t = uint16
  878. type Tu_int32_t = uint32
  879. type Tcaddr_t = uintptr
  880. type Tu_char = uint8
  881. type Tu_short = uint16
  882. type Tushort = uint16
  883. type Tu_int = uint32
  884. type Tuint = uint32
  885. type Tu_long = uint32
  886. type Tulong = uint32
  887. type Tquad_t = int64
  888. type Tu_quad_t = uint64
  889. type Tuint16_t = uint16
  890. type Tuint32_t = uint32
  891. type Tuint64_t = uint64
  892. type Ttimeval = struct {
  893. Ftv_sec Ttime_t
  894. Ftv_usec Tsuseconds_t
  895. }
  896. type Ttimespec = struct {
  897. Ftv_sec Ttime_t
  898. Ftv_nsec int32
  899. F__ccgo12 uint32
  900. }
  901. type Tsigset_t = struct {
  902. F__bits [32]uint32
  903. }
  904. type t__sigset_t = Tsigset_t
  905. type Tfd_mask = uint32
  906. type Tfd_set = struct {
  907. Ffds_bits [32]uint32
  908. }
  909. type Tva_list = uintptr
  910. type Tintptr_t = int32
  911. type Talloc_func = uintptr
  912. type Tfree_func = uintptr
  913. type Tz_stream = struct {
  914. Fnext_in uintptr
  915. Favail_in TuInt
  916. Ftotal_in TuLong
  917. Fnext_out uintptr
  918. Favail_out TuInt
  919. Ftotal_out TuLong
  920. Fmsg uintptr
  921. Fstate uintptr
  922. Fzalloc Talloc_func
  923. Fzfree Tfree_func
  924. Fopaque Tvoidpf
  925. Fdata_type int32
  926. Fadler TuLong
  927. Freserved TuLong
  928. }
  929. type Tz_stream_s = Tz_stream
  930. type Tz_streamp = uintptr
  931. type Tgz_header = struct {
  932. Ftext int32
  933. Ftime TuLong
  934. Fxflags int32
  935. Fos int32
  936. Fextra uintptr
  937. Fextra_len TuInt
  938. Fextra_max TuInt
  939. Fname uintptr
  940. Fname_max TuInt
  941. Fcomment uintptr
  942. Fcomm_max TuInt
  943. Fhcrc int32
  944. Fdone int32
  945. }
  946. type Tgz_header_s = Tgz_header
  947. type Tgz_headerp = uintptr
  948. type Tin_func = uintptr
  949. type Tout_func = uintptr
  950. type TgzFile = uintptr
  951. type TgzFile_s = struct {
  952. Fhave uint32
  953. Fnext uintptr
  954. Fpos Toff_t
  955. }
  956. type Tlocale_t = uintptr
  957. type Tdiv_t = struct {
  958. Fquot int32
  959. Frem int32
  960. }
  961. type Tldiv_t = struct {
  962. Fquot int32
  963. Frem int32
  964. }
  965. type Tlldiv_t = struct {
  966. Fquot int64
  967. Frem int64
  968. }
  969. type Tuch = uint8
  970. type Tuchf = uint8
  971. type Tush = uint16
  972. type Tushf = uint16
  973. type Tulg = uint32
  974. /* Reverse the bytes in a 32-bit value */
  975. /* NMAX is the largest n such that 255n(n+1)/2 + (n+1)(BASE-1) <= 2^32-1 */
  976. /* use NO_DIVIDE if your processor does not do division in hardware --
  977. try it both ways to see which is faster */
  978. // C documentation
  979. //
  980. // /* ========================================================================= */
  981. func Xadler32_z(tls *libc.TLS, adler TuLong, buf uintptr, len1 Tz_size_t) (r TuLong) {
  982. var n, sum2, v3 uint32
  983. var v1, v5 Tz_size_t
  984. var v2, v6 uintptr
  985. _, _, _, _, _, _, _ = n, sum2, v1, v2, v3, v5, v6
  986. /* split Adler-32 into component sums */
  987. sum2 = adler >> libc.Int32FromInt32(16) & uint32(0xffff)
  988. adler &= uint32(0xffff)
  989. /* in case user likes doing a byte at a time, keep it fast */
  990. if len1 == uint32(1) {
  991. adler += uint32(*(*TBytef)(unsafe.Pointer(buf)))
  992. if adler >= uint32(65521) {
  993. adler -= uint32(65521)
  994. }
  995. sum2 += adler
  996. if sum2 >= uint32(65521) {
  997. sum2 -= uint32(65521)
  998. }
  999. return adler | sum2<<int32(16)
  1000. }
  1001. /* initial Adler-32 value (deferred check for len == 1 speed) */
  1002. if buf == uintptr(m_Z_NULL) {
  1003. return uint32(1)
  1004. }
  1005. /* in case short lengths are provided, keep it somewhat fast */
  1006. if len1 < uint32(16) {
  1007. for {
  1008. v1 = len1
  1009. len1--
  1010. if !(v1 != 0) {
  1011. break
  1012. }
  1013. v2 = buf
  1014. buf++
  1015. adler += uint32(*(*TBytef)(unsafe.Pointer(v2)))
  1016. sum2 += adler
  1017. }
  1018. if adler >= uint32(65521) {
  1019. adler -= uint32(65521)
  1020. }
  1021. sum2 %= uint32(65521) /* only added so many BASE's */
  1022. return adler | sum2<<int32(16)
  1023. }
  1024. /* do length NMAX blocks -- requires just one modulo operation */
  1025. for len1 >= uint32(m_NMAX) {
  1026. len1 -= uint32(m_NMAX)
  1027. n = libc.Uint32FromInt32(libc.Int32FromInt32(m_NMAX) / libc.Int32FromInt32(16)) /* NMAX is divisible by 16 */
  1028. for {
  1029. adler += uint32(*(*TBytef)(unsafe.Pointer(buf)))
  1030. sum2 += adler
  1031. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(1)))))
  1032. sum2 += adler
  1033. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(2)))))
  1034. sum2 += adler
  1035. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))))
  1036. sum2 += adler
  1037. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(4)))))
  1038. sum2 += adler
  1039. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(4)+libc.Int32FromInt32(1)))))
  1040. sum2 += adler
  1041. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(4)+libc.Int32FromInt32(2)))))
  1042. sum2 += adler
  1043. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(4)+libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))))
  1044. sum2 += adler
  1045. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + 8)))
  1046. sum2 += adler
  1047. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(1)))))
  1048. sum2 += adler
  1049. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(2)))))
  1050. sum2 += adler
  1051. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))))
  1052. sum2 += adler
  1053. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(4)))))
  1054. sum2 += adler
  1055. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(4)+libc.Int32FromInt32(1)))))
  1056. sum2 += adler
  1057. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(4)+libc.Int32FromInt32(2)))))
  1058. sum2 += adler
  1059. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(4)+libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))))
  1060. sum2 += adler /* 16 sums unrolled */
  1061. buf += uintptr(16)
  1062. goto _4
  1063. _4:
  1064. ;
  1065. n--
  1066. v3 = n
  1067. if !(v3 != 0) {
  1068. break
  1069. }
  1070. }
  1071. adler %= uint32(65521)
  1072. sum2 %= uint32(65521)
  1073. }
  1074. /* do remaining bytes (less than NMAX, still just one modulo) */
  1075. if len1 != 0 { /* avoid modulos if none remaining */
  1076. for len1 >= uint32(16) {
  1077. len1 -= uint32(16)
  1078. adler += uint32(*(*TBytef)(unsafe.Pointer(buf)))
  1079. sum2 += adler
  1080. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(1)))))
  1081. sum2 += adler
  1082. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(2)))))
  1083. sum2 += adler
  1084. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))))
  1085. sum2 += adler
  1086. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(4)))))
  1087. sum2 += adler
  1088. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(4)+libc.Int32FromInt32(1)))))
  1089. sum2 += adler
  1090. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(4)+libc.Int32FromInt32(2)))))
  1091. sum2 += adler
  1092. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(0)+libc.Int32FromInt32(4)+libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))))
  1093. sum2 += adler
  1094. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + 8)))
  1095. sum2 += adler
  1096. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(1)))))
  1097. sum2 += adler
  1098. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(2)))))
  1099. sum2 += adler
  1100. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))))
  1101. sum2 += adler
  1102. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(4)))))
  1103. sum2 += adler
  1104. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(4)+libc.Int32FromInt32(1)))))
  1105. sum2 += adler
  1106. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(4)+libc.Int32FromInt32(2)))))
  1107. sum2 += adler
  1108. adler += uint32(*(*TBytef)(unsafe.Pointer(buf + uintptr(libc.Int32FromInt32(8)+libc.Int32FromInt32(4)+libc.Int32FromInt32(2)+libc.Int32FromInt32(1)))))
  1109. sum2 += adler
  1110. buf += uintptr(16)
  1111. }
  1112. for {
  1113. v5 = len1
  1114. len1--
  1115. if !(v5 != 0) {
  1116. break
  1117. }
  1118. v6 = buf
  1119. buf++
  1120. adler += uint32(*(*TBytef)(unsafe.Pointer(v6)))
  1121. sum2 += adler
  1122. }
  1123. adler %= uint32(65521)
  1124. sum2 %= uint32(65521)
  1125. }
  1126. /* return recombined sums */
  1127. return adler | sum2<<int32(16)
  1128. }
  1129. // C documentation
  1130. //
  1131. // /* ========================================================================= */
  1132. func Xadler32(tls *libc.TLS, adler TuLong, buf uintptr, len1 TuInt) (r TuLong) {
  1133. return Xadler32_z(tls, adler, buf, len1)
  1134. }
  1135. // C documentation
  1136. //
  1137. // /* ========================================================================= */
  1138. func _adler32_combine_(tls *libc.TLS, adler1 TuLong, adler2 TuLong, len2 Toff_t) (r TuLong) {
  1139. var rem, sum1, sum2 uint32
  1140. _, _, _ = rem, sum1, sum2
  1141. /* for negative len, return invalid adler32 as a clue for debugging */
  1142. if len2 < 0 {
  1143. return uint32(0xffffffff)
  1144. }
  1145. /* the derivation of this formula is left as an exercise for the reader */
  1146. len2 %= libc.Int64FromUint32(65521) /* assumes len2 >= 0 */
  1147. rem = libc.Uint32FromInt64(len2)
  1148. sum1 = adler1 & uint32(0xffff)
  1149. sum2 = rem * sum1
  1150. sum2 %= uint32(65521)
  1151. sum1 += adler2&uint32(0xffff) + uint32(65521) - uint32(1)
  1152. sum2 += adler1>>libc.Int32FromInt32(16)&uint32(0xffff) + adler2>>libc.Int32FromInt32(16)&uint32(0xffff) + uint32(65521) - rem
  1153. if sum1 >= uint32(65521) {
  1154. sum1 -= uint32(65521)
  1155. }
  1156. if sum1 >= uint32(65521) {
  1157. sum1 -= uint32(65521)
  1158. }
  1159. if sum2 >= libc.Uint32FromUint32(65521)<<libc.Int32FromInt32(1) {
  1160. sum2 -= libc.Uint32FromUint32(65521) << libc.Int32FromInt32(1)
  1161. }
  1162. if sum2 >= uint32(65521) {
  1163. sum2 -= uint32(65521)
  1164. }
  1165. return sum1 | sum2<<int32(16)
  1166. }
  1167. // C documentation
  1168. //
  1169. // /* ========================================================================= */
  1170. func Xadler32_combine(tls *libc.TLS, adler1 TuLong, adler2 TuLong, len2 Toff_t) (r TuLong) {
  1171. return _adler32_combine_(tls, adler1, adler2, len2)
  1172. }
  1173. func Xadler32_combine64(tls *libc.TLS, adler1 TuLong, adler2 TuLong, len2 Toff_t) (r TuLong) {
  1174. return _adler32_combine_(tls, adler1, adler2, len2)
  1175. }
  1176. const m_N = 5
  1177. const m_POLY = 3988292384
  1178. /* Reverse the bytes in a 32-bit value */
  1179. /*
  1180. A CRC of a message is computed on N braids of words in the message, where
  1181. each word consists of W bytes (4 or 8). If N is 3, for example, then three
  1182. running sparse CRCs are calculated respectively on each braid, at these
  1183. indices in the array of words: 0, 3, 6, ..., 1, 4, 7, ..., and 2, 5, 8, ...
  1184. This is done starting at a word boundary, and continues until as many blocks
  1185. of N * W bytes as are available have been processed. The results are combined
  1186. into a single CRC at the end. For this code, N must be in the range 1..6 and
  1187. W must be 4 or 8. The upper limit on N can be increased if desired by adding
  1188. more #if blocks, extending the patterns apparent in the code. In addition,
  1189. crc32.h would need to be regenerated, if the maximum N value is increased.
  1190. N and W are chosen empirically by benchmarking the execution time on a given
  1191. processor. The choices for N and W below were based on testing on Intel Kaby
  1192. Lake i7, AMD Ryzen 7, ARM Cortex-A57, Sparc64-VII, PowerPC POWER9, and MIPS64
  1193. Octeon II processors. The Intel, AMD, and ARM processors were all fastest
  1194. with N=5, W=8. The Sparc, PowerPC, and MIPS64 were all fastest at N=5, W=4.
  1195. They were all tested with either gcc or clang, all using the -O3 optimization
  1196. level. Your mileage may vary.
  1197. */
  1198. /* Define N */
  1199. /*
  1200. z_crc_t must be at least 32 bits. z_word_t must be at least as long as
  1201. z_crc_t. It is assumed here that z_word_t is either 32 bits or 64 bits, and
  1202. that bytes are eight bits.
  1203. */
  1204. // C documentation
  1205. //
  1206. // /*
  1207. // Define W and the associated z_word_t type. If W is not defined, then a
  1208. // braided calculation is not used, and the associated tables and code are not
  1209. // compiled.
  1210. // */
  1211. type Tz_word_t = uint32
  1212. /* If available, use the ARM processor CRC32 instruction. */
  1213. // C documentation
  1214. //
  1215. // /*
  1216. // Swap the bytes in a z_word_t to convert between little and big endian. Any
  1217. // self-respecting compiler will optimize this to a single machine byte-swap
  1218. // instruction, if one is available. This assumes that word_t is either 32 bits
  1219. // or 64 bits.
  1220. // */
  1221. func _byte_swap(tls *libc.TLS, word Tz_word_t) (r Tz_word_t) {
  1222. return word&uint32(0xff000000)>>int32(24) | word&uint32(0xff0000)>>int32(8) | word&uint32(0xff00)<<int32(8) | word&uint32(0xff)<<int32(24)
  1223. }
  1224. var _crc_table = [256]Tz_crc_t{
  1225. 1: uint32(0x77073096),
  1226. 2: uint32(0xee0e612c),
  1227. 3: uint32(0x990951ba),
  1228. 4: uint32(0x076dc419),
  1229. 5: uint32(0x706af48f),
  1230. 6: uint32(0xe963a535),
  1231. 7: uint32(0x9e6495a3),
  1232. 8: uint32(0x0edb8832),
  1233. 9: uint32(0x79dcb8a4),
  1234. 10: uint32(0xe0d5e91e),
  1235. 11: uint32(0x97d2d988),
  1236. 12: uint32(0x09b64c2b),
  1237. 13: uint32(0x7eb17cbd),
  1238. 14: uint32(0xe7b82d07),
  1239. 15: uint32(0x90bf1d91),
  1240. 16: uint32(0x1db71064),
  1241. 17: uint32(0x6ab020f2),
  1242. 18: uint32(0xf3b97148),
  1243. 19: uint32(0x84be41de),
  1244. 20: uint32(0x1adad47d),
  1245. 21: uint32(0x6ddde4eb),
  1246. 22: uint32(0xf4d4b551),
  1247. 23: uint32(0x83d385c7),
  1248. 24: uint32(0x136c9856),
  1249. 25: uint32(0x646ba8c0),
  1250. 26: uint32(0xfd62f97a),
  1251. 27: uint32(0x8a65c9ec),
  1252. 28: uint32(0x14015c4f),
  1253. 29: uint32(0x63066cd9),
  1254. 30: uint32(0xfa0f3d63),
  1255. 31: uint32(0x8d080df5),
  1256. 32: uint32(0x3b6e20c8),
  1257. 33: uint32(0x4c69105e),
  1258. 34: uint32(0xd56041e4),
  1259. 35: uint32(0xa2677172),
  1260. 36: uint32(0x3c03e4d1),
  1261. 37: uint32(0x4b04d447),
  1262. 38: uint32(0xd20d85fd),
  1263. 39: uint32(0xa50ab56b),
  1264. 40: uint32(0x35b5a8fa),
  1265. 41: uint32(0x42b2986c),
  1266. 42: uint32(0xdbbbc9d6),
  1267. 43: uint32(0xacbcf940),
  1268. 44: uint32(0x32d86ce3),
  1269. 45: uint32(0x45df5c75),
  1270. 46: uint32(0xdcd60dcf),
  1271. 47: uint32(0xabd13d59),
  1272. 48: uint32(0x26d930ac),
  1273. 49: uint32(0x51de003a),
  1274. 50: uint32(0xc8d75180),
  1275. 51: uint32(0xbfd06116),
  1276. 52: uint32(0x21b4f4b5),
  1277. 53: uint32(0x56b3c423),
  1278. 54: uint32(0xcfba9599),
  1279. 55: uint32(0xb8bda50f),
  1280. 56: uint32(0x2802b89e),
  1281. 57: uint32(0x5f058808),
  1282. 58: uint32(0xc60cd9b2),
  1283. 59: uint32(0xb10be924),
  1284. 60: uint32(0x2f6f7c87),
  1285. 61: uint32(0x58684c11),
  1286. 62: uint32(0xc1611dab),
  1287. 63: uint32(0xb6662d3d),
  1288. 64: uint32(0x76dc4190),
  1289. 65: uint32(0x01db7106),
  1290. 66: uint32(0x98d220bc),
  1291. 67: uint32(0xefd5102a),
  1292. 68: uint32(0x71b18589),
  1293. 69: uint32(0x06b6b51f),
  1294. 70: uint32(0x9fbfe4a5),
  1295. 71: uint32(0xe8b8d433),
  1296. 72: uint32(0x7807c9a2),
  1297. 73: uint32(0x0f00f934),
  1298. 74: uint32(0x9609a88e),
  1299. 75: uint32(0xe10e9818),
  1300. 76: uint32(0x7f6a0dbb),
  1301. 77: uint32(0x086d3d2d),
  1302. 78: uint32(0x91646c97),
  1303. 79: uint32(0xe6635c01),
  1304. 80: uint32(0x6b6b51f4),
  1305. 81: uint32(0x1c6c6162),
  1306. 82: uint32(0x856530d8),
  1307. 83: uint32(0xf262004e),
  1308. 84: uint32(0x6c0695ed),
  1309. 85: uint32(0x1b01a57b),
  1310. 86: uint32(0x8208f4c1),
  1311. 87: uint32(0xf50fc457),
  1312. 88: uint32(0x65b0d9c6),
  1313. 89: uint32(0x12b7e950),
  1314. 90: uint32(0x8bbeb8ea),
  1315. 91: uint32(0xfcb9887c),
  1316. 92: uint32(0x62dd1ddf),
  1317. 93: uint32(0x15da2d49),
  1318. 94: uint32(0x8cd37cf3),
  1319. 95: uint32(0xfbd44c65),
  1320. 96: uint32(0x4db26158),
  1321. 97: uint32(0x3ab551ce),
  1322. 98: uint32(0xa3bc0074),
  1323. 99: uint32(0xd4bb30e2),
  1324. 100: uint32(0x4adfa541),
  1325. 101: uint32(0x3dd895d7),
  1326. 102: uint32(0xa4d1c46d),
  1327. 103: uint32(0xd3d6f4fb),
  1328. 104: uint32(0x4369e96a),
  1329. 105: uint32(0x346ed9fc),
  1330. 106: uint32(0xad678846),
  1331. 107: uint32(0xda60b8d0),
  1332. 108: uint32(0x44042d73),
  1333. 109: uint32(0x33031de5),
  1334. 110: uint32(0xaa0a4c5f),
  1335. 111: uint32(0xdd0d7cc9),
  1336. 112: uint32(0x5005713c),
  1337. 113: uint32(0x270241aa),
  1338. 114: uint32(0xbe0b1010),
  1339. 115: uint32(0xc90c2086),
  1340. 116: uint32(0x5768b525),
  1341. 117: uint32(0x206f85b3),
  1342. 118: uint32(0xb966d409),
  1343. 119: uint32(0xce61e49f),
  1344. 120: uint32(0x5edef90e),
  1345. 121: uint32(0x29d9c998),
  1346. 122: uint32(0xb0d09822),
  1347. 123: uint32(0xc7d7a8b4),
  1348. 124: uint32(0x59b33d17),
  1349. 125: uint32(0x2eb40d81),
  1350. 126: uint32(0xb7bd5c3b),
  1351. 127: uint32(0xc0ba6cad),
  1352. 128: uint32(0xedb88320),
  1353. 129: uint32(0x9abfb3b6),
  1354. 130: uint32(0x03b6e20c),
  1355. 131: uint32(0x74b1d29a),
  1356. 132: uint32(0xead54739),
  1357. 133: uint32(0x9dd277af),
  1358. 134: uint32(0x04db2615),
  1359. 135: uint32(0x73dc1683),
  1360. 136: uint32(0xe3630b12),
  1361. 137: uint32(0x94643b84),
  1362. 138: uint32(0x0d6d6a3e),
  1363. 139: uint32(0x7a6a5aa8),
  1364. 140: uint32(0xe40ecf0b),
  1365. 141: uint32(0x9309ff9d),
  1366. 142: uint32(0x0a00ae27),
  1367. 143: uint32(0x7d079eb1),
  1368. 144: uint32(0xf00f9344),
  1369. 145: uint32(0x8708a3d2),
  1370. 146: uint32(0x1e01f268),
  1371. 147: uint32(0x6906c2fe),
  1372. 148: uint32(0xf762575d),
  1373. 149: uint32(0x806567cb),
  1374. 150: uint32(0x196c3671),
  1375. 151: uint32(0x6e6b06e7),
  1376. 152: uint32(0xfed41b76),
  1377. 153: uint32(0x89d32be0),
  1378. 154: uint32(0x10da7a5a),
  1379. 155: uint32(0x67dd4acc),
  1380. 156: uint32(0xf9b9df6f),
  1381. 157: uint32(0x8ebeeff9),
  1382. 158: uint32(0x17b7be43),
  1383. 159: uint32(0x60b08ed5),
  1384. 160: uint32(0xd6d6a3e8),
  1385. 161: uint32(0xa1d1937e),
  1386. 162: uint32(0x38d8c2c4),
  1387. 163: uint32(0x4fdff252),
  1388. 164: uint32(0xd1bb67f1),
  1389. 165: uint32(0xa6bc5767),
  1390. 166: uint32(0x3fb506dd),
  1391. 167: uint32(0x48b2364b),
  1392. 168: uint32(0xd80d2bda),
  1393. 169: uint32(0xaf0a1b4c),
  1394. 170: uint32(0x36034af6),
  1395. 171: uint32(0x41047a60),
  1396. 172: uint32(0xdf60efc3),
  1397. 173: uint32(0xa867df55),
  1398. 174: uint32(0x316e8eef),
  1399. 175: uint32(0x4669be79),
  1400. 176: uint32(0xcb61b38c),
  1401. 177: uint32(0xbc66831a),
  1402. 178: uint32(0x256fd2a0),
  1403. 179: uint32(0x5268e236),
  1404. 180: uint32(0xcc0c7795),
  1405. 181: uint32(0xbb0b4703),
  1406. 182: uint32(0x220216b9),
  1407. 183: uint32(0x5505262f),
  1408. 184: uint32(0xc5ba3bbe),
  1409. 185: uint32(0xb2bd0b28),
  1410. 186: uint32(0x2bb45a92),
  1411. 187: uint32(0x5cb36a04),
  1412. 188: uint32(0xc2d7ffa7),
  1413. 189: uint32(0xb5d0cf31),
  1414. 190: uint32(0x2cd99e8b),
  1415. 191: uint32(0x5bdeae1d),
  1416. 192: uint32(0x9b64c2b0),
  1417. 193: uint32(0xec63f226),
  1418. 194: uint32(0x756aa39c),
  1419. 195: uint32(0x026d930a),
  1420. 196: uint32(0x9c0906a9),
  1421. 197: uint32(0xeb0e363f),
  1422. 198: uint32(0x72076785),
  1423. 199: uint32(0x05005713),
  1424. 200: uint32(0x95bf4a82),
  1425. 201: uint32(0xe2b87a14),
  1426. 202: uint32(0x7bb12bae),
  1427. 203: uint32(0x0cb61b38),
  1428. 204: uint32(0x92d28e9b),
  1429. 205: uint32(0xe5d5be0d),
  1430. 206: uint32(0x7cdcefb7),
  1431. 207: uint32(0x0bdbdf21),
  1432. 208: uint32(0x86d3d2d4),
  1433. 209: uint32(0xf1d4e242),
  1434. 210: uint32(0x68ddb3f8),
  1435. 211: uint32(0x1fda836e),
  1436. 212: uint32(0x81be16cd),
  1437. 213: uint32(0xf6b9265b),
  1438. 214: uint32(0x6fb077e1),
  1439. 215: uint32(0x18b74777),
  1440. 216: uint32(0x88085ae6),
  1441. 217: uint32(0xff0f6a70),
  1442. 218: uint32(0x66063bca),
  1443. 219: uint32(0x11010b5c),
  1444. 220: uint32(0x8f659eff),
  1445. 221: uint32(0xf862ae69),
  1446. 222: uint32(0x616bffd3),
  1447. 223: uint32(0x166ccf45),
  1448. 224: uint32(0xa00ae278),
  1449. 225: uint32(0xd70dd2ee),
  1450. 226: uint32(0x4e048354),
  1451. 227: uint32(0x3903b3c2),
  1452. 228: uint32(0xa7672661),
  1453. 229: uint32(0xd06016f7),
  1454. 230: uint32(0x4969474d),
  1455. 231: uint32(0x3e6e77db),
  1456. 232: uint32(0xaed16a4a),
  1457. 233: uint32(0xd9d65adc),
  1458. 234: uint32(0x40df0b66),
  1459. 235: uint32(0x37d83bf0),
  1460. 236: uint32(0xa9bcae53),
  1461. 237: uint32(0xdebb9ec5),
  1462. 238: uint32(0x47b2cf7f),
  1463. 239: uint32(0x30b5ffe9),
  1464. 240: uint32(0xbdbdf21c),
  1465. 241: uint32(0xcabac28a),
  1466. 242: uint32(0x53b39330),
  1467. 243: uint32(0x24b4a3a6),
  1468. 244: uint32(0xbad03605),
  1469. 245: uint32(0xcdd70693),
  1470. 246: uint32(0x54de5729),
  1471. 247: uint32(0x23d967bf),
  1472. 248: uint32(0xb3667a2e),
  1473. 249: uint32(0xc4614ab8),
  1474. 250: uint32(0x5d681b02),
  1475. 251: uint32(0x2a6f2b94),
  1476. 252: uint32(0xb40bbe37),
  1477. 253: uint32(0xc30c8ea1),
  1478. 254: uint32(0x5a05df1b),
  1479. 255: uint32(0x2d02ef8d),
  1480. }
  1481. var _crc_big_table = [256]Tz_word_t{
  1482. 1: uint32(0x96300777),
  1483. 2: uint32(0x2c610eee),
  1484. 3: uint32(0xba510999),
  1485. 4: uint32(0x19c46d07),
  1486. 5: uint32(0x8ff46a70),
  1487. 6: uint32(0x35a563e9),
  1488. 7: uint32(0xa395649e),
  1489. 8: uint32(0x3288db0e),
  1490. 9: uint32(0xa4b8dc79),
  1491. 10: uint32(0x1ee9d5e0),
  1492. 11: uint32(0x88d9d297),
  1493. 12: uint32(0x2b4cb609),
  1494. 13: uint32(0xbd7cb17e),
  1495. 14: uint32(0x072db8e7),
  1496. 15: uint32(0x911dbf90),
  1497. 16: uint32(0x6410b71d),
  1498. 17: uint32(0xf220b06a),
  1499. 18: uint32(0x4871b9f3),
  1500. 19: uint32(0xde41be84),
  1501. 20: uint32(0x7dd4da1a),
  1502. 21: uint32(0xebe4dd6d),
  1503. 22: uint32(0x51b5d4f4),
  1504. 23: uint32(0xc785d383),
  1505. 24: uint32(0x56986c13),
  1506. 25: uint32(0xc0a86b64),
  1507. 26: uint32(0x7af962fd),
  1508. 27: uint32(0xecc9658a),
  1509. 28: uint32(0x4f5c0114),
  1510. 29: uint32(0xd96c0663),
  1511. 30: uint32(0x633d0ffa),
  1512. 31: uint32(0xf50d088d),
  1513. 32: uint32(0xc8206e3b),
  1514. 33: uint32(0x5e10694c),
  1515. 34: uint32(0xe44160d5),
  1516. 35: uint32(0x727167a2),
  1517. 36: uint32(0xd1e4033c),
  1518. 37: uint32(0x47d4044b),
  1519. 38: uint32(0xfd850dd2),
  1520. 39: uint32(0x6bb50aa5),
  1521. 40: uint32(0xfaa8b535),
  1522. 41: uint32(0x6c98b242),
  1523. 42: uint32(0xd6c9bbdb),
  1524. 43: uint32(0x40f9bcac),
  1525. 44: uint32(0xe36cd832),
  1526. 45: uint32(0x755cdf45),
  1527. 46: uint32(0xcf0dd6dc),
  1528. 47: uint32(0x593dd1ab),
  1529. 48: uint32(0xac30d926),
  1530. 49: uint32(0x3a00de51),
  1531. 50: uint32(0x8051d7c8),
  1532. 51: uint32(0x1661d0bf),
  1533. 52: uint32(0xb5f4b421),
  1534. 53: uint32(0x23c4b356),
  1535. 54: uint32(0x9995bacf),
  1536. 55: uint32(0x0fa5bdb8),
  1537. 56: uint32(0x9eb80228),
  1538. 57: uint32(0x0888055f),
  1539. 58: uint32(0xb2d90cc6),
  1540. 59: uint32(0x24e90bb1),
  1541. 60: uint32(0x877c6f2f),
  1542. 61: uint32(0x114c6858),
  1543. 62: uint32(0xab1d61c1),
  1544. 63: uint32(0x3d2d66b6),
  1545. 64: uint32(0x9041dc76),
  1546. 65: uint32(0x0671db01),
  1547. 66: uint32(0xbc20d298),
  1548. 67: uint32(0x2a10d5ef),
  1549. 68: uint32(0x8985b171),
  1550. 69: uint32(0x1fb5b606),
  1551. 70: uint32(0xa5e4bf9f),
  1552. 71: uint32(0x33d4b8e8),
  1553. 72: uint32(0xa2c90778),
  1554. 73: uint32(0x34f9000f),
  1555. 74: uint32(0x8ea80996),
  1556. 75: uint32(0x18980ee1),
  1557. 76: uint32(0xbb0d6a7f),
  1558. 77: uint32(0x2d3d6d08),
  1559. 78: uint32(0x976c6491),
  1560. 79: uint32(0x015c63e6),
  1561. 80: uint32(0xf4516b6b),
  1562. 81: uint32(0x62616c1c),
  1563. 82: uint32(0xd8306585),
  1564. 83: uint32(0x4e0062f2),
  1565. 84: uint32(0xed95066c),
  1566. 85: uint32(0x7ba5011b),
  1567. 86: uint32(0xc1f40882),
  1568. 87: uint32(0x57c40ff5),
  1569. 88: uint32(0xc6d9b065),
  1570. 89: uint32(0x50e9b712),
  1571. 90: uint32(0xeab8be8b),
  1572. 91: uint32(0x7c88b9fc),
  1573. 92: uint32(0xdf1ddd62),
  1574. 93: uint32(0x492dda15),
  1575. 94: uint32(0xf37cd38c),
  1576. 95: uint32(0x654cd4fb),
  1577. 96: uint32(0x5861b24d),
  1578. 97: uint32(0xce51b53a),
  1579. 98: uint32(0x7400bca3),
  1580. 99: uint32(0xe230bbd4),
  1581. 100: uint32(0x41a5df4a),
  1582. 101: uint32(0xd795d83d),
  1583. 102: uint32(0x6dc4d1a4),
  1584. 103: uint32(0xfbf4d6d3),
  1585. 104: uint32(0x6ae96943),
  1586. 105: uint32(0xfcd96e34),
  1587. 106: uint32(0x468867ad),
  1588. 107: uint32(0xd0b860da),
  1589. 108: uint32(0x732d0444),
  1590. 109: uint32(0xe51d0333),
  1591. 110: uint32(0x5f4c0aaa),
  1592. 111: uint32(0xc97c0ddd),
  1593. 112: uint32(0x3c710550),
  1594. 113: uint32(0xaa410227),
  1595. 114: uint32(0x10100bbe),
  1596. 115: uint32(0x86200cc9),
  1597. 116: uint32(0x25b56857),
  1598. 117: uint32(0xb3856f20),
  1599. 118: uint32(0x09d466b9),
  1600. 119: uint32(0x9fe461ce),
  1601. 120: uint32(0x0ef9de5e),
  1602. 121: uint32(0x98c9d929),
  1603. 122: uint32(0x2298d0b0),
  1604. 123: uint32(0xb4a8d7c7),
  1605. 124: uint32(0x173db359),
  1606. 125: uint32(0x810db42e),
  1607. 126: uint32(0x3b5cbdb7),
  1608. 127: uint32(0xad6cbac0),
  1609. 128: uint32(0x2083b8ed),
  1610. 129: uint32(0xb6b3bf9a),
  1611. 130: uint32(0x0ce2b603),
  1612. 131: uint32(0x9ad2b174),
  1613. 132: uint32(0x3947d5ea),
  1614. 133: uint32(0xaf77d29d),
  1615. 134: uint32(0x1526db04),
  1616. 135: uint32(0x8316dc73),
  1617. 136: uint32(0x120b63e3),
  1618. 137: uint32(0x843b6494),
  1619. 138: uint32(0x3e6a6d0d),
  1620. 139: uint32(0xa85a6a7a),
  1621. 140: uint32(0x0bcf0ee4),
  1622. 141: uint32(0x9dff0993),
  1623. 142: uint32(0x27ae000a),
  1624. 143: uint32(0xb19e077d),
  1625. 144: uint32(0x44930ff0),
  1626. 145: uint32(0xd2a30887),
  1627. 146: uint32(0x68f2011e),
  1628. 147: uint32(0xfec20669),
  1629. 148: uint32(0x5d5762f7),
  1630. 149: uint32(0xcb676580),
  1631. 150: uint32(0x71366c19),
  1632. 151: uint32(0xe7066b6e),
  1633. 152: uint32(0x761bd4fe),
  1634. 153: uint32(0xe02bd389),
  1635. 154: uint32(0x5a7ada10),
  1636. 155: uint32(0xcc4add67),
  1637. 156: uint32(0x6fdfb9f9),
  1638. 157: uint32(0xf9efbe8e),
  1639. 158: uint32(0x43beb717),
  1640. 159: uint32(0xd58eb060),
  1641. 160: uint32(0xe8a3d6d6),
  1642. 161: uint32(0x7e93d1a1),
  1643. 162: uint32(0xc4c2d838),
  1644. 163: uint32(0x52f2df4f),
  1645. 164: uint32(0xf167bbd1),
  1646. 165: uint32(0x6757bca6),
  1647. 166: uint32(0xdd06b53f),
  1648. 167: uint32(0x4b36b248),
  1649. 168: uint32(0xda2b0dd8),
  1650. 169: uint32(0x4c1b0aaf),
  1651. 170: uint32(0xf64a0336),
  1652. 171: uint32(0x607a0441),
  1653. 172: uint32(0xc3ef60df),
  1654. 173: uint32(0x55df67a8),
  1655. 174: uint32(0xef8e6e31),
  1656. 175: uint32(0x79be6946),
  1657. 176: uint32(0x8cb361cb),
  1658. 177: uint32(0x1a8366bc),
  1659. 178: uint32(0xa0d26f25),
  1660. 179: uint32(0x36e26852),
  1661. 180: uint32(0x95770ccc),
  1662. 181: uint32(0x03470bbb),
  1663. 182: uint32(0xb9160222),
  1664. 183: uint32(0x2f260555),
  1665. 184: uint32(0xbe3bbac5),
  1666. 185: uint32(0x280bbdb2),
  1667. 186: uint32(0x925ab42b),
  1668. 187: uint32(0x046ab35c),
  1669. 188: uint32(0xa7ffd7c2),
  1670. 189: uint32(0x31cfd0b5),
  1671. 190: uint32(0x8b9ed92c),
  1672. 191: uint32(0x1daede5b),
  1673. 192: uint32(0xb0c2649b),
  1674. 193: uint32(0x26f263ec),
  1675. 194: uint32(0x9ca36a75),
  1676. 195: uint32(0x0a936d02),
  1677. 196: uint32(0xa906099c),
  1678. 197: uint32(0x3f360eeb),
  1679. 198: uint32(0x85670772),
  1680. 199: uint32(0x13570005),
  1681. 200: uint32(0x824abf95),
  1682. 201: uint32(0x147ab8e2),
  1683. 202: uint32(0xae2bb17b),
  1684. 203: uint32(0x381bb60c),
  1685. 204: uint32(0x9b8ed292),
  1686. 205: uint32(0x0dbed5e5),
  1687. 206: uint32(0xb7efdc7c),
  1688. 207: uint32(0x21dfdb0b),
  1689. 208: uint32(0xd4d2d386),
  1690. 209: uint32(0x42e2d4f1),
  1691. 210: uint32(0xf8b3dd68),
  1692. 211: uint32(0x6e83da1f),
  1693. 212: uint32(0xcd16be81),
  1694. 213: uint32(0x5b26b9f6),
  1695. 214: uint32(0xe177b06f),
  1696. 215: uint32(0x7747b718),
  1697. 216: uint32(0xe65a0888),
  1698. 217: uint32(0x706a0fff),
  1699. 218: uint32(0xca3b0666),
  1700. 219: uint32(0x5c0b0111),
  1701. 220: uint32(0xff9e658f),
  1702. 221: uint32(0x69ae62f8),
  1703. 222: uint32(0xd3ff6b61),
  1704. 223: uint32(0x45cf6c16),
  1705. 224: uint32(0x78e20aa0),
  1706. 225: uint32(0xeed20dd7),
  1707. 226: uint32(0x5483044e),
  1708. 227: uint32(0xc2b30339),
  1709. 228: uint32(0x612667a7),
  1710. 229: uint32(0xf71660d0),
  1711. 230: uint32(0x4d476949),
  1712. 231: uint32(0xdb776e3e),
  1713. 232: uint32(0x4a6ad1ae),
  1714. 233: uint32(0xdc5ad6d9),
  1715. 234: uint32(0x660bdf40),
  1716. 235: uint32(0xf03bd837),
  1717. 236: uint32(0x53aebca9),
  1718. 237: uint32(0xc59ebbde),
  1719. 238: uint32(0x7fcfb247),
  1720. 239: uint32(0xe9ffb530),
  1721. 240: uint32(0x1cf2bdbd),
  1722. 241: uint32(0x8ac2baca),
  1723. 242: uint32(0x3093b353),
  1724. 243: uint32(0xa6a3b424),
  1725. 244: uint32(0x0536d0ba),
  1726. 245: uint32(0x9306d7cd),
  1727. 246: uint32(0x2957de54),
  1728. 247: uint32(0xbf67d923),
  1729. 248: uint32(0x2e7a66b3),
  1730. 249: uint32(0xb84a61c4),
  1731. 250: uint32(0x021b685d),
  1732. 251: uint32(0x942b6f2a),
  1733. 252: uint32(0x37be0bb4),
  1734. 253: uint32(0xa18e0cc3),
  1735. 254: uint32(0x1bdf055a),
  1736. 255: uint32(0x8def022d),
  1737. }
  1738. var _crc_braid_table = [4][256]Tz_crc_t{
  1739. 0: {
  1740. 1: uint32(0x65673b46),
  1741. 2: uint32(0xcace768c),
  1742. 3: uint32(0xafa94dca),
  1743. 4: uint32(0x4eedeb59),
  1744. 5: uint32(0x2b8ad01f),
  1745. 6: uint32(0x84239dd5),
  1746. 7: uint32(0xe144a693),
  1747. 8: uint32(0x9ddbd6b2),
  1748. 9: uint32(0xf8bcedf4),
  1749. 10: uint32(0x5715a03e),
  1750. 11: uint32(0x32729b78),
  1751. 12: uint32(0xd3363deb),
  1752. 13: uint32(0xb65106ad),
  1753. 14: uint32(0x19f84b67),
  1754. 15: uint32(0x7c9f7021),
  1755. 16: uint32(0xe0c6ab25),
  1756. 17: uint32(0x85a19063),
  1757. 18: uint32(0x2a08dda9),
  1758. 19: uint32(0x4f6fe6ef),
  1759. 20: uint32(0xae2b407c),
  1760. 21: uint32(0xcb4c7b3a),
  1761. 22: uint32(0x64e536f0),
  1762. 23: uint32(0x01820db6),
  1763. 24: uint32(0x7d1d7d97),
  1764. 25: uint32(0x187a46d1),
  1765. 26: uint32(0xb7d30b1b),
  1766. 27: uint32(0xd2b4305d),
  1767. 28: uint32(0x33f096ce),
  1768. 29: uint32(0x5697ad88),
  1769. 30: uint32(0xf93ee042),
  1770. 31: uint32(0x9c59db04),
  1771. 32: uint32(0x1afc500b),
  1772. 33: uint32(0x7f9b6b4d),
  1773. 34: uint32(0xd0322687),
  1774. 35: uint32(0xb5551dc1),
  1775. 36: uint32(0x5411bb52),
  1776. 37: uint32(0x31768014),
  1777. 38: uint32(0x9edfcdde),
  1778. 39: uint32(0xfbb8f698),
  1779. 40: uint32(0x872786b9),
  1780. 41: uint32(0xe240bdff),
  1781. 42: uint32(0x4de9f035),
  1782. 43: uint32(0x288ecb73),
  1783. 44: uint32(0xc9ca6de0),
  1784. 45: uint32(0xacad56a6),
  1785. 46: uint32(0x03041b6c),
  1786. 47: uint32(0x6663202a),
  1787. 48: uint32(0xfa3afb2e),
  1788. 49: uint32(0x9f5dc068),
  1789. 50: uint32(0x30f48da2),
  1790. 51: uint32(0x5593b6e4),
  1791. 52: uint32(0xb4d71077),
  1792. 53: uint32(0xd1b02b31),
  1793. 54: uint32(0x7e1966fb),
  1794. 55: uint32(0x1b7e5dbd),
  1795. 56: uint32(0x67e12d9c),
  1796. 57: uint32(0x028616da),
  1797. 58: uint32(0xad2f5b10),
  1798. 59: uint32(0xc8486056),
  1799. 60: uint32(0x290cc6c5),
  1800. 61: uint32(0x4c6bfd83),
  1801. 62: uint32(0xe3c2b049),
  1802. 63: uint32(0x86a58b0f),
  1803. 64: uint32(0x35f8a016),
  1804. 65: uint32(0x509f9b50),
  1805. 66: uint32(0xff36d69a),
  1806. 67: uint32(0x9a51eddc),
  1807. 68: uint32(0x7b154b4f),
  1808. 69: uint32(0x1e727009),
  1809. 70: uint32(0xb1db3dc3),
  1810. 71: uint32(0xd4bc0685),
  1811. 72: uint32(0xa82376a4),
  1812. 73: uint32(0xcd444de2),
  1813. 74: uint32(0x62ed0028),
  1814. 75: uint32(0x078a3b6e),
  1815. 76: uint32(0xe6ce9dfd),
  1816. 77: uint32(0x83a9a6bb),
  1817. 78: uint32(0x2c00eb71),
  1818. 79: uint32(0x4967d037),
  1819. 80: uint32(0xd53e0b33),
  1820. 81: uint32(0xb0593075),
  1821. 82: uint32(0x1ff07dbf),
  1822. 83: uint32(0x7a9746f9),
  1823. 84: uint32(0x9bd3e06a),
  1824. 85: uint32(0xfeb4db2c),
  1825. 86: uint32(0x511d96e6),
  1826. 87: uint32(0x347aada0),
  1827. 88: uint32(0x48e5dd81),
  1828. 89: uint32(0x2d82e6c7),
  1829. 90: uint32(0x822bab0d),
  1830. 91: uint32(0xe74c904b),
  1831. 92: uint32(0x060836d8),
  1832. 93: uint32(0x636f0d9e),
  1833. 94: uint32(0xccc64054),
  1834. 95: uint32(0xa9a17b12),
  1835. 96: uint32(0x2f04f01d),
  1836. 97: uint32(0x4a63cb5b),
  1837. 98: uint32(0xe5ca8691),
  1838. 99: uint32(0x80adbdd7),
  1839. 100: uint32(0x61e91b44),
  1840. 101: uint32(0x048e2002),
  1841. 102: uint32(0xab276dc8),
  1842. 103: uint32(0xce40568e),
  1843. 104: uint32(0xb2df26af),
  1844. 105: uint32(0xd7b81de9),
  1845. 106: uint32(0x78115023),
  1846. 107: uint32(0x1d766b65),
  1847. 108: uint32(0xfc32cdf6),
  1848. 109: uint32(0x9955f6b0),
  1849. 110: uint32(0x36fcbb7a),
  1850. 111: uint32(0x539b803c),
  1851. 112: uint32(0xcfc25b38),
  1852. 113: uint32(0xaaa5607e),
  1853. 114: uint32(0x050c2db4),
  1854. 115: uint32(0x606b16f2),
  1855. 116: uint32(0x812fb061),
  1856. 117: uint32(0xe4488b27),
  1857. 118: uint32(0x4be1c6ed),
  1858. 119: uint32(0x2e86fdab),
  1859. 120: uint32(0x52198d8a),
  1860. 121: uint32(0x377eb6cc),
  1861. 122: uint32(0x98d7fb06),
  1862. 123: uint32(0xfdb0c040),
  1863. 124: uint32(0x1cf466d3),
  1864. 125: uint32(0x79935d95),
  1865. 126: uint32(0xd63a105f),
  1866. 127: uint32(0xb35d2b19),
  1867. 128: uint32(0x6bf1402c),
  1868. 129: uint32(0x0e967b6a),
  1869. 130: uint32(0xa13f36a0),
  1870. 131: uint32(0xc4580de6),
  1871. 132: uint32(0x251cab75),
  1872. 133: uint32(0x407b9033),
  1873. 134: uint32(0xefd2ddf9),
  1874. 135: uint32(0x8ab5e6bf),
  1875. 136: uint32(0xf62a969e),
  1876. 137: uint32(0x934dadd8),
  1877. 138: uint32(0x3ce4e012),
  1878. 139: uint32(0x5983db54),
  1879. 140: uint32(0xb8c77dc7),
  1880. 141: uint32(0xdda04681),
  1881. 142: uint32(0x72090b4b),
  1882. 143: uint32(0x176e300d),
  1883. 144: uint32(0x8b37eb09),
  1884. 145: uint32(0xee50d04f),
  1885. 146: uint32(0x41f99d85),
  1886. 147: uint32(0x249ea6c3),
  1887. 148: uint32(0xc5da0050),
  1888. 149: uint32(0xa0bd3b16),
  1889. 150: uint32(0x0f1476dc),
  1890. 151: uint32(0x6a734d9a),
  1891. 152: uint32(0x16ec3dbb),
  1892. 153: uint32(0x738b06fd),
  1893. 154: uint32(0xdc224b37),
  1894. 155: uint32(0xb9457071),
  1895. 156: uint32(0x5801d6e2),
  1896. 157: uint32(0x3d66eda4),
  1897. 158: uint32(0x92cfa06e),
  1898. 159: uint32(0xf7a89b28),
  1899. 160: uint32(0x710d1027),
  1900. 161: uint32(0x146a2b61),
  1901. 162: uint32(0xbbc366ab),
  1902. 163: uint32(0xdea45ded),
  1903. 164: uint32(0x3fe0fb7e),
  1904. 165: uint32(0x5a87c038),
  1905. 166: uint32(0xf52e8df2),
  1906. 167: uint32(0x9049b6b4),
  1907. 168: uint32(0xecd6c695),
  1908. 169: uint32(0x89b1fdd3),
  1909. 170: uint32(0x2618b019),
  1910. 171: uint32(0x437f8b5f),
  1911. 172: uint32(0xa23b2dcc),
  1912. 173: uint32(0xc75c168a),
  1913. 174: uint32(0x68f55b40),
  1914. 175: uint32(0x0d926006),
  1915. 176: uint32(0x91cbbb02),
  1916. 177: uint32(0xf4ac8044),
  1917. 178: uint32(0x5b05cd8e),
  1918. 179: uint32(0x3e62f6c8),
  1919. 180: uint32(0xdf26505b),
  1920. 181: uint32(0xba416b1d),
  1921. 182: uint32(0x15e826d7),
  1922. 183: uint32(0x708f1d91),
  1923. 184: uint32(0x0c106db0),
  1924. 185: uint32(0x697756f6),
  1925. 186: uint32(0xc6de1b3c),
  1926. 187: uint32(0xa3b9207a),
  1927. 188: uint32(0x42fd86e9),
  1928. 189: uint32(0x279abdaf),
  1929. 190: uint32(0x8833f065),
  1930. 191: uint32(0xed54cb23),
  1931. 192: uint32(0x5e09e03a),
  1932. 193: uint32(0x3b6edb7c),
  1933. 194: uint32(0x94c796b6),
  1934. 195: uint32(0xf1a0adf0),
  1935. 196: uint32(0x10e40b63),
  1936. 197: uint32(0x75833025),
  1937. 198: uint32(0xda2a7def),
  1938. 199: uint32(0xbf4d46a9),
  1939. 200: uint32(0xc3d23688),
  1940. 201: uint32(0xa6b50dce),
  1941. 202: uint32(0x091c4004),
  1942. 203: uint32(0x6c7b7b42),
  1943. 204: uint32(0x8d3fddd1),
  1944. 205: uint32(0xe858e697),
  1945. 206: uint32(0x47f1ab5d),
  1946. 207: uint32(0x2296901b),
  1947. 208: uint32(0xbecf4b1f),
  1948. 209: uint32(0xdba87059),
  1949. 210: uint32(0x74013d93),
  1950. 211: uint32(0x116606d5),
  1951. 212: uint32(0xf022a046),
  1952. 213: uint32(0x95459b00),
  1953. 214: uint32(0x3aecd6ca),
  1954. 215: uint32(0x5f8bed8c),
  1955. 216: uint32(0x23149dad),
  1956. 217: uint32(0x4673a6eb),
  1957. 218: uint32(0xe9daeb21),
  1958. 219: uint32(0x8cbdd067),
  1959. 220: uint32(0x6df976f4),
  1960. 221: uint32(0x089e4db2),
  1961. 222: uint32(0xa7370078),
  1962. 223: uint32(0xc2503b3e),
  1963. 224: uint32(0x44f5b031),
  1964. 225: uint32(0x21928b77),
  1965. 226: uint32(0x8e3bc6bd),
  1966. 227: uint32(0xeb5cfdfb),
  1967. 228: uint32(0x0a185b68),
  1968. 229: uint32(0x6f7f602e),
  1969. 230: uint32(0xc0d62de4),
  1970. 231: uint32(0xa5b116a2),
  1971. 232: uint32(0xd92e6683),
  1972. 233: uint32(0xbc495dc5),
  1973. 234: uint32(0x13e0100f),
  1974. 235: uint32(0x76872b49),
  1975. 236: uint32(0x97c38dda),
  1976. 237: uint32(0xf2a4b69c),
  1977. 238: uint32(0x5d0dfb56),
  1978. 239: uint32(0x386ac010),
  1979. 240: uint32(0xa4331b14),
  1980. 241: uint32(0xc1542052),
  1981. 242: uint32(0x6efd6d98),
  1982. 243: uint32(0x0b9a56de),
  1983. 244: uint32(0xeadef04d),
  1984. 245: uint32(0x8fb9cb0b),
  1985. 246: uint32(0x201086c1),
  1986. 247: uint32(0x4577bd87),
  1987. 248: uint32(0x39e8cda6),
  1988. 249: uint32(0x5c8ff6e0),
  1989. 250: uint32(0xf326bb2a),
  1990. 251: uint32(0x9641806c),
  1991. 252: uint32(0x770526ff),
  1992. 253: uint32(0x12621db9),
  1993. 254: uint32(0xbdcb5073),
  1994. 255: uint32(0xd8ac6b35),
  1995. },
  1996. 1: {
  1997. 1: uint32(0xd7e28058),
  1998. 2: uint32(0x74b406f1),
  1999. 3: uint32(0xa35686a9),
  2000. 4: uint32(0xe9680de2),
  2001. 5: uint32(0x3e8a8dba),
  2002. 6: uint32(0x9ddc0b13),
  2003. 7: uint32(0x4a3e8b4b),
  2004. 8: uint32(0x09a11d85),
  2005. 9: uint32(0xde439ddd),
  2006. 10: uint32(0x7d151b74),
  2007. 11: uint32(0xaaf79b2c),
  2008. 12: uint32(0xe0c91067),
  2009. 13: uint32(0x372b903f),
  2010. 14: uint32(0x947d1696),
  2011. 15: uint32(0x439f96ce),
  2012. 16: uint32(0x13423b0a),
  2013. 17: uint32(0xc4a0bb52),
  2014. 18: uint32(0x67f63dfb),
  2015. 19: uint32(0xb014bda3),
  2016. 20: uint32(0xfa2a36e8),
  2017. 21: uint32(0x2dc8b6b0),
  2018. 22: uint32(0x8e9e3019),
  2019. 23: uint32(0x597cb041),
  2020. 24: uint32(0x1ae3268f),
  2021. 25: uint32(0xcd01a6d7),
  2022. 26: uint32(0x6e57207e),
  2023. 27: uint32(0xb9b5a026),
  2024. 28: uint32(0xf38b2b6d),
  2025. 29: uint32(0x2469ab35),
  2026. 30: uint32(0x873f2d9c),
  2027. 31: uint32(0x50ddadc4),
  2028. 32: uint32(0x26847614),
  2029. 33: uint32(0xf166f64c),
  2030. 34: uint32(0x523070e5),
  2031. 35: uint32(0x85d2f0bd),
  2032. 36: uint32(0xcfec7bf6),
  2033. 37: uint32(0x180efbae),
  2034. 38: uint32(0xbb587d07),
  2035. 39: uint32(0x6cbafd5f),
  2036. 40: uint32(0x2f256b91),
  2037. 41: uint32(0xf8c7ebc9),
  2038. 42: uint32(0x5b916d60),
  2039. 43: uint32(0x8c73ed38),
  2040. 44: uint32(0xc64d6673),
  2041. 45: uint32(0x11afe62b),
  2042. 46: uint32(0xb2f96082),
  2043. 47: uint32(0x651be0da),
  2044. 48: uint32(0x35c64d1e),
  2045. 49: uint32(0xe224cd46),
  2046. 50: uint32(0x41724bef),
  2047. 51: uint32(0x9690cbb7),
  2048. 52: uint32(0xdcae40fc),
  2049. 53: uint32(0x0b4cc0a4),
  2050. 54: uint32(0xa81a460d),
  2051. 55: uint32(0x7ff8c655),
  2052. 56: uint32(0x3c67509b),
  2053. 57: uint32(0xeb85d0c3),
  2054. 58: uint32(0x48d3566a),
  2055. 59: uint32(0x9f31d632),
  2056. 60: uint32(0xd50f5d79),
  2057. 61: uint32(0x02eddd21),
  2058. 62: uint32(0xa1bb5b88),
  2059. 63: uint32(0x7659dbd0),
  2060. 64: uint32(0x4d08ec28),
  2061. 65: uint32(0x9aea6c70),
  2062. 66: uint32(0x39bcead9),
  2063. 67: uint32(0xee5e6a81),
  2064. 68: uint32(0xa460e1ca),
  2065. 69: uint32(0x73826192),
  2066. 70: uint32(0xd0d4e73b),
  2067. 71: uint32(0x07366763),
  2068. 72: uint32(0x44a9f1ad),
  2069. 73: uint32(0x934b71f5),
  2070. 74: uint32(0x301df75c),
  2071. 75: uint32(0xe7ff7704),
  2072. 76: uint32(0xadc1fc4f),
  2073. 77: uint32(0x7a237c17),
  2074. 78: uint32(0xd975fabe),
  2075. 79: uint32(0x0e977ae6),
  2076. 80: uint32(0x5e4ad722),
  2077. 81: uint32(0x89a8577a),
  2078. 82: uint32(0x2afed1d3),
  2079. 83: uint32(0xfd1c518b),
  2080. 84: uint32(0xb722dac0),
  2081. 85: uint32(0x60c05a98),
  2082. 86: uint32(0xc396dc31),
  2083. 87: uint32(0x14745c69),
  2084. 88: uint32(0x57ebcaa7),
  2085. 89: uint32(0x80094aff),
  2086. 90: uint32(0x235fcc56),
  2087. 91: uint32(0xf4bd4c0e),
  2088. 92: uint32(0xbe83c745),
  2089. 93: uint32(0x6961471d),
  2090. 94: uint32(0xca37c1b4),
  2091. 95: uint32(0x1dd541ec),
  2092. 96: uint32(0x6b8c9a3c),
  2093. 97: uint32(0xbc6e1a64),
  2094. 98: uint32(0x1f389ccd),
  2095. 99: uint32(0xc8da1c95),
  2096. 100: uint32(0x82e497de),
  2097. 101: uint32(0x55061786),
  2098. 102: uint32(0xf650912f),
  2099. 103: uint32(0x21b21177),
  2100. 104: uint32(0x622d87b9),
  2101. 105: uint32(0xb5cf07e1),
  2102. 106: uint32(0x16998148),
  2103. 107: uint32(0xc17b0110),
  2104. 108: uint32(0x8b458a5b),
  2105. 109: uint32(0x5ca70a03),
  2106. 110: uint32(0xfff18caa),
  2107. 111: uint32(0x28130cf2),
  2108. 112: uint32(0x78cea136),
  2109. 113: uint32(0xaf2c216e),
  2110. 114: uint32(0x0c7aa7c7),
  2111. 115: uint32(0xdb98279f),
  2112. 116: uint32(0x91a6acd4),
  2113. 117: uint32(0x46442c8c),
  2114. 118: uint32(0xe512aa25),
  2115. 119: uint32(0x32f02a7d),
  2116. 120: uint32(0x716fbcb3),
  2117. 121: uint32(0xa68d3ceb),
  2118. 122: uint32(0x05dbba42),
  2119. 123: uint32(0xd2393a1a),
  2120. 124: uint32(0x9807b151),
  2121. 125: uint32(0x4fe53109),
  2122. 126: uint32(0xecb3b7a0),
  2123. 127: uint32(0x3b5137f8),
  2124. 128: uint32(0x9a11d850),
  2125. 129: uint32(0x4df35808),
  2126. 130: uint32(0xeea5dea1),
  2127. 131: uint32(0x39475ef9),
  2128. 132: uint32(0x7379d5b2),
  2129. 133: uint32(0xa49b55ea),
  2130. 134: uint32(0x07cdd343),
  2131. 135: uint32(0xd02f531b),
  2132. 136: uint32(0x93b0c5d5),
  2133. 137: uint32(0x4452458d),
  2134. 138: uint32(0xe704c324),
  2135. 139: uint32(0x30e6437c),
  2136. 140: uint32(0x7ad8c837),
  2137. 141: uint32(0xad3a486f),
  2138. 142: uint32(0x0e6ccec6),
  2139. 143: uint32(0xd98e4e9e),
  2140. 144: uint32(0x8953e35a),
  2141. 145: uint32(0x5eb16302),
  2142. 146: uint32(0xfde7e5ab),
  2143. 147: uint32(0x2a0565f3),
  2144. 148: uint32(0x603beeb8),
  2145. 149: uint32(0xb7d96ee0),
  2146. 150: uint32(0x148fe849),
  2147. 151: uint32(0xc36d6811),
  2148. 152: uint32(0x80f2fedf),
  2149. 153: uint32(0x57107e87),
  2150. 154: uint32(0xf446f82e),
  2151. 155: uint32(0x23a47876),
  2152. 156: uint32(0x699af33d),
  2153. 157: uint32(0xbe787365),
  2154. 158: uint32(0x1d2ef5cc),
  2155. 159: uint32(0xcacc7594),
  2156. 160: uint32(0xbc95ae44),
  2157. 161: uint32(0x6b772e1c),
  2158. 162: uint32(0xc821a8b5),
  2159. 163: uint32(0x1fc328ed),
  2160. 164: uint32(0x55fda3a6),
  2161. 165: uint32(0x821f23fe),
  2162. 166: uint32(0x2149a557),
  2163. 167: uint32(0xf6ab250f),
  2164. 168: uint32(0xb534b3c1),
  2165. 169: uint32(0x62d63399),
  2166. 170: uint32(0xc180b530),
  2167. 171: uint32(0x16623568),
  2168. 172: uint32(0x5c5cbe23),
  2169. 173: uint32(0x8bbe3e7b),
  2170. 174: uint32(0x28e8b8d2),
  2171. 175: uint32(0xff0a388a),
  2172. 176: uint32(0xafd7954e),
  2173. 177: uint32(0x78351516),
  2174. 178: uint32(0xdb6393bf),
  2175. 179: uint32(0x0c8113e7),
  2176. 180: uint32(0x46bf98ac),
  2177. 181: uint32(0x915d18f4),
  2178. 182: uint32(0x320b9e5d),
  2179. 183: uint32(0xe5e91e05),
  2180. 184: uint32(0xa67688cb),
  2181. 185: uint32(0x71940893),
  2182. 186: uint32(0xd2c28e3a),
  2183. 187: uint32(0x05200e62),
  2184. 188: uint32(0x4f1e8529),
  2185. 189: uint32(0x98fc0571),
  2186. 190: uint32(0x3baa83d8),
  2187. 191: uint32(0xec480380),
  2188. 192: uint32(0xd7193478),
  2189. 193: uint32(0x00fbb420),
  2190. 194: uint32(0xa3ad3289),
  2191. 195: uint32(0x744fb2d1),
  2192. 196: uint32(0x3e71399a),
  2193. 197: uint32(0xe993b9c2),
  2194. 198: uint32(0x4ac53f6b),
  2195. 199: uint32(0x9d27bf33),
  2196. 200: uint32(0xdeb829fd),
  2197. 201: uint32(0x095aa9a5),
  2198. 202: uint32(0xaa0c2f0c),
  2199. 203: uint32(0x7deeaf54),
  2200. 204: uint32(0x37d0241f),
  2201. 205: uint32(0xe032a447),
  2202. 206: uint32(0x436422ee),
  2203. 207: uint32(0x9486a2b6),
  2204. 208: uint32(0xc45b0f72),
  2205. 209: uint32(0x13b98f2a),
  2206. 210: uint32(0xb0ef0983),
  2207. 211: uint32(0x670d89db),
  2208. 212: uint32(0x2d330290),
  2209. 213: uint32(0xfad182c8),
  2210. 214: uint32(0x59870461),
  2211. 215: uint32(0x8e658439),
  2212. 216: uint32(0xcdfa12f7),
  2213. 217: uint32(0x1a1892af),
  2214. 218: uint32(0xb94e1406),
  2215. 219: uint32(0x6eac945e),
  2216. 220: uint32(0x24921f15),
  2217. 221: uint32(0xf3709f4d),
  2218. 222: uint32(0x502619e4),
  2219. 223: uint32(0x87c499bc),
  2220. 224: uint32(0xf19d426c),
  2221. 225: uint32(0x267fc234),
  2222. 226: uint32(0x8529449d),
  2223. 227: uint32(0x52cbc4c5),
  2224. 228: uint32(0x18f54f8e),
  2225. 229: uint32(0xcf17cfd6),
  2226. 230: uint32(0x6c41497f),
  2227. 231: uint32(0xbba3c927),
  2228. 232: uint32(0xf83c5fe9),
  2229. 233: uint32(0x2fdedfb1),
  2230. 234: uint32(0x8c885918),
  2231. 235: uint32(0x5b6ad940),
  2232. 236: uint32(0x1154520b),
  2233. 237: uint32(0xc6b6d253),
  2234. 238: uint32(0x65e054fa),
  2235. 239: uint32(0xb202d4a2),
  2236. 240: uint32(0xe2df7966),
  2237. 241: uint32(0x353df93e),
  2238. 242: uint32(0x966b7f97),
  2239. 243: uint32(0x4189ffcf),
  2240. 244: uint32(0x0bb77484),
  2241. 245: uint32(0xdc55f4dc),
  2242. 246: uint32(0x7f037275),
  2243. 247: uint32(0xa8e1f22d),
  2244. 248: uint32(0xeb7e64e3),
  2245. 249: uint32(0x3c9ce4bb),
  2246. 250: uint32(0x9fca6212),
  2247. 251: uint32(0x4828e24a),
  2248. 252: uint32(0x02166901),
  2249. 253: uint32(0xd5f4e959),
  2250. 254: uint32(0x76a26ff0),
  2251. 255: uint32(0xa140efa8),
  2252. },
  2253. 2: {
  2254. 1: uint32(0xef52b6e1),
  2255. 2: uint32(0x05d46b83),
  2256. 3: uint32(0xea86dd62),
  2257. 4: uint32(0x0ba8d706),
  2258. 5: uint32(0xe4fa61e7),
  2259. 6: uint32(0x0e7cbc85),
  2260. 7: uint32(0xe12e0a64),
  2261. 8: uint32(0x1751ae0c),
  2262. 9: uint32(0xf80318ed),
  2263. 10: uint32(0x1285c58f),
  2264. 11: uint32(0xfdd7736e),
  2265. 12: uint32(0x1cf9790a),
  2266. 13: uint32(0xf3abcfeb),
  2267. 14: uint32(0x192d1289),
  2268. 15: uint32(0xf67fa468),
  2269. 16: uint32(0x2ea35c18),
  2270. 17: uint32(0xc1f1eaf9),
  2271. 18: uint32(0x2b77379b),
  2272. 19: uint32(0xc425817a),
  2273. 20: uint32(0x250b8b1e),
  2274. 21: uint32(0xca593dff),
  2275. 22: uint32(0x20dfe09d),
  2276. 23: uint32(0xcf8d567c),
  2277. 24: uint32(0x39f2f214),
  2278. 25: uint32(0xd6a044f5),
  2279. 26: uint32(0x3c269997),
  2280. 27: uint32(0xd3742f76),
  2281. 28: uint32(0x325a2512),
  2282. 29: uint32(0xdd0893f3),
  2283. 30: uint32(0x378e4e91),
  2284. 31: uint32(0xd8dcf870),
  2285. 32: uint32(0x5d46b830),
  2286. 33: uint32(0xb2140ed1),
  2287. 34: uint32(0x5892d3b3),
  2288. 35: uint32(0xb7c06552),
  2289. 36: uint32(0x56ee6f36),
  2290. 37: uint32(0xb9bcd9d7),
  2291. 38: uint32(0x533a04b5),
  2292. 39: uint32(0xbc68b254),
  2293. 40: uint32(0x4a17163c),
  2294. 41: uint32(0xa545a0dd),
  2295. 42: uint32(0x4fc37dbf),
  2296. 43: uint32(0xa091cb5e),
  2297. 44: uint32(0x41bfc13a),
  2298. 45: uint32(0xaeed77db),
  2299. 46: uint32(0x446baab9),
  2300. 47: uint32(0xab391c58),
  2301. 48: uint32(0x73e5e428),
  2302. 49: uint32(0x9cb752c9),
  2303. 50: uint32(0x76318fab),
  2304. 51: uint32(0x9963394a),
  2305. 52: uint32(0x784d332e),
  2306. 53: uint32(0x971f85cf),
  2307. 54: uint32(0x7d9958ad),
  2308. 55: uint32(0x92cbee4c),
  2309. 56: uint32(0x64b44a24),
  2310. 57: uint32(0x8be6fcc5),
  2311. 58: uint32(0x616021a7),
  2312. 59: uint32(0x8e329746),
  2313. 60: uint32(0x6f1c9d22),
  2314. 61: uint32(0x804e2bc3),
  2315. 62: uint32(0x6ac8f6a1),
  2316. 63: uint32(0x859a4040),
  2317. 64: uint32(0xba8d7060),
  2318. 65: uint32(0x55dfc681),
  2319. 66: uint32(0xbf591be3),
  2320. 67: uint32(0x500bad02),
  2321. 68: uint32(0xb125a766),
  2322. 69: uint32(0x5e771187),
  2323. 70: uint32(0xb4f1cce5),
  2324. 71: uint32(0x5ba37a04),
  2325. 72: uint32(0xaddcde6c),
  2326. 73: uint32(0x428e688d),
  2327. 74: uint32(0xa808b5ef),
  2328. 75: uint32(0x475a030e),
  2329. 76: uint32(0xa674096a),
  2330. 77: uint32(0x4926bf8b),
  2331. 78: uint32(0xa3a062e9),
  2332. 79: uint32(0x4cf2d408),
  2333. 80: uint32(0x942e2c78),
  2334. 81: uint32(0x7b7c9a99),
  2335. 82: uint32(0x91fa47fb),
  2336. 83: uint32(0x7ea8f11a),
  2337. 84: uint32(0x9f86fb7e),
  2338. 85: uint32(0x70d44d9f),
  2339. 86: uint32(0x9a5290fd),
  2340. 87: uint32(0x7500261c),
  2341. 88: uint32(0x837f8274),
  2342. 89: uint32(0x6c2d3495),
  2343. 90: uint32(0x86abe9f7),
  2344. 91: uint32(0x69f95f16),
  2345. 92: uint32(0x88d75572),
  2346. 93: uint32(0x6785e393),
  2347. 94: uint32(0x8d033ef1),
  2348. 95: uint32(0x62518810),
  2349. 96: uint32(0xe7cbc850),
  2350. 97: uint32(0x08997eb1),
  2351. 98: uint32(0xe21fa3d3),
  2352. 99: uint32(0x0d4d1532),
  2353. 100: uint32(0xec631f56),
  2354. 101: uint32(0x0331a9b7),
  2355. 102: uint32(0xe9b774d5),
  2356. 103: uint32(0x06e5c234),
  2357. 104: uint32(0xf09a665c),
  2358. 105: uint32(0x1fc8d0bd),
  2359. 106: uint32(0xf54e0ddf),
  2360. 107: uint32(0x1a1cbb3e),
  2361. 108: uint32(0xfb32b15a),
  2362. 109: uint32(0x146007bb),
  2363. 110: uint32(0xfee6dad9),
  2364. 111: uint32(0x11b46c38),
  2365. 112: uint32(0xc9689448),
  2366. 113: uint32(0x263a22a9),
  2367. 114: uint32(0xccbcffcb),
  2368. 115: uint32(0x23ee492a),
  2369. 116: uint32(0xc2c0434e),
  2370. 117: uint32(0x2d92f5af),
  2371. 118: uint32(0xc71428cd),
  2372. 119: uint32(0x28469e2c),
  2373. 120: uint32(0xde393a44),
  2374. 121: uint32(0x316b8ca5),
  2375. 122: uint32(0xdbed51c7),
  2376. 123: uint32(0x34bfe726),
  2377. 124: uint32(0xd591ed42),
  2378. 125: uint32(0x3ac35ba3),
  2379. 126: uint32(0xd04586c1),
  2380. 127: uint32(0x3f173020),
  2381. 128: uint32(0xae6be681),
  2382. 129: uint32(0x41395060),
  2383. 130: uint32(0xabbf8d02),
  2384. 131: uint32(0x44ed3be3),
  2385. 132: uint32(0xa5c33187),
  2386. 133: uint32(0x4a918766),
  2387. 134: uint32(0xa0175a04),
  2388. 135: uint32(0x4f45ece5),
  2389. 136: uint32(0xb93a488d),
  2390. 137: uint32(0x5668fe6c),
  2391. 138: uint32(0xbcee230e),
  2392. 139: uint32(0x53bc95ef),
  2393. 140: uint32(0xb2929f8b),
  2394. 141: uint32(0x5dc0296a),
  2395. 142: uint32(0xb746f408),
  2396. 143: uint32(0x581442e9),
  2397. 144: uint32(0x80c8ba99),
  2398. 145: uint32(0x6f9a0c78),
  2399. 146: uint32(0x851cd11a),
  2400. 147: uint32(0x6a4e67fb),
  2401. 148: uint32(0x8b606d9f),
  2402. 149: uint32(0x6432db7e),
  2403. 150: uint32(0x8eb4061c),
  2404. 151: uint32(0x61e6b0fd),
  2405. 152: uint32(0x97991495),
  2406. 153: uint32(0x78cba274),
  2407. 154: uint32(0x924d7f16),
  2408. 155: uint32(0x7d1fc9f7),
  2409. 156: uint32(0x9c31c393),
  2410. 157: uint32(0x73637572),
  2411. 158: uint32(0x99e5a810),
  2412. 159: uint32(0x76b71ef1),
  2413. 160: uint32(0xf32d5eb1),
  2414. 161: uint32(0x1c7fe850),
  2415. 162: uint32(0xf6f93532),
  2416. 163: uint32(0x19ab83d3),
  2417. 164: uint32(0xf88589b7),
  2418. 165: uint32(0x17d73f56),
  2419. 166: uint32(0xfd51e234),
  2420. 167: uint32(0x120354d5),
  2421. 168: uint32(0xe47cf0bd),
  2422. 169: uint32(0x0b2e465c),
  2423. 170: uint32(0xe1a89b3e),
  2424. 171: uint32(0x0efa2ddf),
  2425. 172: uint32(0xefd427bb),
  2426. 173: uint32(0x0086915a),
  2427. 174: uint32(0xea004c38),
  2428. 175: uint32(0x0552fad9),
  2429. 176: uint32(0xdd8e02a9),
  2430. 177: uint32(0x32dcb448),
  2431. 178: uint32(0xd85a692a),
  2432. 179: uint32(0x3708dfcb),
  2433. 180: uint32(0xd626d5af),
  2434. 181: uint32(0x3974634e),
  2435. 182: uint32(0xd3f2be2c),
  2436. 183: uint32(0x3ca008cd),
  2437. 184: uint32(0xcadfaca5),
  2438. 185: uint32(0x258d1a44),
  2439. 186: uint32(0xcf0bc726),
  2440. 187: uint32(0x205971c7),
  2441. 188: uint32(0xc1777ba3),
  2442. 189: uint32(0x2e25cd42),
  2443. 190: uint32(0xc4a31020),
  2444. 191: uint32(0x2bf1a6c1),
  2445. 192: uint32(0x14e696e1),
  2446. 193: uint32(0xfbb42000),
  2447. 194: uint32(0x1132fd62),
  2448. 195: uint32(0xfe604b83),
  2449. 196: uint32(0x1f4e41e7),
  2450. 197: uint32(0xf01cf706),
  2451. 198: uint32(0x1a9a2a64),
  2452. 199: uint32(0xf5c89c85),
  2453. 200: uint32(0x03b738ed),
  2454. 201: uint32(0xece58e0c),
  2455. 202: uint32(0x0663536e),
  2456. 203: uint32(0xe931e58f),
  2457. 204: uint32(0x081fefeb),
  2458. 205: uint32(0xe74d590a),
  2459. 206: uint32(0x0dcb8468),
  2460. 207: uint32(0xe2993289),
  2461. 208: uint32(0x3a45caf9),
  2462. 209: uint32(0xd5177c18),
  2463. 210: uint32(0x3f91a17a),
  2464. 211: uint32(0xd0c3179b),
  2465. 212: uint32(0x31ed1dff),
  2466. 213: uint32(0xdebfab1e),
  2467. 214: uint32(0x3439767c),
  2468. 215: uint32(0xdb6bc09d),
  2469. 216: uint32(0x2d1464f5),
  2470. 217: uint32(0xc246d214),
  2471. 218: uint32(0x28c00f76),
  2472. 219: uint32(0xc792b997),
  2473. 220: uint32(0x26bcb3f3),
  2474. 221: uint32(0xc9ee0512),
  2475. 222: uint32(0x2368d870),
  2476. 223: uint32(0xcc3a6e91),
  2477. 224: uint32(0x49a02ed1),
  2478. 225: uint32(0xa6f29830),
  2479. 226: uint32(0x4c744552),
  2480. 227: uint32(0xa326f3b3),
  2481. 228: uint32(0x4208f9d7),
  2482. 229: uint32(0xad5a4f36),
  2483. 230: uint32(0x47dc9254),
  2484. 231: uint32(0xa88e24b5),
  2485. 232: uint32(0x5ef180dd),
  2486. 233: uint32(0xb1a3363c),
  2487. 234: uint32(0x5b25eb5e),
  2488. 235: uint32(0xb4775dbf),
  2489. 236: uint32(0x555957db),
  2490. 237: uint32(0xba0be13a),
  2491. 238: uint32(0x508d3c58),
  2492. 239: uint32(0xbfdf8ab9),
  2493. 240: uint32(0x670372c9),
  2494. 241: uint32(0x8851c428),
  2495. 242: uint32(0x62d7194a),
  2496. 243: uint32(0x8d85afab),
  2497. 244: uint32(0x6caba5cf),
  2498. 245: uint32(0x83f9132e),
  2499. 246: uint32(0x697fce4c),
  2500. 247: uint32(0x862d78ad),
  2501. 248: uint32(0x7052dcc5),
  2502. 249: uint32(0x9f006a24),
  2503. 250: uint32(0x7586b746),
  2504. 251: uint32(0x9ad401a7),
  2505. 252: uint32(0x7bfa0bc3),
  2506. 253: uint32(0x94a8bd22),
  2507. 254: uint32(0x7e2e6040),
  2508. 255: uint32(0x917cd6a1),
  2509. },
  2510. 3: {
  2511. 1: uint32(0x87a6cb43),
  2512. 2: uint32(0xd43c90c7),
  2513. 3: uint32(0x539a5b84),
  2514. 4: uint32(0x730827cf),
  2515. 5: uint32(0xf4aeec8c),
  2516. 6: uint32(0xa734b708),
  2517. 7: uint32(0x20927c4b),
  2518. 8: uint32(0xe6104f9e),
  2519. 9: uint32(0x61b684dd),
  2520. 10: uint32(0x322cdf59),
  2521. 11: uint32(0xb58a141a),
  2522. 12: uint32(0x95186851),
  2523. 13: uint32(0x12bea312),
  2524. 14: uint32(0x4124f896),
  2525. 15: uint32(0xc68233d5),
  2526. 16: uint32(0x1751997d),
  2527. 17: uint32(0x90f7523e),
  2528. 18: uint32(0xc36d09ba),
  2529. 19: uint32(0x44cbc2f9),
  2530. 20: uint32(0x6459beb2),
  2531. 21: uint32(0xe3ff75f1),
  2532. 22: uint32(0xb0652e75),
  2533. 23: uint32(0x37c3e536),
  2534. 24: uint32(0xf141d6e3),
  2535. 25: uint32(0x76e71da0),
  2536. 26: uint32(0x257d4624),
  2537. 27: uint32(0xa2db8d67),
  2538. 28: uint32(0x8249f12c),
  2539. 29: uint32(0x05ef3a6f),
  2540. 30: uint32(0x567561eb),
  2541. 31: uint32(0xd1d3aaa8),
  2542. 32: uint32(0x2ea332fa),
  2543. 33: uint32(0xa905f9b9),
  2544. 34: uint32(0xfa9fa23d),
  2545. 35: uint32(0x7d39697e),
  2546. 36: uint32(0x5dab1535),
  2547. 37: uint32(0xda0dde76),
  2548. 38: uint32(0x899785f2),
  2549. 39: uint32(0x0e314eb1),
  2550. 40: uint32(0xc8b37d64),
  2551. 41: uint32(0x4f15b627),
  2552. 42: uint32(0x1c8feda3),
  2553. 43: uint32(0x9b2926e0),
  2554. 44: uint32(0xbbbb5aab),
  2555. 45: uint32(0x3c1d91e8),
  2556. 46: uint32(0x6f87ca6c),
  2557. 47: uint32(0xe821012f),
  2558. 48: uint32(0x39f2ab87),
  2559. 49: uint32(0xbe5460c4),
  2560. 50: uint32(0xedce3b40),
  2561. 51: uint32(0x6a68f003),
  2562. 52: uint32(0x4afa8c48),
  2563. 53: uint32(0xcd5c470b),
  2564. 54: uint32(0x9ec61c8f),
  2565. 55: uint32(0x1960d7cc),
  2566. 56: uint32(0xdfe2e419),
  2567. 57: uint32(0x58442f5a),
  2568. 58: uint32(0x0bde74de),
  2569. 59: uint32(0x8c78bf9d),
  2570. 60: uint32(0xaceac3d6),
  2571. 61: uint32(0x2b4c0895),
  2572. 62: uint32(0x78d65311),
  2573. 63: uint32(0xff709852),
  2574. 64: uint32(0x5d4665f4),
  2575. 65: uint32(0xdae0aeb7),
  2576. 66: uint32(0x897af533),
  2577. 67: uint32(0x0edc3e70),
  2578. 68: uint32(0x2e4e423b),
  2579. 69: uint32(0xa9e88978),
  2580. 70: uint32(0xfa72d2fc),
  2581. 71: uint32(0x7dd419bf),
  2582. 72: uint32(0xbb562a6a),
  2583. 73: uint32(0x3cf0e129),
  2584. 74: uint32(0x6f6abaad),
  2585. 75: uint32(0xe8cc71ee),
  2586. 76: uint32(0xc85e0da5),
  2587. 77: uint32(0x4ff8c6e6),
  2588. 78: uint32(0x1c629d62),
  2589. 79: uint32(0x9bc45621),
  2590. 80: uint32(0x4a17fc89),
  2591. 81: uint32(0xcdb137ca),
  2592. 82: uint32(0x9e2b6c4e),
  2593. 83: uint32(0x198da70d),
  2594. 84: uint32(0x391fdb46),
  2595. 85: uint32(0xbeb91005),
  2596. 86: uint32(0xed234b81),
  2597. 87: uint32(0x6a8580c2),
  2598. 88: uint32(0xac07b317),
  2599. 89: uint32(0x2ba17854),
  2600. 90: uint32(0x783b23d0),
  2601. 91: uint32(0xff9de893),
  2602. 92: uint32(0xdf0f94d8),
  2603. 93: uint32(0x58a95f9b),
  2604. 94: uint32(0x0b33041f),
  2605. 95: uint32(0x8c95cf5c),
  2606. 96: uint32(0x73e5570e),
  2607. 97: uint32(0xf4439c4d),
  2608. 98: uint32(0xa7d9c7c9),
  2609. 99: uint32(0x207f0c8a),
  2610. 100: uint32(0x00ed70c1),
  2611. 101: uint32(0x874bbb82),
  2612. 102: uint32(0xd4d1e006),
  2613. 103: uint32(0x53772b45),
  2614. 104: uint32(0x95f51890),
  2615. 105: uint32(0x1253d3d3),
  2616. 106: uint32(0x41c98857),
  2617. 107: uint32(0xc66f4314),
  2618. 108: uint32(0xe6fd3f5f),
  2619. 109: uint32(0x615bf41c),
  2620. 110: uint32(0x32c1af98),
  2621. 111: uint32(0xb56764db),
  2622. 112: uint32(0x64b4ce73),
  2623. 113: uint32(0xe3120530),
  2624. 114: uint32(0xb0885eb4),
  2625. 115: uint32(0x372e95f7),
  2626. 116: uint32(0x17bce9bc),
  2627. 117: uint32(0x901a22ff),
  2628. 118: uint32(0xc380797b),
  2629. 119: uint32(0x4426b238),
  2630. 120: uint32(0x82a481ed),
  2631. 121: uint32(0x05024aae),
  2632. 122: uint32(0x5698112a),
  2633. 123: uint32(0xd13eda69),
  2634. 124: uint32(0xf1aca622),
  2635. 125: uint32(0x760a6d61),
  2636. 126: uint32(0x259036e5),
  2637. 127: uint32(0xa236fda6),
  2638. 128: uint32(0xba8ccbe8),
  2639. 129: uint32(0x3d2a00ab),
  2640. 130: uint32(0x6eb05b2f),
  2641. 131: uint32(0xe916906c),
  2642. 132: uint32(0xc984ec27),
  2643. 133: uint32(0x4e222764),
  2644. 134: uint32(0x1db87ce0),
  2645. 135: uint32(0x9a1eb7a3),
  2646. 136: uint32(0x5c9c8476),
  2647. 137: uint32(0xdb3a4f35),
  2648. 138: uint32(0x88a014b1),
  2649. 139: uint32(0x0f06dff2),
  2650. 140: uint32(0x2f94a3b9),
  2651. 141: uint32(0xa83268fa),
  2652. 142: uint32(0xfba8337e),
  2653. 143: uint32(0x7c0ef83d),
  2654. 144: uint32(0xaddd5295),
  2655. 145: uint32(0x2a7b99d6),
  2656. 146: uint32(0x79e1c252),
  2657. 147: uint32(0xfe470911),
  2658. 148: uint32(0xded5755a),
  2659. 149: uint32(0x5973be19),
  2660. 150: uint32(0x0ae9e59d),
  2661. 151: uint32(0x8d4f2ede),
  2662. 152: uint32(0x4bcd1d0b),
  2663. 153: uint32(0xcc6bd648),
  2664. 154: uint32(0x9ff18dcc),
  2665. 155: uint32(0x1857468f),
  2666. 156: uint32(0x38c53ac4),
  2667. 157: uint32(0xbf63f187),
  2668. 158: uint32(0xecf9aa03),
  2669. 159: uint32(0x6b5f6140),
  2670. 160: uint32(0x942ff912),
  2671. 161: uint32(0x13893251),
  2672. 162: uint32(0x401369d5),
  2673. 163: uint32(0xc7b5a296),
  2674. 164: uint32(0xe727dedd),
  2675. 165: uint32(0x6081159e),
  2676. 166: uint32(0x331b4e1a),
  2677. 167: uint32(0xb4bd8559),
  2678. 168: uint32(0x723fb68c),
  2679. 169: uint32(0xf5997dcf),
  2680. 170: uint32(0xa603264b),
  2681. 171: uint32(0x21a5ed08),
  2682. 172: uint32(0x01379143),
  2683. 173: uint32(0x86915a00),
  2684. 174: uint32(0xd50b0184),
  2685. 175: uint32(0x52adcac7),
  2686. 176: uint32(0x837e606f),
  2687. 177: uint32(0x04d8ab2c),
  2688. 178: uint32(0x5742f0a8),
  2689. 179: uint32(0xd0e43beb),
  2690. 180: uint32(0xf07647a0),
  2691. 181: uint32(0x77d08ce3),
  2692. 182: uint32(0x244ad767),
  2693. 183: uint32(0xa3ec1c24),
  2694. 184: uint32(0x656e2ff1),
  2695. 185: uint32(0xe2c8e4b2),
  2696. 186: uint32(0xb152bf36),
  2697. 187: uint32(0x36f47475),
  2698. 188: uint32(0x1666083e),
  2699. 189: uint32(0x91c0c37d),
  2700. 190: uint32(0xc25a98f9),
  2701. 191: uint32(0x45fc53ba),
  2702. 192: uint32(0xe7caae1c),
  2703. 193: uint32(0x606c655f),
  2704. 194: uint32(0x33f63edb),
  2705. 195: uint32(0xb450f598),
  2706. 196: uint32(0x94c289d3),
  2707. 197: uint32(0x13644290),
  2708. 198: uint32(0x40fe1914),
  2709. 199: uint32(0xc758d257),
  2710. 200: uint32(0x01dae182),
  2711. 201: uint32(0x867c2ac1),
  2712. 202: uint32(0xd5e67145),
  2713. 203: uint32(0x5240ba06),
  2714. 204: uint32(0x72d2c64d),
  2715. 205: uint32(0xf5740d0e),
  2716. 206: uint32(0xa6ee568a),
  2717. 207: uint32(0x21489dc9),
  2718. 208: uint32(0xf09b3761),
  2719. 209: uint32(0x773dfc22),
  2720. 210: uint32(0x24a7a7a6),
  2721. 211: uint32(0xa3016ce5),
  2722. 212: uint32(0x839310ae),
  2723. 213: uint32(0x0435dbed),
  2724. 214: uint32(0x57af8069),
  2725. 215: uint32(0xd0094b2a),
  2726. 216: uint32(0x168b78ff),
  2727. 217: uint32(0x912db3bc),
  2728. 218: uint32(0xc2b7e838),
  2729. 219: uint32(0x4511237b),
  2730. 220: uint32(0x65835f30),
  2731. 221: uint32(0xe2259473),
  2732. 222: uint32(0xb1bfcff7),
  2733. 223: uint32(0x361904b4),
  2734. 224: uint32(0xc9699ce6),
  2735. 225: uint32(0x4ecf57a5),
  2736. 226: uint32(0x1d550c21),
  2737. 227: uint32(0x9af3c762),
  2738. 228: uint32(0xba61bb29),
  2739. 229: uint32(0x3dc7706a),
  2740. 230: uint32(0x6e5d2bee),
  2741. 231: uint32(0xe9fbe0ad),
  2742. 232: uint32(0x2f79d378),
  2743. 233: uint32(0xa8df183b),
  2744. 234: uint32(0xfb4543bf),
  2745. 235: uint32(0x7ce388fc),
  2746. 236: uint32(0x5c71f4b7),
  2747. 237: uint32(0xdbd73ff4),
  2748. 238: uint32(0x884d6470),
  2749. 239: uint32(0x0febaf33),
  2750. 240: uint32(0xde38059b),
  2751. 241: uint32(0x599eced8),
  2752. 242: uint32(0x0a04955c),
  2753. 243: uint32(0x8da25e1f),
  2754. 244: uint32(0xad302254),
  2755. 245: uint32(0x2a96e917),
  2756. 246: uint32(0x790cb293),
  2757. 247: uint32(0xfeaa79d0),
  2758. 248: uint32(0x38284a05),
  2759. 249: uint32(0xbf8e8146),
  2760. 250: uint32(0xec14dac2),
  2761. 251: uint32(0x6bb21181),
  2762. 252: uint32(0x4b206dca),
  2763. 253: uint32(0xcc86a689),
  2764. 254: uint32(0x9f1cfd0d),
  2765. 255: uint32(0x18ba364e),
  2766. },
  2767. }
  2768. var _crc_braid_big_table = [4][256]Tz_word_t{
  2769. 0: {
  2770. 1: uint32(0x43cba687),
  2771. 2: uint32(0xc7903cd4),
  2772. 3: uint32(0x845b9a53),
  2773. 4: uint32(0xcf270873),
  2774. 5: uint32(0x8cecaef4),
  2775. 6: uint32(0x08b734a7),
  2776. 7: uint32(0x4b7c9220),
  2777. 8: uint32(0x9e4f10e6),
  2778. 9: uint32(0xdd84b661),
  2779. 10: uint32(0x59df2c32),
  2780. 11: uint32(0x1a148ab5),
  2781. 12: uint32(0x51681895),
  2782. 13: uint32(0x12a3be12),
  2783. 14: uint32(0x96f82441),
  2784. 15: uint32(0xd53382c6),
  2785. 16: uint32(0x7d995117),
  2786. 17: uint32(0x3e52f790),
  2787. 18: uint32(0xba096dc3),
  2788. 19: uint32(0xf9c2cb44),
  2789. 20: uint32(0xb2be5964),
  2790. 21: uint32(0xf175ffe3),
  2791. 22: uint32(0x752e65b0),
  2792. 23: uint32(0x36e5c337),
  2793. 24: uint32(0xe3d641f1),
  2794. 25: uint32(0xa01de776),
  2795. 26: uint32(0x24467d25),
  2796. 27: uint32(0x678ddba2),
  2797. 28: uint32(0x2cf14982),
  2798. 29: uint32(0x6f3aef05),
  2799. 30: uint32(0xeb617556),
  2800. 31: uint32(0xa8aad3d1),
  2801. 32: uint32(0xfa32a32e),
  2802. 33: uint32(0xb9f905a9),
  2803. 34: uint32(0x3da29ffa),
  2804. 35: uint32(0x7e69397d),
  2805. 36: uint32(0x3515ab5d),
  2806. 37: uint32(0x76de0dda),
  2807. 38: uint32(0xf2859789),
  2808. 39: uint32(0xb14e310e),
  2809. 40: uint32(0x647db3c8),
  2810. 41: uint32(0x27b6154f),
  2811. 42: uint32(0xa3ed8f1c),
  2812. 43: uint32(0xe026299b),
  2813. 44: uint32(0xab5abbbb),
  2814. 45: uint32(0xe8911d3c),
  2815. 46: uint32(0x6cca876f),
  2816. 47: uint32(0x2f0121e8),
  2817. 48: uint32(0x87abf239),
  2818. 49: uint32(0xc46054be),
  2819. 50: uint32(0x403bceed),
  2820. 51: uint32(0x03f0686a),
  2821. 52: uint32(0x488cfa4a),
  2822. 53: uint32(0x0b475ccd),
  2823. 54: uint32(0x8f1cc69e),
  2824. 55: uint32(0xccd76019),
  2825. 56: uint32(0x19e4e2df),
  2826. 57: uint32(0x5a2f4458),
  2827. 58: uint32(0xde74de0b),
  2828. 59: uint32(0x9dbf788c),
  2829. 60: uint32(0xd6c3eaac),
  2830. 61: uint32(0x95084c2b),
  2831. 62: uint32(0x1153d678),
  2832. 63: uint32(0x529870ff),
  2833. 64: uint32(0xf465465d),
  2834. 65: uint32(0xb7aee0da),
  2835. 66: uint32(0x33f57a89),
  2836. 67: uint32(0x703edc0e),
  2837. 68: uint32(0x3b424e2e),
  2838. 69: uint32(0x7889e8a9),
  2839. 70: uint32(0xfcd272fa),
  2840. 71: uint32(0xbf19d47d),
  2841. 72: uint32(0x6a2a56bb),
  2842. 73: uint32(0x29e1f03c),
  2843. 74: uint32(0xadba6a6f),
  2844. 75: uint32(0xee71cce8),
  2845. 76: uint32(0xa50d5ec8),
  2846. 77: uint32(0xe6c6f84f),
  2847. 78: uint32(0x629d621c),
  2848. 79: uint32(0x2156c49b),
  2849. 80: uint32(0x89fc174a),
  2850. 81: uint32(0xca37b1cd),
  2851. 82: uint32(0x4e6c2b9e),
  2852. 83: uint32(0x0da78d19),
  2853. 84: uint32(0x46db1f39),
  2854. 85: uint32(0x0510b9be),
  2855. 86: uint32(0x814b23ed),
  2856. 87: uint32(0xc280856a),
  2857. 88: uint32(0x17b307ac),
  2858. 89: uint32(0x5478a12b),
  2859. 90: uint32(0xd0233b78),
  2860. 91: uint32(0x93e89dff),
  2861. 92: uint32(0xd8940fdf),
  2862. 93: uint32(0x9b5fa958),
  2863. 94: uint32(0x1f04330b),
  2864. 95: uint32(0x5ccf958c),
  2865. 96: uint32(0x0e57e573),
  2866. 97: uint32(0x4d9c43f4),
  2867. 98: uint32(0xc9c7d9a7),
  2868. 99: uint32(0x8a0c7f20),
  2869. 100: uint32(0xc170ed00),
  2870. 101: uint32(0x82bb4b87),
  2871. 102: uint32(0x06e0d1d4),
  2872. 103: uint32(0x452b7753),
  2873. 104: uint32(0x9018f595),
  2874. 105: uint32(0xd3d35312),
  2875. 106: uint32(0x5788c941),
  2876. 107: uint32(0x14436fc6),
  2877. 108: uint32(0x5f3ffde6),
  2878. 109: uint32(0x1cf45b61),
  2879. 110: uint32(0x98afc132),
  2880. 111: uint32(0xdb6467b5),
  2881. 112: uint32(0x73ceb464),
  2882. 113: uint32(0x300512e3),
  2883. 114: uint32(0xb45e88b0),
  2884. 115: uint32(0xf7952e37),
  2885. 116: uint32(0xbce9bc17),
  2886. 117: uint32(0xff221a90),
  2887. 118: uint32(0x7b7980c3),
  2888. 119: uint32(0x38b22644),
  2889. 120: uint32(0xed81a482),
  2890. 121: uint32(0xae4a0205),
  2891. 122: uint32(0x2a119856),
  2892. 123: uint32(0x69da3ed1),
  2893. 124: uint32(0x22a6acf1),
  2894. 125: uint32(0x616d0a76),
  2895. 126: uint32(0xe5369025),
  2896. 127: uint32(0xa6fd36a2),
  2897. 128: uint32(0xe8cb8cba),
  2898. 129: uint32(0xab002a3d),
  2899. 130: uint32(0x2f5bb06e),
  2900. 131: uint32(0x6c9016e9),
  2901. 132: uint32(0x27ec84c9),
  2902. 133: uint32(0x6427224e),
  2903. 134: uint32(0xe07cb81d),
  2904. 135: uint32(0xa3b71e9a),
  2905. 136: uint32(0x76849c5c),
  2906. 137: uint32(0x354f3adb),
  2907. 138: uint32(0xb114a088),
  2908. 139: uint32(0xf2df060f),
  2909. 140: uint32(0xb9a3942f),
  2910. 141: uint32(0xfa6832a8),
  2911. 142: uint32(0x7e33a8fb),
  2912. 143: uint32(0x3df80e7c),
  2913. 144: uint32(0x9552ddad),
  2914. 145: uint32(0xd6997b2a),
  2915. 146: uint32(0x52c2e179),
  2916. 147: uint32(0x110947fe),
  2917. 148: uint32(0x5a75d5de),
  2918. 149: uint32(0x19be7359),
  2919. 150: uint32(0x9de5e90a),
  2920. 151: uint32(0xde2e4f8d),
  2921. 152: uint32(0x0b1dcd4b),
  2922. 153: uint32(0x48d66bcc),
  2923. 154: uint32(0xcc8df19f),
  2924. 155: uint32(0x8f465718),
  2925. 156: uint32(0xc43ac538),
  2926. 157: uint32(0x87f163bf),
  2927. 158: uint32(0x03aaf9ec),
  2928. 159: uint32(0x40615f6b),
  2929. 160: uint32(0x12f92f94),
  2930. 161: uint32(0x51328913),
  2931. 162: uint32(0xd5691340),
  2932. 163: uint32(0x96a2b5c7),
  2933. 164: uint32(0xddde27e7),
  2934. 165: uint32(0x9e158160),
  2935. 166: uint32(0x1a4e1b33),
  2936. 167: uint32(0x5985bdb4),
  2937. 168: uint32(0x8cb63f72),
  2938. 169: uint32(0xcf7d99f5),
  2939. 170: uint32(0x4b2603a6),
  2940. 171: uint32(0x08eda521),
  2941. 172: uint32(0x43913701),
  2942. 173: uint32(0x005a9186),
  2943. 174: uint32(0x84010bd5),
  2944. 175: uint32(0xc7caad52),
  2945. 176: uint32(0x6f607e83),
  2946. 177: uint32(0x2cabd804),
  2947. 178: uint32(0xa8f04257),
  2948. 179: uint32(0xeb3be4d0),
  2949. 180: uint32(0xa04776f0),
  2950. 181: uint32(0xe38cd077),
  2951. 182: uint32(0x67d74a24),
  2952. 183: uint32(0x241ceca3),
  2953. 184: uint32(0xf12f6e65),
  2954. 185: uint32(0xb2e4c8e2),
  2955. 186: uint32(0x36bf52b1),
  2956. 187: uint32(0x7574f436),
  2957. 188: uint32(0x3e086616),
  2958. 189: uint32(0x7dc3c091),
  2959. 190: uint32(0xf9985ac2),
  2960. 191: uint32(0xba53fc45),
  2961. 192: uint32(0x1caecae7),
  2962. 193: uint32(0x5f656c60),
  2963. 194: uint32(0xdb3ef633),
  2964. 195: uint32(0x98f550b4),
  2965. 196: uint32(0xd389c294),
  2966. 197: uint32(0x90426413),
  2967. 198: uint32(0x1419fe40),
  2968. 199: uint32(0x57d258c7),
  2969. 200: uint32(0x82e1da01),
  2970. 201: uint32(0xc12a7c86),
  2971. 202: uint32(0x4571e6d5),
  2972. 203: uint32(0x06ba4052),
  2973. 204: uint32(0x4dc6d272),
  2974. 205: uint32(0x0e0d74f5),
  2975. 206: uint32(0x8a56eea6),
  2976. 207: uint32(0xc99d4821),
  2977. 208: uint32(0x61379bf0),
  2978. 209: uint32(0x22fc3d77),
  2979. 210: uint32(0xa6a7a724),
  2980. 211: uint32(0xe56c01a3),
  2981. 212: uint32(0xae109383),
  2982. 213: uint32(0xeddb3504),
  2983. 214: uint32(0x6980af57),
  2984. 215: uint32(0x2a4b09d0),
  2985. 216: uint32(0xff788b16),
  2986. 217: uint32(0xbcb32d91),
  2987. 218: uint32(0x38e8b7c2),
  2988. 219: uint32(0x7b231145),
  2989. 220: uint32(0x305f8365),
  2990. 221: uint32(0x739425e2),
  2991. 222: uint32(0xf7cfbfb1),
  2992. 223: uint32(0xb4041936),
  2993. 224: uint32(0xe69c69c9),
  2994. 225: uint32(0xa557cf4e),
  2995. 226: uint32(0x210c551d),
  2996. 227: uint32(0x62c7f39a),
  2997. 228: uint32(0x29bb61ba),
  2998. 229: uint32(0x6a70c73d),
  2999. 230: uint32(0xee2b5d6e),
  3000. 231: uint32(0xade0fbe9),
  3001. 232: uint32(0x78d3792f),
  3002. 233: uint32(0x3b18dfa8),
  3003. 234: uint32(0xbf4345fb),
  3004. 235: uint32(0xfc88e37c),
  3005. 236: uint32(0xb7f4715c),
  3006. 237: uint32(0xf43fd7db),
  3007. 238: uint32(0x70644d88),
  3008. 239: uint32(0x33afeb0f),
  3009. 240: uint32(0x9b0538de),
  3010. 241: uint32(0xd8ce9e59),
  3011. 242: uint32(0x5c95040a),
  3012. 243: uint32(0x1f5ea28d),
  3013. 244: uint32(0x542230ad),
  3014. 245: uint32(0x17e9962a),
  3015. 246: uint32(0x93b20c79),
  3016. 247: uint32(0xd079aafe),
  3017. 248: uint32(0x054a2838),
  3018. 249: uint32(0x46818ebf),
  3019. 250: uint32(0xc2da14ec),
  3020. 251: uint32(0x8111b26b),
  3021. 252: uint32(0xca6d204b),
  3022. 253: uint32(0x89a686cc),
  3023. 254: uint32(0x0dfd1c9f),
  3024. 255: uint32(0x4e36ba18),
  3025. },
  3026. 1: {
  3027. 1: uint32(0xe1b652ef),
  3028. 2: uint32(0x836bd405),
  3029. 3: uint32(0x62dd86ea),
  3030. 4: uint32(0x06d7a80b),
  3031. 5: uint32(0xe761fae4),
  3032. 6: uint32(0x85bc7c0e),
  3033. 7: uint32(0x640a2ee1),
  3034. 8: uint32(0x0cae5117),
  3035. 9: uint32(0xed1803f8),
  3036. 10: uint32(0x8fc58512),
  3037. 11: uint32(0x6e73d7fd),
  3038. 12: uint32(0x0a79f91c),
  3039. 13: uint32(0xebcfabf3),
  3040. 14: uint32(0x89122d19),
  3041. 15: uint32(0x68a47ff6),
  3042. 16: uint32(0x185ca32e),
  3043. 17: uint32(0xf9eaf1c1),
  3044. 18: uint32(0x9b37772b),
  3045. 19: uint32(0x7a8125c4),
  3046. 20: uint32(0x1e8b0b25),
  3047. 21: uint32(0xff3d59ca),
  3048. 22: uint32(0x9de0df20),
  3049. 23: uint32(0x7c568dcf),
  3050. 24: uint32(0x14f2f239),
  3051. 25: uint32(0xf544a0d6),
  3052. 26: uint32(0x9799263c),
  3053. 27: uint32(0x762f74d3),
  3054. 28: uint32(0x12255a32),
  3055. 29: uint32(0xf39308dd),
  3056. 30: uint32(0x914e8e37),
  3057. 31: uint32(0x70f8dcd8),
  3058. 32: uint32(0x30b8465d),
  3059. 33: uint32(0xd10e14b2),
  3060. 34: uint32(0xb3d39258),
  3061. 35: uint32(0x5265c0b7),
  3062. 36: uint32(0x366fee56),
  3063. 37: uint32(0xd7d9bcb9),
  3064. 38: uint32(0xb5043a53),
  3065. 39: uint32(0x54b268bc),
  3066. 40: uint32(0x3c16174a),
  3067. 41: uint32(0xdda045a5),
  3068. 42: uint32(0xbf7dc34f),
  3069. 43: uint32(0x5ecb91a0),
  3070. 44: uint32(0x3ac1bf41),
  3071. 45: uint32(0xdb77edae),
  3072. 46: uint32(0xb9aa6b44),
  3073. 47: uint32(0x581c39ab),
  3074. 48: uint32(0x28e4e573),
  3075. 49: uint32(0xc952b79c),
  3076. 50: uint32(0xab8f3176),
  3077. 51: uint32(0x4a396399),
  3078. 52: uint32(0x2e334d78),
  3079. 53: uint32(0xcf851f97),
  3080. 54: uint32(0xad58997d),
  3081. 55: uint32(0x4ceecb92),
  3082. 56: uint32(0x244ab464),
  3083. 57: uint32(0xc5fce68b),
  3084. 58: uint32(0xa7216061),
  3085. 59: uint32(0x4697328e),
  3086. 60: uint32(0x229d1c6f),
  3087. 61: uint32(0xc32b4e80),
  3088. 62: uint32(0xa1f6c86a),
  3089. 63: uint32(0x40409a85),
  3090. 64: uint32(0x60708dba),
  3091. 65: uint32(0x81c6df55),
  3092. 66: uint32(0xe31b59bf),
  3093. 67: uint32(0x02ad0b50),
  3094. 68: uint32(0x66a725b1),
  3095. 69: uint32(0x8711775e),
  3096. 70: uint32(0xe5ccf1b4),
  3097. 71: uint32(0x047aa35b),
  3098. 72: uint32(0x6cdedcad),
  3099. 73: uint32(0x8d688e42),
  3100. 74: uint32(0xefb508a8),
  3101. 75: uint32(0x0e035a47),
  3102. 76: uint32(0x6a0974a6),
  3103. 77: uint32(0x8bbf2649),
  3104. 78: uint32(0xe962a0a3),
  3105. 79: uint32(0x08d4f24c),
  3106. 80: uint32(0x782c2e94),
  3107. 81: uint32(0x999a7c7b),
  3108. 82: uint32(0xfb47fa91),
  3109. 83: uint32(0x1af1a87e),
  3110. 84: uint32(0x7efb869f),
  3111. 85: uint32(0x9f4dd470),
  3112. 86: uint32(0xfd90529a),
  3113. 87: uint32(0x1c260075),
  3114. 88: uint32(0x74827f83),
  3115. 89: uint32(0x95342d6c),
  3116. 90: uint32(0xf7e9ab86),
  3117. 91: uint32(0x165ff969),
  3118. 92: uint32(0x7255d788),
  3119. 93: uint32(0x93e38567),
  3120. 94: uint32(0xf13e038d),
  3121. 95: uint32(0x10885162),
  3122. 96: uint32(0x50c8cbe7),
  3123. 97: uint32(0xb17e9908),
  3124. 98: uint32(0xd3a31fe2),
  3125. 99: uint32(0x32154d0d),
  3126. 100: uint32(0x561f63ec),
  3127. 101: uint32(0xb7a93103),
  3128. 102: uint32(0xd574b7e9),
  3129. 103: uint32(0x34c2e506),
  3130. 104: uint32(0x5c669af0),
  3131. 105: uint32(0xbdd0c81f),
  3132. 106: uint32(0xdf0d4ef5),
  3133. 107: uint32(0x3ebb1c1a),
  3134. 108: uint32(0x5ab132fb),
  3135. 109: uint32(0xbb076014),
  3136. 110: uint32(0xd9dae6fe),
  3137. 111: uint32(0x386cb411),
  3138. 112: uint32(0x489468c9),
  3139. 113: uint32(0xa9223a26),
  3140. 114: uint32(0xcbffbccc),
  3141. 115: uint32(0x2a49ee23),
  3142. 116: uint32(0x4e43c0c2),
  3143. 117: uint32(0xaff5922d),
  3144. 118: uint32(0xcd2814c7),
  3145. 119: uint32(0x2c9e4628),
  3146. 120: uint32(0x443a39de),
  3147. 121: uint32(0xa58c6b31),
  3148. 122: uint32(0xc751eddb),
  3149. 123: uint32(0x26e7bf34),
  3150. 124: uint32(0x42ed91d5),
  3151. 125: uint32(0xa35bc33a),
  3152. 126: uint32(0xc18645d0),
  3153. 127: uint32(0x2030173f),
  3154. 128: uint32(0x81e66bae),
  3155. 129: uint32(0x60503941),
  3156. 130: uint32(0x028dbfab),
  3157. 131: uint32(0xe33bed44),
  3158. 132: uint32(0x8731c3a5),
  3159. 133: uint32(0x6687914a),
  3160. 134: uint32(0x045a17a0),
  3161. 135: uint32(0xe5ec454f),
  3162. 136: uint32(0x8d483ab9),
  3163. 137: uint32(0x6cfe6856),
  3164. 138: uint32(0x0e23eebc),
  3165. 139: uint32(0xef95bc53),
  3166. 140: uint32(0x8b9f92b2),
  3167. 141: uint32(0x6a29c05d),
  3168. 142: uint32(0x08f446b7),
  3169. 143: uint32(0xe9421458),
  3170. 144: uint32(0x99bac880),
  3171. 145: uint32(0x780c9a6f),
  3172. 146: uint32(0x1ad11c85),
  3173. 147: uint32(0xfb674e6a),
  3174. 148: uint32(0x9f6d608b),
  3175. 149: uint32(0x7edb3264),
  3176. 150: uint32(0x1c06b48e),
  3177. 151: uint32(0xfdb0e661),
  3178. 152: uint32(0x95149997),
  3179. 153: uint32(0x74a2cb78),
  3180. 154: uint32(0x167f4d92),
  3181. 155: uint32(0xf7c91f7d),
  3182. 156: uint32(0x93c3319c),
  3183. 157: uint32(0x72756373),
  3184. 158: uint32(0x10a8e599),
  3185. 159: uint32(0xf11eb776),
  3186. 160: uint32(0xb15e2df3),
  3187. 161: uint32(0x50e87f1c),
  3188. 162: uint32(0x3235f9f6),
  3189. 163: uint32(0xd383ab19),
  3190. 164: uint32(0xb78985f8),
  3191. 165: uint32(0x563fd717),
  3192. 166: uint32(0x34e251fd),
  3193. 167: uint32(0xd5540312),
  3194. 168: uint32(0xbdf07ce4),
  3195. 169: uint32(0x5c462e0b),
  3196. 170: uint32(0x3e9ba8e1),
  3197. 171: uint32(0xdf2dfa0e),
  3198. 172: uint32(0xbb27d4ef),
  3199. 173: uint32(0x5a918600),
  3200. 174: uint32(0x384c00ea),
  3201. 175: uint32(0xd9fa5205),
  3202. 176: uint32(0xa9028edd),
  3203. 177: uint32(0x48b4dc32),
  3204. 178: uint32(0x2a695ad8),
  3205. 179: uint32(0xcbdf0837),
  3206. 180: uint32(0xafd526d6),
  3207. 181: uint32(0x4e637439),
  3208. 182: uint32(0x2cbef2d3),
  3209. 183: uint32(0xcd08a03c),
  3210. 184: uint32(0xa5acdfca),
  3211. 185: uint32(0x441a8d25),
  3212. 186: uint32(0x26c70bcf),
  3213. 187: uint32(0xc7715920),
  3214. 188: uint32(0xa37b77c1),
  3215. 189: uint32(0x42cd252e),
  3216. 190: uint32(0x2010a3c4),
  3217. 191: uint32(0xc1a6f12b),
  3218. 192: uint32(0xe196e614),
  3219. 193: uint32(0x0020b4fb),
  3220. 194: uint32(0x62fd3211),
  3221. 195: uint32(0x834b60fe),
  3222. 196: uint32(0xe7414e1f),
  3223. 197: uint32(0x06f71cf0),
  3224. 198: uint32(0x642a9a1a),
  3225. 199: uint32(0x859cc8f5),
  3226. 200: uint32(0xed38b703),
  3227. 201: uint32(0x0c8ee5ec),
  3228. 202: uint32(0x6e536306),
  3229. 203: uint32(0x8fe531e9),
  3230. 204: uint32(0xebef1f08),
  3231. 205: uint32(0x0a594de7),
  3232. 206: uint32(0x6884cb0d),
  3233. 207: uint32(0x893299e2),
  3234. 208: uint32(0xf9ca453a),
  3235. 209: uint32(0x187c17d5),
  3236. 210: uint32(0x7aa1913f),
  3237. 211: uint32(0x9b17c3d0),
  3238. 212: uint32(0xff1ded31),
  3239. 213: uint32(0x1eabbfde),
  3240. 214: uint32(0x7c763934),
  3241. 215: uint32(0x9dc06bdb),
  3242. 216: uint32(0xf564142d),
  3243. 217: uint32(0x14d246c2),
  3244. 218: uint32(0x760fc028),
  3245. 219: uint32(0x97b992c7),
  3246. 220: uint32(0xf3b3bc26),
  3247. 221: uint32(0x1205eec9),
  3248. 222: uint32(0x70d86823),
  3249. 223: uint32(0x916e3acc),
  3250. 224: uint32(0xd12ea049),
  3251. 225: uint32(0x3098f2a6),
  3252. 226: uint32(0x5245744c),
  3253. 227: uint32(0xb3f326a3),
  3254. 228: uint32(0xd7f90842),
  3255. 229: uint32(0x364f5aad),
  3256. 230: uint32(0x5492dc47),
  3257. 231: uint32(0xb5248ea8),
  3258. 232: uint32(0xdd80f15e),
  3259. 233: uint32(0x3c36a3b1),
  3260. 234: uint32(0x5eeb255b),
  3261. 235: uint32(0xbf5d77b4),
  3262. 236: uint32(0xdb575955),
  3263. 237: uint32(0x3ae10bba),
  3264. 238: uint32(0x583c8d50),
  3265. 239: uint32(0xb98adfbf),
  3266. 240: uint32(0xc9720367),
  3267. 241: uint32(0x28c45188),
  3268. 242: uint32(0x4a19d762),
  3269. 243: uint32(0xabaf858d),
  3270. 244: uint32(0xcfa5ab6c),
  3271. 245: uint32(0x2e13f983),
  3272. 246: uint32(0x4cce7f69),
  3273. 247: uint32(0xad782d86),
  3274. 248: uint32(0xc5dc5270),
  3275. 249: uint32(0x246a009f),
  3276. 250: uint32(0x46b78675),
  3277. 251: uint32(0xa701d49a),
  3278. 252: uint32(0xc30bfa7b),
  3279. 253: uint32(0x22bda894),
  3280. 254: uint32(0x40602e7e),
  3281. 255: uint32(0xa1d67c91),
  3282. },
  3283. 2: {
  3284. 1: uint32(0x5880e2d7),
  3285. 2: uint32(0xf106b474),
  3286. 3: uint32(0xa98656a3),
  3287. 4: uint32(0xe20d68e9),
  3288. 5: uint32(0xba8d8a3e),
  3289. 6: uint32(0x130bdc9d),
  3290. 7: uint32(0x4b8b3e4a),
  3291. 8: uint32(0x851da109),
  3292. 9: uint32(0xdd9d43de),
  3293. 10: uint32(0x741b157d),
  3294. 11: uint32(0x2c9bf7aa),
  3295. 12: uint32(0x6710c9e0),
  3296. 13: uint32(0x3f902b37),
  3297. 14: uint32(0x96167d94),
  3298. 15: uint32(0xce969f43),
  3299. 16: uint32(0x0a3b4213),
  3300. 17: uint32(0x52bba0c4),
  3301. 18: uint32(0xfb3df667),
  3302. 19: uint32(0xa3bd14b0),
  3303. 20: uint32(0xe8362afa),
  3304. 21: uint32(0xb0b6c82d),
  3305. 22: uint32(0x19309e8e),
  3306. 23: uint32(0x41b07c59),
  3307. 24: uint32(0x8f26e31a),
  3308. 25: uint32(0xd7a601cd),
  3309. 26: uint32(0x7e20576e),
  3310. 27: uint32(0x26a0b5b9),
  3311. 28: uint32(0x6d2b8bf3),
  3312. 29: uint32(0x35ab6924),
  3313. 30: uint32(0x9c2d3f87),
  3314. 31: uint32(0xc4addd50),
  3315. 32: uint32(0x14768426),
  3316. 33: uint32(0x4cf666f1),
  3317. 34: uint32(0xe5703052),
  3318. 35: uint32(0xbdf0d285),
  3319. 36: uint32(0xf67beccf),
  3320. 37: uint32(0xaefb0e18),
  3321. 38: uint32(0x077d58bb),
  3322. 39: uint32(0x5ffdba6c),
  3323. 40: uint32(0x916b252f),
  3324. 41: uint32(0xc9ebc7f8),
  3325. 42: uint32(0x606d915b),
  3326. 43: uint32(0x38ed738c),
  3327. 44: uint32(0x73664dc6),
  3328. 45: uint32(0x2be6af11),
  3329. 46: uint32(0x8260f9b2),
  3330. 47: uint32(0xdae01b65),
  3331. 48: uint32(0x1e4dc635),
  3332. 49: uint32(0x46cd24e2),
  3333. 50: uint32(0xef4b7241),
  3334. 51: uint32(0xb7cb9096),
  3335. 52: uint32(0xfc40aedc),
  3336. 53: uint32(0xa4c04c0b),
  3337. 54: uint32(0x0d461aa8),
  3338. 55: uint32(0x55c6f87f),
  3339. 56: uint32(0x9b50673c),
  3340. 57: uint32(0xc3d085eb),
  3341. 58: uint32(0x6a56d348),
  3342. 59: uint32(0x32d6319f),
  3343. 60: uint32(0x795d0fd5),
  3344. 61: uint32(0x21dded02),
  3345. 62: uint32(0x885bbba1),
  3346. 63: uint32(0xd0db5976),
  3347. 64: uint32(0x28ec084d),
  3348. 65: uint32(0x706cea9a),
  3349. 66: uint32(0xd9eabc39),
  3350. 67: uint32(0x816a5eee),
  3351. 68: uint32(0xcae160a4),
  3352. 69: uint32(0x92618273),
  3353. 70: uint32(0x3be7d4d0),
  3354. 71: uint32(0x63673607),
  3355. 72: uint32(0xadf1a944),
  3356. 73: uint32(0xf5714b93),
  3357. 74: uint32(0x5cf71d30),
  3358. 75: uint32(0x0477ffe7),
  3359. 76: uint32(0x4ffcc1ad),
  3360. 77: uint32(0x177c237a),
  3361. 78: uint32(0xbefa75d9),
  3362. 79: uint32(0xe67a970e),
  3363. 80: uint32(0x22d74a5e),
  3364. 81: uint32(0x7a57a889),
  3365. 82: uint32(0xd3d1fe2a),
  3366. 83: uint32(0x8b511cfd),
  3367. 84: uint32(0xc0da22b7),
  3368. 85: uint32(0x985ac060),
  3369. 86: uint32(0x31dc96c3),
  3370. 87: uint32(0x695c7414),
  3371. 88: uint32(0xa7caeb57),
  3372. 89: uint32(0xff4a0980),
  3373. 90: uint32(0x56cc5f23),
  3374. 91: uint32(0x0e4cbdf4),
  3375. 92: uint32(0x45c783be),
  3376. 93: uint32(0x1d476169),
  3377. 94: uint32(0xb4c137ca),
  3378. 95: uint32(0xec41d51d),
  3379. 96: uint32(0x3c9a8c6b),
  3380. 97: uint32(0x641a6ebc),
  3381. 98: uint32(0xcd9c381f),
  3382. 99: uint32(0x951cdac8),
  3383. 100: uint32(0xde97e482),
  3384. 101: uint32(0x86170655),
  3385. 102: uint32(0x2f9150f6),
  3386. 103: uint32(0x7711b221),
  3387. 104: uint32(0xb9872d62),
  3388. 105: uint32(0xe107cfb5),
  3389. 106: uint32(0x48819916),
  3390. 107: uint32(0x10017bc1),
  3391. 108: uint32(0x5b8a458b),
  3392. 109: uint32(0x030aa75c),
  3393. 110: uint32(0xaa8cf1ff),
  3394. 111: uint32(0xf20c1328),
  3395. 112: uint32(0x36a1ce78),
  3396. 113: uint32(0x6e212caf),
  3397. 114: uint32(0xc7a77a0c),
  3398. 115: uint32(0x9f2798db),
  3399. 116: uint32(0xd4aca691),
  3400. 117: uint32(0x8c2c4446),
  3401. 118: uint32(0x25aa12e5),
  3402. 119: uint32(0x7d2af032),
  3403. 120: uint32(0xb3bc6f71),
  3404. 121: uint32(0xeb3c8da6),
  3405. 122: uint32(0x42badb05),
  3406. 123: uint32(0x1a3a39d2),
  3407. 124: uint32(0x51b10798),
  3408. 125: uint32(0x0931e54f),
  3409. 126: uint32(0xa0b7b3ec),
  3410. 127: uint32(0xf837513b),
  3411. 128: uint32(0x50d8119a),
  3412. 129: uint32(0x0858f34d),
  3413. 130: uint32(0xa1dea5ee),
  3414. 131: uint32(0xf95e4739),
  3415. 132: uint32(0xb2d57973),
  3416. 133: uint32(0xea559ba4),
  3417. 134: uint32(0x43d3cd07),
  3418. 135: uint32(0x1b532fd0),
  3419. 136: uint32(0xd5c5b093),
  3420. 137: uint32(0x8d455244),
  3421. 138: uint32(0x24c304e7),
  3422. 139: uint32(0x7c43e630),
  3423. 140: uint32(0x37c8d87a),
  3424. 141: uint32(0x6f483aad),
  3425. 142: uint32(0xc6ce6c0e),
  3426. 143: uint32(0x9e4e8ed9),
  3427. 144: uint32(0x5ae35389),
  3428. 145: uint32(0x0263b15e),
  3429. 146: uint32(0xabe5e7fd),
  3430. 147: uint32(0xf365052a),
  3431. 148: uint32(0xb8ee3b60),
  3432. 149: uint32(0xe06ed9b7),
  3433. 150: uint32(0x49e88f14),
  3434. 151: uint32(0x11686dc3),
  3435. 152: uint32(0xdffef280),
  3436. 153: uint32(0x877e1057),
  3437. 154: uint32(0x2ef846f4),
  3438. 155: uint32(0x7678a423),
  3439. 156: uint32(0x3df39a69),
  3440. 157: uint32(0x657378be),
  3441. 158: uint32(0xccf52e1d),
  3442. 159: uint32(0x9475ccca),
  3443. 160: uint32(0x44ae95bc),
  3444. 161: uint32(0x1c2e776b),
  3445. 162: uint32(0xb5a821c8),
  3446. 163: uint32(0xed28c31f),
  3447. 164: uint32(0xa6a3fd55),
  3448. 165: uint32(0xfe231f82),
  3449. 166: uint32(0x57a54921),
  3450. 167: uint32(0x0f25abf6),
  3451. 168: uint32(0xc1b334b5),
  3452. 169: uint32(0x9933d662),
  3453. 170: uint32(0x30b580c1),
  3454. 171: uint32(0x68356216),
  3455. 172: uint32(0x23be5c5c),
  3456. 173: uint32(0x7b3ebe8b),
  3457. 174: uint32(0xd2b8e828),
  3458. 175: uint32(0x8a380aff),
  3459. 176: uint32(0x4e95d7af),
  3460. 177: uint32(0x16153578),
  3461. 178: uint32(0xbf9363db),
  3462. 179: uint32(0xe713810c),
  3463. 180: uint32(0xac98bf46),
  3464. 181: uint32(0xf4185d91),
  3465. 182: uint32(0x5d9e0b32),
  3466. 183: uint32(0x051ee9e5),
  3467. 184: uint32(0xcb8876a6),
  3468. 185: uint32(0x93089471),
  3469. 186: uint32(0x3a8ec2d2),
  3470. 187: uint32(0x620e2005),
  3471. 188: uint32(0x29851e4f),
  3472. 189: uint32(0x7105fc98),
  3473. 190: uint32(0xd883aa3b),
  3474. 191: uint32(0x800348ec),
  3475. 192: uint32(0x783419d7),
  3476. 193: uint32(0x20b4fb00),
  3477. 194: uint32(0x8932ada3),
  3478. 195: uint32(0xd1b24f74),
  3479. 196: uint32(0x9a39713e),
  3480. 197: uint32(0xc2b993e9),
  3481. 198: uint32(0x6b3fc54a),
  3482. 199: uint32(0x33bf279d),
  3483. 200: uint32(0xfd29b8de),
  3484. 201: uint32(0xa5a95a09),
  3485. 202: uint32(0x0c2f0caa),
  3486. 203: uint32(0x54afee7d),
  3487. 204: uint32(0x1f24d037),
  3488. 205: uint32(0x47a432e0),
  3489. 206: uint32(0xee226443),
  3490. 207: uint32(0xb6a28694),
  3491. 208: uint32(0x720f5bc4),
  3492. 209: uint32(0x2a8fb913),
  3493. 210: uint32(0x8309efb0),
  3494. 211: uint32(0xdb890d67),
  3495. 212: uint32(0x9002332d),
  3496. 213: uint32(0xc882d1fa),
  3497. 214: uint32(0x61048759),
  3498. 215: uint32(0x3984658e),
  3499. 216: uint32(0xf712facd),
  3500. 217: uint32(0xaf92181a),
  3501. 218: uint32(0x06144eb9),
  3502. 219: uint32(0x5e94ac6e),
  3503. 220: uint32(0x151f9224),
  3504. 221: uint32(0x4d9f70f3),
  3505. 222: uint32(0xe4192650),
  3506. 223: uint32(0xbc99c487),
  3507. 224: uint32(0x6c429df1),
  3508. 225: uint32(0x34c27f26),
  3509. 226: uint32(0x9d442985),
  3510. 227: uint32(0xc5c4cb52),
  3511. 228: uint32(0x8e4ff518),
  3512. 229: uint32(0xd6cf17cf),
  3513. 230: uint32(0x7f49416c),
  3514. 231: uint32(0x27c9a3bb),
  3515. 232: uint32(0xe95f3cf8),
  3516. 233: uint32(0xb1dfde2f),
  3517. 234: uint32(0x1859888c),
  3518. 235: uint32(0x40d96a5b),
  3519. 236: uint32(0x0b525411),
  3520. 237: uint32(0x53d2b6c6),
  3521. 238: uint32(0xfa54e065),
  3522. 239: uint32(0xa2d402b2),
  3523. 240: uint32(0x6679dfe2),
  3524. 241: uint32(0x3ef93d35),
  3525. 242: uint32(0x977f6b96),
  3526. 243: uint32(0xcfff8941),
  3527. 244: uint32(0x8474b70b),
  3528. 245: uint32(0xdcf455dc),
  3529. 246: uint32(0x7572037f),
  3530. 247: uint32(0x2df2e1a8),
  3531. 248: uint32(0xe3647eeb),
  3532. 249: uint32(0xbbe49c3c),
  3533. 250: uint32(0x1262ca9f),
  3534. 251: uint32(0x4ae22848),
  3535. 252: uint32(0x01691602),
  3536. 253: uint32(0x59e9f4d5),
  3537. 254: uint32(0xf06fa276),
  3538. 255: uint32(0xa8ef40a1),
  3539. },
  3540. 3: {
  3541. 1: uint32(0x463b6765),
  3542. 2: uint32(0x8c76ceca),
  3543. 3: uint32(0xca4da9af),
  3544. 4: uint32(0x59ebed4e),
  3545. 5: uint32(0x1fd08a2b),
  3546. 6: uint32(0xd59d2384),
  3547. 7: uint32(0x93a644e1),
  3548. 8: uint32(0xb2d6db9d),
  3549. 9: uint32(0xf4edbcf8),
  3550. 10: uint32(0x3ea01557),
  3551. 11: uint32(0x789b7232),
  3552. 12: uint32(0xeb3d36d3),
  3553. 13: uint32(0xad0651b6),
  3554. 14: uint32(0x674bf819),
  3555. 15: uint32(0x21709f7c),
  3556. 16: uint32(0x25abc6e0),
  3557. 17: uint32(0x6390a185),
  3558. 18: uint32(0xa9dd082a),
  3559. 19: uint32(0xefe66f4f),
  3560. 20: uint32(0x7c402bae),
  3561. 21: uint32(0x3a7b4ccb),
  3562. 22: uint32(0xf036e564),
  3563. 23: uint32(0xb60d8201),
  3564. 24: uint32(0x977d1d7d),
  3565. 25: uint32(0xd1467a18),
  3566. 26: uint32(0x1b0bd3b7),
  3567. 27: uint32(0x5d30b4d2),
  3568. 28: uint32(0xce96f033),
  3569. 29: uint32(0x88ad9756),
  3570. 30: uint32(0x42e03ef9),
  3571. 31: uint32(0x04db599c),
  3572. 32: uint32(0x0b50fc1a),
  3573. 33: uint32(0x4d6b9b7f),
  3574. 34: uint32(0x872632d0),
  3575. 35: uint32(0xc11d55b5),
  3576. 36: uint32(0x52bb1154),
  3577. 37: uint32(0x14807631),
  3578. 38: uint32(0xdecddf9e),
  3579. 39: uint32(0x98f6b8fb),
  3580. 40: uint32(0xb9862787),
  3581. 41: uint32(0xffbd40e2),
  3582. 42: uint32(0x35f0e94d),
  3583. 43: uint32(0x73cb8e28),
  3584. 44: uint32(0xe06dcac9),
  3585. 45: uint32(0xa656adac),
  3586. 46: uint32(0x6c1b0403),
  3587. 47: uint32(0x2a206366),
  3588. 48: uint32(0x2efb3afa),
  3589. 49: uint32(0x68c05d9f),
  3590. 50: uint32(0xa28df430),
  3591. 51: uint32(0xe4b69355),
  3592. 52: uint32(0x7710d7b4),
  3593. 53: uint32(0x312bb0d1),
  3594. 54: uint32(0xfb66197e),
  3595. 55: uint32(0xbd5d7e1b),
  3596. 56: uint32(0x9c2de167),
  3597. 57: uint32(0xda168602),
  3598. 58: uint32(0x105b2fad),
  3599. 59: uint32(0x566048c8),
  3600. 60: uint32(0xc5c60c29),
  3601. 61: uint32(0x83fd6b4c),
  3602. 62: uint32(0x49b0c2e3),
  3603. 63: uint32(0x0f8ba586),
  3604. 64: uint32(0x16a0f835),
  3605. 65: uint32(0x509b9f50),
  3606. 66: uint32(0x9ad636ff),
  3607. 67: uint32(0xdced519a),
  3608. 68: uint32(0x4f4b157b),
  3609. 69: uint32(0x0970721e),
  3610. 70: uint32(0xc33ddbb1),
  3611. 71: uint32(0x8506bcd4),
  3612. 72: uint32(0xa47623a8),
  3613. 73: uint32(0xe24d44cd),
  3614. 74: uint32(0x2800ed62),
  3615. 75: uint32(0x6e3b8a07),
  3616. 76: uint32(0xfd9dcee6),
  3617. 77: uint32(0xbba6a983),
  3618. 78: uint32(0x71eb002c),
  3619. 79: uint32(0x37d06749),
  3620. 80: uint32(0x330b3ed5),
  3621. 81: uint32(0x753059b0),
  3622. 82: uint32(0xbf7df01f),
  3623. 83: uint32(0xf946977a),
  3624. 84: uint32(0x6ae0d39b),
  3625. 85: uint32(0x2cdbb4fe),
  3626. 86: uint32(0xe6961d51),
  3627. 87: uint32(0xa0ad7a34),
  3628. 88: uint32(0x81dde548),
  3629. 89: uint32(0xc7e6822d),
  3630. 90: uint32(0x0dab2b82),
  3631. 91: uint32(0x4b904ce7),
  3632. 92: uint32(0xd8360806),
  3633. 93: uint32(0x9e0d6f63),
  3634. 94: uint32(0x5440c6cc),
  3635. 95: uint32(0x127ba1a9),
  3636. 96: uint32(0x1df0042f),
  3637. 97: uint32(0x5bcb634a),
  3638. 98: uint32(0x9186cae5),
  3639. 99: uint32(0xd7bdad80),
  3640. 100: uint32(0x441be961),
  3641. 101: uint32(0x02208e04),
  3642. 102: uint32(0xc86d27ab),
  3643. 103: uint32(0x8e5640ce),
  3644. 104: uint32(0xaf26dfb2),
  3645. 105: uint32(0xe91db8d7),
  3646. 106: uint32(0x23501178),
  3647. 107: uint32(0x656b761d),
  3648. 108: uint32(0xf6cd32fc),
  3649. 109: uint32(0xb0f65599),
  3650. 110: uint32(0x7abbfc36),
  3651. 111: uint32(0x3c809b53),
  3652. 112: uint32(0x385bc2cf),
  3653. 113: uint32(0x7e60a5aa),
  3654. 114: uint32(0xb42d0c05),
  3655. 115: uint32(0xf2166b60),
  3656. 116: uint32(0x61b02f81),
  3657. 117: uint32(0x278b48e4),
  3658. 118: uint32(0xedc6e14b),
  3659. 119: uint32(0xabfd862e),
  3660. 120: uint32(0x8a8d1952),
  3661. 121: uint32(0xccb67e37),
  3662. 122: uint32(0x06fbd798),
  3663. 123: uint32(0x40c0b0fd),
  3664. 124: uint32(0xd366f41c),
  3665. 125: uint32(0x955d9379),
  3666. 126: uint32(0x5f103ad6),
  3667. 127: uint32(0x192b5db3),
  3668. 128: uint32(0x2c40f16b),
  3669. 129: uint32(0x6a7b960e),
  3670. 130: uint32(0xa0363fa1),
  3671. 131: uint32(0xe60d58c4),
  3672. 132: uint32(0x75ab1c25),
  3673. 133: uint32(0x33907b40),
  3674. 134: uint32(0xf9ddd2ef),
  3675. 135: uint32(0xbfe6b58a),
  3676. 136: uint32(0x9e962af6),
  3677. 137: uint32(0xd8ad4d93),
  3678. 138: uint32(0x12e0e43c),
  3679. 139: uint32(0x54db8359),
  3680. 140: uint32(0xc77dc7b8),
  3681. 141: uint32(0x8146a0dd),
  3682. 142: uint32(0x4b0b0972),
  3683. 143: uint32(0x0d306e17),
  3684. 144: uint32(0x09eb378b),
  3685. 145: uint32(0x4fd050ee),
  3686. 146: uint32(0x859df941),
  3687. 147: uint32(0xc3a69e24),
  3688. 148: uint32(0x5000dac5),
  3689. 149: uint32(0x163bbda0),
  3690. 150: uint32(0xdc76140f),
  3691. 151: uint32(0x9a4d736a),
  3692. 152: uint32(0xbb3dec16),
  3693. 153: uint32(0xfd068b73),
  3694. 154: uint32(0x374b22dc),
  3695. 155: uint32(0x717045b9),
  3696. 156: uint32(0xe2d60158),
  3697. 157: uint32(0xa4ed663d),
  3698. 158: uint32(0x6ea0cf92),
  3699. 159: uint32(0x289ba8f7),
  3700. 160: uint32(0x27100d71),
  3701. 161: uint32(0x612b6a14),
  3702. 162: uint32(0xab66c3bb),
  3703. 163: uint32(0xed5da4de),
  3704. 164: uint32(0x7efbe03f),
  3705. 165: uint32(0x38c0875a),
  3706. 166: uint32(0xf28d2ef5),
  3707. 167: uint32(0xb4b64990),
  3708. 168: uint32(0x95c6d6ec),
  3709. 169: uint32(0xd3fdb189),
  3710. 170: uint32(0x19b01826),
  3711. 171: uint32(0x5f8b7f43),
  3712. 172: uint32(0xcc2d3ba2),
  3713. 173: uint32(0x8a165cc7),
  3714. 174: uint32(0x405bf568),
  3715. 175: uint32(0x0660920d),
  3716. 176: uint32(0x02bbcb91),
  3717. 177: uint32(0x4480acf4),
  3718. 178: uint32(0x8ecd055b),
  3719. 179: uint32(0xc8f6623e),
  3720. 180: uint32(0x5b5026df),
  3721. 181: uint32(0x1d6b41ba),
  3722. 182: uint32(0xd726e815),
  3723. 183: uint32(0x911d8f70),
  3724. 184: uint32(0xb06d100c),
  3725. 185: uint32(0xf6567769),
  3726. 186: uint32(0x3c1bdec6),
  3727. 187: uint32(0x7a20b9a3),
  3728. 188: uint32(0xe986fd42),
  3729. 189: uint32(0xafbd9a27),
  3730. 190: uint32(0x65f03388),
  3731. 191: uint32(0x23cb54ed),
  3732. 192: uint32(0x3ae0095e),
  3733. 193: uint32(0x7cdb6e3b),
  3734. 194: uint32(0xb696c794),
  3735. 195: uint32(0xf0ada0f1),
  3736. 196: uint32(0x630be410),
  3737. 197: uint32(0x25308375),
  3738. 198: uint32(0xef7d2ada),
  3739. 199: uint32(0xa9464dbf),
  3740. 200: uint32(0x8836d2c3),
  3741. 201: uint32(0xce0db5a6),
  3742. 202: uint32(0x04401c09),
  3743. 203: uint32(0x427b7b6c),
  3744. 204: uint32(0xd1dd3f8d),
  3745. 205: uint32(0x97e658e8),
  3746. 206: uint32(0x5dabf147),
  3747. 207: uint32(0x1b909622),
  3748. 208: uint32(0x1f4bcfbe),
  3749. 209: uint32(0x5970a8db),
  3750. 210: uint32(0x933d0174),
  3751. 211: uint32(0xd5066611),
  3752. 212: uint32(0x46a022f0),
  3753. 213: uint32(0x009b4595),
  3754. 214: uint32(0xcad6ec3a),
  3755. 215: uint32(0x8ced8b5f),
  3756. 216: uint32(0xad9d1423),
  3757. 217: uint32(0xeba67346),
  3758. 218: uint32(0x21ebdae9),
  3759. 219: uint32(0x67d0bd8c),
  3760. 220: uint32(0xf476f96d),
  3761. 221: uint32(0xb24d9e08),
  3762. 222: uint32(0x780037a7),
  3763. 223: uint32(0x3e3b50c2),
  3764. 224: uint32(0x31b0f544),
  3765. 225: uint32(0x778b9221),
  3766. 226: uint32(0xbdc63b8e),
  3767. 227: uint32(0xfbfd5ceb),
  3768. 228: uint32(0x685b180a),
  3769. 229: uint32(0x2e607f6f),
  3770. 230: uint32(0xe42dd6c0),
  3771. 231: uint32(0xa216b1a5),
  3772. 232: uint32(0x83662ed9),
  3773. 233: uint32(0xc55d49bc),
  3774. 234: uint32(0x0f10e013),
  3775. 235: uint32(0x492b8776),
  3776. 236: uint32(0xda8dc397),
  3777. 237: uint32(0x9cb6a4f2),
  3778. 238: uint32(0x56fb0d5d),
  3779. 239: uint32(0x10c06a38),
  3780. 240: uint32(0x141b33a4),
  3781. 241: uint32(0x522054c1),
  3782. 242: uint32(0x986dfd6e),
  3783. 243: uint32(0xde569a0b),
  3784. 244: uint32(0x4df0deea),
  3785. 245: uint32(0x0bcbb98f),
  3786. 246: uint32(0xc1861020),
  3787. 247: uint32(0x87bd7745),
  3788. 248: uint32(0xa6cde839),
  3789. 249: uint32(0xe0f68f5c),
  3790. 250: uint32(0x2abb26f3),
  3791. 251: uint32(0x6c804196),
  3792. 252: uint32(0xff260577),
  3793. 253: uint32(0xb91d6212),
  3794. 254: uint32(0x7350cbbd),
  3795. 255: uint32(0x356bacd8),
  3796. },
  3797. }
  3798. var _x2n_table = [32]Tz_crc_t{
  3799. 0: uint32(0x40000000),
  3800. 1: uint32(0x20000000),
  3801. 2: uint32(0x08000000),
  3802. 3: uint32(0x00800000),
  3803. 4: uint32(0x00008000),
  3804. 5: uint32(0xedb88320),
  3805. 6: uint32(0xb1e6b092),
  3806. 7: uint32(0xa06a2517),
  3807. 8: uint32(0xed627dae),
  3808. 9: uint32(0x88d14467),
  3809. 10: uint32(0xd7bbfe6a),
  3810. 11: uint32(0xec447f11),
  3811. 12: uint32(0x8e7ea170),
  3812. 13: uint32(0x6427800e),
  3813. 14: uint32(0x4d47bae0),
  3814. 15: uint32(0x09fe548f),
  3815. 16: uint32(0x83852d0f),
  3816. 17: uint32(0x30362f1a),
  3817. 18: uint32(0x7b5a9cc3),
  3818. 19: uint32(0x31fec169),
  3819. 20: uint32(0x9fec022a),
  3820. 21: uint32(0x6c8dedc4),
  3821. 22: uint32(0x15d6874d),
  3822. 23: uint32(0x5fde7a4e),
  3823. 24: uint32(0xbad90e37),
  3824. 25: uint32(0x2e4e5eef),
  3825. 26: uint32(0x4eaba214),
  3826. 27: uint32(0xa8a472c0),
  3827. 28: uint32(0x429a969e),
  3828. 29: uint32(0x148d302a),
  3829. 30: uint32(0xc40ba6d0),
  3830. 31: uint32(0xc4e22c3c),
  3831. }
  3832. /* CRC polynomial. */
  3833. // C documentation
  3834. //
  3835. // /*
  3836. // Return a(x) multiplied by b(x) modulo p(x), where p(x) is the CRC polynomial,
  3837. // reflected. For speed, this requires that a not be zero.
  3838. // */
  3839. func _multmodp(tls *libc.TLS, a Tz_crc_t, b Tz_crc_t) (r Tz_crc_t) {
  3840. var m, p Tz_crc_t
  3841. var v2 uint32
  3842. _, _, _ = m, p, v2
  3843. m = libc.Uint32FromInt32(1) << libc.Int32FromInt32(31)
  3844. p = uint32(0)
  3845. for {
  3846. if a&m != 0 {
  3847. p ^= b
  3848. if a&(m-uint32(1)) == uint32(0) {
  3849. break
  3850. }
  3851. }
  3852. m >>= uint32(1)
  3853. if b&uint32(1) != 0 {
  3854. v2 = b>>libc.Int32FromInt32(1) ^ uint32(m_POLY)
  3855. } else {
  3856. v2 = b >> int32(1)
  3857. }
  3858. b = v2
  3859. goto _1
  3860. _1:
  3861. }
  3862. return p
  3863. }
  3864. // C documentation
  3865. //
  3866. // /*
  3867. // Return x^(n * 2^k) modulo p(x). Requires that x2n_table[] has been
  3868. // initialized.
  3869. // */
  3870. func _x2nmodp(tls *libc.TLS, n Toff_t, k uint32) (r Tz_crc_t) {
  3871. var p Tz_crc_t
  3872. _ = p
  3873. p = libc.Uint32FromInt32(1) << libc.Int32FromInt32(31) /* x^0 == 1 */
  3874. for n != 0 {
  3875. if n&int64(1) != 0 {
  3876. p = _multmodp(tls, _x2n_table[k&uint32(31)], p)
  3877. }
  3878. n >>= int64(1)
  3879. k++
  3880. }
  3881. return p
  3882. }
  3883. // C documentation
  3884. //
  3885. // /* =========================================================================
  3886. // * This function can be used by asm versions of crc32(), and to force the
  3887. // * generation of the CRC tables in a threaded application.
  3888. // */
  3889. func Xget_crc_table(tls *libc.TLS) (r uintptr) {
  3890. return uintptr(unsafe.Pointer(&_crc_table))
  3891. }
  3892. /* =========================================================================
  3893. * Use ARM machine instructions if available. This will compute the CRC about
  3894. * ten times faster than the braided calculation. This code does not check for
  3895. * the presence of the CRC instruction at run time. __ARM_FEATURE_CRC32 will
  3896. * only be defined if the compilation specifies an ARM processor architecture
  3897. * that has the instructions. For example, compiling with -march=armv8.1-a or
  3898. * -march=armv8-a+crc, or -march=native if the compile machine has the crc32
  3899. * instructions.
  3900. */
  3901. // C documentation
  3902. //
  3903. // /*
  3904. // Return the CRC of the W bytes in the word_t data, taking the
  3905. // least-significant byte of the word as the first byte of data, without any pre
  3906. // or post conditioning. This is used to combine the CRCs of each braid.
  3907. // */
  3908. func _crc_word(tls *libc.TLS, data Tz_word_t) (r Tz_crc_t) {
  3909. var k int32
  3910. _ = k
  3911. k = 0
  3912. for {
  3913. if !(k < int32(4)) {
  3914. break
  3915. }
  3916. data = data>>libc.Int32FromInt32(8) ^ _crc_table[data&uint32(0xff)]
  3917. goto _1
  3918. _1:
  3919. ;
  3920. k++
  3921. }
  3922. return data
  3923. }
  3924. func _crc_word_big(tls *libc.TLS, data Tz_word_t) (r Tz_word_t) {
  3925. var k int32
  3926. _ = k
  3927. k = 0
  3928. for {
  3929. if !(k < int32(4)) {
  3930. break
  3931. }
  3932. data = data<<libc.Int32FromInt32(8) ^ _crc_big_table[data>>((libc.Int32FromInt32(4)-libc.Int32FromInt32(1))<<libc.Int32FromInt32(3))&uint32(0xff)]
  3933. goto _1
  3934. _1:
  3935. ;
  3936. k++
  3937. }
  3938. return data
  3939. }
  3940. // C documentation
  3941. //
  3942. // /* ========================================================================= */
  3943. func Xcrc32_z(tls *libc.TLS, crc uint32, buf uintptr, len1 Tz_size_t) (r uint32) {
  3944. bp := tls.Alloc(16)
  3945. defer tls.Free(16)
  3946. var blks, v2, v4 Tz_size_t
  3947. var comb, crc01, crc11, crc21, crc31, crc41, word0, word01, word1, word11, word2, word21, word3, word31, word4, word41 Tz_word_t
  3948. var crc0, crc1, crc2, crc3, crc4 Tz_crc_t
  3949. var k int32
  3950. var words, v1, v10, v11, v12, v13, v14, v6, v7, v8, v9 uintptr
  3951. var _ /* endian at bp+0 */ uint32
  3952. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = 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
  3953. /* Return initial CRC, if requested. */
  3954. if buf == uintptr(m_Z_NULL) {
  3955. return uint32(0)
  3956. }
  3957. /* Pre-condition the CRC */
  3958. crc = ^crc & uint32(0xffffffff)
  3959. /* If provided enough bytes, do a braided CRC calculation. */
  3960. if len1 >= libc.Uint32FromInt32(libc.Int32FromInt32(m_N)*libc.Int32FromInt32(4)+libc.Int32FromInt32(4)-libc.Int32FromInt32(1)) {
  3961. /* Compute the CRC up to a z_word_t boundary. */
  3962. for len1 != 0 && uint32(buf)&libc.Uint32FromInt32(libc.Int32FromInt32(4)-libc.Int32FromInt32(1)) != uint32(0) {
  3963. len1--
  3964. v1 = buf
  3965. buf++
  3966. crc = crc>>int32(8) ^ _crc_table[(crc^uint32(*(*uint8)(unsafe.Pointer(v1))))&uint32(0xff)]
  3967. }
  3968. /* Compute the CRC on as many N z_word_t blocks as are available. */
  3969. blks = len1 / libc.Uint32FromInt32(libc.Int32FromInt32(m_N)*libc.Int32FromInt32(4))
  3970. len1 -= blks * uint32(m_N) * uint32(4)
  3971. words = buf
  3972. /* Do endian check at execution time instead of compile time, since ARM
  3973. processors can change the endianness at execution time. If the
  3974. compiler knows what the endianness will be, it can optimize out the
  3975. check and the unused branch. */
  3976. *(*uint32)(unsafe.Pointer(bp)) = uint32(1)
  3977. if *(*uint8)(unsafe.Pointer(bp)) != 0 {
  3978. /* Initialize the CRC for each braid. */
  3979. crc0 = crc
  3980. crc1 = uint32(0)
  3981. crc2 = uint32(0)
  3982. crc3 = uint32(0)
  3983. crc4 = uint32(0)
  3984. /*
  3985. Process the first blks-1 blocks, computing the CRCs on each braid
  3986. independently.
  3987. */
  3988. for {
  3989. blks--
  3990. v2 = blks
  3991. if !(v2 != 0) {
  3992. break
  3993. }
  3994. /* Load the word for each braid into registers. */
  3995. word0 = crc0 ^ *(*Tz_word_t)(unsafe.Pointer(words))
  3996. word1 = crc1 ^ *(*Tz_word_t)(unsafe.Pointer(words + 1*4))
  3997. word2 = crc2 ^ *(*Tz_word_t)(unsafe.Pointer(words + 2*4))
  3998. word3 = crc3 ^ *(*Tz_word_t)(unsafe.Pointer(words + 3*4))
  3999. word4 = crc4 ^ *(*Tz_word_t)(unsafe.Pointer(words + 4*4))
  4000. words += uintptr(m_N) * 4
  4001. /* Compute and update the CRC for each word. The loop should
  4002. get unrolled. */
  4003. crc0 = *(*Tz_crc_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_table)) + uintptr(word0&uint32(0xff))*4))
  4004. crc1 = *(*Tz_crc_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_table)) + uintptr(word1&uint32(0xff))*4))
  4005. crc2 = *(*Tz_crc_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_table)) + uintptr(word2&uint32(0xff))*4))
  4006. crc3 = *(*Tz_crc_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_table)) + uintptr(word3&uint32(0xff))*4))
  4007. crc4 = *(*Tz_crc_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_table)) + uintptr(word4&uint32(0xff))*4))
  4008. k = int32(1)
  4009. for {
  4010. if !(k < int32(4)) {
  4011. break
  4012. }
  4013. crc0 ^= *(*Tz_crc_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_table)) + uintptr(k)*1024 + uintptr(word0>>(k<<libc.Int32FromInt32(3))&uint32(0xff))*4))
  4014. crc1 ^= *(*Tz_crc_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_table)) + uintptr(k)*1024 + uintptr(word1>>(k<<libc.Int32FromInt32(3))&uint32(0xff))*4))
  4015. crc2 ^= *(*Tz_crc_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_table)) + uintptr(k)*1024 + uintptr(word2>>(k<<libc.Int32FromInt32(3))&uint32(0xff))*4))
  4016. crc3 ^= *(*Tz_crc_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_table)) + uintptr(k)*1024 + uintptr(word3>>(k<<libc.Int32FromInt32(3))&uint32(0xff))*4))
  4017. crc4 ^= *(*Tz_crc_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_table)) + uintptr(k)*1024 + uintptr(word4>>(k<<libc.Int32FromInt32(3))&uint32(0xff))*4))
  4018. goto _3
  4019. _3:
  4020. ;
  4021. k++
  4022. }
  4023. }
  4024. /*
  4025. Process the last block, combining the CRCs of the N braids at the
  4026. same time.
  4027. */
  4028. crc = _crc_word(tls, crc0^*(*Tz_word_t)(unsafe.Pointer(words)))
  4029. crc = _crc_word(tls, crc1^*(*Tz_word_t)(unsafe.Pointer(words + 1*4))^crc)
  4030. crc = _crc_word(tls, crc2^*(*Tz_word_t)(unsafe.Pointer(words + 2*4))^crc)
  4031. crc = _crc_word(tls, crc3^*(*Tz_word_t)(unsafe.Pointer(words + 3*4))^crc)
  4032. crc = _crc_word(tls, crc4^*(*Tz_word_t)(unsafe.Pointer(words + 4*4))^crc)
  4033. words += uintptr(m_N) * 4
  4034. } else {
  4035. /* Initialize the CRC for each braid. */
  4036. crc01 = _byte_swap(tls, crc)
  4037. crc11 = uint32(0)
  4038. crc21 = uint32(0)
  4039. crc31 = uint32(0)
  4040. crc41 = uint32(0)
  4041. /*
  4042. Process the first blks-1 blocks, computing the CRCs on each braid
  4043. independently.
  4044. */
  4045. for {
  4046. blks--
  4047. v4 = blks
  4048. if !(v4 != 0) {
  4049. break
  4050. }
  4051. /* Load the word for each braid into registers. */
  4052. word01 = crc01 ^ *(*Tz_word_t)(unsafe.Pointer(words))
  4053. word11 = crc11 ^ *(*Tz_word_t)(unsafe.Pointer(words + 1*4))
  4054. word21 = crc21 ^ *(*Tz_word_t)(unsafe.Pointer(words + 2*4))
  4055. word31 = crc31 ^ *(*Tz_word_t)(unsafe.Pointer(words + 3*4))
  4056. word41 = crc41 ^ *(*Tz_word_t)(unsafe.Pointer(words + 4*4))
  4057. words += uintptr(m_N) * 4
  4058. /* Compute and update the CRC for each word. The loop should
  4059. get unrolled. */
  4060. crc01 = *(*Tz_word_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_big_table)) + uintptr(word01&uint32(0xff))*4))
  4061. crc11 = *(*Tz_word_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_big_table)) + uintptr(word11&uint32(0xff))*4))
  4062. crc21 = *(*Tz_word_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_big_table)) + uintptr(word21&uint32(0xff))*4))
  4063. crc31 = *(*Tz_word_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_big_table)) + uintptr(word31&uint32(0xff))*4))
  4064. crc41 = *(*Tz_word_t)(unsafe.Pointer(uintptr(unsafe.Pointer(&_crc_braid_big_table)) + uintptr(word41&uint32(0xff))*4))
  4065. k = int32(1)
  4066. for {
  4067. if !(k < int32(4)) {
  4068. break
  4069. }
  4070. 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))
  4071. 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))
  4072. 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))
  4073. 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))
  4074. 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))
  4075. goto _5
  4076. _5:
  4077. ;
  4078. k++
  4079. }
  4080. }
  4081. /*
  4082. Process the last block, combining the CRCs of the N braids at the
  4083. same time.
  4084. */
  4085. comb = _crc_word_big(tls, crc01^*(*Tz_word_t)(unsafe.Pointer(words)))
  4086. comb = _crc_word_big(tls, crc11^*(*Tz_word_t)(unsafe.Pointer(words + 1*4))^comb)
  4087. comb = _crc_word_big(tls, crc21^*(*Tz_word_t)(unsafe.Pointer(words + 2*4))^comb)
  4088. comb = _crc_word_big(tls, crc31^*(*Tz_word_t)(unsafe.Pointer(words + 3*4))^comb)
  4089. comb = _crc_word_big(tls, crc41^*(*Tz_word_t)(unsafe.Pointer(words + 4*4))^comb)
  4090. words += uintptr(m_N) * 4
  4091. crc = _byte_swap(tls, comb)
  4092. }
  4093. /*
  4094. Update the pointer to the remaining bytes to process.
  4095. */
  4096. buf = words
  4097. }
  4098. /* Complete the computation of the CRC on any remaining bytes. */
  4099. for len1 >= uint32(8) {
  4100. len1 -= uint32(8)
  4101. v6 = buf
  4102. buf++
  4103. crc = crc>>int32(8) ^ _crc_table[(crc^uint32(*(*uint8)(unsafe.Pointer(v6))))&uint32(0xff)]
  4104. v7 = buf
  4105. buf++
  4106. crc = crc>>int32(8) ^ _crc_table[(crc^uint32(*(*uint8)(unsafe.Pointer(v7))))&uint32(0xff)]
  4107. v8 = buf
  4108. buf++
  4109. crc = crc>>int32(8) ^ _crc_table[(crc^uint32(*(*uint8)(unsafe.Pointer(v8))))&uint32(0xff)]
  4110. v9 = buf
  4111. buf++
  4112. crc = crc>>int32(8) ^ _crc_table[(crc^uint32(*(*uint8)(unsafe.Pointer(v9))))&uint32(0xff)]
  4113. v10 = buf
  4114. buf++
  4115. crc = crc>>int32(8) ^ _crc_table[(crc^uint32(*(*uint8)(unsafe.Pointer(v10))))&uint32(0xff)]
  4116. v11 = buf
  4117. buf++
  4118. crc = crc>>int32(8) ^ _crc_table[(crc^uint32(*(*uint8)(unsafe.Pointer(v11))))&uint32(0xff)]
  4119. v12 = buf
  4120. buf++
  4121. crc = crc>>int32(8) ^ _crc_table[(crc^uint32(*(*uint8)(unsafe.Pointer(v12))))&uint32(0xff)]
  4122. v13 = buf
  4123. buf++
  4124. crc = crc>>int32(8) ^ _crc_table[(crc^uint32(*(*uint8)(unsafe.Pointer(v13))))&uint32(0xff)]
  4125. }
  4126. for len1 != 0 {
  4127. len1--
  4128. v14 = buf
  4129. buf++
  4130. crc = crc>>int32(8) ^ _crc_table[(crc^uint32(*(*uint8)(unsafe.Pointer(v14))))&uint32(0xff)]
  4131. }
  4132. /* Return the CRC, post-conditioned. */
  4133. return crc ^ uint32(0xffffffff)
  4134. }
  4135. // C documentation
  4136. //
  4137. // /* ========================================================================= */
  4138. func Xcrc32(tls *libc.TLS, crc uint32, buf uintptr, len1 TuInt) (r uint32) {
  4139. return Xcrc32_z(tls, crc, buf, len1)
  4140. }
  4141. // C documentation
  4142. //
  4143. // /* ========================================================================= */
  4144. func Xcrc32_combine64(tls *libc.TLS, crc1 TuLong, crc2 TuLong, len2 Toff_t) (r TuLong) {
  4145. return _multmodp(tls, _x2nmodp(tls, len2, uint32(3)), crc1) ^ crc2&uint32(0xffffffff)
  4146. }
  4147. // C documentation
  4148. //
  4149. // /* ========================================================================= */
  4150. func Xcrc32_combine(tls *libc.TLS, crc1 TuLong, crc2 TuLong, len2 Toff_t) (r TuLong) {
  4151. return Xcrc32_combine64(tls, crc1, crc2, len2)
  4152. }
  4153. // C documentation
  4154. //
  4155. // /* ========================================================================= */
  4156. func Xcrc32_combine_gen64(tls *libc.TLS, len2 Toff_t) (r TuLong) {
  4157. return _x2nmodp(tls, len2, uint32(3))
  4158. }
  4159. // C documentation
  4160. //
  4161. // /* ========================================================================= */
  4162. func Xcrc32_combine_gen(tls *libc.TLS, len2 Toff_t) (r TuLong) {
  4163. return Xcrc32_combine_gen64(tls, len2)
  4164. }
  4165. // C documentation
  4166. //
  4167. // /* ========================================================================= */
  4168. func Xcrc32_combine_op(tls *libc.TLS, crc1 TuLong, crc2 TuLong, op TuLong) (r TuLong) {
  4169. return _multmodp(tls, op, crc1) ^ crc2&uint32(0xffffffff)
  4170. }
  4171. const m_BL_CODES = 19
  4172. const m_BUSY_STATE = 113
  4173. const m_Buf_size = 16
  4174. const m_COMMENT_STATE = 91
  4175. const m_D_CODES = 30
  4176. const m_EXTRA_STATE = 69
  4177. const m_FINISH_STATE = 666
  4178. const m_GZIP_STATE = 57
  4179. const m_HCRC_STATE = 103
  4180. const m_INIT_STATE = 42
  4181. const m_LENGTH_CODES = 29
  4182. const m_LITERALS = 256
  4183. const m_LIT_BUFS = 4
  4184. const m_MAX_BITS = 15
  4185. const m_MAX_STORED = 65535
  4186. const m_NAME_STATE = 73
  4187. const m_NIL = 0
  4188. const m_PRESET_DICT1 = 32
  4189. const m_TOO_FAR = 4096
  4190. const m_WIN_INIT = "MAX_MATCH"
  4191. const m_max_insert_length = "max_lazy_match"
  4192. type Tinternal_state = struct {
  4193. Fstrm Tz_streamp
  4194. Fstatus int32
  4195. Fpending_buf uintptr
  4196. Fpending_buf_size Tulg
  4197. Fpending_out uintptr
  4198. Fpending Tulg
  4199. Fwrap int32
  4200. Fgzhead Tgz_headerp
  4201. Fgzindex Tulg
  4202. Fmethod TByte
  4203. Flast_flush int32
  4204. Fw_size TuInt
  4205. Fw_bits TuInt
  4206. Fw_mask TuInt
  4207. Fwindow uintptr
  4208. Fwindow_size Tulg
  4209. Fprev uintptr
  4210. Fhead uintptr
  4211. Fins_h TuInt
  4212. Fhash_size TuInt
  4213. Fhash_bits TuInt
  4214. Fhash_mask TuInt
  4215. Fhash_shift TuInt
  4216. Fblock_start int32
  4217. Fmatch_length TuInt
  4218. Fprev_match TIPos
  4219. Fmatch_available int32
  4220. Fstrstart TuInt
  4221. Fmatch_start TuInt
  4222. Flookahead TuInt
  4223. Fprev_length TuInt
  4224. Fmax_chain_length TuInt
  4225. Fmax_lazy_match TuInt
  4226. Flevel int32
  4227. Fstrategy int32
  4228. Fgood_match TuInt
  4229. Fnice_match int32
  4230. Fdyn_ltree [573]Tct_data_s
  4231. Fdyn_dtree [61]Tct_data_s
  4232. Fbl_tree [39]Tct_data_s
  4233. Fl_desc Ttree_desc_s
  4234. Fd_desc Ttree_desc_s
  4235. Fbl_desc Ttree_desc_s
  4236. Fbl_count [16]Tush
  4237. Fheap [573]int32
  4238. Fheap_len int32
  4239. Fheap_max int32
  4240. Fdepth [573]Tuch
  4241. Fsym_buf uintptr
  4242. Flit_bufsize TuInt
  4243. Fsym_next TuInt
  4244. Fsym_end TuInt
  4245. Fopt_len Tulg
  4246. Fstatic_len Tulg
  4247. Fmatches TuInt
  4248. Finsert TuInt
  4249. Fbi_buf Tush
  4250. Fbi_valid int32
  4251. Fhigh_water Tulg
  4252. }
  4253. type Tct_data = struct {
  4254. Ffc struct {
  4255. Fcode [0]Tush
  4256. Ffreq Tush
  4257. }
  4258. Fdl struct {
  4259. Flen1 [0]Tush
  4260. Fdad Tush
  4261. }
  4262. }
  4263. type Tct_data_s = Tct_data
  4264. type Ttree_desc = struct {
  4265. Fdyn_tree uintptr
  4266. Fmax_code int32
  4267. Fstat_desc uintptr
  4268. }
  4269. type Ttree_desc_s = Ttree_desc
  4270. type TPos = uint16
  4271. type TPosf = uint16
  4272. type TIPos = uint32
  4273. type Tdeflate_state = struct {
  4274. Fstrm Tz_streamp
  4275. Fstatus int32
  4276. Fpending_buf uintptr
  4277. Fpending_buf_size Tulg
  4278. Fpending_out uintptr
  4279. Fpending Tulg
  4280. Fwrap int32
  4281. Fgzhead Tgz_headerp
  4282. Fgzindex Tulg
  4283. Fmethod TByte
  4284. Flast_flush int32
  4285. Fw_size TuInt
  4286. Fw_bits TuInt
  4287. Fw_mask TuInt
  4288. Fwindow uintptr
  4289. Fwindow_size Tulg
  4290. Fprev uintptr
  4291. Fhead uintptr
  4292. Fins_h TuInt
  4293. Fhash_size TuInt
  4294. Fhash_bits TuInt
  4295. Fhash_mask TuInt
  4296. Fhash_shift TuInt
  4297. Fblock_start int32
  4298. Fmatch_length TuInt
  4299. Fprev_match TIPos
  4300. Fmatch_available int32
  4301. Fstrstart TuInt
  4302. Fmatch_start TuInt
  4303. Flookahead TuInt
  4304. Fprev_length TuInt
  4305. Fmax_chain_length TuInt
  4306. Fmax_lazy_match TuInt
  4307. Flevel int32
  4308. Fstrategy int32
  4309. Fgood_match TuInt
  4310. Fnice_match int32
  4311. Fdyn_ltree [573]Tct_data_s
  4312. Fdyn_dtree [61]Tct_data_s
  4313. Fbl_tree [39]Tct_data_s
  4314. Fl_desc Ttree_desc_s
  4315. Fd_desc Ttree_desc_s
  4316. Fbl_desc Ttree_desc_s
  4317. Fbl_count [16]Tush
  4318. Fheap [573]int32
  4319. Fheap_len int32
  4320. Fheap_max int32
  4321. Fdepth [573]Tuch
  4322. Fsym_buf uintptr
  4323. Flit_bufsize TuInt
  4324. Fsym_next TuInt
  4325. Fsym_end TuInt
  4326. Fopt_len Tulg
  4327. Fstatic_len Tulg
  4328. Fmatches TuInt
  4329. Finsert TuInt
  4330. Fbi_buf Tush
  4331. Fbi_valid int32
  4332. Fhigh_water Tulg
  4333. }
  4334. /*
  4335. If you use the zlib library in a product, an acknowledgment is welcome
  4336. in the documentation of your product. If for some reason you cannot
  4337. include such an acknowledgment, I would appreciate that you keep this
  4338. copyright string in the executable of your product.
  4339. */
  4340. type Tblock_state = int32
  4341. const _need_more = 0
  4342. const /* block not completed, need more input or more output */
  4343. _block_done = 1
  4344. const /* block flush performed */
  4345. _finish_started = 2
  4346. const /* finish started, need only more output at next deflate */
  4347. _finish_done = 3
  4348. type Tcompress_func = uintptr
  4349. /* ===========================================================================
  4350. * Local data
  4351. */
  4352. /* Tail of hash chains */
  4353. /* Matches of length 3 are discarded if their distance exceeds TOO_FAR */
  4354. // C documentation
  4355. //
  4356. // /* Values for max_lazy_match, good_match and max_chain_length, depending on
  4357. // * the desired pack level (0..9). The values given below have been tuned to
  4358. // * exclude worst case performance for pathological files. Better values may be
  4359. // * found for specific files.
  4360. // */
  4361. type Tconfig = struct {
  4362. Fgood_length Tush
  4363. Fmax_lazy Tush
  4364. Fnice_length Tush
  4365. Fmax_chain Tush
  4366. Ffunc1 Tcompress_func
  4367. }
  4368. /* ===========================================================================
  4369. * Local data
  4370. */
  4371. /* Tail of hash chains */
  4372. /* Matches of length 3 are discarded if their distance exceeds TOO_FAR */
  4373. // C documentation
  4374. //
  4375. // /* Values for max_lazy_match, good_match and max_chain_length, depending on
  4376. // * the desired pack level (0..9). The values given below have been tuned to
  4377. // * exclude worst case performance for pathological files. Better values may be
  4378. // * found for specific files.
  4379. // */
  4380. type Tconfig_s = Tconfig
  4381. var _configuration_table = [10]Tconfig{
  4382. 0: {},
  4383. 1: {
  4384. Fgood_length: uint16(4),
  4385. Fmax_lazy: uint16(4),
  4386. Fnice_length: uint16(8),
  4387. Fmax_chain: uint16(4),
  4388. },
  4389. 2: {
  4390. Fgood_length: uint16(4),
  4391. Fmax_lazy: uint16(5),
  4392. Fnice_length: uint16(16),
  4393. Fmax_chain: uint16(8),
  4394. },
  4395. 3: {
  4396. Fgood_length: uint16(4),
  4397. Fmax_lazy: uint16(6),
  4398. Fnice_length: uint16(32),
  4399. Fmax_chain: uint16(32),
  4400. },
  4401. 4: {
  4402. Fgood_length: uint16(4),
  4403. Fmax_lazy: uint16(4),
  4404. Fnice_length: uint16(16),
  4405. Fmax_chain: uint16(16),
  4406. },
  4407. 5: {
  4408. Fgood_length: uint16(8),
  4409. Fmax_lazy: uint16(16),
  4410. Fnice_length: uint16(32),
  4411. Fmax_chain: uint16(32),
  4412. },
  4413. 6: {
  4414. Fgood_length: uint16(8),
  4415. Fmax_lazy: uint16(16),
  4416. Fnice_length: uint16(128),
  4417. Fmax_chain: uint16(128),
  4418. },
  4419. 7: {
  4420. Fgood_length: uint16(8),
  4421. Fmax_lazy: uint16(32),
  4422. Fnice_length: uint16(128),
  4423. Fmax_chain: uint16(256),
  4424. },
  4425. 8: {
  4426. Fgood_length: uint16(32),
  4427. Fmax_lazy: uint16(128),
  4428. Fnice_length: uint16(258),
  4429. Fmax_chain: uint16(1024),
  4430. },
  4431. 9: {
  4432. Fgood_length: uint16(32),
  4433. Fmax_lazy: uint16(258),
  4434. Fnice_length: uint16(258),
  4435. Fmax_chain: uint16(4096),
  4436. },
  4437. }
  4438. func init() {
  4439. p := unsafe.Pointer(&_configuration_table)
  4440. *(*uintptr)(unsafe.Add(p, 8)) = __ccgo_fp(_deflate_stored)
  4441. *(*uintptr)(unsafe.Add(p, 20)) = __ccgo_fp(_deflate_fast)
  4442. *(*uintptr)(unsafe.Add(p, 32)) = __ccgo_fp(_deflate_fast)
  4443. *(*uintptr)(unsafe.Add(p, 44)) = __ccgo_fp(_deflate_fast)
  4444. *(*uintptr)(unsafe.Add(p, 56)) = __ccgo_fp(_deflate_slow)
  4445. *(*uintptr)(unsafe.Add(p, 68)) = __ccgo_fp(_deflate_slow)
  4446. *(*uintptr)(unsafe.Add(p, 80)) = __ccgo_fp(_deflate_slow)
  4447. *(*uintptr)(unsafe.Add(p, 92)) = __ccgo_fp(_deflate_slow)
  4448. *(*uintptr)(unsafe.Add(p, 104)) = __ccgo_fp(_deflate_slow)
  4449. *(*uintptr)(unsafe.Add(p, 116)) = __ccgo_fp(_deflate_slow)
  4450. }
  4451. /* max compression */
  4452. /* Note: the deflate() code requires max_lazy >= MIN_MATCH and max_chain >= 4
  4453. * For deflate_fast() (levels <= 3) good is ignored and lazy has a different
  4454. * meaning.
  4455. */
  4456. /* rank Z_BLOCK between Z_NO_FLUSH and Z_PARTIAL_FLUSH */
  4457. /* ===========================================================================
  4458. * Update a hash value with the given input byte
  4459. * IN assertion: all calls to UPDATE_HASH are made with consecutive input
  4460. * characters, so that a running hash key can be computed from the previous
  4461. * key instead of complete recalculation each time.
  4462. */
  4463. /* ===========================================================================
  4464. * Insert string str in the dictionary and set match_head to the previous head
  4465. * of the hash chain (the most recent string with same hash key). Return
  4466. * the previous length of the hash chain.
  4467. * If this file is compiled with -DFASTEST, the compression level is forced
  4468. * to 1, and no hash chains are maintained.
  4469. * IN assertion: all calls to INSERT_STRING are made with consecutive input
  4470. * characters and the first MIN_MATCH bytes of str are valid (except for
  4471. * the last MIN_MATCH-1 bytes of the input file).
  4472. */
  4473. /* ===========================================================================
  4474. * Initialize the hash table (avoiding 64K overflow for 16 bit systems).
  4475. * prev[] will be initialized on the fly.
  4476. */
  4477. // C documentation
  4478. //
  4479. // /* ===========================================================================
  4480. // * Slide the hash table when sliding the window down (could be avoided with 32
  4481. // * bit values at the expense of memory usage). We slide even when level == 0 to
  4482. // * keep the hash table consistent if we switch back to level > 0 later.
  4483. // */
  4484. func _slide_hash(tls *libc.TLS, s uintptr) {
  4485. var m, n, v1, v4, v5, v8 uint32
  4486. var p, v3, v7 uintptr
  4487. var wsize TuInt
  4488. _, _, _, _, _, _, _, _, _, _ = m, n, p, wsize, v1, v3, v4, v5, v7, v8
  4489. wsize = (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size
  4490. n = (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size
  4491. p = (*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr(n)*2
  4492. for {
  4493. p -= 2
  4494. v3 = p
  4495. m = uint32(*(*TPosf)(unsafe.Pointer(v3)))
  4496. if m >= wsize {
  4497. v4 = m - wsize
  4498. } else {
  4499. v4 = uint32(m_NIL)
  4500. }
  4501. *(*TPosf)(unsafe.Pointer(p)) = uint16(v4)
  4502. goto _2
  4503. _2:
  4504. ;
  4505. n--
  4506. v1 = n
  4507. if !(v1 != 0) {
  4508. break
  4509. }
  4510. }
  4511. n = wsize
  4512. p = (*Tdeflate_state)(unsafe.Pointer(s)).Fprev + uintptr(n)*2
  4513. for {
  4514. p -= 2
  4515. v7 = p
  4516. m = uint32(*(*TPosf)(unsafe.Pointer(v7)))
  4517. if m >= wsize {
  4518. v8 = m - wsize
  4519. } else {
  4520. v8 = uint32(m_NIL)
  4521. }
  4522. *(*TPosf)(unsafe.Pointer(p)) = uint16(v8)
  4523. /* If n is not on any hash chain, prev[n] is garbage but
  4524. * its value will never be used.
  4525. */
  4526. goto _6
  4527. _6:
  4528. ;
  4529. n--
  4530. v5 = n
  4531. if !(v5 != 0) {
  4532. break
  4533. }
  4534. }
  4535. }
  4536. // C documentation
  4537. //
  4538. // /* ===========================================================================
  4539. // * Read a new buffer from the current input stream, update the adler32
  4540. // * and total number of bytes read. All deflate() input goes through
  4541. // * this function so some applications may wish to modify it to avoid
  4542. // * allocating a large strm->next_in buffer and copying from it.
  4543. // * (See also flush_pending()).
  4544. // */
  4545. func _read_buf(tls *libc.TLS, strm Tz_streamp, buf uintptr, size uint32) (r uint32) {
  4546. var len1 uint32
  4547. _ = len1
  4548. len1 = (*Tz_stream)(unsafe.Pointer(strm)).Favail_in
  4549. if len1 > size {
  4550. len1 = size
  4551. }
  4552. if len1 == uint32(0) {
  4553. return uint32(0)
  4554. }
  4555. *(*TuInt)(unsafe.Pointer(strm + 4)) -= len1
  4556. libc.Xmemcpy(tls, buf, (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in, len1)
  4557. if (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fwrap == int32(1) {
  4558. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xadler32(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fadler, buf, len1)
  4559. } else {
  4560. if (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fwrap == int32(2) {
  4561. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fadler, buf, len1)
  4562. }
  4563. }
  4564. *(*uintptr)(unsafe.Pointer(strm)) += uintptr(len1)
  4565. *(*TuLong)(unsafe.Pointer(strm + 8)) += len1
  4566. return len1
  4567. }
  4568. // C documentation
  4569. //
  4570. // /* ===========================================================================
  4571. // * Fill the window when the lookahead becomes insufficient.
  4572. // * Updates strstart and lookahead.
  4573. // *
  4574. // * IN assertion: lookahead < MIN_LOOKAHEAD
  4575. // * OUT assertions: strstart <= window_size-MIN_LOOKAHEAD
  4576. // * At least one byte has been read, or avail_in == 0; reads are
  4577. // * performed for at least two bytes (required for the zip translate_eol
  4578. // * option -- not supported here).
  4579. // */
  4580. func _fill_window(tls *libc.TLS, s uintptr) {
  4581. var curr, init1 Tulg
  4582. var more, n uint32
  4583. var str, wsize TuInt
  4584. _, _, _, _, _, _ = curr, init1, more, n, str, wsize /* Amount of free space at the end of the window. */
  4585. wsize = (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size
  4586. 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) {
  4587. more = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow_size - (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead - (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart
  4588. /* Deal with !@#$% 64K limit: */
  4589. if uint32(4) <= uint32(2) {
  4590. if more == uint32(0) && (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart == uint32(0) && (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead == uint32(0) {
  4591. more = wsize
  4592. } else {
  4593. if more == libc.Uint32FromInt32(-libc.Int32FromInt32(1)) {
  4594. /* Very unlikely, but possible on 16 bit machine if
  4595. * strstart == 0 && lookahead == 1 (input done a byte at time)
  4596. */
  4597. more--
  4598. }
  4599. }
  4600. }
  4601. /* If the window is almost full and there is insufficient lookahead,
  4602. * move the upper half to the lower one to make room in the upper half.
  4603. */
  4604. 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))) {
  4605. libc.Xmemcpy(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow+uintptr(wsize), wsize-more)
  4606. *(*TuInt)(unsafe.Pointer(s + 112)) -= wsize
  4607. *(*TuInt)(unsafe.Pointer(s + 108)) -= wsize /* we now have strstart >= MAX_DIST */
  4608. *(*int32)(unsafe.Pointer(s + 92)) -= libc.Int32FromUint32(wsize)
  4609. if (*Tdeflate_state)(unsafe.Pointer(s)).Finsert > (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart {
  4610. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart
  4611. }
  4612. _slide_hash(tls, s)
  4613. more += wsize
  4614. }
  4615. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in == uint32(0) {
  4616. break
  4617. }
  4618. /* If there was no sliding:
  4619. * strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&
  4620. * more == window_size - lookahead - strstart
  4621. * => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)
  4622. * => more >= window_size - 2*WSIZE + 2
  4623. * In the BIG_MEM or MMAP case (not yet supported),
  4624. * window_size == input_size + MIN_LOOKAHEAD &&
  4625. * strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD.
  4626. * Otherwise, window_size == 2*WSIZE so more >= 2.
  4627. * If there was sliding, more >= WSIZE. So in all cases, more >= 2.
  4628. */
  4629. 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)
  4630. *(*TuInt)(unsafe.Pointer(s + 116)) += n
  4631. /* Initialize the hash value now that we have some input: */
  4632. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead+(*Tdeflate_state)(unsafe.Pointer(s)).Finsert >= uint32(m_MIN_MATCH) {
  4633. str = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart - (*Tdeflate_state)(unsafe.Pointer(s)).Finsert
  4634. (*Tdeflate_state)(unsafe.Pointer(s)).Fins_h = uint32(*(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(str))))
  4635. (*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
  4636. for (*Tdeflate_state)(unsafe.Pointer(s)).Finsert != 0 {
  4637. (*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
  4638. *(*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))
  4639. *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h)*2)) = uint16(str)
  4640. str++
  4641. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert--
  4642. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead+(*Tdeflate_state)(unsafe.Pointer(s)).Finsert < uint32(m_MIN_MATCH) {
  4643. break
  4644. }
  4645. }
  4646. }
  4647. /* If the whole input has less than MIN_MATCH bytes, ins_h is garbage,
  4648. * but this is not important since only literal bytes will be emitted.
  4649. */
  4650. }
  4651. /* If the WIN_INIT bytes after the end of the current data have never been
  4652. * written, then zero those bytes in order to avoid memory check reports of
  4653. * the use of uninitialized (or uninitialised as Julian writes) bytes by
  4654. * the longest match routines. Update the high water mark for the next
  4655. * time through here. WIN_INIT is set to MAX_MATCH since the longest match
  4656. * routines allow scanning to strstart + MAX_MATCH, ignoring lookahead.
  4657. */
  4658. if (*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water < (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow_size {
  4659. curr = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart + (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead
  4660. if (*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water < curr {
  4661. /* Previous high water mark below current data -- zero WIN_INIT
  4662. * bytes or up to end of window, whichever is less.
  4663. */
  4664. init1 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow_size - curr
  4665. if init1 > uint32(m_MAX_MATCH) {
  4666. init1 = uint32(m_MAX_MATCH)
  4667. }
  4668. libc.Xmemset(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow+uintptr(curr), 0, init1)
  4669. (*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water = curr + init1
  4670. } else {
  4671. if (*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water < curr+uint32(m_MAX_MATCH) {
  4672. /* High water mark at or above current data, but below current data
  4673. * plus WIN_INIT -- zero out to current data plus WIN_INIT, or up
  4674. * to end of window, whichever is less.
  4675. */
  4676. init1 = curr + uint32(m_MAX_MATCH) - (*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water
  4677. if init1 > (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow_size-(*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water {
  4678. init1 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow_size - (*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water
  4679. }
  4680. libc.Xmemset(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow+uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water), 0, init1)
  4681. *(*Tulg)(unsafe.Pointer(s + 5824)) += init1
  4682. }
  4683. }
  4684. }
  4685. }
  4686. // C documentation
  4687. //
  4688. // /* ========================================================================= */
  4689. func XdeflateInit_(tls *libc.TLS, strm Tz_streamp, level int32, version uintptr, stream_size int32) (r int32) {
  4690. 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)
  4691. /* To do: ignore strm->next_in if we use it as window */
  4692. }
  4693. // C documentation
  4694. //
  4695. // /* ========================================================================= */
  4696. 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) {
  4697. var s uintptr
  4698. var wrap int32
  4699. _, _ = s, wrap
  4700. wrap = int32(1)
  4701. if version == uintptr(m_Z_NULL) || int32(*(*int8)(unsafe.Pointer(version))) != int32(_my_version[0]) || libc.Uint32FromInt32(stream_size) != uint32(56) {
  4702. return -int32(6)
  4703. }
  4704. if strm == uintptr(m_Z_NULL) {
  4705. return -int32(2)
  4706. }
  4707. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = uintptr(m_Z_NULL)
  4708. if (*Tz_stream)(unsafe.Pointer(strm)).Fzalloc == libc.UintptrFromInt32(0) {
  4709. (*Tz_stream)(unsafe.Pointer(strm)).Fzalloc = __ccgo_fp(Xzcalloc)
  4710. (*Tz_stream)(unsafe.Pointer(strm)).Fopaque = libc.UintptrFromInt32(0)
  4711. }
  4712. if (*Tz_stream)(unsafe.Pointer(strm)).Fzfree == libc.UintptrFromInt32(0) {
  4713. (*Tz_stream)(unsafe.Pointer(strm)).Fzfree = __ccgo_fp(Xzcfree)
  4714. }
  4715. if level == -int32(1) {
  4716. level = int32(6)
  4717. }
  4718. if windowBits < 0 { /* suppress zlib wrapper */
  4719. wrap = 0
  4720. if windowBits < -int32(15) {
  4721. return -int32(2)
  4722. }
  4723. windowBits = -windowBits
  4724. } else {
  4725. if windowBits > int32(15) {
  4726. wrap = int32(2) /* write gzip wrapper instead */
  4727. windowBits -= int32(16)
  4728. }
  4729. }
  4730. 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) {
  4731. return -int32(2)
  4732. }
  4733. if windowBits == int32(8) {
  4734. windowBits = int32(9)
  4735. } /* until 256-byte window bug fixed */
  4736. 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)), libc.Uint32FromInt64(5828))
  4737. if s == uintptr(m_Z_NULL) {
  4738. return -int32(4)
  4739. }
  4740. (*Tz_stream)(unsafe.Pointer(strm)).Fstate = s
  4741. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm = strm
  4742. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = int32(m_INIT_STATE) /* to pass state test in deflateReset() */
  4743. (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap = wrap
  4744. (*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead = uintptr(m_Z_NULL)
  4745. (*Tdeflate_state)(unsafe.Pointer(s)).Fw_bits = libc.Uint32FromInt32(windowBits)
  4746. (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size = libc.Uint32FromInt32(int32(1) << (*Tdeflate_state)(unsafe.Pointer(s)).Fw_bits)
  4747. (*Tdeflate_state)(unsafe.Pointer(s)).Fw_mask = (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size - uint32(1)
  4748. (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_bits = libc.Uint32FromInt32(memLevel) + uint32(7)
  4749. (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size = libc.Uint32FromInt32(int32(1) << (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_bits)
  4750. (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_mask = (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size - uint32(1)
  4751. (*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)
  4752. (*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, libc.Uint32FromInt32(2)*libc.Uint32FromInt64(1))
  4753. (*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, libc.Uint32FromInt64(2))
  4754. (*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, libc.Uint32FromInt64(2))
  4755. (*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water = uint32(0) /* nothing written to s->window yet */
  4756. (*Tdeflate_state)(unsafe.Pointer(s)).Flit_bufsize = libc.Uint32FromInt32(int32(1) << (memLevel + int32(6))) /* 16K elements by default */
  4757. /* We overlay pending_buf and sym_buf. This works since the average size
  4758. * for length/distance pairs over any compressed block is assured to be 31
  4759. * bits or less.
  4760. *
  4761. * Analysis: The longest fixed codes are a length code of 8 bits plus 5
  4762. * extra bits, for lengths 131 to 257. The longest fixed distance codes are
  4763. * 5 bits plus 13 extra bits, for distances 16385 to 32768. The longest
  4764. * possible fixed-codes length/distance pair is then 31 bits total.
  4765. *
  4766. * sym_buf starts one-fourth of the way into pending_buf. So there are
  4767. * three bytes in sym_buf for every four bytes in pending_buf. Each symbol
  4768. * in sym_buf is three bytes -- two for the distance and one for the
  4769. * literal/length. As each symbol is consumed, the pointer to the next
  4770. * sym_buf value to read moves forward three bytes. From that symbol, up to
  4771. * 31 bits are written to pending_buf. The closest the written pending_buf
  4772. * bits gets to the next sym_buf symbol to read is just before the last
  4773. * code is written. At that time, 31*(n - 2) bits have been written, just
  4774. * after 24*(n - 2) bits have been consumed from sym_buf. sym_buf starts at
  4775. * 8*n bits into pending_buf. (Note that the symbol buffer fills when n - 1
  4776. * symbols are written.) The closest the writing gets to what is unread is
  4777. * then n + 14 bits. Here n is lit_bufsize, which is 16384 by default, and
  4778. * can range from 128 to 32768.
  4779. *
  4780. * Therefore, at a minimum, there are 142 bits of space between what is
  4781. * written and what is read in the overlain buffers, so the symbols cannot
  4782. * be overwritten by the compressed data. That space is actually 139 bits,
  4783. * due to the three-bit fixed-code block header.
  4784. *
  4785. * That covers the case where either Z_FIXED is specified, forcing fixed
  4786. * codes, or when the use of fixed codes is chosen, because that choice
  4787. * results in a smaller compressed block than dynamic codes. That latter
  4788. * condition then assures that the above analysis also covers all dynamic
  4789. * blocks. A dynamic-code block will only be chosen to be emitted if it has
  4790. * fewer bits than a fixed-code block would for the same set of symbols.
  4791. * Therefore its average symbol length is assured to be less than 31. So
  4792. * the compressed data for a dynamic block also cannot overwrite the
  4793. * symbols from which it is being constructed.
  4794. */
  4795. (*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)))
  4796. (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf_size = (*Tdeflate_state)(unsafe.Pointer(s)).Flit_bufsize * uint32(4)
  4797. 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) {
  4798. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = int32(m_FINISH_STATE)
  4799. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = Xz_errmsg[libc.Int32FromInt32(2) - -libc.Int32FromInt32(4)]
  4800. XdeflateEnd(tls, strm)
  4801. return -int32(4)
  4802. }
  4803. (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf = (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Flit_bufsize)
  4804. (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_end = ((*Tdeflate_state)(unsafe.Pointer(s)).Flit_bufsize - uint32(1)) * uint32(3)
  4805. /* We avoid equality with lit_bufsize*3 because of wraparound at 64K
  4806. * on 16 bit machines and because stored blocks are restricted to
  4807. * 64K-1 bytes.
  4808. */
  4809. (*Tdeflate_state)(unsafe.Pointer(s)).Flevel = level
  4810. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrategy = strategy
  4811. (*Tdeflate_state)(unsafe.Pointer(s)).Fmethod = libc.Uint8FromInt32(method)
  4812. return XdeflateReset(tls, strm)
  4813. }
  4814. var _my_version = [6]int8{'1', '.', '3', '.', '1'}
  4815. // C documentation
  4816. //
  4817. // /* =========================================================================
  4818. // * Check for a valid deflate stream state. Return 0 if ok, 1 if not.
  4819. // */
  4820. func _deflateStateCheck(tls *libc.TLS, strm Tz_streamp) (r int32) {
  4821. var s uintptr
  4822. _ = s
  4823. if strm == uintptr(m_Z_NULL) || (*Tz_stream)(unsafe.Pointer(strm)).Fzalloc == libc.UintptrFromInt32(0) || (*Tz_stream)(unsafe.Pointer(strm)).Fzfree == libc.UintptrFromInt32(0) {
  4824. return int32(1)
  4825. }
  4826. s = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  4827. 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) {
  4828. return int32(1)
  4829. }
  4830. return 0
  4831. }
  4832. // C documentation
  4833. //
  4834. // /* ========================================================================= */
  4835. func XdeflateSetDictionary(tls *libc.TLS, strm Tz_streamp, dictionary uintptr, dictLength TuInt) (r int32) {
  4836. var avail uint32
  4837. var n, str, v1, v3 TuInt
  4838. var next, s uintptr
  4839. var wrap int32
  4840. _, _, _, _, _, _, _, _ = avail, n, next, s, str, wrap, v1, v3
  4841. if _deflateStateCheck(tls, strm) != 0 || dictionary == uintptr(m_Z_NULL) {
  4842. return -int32(2)
  4843. }
  4844. s = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  4845. wrap = (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap
  4846. if wrap == int32(2) || wrap == int32(1) && (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus != int32(m_INIT_STATE) || (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead != 0 {
  4847. return -int32(2)
  4848. }
  4849. /* when using zlib wrappers, compute Adler-32 for provided dictionary */
  4850. if wrap == int32(1) {
  4851. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xadler32(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fadler, dictionary, dictLength)
  4852. }
  4853. (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap = 0 /* avoid computing Adler-32 in read_buf */
  4854. /* if dictionary would fill window, just replace the history */
  4855. if dictLength >= (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size {
  4856. if wrap == 0 { /* already empty otherwise */
  4857. *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size-uint32(1))*2)) = uint16(m_NIL)
  4858. libc.Xmemset(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fhead, 0, ((*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size-libc.Uint32FromInt32(1))*uint32(2))
  4859. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart = uint32(0)
  4860. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = 0
  4861. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = uint32(0)
  4862. }
  4863. dictionary += uintptr(dictLength - (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size) /* use the tail */
  4864. dictLength = (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size
  4865. }
  4866. /* insert dictionary into window and hash */
  4867. avail = (*Tz_stream)(unsafe.Pointer(strm)).Favail_in
  4868. next = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in
  4869. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = dictLength
  4870. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = dictionary
  4871. _fill_window(tls, s)
  4872. for (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead >= uint32(m_MIN_MATCH) {
  4873. str = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart
  4874. n = (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead - libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH)-libc.Int32FromInt32(1))
  4875. for {
  4876. (*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
  4877. *(*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))
  4878. *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h)*2)) = uint16(str)
  4879. str++
  4880. goto _2
  4881. _2:
  4882. ;
  4883. n--
  4884. v1 = n
  4885. if !(v1 != 0) {
  4886. break
  4887. }
  4888. }
  4889. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart = str
  4890. (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead = libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH) - libc.Int32FromInt32(1))
  4891. _fill_window(tls, s)
  4892. }
  4893. *(*TuInt)(unsafe.Pointer(s + 108)) += (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead
  4894. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  4895. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead
  4896. (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead = uint32(0)
  4897. v3 = libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH) - libc.Int32FromInt32(1))
  4898. (*Tdeflate_state)(unsafe.Pointer(s)).Fprev_length = v3
  4899. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = v3
  4900. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_available = 0
  4901. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = next
  4902. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = avail
  4903. (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap = wrap
  4904. return m_Z_OK
  4905. }
  4906. // C documentation
  4907. //
  4908. // /* ========================================================================= */
  4909. func XdeflateGetDictionary(tls *libc.TLS, strm Tz_streamp, dictionary uintptr, dictLength uintptr) (r int32) {
  4910. var len1 TuInt
  4911. var s uintptr
  4912. _, _ = len1, s
  4913. if _deflateStateCheck(tls, strm) != 0 {
  4914. return -int32(2)
  4915. }
  4916. s = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  4917. len1 = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart + (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead
  4918. if len1 > (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size {
  4919. len1 = (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size
  4920. }
  4921. if dictionary != uintptr(m_Z_NULL) && len1 != 0 {
  4922. 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), len1)
  4923. }
  4924. if dictLength != uintptr(m_Z_NULL) {
  4925. *(*TuInt)(unsafe.Pointer(dictLength)) = len1
  4926. }
  4927. return m_Z_OK
  4928. }
  4929. // C documentation
  4930. //
  4931. // /* ========================================================================= */
  4932. func XdeflateResetKeep(tls *libc.TLS, strm Tz_streamp) (r int32) {
  4933. var s uintptr
  4934. var v1 TuLong
  4935. var v2 int32
  4936. var v3 uint32
  4937. _, _, _, _ = s, v1, v2, v3
  4938. if _deflateStateCheck(tls, strm) != 0 {
  4939. return -int32(2)
  4940. }
  4941. v1 = libc.Uint32FromInt32(0)
  4942. (*Tz_stream)(unsafe.Pointer(strm)).Ftotal_out = v1
  4943. (*Tz_stream)(unsafe.Pointer(strm)).Ftotal_in = v1
  4944. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = uintptr(m_Z_NULL) /* use zfree if we ever allocate msg dynamically */
  4945. (*Tz_stream)(unsafe.Pointer(strm)).Fdata_type = int32(m_Z_UNKNOWN)
  4946. s = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  4947. (*Tdeflate_state)(unsafe.Pointer(s)).Fpending = uint32(0)
  4948. (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_out = (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf
  4949. if (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap < 0 {
  4950. (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap = -(*Tdeflate_state)(unsafe.Pointer(s)).Fwrap /* was made negative by deflate(..., Z_FINISH); */
  4951. }
  4952. if (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap == int32(2) {
  4953. v2 = int32(m_GZIP_STATE)
  4954. } else {
  4955. v2 = int32(m_INIT_STATE)
  4956. }
  4957. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = v2
  4958. if (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap == int32(2) {
  4959. v3 = Xcrc32(tls, uint32(0), uintptr(m_Z_NULL), uint32(0))
  4960. } else {
  4961. v3 = Xadler32(tls, uint32(0), uintptr(m_Z_NULL), uint32(0))
  4962. }
  4963. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = v3
  4964. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = -int32(2)
  4965. x__tr_init(tls, s)
  4966. return m_Z_OK
  4967. }
  4968. // C documentation
  4969. //
  4970. // /* ===========================================================================
  4971. // * Initialize the "longest match" routines for a new zlib stream
  4972. // */
  4973. func _lm_init(tls *libc.TLS, s uintptr) {
  4974. var v1 TuInt
  4975. _ = v1
  4976. (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow_size = libc.Uint32FromInt32(2) * (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size
  4977. *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size-uint32(1))*2)) = uint16(m_NIL)
  4978. libc.Xmemset(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fhead, 0, ((*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size-libc.Uint32FromInt32(1))*uint32(2))
  4979. /* Set the default configuration parameters:
  4980. */
  4981. (*Tdeflate_state)(unsafe.Pointer(s)).Fmax_lazy_match = uint32(_configuration_table[(*Tdeflate_state)(unsafe.Pointer(s)).Flevel].Fmax_lazy)
  4982. (*Tdeflate_state)(unsafe.Pointer(s)).Fgood_match = uint32(_configuration_table[(*Tdeflate_state)(unsafe.Pointer(s)).Flevel].Fgood_length)
  4983. (*Tdeflate_state)(unsafe.Pointer(s)).Fnice_match = libc.Int32FromUint16(_configuration_table[(*Tdeflate_state)(unsafe.Pointer(s)).Flevel].Fnice_length)
  4984. (*Tdeflate_state)(unsafe.Pointer(s)).Fmax_chain_length = uint32(_configuration_table[(*Tdeflate_state)(unsafe.Pointer(s)).Flevel].Fmax_chain)
  4985. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart = uint32(0)
  4986. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = 0
  4987. (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead = uint32(0)
  4988. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = uint32(0)
  4989. v1 = libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH) - libc.Int32FromInt32(1))
  4990. (*Tdeflate_state)(unsafe.Pointer(s)).Fprev_length = v1
  4991. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = v1
  4992. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_available = 0
  4993. (*Tdeflate_state)(unsafe.Pointer(s)).Fins_h = uint32(0)
  4994. }
  4995. // C documentation
  4996. //
  4997. // /* ========================================================================= */
  4998. func XdeflateReset(tls *libc.TLS, strm Tz_streamp) (r int32) {
  4999. var ret int32
  5000. _ = ret
  5001. ret = XdeflateResetKeep(tls, strm)
  5002. if ret == m_Z_OK {
  5003. _lm_init(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fstate)
  5004. }
  5005. return ret
  5006. }
  5007. // C documentation
  5008. //
  5009. // /* ========================================================================= */
  5010. func XdeflateSetHeader(tls *libc.TLS, strm Tz_streamp, head Tgz_headerp) (r int32) {
  5011. if _deflateStateCheck(tls, strm) != 0 || (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fwrap != int32(2) {
  5012. return -int32(2)
  5013. }
  5014. (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fgzhead = head
  5015. return m_Z_OK
  5016. }
  5017. // C documentation
  5018. //
  5019. // /* ========================================================================= */
  5020. func XdeflatePending(tls *libc.TLS, strm Tz_streamp, pending uintptr, bits uintptr) (r int32) {
  5021. if _deflateStateCheck(tls, strm) != 0 {
  5022. return -int32(2)
  5023. }
  5024. if pending != uintptr(m_Z_NULL) {
  5025. *(*uint32)(unsafe.Pointer(pending)) = (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fpending
  5026. }
  5027. if bits != uintptr(m_Z_NULL) {
  5028. *(*int32)(unsafe.Pointer(bits)) = (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fbi_valid
  5029. }
  5030. return m_Z_OK
  5031. }
  5032. // C documentation
  5033. //
  5034. // /* ========================================================================= */
  5035. func XdeflatePrime(tls *libc.TLS, strm Tz_streamp, bits int32, value int32) (r int32) {
  5036. var put int32
  5037. var s, p1 uintptr
  5038. _, _, _ = put, s, p1
  5039. if _deflateStateCheck(tls, strm) != 0 {
  5040. return -int32(2)
  5041. }
  5042. s = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  5043. 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)) {
  5044. return -int32(5)
  5045. }
  5046. for cond := true; cond; cond = bits != 0 {
  5047. put = int32(m_Buf_size) - (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid
  5048. if put > bits {
  5049. put = bits
  5050. }
  5051. p1 = s + 5816
  5052. *(*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)))
  5053. *(*int32)(unsafe.Pointer(s + 5820)) += put
  5054. x__tr_flush_bits(tls, s)
  5055. value >>= put
  5056. bits -= put
  5057. }
  5058. return m_Z_OK
  5059. }
  5060. // C documentation
  5061. //
  5062. // /* ========================================================================= */
  5063. func XdeflateParams(tls *libc.TLS, strm Tz_streamp, level int32, strategy int32) (r int32) {
  5064. var err int32
  5065. var func1 Tcompress_func
  5066. var s uintptr
  5067. _, _, _ = err, func1, s
  5068. if _deflateStateCheck(tls, strm) != 0 {
  5069. return -int32(2)
  5070. }
  5071. s = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  5072. if level == -int32(1) {
  5073. level = int32(6)
  5074. }
  5075. if level < 0 || level > int32(9) || strategy < 0 || strategy > int32(m_Z_FIXED) {
  5076. return -int32(2)
  5077. }
  5078. func1 = _configuration_table[(*Tdeflate_state)(unsafe.Pointer(s)).Flevel].Ffunc1
  5079. if (strategy != (*Tdeflate_state)(unsafe.Pointer(s)).Fstrategy || func1 != _configuration_table[level].Ffunc1) && (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush != -int32(2) {
  5080. /* Flush the last buffer: */
  5081. err = Xdeflate(tls, strm, int32(m_Z_BLOCK))
  5082. if err == -int32(2) {
  5083. return err
  5084. }
  5085. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in != 0 || (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart-libc.Uint32FromInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start)+(*Tdeflate_state)(unsafe.Pointer(s)).Flookahead != 0 {
  5086. return -int32(5)
  5087. }
  5088. }
  5089. if (*Tdeflate_state)(unsafe.Pointer(s)).Flevel != level {
  5090. if (*Tdeflate_state)(unsafe.Pointer(s)).Flevel == 0 && (*Tdeflate_state)(unsafe.Pointer(s)).Fmatches != uint32(0) {
  5091. if (*Tdeflate_state)(unsafe.Pointer(s)).Fmatches == uint32(1) {
  5092. _slide_hash(tls, s)
  5093. } else {
  5094. *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size-uint32(1))*2)) = uint16(m_NIL)
  5095. libc.Xmemset(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fhead, 0, ((*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size-libc.Uint32FromInt32(1))*uint32(2))
  5096. }
  5097. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatches = uint32(0)
  5098. }
  5099. (*Tdeflate_state)(unsafe.Pointer(s)).Flevel = level
  5100. (*Tdeflate_state)(unsafe.Pointer(s)).Fmax_lazy_match = uint32(_configuration_table[level].Fmax_lazy)
  5101. (*Tdeflate_state)(unsafe.Pointer(s)).Fgood_match = uint32(_configuration_table[level].Fgood_length)
  5102. (*Tdeflate_state)(unsafe.Pointer(s)).Fnice_match = libc.Int32FromUint16(_configuration_table[level].Fnice_length)
  5103. (*Tdeflate_state)(unsafe.Pointer(s)).Fmax_chain_length = uint32(_configuration_table[level].Fmax_chain)
  5104. }
  5105. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrategy = strategy
  5106. return m_Z_OK
  5107. }
  5108. // C documentation
  5109. //
  5110. // /* ========================================================================= */
  5111. func XdeflateTune(tls *libc.TLS, strm Tz_streamp, good_length int32, max_lazy int32, nice_length int32, max_chain int32) (r int32) {
  5112. var s uintptr
  5113. _ = s
  5114. if _deflateStateCheck(tls, strm) != 0 {
  5115. return -int32(2)
  5116. }
  5117. s = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  5118. (*Tdeflate_state)(unsafe.Pointer(s)).Fgood_match = libc.Uint32FromInt32(good_length)
  5119. (*Tdeflate_state)(unsafe.Pointer(s)).Fmax_lazy_match = libc.Uint32FromInt32(max_lazy)
  5120. (*Tdeflate_state)(unsafe.Pointer(s)).Fnice_match = nice_length
  5121. (*Tdeflate_state)(unsafe.Pointer(s)).Fmax_chain_length = libc.Uint32FromInt32(max_chain)
  5122. return m_Z_OK
  5123. }
  5124. // C documentation
  5125. //
  5126. // /* =========================================================================
  5127. // * For the default windowBits of 15 and memLevel of 8, this function returns a
  5128. // * close to exact, as well as small, upper bound on the compressed size. This
  5129. // * is an expansion of ~0.03%, plus a small constant.
  5130. // *
  5131. // * For any setting other than those defaults for windowBits and memLevel, one
  5132. // * of two worst case bounds is returned. This is at most an expansion of ~4% or
  5133. // * ~13%, plus a small constant.
  5134. // *
  5135. // * Both the 0.03% and 4% derive from the overhead of stored blocks. The first
  5136. // * one is for stored blocks of 16383 bytes (memLevel == 8), whereas the second
  5137. // * is for stored blocks of 127 bytes (the worst case memLevel == 1). The
  5138. // * expansion results from five bytes of header for each stored block.
  5139. // *
  5140. // * The larger expansion of 13% results from a window size less than or equal to
  5141. // * the symbols buffer size (windowBits <= memLevel + 7). In that case some of
  5142. // * the data being compressed may have slid out of the sliding window, impeding
  5143. // * a stored block from being emitted. Then the only choice is a fixed or
  5144. // * dynamic block, where a fixed block limits the maximum expansion to 9 bits
  5145. // * per 8-bit byte, plus 10 bits for every block. The smallest block size for
  5146. // * which this can occur is 255 (memLevel == 2).
  5147. // *
  5148. // * Shifts are used to approximate divisions, for speed.
  5149. // */
  5150. func XdeflateBound(tls *libc.TLS, strm Tz_streamp, sourceLen TuLong) (r TuLong) {
  5151. var fixedlen, storelen, wraplen TuLong
  5152. var s, str, v3, v5 uintptr
  5153. var v1, v7 uint32
  5154. var v2 int32
  5155. _, _, _, _, _, _, _, _, _, _ = fixedlen, s, storelen, str, wraplen, v1, v2, v3, v5, v7
  5156. /* upper bound for fixed blocks with 9-bit literals and length 255
  5157. (memLevel == 2, which is the lowest that may not use stored blocks) --
  5158. ~13% overhead plus a small constant */
  5159. fixedlen = sourceLen + sourceLen>>libc.Int32FromInt32(3) + sourceLen>>libc.Int32FromInt32(8) + sourceLen>>libc.Int32FromInt32(9) + uint32(4)
  5160. /* upper bound for stored blocks with length 127 (memLevel == 1) --
  5161. ~4% overhead plus a small constant */
  5162. storelen = sourceLen + sourceLen>>libc.Int32FromInt32(5) + sourceLen>>libc.Int32FromInt32(7) + sourceLen>>libc.Int32FromInt32(11) + uint32(7)
  5163. /* if can't get parameters, return larger bound plus a zlib wrapper */
  5164. if _deflateStateCheck(tls, strm) != 0 {
  5165. if fixedlen > storelen {
  5166. v1 = fixedlen
  5167. } else {
  5168. v1 = storelen
  5169. }
  5170. return v1 + uint32(6)
  5171. }
  5172. /* compute wrapper length */
  5173. s = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  5174. switch (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap {
  5175. case 0: /* raw deflate */
  5176. wraplen = uint32(0)
  5177. case int32(1): /* zlib wrapper */
  5178. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart != 0 {
  5179. v2 = int32(4)
  5180. } else {
  5181. v2 = 0
  5182. }
  5183. wraplen = libc.Uint32FromInt32(int32(6) + v2)
  5184. case int32(2): /* gzip wrapper */
  5185. wraplen = uint32(18)
  5186. if (*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead != uintptr(m_Z_NULL) {
  5187. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra != uintptr(m_Z_NULL) {
  5188. wraplen += uint32(2) + (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra_len
  5189. }
  5190. str = (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fname
  5191. if str != uintptr(m_Z_NULL) {
  5192. for {
  5193. wraplen++
  5194. goto _4
  5195. _4:
  5196. ;
  5197. v3 = str
  5198. str++
  5199. if !(*(*TBytef)(unsafe.Pointer(v3)) != 0) {
  5200. break
  5201. }
  5202. }
  5203. }
  5204. str = (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fcomment
  5205. if str != uintptr(m_Z_NULL) {
  5206. for {
  5207. wraplen++
  5208. goto _6
  5209. _6:
  5210. ;
  5211. v5 = str
  5212. str++
  5213. if !(*(*TBytef)(unsafe.Pointer(v5)) != 0) {
  5214. break
  5215. }
  5216. }
  5217. }
  5218. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 {
  5219. wraplen += uint32(2)
  5220. }
  5221. }
  5222. default: /* for compiler happiness */
  5223. wraplen = uint32(6)
  5224. }
  5225. /* if not default parameters, return one of the conservative bounds */
  5226. 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)) {
  5227. if (*Tdeflate_state)(unsafe.Pointer(s)).Fw_bits <= (*Tdeflate_state)(unsafe.Pointer(s)).Fhash_bits && (*Tdeflate_state)(unsafe.Pointer(s)).Flevel != 0 {
  5228. v7 = fixedlen
  5229. } else {
  5230. v7 = storelen
  5231. }
  5232. return v7 + wraplen
  5233. }
  5234. /* default settings: return tight bound for that case -- ~0.03% overhead
  5235. plus a small constant */
  5236. return sourceLen + sourceLen>>libc.Int32FromInt32(12) + sourceLen>>libc.Int32FromInt32(14) + sourceLen>>libc.Int32FromInt32(25) + uint32(13) - uint32(6) + wraplen
  5237. }
  5238. // C documentation
  5239. //
  5240. // /* =========================================================================
  5241. // * Put a short in the pending buffer. The 16-bit value is put in MSB order.
  5242. // * IN assertion: the stream state is correct and there is enough room in
  5243. // * pending_buf.
  5244. // */
  5245. func _putShortMSB(tls *libc.TLS, s uintptr, b TuInt) {
  5246. var v1, v3 Tulg
  5247. var v2, v4 uintptr
  5248. _, _, _, _ = v1, v2, v3, v4
  5249. v2 = s + 20
  5250. v1 = *(*Tulg)(unsafe.Pointer(v2))
  5251. *(*Tulg)(unsafe.Pointer(v2))++
  5252. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v1))) = uint8(b >> libc.Int32FromInt32(8))
  5253. v4 = s + 20
  5254. v3 = *(*Tulg)(unsafe.Pointer(v4))
  5255. *(*Tulg)(unsafe.Pointer(v4))++
  5256. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v3))) = uint8(b & libc.Uint32FromInt32(0xff))
  5257. }
  5258. // C documentation
  5259. //
  5260. // /* =========================================================================
  5261. // * Flush as much pending output as possible. All deflate() output, except for
  5262. // * some deflate_stored() output, goes through this function so some
  5263. // * applications may wish to modify it to avoid allocating a large
  5264. // * strm->next_out buffer and copying into it. (See also read_buf()).
  5265. // */
  5266. func _flush_pending(tls *libc.TLS, strm Tz_streamp) {
  5267. var len1 uint32
  5268. var s uintptr
  5269. _, _ = len1, s
  5270. s = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  5271. x__tr_flush_bits(tls, s)
  5272. len1 = (*Tdeflate_state)(unsafe.Pointer(s)).Fpending
  5273. if len1 > (*Tz_stream)(unsafe.Pointer(strm)).Favail_out {
  5274. len1 = (*Tz_stream)(unsafe.Pointer(strm)).Favail_out
  5275. }
  5276. if len1 == uint32(0) {
  5277. return
  5278. }
  5279. libc.Xmemcpy(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out, (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_out, len1)
  5280. *(*uintptr)(unsafe.Pointer(strm + 12)) += uintptr(len1)
  5281. *(*uintptr)(unsafe.Pointer(s + 16)) += uintptr(len1)
  5282. *(*TuLong)(unsafe.Pointer(strm + 20)) += len1
  5283. *(*TuInt)(unsafe.Pointer(strm + 16)) -= len1
  5284. *(*Tulg)(unsafe.Pointer(s + 20)) -= len1
  5285. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending == uint32(0) {
  5286. (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_out = (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf
  5287. }
  5288. }
  5289. /* ===========================================================================
  5290. * Update the header CRC with the bytes s->pending_buf[beg..s->pending - 1].
  5291. */
  5292. // C documentation
  5293. //
  5294. // /* ========================================================================= */
  5295. func Xdeflate(tls *libc.TLS, strm Tz_streamp, flush int32) (r int32) {
  5296. 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
  5297. var bstate Tblock_state
  5298. var copy1, header, left, level_flags TuInt
  5299. var old_flush, val, val1, v1, v2, v22, v23, v28, v29, v30, v31, v32, v43, v44, v63, v64, v65, v82 int32
  5300. 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
  5301. var v3 bool
  5302. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = 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
  5303. if _deflateStateCheck(tls, strm) != 0 || flush > int32(m_Z_BLOCK) || flush < 0 {
  5304. return -int32(2)
  5305. }
  5306. s = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  5307. 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) {
  5308. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = Xz_errmsg[libc.Int32FromInt32(2) - -libc.Int32FromInt32(2)]
  5309. return -libc.Int32FromInt32(2)
  5310. }
  5311. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_out == uint32(0) {
  5312. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = Xz_errmsg[libc.Int32FromInt32(2) - -libc.Int32FromInt32(5)]
  5313. return -libc.Int32FromInt32(5)
  5314. }
  5315. old_flush = (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush
  5316. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = flush
  5317. /* Flush as much pending output as possible */
  5318. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending != uint32(0) {
  5319. _flush_pending(tls, strm)
  5320. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_out == uint32(0) {
  5321. /* Since avail_out is 0, deflate will be called again with
  5322. * more output space, but possibly with both pending and
  5323. * avail_in equal to zero. There won't be anything to do,
  5324. * but this is not an error situation so make sure we
  5325. * return OK instead of BUF_ERROR at next call of deflate:
  5326. */
  5327. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = -int32(1)
  5328. return m_Z_OK
  5329. }
  5330. /* Make sure there is something to do and avoid duplicate consecutive
  5331. * flushes. For repeated and useless calls with Z_FINISH, we keep
  5332. * returning Z_STREAM_END instead of Z_BUF_ERROR.
  5333. */
  5334. } else {
  5335. if v3 = (*Tz_stream)(unsafe.Pointer(strm)).Favail_in == uint32(0); v3 {
  5336. if flush > int32(4) {
  5337. v1 = int32(9)
  5338. } else {
  5339. v1 = 0
  5340. }
  5341. if old_flush > int32(4) {
  5342. v2 = int32(9)
  5343. } else {
  5344. v2 = 0
  5345. }
  5346. }
  5347. if v3 && flush*int32(2)-v1 <= old_flush*int32(2)-v2 && flush != int32(m_Z_FINISH) {
  5348. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = Xz_errmsg[libc.Int32FromInt32(2) - -libc.Int32FromInt32(5)]
  5349. return -libc.Int32FromInt32(5)
  5350. }
  5351. }
  5352. /* User must not provide more input after the first FINISH: */
  5353. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus == int32(m_FINISH_STATE) && (*Tz_stream)(unsafe.Pointer(strm)).Favail_in != uint32(0) {
  5354. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = Xz_errmsg[libc.Int32FromInt32(2) - -libc.Int32FromInt32(5)]
  5355. return -libc.Int32FromInt32(5)
  5356. }
  5357. /* Write the header */
  5358. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus == int32(m_INIT_STATE) && (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap == 0 {
  5359. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = int32(m_BUSY_STATE)
  5360. }
  5361. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus == int32(m_INIT_STATE) {
  5362. /* zlib header */
  5363. header = (uint32(m_Z_DEFLATED) + ((*Tdeflate_state)(unsafe.Pointer(s)).Fw_bits-uint32(8))<<int32(4)) << int32(8)
  5364. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstrategy >= int32(m_Z_HUFFMAN_ONLY) || (*Tdeflate_state)(unsafe.Pointer(s)).Flevel < int32(2) {
  5365. level_flags = uint32(0)
  5366. } else {
  5367. if (*Tdeflate_state)(unsafe.Pointer(s)).Flevel < int32(6) {
  5368. level_flags = uint32(1)
  5369. } else {
  5370. if (*Tdeflate_state)(unsafe.Pointer(s)).Flevel == int32(6) {
  5371. level_flags = uint32(2)
  5372. } else {
  5373. level_flags = uint32(3)
  5374. }
  5375. }
  5376. }
  5377. header |= level_flags << libc.Int32FromInt32(6)
  5378. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart != uint32(0) {
  5379. header |= uint32(m_PRESET_DICT1)
  5380. }
  5381. header += uint32(31) - header%uint32(31)
  5382. _putShortMSB(tls, s, header)
  5383. /* Save the adler32 of the preset dictionary: */
  5384. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart != uint32(0) {
  5385. _putShortMSB(tls, s, uint32((*Tz_stream)(unsafe.Pointer(strm)).Fadler>>libc.Int32FromInt32(16)))
  5386. _putShortMSB(tls, s, uint32((*Tz_stream)(unsafe.Pointer(strm)).Fadler&libc.Uint32FromInt32(0xffff)))
  5387. }
  5388. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xadler32(tls, uint32(0), uintptr(m_Z_NULL), uint32(0))
  5389. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = int32(m_BUSY_STATE)
  5390. /* Compression must start with an empty pending buffer */
  5391. _flush_pending(tls, strm)
  5392. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending != uint32(0) {
  5393. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = -int32(1)
  5394. return m_Z_OK
  5395. }
  5396. }
  5397. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus == int32(m_GZIP_STATE) {
  5398. /* gzip header */
  5399. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, uint32(0), uintptr(m_Z_NULL), uint32(0))
  5400. v5 = s + 20
  5401. v4 = *(*Tulg)(unsafe.Pointer(v5))
  5402. *(*Tulg)(unsafe.Pointer(v5))++
  5403. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v4))) = libc.Uint8FromInt32(libc.Int32FromInt32(31))
  5404. v7 = s + 20
  5405. v6 = *(*Tulg)(unsafe.Pointer(v7))
  5406. *(*Tulg)(unsafe.Pointer(v7))++
  5407. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v6))) = libc.Uint8FromInt32(libc.Int32FromInt32(139))
  5408. v9 = s + 20
  5409. v8 = *(*Tulg)(unsafe.Pointer(v9))
  5410. *(*Tulg)(unsafe.Pointer(v9))++
  5411. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v8))) = libc.Uint8FromInt32(libc.Int32FromInt32(8))
  5412. if (*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead == uintptr(m_Z_NULL) {
  5413. v11 = s + 20
  5414. v10 = *(*Tulg)(unsafe.Pointer(v11))
  5415. *(*Tulg)(unsafe.Pointer(v11))++
  5416. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v10))) = libc.Uint8FromInt32(libc.Int32FromInt32(0))
  5417. v13 = s + 20
  5418. v12 = *(*Tulg)(unsafe.Pointer(v13))
  5419. *(*Tulg)(unsafe.Pointer(v13))++
  5420. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v12))) = libc.Uint8FromInt32(libc.Int32FromInt32(0))
  5421. v15 = s + 20
  5422. v14 = *(*Tulg)(unsafe.Pointer(v15))
  5423. *(*Tulg)(unsafe.Pointer(v15))++
  5424. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v14))) = libc.Uint8FromInt32(libc.Int32FromInt32(0))
  5425. v17 = s + 20
  5426. v16 = *(*Tulg)(unsafe.Pointer(v17))
  5427. *(*Tulg)(unsafe.Pointer(v17))++
  5428. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v16))) = libc.Uint8FromInt32(libc.Int32FromInt32(0))
  5429. v19 = s + 20
  5430. v18 = *(*Tulg)(unsafe.Pointer(v19))
  5431. *(*Tulg)(unsafe.Pointer(v19))++
  5432. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v18))) = libc.Uint8FromInt32(libc.Int32FromInt32(0))
  5433. v21 = s + 20
  5434. v20 = *(*Tulg)(unsafe.Pointer(v21))
  5435. *(*Tulg)(unsafe.Pointer(v21))++
  5436. if (*Tdeflate_state)(unsafe.Pointer(s)).Flevel == int32(9) {
  5437. v22 = int32(2)
  5438. } else {
  5439. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstrategy >= int32(m_Z_HUFFMAN_ONLY) || (*Tdeflate_state)(unsafe.Pointer(s)).Flevel < int32(2) {
  5440. v23 = int32(4)
  5441. } else {
  5442. v23 = 0
  5443. }
  5444. v22 = v23
  5445. }
  5446. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v20))) = libc.Uint8FromInt32(v22)
  5447. v25 = s + 20
  5448. v24 = *(*Tulg)(unsafe.Pointer(v25))
  5449. *(*Tulg)(unsafe.Pointer(v25))++
  5450. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v24))) = libc.Uint8FromInt32(libc.Int32FromInt32(m_OS_CODE))
  5451. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = int32(m_BUSY_STATE)
  5452. /* Compression must start with an empty pending buffer */
  5453. _flush_pending(tls, strm)
  5454. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending != uint32(0) {
  5455. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = -int32(1)
  5456. return m_Z_OK
  5457. }
  5458. } else {
  5459. v27 = s + 20
  5460. v26 = *(*Tulg)(unsafe.Pointer(v27))
  5461. *(*Tulg)(unsafe.Pointer(v27))++
  5462. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Ftext != 0 {
  5463. v28 = int32(1)
  5464. } else {
  5465. v28 = 0
  5466. }
  5467. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 {
  5468. v29 = int32(2)
  5469. } else {
  5470. v29 = 0
  5471. }
  5472. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra == uintptr(m_Z_NULL) {
  5473. v30 = 0
  5474. } else {
  5475. v30 = int32(4)
  5476. }
  5477. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fname == uintptr(m_Z_NULL) {
  5478. v31 = 0
  5479. } else {
  5480. v31 = int32(8)
  5481. }
  5482. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fcomment == uintptr(m_Z_NULL) {
  5483. v32 = 0
  5484. } else {
  5485. v32 = int32(16)
  5486. }
  5487. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v26))) = libc.Uint8FromInt32(v28 + v29 + v30 + v31 + v32)
  5488. v34 = s + 20
  5489. v33 = *(*Tulg)(unsafe.Pointer(v34))
  5490. *(*Tulg)(unsafe.Pointer(v34))++
  5491. *(*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.Uint32FromInt32(0xff))
  5492. v36 = s + 20
  5493. v35 = *(*Tulg)(unsafe.Pointer(v36))
  5494. *(*Tulg)(unsafe.Pointer(v36))++
  5495. *(*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.Uint32FromInt32(0xff))
  5496. v38 = s + 20
  5497. v37 = *(*Tulg)(unsafe.Pointer(v38))
  5498. *(*Tulg)(unsafe.Pointer(v38))++
  5499. *(*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.Uint32FromInt32(0xff))
  5500. v40 = s + 20
  5501. v39 = *(*Tulg)(unsafe.Pointer(v40))
  5502. *(*Tulg)(unsafe.Pointer(v40))++
  5503. *(*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.Uint32FromInt32(0xff))
  5504. v42 = s + 20
  5505. v41 = *(*Tulg)(unsafe.Pointer(v42))
  5506. *(*Tulg)(unsafe.Pointer(v42))++
  5507. if (*Tdeflate_state)(unsafe.Pointer(s)).Flevel == int32(9) {
  5508. v43 = int32(2)
  5509. } else {
  5510. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstrategy >= int32(m_Z_HUFFMAN_ONLY) || (*Tdeflate_state)(unsafe.Pointer(s)).Flevel < int32(2) {
  5511. v44 = int32(4)
  5512. } else {
  5513. v44 = 0
  5514. }
  5515. v43 = v44
  5516. }
  5517. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v41))) = libc.Uint8FromInt32(v43)
  5518. v46 = s + 20
  5519. v45 = *(*Tulg)(unsafe.Pointer(v46))
  5520. *(*Tulg)(unsafe.Pointer(v46))++
  5521. *(*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))
  5522. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra != uintptr(m_Z_NULL) {
  5523. v48 = s + 20
  5524. v47 = *(*Tulg)(unsafe.Pointer(v48))
  5525. *(*Tulg)(unsafe.Pointer(v48))++
  5526. *(*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))
  5527. v50 = s + 20
  5528. v49 = *(*Tulg)(unsafe.Pointer(v50))
  5529. *(*Tulg)(unsafe.Pointer(v50))++
  5530. *(*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))
  5531. }
  5532. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 {
  5533. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fadler, (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf, (*Tdeflate_state)(unsafe.Pointer(s)).Fpending)
  5534. }
  5535. (*Tdeflate_state)(unsafe.Pointer(s)).Fgzindex = uint32(0)
  5536. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = int32(m_EXTRA_STATE)
  5537. }
  5538. }
  5539. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus == int32(m_EXTRA_STATE) {
  5540. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra != uintptr(m_Z_NULL) {
  5541. beg = (*Tdeflate_state)(unsafe.Pointer(s)).Fpending /* start of bytes to update crc */
  5542. left = uint32((*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fextra_len&libc.Uint32FromInt32(0xffff)) - (*Tdeflate_state)(unsafe.Pointer(s)).Fgzindex
  5543. for (*Tdeflate_state)(unsafe.Pointer(s)).Fpending+left > (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf_size {
  5544. copy1 = (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf_size - (*Tdeflate_state)(unsafe.Pointer(s)).Fpending
  5545. 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), copy1)
  5546. (*Tdeflate_state)(unsafe.Pointer(s)).Fpending = (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf_size
  5547. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 && (*Tdeflate_state)(unsafe.Pointer(s)).Fpending > beg {
  5548. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fadler, (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf+uintptr(beg), (*Tdeflate_state)(unsafe.Pointer(s)).Fpending-beg)
  5549. }
  5550. *(*Tulg)(unsafe.Pointer(s + 32)) += copy1
  5551. _flush_pending(tls, strm)
  5552. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending != uint32(0) {
  5553. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = -int32(1)
  5554. return m_Z_OK
  5555. }
  5556. beg = uint32(0)
  5557. left -= copy1
  5558. }
  5559. 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), left)
  5560. *(*Tulg)(unsafe.Pointer(s + 20)) += left
  5561. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 && (*Tdeflate_state)(unsafe.Pointer(s)).Fpending > beg {
  5562. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fadler, (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf+uintptr(beg), (*Tdeflate_state)(unsafe.Pointer(s)).Fpending-beg)
  5563. }
  5564. (*Tdeflate_state)(unsafe.Pointer(s)).Fgzindex = uint32(0)
  5565. }
  5566. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = int32(m_NAME_STATE)
  5567. }
  5568. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus == int32(m_NAME_STATE) {
  5569. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fname != uintptr(m_Z_NULL) {
  5570. beg1 = (*Tdeflate_state)(unsafe.Pointer(s)).Fpending
  5571. for cond := true; cond; cond = val != 0 {
  5572. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending == (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf_size {
  5573. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 && (*Tdeflate_state)(unsafe.Pointer(s)).Fpending > beg1 {
  5574. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fadler, (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf+uintptr(beg1), (*Tdeflate_state)(unsafe.Pointer(s)).Fpending-beg1)
  5575. }
  5576. _flush_pending(tls, strm)
  5577. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending != uint32(0) {
  5578. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = -int32(1)
  5579. return m_Z_OK
  5580. }
  5581. beg1 = uint32(0)
  5582. }
  5583. v52 = s + 32
  5584. v51 = *(*Tulg)(unsafe.Pointer(v52))
  5585. *(*Tulg)(unsafe.Pointer(v52))++
  5586. val = libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer((*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fname + uintptr(v51))))
  5587. v54 = s + 20
  5588. v53 = *(*Tulg)(unsafe.Pointer(v54))
  5589. *(*Tulg)(unsafe.Pointer(v54))++
  5590. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v53))) = libc.Uint8FromInt32(val)
  5591. }
  5592. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 && (*Tdeflate_state)(unsafe.Pointer(s)).Fpending > beg1 {
  5593. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fadler, (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf+uintptr(beg1), (*Tdeflate_state)(unsafe.Pointer(s)).Fpending-beg1)
  5594. }
  5595. (*Tdeflate_state)(unsafe.Pointer(s)).Fgzindex = uint32(0)
  5596. }
  5597. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = int32(m_COMMENT_STATE)
  5598. }
  5599. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus == int32(m_COMMENT_STATE) {
  5600. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fcomment != uintptr(m_Z_NULL) {
  5601. beg2 = (*Tdeflate_state)(unsafe.Pointer(s)).Fpending
  5602. for cond := true; cond; cond = val1 != 0 {
  5603. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending == (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf_size {
  5604. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 && (*Tdeflate_state)(unsafe.Pointer(s)).Fpending > beg2 {
  5605. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fadler, (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf+uintptr(beg2), (*Tdeflate_state)(unsafe.Pointer(s)).Fpending-beg2)
  5606. }
  5607. _flush_pending(tls, strm)
  5608. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending != uint32(0) {
  5609. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = -int32(1)
  5610. return m_Z_OK
  5611. }
  5612. beg2 = uint32(0)
  5613. }
  5614. v56 = s + 32
  5615. v55 = *(*Tulg)(unsafe.Pointer(v56))
  5616. *(*Tulg)(unsafe.Pointer(v56))++
  5617. val1 = libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer((*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fcomment + uintptr(v55))))
  5618. v58 = s + 20
  5619. v57 = *(*Tulg)(unsafe.Pointer(v58))
  5620. *(*Tulg)(unsafe.Pointer(v58))++
  5621. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v57))) = libc.Uint8FromInt32(val1)
  5622. }
  5623. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 && (*Tdeflate_state)(unsafe.Pointer(s)).Fpending > beg2 {
  5624. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fadler, (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf+uintptr(beg2), (*Tdeflate_state)(unsafe.Pointer(s)).Fpending-beg2)
  5625. }
  5626. }
  5627. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = int32(m_HCRC_STATE)
  5628. }
  5629. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus == int32(m_HCRC_STATE) {
  5630. if (*Tgz_header)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fgzhead)).Fhcrc != 0 {
  5631. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending+uint32(2) > (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf_size {
  5632. _flush_pending(tls, strm)
  5633. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending != uint32(0) {
  5634. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = -int32(1)
  5635. return m_Z_OK
  5636. }
  5637. }
  5638. v60 = s + 20
  5639. v59 = *(*Tulg)(unsafe.Pointer(v60))
  5640. *(*Tulg)(unsafe.Pointer(v60))++
  5641. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v59))) = uint8((*Tz_stream)(unsafe.Pointer(strm)).Fadler & libc.Uint32FromInt32(0xff))
  5642. v62 = s + 20
  5643. v61 = *(*Tulg)(unsafe.Pointer(v62))
  5644. *(*Tulg)(unsafe.Pointer(v62))++
  5645. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v61))) = uint8((*Tz_stream)(unsafe.Pointer(strm)).Fadler >> libc.Int32FromInt32(8) & libc.Uint32FromInt32(0xff))
  5646. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = Xcrc32(tls, uint32(0), uintptr(m_Z_NULL), uint32(0))
  5647. }
  5648. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = int32(m_BUSY_STATE)
  5649. /* Compression must start with an empty pending buffer */
  5650. _flush_pending(tls, strm)
  5651. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending != uint32(0) {
  5652. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = -int32(1)
  5653. return m_Z_OK
  5654. }
  5655. }
  5656. /* Start a new block or continue the current one.
  5657. */
  5658. 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) {
  5659. if (*Tdeflate_state)(unsafe.Pointer(s)).Flevel == 0 {
  5660. v63 = _deflate_stored(tls, s, flush)
  5661. } else {
  5662. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstrategy == int32(m_Z_HUFFMAN_ONLY) {
  5663. v64 = _deflate_huff(tls, s, flush)
  5664. } else {
  5665. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstrategy == int32(m_Z_RLE) {
  5666. v65 = _deflate_rle(tls, s, flush)
  5667. } else {
  5668. v65 = (*(*func(*libc.TLS, uintptr, int32) Tblock_state)(unsafe.Pointer(&struct{ uintptr }{_configuration_table[(*Tdeflate_state)(unsafe.Pointer(s)).Flevel].Ffunc1})))(tls, s, flush)
  5669. }
  5670. v64 = v65
  5671. }
  5672. v63 = v64
  5673. }
  5674. bstate = v63
  5675. if bstate == int32(_finish_started) || bstate == int32(_finish_done) {
  5676. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatus = int32(m_FINISH_STATE)
  5677. }
  5678. if bstate == int32(_need_more) || bstate == int32(_finish_started) {
  5679. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_out == uint32(0) {
  5680. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = -int32(1) /* avoid BUF_ERROR next call, see above */
  5681. }
  5682. return m_Z_OK
  5683. /* If flush != Z_NO_FLUSH && avail_out == 0, the next call
  5684. * of deflate should use the same flush parameter to make sure
  5685. * that the flush is complete. So we don't have to output an
  5686. * empty block here, this will be done at next call. This also
  5687. * ensures that for a very small output buffer, we emit at most
  5688. * one empty block.
  5689. */
  5690. }
  5691. if bstate == int32(_block_done) {
  5692. if flush == int32(m_Z_PARTIAL_FLUSH) {
  5693. x__tr_align(tls, s)
  5694. } else {
  5695. if flush != int32(m_Z_BLOCK) { /* FULL_FLUSH or SYNC_FLUSH */
  5696. x__tr_stored_block(tls, s, libc.UintptrFromInt32(0), uint32(0), 0)
  5697. /* For a full flush, this empty block will be recognized
  5698. * as a special marker by inflate_sync().
  5699. */
  5700. if flush == int32(m_Z_FULL_FLUSH) {
  5701. *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size-uint32(1))*2)) = uint16(m_NIL)
  5702. libc.Xmemset(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fhead, 0, ((*Tdeflate_state)(unsafe.Pointer(s)).Fhash_size-libc.Uint32FromInt32(1))*uint32(2)) /* forget history */
  5703. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead == uint32(0) {
  5704. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart = uint32(0)
  5705. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = 0
  5706. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = uint32(0)
  5707. }
  5708. }
  5709. }
  5710. }
  5711. _flush_pending(tls, strm)
  5712. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_out == uint32(0) {
  5713. (*Tdeflate_state)(unsafe.Pointer(s)).Flast_flush = -int32(1) /* avoid BUF_ERROR at next call, see above */
  5714. return m_Z_OK
  5715. }
  5716. }
  5717. }
  5718. if flush != int32(m_Z_FINISH) {
  5719. return m_Z_OK
  5720. }
  5721. if (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap <= 0 {
  5722. return int32(m_Z_STREAM_END)
  5723. }
  5724. /* Write the trailer */
  5725. if (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap == int32(2) {
  5726. v67 = s + 20
  5727. v66 = *(*Tulg)(unsafe.Pointer(v67))
  5728. *(*Tulg)(unsafe.Pointer(v67))++
  5729. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v66))) = uint8((*Tz_stream)(unsafe.Pointer(strm)).Fadler & libc.Uint32FromInt32(0xff))
  5730. v69 = s + 20
  5731. v68 = *(*Tulg)(unsafe.Pointer(v69))
  5732. *(*Tulg)(unsafe.Pointer(v69))++
  5733. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v68))) = uint8((*Tz_stream)(unsafe.Pointer(strm)).Fadler >> libc.Int32FromInt32(8) & libc.Uint32FromInt32(0xff))
  5734. v71 = s + 20
  5735. v70 = *(*Tulg)(unsafe.Pointer(v71))
  5736. *(*Tulg)(unsafe.Pointer(v71))++
  5737. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v70))) = uint8((*Tz_stream)(unsafe.Pointer(strm)).Fadler >> libc.Int32FromInt32(16) & libc.Uint32FromInt32(0xff))
  5738. v73 = s + 20
  5739. v72 = *(*Tulg)(unsafe.Pointer(v73))
  5740. *(*Tulg)(unsafe.Pointer(v73))++
  5741. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v72))) = uint8((*Tz_stream)(unsafe.Pointer(strm)).Fadler >> libc.Int32FromInt32(24) & libc.Uint32FromInt32(0xff))
  5742. v75 = s + 20
  5743. v74 = *(*Tulg)(unsafe.Pointer(v75))
  5744. *(*Tulg)(unsafe.Pointer(v75))++
  5745. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v74))) = uint8((*Tz_stream)(unsafe.Pointer(strm)).Ftotal_in & libc.Uint32FromInt32(0xff))
  5746. v77 = s + 20
  5747. v76 = *(*Tulg)(unsafe.Pointer(v77))
  5748. *(*Tulg)(unsafe.Pointer(v77))++
  5749. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v76))) = uint8((*Tz_stream)(unsafe.Pointer(strm)).Ftotal_in >> libc.Int32FromInt32(8) & libc.Uint32FromInt32(0xff))
  5750. v79 = s + 20
  5751. v78 = *(*Tulg)(unsafe.Pointer(v79))
  5752. *(*Tulg)(unsafe.Pointer(v79))++
  5753. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v78))) = uint8((*Tz_stream)(unsafe.Pointer(strm)).Ftotal_in >> libc.Int32FromInt32(16) & libc.Uint32FromInt32(0xff))
  5754. v81 = s + 20
  5755. v80 = *(*Tulg)(unsafe.Pointer(v81))
  5756. *(*Tulg)(unsafe.Pointer(v81))++
  5757. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v80))) = uint8((*Tz_stream)(unsafe.Pointer(strm)).Ftotal_in >> libc.Int32FromInt32(24) & libc.Uint32FromInt32(0xff))
  5758. } else {
  5759. _putShortMSB(tls, s, uint32((*Tz_stream)(unsafe.Pointer(strm)).Fadler>>libc.Int32FromInt32(16)))
  5760. _putShortMSB(tls, s, uint32((*Tz_stream)(unsafe.Pointer(strm)).Fadler&libc.Uint32FromInt32(0xffff)))
  5761. }
  5762. _flush_pending(tls, strm)
  5763. /* If avail_out is zero, the application will call deflate again
  5764. * to flush the rest.
  5765. */
  5766. if (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap > 0 {
  5767. (*Tdeflate_state)(unsafe.Pointer(s)).Fwrap = -(*Tdeflate_state)(unsafe.Pointer(s)).Fwrap
  5768. } /* write the trailer only once! */
  5769. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending != uint32(0) {
  5770. v82 = m_Z_OK
  5771. } else {
  5772. v82 = int32(m_Z_STREAM_END)
  5773. }
  5774. return v82
  5775. }
  5776. // C documentation
  5777. //
  5778. // /* ========================================================================= */
  5779. func XdeflateEnd(tls *libc.TLS, strm Tz_streamp) (r int32) {
  5780. var status, v1 int32
  5781. _, _ = status, v1
  5782. if _deflateStateCheck(tls, strm) != 0 {
  5783. return -int32(2)
  5784. }
  5785. status = (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fstatus
  5786. /* Deallocate in reverse order of allocations: */
  5787. if (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fpending_buf != 0 {
  5788. (*(*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)
  5789. }
  5790. if (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fhead != 0 {
  5791. (*(*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)
  5792. }
  5793. if (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fprev != 0 {
  5794. (*(*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)
  5795. }
  5796. if (*Tinternal_state)(unsafe.Pointer((*Tz_stream)(unsafe.Pointer(strm)).Fstate)).Fwindow != 0 {
  5797. (*(*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)
  5798. }
  5799. (*(*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)
  5800. (*Tz_stream)(unsafe.Pointer(strm)).Fstate = uintptr(m_Z_NULL)
  5801. if status == int32(m_BUSY_STATE) {
  5802. v1 = -int32(3)
  5803. } else {
  5804. v1 = m_Z_OK
  5805. }
  5806. return v1
  5807. }
  5808. // C documentation
  5809. //
  5810. // /* =========================================================================
  5811. // * Copy the source state to the destination state.
  5812. // * To simplify the source, this is not supported for 16-bit MSDOS (which
  5813. // * doesn't have enough memory anyway to duplicate compression states).
  5814. // */
  5815. func XdeflateCopy(tls *libc.TLS, dest Tz_streamp, source Tz_streamp) (r int32) {
  5816. var ds, ss uintptr
  5817. _, _ = ds, ss
  5818. if _deflateStateCheck(tls, source) != 0 || dest == uintptr(m_Z_NULL) {
  5819. return -int32(2)
  5820. }
  5821. ss = (*Tz_stream)(unsafe.Pointer(source)).Fstate
  5822. libc.Xmemcpy(tls, dest, source, uint32(56))
  5823. 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)), libc.Uint32FromInt64(5828))
  5824. if ds == uintptr(m_Z_NULL) {
  5825. return -int32(4)
  5826. }
  5827. (*Tz_stream)(unsafe.Pointer(dest)).Fstate = ds
  5828. libc.Xmemcpy(tls, ds, ss, uint32(5828))
  5829. (*Tdeflate_state)(unsafe.Pointer(ds)).Fstrm = dest
  5830. (*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, libc.Uint32FromInt32(2)*libc.Uint32FromInt64(1))
  5831. (*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, libc.Uint32FromInt64(2))
  5832. (*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, libc.Uint32FromInt64(2))
  5833. (*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)))
  5834. 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) {
  5835. XdeflateEnd(tls, dest)
  5836. return -int32(4)
  5837. }
  5838. /* following zmemcpy do not work for 16-bit MSDOS */
  5839. libc.Xmemcpy(tls, (*Tdeflate_state)(unsafe.Pointer(ds)).Fwindow, (*Tdeflate_state)(unsafe.Pointer(ss)).Fwindow, (*Tdeflate_state)(unsafe.Pointer(ds)).Fw_size*uint32(2)*uint32(1))
  5840. libc.Xmemcpy(tls, (*Tdeflate_state)(unsafe.Pointer(ds)).Fprev, (*Tdeflate_state)(unsafe.Pointer(ss)).Fprev, (*Tdeflate_state)(unsafe.Pointer(ds)).Fw_size*uint32(2))
  5841. libc.Xmemcpy(tls, (*Tdeflate_state)(unsafe.Pointer(ds)).Fhead, (*Tdeflate_state)(unsafe.Pointer(ss)).Fhead, (*Tdeflate_state)(unsafe.Pointer(ds)).Fhash_size*uint32(2))
  5842. libc.Xmemcpy(tls, (*Tdeflate_state)(unsafe.Pointer(ds)).Fpending_buf, (*Tdeflate_state)(unsafe.Pointer(ss)).Fpending_buf, (*Tdeflate_state)(unsafe.Pointer(ds)).Flit_bufsize*uint32(m_LIT_BUFS))
  5843. (*Tdeflate_state)(unsafe.Pointer(ds)).Fpending_out = (*Tdeflate_state)(unsafe.Pointer(ds)).Fpending_buf + uintptr(int32((*Tdeflate_state)(unsafe.Pointer(ss)).Fpending_out)-int32((*Tdeflate_state)(unsafe.Pointer(ss)).Fpending_buf))
  5844. (*Tdeflate_state)(unsafe.Pointer(ds)).Fsym_buf = (*Tdeflate_state)(unsafe.Pointer(ds)).Fpending_buf + uintptr((*Tdeflate_state)(unsafe.Pointer(ds)).Flit_bufsize)
  5845. (*Tdeflate_state)(unsafe.Pointer(ds)).Fl_desc.Fdyn_tree = ds + 148
  5846. (*Tdeflate_state)(unsafe.Pointer(ds)).Fd_desc.Fdyn_tree = ds + 2440
  5847. (*Tdeflate_state)(unsafe.Pointer(ds)).Fbl_desc.Fdyn_tree = ds + 2684
  5848. return m_Z_OK
  5849. }
  5850. // C documentation
  5851. //
  5852. // /* ===========================================================================
  5853. // * Set match_start to the longest match starting at the given string and
  5854. // * return its length. Matches shorter or equal to prev_length are discarded,
  5855. // * in which case the result is equal to prev_length and match_start is
  5856. // * garbage.
  5857. // * IN assertions: cur_match is the head of the hash chain for the current
  5858. // * string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1
  5859. // * OUT assertion: the match length is not greater than s->lookahead.
  5860. // */
  5861. func _longest_match(tls *libc.TLS, s uintptr, cur_match TIPos) (r TuInt) {
  5862. var best_len, len1, nice_match int32
  5863. var chain_length, v1, v3 uint32
  5864. var limit, v2 TIPos
  5865. var match, prev, scan, strend, v10, v11, v13, v14, v16, v17, v19, v20, v22, v23, v25, v26, v28, v29, v6, v8, v9 uintptr
  5866. var scan_end, scan_end1 TByte
  5867. var wmask TuInt
  5868. var v12, v15, v18, v21, v24, v27, v30, v4, v7 bool
  5869. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = 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
  5870. chain_length = (*Tdeflate_state)(unsafe.Pointer(s)).Fmax_chain_length /* max hash chain length */
  5871. scan = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart) /* length of current match */
  5872. best_len = libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fprev_length) /* best match length so far */
  5873. nice_match = (*Tdeflate_state)(unsafe.Pointer(s)).Fnice_match
  5874. 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)) {
  5875. 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)))
  5876. } else {
  5877. v1 = uint32(m_NIL)
  5878. } /* stop if match long enough */
  5879. limit = v1
  5880. /* Stop when cur_match becomes <= limit. To simplify the code,
  5881. * we prevent matches with the string of window index 0.
  5882. */
  5883. prev = (*Tdeflate_state)(unsafe.Pointer(s)).Fprev
  5884. wmask = (*Tdeflate_state)(unsafe.Pointer(s)).Fw_mask
  5885. strend = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart) + uintptr(m_MAX_MATCH)
  5886. scan_end1 = *(*TBytef)(unsafe.Pointer(scan + uintptr(best_len-int32(1))))
  5887. scan_end = *(*TBytef)(unsafe.Pointer(scan + uintptr(best_len)))
  5888. /* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.
  5889. * It is easy to get rid of this optimization if necessary.
  5890. */
  5891. /* Do not waste too much time if we already have a good match: */
  5892. if (*Tdeflate_state)(unsafe.Pointer(s)).Fprev_length >= (*Tdeflate_state)(unsafe.Pointer(s)).Fgood_match {
  5893. chain_length >>= uint32(2)
  5894. }
  5895. /* Do not look for matches beyond the end of the input. This is necessary
  5896. * to make deflate deterministic.
  5897. */
  5898. if libc.Uint32FromInt32(nice_match) > (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead {
  5899. nice_match = libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Flookahead)
  5900. }
  5901. for {
  5902. match = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(cur_match)
  5903. /* Skip to next match if the match length cannot increase
  5904. * or if the match length is less than 2. Note that the checks below
  5905. * for insufficient lookahead only occur occasionally for performance
  5906. * reasons. Therefore uninitialized memory will be accessed, and
  5907. * conditional jumps will be made that depend on those values.
  5908. * However the length of the match is limited to the lookahead, so
  5909. * the output of deflate is not affected by the uninitialized values.
  5910. */
  5911. 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 {
  5912. match++
  5913. v6 = match
  5914. }
  5915. if v7 || libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v6))) != libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(scan + 1))) {
  5916. goto _5
  5917. }
  5918. /* The check at best_len - 1 can be removed because it will be made
  5919. * again later. (This heuristic is not always a win.)
  5920. * It is not necessary to compare scan[2] and match[2] since they
  5921. * are always equal when the other bytes match, given that
  5922. * the hash keys are equal and that HASH_BITS >= 8.
  5923. */
  5924. scan += uintptr(2)
  5925. /* The check at best_len - 1 can be removed because it will be made
  5926. * again later. (This heuristic is not always a win.)
  5927. * It is not necessary to compare scan[2] and match[2] since they
  5928. * are always equal when the other bytes match, given that
  5929. * the hash keys are equal and that HASH_BITS >= 8.
  5930. */
  5931. match++
  5932. /* We check for insufficient lookahead only every 8th comparison;
  5933. * the 256th check will be made at strstart + 258.
  5934. */
  5935. for {
  5936. goto _31
  5937. _31:
  5938. ;
  5939. scan++
  5940. v8 = scan
  5941. match++
  5942. v9 = match
  5943. if v12 = libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v8))) == libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v9))); v12 {
  5944. scan++
  5945. v10 = scan
  5946. match++
  5947. v11 = match
  5948. }
  5949. if v15 = v12 && libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v10))) == libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v11))); v15 {
  5950. scan++
  5951. v13 = scan
  5952. match++
  5953. v14 = match
  5954. }
  5955. if v18 = v15 && libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v13))) == libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v14))); v18 {
  5956. scan++
  5957. v16 = scan
  5958. match++
  5959. v17 = match
  5960. }
  5961. if v21 = v18 && libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v16))) == libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v17))); v21 {
  5962. scan++
  5963. v19 = scan
  5964. match++
  5965. v20 = match
  5966. }
  5967. if v24 = v21 && libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v19))) == libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v20))); v24 {
  5968. scan++
  5969. v22 = scan
  5970. match++
  5971. v23 = match
  5972. }
  5973. if v27 = v24 && libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v22))) == libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v23))); v27 {
  5974. scan++
  5975. v25 = scan
  5976. match++
  5977. v26 = match
  5978. }
  5979. if v30 = v27 && libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v25))) == libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v26))); v30 {
  5980. scan++
  5981. v28 = scan
  5982. match++
  5983. v29 = match
  5984. }
  5985. if !(v30 && libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v28))) == libc.Int32FromUint8(*(*TBytef)(unsafe.Pointer(v29))) && scan < strend) {
  5986. break
  5987. }
  5988. }
  5989. len1 = int32(m_MAX_MATCH) - (int32(strend) - int32(scan))
  5990. scan = strend - uintptr(m_MAX_MATCH)
  5991. if len1 > best_len {
  5992. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_start = cur_match
  5993. best_len = len1
  5994. if len1 >= nice_match {
  5995. break
  5996. }
  5997. scan_end1 = *(*TBytef)(unsafe.Pointer(scan + uintptr(best_len-int32(1))))
  5998. scan_end = *(*TBytef)(unsafe.Pointer(scan + uintptr(best_len)))
  5999. }
  6000. goto _5
  6001. _5:
  6002. ;
  6003. v2 = uint32(*(*TPosf)(unsafe.Pointer(prev + uintptr(cur_match&wmask)*2)))
  6004. cur_match = v2
  6005. if v4 = v2 > limit; v4 {
  6006. chain_length--
  6007. v3 = chain_length
  6008. }
  6009. if !(v4 && v3 != uint32(0)) {
  6010. break
  6011. }
  6012. }
  6013. if libc.Uint32FromInt32(best_len) <= (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead {
  6014. return libc.Uint32FromInt32(best_len)
  6015. }
  6016. return (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead
  6017. }
  6018. /* ===========================================================================
  6019. * Flush the current block, with given end-of-file flag.
  6020. * IN assertion: strstart is set to the end of the current match.
  6021. */
  6022. /* Same but force premature exit if necessary. */
  6023. /* Maximum stored block length in deflate format (not including header). */
  6024. /* Minimum of a and b. */
  6025. // C documentation
  6026. //
  6027. // /* ===========================================================================
  6028. // * Copy without compression as much as possible from the input stream, return
  6029. // * the current block state.
  6030. // *
  6031. // * In case deflateParams() is used to later switch to a non-zero compression
  6032. // * level, s->matches (otherwise unused when storing) keeps track of the number
  6033. // * of hash table slides to perform. If s->matches is 1, then one hash table
  6034. // * slide will be done when switching. If s->matches is 2, the maximum value
  6035. // * allowed here, then the hash table will be cleared, since two or more slides
  6036. // * is the same as a clear.
  6037. // *
  6038. // * deflate_stored() is written to minimize the number of times an input byte is
  6039. // * copied. It is most efficient with large input and output buffers, which
  6040. // * maximizes the opportunities to have a single copy from next_in to next_out.
  6041. // */
  6042. func _deflate_stored(tls *libc.TLS, s uintptr, flush int32) (r Tblock_state) {
  6043. var have, last, left, len1, min_block, used, v1, v4, v6, v7, v8, v9 uint32
  6044. var v10, v12, v2 int32
  6045. var p11, p3, p5 uintptr
  6046. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = have, last, left, len1, min_block, used, v1, v10, v12, v2, v4, v6, v7, v8, v9, p11, p3, p5
  6047. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf_size-uint32(5) > (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size {
  6048. v1 = (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size
  6049. } else {
  6050. v1 = (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf_size - uint32(5)
  6051. }
  6052. /* Smallest worthy block size when not flushing or finishing. By default
  6053. * this is 32K. This can be as small as 507 bytes for memLevel == 1. For
  6054. * large input and output buffers, the stored block size will be larger.
  6055. */
  6056. min_block = v1
  6057. last = uint32(0)
  6058. used = (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in
  6059. for cond := true; cond; cond = last == uint32(0) {
  6060. /* Set len to the maximum size block that we can copy directly with the
  6061. * available input data and output space. Set left to how much of that
  6062. * would be copied from what's left in the window.
  6063. */
  6064. len1 = uint32(m_MAX_STORED) /* maximum deflate stored block length */
  6065. have = libc.Uint32FromInt32(((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid + int32(42)) >> int32(3)) /* number of header bytes */
  6066. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out < have { /* need room for header */
  6067. break
  6068. }
  6069. /* maximum stored block length that will fit in avail_out: */
  6070. have = (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out - have
  6071. left = uint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart - libc.Uint32FromInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start)) /* bytes left in window */
  6072. if len1 > left+(*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in {
  6073. len1 = left + (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in
  6074. } /* limit len to the input */
  6075. if len1 > have {
  6076. len1 = have
  6077. } /* limit len to the output */
  6078. /* If the stored block would be less than min_block in length, or if
  6079. * unable to copy all of the available input when flushing, then try
  6080. * copying to the window and the pending buffer instead. Also don't
  6081. * write an empty block when flushing -- deflate() does that.
  6082. */
  6083. 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) {
  6084. break
  6085. }
  6086. /* Make a dummy stored block in pending to get the header bytes,
  6087. * including any pending bits. This also updates the debugging counts.
  6088. */
  6089. if flush == int32(m_Z_FINISH) && len1 == left+(*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in {
  6090. v2 = int32(1)
  6091. } else {
  6092. v2 = 0
  6093. }
  6094. last = libc.Uint32FromInt32(v2)
  6095. x__tr_stored_block(tls, s, libc.UintptrFromInt32(0), uint32(0), libc.Int32FromUint32(last))
  6096. /* Replace the lengths in the dummy stored block with len. */
  6097. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fpending-uint32(4)))) = uint8(len1)
  6098. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fpending-uint32(3)))) = uint8(len1 >> int32(8))
  6099. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fpending-uint32(2)))) = uint8(^len1)
  6100. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fpending-uint32(1)))) = uint8(^len1 >> int32(8))
  6101. /* Write the stored block header bytes. */
  6102. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6103. /* Copy uncompressed bytes from the window to next_out. */
  6104. if left != 0 {
  6105. if left > len1 {
  6106. left = len1
  6107. }
  6108. 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), left)
  6109. *(*uintptr)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm + 12)) += uintptr(left)
  6110. *(*TuInt)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm + 16)) -= left
  6111. *(*TuLong)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm + 20)) += left
  6112. p3 = s + 92
  6113. *(*int32)(unsafe.Pointer(p3)) = int32(uint32(*(*int32)(unsafe.Pointer(p3))) + left)
  6114. len1 -= left
  6115. }
  6116. /* Copy uncompressed bytes directly from next_in to next_out, updating
  6117. * the check value.
  6118. */
  6119. if len1 != 0 {
  6120. _read_buf(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm, (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Fnext_out, len1)
  6121. *(*uintptr)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm + 12)) += uintptr(len1)
  6122. *(*TuInt)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm + 16)) -= len1
  6123. *(*TuLong)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm + 20)) += len1
  6124. }
  6125. }
  6126. /* Update the sliding window with the last s->w_size bytes of the copied
  6127. * data, or append all of the copied data to the existing window if less
  6128. * than s->w_size bytes were copied. Also update the number of bytes to
  6129. * insert in the hash tables, in the event that deflateParams() switches to
  6130. * a non-zero compression level.
  6131. */
  6132. used -= (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in /* number of input bytes directly copied */
  6133. if used != 0 {
  6134. /* If any input was used, then no unused input remains in the window,
  6135. * therefore s->block_start == s->strstart.
  6136. */
  6137. if used >= (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size { /* supplant the previous history */
  6138. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatches = uint32(2) /* clear hash */
  6139. 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), (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size)
  6140. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart = (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size
  6141. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart
  6142. } else {
  6143. if (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow_size-(*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart <= used {
  6144. /* Slide the window down. */
  6145. *(*TuInt)(unsafe.Pointer(s + 108)) -= (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size
  6146. libc.Xmemcpy(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow+uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fw_size), (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6147. if (*Tdeflate_state)(unsafe.Pointer(s)).Fmatches < uint32(2) {
  6148. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatches++
  6149. } /* add a pending slide_hash() */
  6150. if (*Tdeflate_state)(unsafe.Pointer(s)).Finsert > (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart {
  6151. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart
  6152. }
  6153. }
  6154. 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), used)
  6155. *(*TuInt)(unsafe.Pointer(s + 108)) += used
  6156. if used > (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size-(*Tdeflate_state)(unsafe.Pointer(s)).Finsert {
  6157. v4 = (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size - (*Tdeflate_state)(unsafe.Pointer(s)).Finsert
  6158. } else {
  6159. v4 = used
  6160. }
  6161. *(*TuInt)(unsafe.Pointer(s + 5812)) += v4
  6162. }
  6163. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6164. }
  6165. if (*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water < (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart {
  6166. (*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart
  6167. }
  6168. /* If the last block was written to next_out, then done. */
  6169. if last != 0 {
  6170. return int32(_finish_done)
  6171. }
  6172. /* If flushing and all input has been consumed, then done. */
  6173. 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.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart) == (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start {
  6174. return int32(_block_done)
  6175. }
  6176. /* Fill the window with any remaining input. */
  6177. have = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow_size - (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart
  6178. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in > have && (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fw_size) {
  6179. /* Slide the window down. */
  6180. p5 = s + 92
  6181. *(*int32)(unsafe.Pointer(p5)) = int32(uint32(*(*int32)(unsafe.Pointer(p5))) - (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size)
  6182. *(*TuInt)(unsafe.Pointer(s + 108)) -= (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size
  6183. libc.Xmemcpy(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow+uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fw_size), (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6184. if (*Tdeflate_state)(unsafe.Pointer(s)).Fmatches < uint32(2) {
  6185. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatches++
  6186. } /* add a pending slide_hash() */
  6187. have += (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size /* more space now */
  6188. if (*Tdeflate_state)(unsafe.Pointer(s)).Finsert > (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart {
  6189. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart
  6190. }
  6191. }
  6192. if have > (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in {
  6193. have = (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in
  6194. }
  6195. if have != 0 {
  6196. _read_buf(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow+uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart), have)
  6197. *(*TuInt)(unsafe.Pointer(s + 108)) += have
  6198. if have > (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size-(*Tdeflate_state)(unsafe.Pointer(s)).Finsert {
  6199. v6 = (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size - (*Tdeflate_state)(unsafe.Pointer(s)).Finsert
  6200. } else {
  6201. v6 = have
  6202. }
  6203. *(*TuInt)(unsafe.Pointer(s + 5812)) += v6
  6204. }
  6205. if (*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water < (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart {
  6206. (*Tdeflate_state)(unsafe.Pointer(s)).Fhigh_water = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart
  6207. }
  6208. /* There was not enough avail_out to write a complete worthy or flushed
  6209. * stored block to next_out. Write a stored block to pending instead, if we
  6210. * have enough input for a worthy block, or if flushing and there is enough
  6211. * room for the remaining input as a stored block in the pending buffer.
  6212. */
  6213. have = libc.Uint32FromInt32(((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid + int32(42)) >> int32(3)) /* number of header bytes */
  6214. /* maximum stored block length that will fit in pending: */
  6215. if (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf_size-have > libc.Uint32FromInt32(libc.Int32FromInt32(m_MAX_STORED)) {
  6216. v7 = libc.Uint32FromInt32(libc.Int32FromInt32(m_MAX_STORED))
  6217. } else {
  6218. v7 = (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf_size - have
  6219. }
  6220. have = v7
  6221. if have > (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size {
  6222. v8 = (*Tdeflate_state)(unsafe.Pointer(s)).Fw_size
  6223. } else {
  6224. v8 = have
  6225. }
  6226. min_block = v8
  6227. left = uint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart - libc.Uint32FromInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6228. 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 {
  6229. if left > have {
  6230. v9 = have
  6231. } else {
  6232. v9 = left
  6233. }
  6234. len1 = v9
  6235. if flush == int32(m_Z_FINISH) && (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_in == uint32(0) && len1 == left {
  6236. v10 = int32(1)
  6237. } else {
  6238. v10 = 0
  6239. }
  6240. last = libc.Uint32FromInt32(v10)
  6241. x__tr_stored_block(tls, s, (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow+uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), len1, libc.Int32FromUint32(last))
  6242. p11 = s + 92
  6243. *(*int32)(unsafe.Pointer(p11)) = int32(uint32(*(*int32)(unsafe.Pointer(p11))) + len1)
  6244. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6245. }
  6246. /* We've done all we can with the available input and output. */
  6247. if last != 0 {
  6248. v12 = int32(_finish_started)
  6249. } else {
  6250. v12 = int32(_need_more)
  6251. }
  6252. return v12
  6253. }
  6254. // C documentation
  6255. //
  6256. // /* ===========================================================================
  6257. // * Compress as much as possible from the input stream, return the current
  6258. // * block state.
  6259. // * This function does not perform lazy evaluation of matches and inserts
  6260. // * new strings in the dictionary only for unmatched strings or for short
  6261. // * matches. It is used only for the fast compression options.
  6262. // */
  6263. func _deflate_fast(tls *libc.TLS, s uintptr, flush int32) (r Tblock_state) {
  6264. var bflush, v9 int32
  6265. var cc, len1 Tuch
  6266. var dist Tush
  6267. var hash_head TIPos
  6268. var v10, v14, v16, v18, v3, v5, v7 TuInt
  6269. var v11, v15, v17, v19, v20, v22, v23, v4, v6, v8 uintptr
  6270. var v13, v2 TPosf
  6271. var v21 uint32
  6272. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = 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 */
  6273. for {
  6274. /* Make sure that we always have enough lookahead, except
  6275. * at the end of the input file. We need MAX_MATCH bytes
  6276. * for the next match, plus MIN_MATCH bytes to insert the
  6277. * string following the next match.
  6278. */
  6279. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead < libc.Uint32FromInt32(libc.Int32FromInt32(m_MAX_MATCH)+libc.Int32FromInt32(m_MIN_MATCH)+libc.Int32FromInt32(1)) {
  6280. _fill_window(tls, s)
  6281. 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 {
  6282. return int32(_need_more)
  6283. }
  6284. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead == uint32(0) {
  6285. break
  6286. } /* flush the current block */
  6287. }
  6288. /* Insert the string window[strstart .. strstart + 2] in the
  6289. * dictionary, and set hash_head to the head of the hash chain:
  6290. */
  6291. hash_head = uint32(m_NIL)
  6292. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead >= uint32(m_MIN_MATCH) {
  6293. (*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
  6294. v2 = *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h)*2))
  6295. *(*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
  6296. hash_head = uint32(v2)
  6297. *(*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)
  6298. }
  6299. /* Find the longest match, discarding those <= prev_length.
  6300. * At this point we have always match_length < MIN_MATCH
  6301. */
  6302. 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)) {
  6303. /* To simplify the code, we prevent matches with the string
  6304. * of window index 0 (in particular we have to avoid a match
  6305. * of the string with itself at the start of the input file).
  6306. */
  6307. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = _longest_match(tls, s, hash_head)
  6308. /* longest_match() sets match_start */
  6309. }
  6310. if (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length >= uint32(m_MIN_MATCH) {
  6311. len1 = uint8((*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length - libc.Uint32FromInt32(m_MIN_MATCH))
  6312. dist = uint16((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart - (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_start)
  6313. v4 = s + 5792
  6314. v3 = *(*TuInt)(unsafe.Pointer(v4))
  6315. *(*TuInt)(unsafe.Pointer(v4))++
  6316. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v3))) = uint8(dist)
  6317. v6 = s + 5792
  6318. v5 = *(*TuInt)(unsafe.Pointer(v6))
  6319. *(*TuInt)(unsafe.Pointer(v6))++
  6320. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v5))) = libc.Uint8FromInt32(libc.Int32FromUint16(dist) >> libc.Int32FromInt32(8))
  6321. v8 = s + 5792
  6322. v7 = *(*TuInt)(unsafe.Pointer(v8))
  6323. *(*TuInt)(unsafe.Pointer(v8))++
  6324. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v7))) = len1
  6325. dist--
  6326. *(*Tush)(unsafe.Pointer(s + 148 + uintptr(libc.Int32FromUint8(x__length_code[len1])+int32(m_LITERALS)+int32(1))*4))++
  6327. if libc.Int32FromUint16(dist) < int32(256) {
  6328. v9 = libc.Int32FromUint8(x__dist_code[dist])
  6329. } else {
  6330. v9 = libc.Int32FromUint8(x__dist_code[int32(256)+libc.Int32FromUint16(dist)>>int32(7)])
  6331. }
  6332. *(*Tush)(unsafe.Pointer(s + 2440 + uintptr(v9)*4))++
  6333. bflush = libc.BoolInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next == (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_end)
  6334. *(*TuInt)(unsafe.Pointer(s + 116)) -= (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length
  6335. /* Insert new strings in the hash table only if the match length
  6336. * is not too large. This saves time but degrades compression.
  6337. */
  6338. 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) {
  6339. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length-- /* string at strstart already in table */
  6340. for {
  6341. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart++
  6342. (*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
  6343. v13 = *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h)*2))
  6344. *(*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
  6345. hash_head = uint32(v13)
  6346. *(*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)
  6347. /* strstart never exceeds WSIZE-MAX_MATCH, so there are
  6348. * always MIN_MATCH bytes ahead.
  6349. */
  6350. goto _12
  6351. _12:
  6352. ;
  6353. v11 = s + 96
  6354. *(*TuInt)(unsafe.Pointer(v11))--
  6355. v10 = *(*TuInt)(unsafe.Pointer(v11))
  6356. if !(v10 != uint32(0)) {
  6357. break
  6358. }
  6359. }
  6360. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart++
  6361. } else {
  6362. *(*TuInt)(unsafe.Pointer(s + 108)) += (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length
  6363. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = uint32(0)
  6364. (*Tdeflate_state)(unsafe.Pointer(s)).Fins_h = uint32(*(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart))))
  6365. (*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
  6366. /* If lookahead < MIN_MATCH, ins_h is garbage, but it does not
  6367. * matter since it will be recomputed at next deflate call.
  6368. */
  6369. }
  6370. } else {
  6371. /* No match, output a literal byte */
  6372. cc = *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)))
  6373. v15 = s + 5792
  6374. v14 = *(*TuInt)(unsafe.Pointer(v15))
  6375. *(*TuInt)(unsafe.Pointer(v15))++
  6376. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v14))) = uint8(0)
  6377. v17 = s + 5792
  6378. v16 = *(*TuInt)(unsafe.Pointer(v17))
  6379. *(*TuInt)(unsafe.Pointer(v17))++
  6380. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v16))) = uint8(0)
  6381. v19 = s + 5792
  6382. v18 = *(*TuInt)(unsafe.Pointer(v19))
  6383. *(*TuInt)(unsafe.Pointer(v19))++
  6384. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v18))) = cc
  6385. *(*Tush)(unsafe.Pointer(s + 148 + uintptr(cc)*4))++
  6386. bflush = libc.BoolInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next == (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_end)
  6387. (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead--
  6388. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart++
  6389. }
  6390. if bflush != 0 {
  6391. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6392. v20 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6393. } else {
  6394. v20 = libc.UintptrFromInt32(m_Z_NULL)
  6395. }
  6396. x__tr_flush_block(tls, s, v20, libc.Uint32FromInt32(libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), 0)
  6397. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6398. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6399. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6400. return int32(_need_more)
  6401. }
  6402. }
  6403. goto _1
  6404. _1:
  6405. }
  6406. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart < libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH)-libc.Int32FromInt32(1)) {
  6407. v21 = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart
  6408. } else {
  6409. v21 = libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH) - libc.Int32FromInt32(1))
  6410. }
  6411. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = v21
  6412. if flush == int32(m_Z_FINISH) {
  6413. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6414. v22 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6415. } else {
  6416. v22 = libc.UintptrFromInt32(m_Z_NULL)
  6417. }
  6418. x__tr_flush_block(tls, s, v22, libc.Uint32FromInt32(libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), int32(1))
  6419. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6420. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6421. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6422. return int32(_finish_started)
  6423. }
  6424. return int32(_finish_done)
  6425. }
  6426. if (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next != 0 {
  6427. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6428. v23 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6429. } else {
  6430. v23 = libc.UintptrFromInt32(m_Z_NULL)
  6431. }
  6432. x__tr_flush_block(tls, s, v23, libc.Uint32FromInt32(libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), 0)
  6433. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6434. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6435. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6436. return int32(_need_more)
  6437. }
  6438. }
  6439. return int32(_block_done)
  6440. }
  6441. // C documentation
  6442. //
  6443. // /* ===========================================================================
  6444. // * Same as above, but achieves better compression. We use a lazy
  6445. // * evaluation for matches: a match is finally adopted only if there is
  6446. // * no better match at the next window position.
  6447. // */
  6448. func _deflate_slow(tls *libc.TLS, s uintptr, flush int32) (r Tblock_state) {
  6449. var bflush, v9 int32
  6450. var cc, cc1, len1 Tuch
  6451. var dist Tush
  6452. var hash_head TIPos
  6453. var max_insert, v10, v13, v17, v19, v21, v24, v26, v28, v3, v5, v7 TuInt
  6454. var v11, v14, v16, v18, v20, v22, v23, v25, v27, v29, v31, v32, v4, v6, v8 uintptr
  6455. var v15, v2 TPosf
  6456. var v30 uint32
  6457. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = 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 */
  6458. /* Process the input block. */
  6459. for {
  6460. /* Make sure that we always have enough lookahead, except
  6461. * at the end of the input file. We need MAX_MATCH bytes
  6462. * for the next match, plus MIN_MATCH bytes to insert the
  6463. * string following the next match.
  6464. */
  6465. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead < libc.Uint32FromInt32(libc.Int32FromInt32(m_MAX_MATCH)+libc.Int32FromInt32(m_MIN_MATCH)+libc.Int32FromInt32(1)) {
  6466. _fill_window(tls, s)
  6467. 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 {
  6468. return int32(_need_more)
  6469. }
  6470. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead == uint32(0) {
  6471. break
  6472. } /* flush the current block */
  6473. }
  6474. /* Insert the string window[strstart .. strstart + 2] in the
  6475. * dictionary, and set hash_head to the head of the hash chain:
  6476. */
  6477. hash_head = uint32(m_NIL)
  6478. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead >= uint32(m_MIN_MATCH) {
  6479. (*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
  6480. v2 = *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h)*2))
  6481. *(*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
  6482. hash_head = uint32(v2)
  6483. *(*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)
  6484. }
  6485. /* Find the longest match, discarding those <= prev_length.
  6486. */
  6487. (*Tdeflate_state)(unsafe.Pointer(s)).Fprev_length = (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length
  6488. /* Find the longest match, discarding those <= prev_length.
  6489. */
  6490. (*Tdeflate_state)(unsafe.Pointer(s)).Fprev_match = (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_start
  6491. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH) - libc.Int32FromInt32(1))
  6492. 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)) {
  6493. /* To simplify the code, we prevent matches with the string
  6494. * of window index 0 (in particular we have to avoid a match
  6495. * of the string with itself at the start of the input file).
  6496. */
  6497. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = _longest_match(tls, s, hash_head)
  6498. /* longest_match() sets match_start */
  6499. 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)) {
  6500. /* If prev_match is also MIN_MATCH, match_start is garbage
  6501. * but we will ignore the current match anyway.
  6502. */
  6503. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH) - libc.Int32FromInt32(1))
  6504. }
  6505. }
  6506. /* If there was a match at the previous step and the current
  6507. * match is not better, output the previous match:
  6508. */
  6509. 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 {
  6510. max_insert = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart + (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead - uint32(m_MIN_MATCH)
  6511. /* Do not insert strings in hash table beyond this. */
  6512. len1 = uint8((*Tdeflate_state)(unsafe.Pointer(s)).Fprev_length - libc.Uint32FromInt32(m_MIN_MATCH))
  6513. dist = uint16((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart - libc.Uint32FromInt32(1) - (*Tdeflate_state)(unsafe.Pointer(s)).Fprev_match)
  6514. v4 = s + 5792
  6515. v3 = *(*TuInt)(unsafe.Pointer(v4))
  6516. *(*TuInt)(unsafe.Pointer(v4))++
  6517. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v3))) = uint8(dist)
  6518. v6 = s + 5792
  6519. v5 = *(*TuInt)(unsafe.Pointer(v6))
  6520. *(*TuInt)(unsafe.Pointer(v6))++
  6521. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v5))) = libc.Uint8FromInt32(libc.Int32FromUint16(dist) >> libc.Int32FromInt32(8))
  6522. v8 = s + 5792
  6523. v7 = *(*TuInt)(unsafe.Pointer(v8))
  6524. *(*TuInt)(unsafe.Pointer(v8))++
  6525. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v7))) = len1
  6526. dist--
  6527. *(*Tush)(unsafe.Pointer(s + 148 + uintptr(libc.Int32FromUint8(x__length_code[len1])+int32(m_LITERALS)+int32(1))*4))++
  6528. if libc.Int32FromUint16(dist) < int32(256) {
  6529. v9 = libc.Int32FromUint8(x__dist_code[dist])
  6530. } else {
  6531. v9 = libc.Int32FromUint8(x__dist_code[int32(256)+libc.Int32FromUint16(dist)>>int32(7)])
  6532. }
  6533. *(*Tush)(unsafe.Pointer(s + 2440 + uintptr(v9)*4))++
  6534. bflush = libc.BoolInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next == (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_end)
  6535. /* Insert in hash table all strings up to the end of the match.
  6536. * strstart - 1 and strstart are already inserted. If there is not
  6537. * enough lookahead, the last two strings are not inserted in
  6538. * the hash table.
  6539. */
  6540. *(*TuInt)(unsafe.Pointer(s + 116)) -= (*Tdeflate_state)(unsafe.Pointer(s)).Fprev_length - uint32(1)
  6541. *(*TuInt)(unsafe.Pointer(s + 120)) -= uint32(2)
  6542. for {
  6543. v14 = s + 108
  6544. *(*TuInt)(unsafe.Pointer(v14))++
  6545. v13 = *(*TuInt)(unsafe.Pointer(v14))
  6546. if v13 <= max_insert {
  6547. (*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
  6548. v15 = *(*TPosf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fhead + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fins_h)*2))
  6549. *(*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
  6550. hash_head = uint32(v15)
  6551. *(*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)
  6552. }
  6553. goto _12
  6554. _12:
  6555. ;
  6556. v11 = s + 120
  6557. *(*TuInt)(unsafe.Pointer(v11))--
  6558. v10 = *(*TuInt)(unsafe.Pointer(v11))
  6559. if !(v10 != uint32(0)) {
  6560. break
  6561. }
  6562. }
  6563. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_available = 0
  6564. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH) - libc.Int32FromInt32(1))
  6565. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart++
  6566. if bflush != 0 {
  6567. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6568. v16 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6569. } else {
  6570. v16 = libc.UintptrFromInt32(m_Z_NULL)
  6571. }
  6572. x__tr_flush_block(tls, s, v16, libc.Uint32FromInt32(libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), 0)
  6573. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6574. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6575. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6576. return int32(_need_more)
  6577. }
  6578. }
  6579. } else {
  6580. if (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_available != 0 {
  6581. /* If there was no match at the previous position, output a
  6582. * single literal. If there was a match but the current match
  6583. * is longer, truncate the previous match to a single literal.
  6584. */
  6585. cc = *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart-uint32(1))))
  6586. v18 = s + 5792
  6587. v17 = *(*TuInt)(unsafe.Pointer(v18))
  6588. *(*TuInt)(unsafe.Pointer(v18))++
  6589. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v17))) = uint8(0)
  6590. v20 = s + 5792
  6591. v19 = *(*TuInt)(unsafe.Pointer(v20))
  6592. *(*TuInt)(unsafe.Pointer(v20))++
  6593. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v19))) = uint8(0)
  6594. v22 = s + 5792
  6595. v21 = *(*TuInt)(unsafe.Pointer(v22))
  6596. *(*TuInt)(unsafe.Pointer(v22))++
  6597. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v21))) = cc
  6598. *(*Tush)(unsafe.Pointer(s + 148 + uintptr(cc)*4))++
  6599. bflush = libc.BoolInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next == (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_end)
  6600. if bflush != 0 {
  6601. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6602. v23 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6603. } else {
  6604. v23 = libc.UintptrFromInt32(m_Z_NULL)
  6605. }
  6606. x__tr_flush_block(tls, s, v23, libc.Uint32FromInt32(libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), 0)
  6607. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6608. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6609. }
  6610. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart++
  6611. (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead--
  6612. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6613. return int32(_need_more)
  6614. }
  6615. } else {
  6616. /* There is no previous match to compare with, wait for
  6617. * the next step to decide.
  6618. */
  6619. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_available = int32(1)
  6620. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart++
  6621. (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead--
  6622. }
  6623. }
  6624. goto _1
  6625. _1:
  6626. }
  6627. if (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_available != 0 {
  6628. cc1 = *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart-uint32(1))))
  6629. v25 = s + 5792
  6630. v24 = *(*TuInt)(unsafe.Pointer(v25))
  6631. *(*TuInt)(unsafe.Pointer(v25))++
  6632. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v24))) = uint8(0)
  6633. v27 = s + 5792
  6634. v26 = *(*TuInt)(unsafe.Pointer(v27))
  6635. *(*TuInt)(unsafe.Pointer(v27))++
  6636. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v26))) = uint8(0)
  6637. v29 = s + 5792
  6638. v28 = *(*TuInt)(unsafe.Pointer(v29))
  6639. *(*TuInt)(unsafe.Pointer(v29))++
  6640. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v28))) = cc1
  6641. *(*Tush)(unsafe.Pointer(s + 148 + uintptr(cc1)*4))++
  6642. bflush = libc.BoolInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next == (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_end)
  6643. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_available = 0
  6644. }
  6645. if (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart < libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH)-libc.Int32FromInt32(1)) {
  6646. v30 = (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart
  6647. } else {
  6648. v30 = libc.Uint32FromInt32(libc.Int32FromInt32(m_MIN_MATCH) - libc.Int32FromInt32(1))
  6649. }
  6650. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = v30
  6651. if flush == int32(m_Z_FINISH) {
  6652. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6653. v31 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6654. } else {
  6655. v31 = libc.UintptrFromInt32(m_Z_NULL)
  6656. }
  6657. x__tr_flush_block(tls, s, v31, libc.Uint32FromInt32(libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), int32(1))
  6658. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6659. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6660. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6661. return int32(_finish_started)
  6662. }
  6663. return int32(_finish_done)
  6664. }
  6665. if (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next != 0 {
  6666. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6667. v32 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6668. } else {
  6669. v32 = libc.UintptrFromInt32(m_Z_NULL)
  6670. }
  6671. x__tr_flush_block(tls, s, v32, libc.Uint32FromInt32(libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), 0)
  6672. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6673. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6674. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6675. return int32(_need_more)
  6676. }
  6677. }
  6678. return int32(_block_done)
  6679. }
  6680. // C documentation
  6681. //
  6682. // /* ===========================================================================
  6683. // * For Z_RLE, simply look for runs of bytes, generate matches only of distance
  6684. // * one. Do not maintain a hash table. (It will be regenerated if this run of
  6685. // * deflate switches away from Z_RLE.)
  6686. // */
  6687. func _deflate_rle(tls *libc.TLS, s uintptr, flush int32) (r Tblock_state) {
  6688. var bflush, v29 int32
  6689. var cc, len1 Tuch
  6690. var dist Tush
  6691. var prev, v23, v25, v27, v30, v32, v34 TuInt
  6692. var scan, strend, v10, v12, v14, v16, v18, v2, v20, v24, v26, v28, v3, v31, v33, v35, v36, v37, v38, v5, v7, v8 uintptr
  6693. var v11, v13, v15, v17, v19, v21, v4, v6, v9 bool
  6694. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = 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 */
  6695. for {
  6696. /* Make sure that we always have enough lookahead, except
  6697. * at the end of the input file. We need MAX_MATCH bytes
  6698. * for the longest run, plus one for the unrolled loop.
  6699. */
  6700. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead <= uint32(m_MAX_MATCH) {
  6701. _fill_window(tls, s)
  6702. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead <= uint32(m_MAX_MATCH) && flush == m_Z_NO_FLUSH {
  6703. return int32(_need_more)
  6704. }
  6705. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead == uint32(0) {
  6706. break
  6707. } /* flush the current block */
  6708. }
  6709. /* See how many times the previous byte repeats */
  6710. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = uint32(0)
  6711. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead >= uint32(m_MIN_MATCH) && (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart > uint32(0) {
  6712. scan = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart) - uintptr(1)
  6713. prev = uint32(*(*TBytef)(unsafe.Pointer(scan)))
  6714. scan++
  6715. v2 = scan
  6716. if v4 = prev == uint32(*(*TBytef)(unsafe.Pointer(v2))); v4 {
  6717. scan++
  6718. v3 = scan
  6719. }
  6720. if v6 = v4 && prev == uint32(*(*TBytef)(unsafe.Pointer(v3))); v6 {
  6721. scan++
  6722. v5 = scan
  6723. }
  6724. if v6 && prev == uint32(*(*TBytef)(unsafe.Pointer(v5))) {
  6725. strend = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart) + uintptr(m_MAX_MATCH)
  6726. for {
  6727. goto _22
  6728. _22:
  6729. ;
  6730. scan++
  6731. v7 = scan
  6732. if v9 = prev == uint32(*(*TBytef)(unsafe.Pointer(v7))); v9 {
  6733. scan++
  6734. v8 = scan
  6735. }
  6736. if v11 = v9 && prev == uint32(*(*TBytef)(unsafe.Pointer(v8))); v11 {
  6737. scan++
  6738. v10 = scan
  6739. }
  6740. if v13 = v11 && prev == uint32(*(*TBytef)(unsafe.Pointer(v10))); v13 {
  6741. scan++
  6742. v12 = scan
  6743. }
  6744. if v15 = v13 && prev == uint32(*(*TBytef)(unsafe.Pointer(v12))); v15 {
  6745. scan++
  6746. v14 = scan
  6747. }
  6748. if v17 = v15 && prev == uint32(*(*TBytef)(unsafe.Pointer(v14))); v17 {
  6749. scan++
  6750. v16 = scan
  6751. }
  6752. if v19 = v17 && prev == uint32(*(*TBytef)(unsafe.Pointer(v16))); v19 {
  6753. scan++
  6754. v18 = scan
  6755. }
  6756. if v21 = v19 && prev == uint32(*(*TBytef)(unsafe.Pointer(v18))); v21 {
  6757. scan++
  6758. v20 = scan
  6759. }
  6760. if !(v21 && prev == uint32(*(*TBytef)(unsafe.Pointer(v20))) && scan < strend) {
  6761. break
  6762. }
  6763. }
  6764. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = uint32(m_MAX_MATCH) - libc.Uint32FromInt32(int32(strend)-int32(scan))
  6765. if (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length > (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead {
  6766. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead
  6767. }
  6768. }
  6769. }
  6770. /* Emit match if have run of MIN_MATCH or longer, else emit literal */
  6771. if (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length >= uint32(m_MIN_MATCH) {
  6772. len1 = uint8((*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length - libc.Uint32FromInt32(m_MIN_MATCH))
  6773. dist = libc.Uint16FromInt32(libc.Int32FromInt32(1))
  6774. v24 = s + 5792
  6775. v23 = *(*TuInt)(unsafe.Pointer(v24))
  6776. *(*TuInt)(unsafe.Pointer(v24))++
  6777. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v23))) = uint8(dist)
  6778. v26 = s + 5792
  6779. v25 = *(*TuInt)(unsafe.Pointer(v26))
  6780. *(*TuInt)(unsafe.Pointer(v26))++
  6781. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v25))) = libc.Uint8FromInt32(libc.Int32FromUint16(dist) >> libc.Int32FromInt32(8))
  6782. v28 = s + 5792
  6783. v27 = *(*TuInt)(unsafe.Pointer(v28))
  6784. *(*TuInt)(unsafe.Pointer(v28))++
  6785. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v27))) = len1
  6786. dist--
  6787. *(*Tush)(unsafe.Pointer(s + 148 + uintptr(libc.Int32FromUint8(x__length_code[len1])+int32(m_LITERALS)+int32(1))*4))++
  6788. if libc.Int32FromUint16(dist) < int32(256) {
  6789. v29 = libc.Int32FromUint8(x__dist_code[dist])
  6790. } else {
  6791. v29 = libc.Int32FromUint8(x__dist_code[int32(256)+libc.Int32FromUint16(dist)>>int32(7)])
  6792. }
  6793. *(*Tush)(unsafe.Pointer(s + 2440 + uintptr(v29)*4))++
  6794. bflush = libc.BoolInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next == (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_end)
  6795. *(*TuInt)(unsafe.Pointer(s + 116)) -= (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length
  6796. *(*TuInt)(unsafe.Pointer(s + 108)) += (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length
  6797. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = uint32(0)
  6798. } else {
  6799. /* No match, output a literal byte */
  6800. cc = *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)))
  6801. v31 = s + 5792
  6802. v30 = *(*TuInt)(unsafe.Pointer(v31))
  6803. *(*TuInt)(unsafe.Pointer(v31))++
  6804. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v30))) = uint8(0)
  6805. v33 = s + 5792
  6806. v32 = *(*TuInt)(unsafe.Pointer(v33))
  6807. *(*TuInt)(unsafe.Pointer(v33))++
  6808. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v32))) = uint8(0)
  6809. v35 = s + 5792
  6810. v34 = *(*TuInt)(unsafe.Pointer(v35))
  6811. *(*TuInt)(unsafe.Pointer(v35))++
  6812. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v34))) = cc
  6813. *(*Tush)(unsafe.Pointer(s + 148 + uintptr(cc)*4))++
  6814. bflush = libc.BoolInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next == (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_end)
  6815. (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead--
  6816. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart++
  6817. }
  6818. if bflush != 0 {
  6819. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6820. v36 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6821. } else {
  6822. v36 = libc.UintptrFromInt32(m_Z_NULL)
  6823. }
  6824. x__tr_flush_block(tls, s, v36, libc.Uint32FromInt32(libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), 0)
  6825. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6826. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6827. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6828. return int32(_need_more)
  6829. }
  6830. }
  6831. goto _1
  6832. _1:
  6833. }
  6834. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = uint32(0)
  6835. if flush == int32(m_Z_FINISH) {
  6836. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6837. v37 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6838. } else {
  6839. v37 = libc.UintptrFromInt32(m_Z_NULL)
  6840. }
  6841. x__tr_flush_block(tls, s, v37, libc.Uint32FromInt32(libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), int32(1))
  6842. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6843. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6844. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6845. return int32(_finish_started)
  6846. }
  6847. return int32(_finish_done)
  6848. }
  6849. if (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next != 0 {
  6850. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6851. v38 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6852. } else {
  6853. v38 = libc.UintptrFromInt32(m_Z_NULL)
  6854. }
  6855. x__tr_flush_block(tls, s, v38, libc.Uint32FromInt32(libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), 0)
  6856. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6857. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6858. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6859. return int32(_need_more)
  6860. }
  6861. }
  6862. return int32(_block_done)
  6863. }
  6864. // C documentation
  6865. //
  6866. // /* ===========================================================================
  6867. // * For Z_HUFFMAN_ONLY, do not look for matches. Do not maintain a hash table.
  6868. // * (It will be regenerated if this run of deflate switches away from Huffman.)
  6869. // */
  6870. func _deflate_huff(tls *libc.TLS, s uintptr, flush int32) (r Tblock_state) {
  6871. var bflush int32
  6872. var cc Tuch
  6873. var v10, v3, v5, v7, v8, v9 uintptr
  6874. var v2, v4, v6 TuInt
  6875. _, _, _, _, _, _, _, _, _, _, _ = bflush, cc, v10, v2, v3, v4, v5, v6, v7, v8, v9 /* set if current block must be flushed */
  6876. for {
  6877. /* Make sure that we have a literal to write. */
  6878. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead == uint32(0) {
  6879. _fill_window(tls, s)
  6880. if (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead == uint32(0) {
  6881. if flush == m_Z_NO_FLUSH {
  6882. return int32(_need_more)
  6883. }
  6884. break /* flush the current block */
  6885. }
  6886. }
  6887. /* Output a literal byte */
  6888. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatch_length = uint32(0)
  6889. cc = *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)))
  6890. v3 = s + 5792
  6891. v2 = *(*TuInt)(unsafe.Pointer(v3))
  6892. *(*TuInt)(unsafe.Pointer(v3))++
  6893. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v2))) = uint8(0)
  6894. v5 = s + 5792
  6895. v4 = *(*TuInt)(unsafe.Pointer(v5))
  6896. *(*TuInt)(unsafe.Pointer(v5))++
  6897. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v4))) = uint8(0)
  6898. v7 = s + 5792
  6899. v6 = *(*TuInt)(unsafe.Pointer(v7))
  6900. *(*TuInt)(unsafe.Pointer(v7))++
  6901. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v6))) = cc
  6902. *(*Tush)(unsafe.Pointer(s + 148 + uintptr(cc)*4))++
  6903. bflush = libc.BoolInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next == (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_end)
  6904. (*Tdeflate_state)(unsafe.Pointer(s)).Flookahead--
  6905. (*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart++
  6906. if bflush != 0 {
  6907. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6908. v8 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6909. } else {
  6910. v8 = libc.UintptrFromInt32(m_Z_NULL)
  6911. }
  6912. x__tr_flush_block(tls, s, v8, libc.Uint32FromInt32(libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), 0)
  6913. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6914. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6915. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6916. return int32(_need_more)
  6917. }
  6918. }
  6919. goto _1
  6920. _1:
  6921. }
  6922. (*Tdeflate_state)(unsafe.Pointer(s)).Finsert = uint32(0)
  6923. if flush == int32(m_Z_FINISH) {
  6924. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6925. v9 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6926. } else {
  6927. v9 = libc.UintptrFromInt32(m_Z_NULL)
  6928. }
  6929. x__tr_flush_block(tls, s, v9, libc.Uint32FromInt32(libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), int32(1))
  6930. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6931. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6932. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6933. return int32(_finish_started)
  6934. }
  6935. return int32(_finish_done)
  6936. }
  6937. if (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next != 0 {
  6938. if (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start >= 0 {
  6939. v10 = (*Tdeflate_state)(unsafe.Pointer(s)).Fwindow + uintptr(libc.Uint32FromInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start))
  6940. } else {
  6941. v10 = libc.UintptrFromInt32(m_Z_NULL)
  6942. }
  6943. x__tr_flush_block(tls, s, v10, libc.Uint32FromInt32(libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)-(*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start), 0)
  6944. (*Tdeflate_state)(unsafe.Pointer(s)).Fblock_start = libc.Int32FromUint32((*Tdeflate_state)(unsafe.Pointer(s)).Fstrstart)
  6945. _flush_pending(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)
  6946. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Favail_out == uint32(0) {
  6947. return int32(_need_more)
  6948. }
  6949. }
  6950. return int32(_block_done)
  6951. }
  6952. const m_ENOUGH_DISTS = 592
  6953. const m_ENOUGH_LENS = 852
  6954. const m_PRESET_DICT2 = 0x20
  6955. type Tcode = struct {
  6956. Fop uint8
  6957. Fbits uint8
  6958. Fval uint16
  6959. }
  6960. type Tcodetype = int32
  6961. const _CODES = 0
  6962. const _LENS = 1
  6963. const _DISTS = 2
  6964. type Tinflate_mode = int32
  6965. const _HEAD = 16180
  6966. const _FLAGS = 16181
  6967. const _TIME = 16182
  6968. const _OS = 16183
  6969. const _EXLEN = 16184
  6970. const _EXTRA = 16185
  6971. const _NAME = 16186
  6972. const _COMMENT = 16187
  6973. const _HCRC = 16188
  6974. const _DICTID = 16189
  6975. const _DICT = 16190
  6976. const _TYPE = 16191
  6977. const _TYPEDO = 16192
  6978. const _STORED = 16193
  6979. const _COPY_ = 16194
  6980. const _COPY = 16195
  6981. const _TABLE = 16196
  6982. const _LENLENS = 16197
  6983. const _CODELENS = 16198
  6984. const _LEN_ = 16199
  6985. const _LEN = 16200
  6986. const _LENEXT = 16201
  6987. const _DIST = 16202
  6988. const _DISTEXT = 16203
  6989. const _MATCH = 16204
  6990. const _LIT = 16205
  6991. const _CHECK = 16206
  6992. const _LENGTH = 16207
  6993. const _DONE = 16208
  6994. const _BAD = 16209
  6995. const _MEM = 16210
  6996. const _SYNC = 16211
  6997. type Tinflate_state = struct {
  6998. Fstrm Tz_streamp
  6999. Fmode Tinflate_mode
  7000. Flast int32
  7001. Fwrap int32
  7002. Fhavedict int32
  7003. Fflags int32
  7004. Fdmax uint32
  7005. Fcheck uint32
  7006. Ftotal uint32
  7007. Fhead Tgz_headerp
  7008. Fwbits uint32
  7009. Fwsize uint32
  7010. Fwhave uint32
  7011. Fwnext uint32
  7012. Fwindow uintptr
  7013. Fhold uint32
  7014. Fbits uint32
  7015. Flength uint32
  7016. Foffset uint32
  7017. Fextra uint32
  7018. Flencode uintptr
  7019. Fdistcode uintptr
  7020. Flenbits uint32
  7021. Fdistbits uint32
  7022. Fncode uint32
  7023. Fnlen uint32
  7024. Fndist uint32
  7025. Fhave uint32
  7026. Fnext uintptr
  7027. Flens [320]uint16
  7028. Fwork [288]uint16
  7029. Fcodes [1444]Tcode
  7030. Fsane int32
  7031. Fback int32
  7032. Fwas uint32
  7033. }
  7034. // C documentation
  7035. //
  7036. // /*
  7037. // strm provides memory allocation functions in zalloc and zfree, or
  7038. // Z_NULL to use the library memory allocation functions.
  7039. //
  7040. // windowBits is in the range 8..15, and window is a user-supplied
  7041. // window and output buffer that is 2**windowBits bytes.
  7042. // */
  7043. func XinflateBackInit_(tls *libc.TLS, strm Tz_streamp, windowBits int32, window uintptr, version uintptr, stream_size int32) (r int32) {
  7044. var state uintptr
  7045. _ = state
  7046. if version == uintptr(m_Z_NULL) || int32(*(*int8)(unsafe.Pointer(version))) != int32(*(*int8)(unsafe.Pointer(__ccgo_ts))) || stream_size != libc.Int32FromUint32(libc.Uint32FromInt64(56)) {
  7047. return -int32(6)
  7048. }
  7049. if strm == uintptr(m_Z_NULL) || window == uintptr(m_Z_NULL) || windowBits < int32(8) || windowBits > int32(15) {
  7050. return -int32(2)
  7051. }
  7052. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = uintptr(m_Z_NULL) /* in case we return an error */
  7053. if (*Tz_stream)(unsafe.Pointer(strm)).Fzalloc == libc.UintptrFromInt32(0) {
  7054. (*Tz_stream)(unsafe.Pointer(strm)).Fzalloc = __ccgo_fp(Xzcalloc)
  7055. (*Tz_stream)(unsafe.Pointer(strm)).Fopaque = libc.UintptrFromInt32(0)
  7056. }
  7057. if (*Tz_stream)(unsafe.Pointer(strm)).Fzfree == libc.UintptrFromInt32(0) {
  7058. (*Tz_stream)(unsafe.Pointer(strm)).Fzfree = __ccgo_fp(Xzcfree)
  7059. }
  7060. 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)), libc.Uint32FromInt64(7120))
  7061. if state == uintptr(m_Z_NULL) {
  7062. return -int32(4)
  7063. }
  7064. (*Tz_stream)(unsafe.Pointer(strm)).Fstate = state
  7065. (*Tinflate_state)(unsafe.Pointer(state)).Fdmax = uint32(32768)
  7066. (*Tinflate_state)(unsafe.Pointer(state)).Fwbits = libc.Uint32FromInt32(windowBits)
  7067. (*Tinflate_state)(unsafe.Pointer(state)).Fwsize = uint32(1) << windowBits
  7068. (*Tinflate_state)(unsafe.Pointer(state)).Fwindow = window
  7069. (*Tinflate_state)(unsafe.Pointer(state)).Fwnext = uint32(0)
  7070. (*Tinflate_state)(unsafe.Pointer(state)).Fwhave = uint32(0)
  7071. (*Tinflate_state)(unsafe.Pointer(state)).Fsane = int32(1)
  7072. return m_Z_OK
  7073. }
  7074. // C documentation
  7075. //
  7076. // /*
  7077. // Return state with length and distance decoding tables and index sizes set to
  7078. // fixed code decoding. Normally this returns fixed tables from inffixed.h.
  7079. // If BUILDFIXED is defined, then instead this routine builds the tables the
  7080. // first time it's called, and returns those tables the first time and
  7081. // thereafter. This reduces the size of the code by about 2K bytes, in
  7082. // exchange for a little execution time. However, BUILDFIXED should not be
  7083. // used for threaded applications, since the rewriting of the tables and virgin
  7084. // may not be thread-safe.
  7085. // */
  7086. func _fixedtables(tls *libc.TLS, state uintptr) {
  7087. (*Tinflate_state)(unsafe.Pointer(state)).Flencode = uintptr(unsafe.Pointer(&_lenfix))
  7088. (*Tinflate_state)(unsafe.Pointer(state)).Flenbits = uint32(9)
  7089. (*Tinflate_state)(unsafe.Pointer(state)).Fdistcode = uintptr(unsafe.Pointer(&_distfix))
  7090. (*Tinflate_state)(unsafe.Pointer(state)).Fdistbits = uint32(5)
  7091. }
  7092. var _lenfix = [512]Tcode{
  7093. 0: {
  7094. Fop: uint8(96),
  7095. Fbits: uint8(7),
  7096. },
  7097. 1: {
  7098. Fbits: uint8(8),
  7099. Fval: uint16(80),
  7100. },
  7101. 2: {
  7102. Fbits: uint8(8),
  7103. Fval: uint16(16),
  7104. },
  7105. 3: {
  7106. Fop: uint8(20),
  7107. Fbits: uint8(8),
  7108. Fval: uint16(115),
  7109. },
  7110. 4: {
  7111. Fop: uint8(18),
  7112. Fbits: uint8(7),
  7113. Fval: uint16(31),
  7114. },
  7115. 5: {
  7116. Fbits: uint8(8),
  7117. Fval: uint16(112),
  7118. },
  7119. 6: {
  7120. Fbits: uint8(8),
  7121. Fval: uint16(48),
  7122. },
  7123. 7: {
  7124. Fbits: uint8(9),
  7125. Fval: uint16(192),
  7126. },
  7127. 8: {
  7128. Fop: uint8(16),
  7129. Fbits: uint8(7),
  7130. Fval: uint16(10),
  7131. },
  7132. 9: {
  7133. Fbits: uint8(8),
  7134. Fval: uint16(96),
  7135. },
  7136. 10: {
  7137. Fbits: uint8(8),
  7138. Fval: uint16(32),
  7139. },
  7140. 11: {
  7141. Fbits: uint8(9),
  7142. Fval: uint16(160),
  7143. },
  7144. 12: {
  7145. Fbits: uint8(8),
  7146. },
  7147. 13: {
  7148. Fbits: uint8(8),
  7149. Fval: uint16(128),
  7150. },
  7151. 14: {
  7152. Fbits: uint8(8),
  7153. Fval: uint16(64),
  7154. },
  7155. 15: {
  7156. Fbits: uint8(9),
  7157. Fval: uint16(224),
  7158. },
  7159. 16: {
  7160. Fop: uint8(16),
  7161. Fbits: uint8(7),
  7162. Fval: uint16(6),
  7163. },
  7164. 17: {
  7165. Fbits: uint8(8),
  7166. Fval: uint16(88),
  7167. },
  7168. 18: {
  7169. Fbits: uint8(8),
  7170. Fval: uint16(24),
  7171. },
  7172. 19: {
  7173. Fbits: uint8(9),
  7174. Fval: uint16(144),
  7175. },
  7176. 20: {
  7177. Fop: uint8(19),
  7178. Fbits: uint8(7),
  7179. Fval: uint16(59),
  7180. },
  7181. 21: {
  7182. Fbits: uint8(8),
  7183. Fval: uint16(120),
  7184. },
  7185. 22: {
  7186. Fbits: uint8(8),
  7187. Fval: uint16(56),
  7188. },
  7189. 23: {
  7190. Fbits: uint8(9),
  7191. Fval: uint16(208),
  7192. },
  7193. 24: {
  7194. Fop: uint8(17),
  7195. Fbits: uint8(7),
  7196. Fval: uint16(17),
  7197. },
  7198. 25: {
  7199. Fbits: uint8(8),
  7200. Fval: uint16(104),
  7201. },
  7202. 26: {
  7203. Fbits: uint8(8),
  7204. Fval: uint16(40),
  7205. },
  7206. 27: {
  7207. Fbits: uint8(9),
  7208. Fval: uint16(176),
  7209. },
  7210. 28: {
  7211. Fbits: uint8(8),
  7212. Fval: uint16(8),
  7213. },
  7214. 29: {
  7215. Fbits: uint8(8),
  7216. Fval: uint16(136),
  7217. },
  7218. 30: {
  7219. Fbits: uint8(8),
  7220. Fval: uint16(72),
  7221. },
  7222. 31: {
  7223. Fbits: uint8(9),
  7224. Fval: uint16(240),
  7225. },
  7226. 32: {
  7227. Fop: uint8(16),
  7228. Fbits: uint8(7),
  7229. Fval: uint16(4),
  7230. },
  7231. 33: {
  7232. Fbits: uint8(8),
  7233. Fval: uint16(84),
  7234. },
  7235. 34: {
  7236. Fbits: uint8(8),
  7237. Fval: uint16(20),
  7238. },
  7239. 35: {
  7240. Fop: uint8(21),
  7241. Fbits: uint8(8),
  7242. Fval: uint16(227),
  7243. },
  7244. 36: {
  7245. Fop: uint8(19),
  7246. Fbits: uint8(7),
  7247. Fval: uint16(43),
  7248. },
  7249. 37: {
  7250. Fbits: uint8(8),
  7251. Fval: uint16(116),
  7252. },
  7253. 38: {
  7254. Fbits: uint8(8),
  7255. Fval: uint16(52),
  7256. },
  7257. 39: {
  7258. Fbits: uint8(9),
  7259. Fval: uint16(200),
  7260. },
  7261. 40: {
  7262. Fop: uint8(17),
  7263. Fbits: uint8(7),
  7264. Fval: uint16(13),
  7265. },
  7266. 41: {
  7267. Fbits: uint8(8),
  7268. Fval: uint16(100),
  7269. },
  7270. 42: {
  7271. Fbits: uint8(8),
  7272. Fval: uint16(36),
  7273. },
  7274. 43: {
  7275. Fbits: uint8(9),
  7276. Fval: uint16(168),
  7277. },
  7278. 44: {
  7279. Fbits: uint8(8),
  7280. Fval: uint16(4),
  7281. },
  7282. 45: {
  7283. Fbits: uint8(8),
  7284. Fval: uint16(132),
  7285. },
  7286. 46: {
  7287. Fbits: uint8(8),
  7288. Fval: uint16(68),
  7289. },
  7290. 47: {
  7291. Fbits: uint8(9),
  7292. Fval: uint16(232),
  7293. },
  7294. 48: {
  7295. Fop: uint8(16),
  7296. Fbits: uint8(7),
  7297. Fval: uint16(8),
  7298. },
  7299. 49: {
  7300. Fbits: uint8(8),
  7301. Fval: uint16(92),
  7302. },
  7303. 50: {
  7304. Fbits: uint8(8),
  7305. Fval: uint16(28),
  7306. },
  7307. 51: {
  7308. Fbits: uint8(9),
  7309. Fval: uint16(152),
  7310. },
  7311. 52: {
  7312. Fop: uint8(20),
  7313. Fbits: uint8(7),
  7314. Fval: uint16(83),
  7315. },
  7316. 53: {
  7317. Fbits: uint8(8),
  7318. Fval: uint16(124),
  7319. },
  7320. 54: {
  7321. Fbits: uint8(8),
  7322. Fval: uint16(60),
  7323. },
  7324. 55: {
  7325. Fbits: uint8(9),
  7326. Fval: uint16(216),
  7327. },
  7328. 56: {
  7329. Fop: uint8(18),
  7330. Fbits: uint8(7),
  7331. Fval: uint16(23),
  7332. },
  7333. 57: {
  7334. Fbits: uint8(8),
  7335. Fval: uint16(108),
  7336. },
  7337. 58: {
  7338. Fbits: uint8(8),
  7339. Fval: uint16(44),
  7340. },
  7341. 59: {
  7342. Fbits: uint8(9),
  7343. Fval: uint16(184),
  7344. },
  7345. 60: {
  7346. Fbits: uint8(8),
  7347. Fval: uint16(12),
  7348. },
  7349. 61: {
  7350. Fbits: uint8(8),
  7351. Fval: uint16(140),
  7352. },
  7353. 62: {
  7354. Fbits: uint8(8),
  7355. Fval: uint16(76),
  7356. },
  7357. 63: {
  7358. Fbits: uint8(9),
  7359. Fval: uint16(248),
  7360. },
  7361. 64: {
  7362. Fop: uint8(16),
  7363. Fbits: uint8(7),
  7364. Fval: uint16(3),
  7365. },
  7366. 65: {
  7367. Fbits: uint8(8),
  7368. Fval: uint16(82),
  7369. },
  7370. 66: {
  7371. Fbits: uint8(8),
  7372. Fval: uint16(18),
  7373. },
  7374. 67: {
  7375. Fop: uint8(21),
  7376. Fbits: uint8(8),
  7377. Fval: uint16(163),
  7378. },
  7379. 68: {
  7380. Fop: uint8(19),
  7381. Fbits: uint8(7),
  7382. Fval: uint16(35),
  7383. },
  7384. 69: {
  7385. Fbits: uint8(8),
  7386. Fval: uint16(114),
  7387. },
  7388. 70: {
  7389. Fbits: uint8(8),
  7390. Fval: uint16(50),
  7391. },
  7392. 71: {
  7393. Fbits: uint8(9),
  7394. Fval: uint16(196),
  7395. },
  7396. 72: {
  7397. Fop: uint8(17),
  7398. Fbits: uint8(7),
  7399. Fval: uint16(11),
  7400. },
  7401. 73: {
  7402. Fbits: uint8(8),
  7403. Fval: uint16(98),
  7404. },
  7405. 74: {
  7406. Fbits: uint8(8),
  7407. Fval: uint16(34),
  7408. },
  7409. 75: {
  7410. Fbits: uint8(9),
  7411. Fval: uint16(164),
  7412. },
  7413. 76: {
  7414. Fbits: uint8(8),
  7415. Fval: uint16(2),
  7416. },
  7417. 77: {
  7418. Fbits: uint8(8),
  7419. Fval: uint16(130),
  7420. },
  7421. 78: {
  7422. Fbits: uint8(8),
  7423. Fval: uint16(66),
  7424. },
  7425. 79: {
  7426. Fbits: uint8(9),
  7427. Fval: uint16(228),
  7428. },
  7429. 80: {
  7430. Fop: uint8(16),
  7431. Fbits: uint8(7),
  7432. Fval: uint16(7),
  7433. },
  7434. 81: {
  7435. Fbits: uint8(8),
  7436. Fval: uint16(90),
  7437. },
  7438. 82: {
  7439. Fbits: uint8(8),
  7440. Fval: uint16(26),
  7441. },
  7442. 83: {
  7443. Fbits: uint8(9),
  7444. Fval: uint16(148),
  7445. },
  7446. 84: {
  7447. Fop: uint8(20),
  7448. Fbits: uint8(7),
  7449. Fval: uint16(67),
  7450. },
  7451. 85: {
  7452. Fbits: uint8(8),
  7453. Fval: uint16(122),
  7454. },
  7455. 86: {
  7456. Fbits: uint8(8),
  7457. Fval: uint16(58),
  7458. },
  7459. 87: {
  7460. Fbits: uint8(9),
  7461. Fval: uint16(212),
  7462. },
  7463. 88: {
  7464. Fop: uint8(18),
  7465. Fbits: uint8(7),
  7466. Fval: uint16(19),
  7467. },
  7468. 89: {
  7469. Fbits: uint8(8),
  7470. Fval: uint16(106),
  7471. },
  7472. 90: {
  7473. Fbits: uint8(8),
  7474. Fval: uint16(42),
  7475. },
  7476. 91: {
  7477. Fbits: uint8(9),
  7478. Fval: uint16(180),
  7479. },
  7480. 92: {
  7481. Fbits: uint8(8),
  7482. Fval: uint16(10),
  7483. },
  7484. 93: {
  7485. Fbits: uint8(8),
  7486. Fval: uint16(138),
  7487. },
  7488. 94: {
  7489. Fbits: uint8(8),
  7490. Fval: uint16(74),
  7491. },
  7492. 95: {
  7493. Fbits: uint8(9),
  7494. Fval: uint16(244),
  7495. },
  7496. 96: {
  7497. Fop: uint8(16),
  7498. Fbits: uint8(7),
  7499. Fval: uint16(5),
  7500. },
  7501. 97: {
  7502. Fbits: uint8(8),
  7503. Fval: uint16(86),
  7504. },
  7505. 98: {
  7506. Fbits: uint8(8),
  7507. Fval: uint16(22),
  7508. },
  7509. 99: {
  7510. Fop: uint8(64),
  7511. Fbits: uint8(8),
  7512. },
  7513. 100: {
  7514. Fop: uint8(19),
  7515. Fbits: uint8(7),
  7516. Fval: uint16(51),
  7517. },
  7518. 101: {
  7519. Fbits: uint8(8),
  7520. Fval: uint16(118),
  7521. },
  7522. 102: {
  7523. Fbits: uint8(8),
  7524. Fval: uint16(54),
  7525. },
  7526. 103: {
  7527. Fbits: uint8(9),
  7528. Fval: uint16(204),
  7529. },
  7530. 104: {
  7531. Fop: uint8(17),
  7532. Fbits: uint8(7),
  7533. Fval: uint16(15),
  7534. },
  7535. 105: {
  7536. Fbits: uint8(8),
  7537. Fval: uint16(102),
  7538. },
  7539. 106: {
  7540. Fbits: uint8(8),
  7541. Fval: uint16(38),
  7542. },
  7543. 107: {
  7544. Fbits: uint8(9),
  7545. Fval: uint16(172),
  7546. },
  7547. 108: {
  7548. Fbits: uint8(8),
  7549. Fval: uint16(6),
  7550. },
  7551. 109: {
  7552. Fbits: uint8(8),
  7553. Fval: uint16(134),
  7554. },
  7555. 110: {
  7556. Fbits: uint8(8),
  7557. Fval: uint16(70),
  7558. },
  7559. 111: {
  7560. Fbits: uint8(9),
  7561. Fval: uint16(236),
  7562. },
  7563. 112: {
  7564. Fop: uint8(16),
  7565. Fbits: uint8(7),
  7566. Fval: uint16(9),
  7567. },
  7568. 113: {
  7569. Fbits: uint8(8),
  7570. Fval: uint16(94),
  7571. },
  7572. 114: {
  7573. Fbits: uint8(8),
  7574. Fval: uint16(30),
  7575. },
  7576. 115: {
  7577. Fbits: uint8(9),
  7578. Fval: uint16(156),
  7579. },
  7580. 116: {
  7581. Fop: uint8(20),
  7582. Fbits: uint8(7),
  7583. Fval: uint16(99),
  7584. },
  7585. 117: {
  7586. Fbits: uint8(8),
  7587. Fval: uint16(126),
  7588. },
  7589. 118: {
  7590. Fbits: uint8(8),
  7591. Fval: uint16(62),
  7592. },
  7593. 119: {
  7594. Fbits: uint8(9),
  7595. Fval: uint16(220),
  7596. },
  7597. 120: {
  7598. Fop: uint8(18),
  7599. Fbits: uint8(7),
  7600. Fval: uint16(27),
  7601. },
  7602. 121: {
  7603. Fbits: uint8(8),
  7604. Fval: uint16(110),
  7605. },
  7606. 122: {
  7607. Fbits: uint8(8),
  7608. Fval: uint16(46),
  7609. },
  7610. 123: {
  7611. Fbits: uint8(9),
  7612. Fval: uint16(188),
  7613. },
  7614. 124: {
  7615. Fbits: uint8(8),
  7616. Fval: uint16(14),
  7617. },
  7618. 125: {
  7619. Fbits: uint8(8),
  7620. Fval: uint16(142),
  7621. },
  7622. 126: {
  7623. Fbits: uint8(8),
  7624. Fval: uint16(78),
  7625. },
  7626. 127: {
  7627. Fbits: uint8(9),
  7628. Fval: uint16(252),
  7629. },
  7630. 128: {
  7631. Fop: uint8(96),
  7632. Fbits: uint8(7),
  7633. },
  7634. 129: {
  7635. Fbits: uint8(8),
  7636. Fval: uint16(81),
  7637. },
  7638. 130: {
  7639. Fbits: uint8(8),
  7640. Fval: uint16(17),
  7641. },
  7642. 131: {
  7643. Fop: uint8(21),
  7644. Fbits: uint8(8),
  7645. Fval: uint16(131),
  7646. },
  7647. 132: {
  7648. Fop: uint8(18),
  7649. Fbits: uint8(7),
  7650. Fval: uint16(31),
  7651. },
  7652. 133: {
  7653. Fbits: uint8(8),
  7654. Fval: uint16(113),
  7655. },
  7656. 134: {
  7657. Fbits: uint8(8),
  7658. Fval: uint16(49),
  7659. },
  7660. 135: {
  7661. Fbits: uint8(9),
  7662. Fval: uint16(194),
  7663. },
  7664. 136: {
  7665. Fop: uint8(16),
  7666. Fbits: uint8(7),
  7667. Fval: uint16(10),
  7668. },
  7669. 137: {
  7670. Fbits: uint8(8),
  7671. Fval: uint16(97),
  7672. },
  7673. 138: {
  7674. Fbits: uint8(8),
  7675. Fval: uint16(33),
  7676. },
  7677. 139: {
  7678. Fbits: uint8(9),
  7679. Fval: uint16(162),
  7680. },
  7681. 140: {
  7682. Fbits: uint8(8),
  7683. Fval: uint16(1),
  7684. },
  7685. 141: {
  7686. Fbits: uint8(8),
  7687. Fval: uint16(129),
  7688. },
  7689. 142: {
  7690. Fbits: uint8(8),
  7691. Fval: uint16(65),
  7692. },
  7693. 143: {
  7694. Fbits: uint8(9),
  7695. Fval: uint16(226),
  7696. },
  7697. 144: {
  7698. Fop: uint8(16),
  7699. Fbits: uint8(7),
  7700. Fval: uint16(6),
  7701. },
  7702. 145: {
  7703. Fbits: uint8(8),
  7704. Fval: uint16(89),
  7705. },
  7706. 146: {
  7707. Fbits: uint8(8),
  7708. Fval: uint16(25),
  7709. },
  7710. 147: {
  7711. Fbits: uint8(9),
  7712. Fval: uint16(146),
  7713. },
  7714. 148: {
  7715. Fop: uint8(19),
  7716. Fbits: uint8(7),
  7717. Fval: uint16(59),
  7718. },
  7719. 149: {
  7720. Fbits: uint8(8),
  7721. Fval: uint16(121),
  7722. },
  7723. 150: {
  7724. Fbits: uint8(8),
  7725. Fval: uint16(57),
  7726. },
  7727. 151: {
  7728. Fbits: uint8(9),
  7729. Fval: uint16(210),
  7730. },
  7731. 152: {
  7732. Fop: uint8(17),
  7733. Fbits: uint8(7),
  7734. Fval: uint16(17),
  7735. },
  7736. 153: {
  7737. Fbits: uint8(8),
  7738. Fval: uint16(105),
  7739. },
  7740. 154: {
  7741. Fbits: uint8(8),
  7742. Fval: uint16(41),
  7743. },
  7744. 155: {
  7745. Fbits: uint8(9),
  7746. Fval: uint16(178),
  7747. },
  7748. 156: {
  7749. Fbits: uint8(8),
  7750. Fval: uint16(9),
  7751. },
  7752. 157: {
  7753. Fbits: uint8(8),
  7754. Fval: uint16(137),
  7755. },
  7756. 158: {
  7757. Fbits: uint8(8),
  7758. Fval: uint16(73),
  7759. },
  7760. 159: {
  7761. Fbits: uint8(9),
  7762. Fval: uint16(242),
  7763. },
  7764. 160: {
  7765. Fop: uint8(16),
  7766. Fbits: uint8(7),
  7767. Fval: uint16(4),
  7768. },
  7769. 161: {
  7770. Fbits: uint8(8),
  7771. Fval: uint16(85),
  7772. },
  7773. 162: {
  7774. Fbits: uint8(8),
  7775. Fval: uint16(21),
  7776. },
  7777. 163: {
  7778. Fop: uint8(16),
  7779. Fbits: uint8(8),
  7780. Fval: uint16(258),
  7781. },
  7782. 164: {
  7783. Fop: uint8(19),
  7784. Fbits: uint8(7),
  7785. Fval: uint16(43),
  7786. },
  7787. 165: {
  7788. Fbits: uint8(8),
  7789. Fval: uint16(117),
  7790. },
  7791. 166: {
  7792. Fbits: uint8(8),
  7793. Fval: uint16(53),
  7794. },
  7795. 167: {
  7796. Fbits: uint8(9),
  7797. Fval: uint16(202),
  7798. },
  7799. 168: {
  7800. Fop: uint8(17),
  7801. Fbits: uint8(7),
  7802. Fval: uint16(13),
  7803. },
  7804. 169: {
  7805. Fbits: uint8(8),
  7806. Fval: uint16(101),
  7807. },
  7808. 170: {
  7809. Fbits: uint8(8),
  7810. Fval: uint16(37),
  7811. },
  7812. 171: {
  7813. Fbits: uint8(9),
  7814. Fval: uint16(170),
  7815. },
  7816. 172: {
  7817. Fbits: uint8(8),
  7818. Fval: uint16(5),
  7819. },
  7820. 173: {
  7821. Fbits: uint8(8),
  7822. Fval: uint16(133),
  7823. },
  7824. 174: {
  7825. Fbits: uint8(8),
  7826. Fval: uint16(69),
  7827. },
  7828. 175: {
  7829. Fbits: uint8(9),
  7830. Fval: uint16(234),
  7831. },
  7832. 176: {
  7833. Fop: uint8(16),
  7834. Fbits: uint8(7),
  7835. Fval: uint16(8),
  7836. },
  7837. 177: {
  7838. Fbits: uint8(8),
  7839. Fval: uint16(93),
  7840. },
  7841. 178: {
  7842. Fbits: uint8(8),
  7843. Fval: uint16(29),
  7844. },
  7845. 179: {
  7846. Fbits: uint8(9),
  7847. Fval: uint16(154),
  7848. },
  7849. 180: {
  7850. Fop: uint8(20),
  7851. Fbits: uint8(7),
  7852. Fval: uint16(83),
  7853. },
  7854. 181: {
  7855. Fbits: uint8(8),
  7856. Fval: uint16(125),
  7857. },
  7858. 182: {
  7859. Fbits: uint8(8),
  7860. Fval: uint16(61),
  7861. },
  7862. 183: {
  7863. Fbits: uint8(9),
  7864. Fval: uint16(218),
  7865. },
  7866. 184: {
  7867. Fop: uint8(18),
  7868. Fbits: uint8(7),
  7869. Fval: uint16(23),
  7870. },
  7871. 185: {
  7872. Fbits: uint8(8),
  7873. Fval: uint16(109),
  7874. },
  7875. 186: {
  7876. Fbits: uint8(8),
  7877. Fval: uint16(45),
  7878. },
  7879. 187: {
  7880. Fbits: uint8(9),
  7881. Fval: uint16(186),
  7882. },
  7883. 188: {
  7884. Fbits: uint8(8),
  7885. Fval: uint16(13),
  7886. },
  7887. 189: {
  7888. Fbits: uint8(8),
  7889. Fval: uint16(141),
  7890. },
  7891. 190: {
  7892. Fbits: uint8(8),
  7893. Fval: uint16(77),
  7894. },
  7895. 191: {
  7896. Fbits: uint8(9),
  7897. Fval: uint16(250),
  7898. },
  7899. 192: {
  7900. Fop: uint8(16),
  7901. Fbits: uint8(7),
  7902. Fval: uint16(3),
  7903. },
  7904. 193: {
  7905. Fbits: uint8(8),
  7906. Fval: uint16(83),
  7907. },
  7908. 194: {
  7909. Fbits: uint8(8),
  7910. Fval: uint16(19),
  7911. },
  7912. 195: {
  7913. Fop: uint8(21),
  7914. Fbits: uint8(8),
  7915. Fval: uint16(195),
  7916. },
  7917. 196: {
  7918. Fop: uint8(19),
  7919. Fbits: uint8(7),
  7920. Fval: uint16(35),
  7921. },
  7922. 197: {
  7923. Fbits: uint8(8),
  7924. Fval: uint16(115),
  7925. },
  7926. 198: {
  7927. Fbits: uint8(8),
  7928. Fval: uint16(51),
  7929. },
  7930. 199: {
  7931. Fbits: uint8(9),
  7932. Fval: uint16(198),
  7933. },
  7934. 200: {
  7935. Fop: uint8(17),
  7936. Fbits: uint8(7),
  7937. Fval: uint16(11),
  7938. },
  7939. 201: {
  7940. Fbits: uint8(8),
  7941. Fval: uint16(99),
  7942. },
  7943. 202: {
  7944. Fbits: uint8(8),
  7945. Fval: uint16(35),
  7946. },
  7947. 203: {
  7948. Fbits: uint8(9),
  7949. Fval: uint16(166),
  7950. },
  7951. 204: {
  7952. Fbits: uint8(8),
  7953. Fval: uint16(3),
  7954. },
  7955. 205: {
  7956. Fbits: uint8(8),
  7957. Fval: uint16(131),
  7958. },
  7959. 206: {
  7960. Fbits: uint8(8),
  7961. Fval: uint16(67),
  7962. },
  7963. 207: {
  7964. Fbits: uint8(9),
  7965. Fval: uint16(230),
  7966. },
  7967. 208: {
  7968. Fop: uint8(16),
  7969. Fbits: uint8(7),
  7970. Fval: uint16(7),
  7971. },
  7972. 209: {
  7973. Fbits: uint8(8),
  7974. Fval: uint16(91),
  7975. },
  7976. 210: {
  7977. Fbits: uint8(8),
  7978. Fval: uint16(27),
  7979. },
  7980. 211: {
  7981. Fbits: uint8(9),
  7982. Fval: uint16(150),
  7983. },
  7984. 212: {
  7985. Fop: uint8(20),
  7986. Fbits: uint8(7),
  7987. Fval: uint16(67),
  7988. },
  7989. 213: {
  7990. Fbits: uint8(8),
  7991. Fval: uint16(123),
  7992. },
  7993. 214: {
  7994. Fbits: uint8(8),
  7995. Fval: uint16(59),
  7996. },
  7997. 215: {
  7998. Fbits: uint8(9),
  7999. Fval: uint16(214),
  8000. },
  8001. 216: {
  8002. Fop: uint8(18),
  8003. Fbits: uint8(7),
  8004. Fval: uint16(19),
  8005. },
  8006. 217: {
  8007. Fbits: uint8(8),
  8008. Fval: uint16(107),
  8009. },
  8010. 218: {
  8011. Fbits: uint8(8),
  8012. Fval: uint16(43),
  8013. },
  8014. 219: {
  8015. Fbits: uint8(9),
  8016. Fval: uint16(182),
  8017. },
  8018. 220: {
  8019. Fbits: uint8(8),
  8020. Fval: uint16(11),
  8021. },
  8022. 221: {
  8023. Fbits: uint8(8),
  8024. Fval: uint16(139),
  8025. },
  8026. 222: {
  8027. Fbits: uint8(8),
  8028. Fval: uint16(75),
  8029. },
  8030. 223: {
  8031. Fbits: uint8(9),
  8032. Fval: uint16(246),
  8033. },
  8034. 224: {
  8035. Fop: uint8(16),
  8036. Fbits: uint8(7),
  8037. Fval: uint16(5),
  8038. },
  8039. 225: {
  8040. Fbits: uint8(8),
  8041. Fval: uint16(87),
  8042. },
  8043. 226: {
  8044. Fbits: uint8(8),
  8045. Fval: uint16(23),
  8046. },
  8047. 227: {
  8048. Fop: uint8(64),
  8049. Fbits: uint8(8),
  8050. },
  8051. 228: {
  8052. Fop: uint8(19),
  8053. Fbits: uint8(7),
  8054. Fval: uint16(51),
  8055. },
  8056. 229: {
  8057. Fbits: uint8(8),
  8058. Fval: uint16(119),
  8059. },
  8060. 230: {
  8061. Fbits: uint8(8),
  8062. Fval: uint16(55),
  8063. },
  8064. 231: {
  8065. Fbits: uint8(9),
  8066. Fval: uint16(206),
  8067. },
  8068. 232: {
  8069. Fop: uint8(17),
  8070. Fbits: uint8(7),
  8071. Fval: uint16(15),
  8072. },
  8073. 233: {
  8074. Fbits: uint8(8),
  8075. Fval: uint16(103),
  8076. },
  8077. 234: {
  8078. Fbits: uint8(8),
  8079. Fval: uint16(39),
  8080. },
  8081. 235: {
  8082. Fbits: uint8(9),
  8083. Fval: uint16(174),
  8084. },
  8085. 236: {
  8086. Fbits: uint8(8),
  8087. Fval: uint16(7),
  8088. },
  8089. 237: {
  8090. Fbits: uint8(8),
  8091. Fval: uint16(135),
  8092. },
  8093. 238: {
  8094. Fbits: uint8(8),
  8095. Fval: uint16(71),
  8096. },
  8097. 239: {
  8098. Fbits: uint8(9),
  8099. Fval: uint16(238),
  8100. },
  8101. 240: {
  8102. Fop: uint8(16),
  8103. Fbits: uint8(7),
  8104. Fval: uint16(9),
  8105. },
  8106. 241: {
  8107. Fbits: uint8(8),
  8108. Fval: uint16(95),
  8109. },
  8110. 242: {
  8111. Fbits: uint8(8),
  8112. Fval: uint16(31),
  8113. },
  8114. 243: {
  8115. Fbits: uint8(9),
  8116. Fval: uint16(158),
  8117. },
  8118. 244: {
  8119. Fop: uint8(20),
  8120. Fbits: uint8(7),
  8121. Fval: uint16(99),
  8122. },
  8123. 245: {
  8124. Fbits: uint8(8),
  8125. Fval: uint16(127),
  8126. },
  8127. 246: {
  8128. Fbits: uint8(8),
  8129. Fval: uint16(63),
  8130. },
  8131. 247: {
  8132. Fbits: uint8(9),
  8133. Fval: uint16(222),
  8134. },
  8135. 248: {
  8136. Fop: uint8(18),
  8137. Fbits: uint8(7),
  8138. Fval: uint16(27),
  8139. },
  8140. 249: {
  8141. Fbits: uint8(8),
  8142. Fval: uint16(111),
  8143. },
  8144. 250: {
  8145. Fbits: uint8(8),
  8146. Fval: uint16(47),
  8147. },
  8148. 251: {
  8149. Fbits: uint8(9),
  8150. Fval: uint16(190),
  8151. },
  8152. 252: {
  8153. Fbits: uint8(8),
  8154. Fval: uint16(15),
  8155. },
  8156. 253: {
  8157. Fbits: uint8(8),
  8158. Fval: uint16(143),
  8159. },
  8160. 254: {
  8161. Fbits: uint8(8),
  8162. Fval: uint16(79),
  8163. },
  8164. 255: {
  8165. Fbits: uint8(9),
  8166. Fval: uint16(254),
  8167. },
  8168. 256: {
  8169. Fop: uint8(96),
  8170. Fbits: uint8(7),
  8171. },
  8172. 257: {
  8173. Fbits: uint8(8),
  8174. Fval: uint16(80),
  8175. },
  8176. 258: {
  8177. Fbits: uint8(8),
  8178. Fval: uint16(16),
  8179. },
  8180. 259: {
  8181. Fop: uint8(20),
  8182. Fbits: uint8(8),
  8183. Fval: uint16(115),
  8184. },
  8185. 260: {
  8186. Fop: uint8(18),
  8187. Fbits: uint8(7),
  8188. Fval: uint16(31),
  8189. },
  8190. 261: {
  8191. Fbits: uint8(8),
  8192. Fval: uint16(112),
  8193. },
  8194. 262: {
  8195. Fbits: uint8(8),
  8196. Fval: uint16(48),
  8197. },
  8198. 263: {
  8199. Fbits: uint8(9),
  8200. Fval: uint16(193),
  8201. },
  8202. 264: {
  8203. Fop: uint8(16),
  8204. Fbits: uint8(7),
  8205. Fval: uint16(10),
  8206. },
  8207. 265: {
  8208. Fbits: uint8(8),
  8209. Fval: uint16(96),
  8210. },
  8211. 266: {
  8212. Fbits: uint8(8),
  8213. Fval: uint16(32),
  8214. },
  8215. 267: {
  8216. Fbits: uint8(9),
  8217. Fval: uint16(161),
  8218. },
  8219. 268: {
  8220. Fbits: uint8(8),
  8221. },
  8222. 269: {
  8223. Fbits: uint8(8),
  8224. Fval: uint16(128),
  8225. },
  8226. 270: {
  8227. Fbits: uint8(8),
  8228. Fval: uint16(64),
  8229. },
  8230. 271: {
  8231. Fbits: uint8(9),
  8232. Fval: uint16(225),
  8233. },
  8234. 272: {
  8235. Fop: uint8(16),
  8236. Fbits: uint8(7),
  8237. Fval: uint16(6),
  8238. },
  8239. 273: {
  8240. Fbits: uint8(8),
  8241. Fval: uint16(88),
  8242. },
  8243. 274: {
  8244. Fbits: uint8(8),
  8245. Fval: uint16(24),
  8246. },
  8247. 275: {
  8248. Fbits: uint8(9),
  8249. Fval: uint16(145),
  8250. },
  8251. 276: {
  8252. Fop: uint8(19),
  8253. Fbits: uint8(7),
  8254. Fval: uint16(59),
  8255. },
  8256. 277: {
  8257. Fbits: uint8(8),
  8258. Fval: uint16(120),
  8259. },
  8260. 278: {
  8261. Fbits: uint8(8),
  8262. Fval: uint16(56),
  8263. },
  8264. 279: {
  8265. Fbits: uint8(9),
  8266. Fval: uint16(209),
  8267. },
  8268. 280: {
  8269. Fop: uint8(17),
  8270. Fbits: uint8(7),
  8271. Fval: uint16(17),
  8272. },
  8273. 281: {
  8274. Fbits: uint8(8),
  8275. Fval: uint16(104),
  8276. },
  8277. 282: {
  8278. Fbits: uint8(8),
  8279. Fval: uint16(40),
  8280. },
  8281. 283: {
  8282. Fbits: uint8(9),
  8283. Fval: uint16(177),
  8284. },
  8285. 284: {
  8286. Fbits: uint8(8),
  8287. Fval: uint16(8),
  8288. },
  8289. 285: {
  8290. Fbits: uint8(8),
  8291. Fval: uint16(136),
  8292. },
  8293. 286: {
  8294. Fbits: uint8(8),
  8295. Fval: uint16(72),
  8296. },
  8297. 287: {
  8298. Fbits: uint8(9),
  8299. Fval: uint16(241),
  8300. },
  8301. 288: {
  8302. Fop: uint8(16),
  8303. Fbits: uint8(7),
  8304. Fval: uint16(4),
  8305. },
  8306. 289: {
  8307. Fbits: uint8(8),
  8308. Fval: uint16(84),
  8309. },
  8310. 290: {
  8311. Fbits: uint8(8),
  8312. Fval: uint16(20),
  8313. },
  8314. 291: {
  8315. Fop: uint8(21),
  8316. Fbits: uint8(8),
  8317. Fval: uint16(227),
  8318. },
  8319. 292: {
  8320. Fop: uint8(19),
  8321. Fbits: uint8(7),
  8322. Fval: uint16(43),
  8323. },
  8324. 293: {
  8325. Fbits: uint8(8),
  8326. Fval: uint16(116),
  8327. },
  8328. 294: {
  8329. Fbits: uint8(8),
  8330. Fval: uint16(52),
  8331. },
  8332. 295: {
  8333. Fbits: uint8(9),
  8334. Fval: uint16(201),
  8335. },
  8336. 296: {
  8337. Fop: uint8(17),
  8338. Fbits: uint8(7),
  8339. Fval: uint16(13),
  8340. },
  8341. 297: {
  8342. Fbits: uint8(8),
  8343. Fval: uint16(100),
  8344. },
  8345. 298: {
  8346. Fbits: uint8(8),
  8347. Fval: uint16(36),
  8348. },
  8349. 299: {
  8350. Fbits: uint8(9),
  8351. Fval: uint16(169),
  8352. },
  8353. 300: {
  8354. Fbits: uint8(8),
  8355. Fval: uint16(4),
  8356. },
  8357. 301: {
  8358. Fbits: uint8(8),
  8359. Fval: uint16(132),
  8360. },
  8361. 302: {
  8362. Fbits: uint8(8),
  8363. Fval: uint16(68),
  8364. },
  8365. 303: {
  8366. Fbits: uint8(9),
  8367. Fval: uint16(233),
  8368. },
  8369. 304: {
  8370. Fop: uint8(16),
  8371. Fbits: uint8(7),
  8372. Fval: uint16(8),
  8373. },
  8374. 305: {
  8375. Fbits: uint8(8),
  8376. Fval: uint16(92),
  8377. },
  8378. 306: {
  8379. Fbits: uint8(8),
  8380. Fval: uint16(28),
  8381. },
  8382. 307: {
  8383. Fbits: uint8(9),
  8384. Fval: uint16(153),
  8385. },
  8386. 308: {
  8387. Fop: uint8(20),
  8388. Fbits: uint8(7),
  8389. Fval: uint16(83),
  8390. },
  8391. 309: {
  8392. Fbits: uint8(8),
  8393. Fval: uint16(124),
  8394. },
  8395. 310: {
  8396. Fbits: uint8(8),
  8397. Fval: uint16(60),
  8398. },
  8399. 311: {
  8400. Fbits: uint8(9),
  8401. Fval: uint16(217),
  8402. },
  8403. 312: {
  8404. Fop: uint8(18),
  8405. Fbits: uint8(7),
  8406. Fval: uint16(23),
  8407. },
  8408. 313: {
  8409. Fbits: uint8(8),
  8410. Fval: uint16(108),
  8411. },
  8412. 314: {
  8413. Fbits: uint8(8),
  8414. Fval: uint16(44),
  8415. },
  8416. 315: {
  8417. Fbits: uint8(9),
  8418. Fval: uint16(185),
  8419. },
  8420. 316: {
  8421. Fbits: uint8(8),
  8422. Fval: uint16(12),
  8423. },
  8424. 317: {
  8425. Fbits: uint8(8),
  8426. Fval: uint16(140),
  8427. },
  8428. 318: {
  8429. Fbits: uint8(8),
  8430. Fval: uint16(76),
  8431. },
  8432. 319: {
  8433. Fbits: uint8(9),
  8434. Fval: uint16(249),
  8435. },
  8436. 320: {
  8437. Fop: uint8(16),
  8438. Fbits: uint8(7),
  8439. Fval: uint16(3),
  8440. },
  8441. 321: {
  8442. Fbits: uint8(8),
  8443. Fval: uint16(82),
  8444. },
  8445. 322: {
  8446. Fbits: uint8(8),
  8447. Fval: uint16(18),
  8448. },
  8449. 323: {
  8450. Fop: uint8(21),
  8451. Fbits: uint8(8),
  8452. Fval: uint16(163),
  8453. },
  8454. 324: {
  8455. Fop: uint8(19),
  8456. Fbits: uint8(7),
  8457. Fval: uint16(35),
  8458. },
  8459. 325: {
  8460. Fbits: uint8(8),
  8461. Fval: uint16(114),
  8462. },
  8463. 326: {
  8464. Fbits: uint8(8),
  8465. Fval: uint16(50),
  8466. },
  8467. 327: {
  8468. Fbits: uint8(9),
  8469. Fval: uint16(197),
  8470. },
  8471. 328: {
  8472. Fop: uint8(17),
  8473. Fbits: uint8(7),
  8474. Fval: uint16(11),
  8475. },
  8476. 329: {
  8477. Fbits: uint8(8),
  8478. Fval: uint16(98),
  8479. },
  8480. 330: {
  8481. Fbits: uint8(8),
  8482. Fval: uint16(34),
  8483. },
  8484. 331: {
  8485. Fbits: uint8(9),
  8486. Fval: uint16(165),
  8487. },
  8488. 332: {
  8489. Fbits: uint8(8),
  8490. Fval: uint16(2),
  8491. },
  8492. 333: {
  8493. Fbits: uint8(8),
  8494. Fval: uint16(130),
  8495. },
  8496. 334: {
  8497. Fbits: uint8(8),
  8498. Fval: uint16(66),
  8499. },
  8500. 335: {
  8501. Fbits: uint8(9),
  8502. Fval: uint16(229),
  8503. },
  8504. 336: {
  8505. Fop: uint8(16),
  8506. Fbits: uint8(7),
  8507. Fval: uint16(7),
  8508. },
  8509. 337: {
  8510. Fbits: uint8(8),
  8511. Fval: uint16(90),
  8512. },
  8513. 338: {
  8514. Fbits: uint8(8),
  8515. Fval: uint16(26),
  8516. },
  8517. 339: {
  8518. Fbits: uint8(9),
  8519. Fval: uint16(149),
  8520. },
  8521. 340: {
  8522. Fop: uint8(20),
  8523. Fbits: uint8(7),
  8524. Fval: uint16(67),
  8525. },
  8526. 341: {
  8527. Fbits: uint8(8),
  8528. Fval: uint16(122),
  8529. },
  8530. 342: {
  8531. Fbits: uint8(8),
  8532. Fval: uint16(58),
  8533. },
  8534. 343: {
  8535. Fbits: uint8(9),
  8536. Fval: uint16(213),
  8537. },
  8538. 344: {
  8539. Fop: uint8(18),
  8540. Fbits: uint8(7),
  8541. Fval: uint16(19),
  8542. },
  8543. 345: {
  8544. Fbits: uint8(8),
  8545. Fval: uint16(106),
  8546. },
  8547. 346: {
  8548. Fbits: uint8(8),
  8549. Fval: uint16(42),
  8550. },
  8551. 347: {
  8552. Fbits: uint8(9),
  8553. Fval: uint16(181),
  8554. },
  8555. 348: {
  8556. Fbits: uint8(8),
  8557. Fval: uint16(10),
  8558. },
  8559. 349: {
  8560. Fbits: uint8(8),
  8561. Fval: uint16(138),
  8562. },
  8563. 350: {
  8564. Fbits: uint8(8),
  8565. Fval: uint16(74),
  8566. },
  8567. 351: {
  8568. Fbits: uint8(9),
  8569. Fval: uint16(245),
  8570. },
  8571. 352: {
  8572. Fop: uint8(16),
  8573. Fbits: uint8(7),
  8574. Fval: uint16(5),
  8575. },
  8576. 353: {
  8577. Fbits: uint8(8),
  8578. Fval: uint16(86),
  8579. },
  8580. 354: {
  8581. Fbits: uint8(8),
  8582. Fval: uint16(22),
  8583. },
  8584. 355: {
  8585. Fop: uint8(64),
  8586. Fbits: uint8(8),
  8587. },
  8588. 356: {
  8589. Fop: uint8(19),
  8590. Fbits: uint8(7),
  8591. Fval: uint16(51),
  8592. },
  8593. 357: {
  8594. Fbits: uint8(8),
  8595. Fval: uint16(118),
  8596. },
  8597. 358: {
  8598. Fbits: uint8(8),
  8599. Fval: uint16(54),
  8600. },
  8601. 359: {
  8602. Fbits: uint8(9),
  8603. Fval: uint16(205),
  8604. },
  8605. 360: {
  8606. Fop: uint8(17),
  8607. Fbits: uint8(7),
  8608. Fval: uint16(15),
  8609. },
  8610. 361: {
  8611. Fbits: uint8(8),
  8612. Fval: uint16(102),
  8613. },
  8614. 362: {
  8615. Fbits: uint8(8),
  8616. Fval: uint16(38),
  8617. },
  8618. 363: {
  8619. Fbits: uint8(9),
  8620. Fval: uint16(173),
  8621. },
  8622. 364: {
  8623. Fbits: uint8(8),
  8624. Fval: uint16(6),
  8625. },
  8626. 365: {
  8627. Fbits: uint8(8),
  8628. Fval: uint16(134),
  8629. },
  8630. 366: {
  8631. Fbits: uint8(8),
  8632. Fval: uint16(70),
  8633. },
  8634. 367: {
  8635. Fbits: uint8(9),
  8636. Fval: uint16(237),
  8637. },
  8638. 368: {
  8639. Fop: uint8(16),
  8640. Fbits: uint8(7),
  8641. Fval: uint16(9),
  8642. },
  8643. 369: {
  8644. Fbits: uint8(8),
  8645. Fval: uint16(94),
  8646. },
  8647. 370: {
  8648. Fbits: uint8(8),
  8649. Fval: uint16(30),
  8650. },
  8651. 371: {
  8652. Fbits: uint8(9),
  8653. Fval: uint16(157),
  8654. },
  8655. 372: {
  8656. Fop: uint8(20),
  8657. Fbits: uint8(7),
  8658. Fval: uint16(99),
  8659. },
  8660. 373: {
  8661. Fbits: uint8(8),
  8662. Fval: uint16(126),
  8663. },
  8664. 374: {
  8665. Fbits: uint8(8),
  8666. Fval: uint16(62),
  8667. },
  8668. 375: {
  8669. Fbits: uint8(9),
  8670. Fval: uint16(221),
  8671. },
  8672. 376: {
  8673. Fop: uint8(18),
  8674. Fbits: uint8(7),
  8675. Fval: uint16(27),
  8676. },
  8677. 377: {
  8678. Fbits: uint8(8),
  8679. Fval: uint16(110),
  8680. },
  8681. 378: {
  8682. Fbits: uint8(8),
  8683. Fval: uint16(46),
  8684. },
  8685. 379: {
  8686. Fbits: uint8(9),
  8687. Fval: uint16(189),
  8688. },
  8689. 380: {
  8690. Fbits: uint8(8),
  8691. Fval: uint16(14),
  8692. },
  8693. 381: {
  8694. Fbits: uint8(8),
  8695. Fval: uint16(142),
  8696. },
  8697. 382: {
  8698. Fbits: uint8(8),
  8699. Fval: uint16(78),
  8700. },
  8701. 383: {
  8702. Fbits: uint8(9),
  8703. Fval: uint16(253),
  8704. },
  8705. 384: {
  8706. Fop: uint8(96),
  8707. Fbits: uint8(7),
  8708. },
  8709. 385: {
  8710. Fbits: uint8(8),
  8711. Fval: uint16(81),
  8712. },
  8713. 386: {
  8714. Fbits: uint8(8),
  8715. Fval: uint16(17),
  8716. },
  8717. 387: {
  8718. Fop: uint8(21),
  8719. Fbits: uint8(8),
  8720. Fval: uint16(131),
  8721. },
  8722. 388: {
  8723. Fop: uint8(18),
  8724. Fbits: uint8(7),
  8725. Fval: uint16(31),
  8726. },
  8727. 389: {
  8728. Fbits: uint8(8),
  8729. Fval: uint16(113),
  8730. },
  8731. 390: {
  8732. Fbits: uint8(8),
  8733. Fval: uint16(49),
  8734. },
  8735. 391: {
  8736. Fbits: uint8(9),
  8737. Fval: uint16(195),
  8738. },
  8739. 392: {
  8740. Fop: uint8(16),
  8741. Fbits: uint8(7),
  8742. Fval: uint16(10),
  8743. },
  8744. 393: {
  8745. Fbits: uint8(8),
  8746. Fval: uint16(97),
  8747. },
  8748. 394: {
  8749. Fbits: uint8(8),
  8750. Fval: uint16(33),
  8751. },
  8752. 395: {
  8753. Fbits: uint8(9),
  8754. Fval: uint16(163),
  8755. },
  8756. 396: {
  8757. Fbits: uint8(8),
  8758. Fval: uint16(1),
  8759. },
  8760. 397: {
  8761. Fbits: uint8(8),
  8762. Fval: uint16(129),
  8763. },
  8764. 398: {
  8765. Fbits: uint8(8),
  8766. Fval: uint16(65),
  8767. },
  8768. 399: {
  8769. Fbits: uint8(9),
  8770. Fval: uint16(227),
  8771. },
  8772. 400: {
  8773. Fop: uint8(16),
  8774. Fbits: uint8(7),
  8775. Fval: uint16(6),
  8776. },
  8777. 401: {
  8778. Fbits: uint8(8),
  8779. Fval: uint16(89),
  8780. },
  8781. 402: {
  8782. Fbits: uint8(8),
  8783. Fval: uint16(25),
  8784. },
  8785. 403: {
  8786. Fbits: uint8(9),
  8787. Fval: uint16(147),
  8788. },
  8789. 404: {
  8790. Fop: uint8(19),
  8791. Fbits: uint8(7),
  8792. Fval: uint16(59),
  8793. },
  8794. 405: {
  8795. Fbits: uint8(8),
  8796. Fval: uint16(121),
  8797. },
  8798. 406: {
  8799. Fbits: uint8(8),
  8800. Fval: uint16(57),
  8801. },
  8802. 407: {
  8803. Fbits: uint8(9),
  8804. Fval: uint16(211),
  8805. },
  8806. 408: {
  8807. Fop: uint8(17),
  8808. Fbits: uint8(7),
  8809. Fval: uint16(17),
  8810. },
  8811. 409: {
  8812. Fbits: uint8(8),
  8813. Fval: uint16(105),
  8814. },
  8815. 410: {
  8816. Fbits: uint8(8),
  8817. Fval: uint16(41),
  8818. },
  8819. 411: {
  8820. Fbits: uint8(9),
  8821. Fval: uint16(179),
  8822. },
  8823. 412: {
  8824. Fbits: uint8(8),
  8825. Fval: uint16(9),
  8826. },
  8827. 413: {
  8828. Fbits: uint8(8),
  8829. Fval: uint16(137),
  8830. },
  8831. 414: {
  8832. Fbits: uint8(8),
  8833. Fval: uint16(73),
  8834. },
  8835. 415: {
  8836. Fbits: uint8(9),
  8837. Fval: uint16(243),
  8838. },
  8839. 416: {
  8840. Fop: uint8(16),
  8841. Fbits: uint8(7),
  8842. Fval: uint16(4),
  8843. },
  8844. 417: {
  8845. Fbits: uint8(8),
  8846. Fval: uint16(85),
  8847. },
  8848. 418: {
  8849. Fbits: uint8(8),
  8850. Fval: uint16(21),
  8851. },
  8852. 419: {
  8853. Fop: uint8(16),
  8854. Fbits: uint8(8),
  8855. Fval: uint16(258),
  8856. },
  8857. 420: {
  8858. Fop: uint8(19),
  8859. Fbits: uint8(7),
  8860. Fval: uint16(43),
  8861. },
  8862. 421: {
  8863. Fbits: uint8(8),
  8864. Fval: uint16(117),
  8865. },
  8866. 422: {
  8867. Fbits: uint8(8),
  8868. Fval: uint16(53),
  8869. },
  8870. 423: {
  8871. Fbits: uint8(9),
  8872. Fval: uint16(203),
  8873. },
  8874. 424: {
  8875. Fop: uint8(17),
  8876. Fbits: uint8(7),
  8877. Fval: uint16(13),
  8878. },
  8879. 425: {
  8880. Fbits: uint8(8),
  8881. Fval: uint16(101),
  8882. },
  8883. 426: {
  8884. Fbits: uint8(8),
  8885. Fval: uint16(37),
  8886. },
  8887. 427: {
  8888. Fbits: uint8(9),
  8889. Fval: uint16(171),
  8890. },
  8891. 428: {
  8892. Fbits: uint8(8),
  8893. Fval: uint16(5),
  8894. },
  8895. 429: {
  8896. Fbits: uint8(8),
  8897. Fval: uint16(133),
  8898. },
  8899. 430: {
  8900. Fbits: uint8(8),
  8901. Fval: uint16(69),
  8902. },
  8903. 431: {
  8904. Fbits: uint8(9),
  8905. Fval: uint16(235),
  8906. },
  8907. 432: {
  8908. Fop: uint8(16),
  8909. Fbits: uint8(7),
  8910. Fval: uint16(8),
  8911. },
  8912. 433: {
  8913. Fbits: uint8(8),
  8914. Fval: uint16(93),
  8915. },
  8916. 434: {
  8917. Fbits: uint8(8),
  8918. Fval: uint16(29),
  8919. },
  8920. 435: {
  8921. Fbits: uint8(9),
  8922. Fval: uint16(155),
  8923. },
  8924. 436: {
  8925. Fop: uint8(20),
  8926. Fbits: uint8(7),
  8927. Fval: uint16(83),
  8928. },
  8929. 437: {
  8930. Fbits: uint8(8),
  8931. Fval: uint16(125),
  8932. },
  8933. 438: {
  8934. Fbits: uint8(8),
  8935. Fval: uint16(61),
  8936. },
  8937. 439: {
  8938. Fbits: uint8(9),
  8939. Fval: uint16(219),
  8940. },
  8941. 440: {
  8942. Fop: uint8(18),
  8943. Fbits: uint8(7),
  8944. Fval: uint16(23),
  8945. },
  8946. 441: {
  8947. Fbits: uint8(8),
  8948. Fval: uint16(109),
  8949. },
  8950. 442: {
  8951. Fbits: uint8(8),
  8952. Fval: uint16(45),
  8953. },
  8954. 443: {
  8955. Fbits: uint8(9),
  8956. Fval: uint16(187),
  8957. },
  8958. 444: {
  8959. Fbits: uint8(8),
  8960. Fval: uint16(13),
  8961. },
  8962. 445: {
  8963. Fbits: uint8(8),
  8964. Fval: uint16(141),
  8965. },
  8966. 446: {
  8967. Fbits: uint8(8),
  8968. Fval: uint16(77),
  8969. },
  8970. 447: {
  8971. Fbits: uint8(9),
  8972. Fval: uint16(251),
  8973. },
  8974. 448: {
  8975. Fop: uint8(16),
  8976. Fbits: uint8(7),
  8977. Fval: uint16(3),
  8978. },
  8979. 449: {
  8980. Fbits: uint8(8),
  8981. Fval: uint16(83),
  8982. },
  8983. 450: {
  8984. Fbits: uint8(8),
  8985. Fval: uint16(19),
  8986. },
  8987. 451: {
  8988. Fop: uint8(21),
  8989. Fbits: uint8(8),
  8990. Fval: uint16(195),
  8991. },
  8992. 452: {
  8993. Fop: uint8(19),
  8994. Fbits: uint8(7),
  8995. Fval: uint16(35),
  8996. },
  8997. 453: {
  8998. Fbits: uint8(8),
  8999. Fval: uint16(115),
  9000. },
  9001. 454: {
  9002. Fbits: uint8(8),
  9003. Fval: uint16(51),
  9004. },
  9005. 455: {
  9006. Fbits: uint8(9),
  9007. Fval: uint16(199),
  9008. },
  9009. 456: {
  9010. Fop: uint8(17),
  9011. Fbits: uint8(7),
  9012. Fval: uint16(11),
  9013. },
  9014. 457: {
  9015. Fbits: uint8(8),
  9016. Fval: uint16(99),
  9017. },
  9018. 458: {
  9019. Fbits: uint8(8),
  9020. Fval: uint16(35),
  9021. },
  9022. 459: {
  9023. Fbits: uint8(9),
  9024. Fval: uint16(167),
  9025. },
  9026. 460: {
  9027. Fbits: uint8(8),
  9028. Fval: uint16(3),
  9029. },
  9030. 461: {
  9031. Fbits: uint8(8),
  9032. Fval: uint16(131),
  9033. },
  9034. 462: {
  9035. Fbits: uint8(8),
  9036. Fval: uint16(67),
  9037. },
  9038. 463: {
  9039. Fbits: uint8(9),
  9040. Fval: uint16(231),
  9041. },
  9042. 464: {
  9043. Fop: uint8(16),
  9044. Fbits: uint8(7),
  9045. Fval: uint16(7),
  9046. },
  9047. 465: {
  9048. Fbits: uint8(8),
  9049. Fval: uint16(91),
  9050. },
  9051. 466: {
  9052. Fbits: uint8(8),
  9053. Fval: uint16(27),
  9054. },
  9055. 467: {
  9056. Fbits: uint8(9),
  9057. Fval: uint16(151),
  9058. },
  9059. 468: {
  9060. Fop: uint8(20),
  9061. Fbits: uint8(7),
  9062. Fval: uint16(67),
  9063. },
  9064. 469: {
  9065. Fbits: uint8(8),
  9066. Fval: uint16(123),
  9067. },
  9068. 470: {
  9069. Fbits: uint8(8),
  9070. Fval: uint16(59),
  9071. },
  9072. 471: {
  9073. Fbits: uint8(9),
  9074. Fval: uint16(215),
  9075. },
  9076. 472: {
  9077. Fop: uint8(18),
  9078. Fbits: uint8(7),
  9079. Fval: uint16(19),
  9080. },
  9081. 473: {
  9082. Fbits: uint8(8),
  9083. Fval: uint16(107),
  9084. },
  9085. 474: {
  9086. Fbits: uint8(8),
  9087. Fval: uint16(43),
  9088. },
  9089. 475: {
  9090. Fbits: uint8(9),
  9091. Fval: uint16(183),
  9092. },
  9093. 476: {
  9094. Fbits: uint8(8),
  9095. Fval: uint16(11),
  9096. },
  9097. 477: {
  9098. Fbits: uint8(8),
  9099. Fval: uint16(139),
  9100. },
  9101. 478: {
  9102. Fbits: uint8(8),
  9103. Fval: uint16(75),
  9104. },
  9105. 479: {
  9106. Fbits: uint8(9),
  9107. Fval: uint16(247),
  9108. },
  9109. 480: {
  9110. Fop: uint8(16),
  9111. Fbits: uint8(7),
  9112. Fval: uint16(5),
  9113. },
  9114. 481: {
  9115. Fbits: uint8(8),
  9116. Fval: uint16(87),
  9117. },
  9118. 482: {
  9119. Fbits: uint8(8),
  9120. Fval: uint16(23),
  9121. },
  9122. 483: {
  9123. Fop: uint8(64),
  9124. Fbits: uint8(8),
  9125. },
  9126. 484: {
  9127. Fop: uint8(19),
  9128. Fbits: uint8(7),
  9129. Fval: uint16(51),
  9130. },
  9131. 485: {
  9132. Fbits: uint8(8),
  9133. Fval: uint16(119),
  9134. },
  9135. 486: {
  9136. Fbits: uint8(8),
  9137. Fval: uint16(55),
  9138. },
  9139. 487: {
  9140. Fbits: uint8(9),
  9141. Fval: uint16(207),
  9142. },
  9143. 488: {
  9144. Fop: uint8(17),
  9145. Fbits: uint8(7),
  9146. Fval: uint16(15),
  9147. },
  9148. 489: {
  9149. Fbits: uint8(8),
  9150. Fval: uint16(103),
  9151. },
  9152. 490: {
  9153. Fbits: uint8(8),
  9154. Fval: uint16(39),
  9155. },
  9156. 491: {
  9157. Fbits: uint8(9),
  9158. Fval: uint16(175),
  9159. },
  9160. 492: {
  9161. Fbits: uint8(8),
  9162. Fval: uint16(7),
  9163. },
  9164. 493: {
  9165. Fbits: uint8(8),
  9166. Fval: uint16(135),
  9167. },
  9168. 494: {
  9169. Fbits: uint8(8),
  9170. Fval: uint16(71),
  9171. },
  9172. 495: {
  9173. Fbits: uint8(9),
  9174. Fval: uint16(239),
  9175. },
  9176. 496: {
  9177. Fop: uint8(16),
  9178. Fbits: uint8(7),
  9179. Fval: uint16(9),
  9180. },
  9181. 497: {
  9182. Fbits: uint8(8),
  9183. Fval: uint16(95),
  9184. },
  9185. 498: {
  9186. Fbits: uint8(8),
  9187. Fval: uint16(31),
  9188. },
  9189. 499: {
  9190. Fbits: uint8(9),
  9191. Fval: uint16(159),
  9192. },
  9193. 500: {
  9194. Fop: uint8(20),
  9195. Fbits: uint8(7),
  9196. Fval: uint16(99),
  9197. },
  9198. 501: {
  9199. Fbits: uint8(8),
  9200. Fval: uint16(127),
  9201. },
  9202. 502: {
  9203. Fbits: uint8(8),
  9204. Fval: uint16(63),
  9205. },
  9206. 503: {
  9207. Fbits: uint8(9),
  9208. Fval: uint16(223),
  9209. },
  9210. 504: {
  9211. Fop: uint8(18),
  9212. Fbits: uint8(7),
  9213. Fval: uint16(27),
  9214. },
  9215. 505: {
  9216. Fbits: uint8(8),
  9217. Fval: uint16(111),
  9218. },
  9219. 506: {
  9220. Fbits: uint8(8),
  9221. Fval: uint16(47),
  9222. },
  9223. 507: {
  9224. Fbits: uint8(9),
  9225. Fval: uint16(191),
  9226. },
  9227. 508: {
  9228. Fbits: uint8(8),
  9229. Fval: uint16(15),
  9230. },
  9231. 509: {
  9232. Fbits: uint8(8),
  9233. Fval: uint16(143),
  9234. },
  9235. 510: {
  9236. Fbits: uint8(8),
  9237. Fval: uint16(79),
  9238. },
  9239. 511: {
  9240. Fbits: uint8(9),
  9241. Fval: uint16(255),
  9242. },
  9243. }
  9244. var _distfix = [32]Tcode{
  9245. 0: {
  9246. Fop: uint8(16),
  9247. Fbits: uint8(5),
  9248. Fval: uint16(1),
  9249. },
  9250. 1: {
  9251. Fop: uint8(23),
  9252. Fbits: uint8(5),
  9253. Fval: uint16(257),
  9254. },
  9255. 2: {
  9256. Fop: uint8(19),
  9257. Fbits: uint8(5),
  9258. Fval: uint16(17),
  9259. },
  9260. 3: {
  9261. Fop: uint8(27),
  9262. Fbits: uint8(5),
  9263. Fval: uint16(4097),
  9264. },
  9265. 4: {
  9266. Fop: uint8(17),
  9267. Fbits: uint8(5),
  9268. Fval: uint16(5),
  9269. },
  9270. 5: {
  9271. Fop: uint8(25),
  9272. Fbits: uint8(5),
  9273. Fval: uint16(1025),
  9274. },
  9275. 6: {
  9276. Fop: uint8(21),
  9277. Fbits: uint8(5),
  9278. Fval: uint16(65),
  9279. },
  9280. 7: {
  9281. Fop: uint8(29),
  9282. Fbits: uint8(5),
  9283. Fval: uint16(16385),
  9284. },
  9285. 8: {
  9286. Fop: uint8(16),
  9287. Fbits: uint8(5),
  9288. Fval: uint16(3),
  9289. },
  9290. 9: {
  9291. Fop: uint8(24),
  9292. Fbits: uint8(5),
  9293. Fval: uint16(513),
  9294. },
  9295. 10: {
  9296. Fop: uint8(20),
  9297. Fbits: uint8(5),
  9298. Fval: uint16(33),
  9299. },
  9300. 11: {
  9301. Fop: uint8(28),
  9302. Fbits: uint8(5),
  9303. Fval: uint16(8193),
  9304. },
  9305. 12: {
  9306. Fop: uint8(18),
  9307. Fbits: uint8(5),
  9308. Fval: uint16(9),
  9309. },
  9310. 13: {
  9311. Fop: uint8(26),
  9312. Fbits: uint8(5),
  9313. Fval: uint16(2049),
  9314. },
  9315. 14: {
  9316. Fop: uint8(22),
  9317. Fbits: uint8(5),
  9318. Fval: uint16(129),
  9319. },
  9320. 15: {
  9321. Fop: uint8(64),
  9322. Fbits: uint8(5),
  9323. },
  9324. 16: {
  9325. Fop: uint8(16),
  9326. Fbits: uint8(5),
  9327. Fval: uint16(2),
  9328. },
  9329. 17: {
  9330. Fop: uint8(23),
  9331. Fbits: uint8(5),
  9332. Fval: uint16(385),
  9333. },
  9334. 18: {
  9335. Fop: uint8(19),
  9336. Fbits: uint8(5),
  9337. Fval: uint16(25),
  9338. },
  9339. 19: {
  9340. Fop: uint8(27),
  9341. Fbits: uint8(5),
  9342. Fval: uint16(6145),
  9343. },
  9344. 20: {
  9345. Fop: uint8(17),
  9346. Fbits: uint8(5),
  9347. Fval: uint16(7),
  9348. },
  9349. 21: {
  9350. Fop: uint8(25),
  9351. Fbits: uint8(5),
  9352. Fval: uint16(1537),
  9353. },
  9354. 22: {
  9355. Fop: uint8(21),
  9356. Fbits: uint8(5),
  9357. Fval: uint16(97),
  9358. },
  9359. 23: {
  9360. Fop: uint8(29),
  9361. Fbits: uint8(5),
  9362. Fval: uint16(24577),
  9363. },
  9364. 24: {
  9365. Fop: uint8(16),
  9366. Fbits: uint8(5),
  9367. Fval: uint16(4),
  9368. },
  9369. 25: {
  9370. Fop: uint8(24),
  9371. Fbits: uint8(5),
  9372. Fval: uint16(769),
  9373. },
  9374. 26: {
  9375. Fop: uint8(20),
  9376. Fbits: uint8(5),
  9377. Fval: uint16(49),
  9378. },
  9379. 27: {
  9380. Fop: uint8(28),
  9381. Fbits: uint8(5),
  9382. Fval: uint16(12289),
  9383. },
  9384. 28: {
  9385. Fop: uint8(18),
  9386. Fbits: uint8(5),
  9387. Fval: uint16(13),
  9388. },
  9389. 29: {
  9390. Fop: uint8(26),
  9391. Fbits: uint8(5),
  9392. Fval: uint16(3073),
  9393. },
  9394. 30: {
  9395. Fop: uint8(22),
  9396. Fbits: uint8(5),
  9397. Fval: uint16(193),
  9398. },
  9399. 31: {
  9400. Fop: uint8(64),
  9401. Fbits: uint8(5),
  9402. },
  9403. }
  9404. /* Macros for inflateBack(): */
  9405. /* Load returned state from inflate_fast() */
  9406. /* Set state from registers for inflate_fast() */
  9407. /* Clear the input bit accumulator */
  9408. /* Assure that some input is available. If input is requested, but denied,
  9409. then return a Z_BUF_ERROR from inflateBack(). */
  9410. /* Get a byte of input into the bit accumulator, or return from inflateBack()
  9411. with an error if there is no input available. */
  9412. /* Assure that there are at least n bits in the bit accumulator. If there is
  9413. not enough available input to do that, then return from inflateBack() with
  9414. an error. */
  9415. /* Return the low n bits of the bit accumulator (n < 16) */
  9416. /* Remove n bits from the bit accumulator */
  9417. /* Remove zero to seven bits as needed to go to a byte boundary */
  9418. /* Assure that some output space is available, by writing out the window
  9419. if it's full. If the write fails, return from inflateBack() with a
  9420. Z_BUF_ERROR. */
  9421. // C documentation
  9422. //
  9423. // /*
  9424. // strm provides the memory allocation functions and window buffer on input,
  9425. // and provides information on the unused input on return. For Z_DATA_ERROR
  9426. // returns, strm will also provide an error message.
  9427. //
  9428. // in() and out() are the call-back input and output functions. When
  9429. // inflateBack() needs more input, it calls in(). When inflateBack() has
  9430. // filled the window with output, or when it completes with data in the
  9431. // window, it calls out() to write out the data. The application must not
  9432. // change the provided input until in() is called again or inflateBack()
  9433. // returns. The application must not change the window/output buffer until
  9434. // inflateBack() returns.
  9435. //
  9436. // in() and out() are called with a descriptor parameter provided in the
  9437. // inflateBack() call. This parameter can be a structure that provides the
  9438. // information required to do the read or write, as well as accumulated
  9439. // information on the input and output such as totals and check values.
  9440. //
  9441. // in() should return zero on failure. out() should return non-zero on
  9442. // failure. If either in() or out() fails, than inflateBack() returns a
  9443. // Z_BUF_ERROR. strm->next_in can be checked for Z_NULL to see whether it
  9444. // was in() or out() that caused in the error. Otherwise, inflateBack()
  9445. // returns Z_STREAM_END on success, Z_DATA_ERROR for an deflate format
  9446. // error, or Z_MEM_ERROR if it could not allocate memory for the state.
  9447. // inflateBack() can also return Z_STREAM_ERROR if the input parameters
  9448. // are not correct, i.e. strm is Z_NULL or the state was not initialized.
  9449. // */
  9450. func XinflateBack(tls *libc.TLS, strm Tz_streamp, in Tin_func, in_desc uintptr, out Tout_func, out_desc uintptr) (r int32) {
  9451. bp := tls.Alloc(16)
  9452. defer tls.Free(16)
  9453. var bits, copy1, have, hold, left, len1, v1, v18, v20, v24, v29, v30, v43, v44 uint32
  9454. 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
  9455. var here, last Tcode
  9456. var ret int32
  9457. var _ /* next at bp+0 */ uintptr
  9458. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = 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 */
  9459. /* Check that the strm exists and that the state was initialized */
  9460. if strm == uintptr(m_Z_NULL) || (*Tz_stream)(unsafe.Pointer(strm)).Fstate == uintptr(m_Z_NULL) {
  9461. return -int32(2)
  9462. }
  9463. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  9464. /* Reset the state */
  9465. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = uintptr(m_Z_NULL)
  9466. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TYPE)
  9467. (*Tinflate_state)(unsafe.Pointer(state)).Flast = 0
  9468. (*Tinflate_state)(unsafe.Pointer(state)).Fwhave = uint32(0)
  9469. *(*uintptr)(unsafe.Pointer(bp)) = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in
  9470. if *(*uintptr)(unsafe.Pointer(bp)) != uintptr(m_Z_NULL) {
  9471. v1 = (*Tz_stream)(unsafe.Pointer(strm)).Favail_in
  9472. } else {
  9473. v1 = uint32(0)
  9474. }
  9475. have = v1
  9476. hold = uint32(0)
  9477. bits = uint32(0)
  9478. put = (*Tinflate_state)(unsafe.Pointer(state)).Fwindow
  9479. left = (*Tinflate_state)(unsafe.Pointer(state)).Fwsize
  9480. /* Inflate until end of block marked as last */
  9481. for {
  9482. switch (*Tinflate_state)(unsafe.Pointer(state)).Fmode {
  9483. case int32(_TYPE):
  9484. goto _3
  9485. case int32(_STORED):
  9486. goto _4
  9487. case int32(_TABLE):
  9488. goto _5
  9489. case int32(_LEN):
  9490. goto _6
  9491. case int32(_DONE):
  9492. goto _7
  9493. case int32(_BAD):
  9494. goto _8
  9495. default:
  9496. goto _9
  9497. }
  9498. goto _10
  9499. _3:
  9500. ;
  9501. /* determine and dispatch block type */
  9502. if (*Tinflate_state)(unsafe.Pointer(state)).Flast != 0 {
  9503. hold >>= bits & uint32(7)
  9504. bits -= bits & uint32(7)
  9505. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_DONE)
  9506. goto _10
  9507. }
  9508. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(3)) {
  9509. if have == uint32(0) {
  9510. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9511. if have == uint32(0) {
  9512. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9513. ret = -int32(5)
  9514. goto inf_leave
  9515. }
  9516. }
  9517. have--
  9518. v11 = *(*uintptr)(unsafe.Pointer(bp))
  9519. *(*uintptr)(unsafe.Pointer(bp))++
  9520. hold += uint32(*(*uint8)(unsafe.Pointer(v11))) << bits
  9521. bits += uint32(8)
  9522. }
  9523. (*Tinflate_state)(unsafe.Pointer(state)).Flast = libc.Int32FromUint32(hold & (libc.Uint32FromUint32(1)<<libc.Int32FromInt32(1) - libc.Uint32FromInt32(1)))
  9524. hold >>= libc.Uint32FromInt32(libc.Int32FromInt32(1))
  9525. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(1))
  9526. switch hold & (libc.Uint32FromUint32(1)<<libc.Int32FromInt32(2) - libc.Uint32FromInt32(1)) {
  9527. case uint32(0): /* stored block */
  9528. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_STORED)
  9529. case uint32(1): /* fixed block */
  9530. _fixedtables(tls, state)
  9531. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LEN) /* decode codes */
  9532. case uint32(2): /* dynamic block */
  9533. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TABLE)
  9534. case uint32(3):
  9535. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 6
  9536. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  9537. }
  9538. hold >>= libc.Uint32FromInt32(libc.Int32FromInt32(2))
  9539. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(2))
  9540. goto _10
  9541. _4:
  9542. ;
  9543. /* get and verify stored block length */
  9544. _14:
  9545. ;
  9546. hold >>= bits & uint32(7)
  9547. bits -= bits & uint32(7)
  9548. goto _13
  9549. _13:
  9550. ;
  9551. if 0 != 0 {
  9552. goto _14
  9553. }
  9554. goto _12
  9555. _12:
  9556. ; /* go to byte boundary */
  9557. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(32)) {
  9558. if have == uint32(0) {
  9559. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9560. if have == uint32(0) {
  9561. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9562. ret = -int32(5)
  9563. goto inf_leave
  9564. }
  9565. }
  9566. have--
  9567. v15 = *(*uintptr)(unsafe.Pointer(bp))
  9568. *(*uintptr)(unsafe.Pointer(bp))++
  9569. hold += uint32(*(*uint8)(unsafe.Pointer(v15))) << bits
  9570. bits += uint32(8)
  9571. }
  9572. if hold&uint32(0xffff) != hold>>int32(16)^uint32(0xffff) {
  9573. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 25
  9574. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  9575. goto _10
  9576. }
  9577. (*Tinflate_state)(unsafe.Pointer(state)).Flength = hold & uint32(0xffff)
  9578. hold = uint32(0)
  9579. bits = uint32(0)
  9580. /* copy stored block from input to output */
  9581. for (*Tinflate_state)(unsafe.Pointer(state)).Flength != uint32(0) {
  9582. copy1 = (*Tinflate_state)(unsafe.Pointer(state)).Flength
  9583. if have == uint32(0) {
  9584. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9585. if have == uint32(0) {
  9586. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9587. ret = -int32(5)
  9588. goto inf_leave
  9589. }
  9590. }
  9591. if left == uint32(0) {
  9592. put = (*Tinflate_state)(unsafe.Pointer(state)).Fwindow
  9593. left = (*Tinflate_state)(unsafe.Pointer(state)).Fwsize
  9594. (*Tinflate_state)(unsafe.Pointer(state)).Fwhave = left
  9595. if (*(*func(*libc.TLS, uintptr, uintptr, uint32) int32)(unsafe.Pointer(&struct{ uintptr }{out})))(tls, out_desc, put, left) != 0 {
  9596. ret = -int32(5)
  9597. goto inf_leave
  9598. }
  9599. }
  9600. if copy1 > have {
  9601. copy1 = have
  9602. }
  9603. if copy1 > left {
  9604. copy1 = left
  9605. }
  9606. libc.Xmemcpy(tls, put, *(*uintptr)(unsafe.Pointer(bp)), copy1)
  9607. have -= copy1
  9608. *(*uintptr)(unsafe.Pointer(bp)) += uintptr(copy1)
  9609. left -= copy1
  9610. put += uintptr(copy1)
  9611. *(*uint32)(unsafe.Pointer(state + 68)) -= copy1
  9612. }
  9613. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TYPE)
  9614. goto _10
  9615. _5:
  9616. ;
  9617. /* get dynamic table entries descriptor */
  9618. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(14)) {
  9619. if have == uint32(0) {
  9620. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9621. if have == uint32(0) {
  9622. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9623. ret = -int32(5)
  9624. goto inf_leave
  9625. }
  9626. }
  9627. have--
  9628. v16 = *(*uintptr)(unsafe.Pointer(bp))
  9629. *(*uintptr)(unsafe.Pointer(bp))++
  9630. hold += uint32(*(*uint8)(unsafe.Pointer(v16))) << bits
  9631. bits += uint32(8)
  9632. }
  9633. (*Tinflate_state)(unsafe.Pointer(state)).Fnlen = hold&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(5)-libc.Uint32FromInt32(1)) + uint32(257)
  9634. hold >>= libc.Uint32FromInt32(libc.Int32FromInt32(5))
  9635. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(5))
  9636. (*Tinflate_state)(unsafe.Pointer(state)).Fndist = hold&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(5)-libc.Uint32FromInt32(1)) + uint32(1)
  9637. hold >>= libc.Uint32FromInt32(libc.Int32FromInt32(5))
  9638. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(5))
  9639. (*Tinflate_state)(unsafe.Pointer(state)).Fncode = hold&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(4)-libc.Uint32FromInt32(1)) + uint32(4)
  9640. hold >>= libc.Uint32FromInt32(libc.Int32FromInt32(4))
  9641. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(4))
  9642. if (*Tinflate_state)(unsafe.Pointer(state)).Fnlen > uint32(286) || (*Tinflate_state)(unsafe.Pointer(state)).Fndist > uint32(30) {
  9643. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 54
  9644. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  9645. goto _10
  9646. }
  9647. /* get code length code lengths (not a typo) */
  9648. (*Tinflate_state)(unsafe.Pointer(state)).Fhave = uint32(0)
  9649. for (*Tinflate_state)(unsafe.Pointer(state)).Fhave < (*Tinflate_state)(unsafe.Pointer(state)).Fncode {
  9650. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(3)) {
  9651. if have == uint32(0) {
  9652. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9653. if have == uint32(0) {
  9654. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9655. ret = -int32(5)
  9656. goto inf_leave
  9657. }
  9658. }
  9659. have--
  9660. v17 = *(*uintptr)(unsafe.Pointer(bp))
  9661. *(*uintptr)(unsafe.Pointer(bp))++
  9662. hold += uint32(*(*uint8)(unsafe.Pointer(v17))) << bits
  9663. bits += uint32(8)
  9664. }
  9665. v19 = state + 108
  9666. v18 = *(*uint32)(unsafe.Pointer(v19))
  9667. *(*uint32)(unsafe.Pointer(v19))++
  9668. *(*uint16)(unsafe.Pointer(state + 116 + uintptr(_order[v18])*2)) = uint16(hold & (libc.Uint32FromUint32(1)<<libc.Int32FromInt32(3) - libc.Uint32FromInt32(1)))
  9669. hold >>= libc.Uint32FromInt32(libc.Int32FromInt32(3))
  9670. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(3))
  9671. }
  9672. for (*Tinflate_state)(unsafe.Pointer(state)).Fhave < uint32(19) {
  9673. v21 = state + 108
  9674. v20 = *(*uint32)(unsafe.Pointer(v21))
  9675. *(*uint32)(unsafe.Pointer(v21))++
  9676. *(*uint16)(unsafe.Pointer(state + 116 + uintptr(_order[v20])*2)) = uint16(0)
  9677. }
  9678. (*Tinflate_state)(unsafe.Pointer(state)).Fnext = state + 1332
  9679. (*Tinflate_state)(unsafe.Pointer(state)).Flencode = (*Tinflate_state)(unsafe.Pointer(state)).Fnext
  9680. (*Tinflate_state)(unsafe.Pointer(state)).Flenbits = uint32(7)
  9681. ret = Xinflate_table(tls, int32(_CODES), state+116, uint32(19), state+112, state+88, state+756)
  9682. if ret != 0 {
  9683. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 90
  9684. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  9685. goto _10
  9686. }
  9687. /* get length and distance code code lengths */
  9688. (*Tinflate_state)(unsafe.Pointer(state)).Fhave = uint32(0)
  9689. for (*Tinflate_state)(unsafe.Pointer(state)).Fhave < (*Tinflate_state)(unsafe.Pointer(state)).Fnlen+(*Tinflate_state)(unsafe.Pointer(state)).Fndist {
  9690. for {
  9691. here = *(*Tcode)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Flencode + uintptr(hold&(libc.Uint32FromUint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Flenbits-libc.Uint32FromInt32(1)))*4))
  9692. if uint32(here.Fbits) <= bits {
  9693. break
  9694. }
  9695. if have == uint32(0) {
  9696. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9697. if have == uint32(0) {
  9698. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9699. ret = -int32(5)
  9700. goto inf_leave
  9701. }
  9702. }
  9703. have--
  9704. v23 = *(*uintptr)(unsafe.Pointer(bp))
  9705. *(*uintptr)(unsafe.Pointer(bp))++
  9706. hold += uint32(*(*uint8)(unsafe.Pointer(v23))) << bits
  9707. bits += uint32(8)
  9708. goto _22
  9709. _22:
  9710. }
  9711. if libc.Int32FromUint16(here.Fval) < int32(16) {
  9712. hold >>= uint32(here.Fbits)
  9713. bits -= uint32(here.Fbits)
  9714. v25 = state + 108
  9715. v24 = *(*uint32)(unsafe.Pointer(v25))
  9716. *(*uint32)(unsafe.Pointer(v25))++
  9717. *(*uint16)(unsafe.Pointer(state + 116 + uintptr(v24)*2)) = here.Fval
  9718. } else {
  9719. if libc.Int32FromUint16(here.Fval) == int32(16) {
  9720. for bits < libc.Uint32FromInt32(libc.Int32FromUint8(here.Fbits)+libc.Int32FromInt32(2)) {
  9721. if have == uint32(0) {
  9722. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9723. if have == uint32(0) {
  9724. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9725. ret = -int32(5)
  9726. goto inf_leave
  9727. }
  9728. }
  9729. have--
  9730. v26 = *(*uintptr)(unsafe.Pointer(bp))
  9731. *(*uintptr)(unsafe.Pointer(bp))++
  9732. hold += uint32(*(*uint8)(unsafe.Pointer(v26))) << bits
  9733. bits += uint32(8)
  9734. }
  9735. hold >>= uint32(here.Fbits)
  9736. bits -= uint32(here.Fbits)
  9737. if (*Tinflate_state)(unsafe.Pointer(state)).Fhave == uint32(0) {
  9738. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 115
  9739. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  9740. break
  9741. }
  9742. len1 = uint32(*(*uint16)(unsafe.Pointer(state + 116 + uintptr((*Tinflate_state)(unsafe.Pointer(state)).Fhave-uint32(1))*2)))
  9743. copy1 = uint32(3) + hold&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(2)-libc.Uint32FromInt32(1))
  9744. hold >>= libc.Uint32FromInt32(libc.Int32FromInt32(2))
  9745. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(2))
  9746. } else {
  9747. if libc.Int32FromUint16(here.Fval) == int32(17) {
  9748. for bits < libc.Uint32FromInt32(libc.Int32FromUint8(here.Fbits)+libc.Int32FromInt32(3)) {
  9749. if have == uint32(0) {
  9750. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9751. if have == uint32(0) {
  9752. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9753. ret = -int32(5)
  9754. goto inf_leave
  9755. }
  9756. }
  9757. have--
  9758. v27 = *(*uintptr)(unsafe.Pointer(bp))
  9759. *(*uintptr)(unsafe.Pointer(bp))++
  9760. hold += uint32(*(*uint8)(unsafe.Pointer(v27))) << bits
  9761. bits += uint32(8)
  9762. }
  9763. hold >>= uint32(here.Fbits)
  9764. bits -= uint32(here.Fbits)
  9765. len1 = uint32(0)
  9766. copy1 = uint32(3) + hold&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(3)-libc.Uint32FromInt32(1))
  9767. hold >>= libc.Uint32FromInt32(libc.Int32FromInt32(3))
  9768. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(3))
  9769. } else {
  9770. for bits < libc.Uint32FromInt32(libc.Int32FromUint8(here.Fbits)+libc.Int32FromInt32(7)) {
  9771. if have == uint32(0) {
  9772. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9773. if have == uint32(0) {
  9774. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9775. ret = -int32(5)
  9776. goto inf_leave
  9777. }
  9778. }
  9779. have--
  9780. v28 = *(*uintptr)(unsafe.Pointer(bp))
  9781. *(*uintptr)(unsafe.Pointer(bp))++
  9782. hold += uint32(*(*uint8)(unsafe.Pointer(v28))) << bits
  9783. bits += uint32(8)
  9784. }
  9785. hold >>= uint32(here.Fbits)
  9786. bits -= uint32(here.Fbits)
  9787. len1 = uint32(0)
  9788. copy1 = uint32(11) + hold&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(7)-libc.Uint32FromInt32(1))
  9789. hold >>= libc.Uint32FromInt32(libc.Int32FromInt32(7))
  9790. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(7))
  9791. }
  9792. }
  9793. if (*Tinflate_state)(unsafe.Pointer(state)).Fhave+copy1 > (*Tinflate_state)(unsafe.Pointer(state)).Fnlen+(*Tinflate_state)(unsafe.Pointer(state)).Fndist {
  9794. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 115
  9795. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  9796. break
  9797. }
  9798. for {
  9799. v29 = copy1
  9800. copy1--
  9801. if !(v29 != 0) {
  9802. break
  9803. }
  9804. v31 = state + 108
  9805. v30 = *(*uint32)(unsafe.Pointer(v31))
  9806. *(*uint32)(unsafe.Pointer(v31))++
  9807. *(*uint16)(unsafe.Pointer(state + 116 + uintptr(v30)*2)) = uint16(len1)
  9808. }
  9809. }
  9810. }
  9811. /* handle error breaks in while */
  9812. if (*Tinflate_state)(unsafe.Pointer(state)).Fmode == int32(_BAD) {
  9813. goto _10
  9814. }
  9815. /* check for end-of-block code (better have one) */
  9816. if libc.Int32FromUint16(*(*uint16)(unsafe.Pointer(state + 116 + 256*2))) == 0 {
  9817. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 141
  9818. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  9819. goto _10
  9820. }
  9821. /* build code tables -- note: do not change the lenbits or distbits
  9822. values here (9 and 6) without reading the comments in inftrees.h
  9823. concerning the ENOUGH constants, which depend on those values */
  9824. (*Tinflate_state)(unsafe.Pointer(state)).Fnext = state + 1332
  9825. (*Tinflate_state)(unsafe.Pointer(state)).Flencode = (*Tinflate_state)(unsafe.Pointer(state)).Fnext
  9826. (*Tinflate_state)(unsafe.Pointer(state)).Flenbits = uint32(9)
  9827. ret = Xinflate_table(tls, int32(_LENS), state+116, (*Tinflate_state)(unsafe.Pointer(state)).Fnlen, state+112, state+88, state+756)
  9828. if ret != 0 {
  9829. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 178
  9830. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  9831. goto _10
  9832. }
  9833. (*Tinflate_state)(unsafe.Pointer(state)).Fdistcode = (*Tinflate_state)(unsafe.Pointer(state)).Fnext
  9834. (*Tinflate_state)(unsafe.Pointer(state)).Fdistbits = uint32(6)
  9835. ret = Xinflate_table(tls, int32(_DISTS), state+116+uintptr((*Tinflate_state)(unsafe.Pointer(state)).Fnlen)*2, (*Tinflate_state)(unsafe.Pointer(state)).Fndist, state+112, state+92, state+756)
  9836. if ret != 0 {
  9837. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 206
  9838. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  9839. goto _10
  9840. }
  9841. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LEN)
  9842. /* fallthrough */
  9843. _6:
  9844. ;
  9845. /* use inflate_fast() if we have enough input and output */
  9846. if have >= uint32(6) && left >= uint32(258) {
  9847. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out = put
  9848. (*Tz_stream)(unsafe.Pointer(strm)).Favail_out = left
  9849. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = *(*uintptr)(unsafe.Pointer(bp))
  9850. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = have
  9851. (*Tinflate_state)(unsafe.Pointer(state)).Fhold = hold
  9852. (*Tinflate_state)(unsafe.Pointer(state)).Fbits = bits
  9853. if (*Tinflate_state)(unsafe.Pointer(state)).Fwhave < (*Tinflate_state)(unsafe.Pointer(state)).Fwsize {
  9854. (*Tinflate_state)(unsafe.Pointer(state)).Fwhave = (*Tinflate_state)(unsafe.Pointer(state)).Fwsize - left
  9855. }
  9856. Xinflate_fast(tls, strm, (*Tinflate_state)(unsafe.Pointer(state)).Fwsize)
  9857. put = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out
  9858. left = (*Tz_stream)(unsafe.Pointer(strm)).Favail_out
  9859. *(*uintptr)(unsafe.Pointer(bp)) = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in
  9860. have = (*Tz_stream)(unsafe.Pointer(strm)).Favail_in
  9861. hold = (*Tinflate_state)(unsafe.Pointer(state)).Fhold
  9862. bits = (*Tinflate_state)(unsafe.Pointer(state)).Fbits
  9863. goto _10
  9864. }
  9865. /* get a literal, length, or end-of-block code */
  9866. for {
  9867. here = *(*Tcode)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Flencode + uintptr(hold&(libc.Uint32FromUint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Flenbits-libc.Uint32FromInt32(1)))*4))
  9868. if uint32(here.Fbits) <= bits {
  9869. break
  9870. }
  9871. if have == uint32(0) {
  9872. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9873. if have == uint32(0) {
  9874. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9875. ret = -int32(5)
  9876. goto inf_leave
  9877. }
  9878. }
  9879. have--
  9880. v33 = *(*uintptr)(unsafe.Pointer(bp))
  9881. *(*uintptr)(unsafe.Pointer(bp))++
  9882. hold += uint32(*(*uint8)(unsafe.Pointer(v33))) << bits
  9883. bits += uint32(8)
  9884. goto _32
  9885. _32:
  9886. }
  9887. if here.Fop != 0 && libc.Int32FromUint8(here.Fop)&int32(0xf0) == 0 {
  9888. last = here
  9889. for {
  9890. here = *(*Tcode)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Flencode + uintptr(uint32(last.Fval)+hold&(uint32(1)<<(libc.Int32FromUint8(last.Fbits)+libc.Int32FromUint8(last.Fop))-uint32(1))>>last.Fbits)*4))
  9891. if libc.Uint32FromInt32(libc.Int32FromUint8(last.Fbits)+libc.Int32FromUint8(here.Fbits)) <= bits {
  9892. break
  9893. }
  9894. if have == uint32(0) {
  9895. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9896. if have == uint32(0) {
  9897. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9898. ret = -int32(5)
  9899. goto inf_leave
  9900. }
  9901. }
  9902. have--
  9903. v35 = *(*uintptr)(unsafe.Pointer(bp))
  9904. *(*uintptr)(unsafe.Pointer(bp))++
  9905. hold += uint32(*(*uint8)(unsafe.Pointer(v35))) << bits
  9906. bits += uint32(8)
  9907. goto _34
  9908. _34:
  9909. }
  9910. hold >>= uint32(last.Fbits)
  9911. bits -= uint32(last.Fbits)
  9912. }
  9913. hold >>= uint32(here.Fbits)
  9914. bits -= uint32(here.Fbits)
  9915. (*Tinflate_state)(unsafe.Pointer(state)).Flength = uint32(here.Fval)
  9916. /* process literal */
  9917. if libc.Int32FromUint8(here.Fop) == 0 {
  9918. if left == uint32(0) {
  9919. put = (*Tinflate_state)(unsafe.Pointer(state)).Fwindow
  9920. left = (*Tinflate_state)(unsafe.Pointer(state)).Fwsize
  9921. (*Tinflate_state)(unsafe.Pointer(state)).Fwhave = left
  9922. if (*(*func(*libc.TLS, uintptr, uintptr, uint32) int32)(unsafe.Pointer(&struct{ uintptr }{out})))(tls, out_desc, put, left) != 0 {
  9923. ret = -int32(5)
  9924. goto inf_leave
  9925. }
  9926. }
  9927. v36 = put
  9928. put++
  9929. *(*uint8)(unsafe.Pointer(v36)) = uint8((*Tinflate_state)(unsafe.Pointer(state)).Flength)
  9930. left--
  9931. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LEN)
  9932. goto _10
  9933. }
  9934. /* process end of block */
  9935. if libc.Int32FromUint8(here.Fop)&int32(32) != 0 {
  9936. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TYPE)
  9937. goto _10
  9938. }
  9939. /* invalid code */
  9940. if libc.Int32FromUint8(here.Fop)&int32(64) != 0 {
  9941. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 228
  9942. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  9943. goto _10
  9944. }
  9945. /* length code -- get extra bits, if any */
  9946. (*Tinflate_state)(unsafe.Pointer(state)).Fextra = uint32(here.Fop) & uint32(15)
  9947. if (*Tinflate_state)(unsafe.Pointer(state)).Fextra != uint32(0) {
  9948. for bits < (*Tinflate_state)(unsafe.Pointer(state)).Fextra {
  9949. if have == uint32(0) {
  9950. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9951. if have == uint32(0) {
  9952. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9953. ret = -int32(5)
  9954. goto inf_leave
  9955. }
  9956. }
  9957. have--
  9958. v37 = *(*uintptr)(unsafe.Pointer(bp))
  9959. *(*uintptr)(unsafe.Pointer(bp))++
  9960. hold += uint32(*(*uint8)(unsafe.Pointer(v37))) << bits
  9961. bits += uint32(8)
  9962. }
  9963. *(*uint32)(unsafe.Pointer(state + 68)) += hold & (uint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Fextra - uint32(1))
  9964. hold >>= (*Tinflate_state)(unsafe.Pointer(state)).Fextra
  9965. bits -= (*Tinflate_state)(unsafe.Pointer(state)).Fextra
  9966. }
  9967. /* get distance code */
  9968. for {
  9969. here = *(*Tcode)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fdistcode + uintptr(hold&(libc.Uint32FromUint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Fdistbits-libc.Uint32FromInt32(1)))*4))
  9970. if uint32(here.Fbits) <= bits {
  9971. break
  9972. }
  9973. if have == uint32(0) {
  9974. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9975. if have == uint32(0) {
  9976. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  9977. ret = -int32(5)
  9978. goto inf_leave
  9979. }
  9980. }
  9981. have--
  9982. v39 = *(*uintptr)(unsafe.Pointer(bp))
  9983. *(*uintptr)(unsafe.Pointer(bp))++
  9984. hold += uint32(*(*uint8)(unsafe.Pointer(v39))) << bits
  9985. bits += uint32(8)
  9986. goto _38
  9987. _38:
  9988. }
  9989. if libc.Int32FromUint8(here.Fop)&int32(0xf0) == 0 {
  9990. last = here
  9991. for {
  9992. here = *(*Tcode)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fdistcode + uintptr(uint32(last.Fval)+hold&(uint32(1)<<(libc.Int32FromUint8(last.Fbits)+libc.Int32FromUint8(last.Fop))-uint32(1))>>last.Fbits)*4))
  9993. if libc.Uint32FromInt32(libc.Int32FromUint8(last.Fbits)+libc.Int32FromUint8(here.Fbits)) <= bits {
  9994. break
  9995. }
  9996. if have == uint32(0) {
  9997. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  9998. if have == uint32(0) {
  9999. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  10000. ret = -int32(5)
  10001. goto inf_leave
  10002. }
  10003. }
  10004. have--
  10005. v41 = *(*uintptr)(unsafe.Pointer(bp))
  10006. *(*uintptr)(unsafe.Pointer(bp))++
  10007. hold += uint32(*(*uint8)(unsafe.Pointer(v41))) << bits
  10008. bits += uint32(8)
  10009. goto _40
  10010. _40:
  10011. }
  10012. hold >>= uint32(last.Fbits)
  10013. bits -= uint32(last.Fbits)
  10014. }
  10015. hold >>= uint32(here.Fbits)
  10016. bits -= uint32(here.Fbits)
  10017. if libc.Int32FromUint8(here.Fop)&int32(64) != 0 {
  10018. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 256
  10019. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  10020. goto _10
  10021. }
  10022. (*Tinflate_state)(unsafe.Pointer(state)).Foffset = uint32(here.Fval)
  10023. /* get distance extra bits, if any */
  10024. (*Tinflate_state)(unsafe.Pointer(state)).Fextra = uint32(here.Fop) & uint32(15)
  10025. if (*Tinflate_state)(unsafe.Pointer(state)).Fextra != uint32(0) {
  10026. for bits < (*Tinflate_state)(unsafe.Pointer(state)).Fextra {
  10027. if have == uint32(0) {
  10028. have = (*(*func(*libc.TLS, uintptr, uintptr) uint32)(unsafe.Pointer(&struct{ uintptr }{in})))(tls, in_desc, bp)
  10029. if have == uint32(0) {
  10030. *(*uintptr)(unsafe.Pointer(bp)) = uintptr(m_Z_NULL)
  10031. ret = -int32(5)
  10032. goto inf_leave
  10033. }
  10034. }
  10035. have--
  10036. v42 = *(*uintptr)(unsafe.Pointer(bp))
  10037. *(*uintptr)(unsafe.Pointer(bp))++
  10038. hold += uint32(*(*uint8)(unsafe.Pointer(v42))) << bits
  10039. bits += uint32(8)
  10040. }
  10041. *(*uint32)(unsafe.Pointer(state + 72)) += hold & (uint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Fextra - uint32(1))
  10042. hold >>= (*Tinflate_state)(unsafe.Pointer(state)).Fextra
  10043. bits -= (*Tinflate_state)(unsafe.Pointer(state)).Fextra
  10044. }
  10045. if (*Tinflate_state)(unsafe.Pointer(state)).Fwhave < (*Tinflate_state)(unsafe.Pointer(state)).Fwsize {
  10046. v43 = left
  10047. } else {
  10048. v43 = uint32(0)
  10049. }
  10050. if (*Tinflate_state)(unsafe.Pointer(state)).Foffset > (*Tinflate_state)(unsafe.Pointer(state)).Fwsize-v43 {
  10051. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 278
  10052. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  10053. goto _10
  10054. }
  10055. /* copy match from window to output */
  10056. for cond := true; cond; cond = (*Tinflate_state)(unsafe.Pointer(state)).Flength != uint32(0) {
  10057. if left == uint32(0) {
  10058. put = (*Tinflate_state)(unsafe.Pointer(state)).Fwindow
  10059. left = (*Tinflate_state)(unsafe.Pointer(state)).Fwsize
  10060. (*Tinflate_state)(unsafe.Pointer(state)).Fwhave = left
  10061. if (*(*func(*libc.TLS, uintptr, uintptr, uint32) int32)(unsafe.Pointer(&struct{ uintptr }{out})))(tls, out_desc, put, left) != 0 {
  10062. ret = -int32(5)
  10063. goto inf_leave
  10064. }
  10065. }
  10066. copy1 = (*Tinflate_state)(unsafe.Pointer(state)).Fwsize - (*Tinflate_state)(unsafe.Pointer(state)).Foffset
  10067. if copy1 < left {
  10068. from = put + uintptr(copy1)
  10069. copy1 = left - copy1
  10070. } else {
  10071. from = put - uintptr((*Tinflate_state)(unsafe.Pointer(state)).Foffset)
  10072. copy1 = left
  10073. }
  10074. if copy1 > (*Tinflate_state)(unsafe.Pointer(state)).Flength {
  10075. copy1 = (*Tinflate_state)(unsafe.Pointer(state)).Flength
  10076. }
  10077. *(*uint32)(unsafe.Pointer(state + 68)) -= copy1
  10078. left -= copy1
  10079. for {
  10080. v46 = put
  10081. put++
  10082. v47 = from
  10083. from++
  10084. *(*uint8)(unsafe.Pointer(v46)) = *(*uint8)(unsafe.Pointer(v47))
  10085. goto _45
  10086. _45:
  10087. ;
  10088. copy1--
  10089. v44 = copy1
  10090. if !(v44 != 0) {
  10091. break
  10092. }
  10093. }
  10094. }
  10095. goto _10
  10096. _7:
  10097. ;
  10098. /* inflate stream terminated properly */
  10099. ret = int32(m_Z_STREAM_END)
  10100. goto inf_leave
  10101. _8:
  10102. ;
  10103. ret = -int32(3)
  10104. goto inf_leave
  10105. _9:
  10106. ;
  10107. /* can't happen, but makes compilers happy */
  10108. ret = -int32(2)
  10109. goto inf_leave
  10110. _10:
  10111. ;
  10112. goto _2
  10113. _2:
  10114. }
  10115. /* Write leftover output and return unused input */
  10116. goto inf_leave
  10117. inf_leave:
  10118. ;
  10119. if left < (*Tinflate_state)(unsafe.Pointer(state)).Fwsize {
  10120. 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) {
  10121. ret = -int32(5)
  10122. }
  10123. }
  10124. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = *(*uintptr)(unsafe.Pointer(bp))
  10125. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = have
  10126. return ret
  10127. }
  10128. var _order = [19]uint16{
  10129. 0: uint16(16),
  10130. 1: uint16(17),
  10131. 2: uint16(18),
  10132. 4: uint16(8),
  10133. 5: uint16(7),
  10134. 6: uint16(9),
  10135. 7: uint16(6),
  10136. 8: uint16(10),
  10137. 9: uint16(5),
  10138. 10: uint16(11),
  10139. 11: uint16(4),
  10140. 12: uint16(12),
  10141. 13: uint16(3),
  10142. 14: uint16(13),
  10143. 15: uint16(2),
  10144. 16: uint16(14),
  10145. 17: uint16(1),
  10146. 18: uint16(15),
  10147. }
  10148. func XinflateBackEnd(tls *libc.TLS, strm Tz_streamp) (r int32) {
  10149. 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) {
  10150. return -int32(2)
  10151. }
  10152. (*(*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)
  10153. (*Tz_stream)(unsafe.Pointer(strm)).Fstate = uintptr(m_Z_NULL)
  10154. return m_Z_OK
  10155. }
  10156. // C documentation
  10157. //
  10158. // /*
  10159. // Decode literal, length, and distance codes and write out the resulting
  10160. // literal and match bytes until either not enough input or output is
  10161. // available, an end-of-block is encountered, or a data error is encountered.
  10162. // When large enough input and output buffers are supplied to inflate(), for
  10163. // example, a 16K input buffer and a 64K output buffer, more than 95% of the
  10164. // inflate execution time is spent in this routine.
  10165. //
  10166. // Entry assumptions:
  10167. //
  10168. // state->mode == LEN
  10169. // strm->avail_in >= 6
  10170. // strm->avail_out >= 258
  10171. // start >= strm->avail_out
  10172. // state->bits < 8
  10173. //
  10174. // On return, state->mode is one of:
  10175. //
  10176. // LEN -- ran out of enough output space or enough available input
  10177. // TYPE -- reached end of block code, inflate() to interpret next block
  10178. // BAD -- error in block data
  10179. //
  10180. // Notes:
  10181. //
  10182. // - The maximum input bits used by a length/distance pair is 15 bits for the
  10183. // length code, 5 bits for the length extra, 15 bits for the distance code,
  10184. // and 13 bits for the distance extra. This totals 48 bits, or six bytes.
  10185. // Therefore if strm->avail_in >= 6, then there is enough input to avoid
  10186. // checking for available input while decoding.
  10187. //
  10188. // - The maximum bytes that a single length/distance pair can output is 258
  10189. // bytes, which is the maximum length that can be coded. inflate_fast()
  10190. // requires strm->avail_out >= 258 for each loop to avoid checking for
  10191. // output space.
  10192. // */
  10193. func Xinflate_fast(tls *libc.TLS, strm Tz_streamp, start uint32) {
  10194. 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
  10195. var bits, dist, dmask, hold, len1, lmask, op, whave, wnext, wsize, v13, v17, v21, v9 uint32
  10196. var v45, v46 int32
  10197. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = 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 */
  10198. /* copy state to local variables */
  10199. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  10200. in = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in
  10201. last = in + uintptr((*Tz_stream)(unsafe.Pointer(strm)).Favail_in-libc.Uint32FromInt32(5))
  10202. out = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out
  10203. beg = out - uintptr(start-(*Tz_stream)(unsafe.Pointer(strm)).Favail_out)
  10204. end = out + uintptr((*Tz_stream)(unsafe.Pointer(strm)).Favail_out-libc.Uint32FromInt32(257))
  10205. wsize = (*Tinflate_state)(unsafe.Pointer(state)).Fwsize
  10206. whave = (*Tinflate_state)(unsafe.Pointer(state)).Fwhave
  10207. wnext = (*Tinflate_state)(unsafe.Pointer(state)).Fwnext
  10208. window = (*Tinflate_state)(unsafe.Pointer(state)).Fwindow
  10209. hold = (*Tinflate_state)(unsafe.Pointer(state)).Fhold
  10210. bits = (*Tinflate_state)(unsafe.Pointer(state)).Fbits
  10211. lcode = (*Tinflate_state)(unsafe.Pointer(state)).Flencode
  10212. dcode = (*Tinflate_state)(unsafe.Pointer(state)).Fdistcode
  10213. lmask = uint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Flenbits - uint32(1)
  10214. dmask = uint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Fdistbits - uint32(1)
  10215. /* decode literals and length/distances until end-of-block or not enough
  10216. input data or output space */
  10217. for cond := true; cond; cond = in < last && out < end {
  10218. if bits < uint32(15) {
  10219. v1 = in
  10220. in++
  10221. hold += uint32(*(*uint8)(unsafe.Pointer(v1))) << bits
  10222. bits += uint32(8)
  10223. v2 = in
  10224. in++
  10225. hold += uint32(*(*uint8)(unsafe.Pointer(v2))) << bits
  10226. bits += uint32(8)
  10227. }
  10228. here = lcode + uintptr(hold&lmask)*4
  10229. goto dolen
  10230. dolen:
  10231. ;
  10232. op = uint32((*Tcode)(unsafe.Pointer(here)).Fbits)
  10233. hold >>= op
  10234. bits -= op
  10235. op = uint32((*Tcode)(unsafe.Pointer(here)).Fop)
  10236. if op == uint32(0) { /* literal */
  10237. v3 = out
  10238. out++
  10239. *(*uint8)(unsafe.Pointer(v3)) = uint8((*Tcode)(unsafe.Pointer(here)).Fval)
  10240. } else {
  10241. if op&uint32(16) != 0 { /* length base */
  10242. len1 = uint32((*Tcode)(unsafe.Pointer(here)).Fval)
  10243. op &= uint32(15) /* number of extra bits */
  10244. if op != 0 {
  10245. if bits < op {
  10246. v4 = in
  10247. in++
  10248. hold += uint32(*(*uint8)(unsafe.Pointer(v4))) << bits
  10249. bits += uint32(8)
  10250. }
  10251. len1 += hold & (uint32(1)<<op - uint32(1))
  10252. hold >>= op
  10253. bits -= op
  10254. }
  10255. if bits < uint32(15) {
  10256. v5 = in
  10257. in++
  10258. hold += uint32(*(*uint8)(unsafe.Pointer(v5))) << bits
  10259. bits += uint32(8)
  10260. v6 = in
  10261. in++
  10262. hold += uint32(*(*uint8)(unsafe.Pointer(v6))) << bits
  10263. bits += uint32(8)
  10264. }
  10265. here = dcode + uintptr(hold&dmask)*4
  10266. goto dodist
  10267. dodist:
  10268. ;
  10269. op = uint32((*Tcode)(unsafe.Pointer(here)).Fbits)
  10270. hold >>= op
  10271. bits -= op
  10272. op = uint32((*Tcode)(unsafe.Pointer(here)).Fop)
  10273. if op&uint32(16) != 0 { /* distance base */
  10274. dist = uint32((*Tcode)(unsafe.Pointer(here)).Fval)
  10275. op &= uint32(15) /* number of extra bits */
  10276. if bits < op {
  10277. v7 = in
  10278. in++
  10279. hold += uint32(*(*uint8)(unsafe.Pointer(v7))) << bits
  10280. bits += uint32(8)
  10281. if bits < op {
  10282. v8 = in
  10283. in++
  10284. hold += uint32(*(*uint8)(unsafe.Pointer(v8))) << bits
  10285. bits += uint32(8)
  10286. }
  10287. }
  10288. dist += hold & (uint32(1)<<op - uint32(1))
  10289. hold >>= op
  10290. bits -= op
  10291. op = libc.Uint32FromInt32(int32(out) - int32(beg)) /* max distance in output */
  10292. if dist > op { /* see if copy from window */
  10293. op = dist - op /* distance back in window */
  10294. if op > whave {
  10295. if (*Tinflate_state)(unsafe.Pointer(state)).Fsane != 0 {
  10296. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 278
  10297. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  10298. break
  10299. }
  10300. }
  10301. from = window
  10302. if wnext == uint32(0) { /* very common case */
  10303. from += uintptr(wsize - op)
  10304. if op < len1 { /* some from window */
  10305. len1 -= op
  10306. for {
  10307. v11 = out
  10308. out++
  10309. v12 = from
  10310. from++
  10311. *(*uint8)(unsafe.Pointer(v11)) = *(*uint8)(unsafe.Pointer(v12))
  10312. goto _10
  10313. _10:
  10314. ;
  10315. op--
  10316. v9 = op
  10317. if !(v9 != 0) {
  10318. break
  10319. }
  10320. }
  10321. from = out - uintptr(dist) /* rest from output */
  10322. }
  10323. } else {
  10324. if wnext < op { /* wrap around window */
  10325. from += uintptr(wsize + wnext - op)
  10326. op -= wnext
  10327. if op < len1 { /* some from end of window */
  10328. len1 -= op
  10329. for {
  10330. v15 = out
  10331. out++
  10332. v16 = from
  10333. from++
  10334. *(*uint8)(unsafe.Pointer(v15)) = *(*uint8)(unsafe.Pointer(v16))
  10335. goto _14
  10336. _14:
  10337. ;
  10338. op--
  10339. v13 = op
  10340. if !(v13 != 0) {
  10341. break
  10342. }
  10343. }
  10344. from = window
  10345. if wnext < len1 { /* some from start of window */
  10346. op = wnext
  10347. len1 -= op
  10348. for {
  10349. v19 = out
  10350. out++
  10351. v20 = from
  10352. from++
  10353. *(*uint8)(unsafe.Pointer(v19)) = *(*uint8)(unsafe.Pointer(v20))
  10354. goto _18
  10355. _18:
  10356. ;
  10357. op--
  10358. v17 = op
  10359. if !(v17 != 0) {
  10360. break
  10361. }
  10362. }
  10363. from = out - uintptr(dist) /* rest from output */
  10364. }
  10365. }
  10366. } else { /* contiguous in window */
  10367. from += uintptr(wnext - op)
  10368. if op < len1 { /* some from window */
  10369. len1 -= op
  10370. for {
  10371. v23 = out
  10372. out++
  10373. v24 = from
  10374. from++
  10375. *(*uint8)(unsafe.Pointer(v23)) = *(*uint8)(unsafe.Pointer(v24))
  10376. goto _22
  10377. _22:
  10378. ;
  10379. op--
  10380. v21 = op
  10381. if !(v21 != 0) {
  10382. break
  10383. }
  10384. }
  10385. from = out - uintptr(dist) /* rest from output */
  10386. }
  10387. }
  10388. }
  10389. for len1 > uint32(2) {
  10390. v25 = out
  10391. out++
  10392. v26 = from
  10393. from++
  10394. *(*uint8)(unsafe.Pointer(v25)) = *(*uint8)(unsafe.Pointer(v26))
  10395. v27 = out
  10396. out++
  10397. v28 = from
  10398. from++
  10399. *(*uint8)(unsafe.Pointer(v27)) = *(*uint8)(unsafe.Pointer(v28))
  10400. v29 = out
  10401. out++
  10402. v30 = from
  10403. from++
  10404. *(*uint8)(unsafe.Pointer(v29)) = *(*uint8)(unsafe.Pointer(v30))
  10405. len1 -= uint32(3)
  10406. }
  10407. if len1 != 0 {
  10408. v31 = out
  10409. out++
  10410. v32 = from
  10411. from++
  10412. *(*uint8)(unsafe.Pointer(v31)) = *(*uint8)(unsafe.Pointer(v32))
  10413. if len1 > uint32(1) {
  10414. v33 = out
  10415. out++
  10416. v34 = from
  10417. from++
  10418. *(*uint8)(unsafe.Pointer(v33)) = *(*uint8)(unsafe.Pointer(v34))
  10419. }
  10420. }
  10421. } else {
  10422. from = out - uintptr(dist) /* copy direct from output */
  10423. for cond := true; cond; cond = len1 > uint32(2) { /* minimum length is three */
  10424. v35 = out
  10425. out++
  10426. v36 = from
  10427. from++
  10428. *(*uint8)(unsafe.Pointer(v35)) = *(*uint8)(unsafe.Pointer(v36))
  10429. v37 = out
  10430. out++
  10431. v38 = from
  10432. from++
  10433. *(*uint8)(unsafe.Pointer(v37)) = *(*uint8)(unsafe.Pointer(v38))
  10434. v39 = out
  10435. out++
  10436. v40 = from
  10437. from++
  10438. *(*uint8)(unsafe.Pointer(v39)) = *(*uint8)(unsafe.Pointer(v40))
  10439. len1 -= uint32(3)
  10440. }
  10441. if len1 != 0 {
  10442. v41 = out
  10443. out++
  10444. v42 = from
  10445. from++
  10446. *(*uint8)(unsafe.Pointer(v41)) = *(*uint8)(unsafe.Pointer(v42))
  10447. if len1 > uint32(1) {
  10448. v43 = out
  10449. out++
  10450. v44 = from
  10451. from++
  10452. *(*uint8)(unsafe.Pointer(v43)) = *(*uint8)(unsafe.Pointer(v44))
  10453. }
  10454. }
  10455. }
  10456. } else {
  10457. if op&uint32(64) == uint32(0) { /* 2nd level distance code */
  10458. here = dcode + uintptr((*Tcode)(unsafe.Pointer(here)).Fval)*4 + uintptr(hold&uint32(libc.Uint32FromUint32(1)<<op-libc.Uint32FromInt32(1)))*4
  10459. goto dodist
  10460. } else {
  10461. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 256
  10462. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  10463. break
  10464. }
  10465. }
  10466. } else {
  10467. if op&uint32(64) == uint32(0) { /* 2nd level length code */
  10468. here = lcode + uintptr((*Tcode)(unsafe.Pointer(here)).Fval)*4 + uintptr(hold&uint32(libc.Uint32FromUint32(1)<<op-libc.Uint32FromInt32(1)))*4
  10469. goto dolen
  10470. } else {
  10471. if op&uint32(32) != 0 { /* end-of-block */
  10472. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TYPE)
  10473. break
  10474. } else {
  10475. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 228
  10476. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  10477. break
  10478. }
  10479. }
  10480. }
  10481. }
  10482. }
  10483. /* return unused bytes (on entry, bits < 8, so in won't go too far back) */
  10484. len1 = bits >> int32(3)
  10485. in -= uintptr(len1)
  10486. bits -= len1 << int32(3)
  10487. hold &= uint32(uint32(1)<<bits - uint32(1))
  10488. /* update state and return */
  10489. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = in
  10490. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out = out
  10491. if in < last {
  10492. v45 = int32(5) + (int32(last) - int32(in))
  10493. } else {
  10494. v45 = int32(5) - (int32(in) - int32(last))
  10495. }
  10496. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = libc.Uint32FromInt32(v45)
  10497. if out < end {
  10498. v46 = int32(257) + (int32(end) - int32(out))
  10499. } else {
  10500. v46 = int32(257) - (int32(out) - int32(end))
  10501. }
  10502. (*Tz_stream)(unsafe.Pointer(strm)).Favail_out = libc.Uint32FromInt32(v46)
  10503. (*Tinflate_state)(unsafe.Pointer(state)).Fhold = hold
  10504. (*Tinflate_state)(unsafe.Pointer(state)).Fbits = bits
  10505. return
  10506. }
  10507. func _inflateStateCheck(tls *libc.TLS, strm Tz_streamp) (r int32) {
  10508. var state uintptr
  10509. _ = state
  10510. if strm == uintptr(m_Z_NULL) || (*Tz_stream)(unsafe.Pointer(strm)).Fzalloc == libc.UintptrFromInt32(0) || (*Tz_stream)(unsafe.Pointer(strm)).Fzfree == libc.UintptrFromInt32(0) {
  10511. return int32(1)
  10512. }
  10513. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  10514. 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) {
  10515. return int32(1)
  10516. }
  10517. return 0
  10518. }
  10519. func XinflateResetKeep(tls *libc.TLS, strm Tz_streamp) (r int32) {
  10520. var state, v3, v4 uintptr
  10521. var v1 TuLong
  10522. var v2 uint32
  10523. _, _, _, _, _ = state, v1, v2, v3, v4
  10524. if _inflateStateCheck(tls, strm) != 0 {
  10525. return -int32(2)
  10526. }
  10527. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  10528. v2 = libc.Uint32FromInt32(0)
  10529. (*Tinflate_state)(unsafe.Pointer(state)).Ftotal = v2
  10530. v1 = v2
  10531. (*Tz_stream)(unsafe.Pointer(strm)).Ftotal_out = v1
  10532. (*Tz_stream)(unsafe.Pointer(strm)).Ftotal_in = v1
  10533. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = uintptr(m_Z_NULL)
  10534. if (*Tinflate_state)(unsafe.Pointer(state)).Fwrap != 0 { /* to support ill-conceived Java test suite */
  10535. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = libc.Uint32FromInt32((*Tinflate_state)(unsafe.Pointer(state)).Fwrap & int32(1))
  10536. }
  10537. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_HEAD)
  10538. (*Tinflate_state)(unsafe.Pointer(state)).Flast = 0
  10539. (*Tinflate_state)(unsafe.Pointer(state)).Fhavedict = 0
  10540. (*Tinflate_state)(unsafe.Pointer(state)).Fflags = -int32(1)
  10541. (*Tinflate_state)(unsafe.Pointer(state)).Fdmax = uint32(32768)
  10542. (*Tinflate_state)(unsafe.Pointer(state)).Fhead = uintptr(m_Z_NULL)
  10543. (*Tinflate_state)(unsafe.Pointer(state)).Fhold = uint32(0)
  10544. (*Tinflate_state)(unsafe.Pointer(state)).Fbits = uint32(0)
  10545. v4 = state + 1332
  10546. (*Tinflate_state)(unsafe.Pointer(state)).Fnext = v4
  10547. v3 = v4
  10548. (*Tinflate_state)(unsafe.Pointer(state)).Fdistcode = v3
  10549. (*Tinflate_state)(unsafe.Pointer(state)).Flencode = v3
  10550. (*Tinflate_state)(unsafe.Pointer(state)).Fsane = int32(1)
  10551. (*Tinflate_state)(unsafe.Pointer(state)).Fback = -int32(1)
  10552. return m_Z_OK
  10553. }
  10554. func XinflateReset(tls *libc.TLS, strm Tz_streamp) (r int32) {
  10555. var state uintptr
  10556. _ = state
  10557. if _inflateStateCheck(tls, strm) != 0 {
  10558. return -int32(2)
  10559. }
  10560. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  10561. (*Tinflate_state)(unsafe.Pointer(state)).Fwsize = uint32(0)
  10562. (*Tinflate_state)(unsafe.Pointer(state)).Fwhave = uint32(0)
  10563. (*Tinflate_state)(unsafe.Pointer(state)).Fwnext = uint32(0)
  10564. return XinflateResetKeep(tls, strm)
  10565. }
  10566. func XinflateReset2(tls *libc.TLS, strm Tz_streamp, windowBits int32) (r int32) {
  10567. var state uintptr
  10568. var wrap int32
  10569. _, _ = state, wrap
  10570. /* get the state */
  10571. if _inflateStateCheck(tls, strm) != 0 {
  10572. return -int32(2)
  10573. }
  10574. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  10575. /* extract wrap request from windowBits parameter */
  10576. if windowBits < 0 {
  10577. if windowBits < -int32(15) {
  10578. return -int32(2)
  10579. }
  10580. wrap = 0
  10581. windowBits = -windowBits
  10582. } else {
  10583. wrap = windowBits>>int32(4) + int32(5)
  10584. if windowBits < int32(48) {
  10585. windowBits &= int32(15)
  10586. }
  10587. }
  10588. /* set number of window bits, free window if different */
  10589. if windowBits != 0 && (windowBits < int32(8) || windowBits > int32(15)) {
  10590. return -int32(2)
  10591. }
  10592. if (*Tinflate_state)(unsafe.Pointer(state)).Fwindow != uintptr(m_Z_NULL) && (*Tinflate_state)(unsafe.Pointer(state)).Fwbits != libc.Uint32FromInt32(windowBits) {
  10593. (*(*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)
  10594. (*Tinflate_state)(unsafe.Pointer(state)).Fwindow = uintptr(m_Z_NULL)
  10595. }
  10596. /* update state and reset the rest of it */
  10597. (*Tinflate_state)(unsafe.Pointer(state)).Fwrap = wrap
  10598. (*Tinflate_state)(unsafe.Pointer(state)).Fwbits = libc.Uint32FromInt32(windowBits)
  10599. return XinflateReset(tls, strm)
  10600. }
  10601. func XinflateInit2_(tls *libc.TLS, strm Tz_streamp, windowBits int32, version uintptr, stream_size int32) (r int32) {
  10602. var ret int32
  10603. var state uintptr
  10604. _, _ = ret, state
  10605. if version == uintptr(m_Z_NULL) || int32(*(*int8)(unsafe.Pointer(version))) != int32(*(*int8)(unsafe.Pointer(__ccgo_ts))) || stream_size != libc.Int32FromUint32(libc.Uint32FromInt64(56)) {
  10606. return -int32(6)
  10607. }
  10608. if strm == uintptr(m_Z_NULL) {
  10609. return -int32(2)
  10610. }
  10611. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = uintptr(m_Z_NULL) /* in case we return an error */
  10612. if (*Tz_stream)(unsafe.Pointer(strm)).Fzalloc == libc.UintptrFromInt32(0) {
  10613. (*Tz_stream)(unsafe.Pointer(strm)).Fzalloc = __ccgo_fp(Xzcalloc)
  10614. (*Tz_stream)(unsafe.Pointer(strm)).Fopaque = libc.UintptrFromInt32(0)
  10615. }
  10616. if (*Tz_stream)(unsafe.Pointer(strm)).Fzfree == libc.UintptrFromInt32(0) {
  10617. (*Tz_stream)(unsafe.Pointer(strm)).Fzfree = __ccgo_fp(Xzcfree)
  10618. }
  10619. 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)), libc.Uint32FromInt64(7120))
  10620. if state == uintptr(m_Z_NULL) {
  10621. return -int32(4)
  10622. }
  10623. (*Tz_stream)(unsafe.Pointer(strm)).Fstate = state
  10624. (*Tinflate_state)(unsafe.Pointer(state)).Fstrm = strm
  10625. (*Tinflate_state)(unsafe.Pointer(state)).Fwindow = uintptr(m_Z_NULL)
  10626. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_HEAD) /* to pass state test in inflateReset2() */
  10627. ret = XinflateReset2(tls, strm, windowBits)
  10628. if ret != m_Z_OK {
  10629. (*(*func(*libc.TLS, Tvoidpf, Tvoidpf))(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(strm)).Fzfree})))(tls, (*Tz_stream)(unsafe.Pointer(strm)).Fopaque, state)
  10630. (*Tz_stream)(unsafe.Pointer(strm)).Fstate = uintptr(m_Z_NULL)
  10631. }
  10632. return ret
  10633. }
  10634. func XinflateInit_(tls *libc.TLS, strm Tz_streamp, version uintptr, stream_size int32) (r int32) {
  10635. return XinflateInit2_(tls, strm, int32(m_MAX_WBITS), version, stream_size)
  10636. }
  10637. func XinflatePrime(tls *libc.TLS, strm Tz_streamp, bits int32, value int32) (r int32) {
  10638. var state uintptr
  10639. _ = state
  10640. if _inflateStateCheck(tls, strm) != 0 {
  10641. return -int32(2)
  10642. }
  10643. if bits == 0 {
  10644. return m_Z_OK
  10645. }
  10646. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  10647. if bits < 0 {
  10648. (*Tinflate_state)(unsafe.Pointer(state)).Fhold = uint32(0)
  10649. (*Tinflate_state)(unsafe.Pointer(state)).Fbits = uint32(0)
  10650. return m_Z_OK
  10651. }
  10652. if bits > int32(16) || (*Tinflate_state)(unsafe.Pointer(state)).Fbits+libc.Uint32FromInt32(bits) > uint32(32) {
  10653. return -int32(2)
  10654. }
  10655. value = int32(value & (libc.Int32FromInt32(1)<<bits - libc.Int32FromInt32(1)))
  10656. *(*uint32)(unsafe.Pointer(state + 60)) += uint32(libc.Uint32FromInt32(value) << (*Tinflate_state)(unsafe.Pointer(state)).Fbits)
  10657. *(*uint32)(unsafe.Pointer(state + 64)) += libc.Uint32FromInt32(bits)
  10658. return m_Z_OK
  10659. }
  10660. // C documentation
  10661. //
  10662. // /*
  10663. // Return state with length and distance decoding tables and index sizes set to
  10664. // fixed code decoding. Normally this returns fixed tables from inffixed.h.
  10665. // If BUILDFIXED is defined, then instead this routine builds the tables the
  10666. // first time it's called, and returns those tables the first time and
  10667. // thereafter. This reduces the size of the code by about 2K bytes, in
  10668. // exchange for a little execution time. However, BUILDFIXED should not be
  10669. // used for threaded applications, since the rewriting of the tables and virgin
  10670. // may not be thread-safe.
  10671. // */
  10672. func _fixedtables1(tls *libc.TLS, state uintptr) {
  10673. (*Tinflate_state)(unsafe.Pointer(state)).Flencode = uintptr(unsafe.Pointer(&_lenfix1))
  10674. (*Tinflate_state)(unsafe.Pointer(state)).Flenbits = uint32(9)
  10675. (*Tinflate_state)(unsafe.Pointer(state)).Fdistcode = uintptr(unsafe.Pointer(&_distfix1))
  10676. (*Tinflate_state)(unsafe.Pointer(state)).Fdistbits = uint32(5)
  10677. }
  10678. var _lenfix1 = [512]Tcode{
  10679. 0: {
  10680. Fop: uint8(96),
  10681. Fbits: uint8(7),
  10682. },
  10683. 1: {
  10684. Fbits: uint8(8),
  10685. Fval: uint16(80),
  10686. },
  10687. 2: {
  10688. Fbits: uint8(8),
  10689. Fval: uint16(16),
  10690. },
  10691. 3: {
  10692. Fop: uint8(20),
  10693. Fbits: uint8(8),
  10694. Fval: uint16(115),
  10695. },
  10696. 4: {
  10697. Fop: uint8(18),
  10698. Fbits: uint8(7),
  10699. Fval: uint16(31),
  10700. },
  10701. 5: {
  10702. Fbits: uint8(8),
  10703. Fval: uint16(112),
  10704. },
  10705. 6: {
  10706. Fbits: uint8(8),
  10707. Fval: uint16(48),
  10708. },
  10709. 7: {
  10710. Fbits: uint8(9),
  10711. Fval: uint16(192),
  10712. },
  10713. 8: {
  10714. Fop: uint8(16),
  10715. Fbits: uint8(7),
  10716. Fval: uint16(10),
  10717. },
  10718. 9: {
  10719. Fbits: uint8(8),
  10720. Fval: uint16(96),
  10721. },
  10722. 10: {
  10723. Fbits: uint8(8),
  10724. Fval: uint16(32),
  10725. },
  10726. 11: {
  10727. Fbits: uint8(9),
  10728. Fval: uint16(160),
  10729. },
  10730. 12: {
  10731. Fbits: uint8(8),
  10732. },
  10733. 13: {
  10734. Fbits: uint8(8),
  10735. Fval: uint16(128),
  10736. },
  10737. 14: {
  10738. Fbits: uint8(8),
  10739. Fval: uint16(64),
  10740. },
  10741. 15: {
  10742. Fbits: uint8(9),
  10743. Fval: uint16(224),
  10744. },
  10745. 16: {
  10746. Fop: uint8(16),
  10747. Fbits: uint8(7),
  10748. Fval: uint16(6),
  10749. },
  10750. 17: {
  10751. Fbits: uint8(8),
  10752. Fval: uint16(88),
  10753. },
  10754. 18: {
  10755. Fbits: uint8(8),
  10756. Fval: uint16(24),
  10757. },
  10758. 19: {
  10759. Fbits: uint8(9),
  10760. Fval: uint16(144),
  10761. },
  10762. 20: {
  10763. Fop: uint8(19),
  10764. Fbits: uint8(7),
  10765. Fval: uint16(59),
  10766. },
  10767. 21: {
  10768. Fbits: uint8(8),
  10769. Fval: uint16(120),
  10770. },
  10771. 22: {
  10772. Fbits: uint8(8),
  10773. Fval: uint16(56),
  10774. },
  10775. 23: {
  10776. Fbits: uint8(9),
  10777. Fval: uint16(208),
  10778. },
  10779. 24: {
  10780. Fop: uint8(17),
  10781. Fbits: uint8(7),
  10782. Fval: uint16(17),
  10783. },
  10784. 25: {
  10785. Fbits: uint8(8),
  10786. Fval: uint16(104),
  10787. },
  10788. 26: {
  10789. Fbits: uint8(8),
  10790. Fval: uint16(40),
  10791. },
  10792. 27: {
  10793. Fbits: uint8(9),
  10794. Fval: uint16(176),
  10795. },
  10796. 28: {
  10797. Fbits: uint8(8),
  10798. Fval: uint16(8),
  10799. },
  10800. 29: {
  10801. Fbits: uint8(8),
  10802. Fval: uint16(136),
  10803. },
  10804. 30: {
  10805. Fbits: uint8(8),
  10806. Fval: uint16(72),
  10807. },
  10808. 31: {
  10809. Fbits: uint8(9),
  10810. Fval: uint16(240),
  10811. },
  10812. 32: {
  10813. Fop: uint8(16),
  10814. Fbits: uint8(7),
  10815. Fval: uint16(4),
  10816. },
  10817. 33: {
  10818. Fbits: uint8(8),
  10819. Fval: uint16(84),
  10820. },
  10821. 34: {
  10822. Fbits: uint8(8),
  10823. Fval: uint16(20),
  10824. },
  10825. 35: {
  10826. Fop: uint8(21),
  10827. Fbits: uint8(8),
  10828. Fval: uint16(227),
  10829. },
  10830. 36: {
  10831. Fop: uint8(19),
  10832. Fbits: uint8(7),
  10833. Fval: uint16(43),
  10834. },
  10835. 37: {
  10836. Fbits: uint8(8),
  10837. Fval: uint16(116),
  10838. },
  10839. 38: {
  10840. Fbits: uint8(8),
  10841. Fval: uint16(52),
  10842. },
  10843. 39: {
  10844. Fbits: uint8(9),
  10845. Fval: uint16(200),
  10846. },
  10847. 40: {
  10848. Fop: uint8(17),
  10849. Fbits: uint8(7),
  10850. Fval: uint16(13),
  10851. },
  10852. 41: {
  10853. Fbits: uint8(8),
  10854. Fval: uint16(100),
  10855. },
  10856. 42: {
  10857. Fbits: uint8(8),
  10858. Fval: uint16(36),
  10859. },
  10860. 43: {
  10861. Fbits: uint8(9),
  10862. Fval: uint16(168),
  10863. },
  10864. 44: {
  10865. Fbits: uint8(8),
  10866. Fval: uint16(4),
  10867. },
  10868. 45: {
  10869. Fbits: uint8(8),
  10870. Fval: uint16(132),
  10871. },
  10872. 46: {
  10873. Fbits: uint8(8),
  10874. Fval: uint16(68),
  10875. },
  10876. 47: {
  10877. Fbits: uint8(9),
  10878. Fval: uint16(232),
  10879. },
  10880. 48: {
  10881. Fop: uint8(16),
  10882. Fbits: uint8(7),
  10883. Fval: uint16(8),
  10884. },
  10885. 49: {
  10886. Fbits: uint8(8),
  10887. Fval: uint16(92),
  10888. },
  10889. 50: {
  10890. Fbits: uint8(8),
  10891. Fval: uint16(28),
  10892. },
  10893. 51: {
  10894. Fbits: uint8(9),
  10895. Fval: uint16(152),
  10896. },
  10897. 52: {
  10898. Fop: uint8(20),
  10899. Fbits: uint8(7),
  10900. Fval: uint16(83),
  10901. },
  10902. 53: {
  10903. Fbits: uint8(8),
  10904. Fval: uint16(124),
  10905. },
  10906. 54: {
  10907. Fbits: uint8(8),
  10908. Fval: uint16(60),
  10909. },
  10910. 55: {
  10911. Fbits: uint8(9),
  10912. Fval: uint16(216),
  10913. },
  10914. 56: {
  10915. Fop: uint8(18),
  10916. Fbits: uint8(7),
  10917. Fval: uint16(23),
  10918. },
  10919. 57: {
  10920. Fbits: uint8(8),
  10921. Fval: uint16(108),
  10922. },
  10923. 58: {
  10924. Fbits: uint8(8),
  10925. Fval: uint16(44),
  10926. },
  10927. 59: {
  10928. Fbits: uint8(9),
  10929. Fval: uint16(184),
  10930. },
  10931. 60: {
  10932. Fbits: uint8(8),
  10933. Fval: uint16(12),
  10934. },
  10935. 61: {
  10936. Fbits: uint8(8),
  10937. Fval: uint16(140),
  10938. },
  10939. 62: {
  10940. Fbits: uint8(8),
  10941. Fval: uint16(76),
  10942. },
  10943. 63: {
  10944. Fbits: uint8(9),
  10945. Fval: uint16(248),
  10946. },
  10947. 64: {
  10948. Fop: uint8(16),
  10949. Fbits: uint8(7),
  10950. Fval: uint16(3),
  10951. },
  10952. 65: {
  10953. Fbits: uint8(8),
  10954. Fval: uint16(82),
  10955. },
  10956. 66: {
  10957. Fbits: uint8(8),
  10958. Fval: uint16(18),
  10959. },
  10960. 67: {
  10961. Fop: uint8(21),
  10962. Fbits: uint8(8),
  10963. Fval: uint16(163),
  10964. },
  10965. 68: {
  10966. Fop: uint8(19),
  10967. Fbits: uint8(7),
  10968. Fval: uint16(35),
  10969. },
  10970. 69: {
  10971. Fbits: uint8(8),
  10972. Fval: uint16(114),
  10973. },
  10974. 70: {
  10975. Fbits: uint8(8),
  10976. Fval: uint16(50),
  10977. },
  10978. 71: {
  10979. Fbits: uint8(9),
  10980. Fval: uint16(196),
  10981. },
  10982. 72: {
  10983. Fop: uint8(17),
  10984. Fbits: uint8(7),
  10985. Fval: uint16(11),
  10986. },
  10987. 73: {
  10988. Fbits: uint8(8),
  10989. Fval: uint16(98),
  10990. },
  10991. 74: {
  10992. Fbits: uint8(8),
  10993. Fval: uint16(34),
  10994. },
  10995. 75: {
  10996. Fbits: uint8(9),
  10997. Fval: uint16(164),
  10998. },
  10999. 76: {
  11000. Fbits: uint8(8),
  11001. Fval: uint16(2),
  11002. },
  11003. 77: {
  11004. Fbits: uint8(8),
  11005. Fval: uint16(130),
  11006. },
  11007. 78: {
  11008. Fbits: uint8(8),
  11009. Fval: uint16(66),
  11010. },
  11011. 79: {
  11012. Fbits: uint8(9),
  11013. Fval: uint16(228),
  11014. },
  11015. 80: {
  11016. Fop: uint8(16),
  11017. Fbits: uint8(7),
  11018. Fval: uint16(7),
  11019. },
  11020. 81: {
  11021. Fbits: uint8(8),
  11022. Fval: uint16(90),
  11023. },
  11024. 82: {
  11025. Fbits: uint8(8),
  11026. Fval: uint16(26),
  11027. },
  11028. 83: {
  11029. Fbits: uint8(9),
  11030. Fval: uint16(148),
  11031. },
  11032. 84: {
  11033. Fop: uint8(20),
  11034. Fbits: uint8(7),
  11035. Fval: uint16(67),
  11036. },
  11037. 85: {
  11038. Fbits: uint8(8),
  11039. Fval: uint16(122),
  11040. },
  11041. 86: {
  11042. Fbits: uint8(8),
  11043. Fval: uint16(58),
  11044. },
  11045. 87: {
  11046. Fbits: uint8(9),
  11047. Fval: uint16(212),
  11048. },
  11049. 88: {
  11050. Fop: uint8(18),
  11051. Fbits: uint8(7),
  11052. Fval: uint16(19),
  11053. },
  11054. 89: {
  11055. Fbits: uint8(8),
  11056. Fval: uint16(106),
  11057. },
  11058. 90: {
  11059. Fbits: uint8(8),
  11060. Fval: uint16(42),
  11061. },
  11062. 91: {
  11063. Fbits: uint8(9),
  11064. Fval: uint16(180),
  11065. },
  11066. 92: {
  11067. Fbits: uint8(8),
  11068. Fval: uint16(10),
  11069. },
  11070. 93: {
  11071. Fbits: uint8(8),
  11072. Fval: uint16(138),
  11073. },
  11074. 94: {
  11075. Fbits: uint8(8),
  11076. Fval: uint16(74),
  11077. },
  11078. 95: {
  11079. Fbits: uint8(9),
  11080. Fval: uint16(244),
  11081. },
  11082. 96: {
  11083. Fop: uint8(16),
  11084. Fbits: uint8(7),
  11085. Fval: uint16(5),
  11086. },
  11087. 97: {
  11088. Fbits: uint8(8),
  11089. Fval: uint16(86),
  11090. },
  11091. 98: {
  11092. Fbits: uint8(8),
  11093. Fval: uint16(22),
  11094. },
  11095. 99: {
  11096. Fop: uint8(64),
  11097. Fbits: uint8(8),
  11098. },
  11099. 100: {
  11100. Fop: uint8(19),
  11101. Fbits: uint8(7),
  11102. Fval: uint16(51),
  11103. },
  11104. 101: {
  11105. Fbits: uint8(8),
  11106. Fval: uint16(118),
  11107. },
  11108. 102: {
  11109. Fbits: uint8(8),
  11110. Fval: uint16(54),
  11111. },
  11112. 103: {
  11113. Fbits: uint8(9),
  11114. Fval: uint16(204),
  11115. },
  11116. 104: {
  11117. Fop: uint8(17),
  11118. Fbits: uint8(7),
  11119. Fval: uint16(15),
  11120. },
  11121. 105: {
  11122. Fbits: uint8(8),
  11123. Fval: uint16(102),
  11124. },
  11125. 106: {
  11126. Fbits: uint8(8),
  11127. Fval: uint16(38),
  11128. },
  11129. 107: {
  11130. Fbits: uint8(9),
  11131. Fval: uint16(172),
  11132. },
  11133. 108: {
  11134. Fbits: uint8(8),
  11135. Fval: uint16(6),
  11136. },
  11137. 109: {
  11138. Fbits: uint8(8),
  11139. Fval: uint16(134),
  11140. },
  11141. 110: {
  11142. Fbits: uint8(8),
  11143. Fval: uint16(70),
  11144. },
  11145. 111: {
  11146. Fbits: uint8(9),
  11147. Fval: uint16(236),
  11148. },
  11149. 112: {
  11150. Fop: uint8(16),
  11151. Fbits: uint8(7),
  11152. Fval: uint16(9),
  11153. },
  11154. 113: {
  11155. Fbits: uint8(8),
  11156. Fval: uint16(94),
  11157. },
  11158. 114: {
  11159. Fbits: uint8(8),
  11160. Fval: uint16(30),
  11161. },
  11162. 115: {
  11163. Fbits: uint8(9),
  11164. Fval: uint16(156),
  11165. },
  11166. 116: {
  11167. Fop: uint8(20),
  11168. Fbits: uint8(7),
  11169. Fval: uint16(99),
  11170. },
  11171. 117: {
  11172. Fbits: uint8(8),
  11173. Fval: uint16(126),
  11174. },
  11175. 118: {
  11176. Fbits: uint8(8),
  11177. Fval: uint16(62),
  11178. },
  11179. 119: {
  11180. Fbits: uint8(9),
  11181. Fval: uint16(220),
  11182. },
  11183. 120: {
  11184. Fop: uint8(18),
  11185. Fbits: uint8(7),
  11186. Fval: uint16(27),
  11187. },
  11188. 121: {
  11189. Fbits: uint8(8),
  11190. Fval: uint16(110),
  11191. },
  11192. 122: {
  11193. Fbits: uint8(8),
  11194. Fval: uint16(46),
  11195. },
  11196. 123: {
  11197. Fbits: uint8(9),
  11198. Fval: uint16(188),
  11199. },
  11200. 124: {
  11201. Fbits: uint8(8),
  11202. Fval: uint16(14),
  11203. },
  11204. 125: {
  11205. Fbits: uint8(8),
  11206. Fval: uint16(142),
  11207. },
  11208. 126: {
  11209. Fbits: uint8(8),
  11210. Fval: uint16(78),
  11211. },
  11212. 127: {
  11213. Fbits: uint8(9),
  11214. Fval: uint16(252),
  11215. },
  11216. 128: {
  11217. Fop: uint8(96),
  11218. Fbits: uint8(7),
  11219. },
  11220. 129: {
  11221. Fbits: uint8(8),
  11222. Fval: uint16(81),
  11223. },
  11224. 130: {
  11225. Fbits: uint8(8),
  11226. Fval: uint16(17),
  11227. },
  11228. 131: {
  11229. Fop: uint8(21),
  11230. Fbits: uint8(8),
  11231. Fval: uint16(131),
  11232. },
  11233. 132: {
  11234. Fop: uint8(18),
  11235. Fbits: uint8(7),
  11236. Fval: uint16(31),
  11237. },
  11238. 133: {
  11239. Fbits: uint8(8),
  11240. Fval: uint16(113),
  11241. },
  11242. 134: {
  11243. Fbits: uint8(8),
  11244. Fval: uint16(49),
  11245. },
  11246. 135: {
  11247. Fbits: uint8(9),
  11248. Fval: uint16(194),
  11249. },
  11250. 136: {
  11251. Fop: uint8(16),
  11252. Fbits: uint8(7),
  11253. Fval: uint16(10),
  11254. },
  11255. 137: {
  11256. Fbits: uint8(8),
  11257. Fval: uint16(97),
  11258. },
  11259. 138: {
  11260. Fbits: uint8(8),
  11261. Fval: uint16(33),
  11262. },
  11263. 139: {
  11264. Fbits: uint8(9),
  11265. Fval: uint16(162),
  11266. },
  11267. 140: {
  11268. Fbits: uint8(8),
  11269. Fval: uint16(1),
  11270. },
  11271. 141: {
  11272. Fbits: uint8(8),
  11273. Fval: uint16(129),
  11274. },
  11275. 142: {
  11276. Fbits: uint8(8),
  11277. Fval: uint16(65),
  11278. },
  11279. 143: {
  11280. Fbits: uint8(9),
  11281. Fval: uint16(226),
  11282. },
  11283. 144: {
  11284. Fop: uint8(16),
  11285. Fbits: uint8(7),
  11286. Fval: uint16(6),
  11287. },
  11288. 145: {
  11289. Fbits: uint8(8),
  11290. Fval: uint16(89),
  11291. },
  11292. 146: {
  11293. Fbits: uint8(8),
  11294. Fval: uint16(25),
  11295. },
  11296. 147: {
  11297. Fbits: uint8(9),
  11298. Fval: uint16(146),
  11299. },
  11300. 148: {
  11301. Fop: uint8(19),
  11302. Fbits: uint8(7),
  11303. Fval: uint16(59),
  11304. },
  11305. 149: {
  11306. Fbits: uint8(8),
  11307. Fval: uint16(121),
  11308. },
  11309. 150: {
  11310. Fbits: uint8(8),
  11311. Fval: uint16(57),
  11312. },
  11313. 151: {
  11314. Fbits: uint8(9),
  11315. Fval: uint16(210),
  11316. },
  11317. 152: {
  11318. Fop: uint8(17),
  11319. Fbits: uint8(7),
  11320. Fval: uint16(17),
  11321. },
  11322. 153: {
  11323. Fbits: uint8(8),
  11324. Fval: uint16(105),
  11325. },
  11326. 154: {
  11327. Fbits: uint8(8),
  11328. Fval: uint16(41),
  11329. },
  11330. 155: {
  11331. Fbits: uint8(9),
  11332. Fval: uint16(178),
  11333. },
  11334. 156: {
  11335. Fbits: uint8(8),
  11336. Fval: uint16(9),
  11337. },
  11338. 157: {
  11339. Fbits: uint8(8),
  11340. Fval: uint16(137),
  11341. },
  11342. 158: {
  11343. Fbits: uint8(8),
  11344. Fval: uint16(73),
  11345. },
  11346. 159: {
  11347. Fbits: uint8(9),
  11348. Fval: uint16(242),
  11349. },
  11350. 160: {
  11351. Fop: uint8(16),
  11352. Fbits: uint8(7),
  11353. Fval: uint16(4),
  11354. },
  11355. 161: {
  11356. Fbits: uint8(8),
  11357. Fval: uint16(85),
  11358. },
  11359. 162: {
  11360. Fbits: uint8(8),
  11361. Fval: uint16(21),
  11362. },
  11363. 163: {
  11364. Fop: uint8(16),
  11365. Fbits: uint8(8),
  11366. Fval: uint16(258),
  11367. },
  11368. 164: {
  11369. Fop: uint8(19),
  11370. Fbits: uint8(7),
  11371. Fval: uint16(43),
  11372. },
  11373. 165: {
  11374. Fbits: uint8(8),
  11375. Fval: uint16(117),
  11376. },
  11377. 166: {
  11378. Fbits: uint8(8),
  11379. Fval: uint16(53),
  11380. },
  11381. 167: {
  11382. Fbits: uint8(9),
  11383. Fval: uint16(202),
  11384. },
  11385. 168: {
  11386. Fop: uint8(17),
  11387. Fbits: uint8(7),
  11388. Fval: uint16(13),
  11389. },
  11390. 169: {
  11391. Fbits: uint8(8),
  11392. Fval: uint16(101),
  11393. },
  11394. 170: {
  11395. Fbits: uint8(8),
  11396. Fval: uint16(37),
  11397. },
  11398. 171: {
  11399. Fbits: uint8(9),
  11400. Fval: uint16(170),
  11401. },
  11402. 172: {
  11403. Fbits: uint8(8),
  11404. Fval: uint16(5),
  11405. },
  11406. 173: {
  11407. Fbits: uint8(8),
  11408. Fval: uint16(133),
  11409. },
  11410. 174: {
  11411. Fbits: uint8(8),
  11412. Fval: uint16(69),
  11413. },
  11414. 175: {
  11415. Fbits: uint8(9),
  11416. Fval: uint16(234),
  11417. },
  11418. 176: {
  11419. Fop: uint8(16),
  11420. Fbits: uint8(7),
  11421. Fval: uint16(8),
  11422. },
  11423. 177: {
  11424. Fbits: uint8(8),
  11425. Fval: uint16(93),
  11426. },
  11427. 178: {
  11428. Fbits: uint8(8),
  11429. Fval: uint16(29),
  11430. },
  11431. 179: {
  11432. Fbits: uint8(9),
  11433. Fval: uint16(154),
  11434. },
  11435. 180: {
  11436. Fop: uint8(20),
  11437. Fbits: uint8(7),
  11438. Fval: uint16(83),
  11439. },
  11440. 181: {
  11441. Fbits: uint8(8),
  11442. Fval: uint16(125),
  11443. },
  11444. 182: {
  11445. Fbits: uint8(8),
  11446. Fval: uint16(61),
  11447. },
  11448. 183: {
  11449. Fbits: uint8(9),
  11450. Fval: uint16(218),
  11451. },
  11452. 184: {
  11453. Fop: uint8(18),
  11454. Fbits: uint8(7),
  11455. Fval: uint16(23),
  11456. },
  11457. 185: {
  11458. Fbits: uint8(8),
  11459. Fval: uint16(109),
  11460. },
  11461. 186: {
  11462. Fbits: uint8(8),
  11463. Fval: uint16(45),
  11464. },
  11465. 187: {
  11466. Fbits: uint8(9),
  11467. Fval: uint16(186),
  11468. },
  11469. 188: {
  11470. Fbits: uint8(8),
  11471. Fval: uint16(13),
  11472. },
  11473. 189: {
  11474. Fbits: uint8(8),
  11475. Fval: uint16(141),
  11476. },
  11477. 190: {
  11478. Fbits: uint8(8),
  11479. Fval: uint16(77),
  11480. },
  11481. 191: {
  11482. Fbits: uint8(9),
  11483. Fval: uint16(250),
  11484. },
  11485. 192: {
  11486. Fop: uint8(16),
  11487. Fbits: uint8(7),
  11488. Fval: uint16(3),
  11489. },
  11490. 193: {
  11491. Fbits: uint8(8),
  11492. Fval: uint16(83),
  11493. },
  11494. 194: {
  11495. Fbits: uint8(8),
  11496. Fval: uint16(19),
  11497. },
  11498. 195: {
  11499. Fop: uint8(21),
  11500. Fbits: uint8(8),
  11501. Fval: uint16(195),
  11502. },
  11503. 196: {
  11504. Fop: uint8(19),
  11505. Fbits: uint8(7),
  11506. Fval: uint16(35),
  11507. },
  11508. 197: {
  11509. Fbits: uint8(8),
  11510. Fval: uint16(115),
  11511. },
  11512. 198: {
  11513. Fbits: uint8(8),
  11514. Fval: uint16(51),
  11515. },
  11516. 199: {
  11517. Fbits: uint8(9),
  11518. Fval: uint16(198),
  11519. },
  11520. 200: {
  11521. Fop: uint8(17),
  11522. Fbits: uint8(7),
  11523. Fval: uint16(11),
  11524. },
  11525. 201: {
  11526. Fbits: uint8(8),
  11527. Fval: uint16(99),
  11528. },
  11529. 202: {
  11530. Fbits: uint8(8),
  11531. Fval: uint16(35),
  11532. },
  11533. 203: {
  11534. Fbits: uint8(9),
  11535. Fval: uint16(166),
  11536. },
  11537. 204: {
  11538. Fbits: uint8(8),
  11539. Fval: uint16(3),
  11540. },
  11541. 205: {
  11542. Fbits: uint8(8),
  11543. Fval: uint16(131),
  11544. },
  11545. 206: {
  11546. Fbits: uint8(8),
  11547. Fval: uint16(67),
  11548. },
  11549. 207: {
  11550. Fbits: uint8(9),
  11551. Fval: uint16(230),
  11552. },
  11553. 208: {
  11554. Fop: uint8(16),
  11555. Fbits: uint8(7),
  11556. Fval: uint16(7),
  11557. },
  11558. 209: {
  11559. Fbits: uint8(8),
  11560. Fval: uint16(91),
  11561. },
  11562. 210: {
  11563. Fbits: uint8(8),
  11564. Fval: uint16(27),
  11565. },
  11566. 211: {
  11567. Fbits: uint8(9),
  11568. Fval: uint16(150),
  11569. },
  11570. 212: {
  11571. Fop: uint8(20),
  11572. Fbits: uint8(7),
  11573. Fval: uint16(67),
  11574. },
  11575. 213: {
  11576. Fbits: uint8(8),
  11577. Fval: uint16(123),
  11578. },
  11579. 214: {
  11580. Fbits: uint8(8),
  11581. Fval: uint16(59),
  11582. },
  11583. 215: {
  11584. Fbits: uint8(9),
  11585. Fval: uint16(214),
  11586. },
  11587. 216: {
  11588. Fop: uint8(18),
  11589. Fbits: uint8(7),
  11590. Fval: uint16(19),
  11591. },
  11592. 217: {
  11593. Fbits: uint8(8),
  11594. Fval: uint16(107),
  11595. },
  11596. 218: {
  11597. Fbits: uint8(8),
  11598. Fval: uint16(43),
  11599. },
  11600. 219: {
  11601. Fbits: uint8(9),
  11602. Fval: uint16(182),
  11603. },
  11604. 220: {
  11605. Fbits: uint8(8),
  11606. Fval: uint16(11),
  11607. },
  11608. 221: {
  11609. Fbits: uint8(8),
  11610. Fval: uint16(139),
  11611. },
  11612. 222: {
  11613. Fbits: uint8(8),
  11614. Fval: uint16(75),
  11615. },
  11616. 223: {
  11617. Fbits: uint8(9),
  11618. Fval: uint16(246),
  11619. },
  11620. 224: {
  11621. Fop: uint8(16),
  11622. Fbits: uint8(7),
  11623. Fval: uint16(5),
  11624. },
  11625. 225: {
  11626. Fbits: uint8(8),
  11627. Fval: uint16(87),
  11628. },
  11629. 226: {
  11630. Fbits: uint8(8),
  11631. Fval: uint16(23),
  11632. },
  11633. 227: {
  11634. Fop: uint8(64),
  11635. Fbits: uint8(8),
  11636. },
  11637. 228: {
  11638. Fop: uint8(19),
  11639. Fbits: uint8(7),
  11640. Fval: uint16(51),
  11641. },
  11642. 229: {
  11643. Fbits: uint8(8),
  11644. Fval: uint16(119),
  11645. },
  11646. 230: {
  11647. Fbits: uint8(8),
  11648. Fval: uint16(55),
  11649. },
  11650. 231: {
  11651. Fbits: uint8(9),
  11652. Fval: uint16(206),
  11653. },
  11654. 232: {
  11655. Fop: uint8(17),
  11656. Fbits: uint8(7),
  11657. Fval: uint16(15),
  11658. },
  11659. 233: {
  11660. Fbits: uint8(8),
  11661. Fval: uint16(103),
  11662. },
  11663. 234: {
  11664. Fbits: uint8(8),
  11665. Fval: uint16(39),
  11666. },
  11667. 235: {
  11668. Fbits: uint8(9),
  11669. Fval: uint16(174),
  11670. },
  11671. 236: {
  11672. Fbits: uint8(8),
  11673. Fval: uint16(7),
  11674. },
  11675. 237: {
  11676. Fbits: uint8(8),
  11677. Fval: uint16(135),
  11678. },
  11679. 238: {
  11680. Fbits: uint8(8),
  11681. Fval: uint16(71),
  11682. },
  11683. 239: {
  11684. Fbits: uint8(9),
  11685. Fval: uint16(238),
  11686. },
  11687. 240: {
  11688. Fop: uint8(16),
  11689. Fbits: uint8(7),
  11690. Fval: uint16(9),
  11691. },
  11692. 241: {
  11693. Fbits: uint8(8),
  11694. Fval: uint16(95),
  11695. },
  11696. 242: {
  11697. Fbits: uint8(8),
  11698. Fval: uint16(31),
  11699. },
  11700. 243: {
  11701. Fbits: uint8(9),
  11702. Fval: uint16(158),
  11703. },
  11704. 244: {
  11705. Fop: uint8(20),
  11706. Fbits: uint8(7),
  11707. Fval: uint16(99),
  11708. },
  11709. 245: {
  11710. Fbits: uint8(8),
  11711. Fval: uint16(127),
  11712. },
  11713. 246: {
  11714. Fbits: uint8(8),
  11715. Fval: uint16(63),
  11716. },
  11717. 247: {
  11718. Fbits: uint8(9),
  11719. Fval: uint16(222),
  11720. },
  11721. 248: {
  11722. Fop: uint8(18),
  11723. Fbits: uint8(7),
  11724. Fval: uint16(27),
  11725. },
  11726. 249: {
  11727. Fbits: uint8(8),
  11728. Fval: uint16(111),
  11729. },
  11730. 250: {
  11731. Fbits: uint8(8),
  11732. Fval: uint16(47),
  11733. },
  11734. 251: {
  11735. Fbits: uint8(9),
  11736. Fval: uint16(190),
  11737. },
  11738. 252: {
  11739. Fbits: uint8(8),
  11740. Fval: uint16(15),
  11741. },
  11742. 253: {
  11743. Fbits: uint8(8),
  11744. Fval: uint16(143),
  11745. },
  11746. 254: {
  11747. Fbits: uint8(8),
  11748. Fval: uint16(79),
  11749. },
  11750. 255: {
  11751. Fbits: uint8(9),
  11752. Fval: uint16(254),
  11753. },
  11754. 256: {
  11755. Fop: uint8(96),
  11756. Fbits: uint8(7),
  11757. },
  11758. 257: {
  11759. Fbits: uint8(8),
  11760. Fval: uint16(80),
  11761. },
  11762. 258: {
  11763. Fbits: uint8(8),
  11764. Fval: uint16(16),
  11765. },
  11766. 259: {
  11767. Fop: uint8(20),
  11768. Fbits: uint8(8),
  11769. Fval: uint16(115),
  11770. },
  11771. 260: {
  11772. Fop: uint8(18),
  11773. Fbits: uint8(7),
  11774. Fval: uint16(31),
  11775. },
  11776. 261: {
  11777. Fbits: uint8(8),
  11778. Fval: uint16(112),
  11779. },
  11780. 262: {
  11781. Fbits: uint8(8),
  11782. Fval: uint16(48),
  11783. },
  11784. 263: {
  11785. Fbits: uint8(9),
  11786. Fval: uint16(193),
  11787. },
  11788. 264: {
  11789. Fop: uint8(16),
  11790. Fbits: uint8(7),
  11791. Fval: uint16(10),
  11792. },
  11793. 265: {
  11794. Fbits: uint8(8),
  11795. Fval: uint16(96),
  11796. },
  11797. 266: {
  11798. Fbits: uint8(8),
  11799. Fval: uint16(32),
  11800. },
  11801. 267: {
  11802. Fbits: uint8(9),
  11803. Fval: uint16(161),
  11804. },
  11805. 268: {
  11806. Fbits: uint8(8),
  11807. },
  11808. 269: {
  11809. Fbits: uint8(8),
  11810. Fval: uint16(128),
  11811. },
  11812. 270: {
  11813. Fbits: uint8(8),
  11814. Fval: uint16(64),
  11815. },
  11816. 271: {
  11817. Fbits: uint8(9),
  11818. Fval: uint16(225),
  11819. },
  11820. 272: {
  11821. Fop: uint8(16),
  11822. Fbits: uint8(7),
  11823. Fval: uint16(6),
  11824. },
  11825. 273: {
  11826. Fbits: uint8(8),
  11827. Fval: uint16(88),
  11828. },
  11829. 274: {
  11830. Fbits: uint8(8),
  11831. Fval: uint16(24),
  11832. },
  11833. 275: {
  11834. Fbits: uint8(9),
  11835. Fval: uint16(145),
  11836. },
  11837. 276: {
  11838. Fop: uint8(19),
  11839. Fbits: uint8(7),
  11840. Fval: uint16(59),
  11841. },
  11842. 277: {
  11843. Fbits: uint8(8),
  11844. Fval: uint16(120),
  11845. },
  11846. 278: {
  11847. Fbits: uint8(8),
  11848. Fval: uint16(56),
  11849. },
  11850. 279: {
  11851. Fbits: uint8(9),
  11852. Fval: uint16(209),
  11853. },
  11854. 280: {
  11855. Fop: uint8(17),
  11856. Fbits: uint8(7),
  11857. Fval: uint16(17),
  11858. },
  11859. 281: {
  11860. Fbits: uint8(8),
  11861. Fval: uint16(104),
  11862. },
  11863. 282: {
  11864. Fbits: uint8(8),
  11865. Fval: uint16(40),
  11866. },
  11867. 283: {
  11868. Fbits: uint8(9),
  11869. Fval: uint16(177),
  11870. },
  11871. 284: {
  11872. Fbits: uint8(8),
  11873. Fval: uint16(8),
  11874. },
  11875. 285: {
  11876. Fbits: uint8(8),
  11877. Fval: uint16(136),
  11878. },
  11879. 286: {
  11880. Fbits: uint8(8),
  11881. Fval: uint16(72),
  11882. },
  11883. 287: {
  11884. Fbits: uint8(9),
  11885. Fval: uint16(241),
  11886. },
  11887. 288: {
  11888. Fop: uint8(16),
  11889. Fbits: uint8(7),
  11890. Fval: uint16(4),
  11891. },
  11892. 289: {
  11893. Fbits: uint8(8),
  11894. Fval: uint16(84),
  11895. },
  11896. 290: {
  11897. Fbits: uint8(8),
  11898. Fval: uint16(20),
  11899. },
  11900. 291: {
  11901. Fop: uint8(21),
  11902. Fbits: uint8(8),
  11903. Fval: uint16(227),
  11904. },
  11905. 292: {
  11906. Fop: uint8(19),
  11907. Fbits: uint8(7),
  11908. Fval: uint16(43),
  11909. },
  11910. 293: {
  11911. Fbits: uint8(8),
  11912. Fval: uint16(116),
  11913. },
  11914. 294: {
  11915. Fbits: uint8(8),
  11916. Fval: uint16(52),
  11917. },
  11918. 295: {
  11919. Fbits: uint8(9),
  11920. Fval: uint16(201),
  11921. },
  11922. 296: {
  11923. Fop: uint8(17),
  11924. Fbits: uint8(7),
  11925. Fval: uint16(13),
  11926. },
  11927. 297: {
  11928. Fbits: uint8(8),
  11929. Fval: uint16(100),
  11930. },
  11931. 298: {
  11932. Fbits: uint8(8),
  11933. Fval: uint16(36),
  11934. },
  11935. 299: {
  11936. Fbits: uint8(9),
  11937. Fval: uint16(169),
  11938. },
  11939. 300: {
  11940. Fbits: uint8(8),
  11941. Fval: uint16(4),
  11942. },
  11943. 301: {
  11944. Fbits: uint8(8),
  11945. Fval: uint16(132),
  11946. },
  11947. 302: {
  11948. Fbits: uint8(8),
  11949. Fval: uint16(68),
  11950. },
  11951. 303: {
  11952. Fbits: uint8(9),
  11953. Fval: uint16(233),
  11954. },
  11955. 304: {
  11956. Fop: uint8(16),
  11957. Fbits: uint8(7),
  11958. Fval: uint16(8),
  11959. },
  11960. 305: {
  11961. Fbits: uint8(8),
  11962. Fval: uint16(92),
  11963. },
  11964. 306: {
  11965. Fbits: uint8(8),
  11966. Fval: uint16(28),
  11967. },
  11968. 307: {
  11969. Fbits: uint8(9),
  11970. Fval: uint16(153),
  11971. },
  11972. 308: {
  11973. Fop: uint8(20),
  11974. Fbits: uint8(7),
  11975. Fval: uint16(83),
  11976. },
  11977. 309: {
  11978. Fbits: uint8(8),
  11979. Fval: uint16(124),
  11980. },
  11981. 310: {
  11982. Fbits: uint8(8),
  11983. Fval: uint16(60),
  11984. },
  11985. 311: {
  11986. Fbits: uint8(9),
  11987. Fval: uint16(217),
  11988. },
  11989. 312: {
  11990. Fop: uint8(18),
  11991. Fbits: uint8(7),
  11992. Fval: uint16(23),
  11993. },
  11994. 313: {
  11995. Fbits: uint8(8),
  11996. Fval: uint16(108),
  11997. },
  11998. 314: {
  11999. Fbits: uint8(8),
  12000. Fval: uint16(44),
  12001. },
  12002. 315: {
  12003. Fbits: uint8(9),
  12004. Fval: uint16(185),
  12005. },
  12006. 316: {
  12007. Fbits: uint8(8),
  12008. Fval: uint16(12),
  12009. },
  12010. 317: {
  12011. Fbits: uint8(8),
  12012. Fval: uint16(140),
  12013. },
  12014. 318: {
  12015. Fbits: uint8(8),
  12016. Fval: uint16(76),
  12017. },
  12018. 319: {
  12019. Fbits: uint8(9),
  12020. Fval: uint16(249),
  12021. },
  12022. 320: {
  12023. Fop: uint8(16),
  12024. Fbits: uint8(7),
  12025. Fval: uint16(3),
  12026. },
  12027. 321: {
  12028. Fbits: uint8(8),
  12029. Fval: uint16(82),
  12030. },
  12031. 322: {
  12032. Fbits: uint8(8),
  12033. Fval: uint16(18),
  12034. },
  12035. 323: {
  12036. Fop: uint8(21),
  12037. Fbits: uint8(8),
  12038. Fval: uint16(163),
  12039. },
  12040. 324: {
  12041. Fop: uint8(19),
  12042. Fbits: uint8(7),
  12043. Fval: uint16(35),
  12044. },
  12045. 325: {
  12046. Fbits: uint8(8),
  12047. Fval: uint16(114),
  12048. },
  12049. 326: {
  12050. Fbits: uint8(8),
  12051. Fval: uint16(50),
  12052. },
  12053. 327: {
  12054. Fbits: uint8(9),
  12055. Fval: uint16(197),
  12056. },
  12057. 328: {
  12058. Fop: uint8(17),
  12059. Fbits: uint8(7),
  12060. Fval: uint16(11),
  12061. },
  12062. 329: {
  12063. Fbits: uint8(8),
  12064. Fval: uint16(98),
  12065. },
  12066. 330: {
  12067. Fbits: uint8(8),
  12068. Fval: uint16(34),
  12069. },
  12070. 331: {
  12071. Fbits: uint8(9),
  12072. Fval: uint16(165),
  12073. },
  12074. 332: {
  12075. Fbits: uint8(8),
  12076. Fval: uint16(2),
  12077. },
  12078. 333: {
  12079. Fbits: uint8(8),
  12080. Fval: uint16(130),
  12081. },
  12082. 334: {
  12083. Fbits: uint8(8),
  12084. Fval: uint16(66),
  12085. },
  12086. 335: {
  12087. Fbits: uint8(9),
  12088. Fval: uint16(229),
  12089. },
  12090. 336: {
  12091. Fop: uint8(16),
  12092. Fbits: uint8(7),
  12093. Fval: uint16(7),
  12094. },
  12095. 337: {
  12096. Fbits: uint8(8),
  12097. Fval: uint16(90),
  12098. },
  12099. 338: {
  12100. Fbits: uint8(8),
  12101. Fval: uint16(26),
  12102. },
  12103. 339: {
  12104. Fbits: uint8(9),
  12105. Fval: uint16(149),
  12106. },
  12107. 340: {
  12108. Fop: uint8(20),
  12109. Fbits: uint8(7),
  12110. Fval: uint16(67),
  12111. },
  12112. 341: {
  12113. Fbits: uint8(8),
  12114. Fval: uint16(122),
  12115. },
  12116. 342: {
  12117. Fbits: uint8(8),
  12118. Fval: uint16(58),
  12119. },
  12120. 343: {
  12121. Fbits: uint8(9),
  12122. Fval: uint16(213),
  12123. },
  12124. 344: {
  12125. Fop: uint8(18),
  12126. Fbits: uint8(7),
  12127. Fval: uint16(19),
  12128. },
  12129. 345: {
  12130. Fbits: uint8(8),
  12131. Fval: uint16(106),
  12132. },
  12133. 346: {
  12134. Fbits: uint8(8),
  12135. Fval: uint16(42),
  12136. },
  12137. 347: {
  12138. Fbits: uint8(9),
  12139. Fval: uint16(181),
  12140. },
  12141. 348: {
  12142. Fbits: uint8(8),
  12143. Fval: uint16(10),
  12144. },
  12145. 349: {
  12146. Fbits: uint8(8),
  12147. Fval: uint16(138),
  12148. },
  12149. 350: {
  12150. Fbits: uint8(8),
  12151. Fval: uint16(74),
  12152. },
  12153. 351: {
  12154. Fbits: uint8(9),
  12155. Fval: uint16(245),
  12156. },
  12157. 352: {
  12158. Fop: uint8(16),
  12159. Fbits: uint8(7),
  12160. Fval: uint16(5),
  12161. },
  12162. 353: {
  12163. Fbits: uint8(8),
  12164. Fval: uint16(86),
  12165. },
  12166. 354: {
  12167. Fbits: uint8(8),
  12168. Fval: uint16(22),
  12169. },
  12170. 355: {
  12171. Fop: uint8(64),
  12172. Fbits: uint8(8),
  12173. },
  12174. 356: {
  12175. Fop: uint8(19),
  12176. Fbits: uint8(7),
  12177. Fval: uint16(51),
  12178. },
  12179. 357: {
  12180. Fbits: uint8(8),
  12181. Fval: uint16(118),
  12182. },
  12183. 358: {
  12184. Fbits: uint8(8),
  12185. Fval: uint16(54),
  12186. },
  12187. 359: {
  12188. Fbits: uint8(9),
  12189. Fval: uint16(205),
  12190. },
  12191. 360: {
  12192. Fop: uint8(17),
  12193. Fbits: uint8(7),
  12194. Fval: uint16(15),
  12195. },
  12196. 361: {
  12197. Fbits: uint8(8),
  12198. Fval: uint16(102),
  12199. },
  12200. 362: {
  12201. Fbits: uint8(8),
  12202. Fval: uint16(38),
  12203. },
  12204. 363: {
  12205. Fbits: uint8(9),
  12206. Fval: uint16(173),
  12207. },
  12208. 364: {
  12209. Fbits: uint8(8),
  12210. Fval: uint16(6),
  12211. },
  12212. 365: {
  12213. Fbits: uint8(8),
  12214. Fval: uint16(134),
  12215. },
  12216. 366: {
  12217. Fbits: uint8(8),
  12218. Fval: uint16(70),
  12219. },
  12220. 367: {
  12221. Fbits: uint8(9),
  12222. Fval: uint16(237),
  12223. },
  12224. 368: {
  12225. Fop: uint8(16),
  12226. Fbits: uint8(7),
  12227. Fval: uint16(9),
  12228. },
  12229. 369: {
  12230. Fbits: uint8(8),
  12231. Fval: uint16(94),
  12232. },
  12233. 370: {
  12234. Fbits: uint8(8),
  12235. Fval: uint16(30),
  12236. },
  12237. 371: {
  12238. Fbits: uint8(9),
  12239. Fval: uint16(157),
  12240. },
  12241. 372: {
  12242. Fop: uint8(20),
  12243. Fbits: uint8(7),
  12244. Fval: uint16(99),
  12245. },
  12246. 373: {
  12247. Fbits: uint8(8),
  12248. Fval: uint16(126),
  12249. },
  12250. 374: {
  12251. Fbits: uint8(8),
  12252. Fval: uint16(62),
  12253. },
  12254. 375: {
  12255. Fbits: uint8(9),
  12256. Fval: uint16(221),
  12257. },
  12258. 376: {
  12259. Fop: uint8(18),
  12260. Fbits: uint8(7),
  12261. Fval: uint16(27),
  12262. },
  12263. 377: {
  12264. Fbits: uint8(8),
  12265. Fval: uint16(110),
  12266. },
  12267. 378: {
  12268. Fbits: uint8(8),
  12269. Fval: uint16(46),
  12270. },
  12271. 379: {
  12272. Fbits: uint8(9),
  12273. Fval: uint16(189),
  12274. },
  12275. 380: {
  12276. Fbits: uint8(8),
  12277. Fval: uint16(14),
  12278. },
  12279. 381: {
  12280. Fbits: uint8(8),
  12281. Fval: uint16(142),
  12282. },
  12283. 382: {
  12284. Fbits: uint8(8),
  12285. Fval: uint16(78),
  12286. },
  12287. 383: {
  12288. Fbits: uint8(9),
  12289. Fval: uint16(253),
  12290. },
  12291. 384: {
  12292. Fop: uint8(96),
  12293. Fbits: uint8(7),
  12294. },
  12295. 385: {
  12296. Fbits: uint8(8),
  12297. Fval: uint16(81),
  12298. },
  12299. 386: {
  12300. Fbits: uint8(8),
  12301. Fval: uint16(17),
  12302. },
  12303. 387: {
  12304. Fop: uint8(21),
  12305. Fbits: uint8(8),
  12306. Fval: uint16(131),
  12307. },
  12308. 388: {
  12309. Fop: uint8(18),
  12310. Fbits: uint8(7),
  12311. Fval: uint16(31),
  12312. },
  12313. 389: {
  12314. Fbits: uint8(8),
  12315. Fval: uint16(113),
  12316. },
  12317. 390: {
  12318. Fbits: uint8(8),
  12319. Fval: uint16(49),
  12320. },
  12321. 391: {
  12322. Fbits: uint8(9),
  12323. Fval: uint16(195),
  12324. },
  12325. 392: {
  12326. Fop: uint8(16),
  12327. Fbits: uint8(7),
  12328. Fval: uint16(10),
  12329. },
  12330. 393: {
  12331. Fbits: uint8(8),
  12332. Fval: uint16(97),
  12333. },
  12334. 394: {
  12335. Fbits: uint8(8),
  12336. Fval: uint16(33),
  12337. },
  12338. 395: {
  12339. Fbits: uint8(9),
  12340. Fval: uint16(163),
  12341. },
  12342. 396: {
  12343. Fbits: uint8(8),
  12344. Fval: uint16(1),
  12345. },
  12346. 397: {
  12347. Fbits: uint8(8),
  12348. Fval: uint16(129),
  12349. },
  12350. 398: {
  12351. Fbits: uint8(8),
  12352. Fval: uint16(65),
  12353. },
  12354. 399: {
  12355. Fbits: uint8(9),
  12356. Fval: uint16(227),
  12357. },
  12358. 400: {
  12359. Fop: uint8(16),
  12360. Fbits: uint8(7),
  12361. Fval: uint16(6),
  12362. },
  12363. 401: {
  12364. Fbits: uint8(8),
  12365. Fval: uint16(89),
  12366. },
  12367. 402: {
  12368. Fbits: uint8(8),
  12369. Fval: uint16(25),
  12370. },
  12371. 403: {
  12372. Fbits: uint8(9),
  12373. Fval: uint16(147),
  12374. },
  12375. 404: {
  12376. Fop: uint8(19),
  12377. Fbits: uint8(7),
  12378. Fval: uint16(59),
  12379. },
  12380. 405: {
  12381. Fbits: uint8(8),
  12382. Fval: uint16(121),
  12383. },
  12384. 406: {
  12385. Fbits: uint8(8),
  12386. Fval: uint16(57),
  12387. },
  12388. 407: {
  12389. Fbits: uint8(9),
  12390. Fval: uint16(211),
  12391. },
  12392. 408: {
  12393. Fop: uint8(17),
  12394. Fbits: uint8(7),
  12395. Fval: uint16(17),
  12396. },
  12397. 409: {
  12398. Fbits: uint8(8),
  12399. Fval: uint16(105),
  12400. },
  12401. 410: {
  12402. Fbits: uint8(8),
  12403. Fval: uint16(41),
  12404. },
  12405. 411: {
  12406. Fbits: uint8(9),
  12407. Fval: uint16(179),
  12408. },
  12409. 412: {
  12410. Fbits: uint8(8),
  12411. Fval: uint16(9),
  12412. },
  12413. 413: {
  12414. Fbits: uint8(8),
  12415. Fval: uint16(137),
  12416. },
  12417. 414: {
  12418. Fbits: uint8(8),
  12419. Fval: uint16(73),
  12420. },
  12421. 415: {
  12422. Fbits: uint8(9),
  12423. Fval: uint16(243),
  12424. },
  12425. 416: {
  12426. Fop: uint8(16),
  12427. Fbits: uint8(7),
  12428. Fval: uint16(4),
  12429. },
  12430. 417: {
  12431. Fbits: uint8(8),
  12432. Fval: uint16(85),
  12433. },
  12434. 418: {
  12435. Fbits: uint8(8),
  12436. Fval: uint16(21),
  12437. },
  12438. 419: {
  12439. Fop: uint8(16),
  12440. Fbits: uint8(8),
  12441. Fval: uint16(258),
  12442. },
  12443. 420: {
  12444. Fop: uint8(19),
  12445. Fbits: uint8(7),
  12446. Fval: uint16(43),
  12447. },
  12448. 421: {
  12449. Fbits: uint8(8),
  12450. Fval: uint16(117),
  12451. },
  12452. 422: {
  12453. Fbits: uint8(8),
  12454. Fval: uint16(53),
  12455. },
  12456. 423: {
  12457. Fbits: uint8(9),
  12458. Fval: uint16(203),
  12459. },
  12460. 424: {
  12461. Fop: uint8(17),
  12462. Fbits: uint8(7),
  12463. Fval: uint16(13),
  12464. },
  12465. 425: {
  12466. Fbits: uint8(8),
  12467. Fval: uint16(101),
  12468. },
  12469. 426: {
  12470. Fbits: uint8(8),
  12471. Fval: uint16(37),
  12472. },
  12473. 427: {
  12474. Fbits: uint8(9),
  12475. Fval: uint16(171),
  12476. },
  12477. 428: {
  12478. Fbits: uint8(8),
  12479. Fval: uint16(5),
  12480. },
  12481. 429: {
  12482. Fbits: uint8(8),
  12483. Fval: uint16(133),
  12484. },
  12485. 430: {
  12486. Fbits: uint8(8),
  12487. Fval: uint16(69),
  12488. },
  12489. 431: {
  12490. Fbits: uint8(9),
  12491. Fval: uint16(235),
  12492. },
  12493. 432: {
  12494. Fop: uint8(16),
  12495. Fbits: uint8(7),
  12496. Fval: uint16(8),
  12497. },
  12498. 433: {
  12499. Fbits: uint8(8),
  12500. Fval: uint16(93),
  12501. },
  12502. 434: {
  12503. Fbits: uint8(8),
  12504. Fval: uint16(29),
  12505. },
  12506. 435: {
  12507. Fbits: uint8(9),
  12508. Fval: uint16(155),
  12509. },
  12510. 436: {
  12511. Fop: uint8(20),
  12512. Fbits: uint8(7),
  12513. Fval: uint16(83),
  12514. },
  12515. 437: {
  12516. Fbits: uint8(8),
  12517. Fval: uint16(125),
  12518. },
  12519. 438: {
  12520. Fbits: uint8(8),
  12521. Fval: uint16(61),
  12522. },
  12523. 439: {
  12524. Fbits: uint8(9),
  12525. Fval: uint16(219),
  12526. },
  12527. 440: {
  12528. Fop: uint8(18),
  12529. Fbits: uint8(7),
  12530. Fval: uint16(23),
  12531. },
  12532. 441: {
  12533. Fbits: uint8(8),
  12534. Fval: uint16(109),
  12535. },
  12536. 442: {
  12537. Fbits: uint8(8),
  12538. Fval: uint16(45),
  12539. },
  12540. 443: {
  12541. Fbits: uint8(9),
  12542. Fval: uint16(187),
  12543. },
  12544. 444: {
  12545. Fbits: uint8(8),
  12546. Fval: uint16(13),
  12547. },
  12548. 445: {
  12549. Fbits: uint8(8),
  12550. Fval: uint16(141),
  12551. },
  12552. 446: {
  12553. Fbits: uint8(8),
  12554. Fval: uint16(77),
  12555. },
  12556. 447: {
  12557. Fbits: uint8(9),
  12558. Fval: uint16(251),
  12559. },
  12560. 448: {
  12561. Fop: uint8(16),
  12562. Fbits: uint8(7),
  12563. Fval: uint16(3),
  12564. },
  12565. 449: {
  12566. Fbits: uint8(8),
  12567. Fval: uint16(83),
  12568. },
  12569. 450: {
  12570. Fbits: uint8(8),
  12571. Fval: uint16(19),
  12572. },
  12573. 451: {
  12574. Fop: uint8(21),
  12575. Fbits: uint8(8),
  12576. Fval: uint16(195),
  12577. },
  12578. 452: {
  12579. Fop: uint8(19),
  12580. Fbits: uint8(7),
  12581. Fval: uint16(35),
  12582. },
  12583. 453: {
  12584. Fbits: uint8(8),
  12585. Fval: uint16(115),
  12586. },
  12587. 454: {
  12588. Fbits: uint8(8),
  12589. Fval: uint16(51),
  12590. },
  12591. 455: {
  12592. Fbits: uint8(9),
  12593. Fval: uint16(199),
  12594. },
  12595. 456: {
  12596. Fop: uint8(17),
  12597. Fbits: uint8(7),
  12598. Fval: uint16(11),
  12599. },
  12600. 457: {
  12601. Fbits: uint8(8),
  12602. Fval: uint16(99),
  12603. },
  12604. 458: {
  12605. Fbits: uint8(8),
  12606. Fval: uint16(35),
  12607. },
  12608. 459: {
  12609. Fbits: uint8(9),
  12610. Fval: uint16(167),
  12611. },
  12612. 460: {
  12613. Fbits: uint8(8),
  12614. Fval: uint16(3),
  12615. },
  12616. 461: {
  12617. Fbits: uint8(8),
  12618. Fval: uint16(131),
  12619. },
  12620. 462: {
  12621. Fbits: uint8(8),
  12622. Fval: uint16(67),
  12623. },
  12624. 463: {
  12625. Fbits: uint8(9),
  12626. Fval: uint16(231),
  12627. },
  12628. 464: {
  12629. Fop: uint8(16),
  12630. Fbits: uint8(7),
  12631. Fval: uint16(7),
  12632. },
  12633. 465: {
  12634. Fbits: uint8(8),
  12635. Fval: uint16(91),
  12636. },
  12637. 466: {
  12638. Fbits: uint8(8),
  12639. Fval: uint16(27),
  12640. },
  12641. 467: {
  12642. Fbits: uint8(9),
  12643. Fval: uint16(151),
  12644. },
  12645. 468: {
  12646. Fop: uint8(20),
  12647. Fbits: uint8(7),
  12648. Fval: uint16(67),
  12649. },
  12650. 469: {
  12651. Fbits: uint8(8),
  12652. Fval: uint16(123),
  12653. },
  12654. 470: {
  12655. Fbits: uint8(8),
  12656. Fval: uint16(59),
  12657. },
  12658. 471: {
  12659. Fbits: uint8(9),
  12660. Fval: uint16(215),
  12661. },
  12662. 472: {
  12663. Fop: uint8(18),
  12664. Fbits: uint8(7),
  12665. Fval: uint16(19),
  12666. },
  12667. 473: {
  12668. Fbits: uint8(8),
  12669. Fval: uint16(107),
  12670. },
  12671. 474: {
  12672. Fbits: uint8(8),
  12673. Fval: uint16(43),
  12674. },
  12675. 475: {
  12676. Fbits: uint8(9),
  12677. Fval: uint16(183),
  12678. },
  12679. 476: {
  12680. Fbits: uint8(8),
  12681. Fval: uint16(11),
  12682. },
  12683. 477: {
  12684. Fbits: uint8(8),
  12685. Fval: uint16(139),
  12686. },
  12687. 478: {
  12688. Fbits: uint8(8),
  12689. Fval: uint16(75),
  12690. },
  12691. 479: {
  12692. Fbits: uint8(9),
  12693. Fval: uint16(247),
  12694. },
  12695. 480: {
  12696. Fop: uint8(16),
  12697. Fbits: uint8(7),
  12698. Fval: uint16(5),
  12699. },
  12700. 481: {
  12701. Fbits: uint8(8),
  12702. Fval: uint16(87),
  12703. },
  12704. 482: {
  12705. Fbits: uint8(8),
  12706. Fval: uint16(23),
  12707. },
  12708. 483: {
  12709. Fop: uint8(64),
  12710. Fbits: uint8(8),
  12711. },
  12712. 484: {
  12713. Fop: uint8(19),
  12714. Fbits: uint8(7),
  12715. Fval: uint16(51),
  12716. },
  12717. 485: {
  12718. Fbits: uint8(8),
  12719. Fval: uint16(119),
  12720. },
  12721. 486: {
  12722. Fbits: uint8(8),
  12723. Fval: uint16(55),
  12724. },
  12725. 487: {
  12726. Fbits: uint8(9),
  12727. Fval: uint16(207),
  12728. },
  12729. 488: {
  12730. Fop: uint8(17),
  12731. Fbits: uint8(7),
  12732. Fval: uint16(15),
  12733. },
  12734. 489: {
  12735. Fbits: uint8(8),
  12736. Fval: uint16(103),
  12737. },
  12738. 490: {
  12739. Fbits: uint8(8),
  12740. Fval: uint16(39),
  12741. },
  12742. 491: {
  12743. Fbits: uint8(9),
  12744. Fval: uint16(175),
  12745. },
  12746. 492: {
  12747. Fbits: uint8(8),
  12748. Fval: uint16(7),
  12749. },
  12750. 493: {
  12751. Fbits: uint8(8),
  12752. Fval: uint16(135),
  12753. },
  12754. 494: {
  12755. Fbits: uint8(8),
  12756. Fval: uint16(71),
  12757. },
  12758. 495: {
  12759. Fbits: uint8(9),
  12760. Fval: uint16(239),
  12761. },
  12762. 496: {
  12763. Fop: uint8(16),
  12764. Fbits: uint8(7),
  12765. Fval: uint16(9),
  12766. },
  12767. 497: {
  12768. Fbits: uint8(8),
  12769. Fval: uint16(95),
  12770. },
  12771. 498: {
  12772. Fbits: uint8(8),
  12773. Fval: uint16(31),
  12774. },
  12775. 499: {
  12776. Fbits: uint8(9),
  12777. Fval: uint16(159),
  12778. },
  12779. 500: {
  12780. Fop: uint8(20),
  12781. Fbits: uint8(7),
  12782. Fval: uint16(99),
  12783. },
  12784. 501: {
  12785. Fbits: uint8(8),
  12786. Fval: uint16(127),
  12787. },
  12788. 502: {
  12789. Fbits: uint8(8),
  12790. Fval: uint16(63),
  12791. },
  12792. 503: {
  12793. Fbits: uint8(9),
  12794. Fval: uint16(223),
  12795. },
  12796. 504: {
  12797. Fop: uint8(18),
  12798. Fbits: uint8(7),
  12799. Fval: uint16(27),
  12800. },
  12801. 505: {
  12802. Fbits: uint8(8),
  12803. Fval: uint16(111),
  12804. },
  12805. 506: {
  12806. Fbits: uint8(8),
  12807. Fval: uint16(47),
  12808. },
  12809. 507: {
  12810. Fbits: uint8(9),
  12811. Fval: uint16(191),
  12812. },
  12813. 508: {
  12814. Fbits: uint8(8),
  12815. Fval: uint16(15),
  12816. },
  12817. 509: {
  12818. Fbits: uint8(8),
  12819. Fval: uint16(143),
  12820. },
  12821. 510: {
  12822. Fbits: uint8(8),
  12823. Fval: uint16(79),
  12824. },
  12825. 511: {
  12826. Fbits: uint8(9),
  12827. Fval: uint16(255),
  12828. },
  12829. }
  12830. var _distfix1 = [32]Tcode{
  12831. 0: {
  12832. Fop: uint8(16),
  12833. Fbits: uint8(5),
  12834. Fval: uint16(1),
  12835. },
  12836. 1: {
  12837. Fop: uint8(23),
  12838. Fbits: uint8(5),
  12839. Fval: uint16(257),
  12840. },
  12841. 2: {
  12842. Fop: uint8(19),
  12843. Fbits: uint8(5),
  12844. Fval: uint16(17),
  12845. },
  12846. 3: {
  12847. Fop: uint8(27),
  12848. Fbits: uint8(5),
  12849. Fval: uint16(4097),
  12850. },
  12851. 4: {
  12852. Fop: uint8(17),
  12853. Fbits: uint8(5),
  12854. Fval: uint16(5),
  12855. },
  12856. 5: {
  12857. Fop: uint8(25),
  12858. Fbits: uint8(5),
  12859. Fval: uint16(1025),
  12860. },
  12861. 6: {
  12862. Fop: uint8(21),
  12863. Fbits: uint8(5),
  12864. Fval: uint16(65),
  12865. },
  12866. 7: {
  12867. Fop: uint8(29),
  12868. Fbits: uint8(5),
  12869. Fval: uint16(16385),
  12870. },
  12871. 8: {
  12872. Fop: uint8(16),
  12873. Fbits: uint8(5),
  12874. Fval: uint16(3),
  12875. },
  12876. 9: {
  12877. Fop: uint8(24),
  12878. Fbits: uint8(5),
  12879. Fval: uint16(513),
  12880. },
  12881. 10: {
  12882. Fop: uint8(20),
  12883. Fbits: uint8(5),
  12884. Fval: uint16(33),
  12885. },
  12886. 11: {
  12887. Fop: uint8(28),
  12888. Fbits: uint8(5),
  12889. Fval: uint16(8193),
  12890. },
  12891. 12: {
  12892. Fop: uint8(18),
  12893. Fbits: uint8(5),
  12894. Fval: uint16(9),
  12895. },
  12896. 13: {
  12897. Fop: uint8(26),
  12898. Fbits: uint8(5),
  12899. Fval: uint16(2049),
  12900. },
  12901. 14: {
  12902. Fop: uint8(22),
  12903. Fbits: uint8(5),
  12904. Fval: uint16(129),
  12905. },
  12906. 15: {
  12907. Fop: uint8(64),
  12908. Fbits: uint8(5),
  12909. },
  12910. 16: {
  12911. Fop: uint8(16),
  12912. Fbits: uint8(5),
  12913. Fval: uint16(2),
  12914. },
  12915. 17: {
  12916. Fop: uint8(23),
  12917. Fbits: uint8(5),
  12918. Fval: uint16(385),
  12919. },
  12920. 18: {
  12921. Fop: uint8(19),
  12922. Fbits: uint8(5),
  12923. Fval: uint16(25),
  12924. },
  12925. 19: {
  12926. Fop: uint8(27),
  12927. Fbits: uint8(5),
  12928. Fval: uint16(6145),
  12929. },
  12930. 20: {
  12931. Fop: uint8(17),
  12932. Fbits: uint8(5),
  12933. Fval: uint16(7),
  12934. },
  12935. 21: {
  12936. Fop: uint8(25),
  12937. Fbits: uint8(5),
  12938. Fval: uint16(1537),
  12939. },
  12940. 22: {
  12941. Fop: uint8(21),
  12942. Fbits: uint8(5),
  12943. Fval: uint16(97),
  12944. },
  12945. 23: {
  12946. Fop: uint8(29),
  12947. Fbits: uint8(5),
  12948. Fval: uint16(24577),
  12949. },
  12950. 24: {
  12951. Fop: uint8(16),
  12952. Fbits: uint8(5),
  12953. Fval: uint16(4),
  12954. },
  12955. 25: {
  12956. Fop: uint8(24),
  12957. Fbits: uint8(5),
  12958. Fval: uint16(769),
  12959. },
  12960. 26: {
  12961. Fop: uint8(20),
  12962. Fbits: uint8(5),
  12963. Fval: uint16(49),
  12964. },
  12965. 27: {
  12966. Fop: uint8(28),
  12967. Fbits: uint8(5),
  12968. Fval: uint16(12289),
  12969. },
  12970. 28: {
  12971. Fop: uint8(18),
  12972. Fbits: uint8(5),
  12973. Fval: uint16(13),
  12974. },
  12975. 29: {
  12976. Fop: uint8(26),
  12977. Fbits: uint8(5),
  12978. Fval: uint16(3073),
  12979. },
  12980. 30: {
  12981. Fop: uint8(22),
  12982. Fbits: uint8(5),
  12983. Fval: uint16(193),
  12984. },
  12985. 31: {
  12986. Fop: uint8(64),
  12987. Fbits: uint8(5),
  12988. },
  12989. }
  12990. // C documentation
  12991. //
  12992. // /*
  12993. // Update the window with the last wsize (normally 32K) bytes written before
  12994. // returning. If window does not exist yet, create it. This is only called
  12995. // when a window is already in use, or when output has been written during this
  12996. // inflate call, but the end of the deflate stream has not been reached yet.
  12997. // It is also called to create a window for dictionary data when a dictionary
  12998. // is loaded.
  12999. //
  13000. // Providing output buffers larger than 32K to inflate() should provide a speed
  13001. // advantage, since only the last 32K of output is copied to the sliding window
  13002. // upon return from inflate(), and since all distances after the first 32K of
  13003. // output will fall in the output data, making match copies simpler and faster.
  13004. // The advantage may be dependent on the size of the processor's data caches.
  13005. // */
  13006. func _updatewindow(tls *libc.TLS, strm Tz_streamp, end uintptr, copy1 uint32) (r int32) {
  13007. var dist uint32
  13008. var state uintptr
  13009. _, _ = dist, state
  13010. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  13011. /* if it hasn't been done already, allocate space for the window */
  13012. if (*Tinflate_state)(unsafe.Pointer(state)).Fwindow == uintptr(m_Z_NULL) {
  13013. (*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, libc.Uint32FromInt64(1))
  13014. if (*Tinflate_state)(unsafe.Pointer(state)).Fwindow == uintptr(m_Z_NULL) {
  13015. return int32(1)
  13016. }
  13017. }
  13018. /* if window not in use yet, initialize */
  13019. if (*Tinflate_state)(unsafe.Pointer(state)).Fwsize == uint32(0) {
  13020. (*Tinflate_state)(unsafe.Pointer(state)).Fwsize = uint32(1) << (*Tinflate_state)(unsafe.Pointer(state)).Fwbits
  13021. (*Tinflate_state)(unsafe.Pointer(state)).Fwnext = uint32(0)
  13022. (*Tinflate_state)(unsafe.Pointer(state)).Fwhave = uint32(0)
  13023. }
  13024. /* copy state->wsize or less output bytes into the circular window */
  13025. if copy1 >= (*Tinflate_state)(unsafe.Pointer(state)).Fwsize {
  13026. libc.Xmemcpy(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fwindow, end-uintptr((*Tinflate_state)(unsafe.Pointer(state)).Fwsize), (*Tinflate_state)(unsafe.Pointer(state)).Fwsize)
  13027. (*Tinflate_state)(unsafe.Pointer(state)).Fwnext = uint32(0)
  13028. (*Tinflate_state)(unsafe.Pointer(state)).Fwhave = (*Tinflate_state)(unsafe.Pointer(state)).Fwsize
  13029. } else {
  13030. dist = (*Tinflate_state)(unsafe.Pointer(state)).Fwsize - (*Tinflate_state)(unsafe.Pointer(state)).Fwnext
  13031. if dist > copy1 {
  13032. dist = copy1
  13033. }
  13034. libc.Xmemcpy(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fwindow+uintptr((*Tinflate_state)(unsafe.Pointer(state)).Fwnext), end-uintptr(copy1), dist)
  13035. copy1 -= dist
  13036. if copy1 != 0 {
  13037. libc.Xmemcpy(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fwindow, end-uintptr(copy1), copy1)
  13038. (*Tinflate_state)(unsafe.Pointer(state)).Fwnext = copy1
  13039. (*Tinflate_state)(unsafe.Pointer(state)).Fwhave = (*Tinflate_state)(unsafe.Pointer(state)).Fwsize
  13040. } else {
  13041. *(*uint32)(unsafe.Pointer(state + 52)) += dist
  13042. if (*Tinflate_state)(unsafe.Pointer(state)).Fwnext == (*Tinflate_state)(unsafe.Pointer(state)).Fwsize {
  13043. (*Tinflate_state)(unsafe.Pointer(state)).Fwnext = uint32(0)
  13044. }
  13045. if (*Tinflate_state)(unsafe.Pointer(state)).Fwhave < (*Tinflate_state)(unsafe.Pointer(state)).Fwsize {
  13046. *(*uint32)(unsafe.Pointer(state + 48)) += dist
  13047. }
  13048. }
  13049. }
  13050. return 0
  13051. }
  13052. /* Macros for inflate(): */
  13053. /* check function to use adler32() for zlib or crc32() for gzip */
  13054. /* check macros for header crc */
  13055. /* Load registers with state in inflate() for speed */
  13056. /* Restore state from registers in inflate() */
  13057. /* Clear the input bit accumulator */
  13058. /* Get a byte of input into the bit accumulator, or return from inflate()
  13059. if there is no input available. */
  13060. /* Assure that there are at least n bits in the bit accumulator. If there is
  13061. not enough available input to do that, then return from inflate(). */
  13062. /* Return the low n bits of the bit accumulator (n < 16) */
  13063. /* Remove n bits from the bit accumulator */
  13064. /* Remove zero to seven bits as needed to go to a byte boundary */
  13065. /*
  13066. inflate() uses a state machine to process as much input data and generate as
  13067. much output data as possible before returning. The state machine is
  13068. structured roughly as follows:
  13069. for (;;) switch (state) {
  13070. ...
  13071. case STATEn:
  13072. if (not enough input data or output space to make progress)
  13073. return;
  13074. ... make progress ...
  13075. state = STATEm;
  13076. break;
  13077. ...
  13078. }
  13079. so when inflate() is called again, the same case is attempted again, and
  13080. if the appropriate resources are provided, the machine proceeds to the
  13081. next state. The NEEDBITS() macro is usually the way the state evaluates
  13082. whether it can proceed or should return. NEEDBITS() does the return if
  13083. the requested bits are not available. The typical use of the BITS macros
  13084. is:
  13085. NEEDBITS(n);
  13086. ... do something with BITS(n) ...
  13087. DROPBITS(n);
  13088. where NEEDBITS(n) either returns from inflate() if there isn't enough
  13089. input left to load n bits into the accumulator, or it continues. BITS(n)
  13090. gives the low n bits in the accumulator. When done, DROPBITS(n) drops
  13091. the low n bits off the accumulator. INITBITS() clears the accumulator
  13092. and sets the number of available bits to zero. BYTEBITS() discards just
  13093. enough bits to put the accumulator on a byte boundary. After BYTEBITS()
  13094. and a NEEDBITS(8), then BITS(8) would return the next byte in the stream.
  13095. NEEDBITS(n) uses PULLBYTE() to get an available byte of input, or to return
  13096. if there is no input available. The decoding of variable length codes uses
  13097. PULLBYTE() directly in order to pull just enough bytes to decode the next
  13098. code, and no more.
  13099. Some states loop until they get enough input, making sure that enough
  13100. state information is maintained to continue the loop where it left off
  13101. if NEEDBITS() returns in the loop. For example, want, need, and keep
  13102. would all have to actually be part of the saved state in case NEEDBITS()
  13103. returns:
  13104. case STATEw:
  13105. while (want < need) {
  13106. NEEDBITS(n);
  13107. keep[want++] = BITS(n);
  13108. DROPBITS(n);
  13109. }
  13110. state = STATEx;
  13111. case STATEx:
  13112. As shown above, if the next state is also the next case, then the break
  13113. is omitted.
  13114. A state may also return if there is not enough output space available to
  13115. complete that state. Those states are copying stored data, writing a
  13116. literal byte, and copying a matching string.
  13117. When returning, a "goto inf_leave" is used to update the total counters,
  13118. update the check value, and determine whether any progress has been made
  13119. during that inflate() call in order to return the proper return code.
  13120. Progress is defined as a change in either strm->avail_in or strm->avail_out.
  13121. When there is a window, goto inf_leave will update the window with the last
  13122. output written. If a goto inf_leave occurs in the middle of decompression
  13123. and there is no window currently, goto inf_leave will create one and copy
  13124. output to the window for the next call of inflate().
  13125. In this implementation, the flush parameter of inflate() only affects the
  13126. return code (per zlib.h). inflate() always writes as much as possible to
  13127. strm->next_out, given the space available and the provided input--the effect
  13128. documented in zlib.h of Z_SYNC_FLUSH. Furthermore, inflate() always defers
  13129. the allocation of and copying into a sliding window until necessary, which
  13130. provides the effect documented in zlib.h for Z_FINISH when the entire input
  13131. stream available. So the only thing the flush parameter actually does is:
  13132. when flush is set to Z_FINISH, inflate() cannot return Z_OK. Instead it
  13133. will return Z_BUF_ERROR if it has not reached the end of the stream.
  13134. */
  13135. func Xinflate(tls *libc.TLS, strm Tz_streamp, flush int32) (r int32) {
  13136. bp := tls.Alloc(16)
  13137. defer tls.Free(16)
  13138. var bits, copy1, have, hold, in, left, len1, out, v101, v102, v37, v46, v48, v49, v50, v52, v53, v56, v58, v59, v64, v66, v70, v75, v76, v90, v96, v97, v98 uint32
  13139. 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
  13140. var here, last Tcode
  13141. var ret, v103, v104, v105, v38 int32
  13142. var v47, v99 bool
  13143. var _ /* hbuf at bp+0 */ [4]uint8
  13144. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = 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 */
  13145. 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) {
  13146. return -int32(2)
  13147. }
  13148. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  13149. if (*Tinflate_state)(unsafe.Pointer(state)).Fmode == int32(_TYPE) {
  13150. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TYPEDO)
  13151. } /* skip check */
  13152. put = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out
  13153. left = (*Tz_stream)(unsafe.Pointer(strm)).Favail_out
  13154. next = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in
  13155. have = (*Tz_stream)(unsafe.Pointer(strm)).Favail_in
  13156. hold = (*Tinflate_state)(unsafe.Pointer(state)).Fhold
  13157. bits = (*Tinflate_state)(unsafe.Pointer(state)).Fbits
  13158. in = have
  13159. out = left
  13160. ret = m_Z_OK
  13161. for {
  13162. switch (*Tinflate_state)(unsafe.Pointer(state)).Fmode {
  13163. case int32(_HEAD):
  13164. goto _2
  13165. case int32(_FLAGS):
  13166. goto _3
  13167. case int32(_TIME):
  13168. goto _4
  13169. case int32(_OS):
  13170. goto _5
  13171. case int32(_EXLEN):
  13172. goto _6
  13173. case int32(_EXTRA):
  13174. goto _7
  13175. case int32(_NAME):
  13176. goto _8
  13177. case int32(_COMMENT):
  13178. goto _9
  13179. case int32(_HCRC):
  13180. goto _10
  13181. case int32(_DICTID):
  13182. goto _11
  13183. case int32(_DICT):
  13184. goto _12
  13185. case int32(_TYPE):
  13186. goto _13
  13187. case int32(_TYPEDO):
  13188. goto _14
  13189. case int32(_STORED):
  13190. goto _15
  13191. case int32(_COPY_):
  13192. goto _16
  13193. case int32(_COPY):
  13194. goto _17
  13195. case int32(_TABLE):
  13196. goto _18
  13197. case int32(_LENLENS):
  13198. goto _19
  13199. case int32(_CODELENS):
  13200. goto _20
  13201. case int32(_LEN_):
  13202. goto _21
  13203. case int32(_LEN):
  13204. goto _22
  13205. case int32(_LENEXT):
  13206. goto _23
  13207. case int32(_DIST):
  13208. goto _24
  13209. case int32(_DISTEXT):
  13210. goto _25
  13211. case int32(_MATCH):
  13212. goto _26
  13213. case int32(_LIT):
  13214. goto _27
  13215. case int32(_CHECK):
  13216. goto _28
  13217. case int32(_LENGTH):
  13218. goto _29
  13219. case int32(_DONE):
  13220. goto _30
  13221. case int32(_BAD):
  13222. goto _31
  13223. case int32(_MEM):
  13224. goto _32
  13225. default:
  13226. goto _33
  13227. case int32(_SYNC):
  13228. goto _34
  13229. }
  13230. goto _35
  13231. _2:
  13232. ;
  13233. if (*Tinflate_state)(unsafe.Pointer(state)).Fwrap == 0 {
  13234. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TYPEDO)
  13235. goto _35
  13236. }
  13237. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(16)) {
  13238. if have == uint32(0) {
  13239. goto inf_leave
  13240. }
  13241. have--
  13242. v36 = next
  13243. next++
  13244. hold += uint32(*(*uint8)(unsafe.Pointer(v36))) << bits
  13245. bits += uint32(8)
  13246. }
  13247. if (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(2) != 0 && hold == uint32(0x8b1f) { /* gzip header */
  13248. if (*Tinflate_state)(unsafe.Pointer(state)).Fwbits == uint32(0) {
  13249. (*Tinflate_state)(unsafe.Pointer(state)).Fwbits = uint32(15)
  13250. }
  13251. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, uint32(0), uintptr(m_Z_NULL), uint32(0))
  13252. (*(*[4]uint8)(unsafe.Pointer(bp)))[0] = uint8(hold)
  13253. (*(*[4]uint8)(unsafe.Pointer(bp)))[int32(1)] = uint8(hold >> libc.Int32FromInt32(8))
  13254. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, bp, uint32(2))
  13255. hold = uint32(0)
  13256. bits = uint32(0)
  13257. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_FLAGS)
  13258. goto _35
  13259. }
  13260. if (*Tinflate_state)(unsafe.Pointer(state)).Fhead != uintptr(m_Z_NULL) {
  13261. (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fdone = -int32(1)
  13262. }
  13263. if !((*Tinflate_state)(unsafe.Pointer(state)).Fwrap&libc.Int32FromInt32(1) != 0) || (uint32(hold&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(8)-libc.Uint32FromInt32(1))<<libc.Int32FromInt32(8))+hold>>int32(8))%uint32(31) != 0 {
  13264. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 308
  13265. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13266. goto _35
  13267. }
  13268. if hold&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(4)-libc.Uint32FromInt32(1)) != uint32(m_Z_DEFLATED) {
  13269. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 331
  13270. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13271. goto _35
  13272. }
  13273. hold >>= libc.Uint32FromInt32(libc.Int32FromInt32(4))
  13274. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(4))
  13275. len1 = hold&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(4)-libc.Uint32FromInt32(1)) + uint32(8)
  13276. if (*Tinflate_state)(unsafe.Pointer(state)).Fwbits == uint32(0) {
  13277. (*Tinflate_state)(unsafe.Pointer(state)).Fwbits = len1
  13278. }
  13279. if len1 > uint32(15) || len1 > (*Tinflate_state)(unsafe.Pointer(state)).Fwbits {
  13280. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 358
  13281. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13282. goto _35
  13283. }
  13284. (*Tinflate_state)(unsafe.Pointer(state)).Fdmax = uint32(1) << len1
  13285. (*Tinflate_state)(unsafe.Pointer(state)).Fflags = 0 /* indicate zlib header */
  13286. v37 = Xadler32(tls, uint32(0), uintptr(m_Z_NULL), uint32(0))
  13287. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = v37
  13288. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = v37
  13289. if hold&uint32(0x200) != 0 {
  13290. v38 = int32(_DICTID)
  13291. } else {
  13292. v38 = int32(_TYPE)
  13293. }
  13294. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = v38
  13295. hold = uint32(0)
  13296. bits = uint32(0)
  13297. goto _35
  13298. _3:
  13299. ;
  13300. _41:
  13301. ;
  13302. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(16)) {
  13303. if have == uint32(0) {
  13304. goto inf_leave
  13305. }
  13306. have--
  13307. v42 = next
  13308. next++
  13309. hold += uint32(*(*uint8)(unsafe.Pointer(v42))) << bits
  13310. bits += uint32(8)
  13311. }
  13312. goto _40
  13313. _40:
  13314. ;
  13315. if 0 != 0 {
  13316. goto _41
  13317. }
  13318. goto _39
  13319. _39:
  13320. ;
  13321. (*Tinflate_state)(unsafe.Pointer(state)).Fflags = libc.Int32FromUint32(hold)
  13322. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0xff) != int32(m_Z_DEFLATED) {
  13323. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 331
  13324. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13325. goto _35
  13326. }
  13327. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0xe000) != 0 {
  13328. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 378
  13329. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13330. goto _35
  13331. }
  13332. if (*Tinflate_state)(unsafe.Pointer(state)).Fhead != uintptr(m_Z_NULL) {
  13333. (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Ftext = libc.Int32FromUint32(hold >> libc.Int32FromInt32(8) & libc.Uint32FromInt32(1))
  13334. }
  13335. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x0200) != 0 && (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0 {
  13336. (*(*[4]uint8)(unsafe.Pointer(bp)))[0] = uint8(hold)
  13337. (*(*[4]uint8)(unsafe.Pointer(bp)))[int32(1)] = uint8(hold >> libc.Int32FromInt32(8))
  13338. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, bp, uint32(2))
  13339. }
  13340. hold = uint32(0)
  13341. bits = uint32(0)
  13342. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TIME)
  13343. /* fallthrough */
  13344. _4:
  13345. ;
  13346. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(32)) {
  13347. if have == uint32(0) {
  13348. goto inf_leave
  13349. }
  13350. have--
  13351. v43 = next
  13352. next++
  13353. hold += uint32(*(*uint8)(unsafe.Pointer(v43))) << bits
  13354. bits += uint32(8)
  13355. }
  13356. if (*Tinflate_state)(unsafe.Pointer(state)).Fhead != uintptr(m_Z_NULL) {
  13357. (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Ftime = hold
  13358. }
  13359. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x0200) != 0 && (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0 {
  13360. (*(*[4]uint8)(unsafe.Pointer(bp)))[0] = uint8(hold)
  13361. (*(*[4]uint8)(unsafe.Pointer(bp)))[int32(1)] = uint8(hold >> libc.Int32FromInt32(8))
  13362. (*(*[4]uint8)(unsafe.Pointer(bp)))[int32(2)] = uint8(hold >> libc.Int32FromInt32(16))
  13363. (*(*[4]uint8)(unsafe.Pointer(bp)))[int32(3)] = uint8(hold >> libc.Int32FromInt32(24))
  13364. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, bp, uint32(4))
  13365. }
  13366. hold = uint32(0)
  13367. bits = uint32(0)
  13368. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_OS)
  13369. /* fallthrough */
  13370. _5:
  13371. ;
  13372. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(16)) {
  13373. if have == uint32(0) {
  13374. goto inf_leave
  13375. }
  13376. have--
  13377. v44 = next
  13378. next++
  13379. hold += uint32(*(*uint8)(unsafe.Pointer(v44))) << bits
  13380. bits += uint32(8)
  13381. }
  13382. if (*Tinflate_state)(unsafe.Pointer(state)).Fhead != uintptr(m_Z_NULL) {
  13383. (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fxflags = libc.Int32FromUint32(hold & libc.Uint32FromInt32(0xff))
  13384. (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fos = libc.Int32FromUint32(hold >> libc.Int32FromInt32(8))
  13385. }
  13386. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x0200) != 0 && (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0 {
  13387. (*(*[4]uint8)(unsafe.Pointer(bp)))[0] = uint8(hold)
  13388. (*(*[4]uint8)(unsafe.Pointer(bp)))[int32(1)] = uint8(hold >> libc.Int32FromInt32(8))
  13389. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, bp, uint32(2))
  13390. }
  13391. hold = uint32(0)
  13392. bits = uint32(0)
  13393. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_EXLEN)
  13394. /* fallthrough */
  13395. _6:
  13396. ;
  13397. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x0400) != 0 {
  13398. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(16)) {
  13399. if have == uint32(0) {
  13400. goto inf_leave
  13401. }
  13402. have--
  13403. v45 = next
  13404. next++
  13405. hold += uint32(*(*uint8)(unsafe.Pointer(v45))) << bits
  13406. bits += uint32(8)
  13407. }
  13408. (*Tinflate_state)(unsafe.Pointer(state)).Flength = hold
  13409. if (*Tinflate_state)(unsafe.Pointer(state)).Fhead != uintptr(m_Z_NULL) {
  13410. (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fextra_len = hold
  13411. }
  13412. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x0200) != 0 && (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0 {
  13413. (*(*[4]uint8)(unsafe.Pointer(bp)))[0] = uint8(hold)
  13414. (*(*[4]uint8)(unsafe.Pointer(bp)))[int32(1)] = uint8(hold >> libc.Int32FromInt32(8))
  13415. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, bp, uint32(2))
  13416. }
  13417. hold = uint32(0)
  13418. bits = uint32(0)
  13419. } else {
  13420. if (*Tinflate_state)(unsafe.Pointer(state)).Fhead != uintptr(m_Z_NULL) {
  13421. (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fextra = uintptr(m_Z_NULL)
  13422. }
  13423. }
  13424. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_EXTRA)
  13425. /* fallthrough */
  13426. _7:
  13427. ;
  13428. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x0400) != 0 {
  13429. copy1 = (*Tinflate_state)(unsafe.Pointer(state)).Flength
  13430. if copy1 > have {
  13431. copy1 = have
  13432. }
  13433. if copy1 != 0 {
  13434. 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 {
  13435. v46 = (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fextra_len - (*Tinflate_state)(unsafe.Pointer(state)).Flength
  13436. len1 = v46
  13437. }
  13438. if v47 && v46 < (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fextra_max {
  13439. if len1+copy1 > (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fextra_max {
  13440. v48 = (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fextra_max - len1
  13441. } else {
  13442. v48 = copy1
  13443. }
  13444. libc.Xmemcpy(tls, (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fextra+uintptr(len1), next, v48)
  13445. }
  13446. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x0200) != 0 && (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0 {
  13447. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, next, copy1)
  13448. }
  13449. have -= copy1
  13450. next += uintptr(copy1)
  13451. *(*uint32)(unsafe.Pointer(state + 68)) -= copy1
  13452. }
  13453. if (*Tinflate_state)(unsafe.Pointer(state)).Flength != 0 {
  13454. goto inf_leave
  13455. }
  13456. }
  13457. (*Tinflate_state)(unsafe.Pointer(state)).Flength = uint32(0)
  13458. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_NAME)
  13459. /* fallthrough */
  13460. _8:
  13461. ;
  13462. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x0800) != 0 {
  13463. if have == uint32(0) {
  13464. goto inf_leave
  13465. }
  13466. copy1 = uint32(0)
  13467. for cond := true; cond; cond = len1 != 0 && copy1 < have {
  13468. v49 = copy1
  13469. copy1++
  13470. len1 = uint32(*(*uint8)(unsafe.Pointer(next + uintptr(v49))))
  13471. 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 {
  13472. v51 = state + 68
  13473. v50 = *(*uint32)(unsafe.Pointer(v51))
  13474. *(*uint32)(unsafe.Pointer(v51))++
  13475. *(*TBytef)(unsafe.Pointer((*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fname + uintptr(v50))) = uint8(len1)
  13476. }
  13477. }
  13478. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x0200) != 0 && (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0 {
  13479. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, next, copy1)
  13480. }
  13481. have -= copy1
  13482. next += uintptr(copy1)
  13483. if len1 != 0 {
  13484. goto inf_leave
  13485. }
  13486. } else {
  13487. if (*Tinflate_state)(unsafe.Pointer(state)).Fhead != uintptr(m_Z_NULL) {
  13488. (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fname = uintptr(m_Z_NULL)
  13489. }
  13490. }
  13491. (*Tinflate_state)(unsafe.Pointer(state)).Flength = uint32(0)
  13492. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_COMMENT)
  13493. /* fallthrough */
  13494. _9:
  13495. ;
  13496. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x1000) != 0 {
  13497. if have == uint32(0) {
  13498. goto inf_leave
  13499. }
  13500. copy1 = uint32(0)
  13501. for cond := true; cond; cond = len1 != 0 && copy1 < have {
  13502. v52 = copy1
  13503. copy1++
  13504. len1 = uint32(*(*uint8)(unsafe.Pointer(next + uintptr(v52))))
  13505. 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 {
  13506. v54 = state + 68
  13507. v53 = *(*uint32)(unsafe.Pointer(v54))
  13508. *(*uint32)(unsafe.Pointer(v54))++
  13509. *(*TBytef)(unsafe.Pointer((*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fcomment + uintptr(v53))) = uint8(len1)
  13510. }
  13511. }
  13512. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x0200) != 0 && (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0 {
  13513. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = Xcrc32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, next, copy1)
  13514. }
  13515. have -= copy1
  13516. next += uintptr(copy1)
  13517. if len1 != 0 {
  13518. goto inf_leave
  13519. }
  13520. } else {
  13521. if (*Tinflate_state)(unsafe.Pointer(state)).Fhead != uintptr(m_Z_NULL) {
  13522. (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fcomment = uintptr(m_Z_NULL)
  13523. }
  13524. }
  13525. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_HCRC)
  13526. /* fallthrough */
  13527. _10:
  13528. ;
  13529. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags&int32(0x0200) != 0 {
  13530. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(16)) {
  13531. if have == uint32(0) {
  13532. goto inf_leave
  13533. }
  13534. have--
  13535. v55 = next
  13536. next++
  13537. hold += uint32(*(*uint8)(unsafe.Pointer(v55))) << bits
  13538. bits += uint32(8)
  13539. }
  13540. if (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0 && hold != (*Tinflate_state)(unsafe.Pointer(state)).Fcheck&uint32(0xffff) {
  13541. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 403
  13542. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13543. goto _35
  13544. }
  13545. hold = uint32(0)
  13546. bits = uint32(0)
  13547. }
  13548. if (*Tinflate_state)(unsafe.Pointer(state)).Fhead != uintptr(m_Z_NULL) {
  13549. (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fhcrc = (*Tinflate_state)(unsafe.Pointer(state)).Fflags >> libc.Int32FromInt32(9) & libc.Int32FromInt32(1)
  13550. (*Tgz_header)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fhead)).Fdone = int32(1)
  13551. }
  13552. v56 = Xcrc32(tls, uint32(0), uintptr(m_Z_NULL), uint32(0))
  13553. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = v56
  13554. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = v56
  13555. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TYPE)
  13556. goto _35
  13557. _11:
  13558. ;
  13559. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(32)) {
  13560. if have == uint32(0) {
  13561. goto inf_leave
  13562. }
  13563. have--
  13564. v57 = next
  13565. next++
  13566. hold += uint32(*(*uint8)(unsafe.Pointer(v57))) << bits
  13567. bits += uint32(8)
  13568. }
  13569. v58 = hold>>libc.Int32FromInt32(24)&libc.Uint32FromInt32(0xff) + hold>>libc.Int32FromInt32(8)&libc.Uint32FromInt32(0xff00) + hold&libc.Uint32FromInt32(0xff00)<<libc.Int32FromInt32(8) + hold&libc.Uint32FromInt32(0xff)<<libc.Int32FromInt32(24)
  13570. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = v58
  13571. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = v58
  13572. hold = uint32(0)
  13573. bits = uint32(0)
  13574. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_DICT)
  13575. /* fallthrough */
  13576. _12:
  13577. ;
  13578. if (*Tinflate_state)(unsafe.Pointer(state)).Fhavedict == 0 {
  13579. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out = put
  13580. (*Tz_stream)(unsafe.Pointer(strm)).Favail_out = left
  13581. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = next
  13582. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = have
  13583. (*Tinflate_state)(unsafe.Pointer(state)).Fhold = hold
  13584. (*Tinflate_state)(unsafe.Pointer(state)).Fbits = bits
  13585. return int32(m_Z_NEED_DICT)
  13586. }
  13587. v59 = Xadler32(tls, uint32(0), uintptr(m_Z_NULL), uint32(0))
  13588. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = v59
  13589. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = v59
  13590. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TYPE)
  13591. /* fallthrough */
  13592. _13:
  13593. ;
  13594. if flush == int32(m_Z_BLOCK) || flush == int32(m_Z_TREES) {
  13595. goto inf_leave
  13596. }
  13597. /* fallthrough */
  13598. _14:
  13599. ;
  13600. if (*Tinflate_state)(unsafe.Pointer(state)).Flast != 0 {
  13601. hold >>= bits & uint32(7)
  13602. bits -= bits & uint32(7)
  13603. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_CHECK)
  13604. goto _35
  13605. }
  13606. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(3)) {
  13607. if have == uint32(0) {
  13608. goto inf_leave
  13609. }
  13610. have--
  13611. v60 = next
  13612. next++
  13613. hold += uint32(*(*uint8)(unsafe.Pointer(v60))) << bits
  13614. bits += uint32(8)
  13615. }
  13616. (*Tinflate_state)(unsafe.Pointer(state)).Flast = libc.Int32FromUint32(hold & (libc.Uint32FromUint32(1)<<libc.Int32FromInt32(1) - libc.Uint32FromInt32(1)))
  13617. hold >>= libc.Uint32FromInt32(libc.Int32FromInt32(1))
  13618. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(1))
  13619. switch hold & (libc.Uint32FromUint32(1)<<libc.Int32FromInt32(2) - libc.Uint32FromInt32(1)) {
  13620. case uint32(0): /* stored block */
  13621. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_STORED)
  13622. case uint32(1): /* fixed block */
  13623. _fixedtables1(tls, state)
  13624. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LEN_) /* decode codes */
  13625. if flush == int32(m_Z_TREES) {
  13626. hold >>= libc.Uint32FromInt32(libc.Int32FromInt32(2))
  13627. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(2))
  13628. goto inf_leave
  13629. }
  13630. case uint32(2): /* dynamic block */
  13631. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TABLE)
  13632. case uint32(3):
  13633. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 6
  13634. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13635. }
  13636. hold >>= libc.Uint32FromInt32(libc.Int32FromInt32(2))
  13637. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(2))
  13638. goto _35
  13639. _15:
  13640. ;
  13641. hold >>= bits & uint32(7)
  13642. bits -= bits & uint32(7) /* go to byte boundary */
  13643. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(32)) {
  13644. if have == uint32(0) {
  13645. goto inf_leave
  13646. }
  13647. have--
  13648. v61 = next
  13649. next++
  13650. hold += uint32(*(*uint8)(unsafe.Pointer(v61))) << bits
  13651. bits += uint32(8)
  13652. }
  13653. if hold&uint32(0xffff) != hold>>int32(16)^uint32(0xffff) {
  13654. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 25
  13655. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13656. goto _35
  13657. }
  13658. (*Tinflate_state)(unsafe.Pointer(state)).Flength = hold & uint32(0xffff)
  13659. hold = uint32(0)
  13660. bits = uint32(0)
  13661. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_COPY_)
  13662. if flush == int32(m_Z_TREES) {
  13663. goto inf_leave
  13664. }
  13665. /* fallthrough */
  13666. _16:
  13667. ;
  13668. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_COPY)
  13669. /* fallthrough */
  13670. _17:
  13671. ;
  13672. copy1 = (*Tinflate_state)(unsafe.Pointer(state)).Flength
  13673. if copy1 != 0 {
  13674. if copy1 > have {
  13675. copy1 = have
  13676. }
  13677. if copy1 > left {
  13678. copy1 = left
  13679. }
  13680. if copy1 == uint32(0) {
  13681. goto inf_leave
  13682. }
  13683. libc.Xmemcpy(tls, put, next, copy1)
  13684. have -= copy1
  13685. next += uintptr(copy1)
  13686. left -= copy1
  13687. put += uintptr(copy1)
  13688. *(*uint32)(unsafe.Pointer(state + 68)) -= copy1
  13689. goto _35
  13690. }
  13691. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TYPE)
  13692. goto _35
  13693. _18:
  13694. ;
  13695. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(14)) {
  13696. if have == uint32(0) {
  13697. goto inf_leave
  13698. }
  13699. have--
  13700. v62 = next
  13701. next++
  13702. hold += uint32(*(*uint8)(unsafe.Pointer(v62))) << bits
  13703. bits += uint32(8)
  13704. }
  13705. (*Tinflate_state)(unsafe.Pointer(state)).Fnlen = hold&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(5)-libc.Uint32FromInt32(1)) + uint32(257)
  13706. hold >>= libc.Uint32FromInt32(libc.Int32FromInt32(5))
  13707. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(5))
  13708. (*Tinflate_state)(unsafe.Pointer(state)).Fndist = hold&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(5)-libc.Uint32FromInt32(1)) + uint32(1)
  13709. hold >>= libc.Uint32FromInt32(libc.Int32FromInt32(5))
  13710. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(5))
  13711. (*Tinflate_state)(unsafe.Pointer(state)).Fncode = hold&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(4)-libc.Uint32FromInt32(1)) + uint32(4)
  13712. hold >>= libc.Uint32FromInt32(libc.Int32FromInt32(4))
  13713. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(4))
  13714. if (*Tinflate_state)(unsafe.Pointer(state)).Fnlen > uint32(286) || (*Tinflate_state)(unsafe.Pointer(state)).Fndist > uint32(30) {
  13715. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 54
  13716. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13717. goto _35
  13718. }
  13719. (*Tinflate_state)(unsafe.Pointer(state)).Fhave = uint32(0)
  13720. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LENLENS)
  13721. /* fallthrough */
  13722. _19:
  13723. ;
  13724. for (*Tinflate_state)(unsafe.Pointer(state)).Fhave < (*Tinflate_state)(unsafe.Pointer(state)).Fncode {
  13725. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(3)) {
  13726. if have == uint32(0) {
  13727. goto inf_leave
  13728. }
  13729. have--
  13730. v63 = next
  13731. next++
  13732. hold += uint32(*(*uint8)(unsafe.Pointer(v63))) << bits
  13733. bits += uint32(8)
  13734. }
  13735. v65 = state + 108
  13736. v64 = *(*uint32)(unsafe.Pointer(v65))
  13737. *(*uint32)(unsafe.Pointer(v65))++
  13738. *(*uint16)(unsafe.Pointer(state + 116 + uintptr(_order1[v64])*2)) = uint16(hold & (libc.Uint32FromUint32(1)<<libc.Int32FromInt32(3) - libc.Uint32FromInt32(1)))
  13739. hold >>= libc.Uint32FromInt32(libc.Int32FromInt32(3))
  13740. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(3))
  13741. }
  13742. for (*Tinflate_state)(unsafe.Pointer(state)).Fhave < uint32(19) {
  13743. v67 = state + 108
  13744. v66 = *(*uint32)(unsafe.Pointer(v67))
  13745. *(*uint32)(unsafe.Pointer(v67))++
  13746. *(*uint16)(unsafe.Pointer(state + 116 + uintptr(_order1[v66])*2)) = uint16(0)
  13747. }
  13748. (*Tinflate_state)(unsafe.Pointer(state)).Fnext = state + 1332
  13749. (*Tinflate_state)(unsafe.Pointer(state)).Flencode = (*Tinflate_state)(unsafe.Pointer(state)).Fnext
  13750. (*Tinflate_state)(unsafe.Pointer(state)).Flenbits = uint32(7)
  13751. ret = Xinflate_table(tls, int32(_CODES), state+116, uint32(19), state+112, state+88, state+756)
  13752. if ret != 0 {
  13753. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 90
  13754. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13755. goto _35
  13756. }
  13757. (*Tinflate_state)(unsafe.Pointer(state)).Fhave = uint32(0)
  13758. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_CODELENS)
  13759. /* fallthrough */
  13760. _20:
  13761. ;
  13762. for (*Tinflate_state)(unsafe.Pointer(state)).Fhave < (*Tinflate_state)(unsafe.Pointer(state)).Fnlen+(*Tinflate_state)(unsafe.Pointer(state)).Fndist {
  13763. for {
  13764. here = *(*Tcode)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Flencode + uintptr(hold&(libc.Uint32FromUint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Flenbits-libc.Uint32FromInt32(1)))*4))
  13765. if uint32(here.Fbits) <= bits {
  13766. break
  13767. }
  13768. if have == uint32(0) {
  13769. goto inf_leave
  13770. }
  13771. have--
  13772. v69 = next
  13773. next++
  13774. hold += uint32(*(*uint8)(unsafe.Pointer(v69))) << bits
  13775. bits += uint32(8)
  13776. goto _68
  13777. _68:
  13778. }
  13779. if libc.Int32FromUint16(here.Fval) < int32(16) {
  13780. hold >>= uint32(here.Fbits)
  13781. bits -= uint32(here.Fbits)
  13782. v71 = state + 108
  13783. v70 = *(*uint32)(unsafe.Pointer(v71))
  13784. *(*uint32)(unsafe.Pointer(v71))++
  13785. *(*uint16)(unsafe.Pointer(state + 116 + uintptr(v70)*2)) = here.Fval
  13786. } else {
  13787. if libc.Int32FromUint16(here.Fval) == int32(16) {
  13788. for bits < libc.Uint32FromInt32(libc.Int32FromUint8(here.Fbits)+libc.Int32FromInt32(2)) {
  13789. if have == uint32(0) {
  13790. goto inf_leave
  13791. }
  13792. have--
  13793. v72 = next
  13794. next++
  13795. hold += uint32(*(*uint8)(unsafe.Pointer(v72))) << bits
  13796. bits += uint32(8)
  13797. }
  13798. hold >>= uint32(here.Fbits)
  13799. bits -= uint32(here.Fbits)
  13800. if (*Tinflate_state)(unsafe.Pointer(state)).Fhave == uint32(0) {
  13801. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 115
  13802. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13803. break
  13804. }
  13805. len1 = uint32(*(*uint16)(unsafe.Pointer(state + 116 + uintptr((*Tinflate_state)(unsafe.Pointer(state)).Fhave-uint32(1))*2)))
  13806. copy1 = uint32(3) + hold&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(2)-libc.Uint32FromInt32(1))
  13807. hold >>= libc.Uint32FromInt32(libc.Int32FromInt32(2))
  13808. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(2))
  13809. } else {
  13810. if libc.Int32FromUint16(here.Fval) == int32(17) {
  13811. for bits < libc.Uint32FromInt32(libc.Int32FromUint8(here.Fbits)+libc.Int32FromInt32(3)) {
  13812. if have == uint32(0) {
  13813. goto inf_leave
  13814. }
  13815. have--
  13816. v73 = next
  13817. next++
  13818. hold += uint32(*(*uint8)(unsafe.Pointer(v73))) << bits
  13819. bits += uint32(8)
  13820. }
  13821. hold >>= uint32(here.Fbits)
  13822. bits -= uint32(here.Fbits)
  13823. len1 = uint32(0)
  13824. copy1 = uint32(3) + hold&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(3)-libc.Uint32FromInt32(1))
  13825. hold >>= libc.Uint32FromInt32(libc.Int32FromInt32(3))
  13826. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(3))
  13827. } else {
  13828. for bits < libc.Uint32FromInt32(libc.Int32FromUint8(here.Fbits)+libc.Int32FromInt32(7)) {
  13829. if have == uint32(0) {
  13830. goto inf_leave
  13831. }
  13832. have--
  13833. v74 = next
  13834. next++
  13835. hold += uint32(*(*uint8)(unsafe.Pointer(v74))) << bits
  13836. bits += uint32(8)
  13837. }
  13838. hold >>= uint32(here.Fbits)
  13839. bits -= uint32(here.Fbits)
  13840. len1 = uint32(0)
  13841. copy1 = uint32(11) + hold&(libc.Uint32FromUint32(1)<<libc.Int32FromInt32(7)-libc.Uint32FromInt32(1))
  13842. hold >>= libc.Uint32FromInt32(libc.Int32FromInt32(7))
  13843. bits -= libc.Uint32FromInt32(libc.Int32FromInt32(7))
  13844. }
  13845. }
  13846. if (*Tinflate_state)(unsafe.Pointer(state)).Fhave+copy1 > (*Tinflate_state)(unsafe.Pointer(state)).Fnlen+(*Tinflate_state)(unsafe.Pointer(state)).Fndist {
  13847. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 115
  13848. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13849. break
  13850. }
  13851. for {
  13852. v75 = copy1
  13853. copy1--
  13854. if !(v75 != 0) {
  13855. break
  13856. }
  13857. v77 = state + 108
  13858. v76 = *(*uint32)(unsafe.Pointer(v77))
  13859. *(*uint32)(unsafe.Pointer(v77))++
  13860. *(*uint16)(unsafe.Pointer(state + 116 + uintptr(v76)*2)) = uint16(len1)
  13861. }
  13862. }
  13863. }
  13864. /* handle error breaks in while */
  13865. if (*Tinflate_state)(unsafe.Pointer(state)).Fmode == int32(_BAD) {
  13866. goto _35
  13867. }
  13868. /* check for end-of-block code (better have one) */
  13869. if libc.Int32FromUint16(*(*uint16)(unsafe.Pointer(state + 116 + 256*2))) == 0 {
  13870. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 141
  13871. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13872. goto _35
  13873. }
  13874. /* build code tables -- note: do not change the lenbits or distbits
  13875. values here (9 and 6) without reading the comments in inftrees.h
  13876. concerning the ENOUGH constants, which depend on those values */
  13877. (*Tinflate_state)(unsafe.Pointer(state)).Fnext = state + 1332
  13878. (*Tinflate_state)(unsafe.Pointer(state)).Flencode = (*Tinflate_state)(unsafe.Pointer(state)).Fnext
  13879. (*Tinflate_state)(unsafe.Pointer(state)).Flenbits = uint32(9)
  13880. ret = Xinflate_table(tls, int32(_LENS), state+116, (*Tinflate_state)(unsafe.Pointer(state)).Fnlen, state+112, state+88, state+756)
  13881. if ret != 0 {
  13882. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 178
  13883. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13884. goto _35
  13885. }
  13886. (*Tinflate_state)(unsafe.Pointer(state)).Fdistcode = (*Tinflate_state)(unsafe.Pointer(state)).Fnext
  13887. (*Tinflate_state)(unsafe.Pointer(state)).Fdistbits = uint32(6)
  13888. ret = Xinflate_table(tls, int32(_DISTS), state+116+uintptr((*Tinflate_state)(unsafe.Pointer(state)).Fnlen)*2, (*Tinflate_state)(unsafe.Pointer(state)).Fndist, state+112, state+92, state+756)
  13889. if ret != 0 {
  13890. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 206
  13891. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13892. goto _35
  13893. }
  13894. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LEN_)
  13895. if flush == int32(m_Z_TREES) {
  13896. goto inf_leave
  13897. }
  13898. /* fallthrough */
  13899. _21:
  13900. ;
  13901. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LEN)
  13902. /* fallthrough */
  13903. _22:
  13904. ;
  13905. if have >= uint32(6) && left >= uint32(258) {
  13906. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out = put
  13907. (*Tz_stream)(unsafe.Pointer(strm)).Favail_out = left
  13908. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = next
  13909. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = have
  13910. (*Tinflate_state)(unsafe.Pointer(state)).Fhold = hold
  13911. (*Tinflate_state)(unsafe.Pointer(state)).Fbits = bits
  13912. Xinflate_fast(tls, strm, out)
  13913. put = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out
  13914. left = (*Tz_stream)(unsafe.Pointer(strm)).Favail_out
  13915. next = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in
  13916. have = (*Tz_stream)(unsafe.Pointer(strm)).Favail_in
  13917. hold = (*Tinflate_state)(unsafe.Pointer(state)).Fhold
  13918. bits = (*Tinflate_state)(unsafe.Pointer(state)).Fbits
  13919. if (*Tinflate_state)(unsafe.Pointer(state)).Fmode == int32(_TYPE) {
  13920. (*Tinflate_state)(unsafe.Pointer(state)).Fback = -int32(1)
  13921. }
  13922. goto _35
  13923. }
  13924. (*Tinflate_state)(unsafe.Pointer(state)).Fback = 0
  13925. for {
  13926. here = *(*Tcode)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Flencode + uintptr(hold&(libc.Uint32FromUint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Flenbits-libc.Uint32FromInt32(1)))*4))
  13927. if uint32(here.Fbits) <= bits {
  13928. break
  13929. }
  13930. if have == uint32(0) {
  13931. goto inf_leave
  13932. }
  13933. have--
  13934. v79 = next
  13935. next++
  13936. hold += uint32(*(*uint8)(unsafe.Pointer(v79))) << bits
  13937. bits += uint32(8)
  13938. goto _78
  13939. _78:
  13940. }
  13941. if here.Fop != 0 && libc.Int32FromUint8(here.Fop)&int32(0xf0) == 0 {
  13942. last = here
  13943. for {
  13944. here = *(*Tcode)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Flencode + uintptr(uint32(last.Fval)+hold&(uint32(1)<<(libc.Int32FromUint8(last.Fbits)+libc.Int32FromUint8(last.Fop))-uint32(1))>>last.Fbits)*4))
  13945. if libc.Uint32FromInt32(libc.Int32FromUint8(last.Fbits)+libc.Int32FromUint8(here.Fbits)) <= bits {
  13946. break
  13947. }
  13948. if have == uint32(0) {
  13949. goto inf_leave
  13950. }
  13951. have--
  13952. v81 = next
  13953. next++
  13954. hold += uint32(*(*uint8)(unsafe.Pointer(v81))) << bits
  13955. bits += uint32(8)
  13956. goto _80
  13957. _80:
  13958. }
  13959. hold >>= uint32(last.Fbits)
  13960. bits -= uint32(last.Fbits)
  13961. *(*int32)(unsafe.Pointer(state + 7112)) += libc.Int32FromUint8(last.Fbits)
  13962. }
  13963. hold >>= uint32(here.Fbits)
  13964. bits -= uint32(here.Fbits)
  13965. *(*int32)(unsafe.Pointer(state + 7112)) += libc.Int32FromUint8(here.Fbits)
  13966. (*Tinflate_state)(unsafe.Pointer(state)).Flength = uint32(here.Fval)
  13967. if libc.Int32FromUint8(here.Fop) == 0 {
  13968. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LIT)
  13969. goto _35
  13970. }
  13971. if libc.Int32FromUint8(here.Fop)&int32(32) != 0 {
  13972. (*Tinflate_state)(unsafe.Pointer(state)).Fback = -int32(1)
  13973. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TYPE)
  13974. goto _35
  13975. }
  13976. if libc.Int32FromUint8(here.Fop)&int32(64) != 0 {
  13977. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 228
  13978. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  13979. goto _35
  13980. }
  13981. (*Tinflate_state)(unsafe.Pointer(state)).Fextra = uint32(here.Fop) & uint32(15)
  13982. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LENEXT)
  13983. /* fallthrough */
  13984. _23:
  13985. ;
  13986. if (*Tinflate_state)(unsafe.Pointer(state)).Fextra != 0 {
  13987. for bits < (*Tinflate_state)(unsafe.Pointer(state)).Fextra {
  13988. if have == uint32(0) {
  13989. goto inf_leave
  13990. }
  13991. have--
  13992. v82 = next
  13993. next++
  13994. hold += uint32(*(*uint8)(unsafe.Pointer(v82))) << bits
  13995. bits += uint32(8)
  13996. }
  13997. *(*uint32)(unsafe.Pointer(state + 68)) += hold & (uint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Fextra - uint32(1))
  13998. hold >>= (*Tinflate_state)(unsafe.Pointer(state)).Fextra
  13999. bits -= (*Tinflate_state)(unsafe.Pointer(state)).Fextra
  14000. p83 = state + 7112
  14001. *(*int32)(unsafe.Pointer(p83)) = int32(uint32(*(*int32)(unsafe.Pointer(p83))) + (*Tinflate_state)(unsafe.Pointer(state)).Fextra)
  14002. }
  14003. (*Tinflate_state)(unsafe.Pointer(state)).Fwas = (*Tinflate_state)(unsafe.Pointer(state)).Flength
  14004. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_DIST)
  14005. /* fallthrough */
  14006. _24:
  14007. ;
  14008. for {
  14009. here = *(*Tcode)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fdistcode + uintptr(hold&(libc.Uint32FromUint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Fdistbits-libc.Uint32FromInt32(1)))*4))
  14010. if uint32(here.Fbits) <= bits {
  14011. break
  14012. }
  14013. if have == uint32(0) {
  14014. goto inf_leave
  14015. }
  14016. have--
  14017. v85 = next
  14018. next++
  14019. hold += uint32(*(*uint8)(unsafe.Pointer(v85))) << bits
  14020. bits += uint32(8)
  14021. goto _84
  14022. _84:
  14023. }
  14024. if libc.Int32FromUint8(here.Fop)&int32(0xf0) == 0 {
  14025. last = here
  14026. for {
  14027. here = *(*Tcode)(unsafe.Pointer((*Tinflate_state)(unsafe.Pointer(state)).Fdistcode + uintptr(uint32(last.Fval)+hold&(uint32(1)<<(libc.Int32FromUint8(last.Fbits)+libc.Int32FromUint8(last.Fop))-uint32(1))>>last.Fbits)*4))
  14028. if libc.Uint32FromInt32(libc.Int32FromUint8(last.Fbits)+libc.Int32FromUint8(here.Fbits)) <= bits {
  14029. break
  14030. }
  14031. if have == uint32(0) {
  14032. goto inf_leave
  14033. }
  14034. have--
  14035. v87 = next
  14036. next++
  14037. hold += uint32(*(*uint8)(unsafe.Pointer(v87))) << bits
  14038. bits += uint32(8)
  14039. goto _86
  14040. _86:
  14041. }
  14042. hold >>= uint32(last.Fbits)
  14043. bits -= uint32(last.Fbits)
  14044. *(*int32)(unsafe.Pointer(state + 7112)) += libc.Int32FromUint8(last.Fbits)
  14045. }
  14046. hold >>= uint32(here.Fbits)
  14047. bits -= uint32(here.Fbits)
  14048. *(*int32)(unsafe.Pointer(state + 7112)) += libc.Int32FromUint8(here.Fbits)
  14049. if libc.Int32FromUint8(here.Fop)&int32(64) != 0 {
  14050. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 256
  14051. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  14052. goto _35
  14053. }
  14054. (*Tinflate_state)(unsafe.Pointer(state)).Foffset = uint32(here.Fval)
  14055. (*Tinflate_state)(unsafe.Pointer(state)).Fextra = uint32(here.Fop) & uint32(15)
  14056. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_DISTEXT)
  14057. /* fallthrough */
  14058. _25:
  14059. ;
  14060. if (*Tinflate_state)(unsafe.Pointer(state)).Fextra != 0 {
  14061. for bits < (*Tinflate_state)(unsafe.Pointer(state)).Fextra {
  14062. if have == uint32(0) {
  14063. goto inf_leave
  14064. }
  14065. have--
  14066. v88 = next
  14067. next++
  14068. hold += uint32(*(*uint8)(unsafe.Pointer(v88))) << bits
  14069. bits += uint32(8)
  14070. }
  14071. *(*uint32)(unsafe.Pointer(state + 72)) += hold & (uint32(1)<<(*Tinflate_state)(unsafe.Pointer(state)).Fextra - uint32(1))
  14072. hold >>= (*Tinflate_state)(unsafe.Pointer(state)).Fextra
  14073. bits -= (*Tinflate_state)(unsafe.Pointer(state)).Fextra
  14074. p89 = state + 7112
  14075. *(*int32)(unsafe.Pointer(p89)) = int32(uint32(*(*int32)(unsafe.Pointer(p89))) + (*Tinflate_state)(unsafe.Pointer(state)).Fextra)
  14076. }
  14077. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_MATCH)
  14078. /* fallthrough */
  14079. _26:
  14080. ;
  14081. if left == uint32(0) {
  14082. goto inf_leave
  14083. }
  14084. copy1 = out - left
  14085. if (*Tinflate_state)(unsafe.Pointer(state)).Foffset > copy1 { /* copy from window */
  14086. copy1 = (*Tinflate_state)(unsafe.Pointer(state)).Foffset - copy1
  14087. if copy1 > (*Tinflate_state)(unsafe.Pointer(state)).Fwhave {
  14088. if (*Tinflate_state)(unsafe.Pointer(state)).Fsane != 0 {
  14089. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 278
  14090. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  14091. goto _35
  14092. }
  14093. }
  14094. if copy1 > (*Tinflate_state)(unsafe.Pointer(state)).Fwnext {
  14095. copy1 -= (*Tinflate_state)(unsafe.Pointer(state)).Fwnext
  14096. from = (*Tinflate_state)(unsafe.Pointer(state)).Fwindow + uintptr((*Tinflate_state)(unsafe.Pointer(state)).Fwsize-copy1)
  14097. } else {
  14098. from = (*Tinflate_state)(unsafe.Pointer(state)).Fwindow + uintptr((*Tinflate_state)(unsafe.Pointer(state)).Fwnext-copy1)
  14099. }
  14100. if copy1 > (*Tinflate_state)(unsafe.Pointer(state)).Flength {
  14101. copy1 = (*Tinflate_state)(unsafe.Pointer(state)).Flength
  14102. }
  14103. } else { /* copy from output */
  14104. from = put - uintptr((*Tinflate_state)(unsafe.Pointer(state)).Foffset)
  14105. copy1 = (*Tinflate_state)(unsafe.Pointer(state)).Flength
  14106. }
  14107. if copy1 > left {
  14108. copy1 = left
  14109. }
  14110. left -= copy1
  14111. *(*uint32)(unsafe.Pointer(state + 68)) -= copy1
  14112. for {
  14113. v92 = put
  14114. put++
  14115. v93 = from
  14116. from++
  14117. *(*uint8)(unsafe.Pointer(v92)) = *(*uint8)(unsafe.Pointer(v93))
  14118. goto _91
  14119. _91:
  14120. ;
  14121. copy1--
  14122. v90 = copy1
  14123. if !(v90 != 0) {
  14124. break
  14125. }
  14126. }
  14127. if (*Tinflate_state)(unsafe.Pointer(state)).Flength == uint32(0) {
  14128. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LEN)
  14129. }
  14130. goto _35
  14131. _27:
  14132. ;
  14133. if left == uint32(0) {
  14134. goto inf_leave
  14135. }
  14136. v94 = put
  14137. put++
  14138. *(*uint8)(unsafe.Pointer(v94)) = uint8((*Tinflate_state)(unsafe.Pointer(state)).Flength)
  14139. left--
  14140. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LEN)
  14141. goto _35
  14142. _28:
  14143. ;
  14144. if (*Tinflate_state)(unsafe.Pointer(state)).Fwrap != 0 {
  14145. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(32)) {
  14146. if have == uint32(0) {
  14147. goto inf_leave
  14148. }
  14149. have--
  14150. v95 = next
  14151. next++
  14152. hold += uint32(*(*uint8)(unsafe.Pointer(v95))) << bits
  14153. bits += uint32(8)
  14154. }
  14155. out -= left
  14156. *(*TuLong)(unsafe.Pointer(strm + 20)) += out
  14157. *(*uint32)(unsafe.Pointer(state + 32)) += out
  14158. if (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0 && out != 0 {
  14159. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags != 0 {
  14160. v97 = Xcrc32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, put-uintptr(out), out)
  14161. } else {
  14162. v97 = Xadler32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, put-uintptr(out), out)
  14163. }
  14164. v96 = v97
  14165. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = v96
  14166. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = v96
  14167. }
  14168. out = left
  14169. if v99 = (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0; v99 {
  14170. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags != 0 {
  14171. v98 = hold
  14172. } else {
  14173. v98 = hold>>int32(24)&uint32(0xff) + hold>>int32(8)&uint32(0xff00) + hold&uint32(0xff00)<<int32(8) + hold&uint32(0xff)<<int32(24)
  14174. }
  14175. }
  14176. if v99 && v98 != (*Tinflate_state)(unsafe.Pointer(state)).Fcheck {
  14177. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 423
  14178. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  14179. goto _35
  14180. }
  14181. hold = uint32(0)
  14182. bits = uint32(0)
  14183. }
  14184. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_LENGTH)
  14185. /* fallthrough */
  14186. _29:
  14187. ;
  14188. if (*Tinflate_state)(unsafe.Pointer(state)).Fwrap != 0 && (*Tinflate_state)(unsafe.Pointer(state)).Fflags != 0 {
  14189. for bits < libc.Uint32FromInt32(libc.Int32FromInt32(32)) {
  14190. if have == uint32(0) {
  14191. goto inf_leave
  14192. }
  14193. have--
  14194. v100 = next
  14195. next++
  14196. hold += uint32(*(*uint8)(unsafe.Pointer(v100))) << bits
  14197. bits += uint32(8)
  14198. }
  14199. if (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0 && hold != (*Tinflate_state)(unsafe.Pointer(state)).Ftotal&uint32(0xffffffff) {
  14200. (*Tz_stream)(unsafe.Pointer(strm)).Fmsg = __ccgo_ts + 444
  14201. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_BAD)
  14202. goto _35
  14203. }
  14204. hold = uint32(0)
  14205. bits = uint32(0)
  14206. }
  14207. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_DONE)
  14208. /* fallthrough */
  14209. _30:
  14210. ;
  14211. ret = int32(m_Z_STREAM_END)
  14212. goto inf_leave
  14213. _31:
  14214. ;
  14215. ret = -int32(3)
  14216. goto inf_leave
  14217. _32:
  14218. ;
  14219. return -int32(4)
  14220. _34:
  14221. ;
  14222. /* fallthrough */
  14223. _33:
  14224. ;
  14225. return -int32(2)
  14226. _35:
  14227. ;
  14228. goto _1
  14229. _1:
  14230. }
  14231. /*
  14232. Return from inflate(), updating the total counts and the check value.
  14233. If there was no progress during the inflate() call, return a buffer
  14234. error. Call updatewindow() to create and/or update the window state.
  14235. Note: a memory error from inflate() is non-recoverable.
  14236. */
  14237. goto inf_leave
  14238. inf_leave:
  14239. ;
  14240. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out = put
  14241. (*Tz_stream)(unsafe.Pointer(strm)).Favail_out = left
  14242. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = next
  14243. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = have
  14244. (*Tinflate_state)(unsafe.Pointer(state)).Fhold = hold
  14245. (*Tinflate_state)(unsafe.Pointer(state)).Fbits = bits
  14246. 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)) {
  14247. if _updatewindow(tls, strm, (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out, out-(*Tz_stream)(unsafe.Pointer(strm)).Favail_out) != 0 {
  14248. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_MEM)
  14249. return -int32(4)
  14250. }
  14251. }
  14252. in -= (*Tz_stream)(unsafe.Pointer(strm)).Favail_in
  14253. out -= (*Tz_stream)(unsafe.Pointer(strm)).Favail_out
  14254. *(*TuLong)(unsafe.Pointer(strm + 8)) += in
  14255. *(*TuLong)(unsafe.Pointer(strm + 20)) += out
  14256. *(*uint32)(unsafe.Pointer(state + 32)) += out
  14257. if (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(4) != 0 && out != 0 {
  14258. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags != 0 {
  14259. v102 = Xcrc32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out-uintptr(out), out)
  14260. } else {
  14261. v102 = Xadler32(tls, (*Tinflate_state)(unsafe.Pointer(state)).Fcheck, (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out-uintptr(out), out)
  14262. }
  14263. v101 = v102
  14264. (*Tinflate_state)(unsafe.Pointer(state)).Fcheck = v101
  14265. (*Tz_stream)(unsafe.Pointer(strm)).Fadler = v101
  14266. }
  14267. if (*Tinflate_state)(unsafe.Pointer(state)).Flast != 0 {
  14268. v103 = int32(64)
  14269. } else {
  14270. v103 = 0
  14271. }
  14272. if (*Tinflate_state)(unsafe.Pointer(state)).Fmode == int32(_TYPE) {
  14273. v104 = int32(128)
  14274. } else {
  14275. v104 = 0
  14276. }
  14277. if (*Tinflate_state)(unsafe.Pointer(state)).Fmode == int32(_LEN_) || (*Tinflate_state)(unsafe.Pointer(state)).Fmode == int32(_COPY_) {
  14278. v105 = int32(256)
  14279. } else {
  14280. v105 = 0
  14281. }
  14282. (*Tz_stream)(unsafe.Pointer(strm)).Fdata_type = libc.Int32FromUint32((*Tinflate_state)(unsafe.Pointer(state)).Fbits) + v103 + v104 + v105
  14283. if (in == uint32(0) && out == uint32(0) || flush == int32(m_Z_FINISH)) && ret == m_Z_OK {
  14284. ret = -int32(5)
  14285. }
  14286. return ret
  14287. }
  14288. var _order1 = [19]uint16{
  14289. 0: uint16(16),
  14290. 1: uint16(17),
  14291. 2: uint16(18),
  14292. 4: uint16(8),
  14293. 5: uint16(7),
  14294. 6: uint16(9),
  14295. 7: uint16(6),
  14296. 8: uint16(10),
  14297. 9: uint16(5),
  14298. 10: uint16(11),
  14299. 11: uint16(4),
  14300. 12: uint16(12),
  14301. 13: uint16(3),
  14302. 14: uint16(13),
  14303. 15: uint16(2),
  14304. 16: uint16(14),
  14305. 17: uint16(1),
  14306. 18: uint16(15),
  14307. }
  14308. func XinflateEnd(tls *libc.TLS, strm Tz_streamp) (r int32) {
  14309. var state uintptr
  14310. _ = state
  14311. if _inflateStateCheck(tls, strm) != 0 {
  14312. return -int32(2)
  14313. }
  14314. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  14315. if (*Tinflate_state)(unsafe.Pointer(state)).Fwindow != uintptr(m_Z_NULL) {
  14316. (*(*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)
  14317. }
  14318. (*(*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)
  14319. (*Tz_stream)(unsafe.Pointer(strm)).Fstate = uintptr(m_Z_NULL)
  14320. return m_Z_OK
  14321. }
  14322. func XinflateGetDictionary(tls *libc.TLS, strm Tz_streamp, dictionary uintptr, dictLength uintptr) (r int32) {
  14323. var state uintptr
  14324. _ = state
  14325. /* check state */
  14326. if _inflateStateCheck(tls, strm) != 0 {
  14327. return -int32(2)
  14328. }
  14329. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  14330. /* copy dictionary */
  14331. if (*Tinflate_state)(unsafe.Pointer(state)).Fwhave != 0 && dictionary != uintptr(m_Z_NULL) {
  14332. libc.Xmemcpy(tls, dictionary, (*Tinflate_state)(unsafe.Pointer(state)).Fwindow+uintptr((*Tinflate_state)(unsafe.Pointer(state)).Fwnext), (*Tinflate_state)(unsafe.Pointer(state)).Fwhave-(*Tinflate_state)(unsafe.Pointer(state)).Fwnext)
  14333. libc.Xmemcpy(tls, dictionary+uintptr((*Tinflate_state)(unsafe.Pointer(state)).Fwhave)-uintptr((*Tinflate_state)(unsafe.Pointer(state)).Fwnext), (*Tinflate_state)(unsafe.Pointer(state)).Fwindow, (*Tinflate_state)(unsafe.Pointer(state)).Fwnext)
  14334. }
  14335. if dictLength != uintptr(m_Z_NULL) {
  14336. *(*TuInt)(unsafe.Pointer(dictLength)) = (*Tinflate_state)(unsafe.Pointer(state)).Fwhave
  14337. }
  14338. return m_Z_OK
  14339. }
  14340. func XinflateSetDictionary(tls *libc.TLS, strm Tz_streamp, dictionary uintptr, dictLength TuInt) (r int32) {
  14341. var dictid uint32
  14342. var ret int32
  14343. var state uintptr
  14344. _, _, _ = dictid, ret, state
  14345. /* check state */
  14346. if _inflateStateCheck(tls, strm) != 0 {
  14347. return -int32(2)
  14348. }
  14349. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  14350. if (*Tinflate_state)(unsafe.Pointer(state)).Fwrap != 0 && (*Tinflate_state)(unsafe.Pointer(state)).Fmode != int32(_DICT) {
  14351. return -int32(2)
  14352. }
  14353. /* check for correct dictionary identifier */
  14354. if (*Tinflate_state)(unsafe.Pointer(state)).Fmode == int32(_DICT) {
  14355. dictid = Xadler32(tls, uint32(0), uintptr(m_Z_NULL), uint32(0))
  14356. dictid = Xadler32(tls, dictid, dictionary, dictLength)
  14357. if dictid != (*Tinflate_state)(unsafe.Pointer(state)).Fcheck {
  14358. return -int32(3)
  14359. }
  14360. }
  14361. /* copy dictionary to window using updatewindow(), which will amend the
  14362. existing dictionary if appropriate */
  14363. ret = _updatewindow(tls, strm, dictionary+uintptr(dictLength), dictLength)
  14364. if ret != 0 {
  14365. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_MEM)
  14366. return -int32(4)
  14367. }
  14368. (*Tinflate_state)(unsafe.Pointer(state)).Fhavedict = int32(1)
  14369. return m_Z_OK
  14370. }
  14371. func XinflateGetHeader(tls *libc.TLS, strm Tz_streamp, head Tgz_headerp) (r int32) {
  14372. var state uintptr
  14373. _ = state
  14374. /* check state */
  14375. if _inflateStateCheck(tls, strm) != 0 {
  14376. return -int32(2)
  14377. }
  14378. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  14379. if (*Tinflate_state)(unsafe.Pointer(state)).Fwrap&int32(2) == 0 {
  14380. return -int32(2)
  14381. }
  14382. /* save header structure */
  14383. (*Tinflate_state)(unsafe.Pointer(state)).Fhead = head
  14384. (*Tgz_header)(unsafe.Pointer(head)).Fdone = 0
  14385. return m_Z_OK
  14386. }
  14387. // C documentation
  14388. //
  14389. // /*
  14390. // Search buf[0..len-1] for the pattern: 0, 0, 0xff, 0xff. Return when found
  14391. // or when out of input. When called, *have is the number of pattern bytes
  14392. // found in order so far, in 0..3. On return *have is updated to the new
  14393. // state. If on return *have equals four, then the pattern was found and the
  14394. // return value is how many bytes were read including the last byte of the
  14395. // pattern. If *have is less than four, then the pattern has not been found
  14396. // yet and the return value is len. In the latter case, syncsearch() can be
  14397. // called again with more data and the *have state. *have is initialized to
  14398. // zero for the first call.
  14399. // */
  14400. func _syncsearch(tls *libc.TLS, have uintptr, buf uintptr, len1 uint32) (r uint32) {
  14401. var got, next uint32
  14402. var v1 int32
  14403. _, _, _ = got, next, v1
  14404. got = *(*uint32)(unsafe.Pointer(have))
  14405. next = uint32(0)
  14406. for next < len1 && got < uint32(4) {
  14407. if got < uint32(2) {
  14408. v1 = 0
  14409. } else {
  14410. v1 = int32(0xff)
  14411. }
  14412. if libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(buf + uintptr(next)))) == v1 {
  14413. got++
  14414. } else {
  14415. if *(*uint8)(unsafe.Pointer(buf + uintptr(next))) != 0 {
  14416. got = uint32(0)
  14417. } else {
  14418. got = uint32(4) - got
  14419. }
  14420. }
  14421. next++
  14422. }
  14423. *(*uint32)(unsafe.Pointer(have)) = got
  14424. return next
  14425. }
  14426. func XinflateSync(tls *libc.TLS, strm Tz_streamp) (r int32) {
  14427. bp := tls.Alloc(16)
  14428. defer tls.Free(16)
  14429. var flags int32
  14430. var in, len1, out, v1 uint32
  14431. var state uintptr
  14432. var _ /* buf at bp+0 */ [4]uint8
  14433. _, _, _, _, _, _ = flags, in, len1, out, state, v1
  14434. /* check parameters */
  14435. if _inflateStateCheck(tls, strm) != 0 {
  14436. return -int32(2)
  14437. }
  14438. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  14439. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in == uint32(0) && (*Tinflate_state)(unsafe.Pointer(state)).Fbits < uint32(8) {
  14440. return -int32(5)
  14441. }
  14442. /* if first time, start search in bit buffer */
  14443. if (*Tinflate_state)(unsafe.Pointer(state)).Fmode != int32(_SYNC) {
  14444. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_SYNC)
  14445. *(*uint32)(unsafe.Pointer(state + 60)) >>= (*Tinflate_state)(unsafe.Pointer(state)).Fbits & uint32(7)
  14446. *(*uint32)(unsafe.Pointer(state + 64)) -= (*Tinflate_state)(unsafe.Pointer(state)).Fbits & uint32(7)
  14447. len1 = uint32(0)
  14448. for (*Tinflate_state)(unsafe.Pointer(state)).Fbits >= uint32(8) {
  14449. v1 = len1
  14450. len1++
  14451. (*(*[4]uint8)(unsafe.Pointer(bp)))[v1] = uint8((*Tinflate_state)(unsafe.Pointer(state)).Fhold)
  14452. *(*uint32)(unsafe.Pointer(state + 60)) >>= uint32(8)
  14453. *(*uint32)(unsafe.Pointer(state + 64)) -= uint32(8)
  14454. }
  14455. (*Tinflate_state)(unsafe.Pointer(state)).Fhave = uint32(0)
  14456. _syncsearch(tls, state+108, bp, len1)
  14457. }
  14458. /* search available input */
  14459. len1 = _syncsearch(tls, state+108, (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in, (*Tz_stream)(unsafe.Pointer(strm)).Favail_in)
  14460. *(*TuInt)(unsafe.Pointer(strm + 4)) -= len1
  14461. *(*uintptr)(unsafe.Pointer(strm)) += uintptr(len1)
  14462. *(*TuLong)(unsafe.Pointer(strm + 8)) += len1
  14463. /* return no joy or set up to restart inflate() on a new block */
  14464. if (*Tinflate_state)(unsafe.Pointer(state)).Fhave != uint32(4) {
  14465. return -int32(3)
  14466. }
  14467. if (*Tinflate_state)(unsafe.Pointer(state)).Fflags == -int32(1) {
  14468. (*Tinflate_state)(unsafe.Pointer(state)).Fwrap = 0
  14469. } else {
  14470. *(*int32)(unsafe.Pointer(state + 12)) &= ^libc.Int32FromInt32(4)
  14471. } /* no point in computing a check value now */
  14472. flags = (*Tinflate_state)(unsafe.Pointer(state)).Fflags
  14473. in = (*Tz_stream)(unsafe.Pointer(strm)).Ftotal_in
  14474. out = (*Tz_stream)(unsafe.Pointer(strm)).Ftotal_out
  14475. XinflateReset(tls, strm)
  14476. (*Tz_stream)(unsafe.Pointer(strm)).Ftotal_in = in
  14477. (*Tz_stream)(unsafe.Pointer(strm)).Ftotal_out = out
  14478. (*Tinflate_state)(unsafe.Pointer(state)).Fflags = flags
  14479. (*Tinflate_state)(unsafe.Pointer(state)).Fmode = int32(_TYPE)
  14480. return m_Z_OK
  14481. }
  14482. // C documentation
  14483. //
  14484. // /*
  14485. // Returns true if inflate is currently at the end of a block generated by
  14486. // Z_SYNC_FLUSH or Z_FULL_FLUSH. This function is used by one PPP
  14487. // implementation to provide an additional safety check. PPP uses
  14488. // Z_SYNC_FLUSH but removes the length bytes of the resulting empty stored
  14489. // block. When decompressing, PPP checks that at the end of input packet,
  14490. // inflate is waiting for these length bytes.
  14491. // */
  14492. func XinflateSyncPoint(tls *libc.TLS, strm Tz_streamp) (r int32) {
  14493. var state uintptr
  14494. _ = state
  14495. if _inflateStateCheck(tls, strm) != 0 {
  14496. return -int32(2)
  14497. }
  14498. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  14499. return libc.BoolInt32((*Tinflate_state)(unsafe.Pointer(state)).Fmode == int32(_STORED) && (*Tinflate_state)(unsafe.Pointer(state)).Fbits == uint32(0))
  14500. }
  14501. func XinflateCopy(tls *libc.TLS, dest Tz_streamp, source Tz_streamp) (r int32) {
  14502. var copy1, state, window uintptr
  14503. var wsize uint32
  14504. _, _, _, _ = copy1, state, window, wsize
  14505. /* check input */
  14506. if _inflateStateCheck(tls, source) != 0 || dest == uintptr(m_Z_NULL) {
  14507. return -int32(2)
  14508. }
  14509. state = (*Tz_stream)(unsafe.Pointer(source)).Fstate
  14510. /* allocate space */
  14511. 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)), libc.Uint32FromInt64(7120))
  14512. if copy1 == uintptr(m_Z_NULL) {
  14513. return -int32(4)
  14514. }
  14515. window = uintptr(m_Z_NULL)
  14516. if (*Tinflate_state)(unsafe.Pointer(state)).Fwindow != uintptr(m_Z_NULL) {
  14517. 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, libc.Uint32FromInt64(1))
  14518. if window == uintptr(m_Z_NULL) {
  14519. (*(*func(*libc.TLS, Tvoidpf, Tvoidpf))(unsafe.Pointer(&struct{ uintptr }{(*Tz_stream)(unsafe.Pointer(source)).Fzfree})))(tls, (*Tz_stream)(unsafe.Pointer(source)).Fopaque, copy1)
  14520. return -int32(4)
  14521. }
  14522. }
  14523. /* copy state */
  14524. libc.Xmemcpy(tls, dest, source, uint32(56))
  14525. libc.Xmemcpy(tls, copy1, state, uint32(7120))
  14526. (*Tinflate_state)(unsafe.Pointer(copy1)).Fstrm = dest
  14527. if (*Tinflate_state)(unsafe.Pointer(state)).Flencode >= state+1332 && (*Tinflate_state)(unsafe.Pointer(state)).Flencode <= state+1332+uintptr(libc.Int32FromInt32(m_ENOUGH_LENS)+libc.Int32FromInt32(m_ENOUGH_DISTS))*4-uintptr(1)*4 {
  14528. (*Tinflate_state)(unsafe.Pointer(copy1)).Flencode = copy1 + 1332 + uintptr((int32((*Tinflate_state)(unsafe.Pointer(state)).Flencode)-t__predefined_ptrdiff_t(state+1332))/4)*4
  14529. (*Tinflate_state)(unsafe.Pointer(copy1)).Fdistcode = copy1 + 1332 + uintptr((int32((*Tinflate_state)(unsafe.Pointer(state)).Fdistcode)-t__predefined_ptrdiff_t(state+1332))/4)*4
  14530. }
  14531. (*Tinflate_state)(unsafe.Pointer(copy1)).Fnext = copy1 + 1332 + uintptr((int32((*Tinflate_state)(unsafe.Pointer(state)).Fnext)-t__predefined_ptrdiff_t(state+1332))/4)*4
  14532. if window != uintptr(m_Z_NULL) {
  14533. wsize = uint32(1) << (*Tinflate_state)(unsafe.Pointer(state)).Fwbits
  14534. libc.Xmemcpy(tls, window, (*Tinflate_state)(unsafe.Pointer(state)).Fwindow, wsize)
  14535. }
  14536. (*Tinflate_state)(unsafe.Pointer(copy1)).Fwindow = window
  14537. (*Tz_stream)(unsafe.Pointer(dest)).Fstate = copy1
  14538. return m_Z_OK
  14539. }
  14540. func XinflateUndermine(tls *libc.TLS, strm Tz_streamp, subvert int32) (r int32) {
  14541. var state uintptr
  14542. _ = state
  14543. if _inflateStateCheck(tls, strm) != 0 {
  14544. return -int32(2)
  14545. }
  14546. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  14547. _ = subvert
  14548. (*Tinflate_state)(unsafe.Pointer(state)).Fsane = int32(1)
  14549. return -int32(3)
  14550. }
  14551. func XinflateValidate(tls *libc.TLS, strm Tz_streamp, check int32) (r int32) {
  14552. var state uintptr
  14553. _ = state
  14554. if _inflateStateCheck(tls, strm) != 0 {
  14555. return -int32(2)
  14556. }
  14557. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  14558. if check != 0 && (*Tinflate_state)(unsafe.Pointer(state)).Fwrap != 0 {
  14559. *(*int32)(unsafe.Pointer(state + 12)) |= int32(4)
  14560. } else {
  14561. *(*int32)(unsafe.Pointer(state + 12)) &= ^libc.Int32FromInt32(4)
  14562. }
  14563. return m_Z_OK
  14564. }
  14565. func XinflateMark(tls *libc.TLS, strm Tz_streamp) (r int32) {
  14566. var state uintptr
  14567. var v1, v2 uint32
  14568. _, _, _ = state, v1, v2
  14569. if _inflateStateCheck(tls, strm) != 0 {
  14570. return -(libc.Int32FromInt32(1) << libc.Int32FromInt32(16))
  14571. }
  14572. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  14573. if (*Tinflate_state)(unsafe.Pointer(state)).Fmode == int32(_COPY) {
  14574. v1 = (*Tinflate_state)(unsafe.Pointer(state)).Flength
  14575. } else {
  14576. if (*Tinflate_state)(unsafe.Pointer(state)).Fmode == int32(_MATCH) {
  14577. v2 = (*Tinflate_state)(unsafe.Pointer(state)).Fwas - (*Tinflate_state)(unsafe.Pointer(state)).Flength
  14578. } else {
  14579. v2 = uint32(0)
  14580. }
  14581. v1 = v2
  14582. }
  14583. return libc.Int32FromUint32(libc.Uint32FromInt32(libc.Int32FromUint32(libc.Uint32FromInt32((*Tinflate_state)(unsafe.Pointer(state)).Fback)<<libc.Int32FromInt32(16))) + v1)
  14584. }
  14585. func XinflateCodesUsed(tls *libc.TLS, strm Tz_streamp) (r uint32) {
  14586. var state uintptr
  14587. _ = state
  14588. if _inflateStateCheck(tls, strm) != 0 {
  14589. return libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  14590. }
  14591. state = (*Tz_stream)(unsafe.Pointer(strm)).Fstate
  14592. return libc.Uint32FromInt32((int32((*Tinflate_state)(unsafe.Pointer(state)).Fnext) - t__predefined_ptrdiff_t(state+1332)) / 4)
  14593. }
  14594. const m_MAXBITS = 15
  14595. /*
  14596. If you use the zlib library in a product, an acknowledgment is welcome
  14597. in the documentation of your product. If for some reason you cannot
  14598. include such an acknowledgment, I would appreciate that you keep this
  14599. copyright string in the executable of your product.
  14600. */
  14601. // C documentation
  14602. //
  14603. // /*
  14604. // Build a set of tables to decode the provided canonical Huffman code.
  14605. // The code lengths are lens[0..codes-1]. The result starts at *table,
  14606. // whose indices are 0..2^bits-1. work is a writable array of at least
  14607. // lens shorts, which is used as a work area. type is the type of code
  14608. // to be generated, CODES, LENS, or DISTS. On return, zero is success,
  14609. // -1 is an invalid code, and +1 means that ENOUGH isn't enough. table
  14610. // on return points to the next available entry's address. bits is the
  14611. // requested root table index bits, and on return it is the actual root
  14612. // table index bits. It will differ if the request is greater than the
  14613. // longest code or if it is less than the shortest code.
  14614. // */
  14615. func Xinflate_table(tls *libc.TLS, type1 Tcodetype, lens uintptr, codes uint32, table uintptr, bits uintptr, work uintptr) (r int32) {
  14616. bp := tls.Alloc(64)
  14617. defer tls.Free(64)
  14618. var base, extra, next, v13, v14, v17, v4, v5, v6, v7 uintptr
  14619. var curr, drop, fill, huff, incr, len1, low, mask, match, max, min, root, sym, used uint32
  14620. var here Tcode
  14621. var left int32
  14622. var v12, v16 uint16
  14623. var _ /* count at bp+0 */ [16]uint16
  14624. var _ /* offs at bp+32 */ [16]uint16
  14625. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = 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 */
  14626. /*
  14627. Process a set of code lengths to create a canonical Huffman code. The
  14628. code lengths are lens[0..codes-1]. Each length corresponds to the
  14629. symbols 0..codes-1. The Huffman code is generated by first sorting the
  14630. symbols by length from short to long, and retaining the symbol order
  14631. for codes with equal lengths. Then the code starts with all zero bits
  14632. for the first code of the shortest length, and the codes are integer
  14633. increments for the same length, and zeros are appended as the length
  14634. increases. For the deflate format, these bits are stored backwards
  14635. from their more natural integer increment ordering, and so when the
  14636. decoding tables are built in the large loop below, the integer codes
  14637. are incremented backwards.
  14638. This routine assumes, but does not check, that all of the entries in
  14639. lens[] are in the range 0..MAXBITS. The caller must assure this.
  14640. 1..MAXBITS is interpreted as that code length. zero means that that
  14641. symbol does not occur in this code.
  14642. The codes are sorted by computing a count of codes for each length,
  14643. creating from that a table of starting indices for each length in the
  14644. sorted table, and then entering the symbols in order in the sorted
  14645. table. The sorted table is work[], with that space being provided by
  14646. the caller.
  14647. The length counts are used for other purposes as well, i.e. finding
  14648. the minimum and maximum length codes, determining if there are any
  14649. codes at all, checking for a valid set of lengths, and looking ahead
  14650. at length counts to determine sub-table sizes when building the
  14651. decoding tables.
  14652. */
  14653. /* accumulate lengths for codes (assumes lens[] all in 0..MAXBITS) */
  14654. len1 = uint32(0)
  14655. for {
  14656. if !(len1 <= uint32(m_MAXBITS)) {
  14657. break
  14658. }
  14659. (*(*[16]uint16)(unsafe.Pointer(bp)))[len1] = uint16(0)
  14660. goto _1
  14661. _1:
  14662. ;
  14663. len1++
  14664. }
  14665. sym = uint32(0)
  14666. for {
  14667. if !(sym < codes) {
  14668. break
  14669. }
  14670. (*(*[16]uint16)(unsafe.Pointer(bp)))[*(*uint16)(unsafe.Pointer(lens + uintptr(sym)*2))]++
  14671. goto _2
  14672. _2:
  14673. ;
  14674. sym++
  14675. }
  14676. /* bound code lengths, force root to be within code lengths */
  14677. root = *(*uint32)(unsafe.Pointer(bits))
  14678. max = uint32(m_MAXBITS)
  14679. for {
  14680. if !(max >= uint32(1)) {
  14681. break
  14682. }
  14683. if libc.Int32FromUint16((*(*[16]uint16)(unsafe.Pointer(bp)))[max]) != 0 {
  14684. break
  14685. }
  14686. goto _3
  14687. _3:
  14688. ;
  14689. max--
  14690. }
  14691. if root > max {
  14692. root = max
  14693. }
  14694. if max == uint32(0) { /* no symbols to code at all */
  14695. here.Fop = libc.Uint8FromInt32(64) /* invalid code marker */
  14696. here.Fbits = libc.Uint8FromInt32(1)
  14697. here.Fval = libc.Uint16FromInt32(0)
  14698. v5 = table
  14699. v4 = *(*uintptr)(unsafe.Pointer(v5))
  14700. *(*uintptr)(unsafe.Pointer(v5)) += 4
  14701. *(*Tcode)(unsafe.Pointer(v4)) = here /* make a table to force an error */
  14702. v7 = table
  14703. v6 = *(*uintptr)(unsafe.Pointer(v7))
  14704. *(*uintptr)(unsafe.Pointer(v7)) += 4
  14705. *(*Tcode)(unsafe.Pointer(v6)) = here
  14706. *(*uint32)(unsafe.Pointer(bits)) = uint32(1)
  14707. return 0 /* no symbols, but wait for decoding to report error */
  14708. }
  14709. min = uint32(1)
  14710. for {
  14711. if !(min < max) {
  14712. break
  14713. }
  14714. if libc.Int32FromUint16((*(*[16]uint16)(unsafe.Pointer(bp)))[min]) != 0 {
  14715. break
  14716. }
  14717. goto _8
  14718. _8:
  14719. ;
  14720. min++
  14721. }
  14722. if root < min {
  14723. root = min
  14724. }
  14725. /* check for an over-subscribed or incomplete set of lengths */
  14726. left = int32(1)
  14727. len1 = uint32(1)
  14728. for {
  14729. if !(len1 <= uint32(m_MAXBITS)) {
  14730. break
  14731. }
  14732. left <<= int32(1)
  14733. left -= libc.Int32FromUint16((*(*[16]uint16)(unsafe.Pointer(bp)))[len1])
  14734. if left < 0 {
  14735. return -int32(1)
  14736. } /* over-subscribed */
  14737. goto _9
  14738. _9:
  14739. ;
  14740. len1++
  14741. }
  14742. if left > 0 && (type1 == int32(_CODES) || max != uint32(1)) {
  14743. return -int32(1)
  14744. } /* incomplete set */
  14745. /* generate offsets into symbol table for each length for sorting */
  14746. (*(*[16]uint16)(unsafe.Pointer(bp + 32)))[int32(1)] = uint16(0)
  14747. len1 = uint32(1)
  14748. for {
  14749. if !(len1 < uint32(m_MAXBITS)) {
  14750. break
  14751. }
  14752. (*(*[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]))
  14753. goto _10
  14754. _10:
  14755. ;
  14756. len1++
  14757. }
  14758. /* sort symbols by length, by symbol order within each length */
  14759. sym = uint32(0)
  14760. for {
  14761. if !(sym < codes) {
  14762. break
  14763. }
  14764. if libc.Int32FromUint16(*(*uint16)(unsafe.Pointer(lens + uintptr(sym)*2))) != 0 {
  14765. v13 = bp + 32 + uintptr(*(*uint16)(unsafe.Pointer(lens + uintptr(sym)*2)))*2
  14766. v12 = *(*uint16)(unsafe.Pointer(v13))
  14767. *(*uint16)(unsafe.Pointer(v13))++
  14768. *(*uint16)(unsafe.Pointer(work + uintptr(v12)*2)) = uint16(sym)
  14769. }
  14770. goto _11
  14771. _11:
  14772. ;
  14773. sym++
  14774. }
  14775. /*
  14776. Create and fill in decoding tables. In this loop, the table being
  14777. filled is at next and has curr index bits. The code being used is huff
  14778. with length len. That code is converted to an index by dropping drop
  14779. bits off of the bottom. For codes where len is less than drop + curr,
  14780. those top drop + curr - len bits are incremented through all values to
  14781. fill the table with replicated entries.
  14782. root is the number of index bits for the root table. When len exceeds
  14783. root, sub-tables are created pointed to by the root entry with an index
  14784. of the low root bits of huff. This is saved in low to check for when a
  14785. new sub-table should be started. drop is zero when the root table is
  14786. being filled, and drop is root when sub-tables are being filled.
  14787. When a new sub-table is needed, it is necessary to look ahead in the
  14788. code lengths to determine what size sub-table is needed. The length
  14789. counts are used for this, and so count[] is decremented as codes are
  14790. entered in the tables.
  14791. used keeps track of how many table entries have been allocated from the
  14792. provided *table space. It is checked for LENS and DIST tables against
  14793. the constants ENOUGH_LENS and ENOUGH_DISTS to guard against changes in
  14794. the initial root table size constants. See the comments in inftrees.h
  14795. for more information.
  14796. sym increments through all symbols, and the loop terminates when
  14797. all codes of length max, i.e. all codes, have been processed. This
  14798. routine permits incomplete codes, so another loop after this one fills
  14799. in the rest of the decoding tables with invalid code markers.
  14800. */
  14801. /* set up for code type */
  14802. switch type1 {
  14803. case int32(_CODES):
  14804. v14 = work
  14805. extra = v14
  14806. base = v14 /* dummy value--not used */
  14807. match = uint32(20)
  14808. case int32(_LENS):
  14809. base = uintptr(unsafe.Pointer(&_lbase))
  14810. extra = uintptr(unsafe.Pointer(&_lext))
  14811. match = uint32(257)
  14812. default: /* DISTS */
  14813. base = uintptr(unsafe.Pointer(&_dbase))
  14814. extra = uintptr(unsafe.Pointer(&_dext))
  14815. match = uint32(0)
  14816. }
  14817. /* initialize state for loop */
  14818. huff = uint32(0) /* starting code */
  14819. sym = uint32(0) /* starting code symbol */
  14820. len1 = min /* starting code length */
  14821. next = *(*uintptr)(unsafe.Pointer(table)) /* current table to fill in */
  14822. curr = root /* current table index bits */
  14823. drop = uint32(0) /* current bits to drop from code for index */
  14824. low = libc.Uint32FromInt32(-libc.Int32FromInt32(1)) /* trigger new sub-table when len > root */
  14825. used = uint32(1) << root /* use root table entries */
  14826. mask = used - uint32(1) /* mask for comparing low */
  14827. /* check available table space */
  14828. if type1 == int32(_LENS) && used > uint32(m_ENOUGH_LENS) || type1 == int32(_DISTS) && used > uint32(m_ENOUGH_DISTS) {
  14829. return int32(1)
  14830. }
  14831. /* process all codes and make table entries */
  14832. for {
  14833. /* create table entry */
  14834. here.Fbits = uint8(len1 - drop)
  14835. if uint32(*(*uint16)(unsafe.Pointer(work + uintptr(sym)*2)))+uint32(1) < match {
  14836. here.Fop = libc.Uint8FromInt32(0)
  14837. here.Fval = *(*uint16)(unsafe.Pointer(work + uintptr(sym)*2))
  14838. } else {
  14839. if uint32(*(*uint16)(unsafe.Pointer(work + uintptr(sym)*2))) >= match {
  14840. here.Fop = uint8(*(*uint16)(unsafe.Pointer(extra + uintptr(uint32(*(*uint16)(unsafe.Pointer(work + uintptr(sym)*2)))-match)*2)))
  14841. here.Fval = *(*uint16)(unsafe.Pointer(base + uintptr(uint32(*(*uint16)(unsafe.Pointer(work + uintptr(sym)*2)))-match)*2))
  14842. } else {
  14843. here.Fop = libc.Uint8FromInt32(libc.Int32FromInt32(32) + libc.Int32FromInt32(64)) /* end of block */
  14844. here.Fval = uint16(0)
  14845. }
  14846. }
  14847. /* replicate for those indices with low len bits equal to huff */
  14848. incr = uint32(1) << (len1 - drop)
  14849. fill = uint32(1) << curr
  14850. min = fill /* save offset to next table */
  14851. for cond := true; cond; cond = fill != uint32(0) {
  14852. fill -= incr
  14853. *(*Tcode)(unsafe.Pointer(next + uintptr(huff>>drop+fill)*4)) = here
  14854. }
  14855. /* backwards increment the len-bit code huff */
  14856. incr = uint32(1) << (len1 - uint32(1))
  14857. for huff&incr != 0 {
  14858. incr >>= uint32(1)
  14859. }
  14860. if incr != uint32(0) {
  14861. huff &= incr - uint32(1)
  14862. huff += incr
  14863. } else {
  14864. huff = uint32(0)
  14865. }
  14866. /* go to next symbol, update count, len */
  14867. sym++
  14868. v17 = bp + uintptr(len1)*2
  14869. *(*uint16)(unsafe.Pointer(v17))--
  14870. v16 = *(*uint16)(unsafe.Pointer(v17))
  14871. if libc.Int32FromUint16(v16) == 0 {
  14872. if len1 == max {
  14873. break
  14874. }
  14875. len1 = uint32(*(*uint16)(unsafe.Pointer(lens + uintptr(*(*uint16)(unsafe.Pointer(work + uintptr(sym)*2)))*2)))
  14876. }
  14877. /* create new sub-table if needed */
  14878. if len1 > root && huff&mask != low {
  14879. /* if first time, transition to sub-tables */
  14880. if drop == uint32(0) {
  14881. drop = root
  14882. }
  14883. /* increment past last table */
  14884. next += uintptr(min) * 4 /* here min is 1 << curr */
  14885. /* determine length of next table */
  14886. curr = len1 - drop
  14887. left = libc.Int32FromInt32(1) << curr
  14888. for curr+drop < max {
  14889. left -= libc.Int32FromUint16((*(*[16]uint16)(unsafe.Pointer(bp)))[curr+drop])
  14890. if left <= 0 {
  14891. break
  14892. }
  14893. curr++
  14894. left <<= int32(1)
  14895. }
  14896. /* check for enough space */
  14897. used += uint32(1) << curr
  14898. if type1 == int32(_LENS) && used > uint32(m_ENOUGH_LENS) || type1 == int32(_DISTS) && used > uint32(m_ENOUGH_DISTS) {
  14899. return int32(1)
  14900. }
  14901. /* point entry in root table to sub-table */
  14902. low = huff & mask
  14903. (*(*Tcode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(table)) + uintptr(low)*4))).Fop = uint8(curr)
  14904. (*(*Tcode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(table)) + uintptr(low)*4))).Fbits = uint8(root)
  14905. (*(*Tcode)(unsafe.Pointer(*(*uintptr)(unsafe.Pointer(table)) + uintptr(low)*4))).Fval = libc.Uint16FromInt32((int32(next) - int32(*(*uintptr)(unsafe.Pointer(table)))) / 4)
  14906. }
  14907. goto _15
  14908. _15:
  14909. }
  14910. /* fill in remaining table entry if code is incomplete (guaranteed to have
  14911. at most one remaining entry, since if the code is incomplete, the
  14912. maximum code length that was allowed to get this far is one bit) */
  14913. if huff != uint32(0) {
  14914. here.Fop = libc.Uint8FromInt32(64) /* invalid code marker */
  14915. here.Fbits = uint8(len1 - drop)
  14916. here.Fval = libc.Uint16FromInt32(0)
  14917. *(*Tcode)(unsafe.Pointer(next + uintptr(huff)*4)) = here
  14918. }
  14919. /* set return parameters */
  14920. *(*uintptr)(unsafe.Pointer(table)) += uintptr(used) * 4
  14921. *(*uint32)(unsafe.Pointer(bits)) = root
  14922. return 0
  14923. }
  14924. var _lbase = [31]uint16{
  14925. 0: uint16(3),
  14926. 1: uint16(4),
  14927. 2: uint16(5),
  14928. 3: uint16(6),
  14929. 4: uint16(7),
  14930. 5: uint16(8),
  14931. 6: uint16(9),
  14932. 7: uint16(10),
  14933. 8: uint16(11),
  14934. 9: uint16(13),
  14935. 10: uint16(15),
  14936. 11: uint16(17),
  14937. 12: uint16(19),
  14938. 13: uint16(23),
  14939. 14: uint16(27),
  14940. 15: uint16(31),
  14941. 16: uint16(35),
  14942. 17: uint16(43),
  14943. 18: uint16(51),
  14944. 19: uint16(59),
  14945. 20: uint16(67),
  14946. 21: uint16(83),
  14947. 22: uint16(99),
  14948. 23: uint16(115),
  14949. 24: uint16(131),
  14950. 25: uint16(163),
  14951. 26: uint16(195),
  14952. 27: uint16(227),
  14953. 28: uint16(258),
  14954. }
  14955. var _lext = [31]uint16{
  14956. 0: uint16(16),
  14957. 1: uint16(16),
  14958. 2: uint16(16),
  14959. 3: uint16(16),
  14960. 4: uint16(16),
  14961. 5: uint16(16),
  14962. 6: uint16(16),
  14963. 7: uint16(16),
  14964. 8: uint16(17),
  14965. 9: uint16(17),
  14966. 10: uint16(17),
  14967. 11: uint16(17),
  14968. 12: uint16(18),
  14969. 13: uint16(18),
  14970. 14: uint16(18),
  14971. 15: uint16(18),
  14972. 16: uint16(19),
  14973. 17: uint16(19),
  14974. 18: uint16(19),
  14975. 19: uint16(19),
  14976. 20: uint16(20),
  14977. 21: uint16(20),
  14978. 22: uint16(20),
  14979. 23: uint16(20),
  14980. 24: uint16(21),
  14981. 25: uint16(21),
  14982. 26: uint16(21),
  14983. 27: uint16(21),
  14984. 28: uint16(16),
  14985. 29: uint16(203),
  14986. 30: uint16(77),
  14987. }
  14988. var _dbase = [32]uint16{
  14989. 0: uint16(1),
  14990. 1: uint16(2),
  14991. 2: uint16(3),
  14992. 3: uint16(4),
  14993. 4: uint16(5),
  14994. 5: uint16(7),
  14995. 6: uint16(9),
  14996. 7: uint16(13),
  14997. 8: uint16(17),
  14998. 9: uint16(25),
  14999. 10: uint16(33),
  15000. 11: uint16(49),
  15001. 12: uint16(65),
  15002. 13: uint16(97),
  15003. 14: uint16(129),
  15004. 15: uint16(193),
  15005. 16: uint16(257),
  15006. 17: uint16(385),
  15007. 18: uint16(513),
  15008. 19: uint16(769),
  15009. 20: uint16(1025),
  15010. 21: uint16(1537),
  15011. 22: uint16(2049),
  15012. 23: uint16(3073),
  15013. 24: uint16(4097),
  15014. 25: uint16(6145),
  15015. 26: uint16(8193),
  15016. 27: uint16(12289),
  15017. 28: uint16(16385),
  15018. 29: uint16(24577),
  15019. }
  15020. var _dext = [32]uint16{
  15021. 0: uint16(16),
  15022. 1: uint16(16),
  15023. 2: uint16(16),
  15024. 3: uint16(16),
  15025. 4: uint16(17),
  15026. 5: uint16(17),
  15027. 6: uint16(18),
  15028. 7: uint16(18),
  15029. 8: uint16(19),
  15030. 9: uint16(19),
  15031. 10: uint16(20),
  15032. 11: uint16(20),
  15033. 12: uint16(21),
  15034. 13: uint16(21),
  15035. 14: uint16(22),
  15036. 15: uint16(22),
  15037. 16: uint16(23),
  15038. 17: uint16(23),
  15039. 18: uint16(24),
  15040. 19: uint16(24),
  15041. 20: uint16(25),
  15042. 21: uint16(25),
  15043. 22: uint16(26),
  15044. 23: uint16(26),
  15045. 24: uint16(27),
  15046. 25: uint16(27),
  15047. 26: uint16(28),
  15048. 27: uint16(28),
  15049. 28: uint16(29),
  15050. 29: uint16(29),
  15051. 30: uint16(64),
  15052. 31: uint16(64),
  15053. }
  15054. const m_DIST_CODE_LEN = 512
  15055. const m_END_BLOCK = 256
  15056. const m_MAX_BL_BITS = 7
  15057. const m_REPZ_11_138 = 18
  15058. const m_REPZ_3_10 = 17
  15059. const m_REP_3_6 = 16
  15060. const m_SMALLEST = 1
  15061. const m_TCONST = "const"
  15062. type Tstatic_tree_desc = struct {
  15063. Fstatic_tree uintptr
  15064. Fextra_bits uintptr
  15065. Fextra_base int32
  15066. Felems int32
  15067. Fmax_length int32
  15068. }
  15069. type Tstatic_tree_desc_s = Tstatic_tree_desc
  15070. /* ===========================================================================
  15071. * Constants
  15072. */
  15073. /* Bit length codes must not exceed MAX_BL_BITS bits */
  15074. /* end of block literal code */
  15075. /* repeat previous bit length 3-6 times (2 bits of repeat count) */
  15076. /* repeat a zero length 3-10 times (3 bits of repeat count) */
  15077. /* repeat a zero length 11-138 times (7 bits of repeat count) */
  15078. var _extra_lbits = [29]int32{
  15079. 8: int32(1),
  15080. 9: int32(1),
  15081. 10: int32(1),
  15082. 11: int32(1),
  15083. 12: int32(2),
  15084. 13: int32(2),
  15085. 14: int32(2),
  15086. 15: int32(2),
  15087. 16: int32(3),
  15088. 17: int32(3),
  15089. 18: int32(3),
  15090. 19: int32(3),
  15091. 20: int32(4),
  15092. 21: int32(4),
  15093. 22: int32(4),
  15094. 23: int32(4),
  15095. 24: int32(5),
  15096. 25: int32(5),
  15097. 26: int32(5),
  15098. 27: int32(5),
  15099. }
  15100. var _extra_dbits = [30]int32{
  15101. 4: int32(1),
  15102. 5: int32(1),
  15103. 6: int32(2),
  15104. 7: int32(2),
  15105. 8: int32(3),
  15106. 9: int32(3),
  15107. 10: int32(4),
  15108. 11: int32(4),
  15109. 12: int32(5),
  15110. 13: int32(5),
  15111. 14: int32(6),
  15112. 15: int32(6),
  15113. 16: int32(7),
  15114. 17: int32(7),
  15115. 18: int32(8),
  15116. 19: int32(8),
  15117. 20: int32(9),
  15118. 21: int32(9),
  15119. 22: int32(10),
  15120. 23: int32(10),
  15121. 24: int32(11),
  15122. 25: int32(11),
  15123. 26: int32(12),
  15124. 27: int32(12),
  15125. 28: int32(13),
  15126. 29: int32(13),
  15127. }
  15128. var _extra_blbits = [19]int32{
  15129. 16: int32(2),
  15130. 17: int32(3),
  15131. 18: int32(7),
  15132. }
  15133. var _bl_order = [19]Tuch{
  15134. 0: uint8(16),
  15135. 1: uint8(17),
  15136. 2: uint8(18),
  15137. 4: uint8(8),
  15138. 5: uint8(7),
  15139. 6: uint8(9),
  15140. 7: uint8(6),
  15141. 8: uint8(10),
  15142. 9: uint8(5),
  15143. 10: uint8(11),
  15144. 11: uint8(4),
  15145. 12: uint8(12),
  15146. 13: uint8(3),
  15147. 14: uint8(13),
  15148. 15: uint8(2),
  15149. 16: uint8(14),
  15150. 17: uint8(1),
  15151. 18: uint8(15),
  15152. }
  15153. var _static_ltree = [288]Tct_data{
  15154. 0: {
  15155. Ffc: *(*struct {
  15156. Fcode [0]Tush
  15157. Ffreq Tush
  15158. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(12)})),
  15159. Fdl: *(*struct {
  15160. Flen1 [0]Tush
  15161. Fdad Tush
  15162. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15163. },
  15164. 1: {
  15165. Ffc: *(*struct {
  15166. Fcode [0]Tush
  15167. Ffreq Tush
  15168. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(140)})),
  15169. Fdl: *(*struct {
  15170. Flen1 [0]Tush
  15171. Fdad Tush
  15172. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15173. },
  15174. 2: {
  15175. Ffc: *(*struct {
  15176. Fcode [0]Tush
  15177. Ffreq Tush
  15178. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(76)})),
  15179. Fdl: *(*struct {
  15180. Flen1 [0]Tush
  15181. Fdad Tush
  15182. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15183. },
  15184. 3: {
  15185. Ffc: *(*struct {
  15186. Fcode [0]Tush
  15187. Ffreq Tush
  15188. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(204)})),
  15189. Fdl: *(*struct {
  15190. Flen1 [0]Tush
  15191. Fdad Tush
  15192. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15193. },
  15194. 4: {
  15195. Ffc: *(*struct {
  15196. Fcode [0]Tush
  15197. Ffreq Tush
  15198. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(44)})),
  15199. Fdl: *(*struct {
  15200. Flen1 [0]Tush
  15201. Fdad Tush
  15202. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15203. },
  15204. 5: {
  15205. Ffc: *(*struct {
  15206. Fcode [0]Tush
  15207. Ffreq Tush
  15208. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(172)})),
  15209. Fdl: *(*struct {
  15210. Flen1 [0]Tush
  15211. Fdad Tush
  15212. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15213. },
  15214. 6: {
  15215. Ffc: *(*struct {
  15216. Fcode [0]Tush
  15217. Ffreq Tush
  15218. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(108)})),
  15219. Fdl: *(*struct {
  15220. Flen1 [0]Tush
  15221. Fdad Tush
  15222. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15223. },
  15224. 7: {
  15225. Ffc: *(*struct {
  15226. Fcode [0]Tush
  15227. Ffreq Tush
  15228. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(236)})),
  15229. Fdl: *(*struct {
  15230. Flen1 [0]Tush
  15231. Fdad Tush
  15232. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15233. },
  15234. 8: {
  15235. Ffc: *(*struct {
  15236. Fcode [0]Tush
  15237. Ffreq Tush
  15238. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(28)})),
  15239. Fdl: *(*struct {
  15240. Flen1 [0]Tush
  15241. Fdad Tush
  15242. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15243. },
  15244. 9: {
  15245. Ffc: *(*struct {
  15246. Fcode [0]Tush
  15247. Ffreq Tush
  15248. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(156)})),
  15249. Fdl: *(*struct {
  15250. Flen1 [0]Tush
  15251. Fdad Tush
  15252. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15253. },
  15254. 10: {
  15255. Ffc: *(*struct {
  15256. Fcode [0]Tush
  15257. Ffreq Tush
  15258. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(92)})),
  15259. Fdl: *(*struct {
  15260. Flen1 [0]Tush
  15261. Fdad Tush
  15262. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15263. },
  15264. 11: {
  15265. Ffc: *(*struct {
  15266. Fcode [0]Tush
  15267. Ffreq Tush
  15268. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(220)})),
  15269. Fdl: *(*struct {
  15270. Flen1 [0]Tush
  15271. Fdad Tush
  15272. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15273. },
  15274. 12: {
  15275. Ffc: *(*struct {
  15276. Fcode [0]Tush
  15277. Ffreq Tush
  15278. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(60)})),
  15279. Fdl: *(*struct {
  15280. Flen1 [0]Tush
  15281. Fdad Tush
  15282. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15283. },
  15284. 13: {
  15285. Ffc: *(*struct {
  15286. Fcode [0]Tush
  15287. Ffreq Tush
  15288. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(188)})),
  15289. Fdl: *(*struct {
  15290. Flen1 [0]Tush
  15291. Fdad Tush
  15292. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15293. },
  15294. 14: {
  15295. Ffc: *(*struct {
  15296. Fcode [0]Tush
  15297. Ffreq Tush
  15298. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(124)})),
  15299. Fdl: *(*struct {
  15300. Flen1 [0]Tush
  15301. Fdad Tush
  15302. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15303. },
  15304. 15: {
  15305. Ffc: *(*struct {
  15306. Fcode [0]Tush
  15307. Ffreq Tush
  15308. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(252)})),
  15309. Fdl: *(*struct {
  15310. Flen1 [0]Tush
  15311. Fdad Tush
  15312. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15313. },
  15314. 16: {
  15315. Ffc: *(*struct {
  15316. Fcode [0]Tush
  15317. Ffreq Tush
  15318. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(2)})),
  15319. Fdl: *(*struct {
  15320. Flen1 [0]Tush
  15321. Fdad Tush
  15322. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15323. },
  15324. 17: {
  15325. Ffc: *(*struct {
  15326. Fcode [0]Tush
  15327. Ffreq Tush
  15328. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(130)})),
  15329. Fdl: *(*struct {
  15330. Flen1 [0]Tush
  15331. Fdad Tush
  15332. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15333. },
  15334. 18: {
  15335. Ffc: *(*struct {
  15336. Fcode [0]Tush
  15337. Ffreq Tush
  15338. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(66)})),
  15339. Fdl: *(*struct {
  15340. Flen1 [0]Tush
  15341. Fdad Tush
  15342. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15343. },
  15344. 19: {
  15345. Ffc: *(*struct {
  15346. Fcode [0]Tush
  15347. Ffreq Tush
  15348. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(194)})),
  15349. Fdl: *(*struct {
  15350. Flen1 [0]Tush
  15351. Fdad Tush
  15352. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15353. },
  15354. 20: {
  15355. Ffc: *(*struct {
  15356. Fcode [0]Tush
  15357. Ffreq Tush
  15358. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(34)})),
  15359. Fdl: *(*struct {
  15360. Flen1 [0]Tush
  15361. Fdad Tush
  15362. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15363. },
  15364. 21: {
  15365. Ffc: *(*struct {
  15366. Fcode [0]Tush
  15367. Ffreq Tush
  15368. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(162)})),
  15369. Fdl: *(*struct {
  15370. Flen1 [0]Tush
  15371. Fdad Tush
  15372. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15373. },
  15374. 22: {
  15375. Ffc: *(*struct {
  15376. Fcode [0]Tush
  15377. Ffreq Tush
  15378. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(98)})),
  15379. Fdl: *(*struct {
  15380. Flen1 [0]Tush
  15381. Fdad Tush
  15382. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15383. },
  15384. 23: {
  15385. Ffc: *(*struct {
  15386. Fcode [0]Tush
  15387. Ffreq Tush
  15388. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(226)})),
  15389. Fdl: *(*struct {
  15390. Flen1 [0]Tush
  15391. Fdad Tush
  15392. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15393. },
  15394. 24: {
  15395. Ffc: *(*struct {
  15396. Fcode [0]Tush
  15397. Ffreq Tush
  15398. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(18)})),
  15399. Fdl: *(*struct {
  15400. Flen1 [0]Tush
  15401. Fdad Tush
  15402. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15403. },
  15404. 25: {
  15405. Ffc: *(*struct {
  15406. Fcode [0]Tush
  15407. Ffreq Tush
  15408. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(146)})),
  15409. Fdl: *(*struct {
  15410. Flen1 [0]Tush
  15411. Fdad Tush
  15412. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15413. },
  15414. 26: {
  15415. Ffc: *(*struct {
  15416. Fcode [0]Tush
  15417. Ffreq Tush
  15418. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(82)})),
  15419. Fdl: *(*struct {
  15420. Flen1 [0]Tush
  15421. Fdad Tush
  15422. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15423. },
  15424. 27: {
  15425. Ffc: *(*struct {
  15426. Fcode [0]Tush
  15427. Ffreq Tush
  15428. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(210)})),
  15429. Fdl: *(*struct {
  15430. Flen1 [0]Tush
  15431. Fdad Tush
  15432. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15433. },
  15434. 28: {
  15435. Ffc: *(*struct {
  15436. Fcode [0]Tush
  15437. Ffreq Tush
  15438. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(50)})),
  15439. Fdl: *(*struct {
  15440. Flen1 [0]Tush
  15441. Fdad Tush
  15442. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15443. },
  15444. 29: {
  15445. Ffc: *(*struct {
  15446. Fcode [0]Tush
  15447. Ffreq Tush
  15448. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(178)})),
  15449. Fdl: *(*struct {
  15450. Flen1 [0]Tush
  15451. Fdad Tush
  15452. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15453. },
  15454. 30: {
  15455. Ffc: *(*struct {
  15456. Fcode [0]Tush
  15457. Ffreq Tush
  15458. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(114)})),
  15459. Fdl: *(*struct {
  15460. Flen1 [0]Tush
  15461. Fdad Tush
  15462. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15463. },
  15464. 31: {
  15465. Ffc: *(*struct {
  15466. Fcode [0]Tush
  15467. Ffreq Tush
  15468. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(242)})),
  15469. Fdl: *(*struct {
  15470. Flen1 [0]Tush
  15471. Fdad Tush
  15472. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15473. },
  15474. 32: {
  15475. Ffc: *(*struct {
  15476. Fcode [0]Tush
  15477. Ffreq Tush
  15478. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(10)})),
  15479. Fdl: *(*struct {
  15480. Flen1 [0]Tush
  15481. Fdad Tush
  15482. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15483. },
  15484. 33: {
  15485. Ffc: *(*struct {
  15486. Fcode [0]Tush
  15487. Ffreq Tush
  15488. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(138)})),
  15489. Fdl: *(*struct {
  15490. Flen1 [0]Tush
  15491. Fdad Tush
  15492. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15493. },
  15494. 34: {
  15495. Ffc: *(*struct {
  15496. Fcode [0]Tush
  15497. Ffreq Tush
  15498. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(74)})),
  15499. Fdl: *(*struct {
  15500. Flen1 [0]Tush
  15501. Fdad Tush
  15502. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15503. },
  15504. 35: {
  15505. Ffc: *(*struct {
  15506. Fcode [0]Tush
  15507. Ffreq Tush
  15508. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(202)})),
  15509. Fdl: *(*struct {
  15510. Flen1 [0]Tush
  15511. Fdad Tush
  15512. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15513. },
  15514. 36: {
  15515. Ffc: *(*struct {
  15516. Fcode [0]Tush
  15517. Ffreq Tush
  15518. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(42)})),
  15519. Fdl: *(*struct {
  15520. Flen1 [0]Tush
  15521. Fdad Tush
  15522. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15523. },
  15524. 37: {
  15525. Ffc: *(*struct {
  15526. Fcode [0]Tush
  15527. Ffreq Tush
  15528. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(170)})),
  15529. Fdl: *(*struct {
  15530. Flen1 [0]Tush
  15531. Fdad Tush
  15532. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15533. },
  15534. 38: {
  15535. Ffc: *(*struct {
  15536. Fcode [0]Tush
  15537. Ffreq Tush
  15538. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(106)})),
  15539. Fdl: *(*struct {
  15540. Flen1 [0]Tush
  15541. Fdad Tush
  15542. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15543. },
  15544. 39: {
  15545. Ffc: *(*struct {
  15546. Fcode [0]Tush
  15547. Ffreq Tush
  15548. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(234)})),
  15549. Fdl: *(*struct {
  15550. Flen1 [0]Tush
  15551. Fdad Tush
  15552. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15553. },
  15554. 40: {
  15555. Ffc: *(*struct {
  15556. Fcode [0]Tush
  15557. Ffreq Tush
  15558. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(26)})),
  15559. Fdl: *(*struct {
  15560. Flen1 [0]Tush
  15561. Fdad Tush
  15562. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15563. },
  15564. 41: {
  15565. Ffc: *(*struct {
  15566. Fcode [0]Tush
  15567. Ffreq Tush
  15568. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(154)})),
  15569. Fdl: *(*struct {
  15570. Flen1 [0]Tush
  15571. Fdad Tush
  15572. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15573. },
  15574. 42: {
  15575. Ffc: *(*struct {
  15576. Fcode [0]Tush
  15577. Ffreq Tush
  15578. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(90)})),
  15579. Fdl: *(*struct {
  15580. Flen1 [0]Tush
  15581. Fdad Tush
  15582. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15583. },
  15584. 43: {
  15585. Ffc: *(*struct {
  15586. Fcode [0]Tush
  15587. Ffreq Tush
  15588. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(218)})),
  15589. Fdl: *(*struct {
  15590. Flen1 [0]Tush
  15591. Fdad Tush
  15592. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15593. },
  15594. 44: {
  15595. Ffc: *(*struct {
  15596. Fcode [0]Tush
  15597. Ffreq Tush
  15598. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(58)})),
  15599. Fdl: *(*struct {
  15600. Flen1 [0]Tush
  15601. Fdad Tush
  15602. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15603. },
  15604. 45: {
  15605. Ffc: *(*struct {
  15606. Fcode [0]Tush
  15607. Ffreq Tush
  15608. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(186)})),
  15609. Fdl: *(*struct {
  15610. Flen1 [0]Tush
  15611. Fdad Tush
  15612. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15613. },
  15614. 46: {
  15615. Ffc: *(*struct {
  15616. Fcode [0]Tush
  15617. Ffreq Tush
  15618. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(122)})),
  15619. Fdl: *(*struct {
  15620. Flen1 [0]Tush
  15621. Fdad Tush
  15622. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15623. },
  15624. 47: {
  15625. Ffc: *(*struct {
  15626. Fcode [0]Tush
  15627. Ffreq Tush
  15628. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(250)})),
  15629. Fdl: *(*struct {
  15630. Flen1 [0]Tush
  15631. Fdad Tush
  15632. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15633. },
  15634. 48: {
  15635. Ffc: *(*struct {
  15636. Fcode [0]Tush
  15637. Ffreq Tush
  15638. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(6)})),
  15639. Fdl: *(*struct {
  15640. Flen1 [0]Tush
  15641. Fdad Tush
  15642. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15643. },
  15644. 49: {
  15645. Ffc: *(*struct {
  15646. Fcode [0]Tush
  15647. Ffreq Tush
  15648. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(134)})),
  15649. Fdl: *(*struct {
  15650. Flen1 [0]Tush
  15651. Fdad Tush
  15652. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15653. },
  15654. 50: {
  15655. Ffc: *(*struct {
  15656. Fcode [0]Tush
  15657. Ffreq Tush
  15658. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(70)})),
  15659. Fdl: *(*struct {
  15660. Flen1 [0]Tush
  15661. Fdad Tush
  15662. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15663. },
  15664. 51: {
  15665. Ffc: *(*struct {
  15666. Fcode [0]Tush
  15667. Ffreq Tush
  15668. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(198)})),
  15669. Fdl: *(*struct {
  15670. Flen1 [0]Tush
  15671. Fdad Tush
  15672. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15673. },
  15674. 52: {
  15675. Ffc: *(*struct {
  15676. Fcode [0]Tush
  15677. Ffreq Tush
  15678. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(38)})),
  15679. Fdl: *(*struct {
  15680. Flen1 [0]Tush
  15681. Fdad Tush
  15682. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15683. },
  15684. 53: {
  15685. Ffc: *(*struct {
  15686. Fcode [0]Tush
  15687. Ffreq Tush
  15688. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(166)})),
  15689. Fdl: *(*struct {
  15690. Flen1 [0]Tush
  15691. Fdad Tush
  15692. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15693. },
  15694. 54: {
  15695. Ffc: *(*struct {
  15696. Fcode [0]Tush
  15697. Ffreq Tush
  15698. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(102)})),
  15699. Fdl: *(*struct {
  15700. Flen1 [0]Tush
  15701. Fdad Tush
  15702. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15703. },
  15704. 55: {
  15705. Ffc: *(*struct {
  15706. Fcode [0]Tush
  15707. Ffreq Tush
  15708. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(230)})),
  15709. Fdl: *(*struct {
  15710. Flen1 [0]Tush
  15711. Fdad Tush
  15712. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15713. },
  15714. 56: {
  15715. Ffc: *(*struct {
  15716. Fcode [0]Tush
  15717. Ffreq Tush
  15718. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(22)})),
  15719. Fdl: *(*struct {
  15720. Flen1 [0]Tush
  15721. Fdad Tush
  15722. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15723. },
  15724. 57: {
  15725. Ffc: *(*struct {
  15726. Fcode [0]Tush
  15727. Ffreq Tush
  15728. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(150)})),
  15729. Fdl: *(*struct {
  15730. Flen1 [0]Tush
  15731. Fdad Tush
  15732. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15733. },
  15734. 58: {
  15735. Ffc: *(*struct {
  15736. Fcode [0]Tush
  15737. Ffreq Tush
  15738. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(86)})),
  15739. Fdl: *(*struct {
  15740. Flen1 [0]Tush
  15741. Fdad Tush
  15742. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15743. },
  15744. 59: {
  15745. Ffc: *(*struct {
  15746. Fcode [0]Tush
  15747. Ffreq Tush
  15748. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(214)})),
  15749. Fdl: *(*struct {
  15750. Flen1 [0]Tush
  15751. Fdad Tush
  15752. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15753. },
  15754. 60: {
  15755. Ffc: *(*struct {
  15756. Fcode [0]Tush
  15757. Ffreq Tush
  15758. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(54)})),
  15759. Fdl: *(*struct {
  15760. Flen1 [0]Tush
  15761. Fdad Tush
  15762. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15763. },
  15764. 61: {
  15765. Ffc: *(*struct {
  15766. Fcode [0]Tush
  15767. Ffreq Tush
  15768. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(182)})),
  15769. Fdl: *(*struct {
  15770. Flen1 [0]Tush
  15771. Fdad Tush
  15772. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15773. },
  15774. 62: {
  15775. Ffc: *(*struct {
  15776. Fcode [0]Tush
  15777. Ffreq Tush
  15778. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(118)})),
  15779. Fdl: *(*struct {
  15780. Flen1 [0]Tush
  15781. Fdad Tush
  15782. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15783. },
  15784. 63: {
  15785. Ffc: *(*struct {
  15786. Fcode [0]Tush
  15787. Ffreq Tush
  15788. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(246)})),
  15789. Fdl: *(*struct {
  15790. Flen1 [0]Tush
  15791. Fdad Tush
  15792. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15793. },
  15794. 64: {
  15795. Ffc: *(*struct {
  15796. Fcode [0]Tush
  15797. Ffreq Tush
  15798. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(14)})),
  15799. Fdl: *(*struct {
  15800. Flen1 [0]Tush
  15801. Fdad Tush
  15802. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15803. },
  15804. 65: {
  15805. Ffc: *(*struct {
  15806. Fcode [0]Tush
  15807. Ffreq Tush
  15808. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(142)})),
  15809. Fdl: *(*struct {
  15810. Flen1 [0]Tush
  15811. Fdad Tush
  15812. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15813. },
  15814. 66: {
  15815. Ffc: *(*struct {
  15816. Fcode [0]Tush
  15817. Ffreq Tush
  15818. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(78)})),
  15819. Fdl: *(*struct {
  15820. Flen1 [0]Tush
  15821. Fdad Tush
  15822. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15823. },
  15824. 67: {
  15825. Ffc: *(*struct {
  15826. Fcode [0]Tush
  15827. Ffreq Tush
  15828. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(206)})),
  15829. Fdl: *(*struct {
  15830. Flen1 [0]Tush
  15831. Fdad Tush
  15832. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15833. },
  15834. 68: {
  15835. Ffc: *(*struct {
  15836. Fcode [0]Tush
  15837. Ffreq Tush
  15838. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(46)})),
  15839. Fdl: *(*struct {
  15840. Flen1 [0]Tush
  15841. Fdad Tush
  15842. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15843. },
  15844. 69: {
  15845. Ffc: *(*struct {
  15846. Fcode [0]Tush
  15847. Ffreq Tush
  15848. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(174)})),
  15849. Fdl: *(*struct {
  15850. Flen1 [0]Tush
  15851. Fdad Tush
  15852. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15853. },
  15854. 70: {
  15855. Ffc: *(*struct {
  15856. Fcode [0]Tush
  15857. Ffreq Tush
  15858. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(110)})),
  15859. Fdl: *(*struct {
  15860. Flen1 [0]Tush
  15861. Fdad Tush
  15862. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15863. },
  15864. 71: {
  15865. Ffc: *(*struct {
  15866. Fcode [0]Tush
  15867. Ffreq Tush
  15868. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(238)})),
  15869. Fdl: *(*struct {
  15870. Flen1 [0]Tush
  15871. Fdad Tush
  15872. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15873. },
  15874. 72: {
  15875. Ffc: *(*struct {
  15876. Fcode [0]Tush
  15877. Ffreq Tush
  15878. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(30)})),
  15879. Fdl: *(*struct {
  15880. Flen1 [0]Tush
  15881. Fdad Tush
  15882. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15883. },
  15884. 73: {
  15885. Ffc: *(*struct {
  15886. Fcode [0]Tush
  15887. Ffreq Tush
  15888. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(158)})),
  15889. Fdl: *(*struct {
  15890. Flen1 [0]Tush
  15891. Fdad Tush
  15892. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15893. },
  15894. 74: {
  15895. Ffc: *(*struct {
  15896. Fcode [0]Tush
  15897. Ffreq Tush
  15898. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(94)})),
  15899. Fdl: *(*struct {
  15900. Flen1 [0]Tush
  15901. Fdad Tush
  15902. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15903. },
  15904. 75: {
  15905. Ffc: *(*struct {
  15906. Fcode [0]Tush
  15907. Ffreq Tush
  15908. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(222)})),
  15909. Fdl: *(*struct {
  15910. Flen1 [0]Tush
  15911. Fdad Tush
  15912. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15913. },
  15914. 76: {
  15915. Ffc: *(*struct {
  15916. Fcode [0]Tush
  15917. Ffreq Tush
  15918. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(62)})),
  15919. Fdl: *(*struct {
  15920. Flen1 [0]Tush
  15921. Fdad Tush
  15922. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15923. },
  15924. 77: {
  15925. Ffc: *(*struct {
  15926. Fcode [0]Tush
  15927. Ffreq Tush
  15928. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(190)})),
  15929. Fdl: *(*struct {
  15930. Flen1 [0]Tush
  15931. Fdad Tush
  15932. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15933. },
  15934. 78: {
  15935. Ffc: *(*struct {
  15936. Fcode [0]Tush
  15937. Ffreq Tush
  15938. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(126)})),
  15939. Fdl: *(*struct {
  15940. Flen1 [0]Tush
  15941. Fdad Tush
  15942. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15943. },
  15944. 79: {
  15945. Ffc: *(*struct {
  15946. Fcode [0]Tush
  15947. Ffreq Tush
  15948. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(254)})),
  15949. Fdl: *(*struct {
  15950. Flen1 [0]Tush
  15951. Fdad Tush
  15952. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15953. },
  15954. 80: {
  15955. Ffc: *(*struct {
  15956. Fcode [0]Tush
  15957. Ffreq Tush
  15958. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(1)})),
  15959. Fdl: *(*struct {
  15960. Flen1 [0]Tush
  15961. Fdad Tush
  15962. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15963. },
  15964. 81: {
  15965. Ffc: *(*struct {
  15966. Fcode [0]Tush
  15967. Ffreq Tush
  15968. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(129)})),
  15969. Fdl: *(*struct {
  15970. Flen1 [0]Tush
  15971. Fdad Tush
  15972. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15973. },
  15974. 82: {
  15975. Ffc: *(*struct {
  15976. Fcode [0]Tush
  15977. Ffreq Tush
  15978. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(65)})),
  15979. Fdl: *(*struct {
  15980. Flen1 [0]Tush
  15981. Fdad Tush
  15982. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15983. },
  15984. 83: {
  15985. Ffc: *(*struct {
  15986. Fcode [0]Tush
  15987. Ffreq Tush
  15988. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(193)})),
  15989. Fdl: *(*struct {
  15990. Flen1 [0]Tush
  15991. Fdad Tush
  15992. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  15993. },
  15994. 84: {
  15995. Ffc: *(*struct {
  15996. Fcode [0]Tush
  15997. Ffreq Tush
  15998. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(33)})),
  15999. Fdl: *(*struct {
  16000. Flen1 [0]Tush
  16001. Fdad Tush
  16002. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16003. },
  16004. 85: {
  16005. Ffc: *(*struct {
  16006. Fcode [0]Tush
  16007. Ffreq Tush
  16008. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(161)})),
  16009. Fdl: *(*struct {
  16010. Flen1 [0]Tush
  16011. Fdad Tush
  16012. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16013. },
  16014. 86: {
  16015. Ffc: *(*struct {
  16016. Fcode [0]Tush
  16017. Ffreq Tush
  16018. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(97)})),
  16019. Fdl: *(*struct {
  16020. Flen1 [0]Tush
  16021. Fdad Tush
  16022. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16023. },
  16024. 87: {
  16025. Ffc: *(*struct {
  16026. Fcode [0]Tush
  16027. Ffreq Tush
  16028. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(225)})),
  16029. Fdl: *(*struct {
  16030. Flen1 [0]Tush
  16031. Fdad Tush
  16032. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16033. },
  16034. 88: {
  16035. Ffc: *(*struct {
  16036. Fcode [0]Tush
  16037. Ffreq Tush
  16038. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(17)})),
  16039. Fdl: *(*struct {
  16040. Flen1 [0]Tush
  16041. Fdad Tush
  16042. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16043. },
  16044. 89: {
  16045. Ffc: *(*struct {
  16046. Fcode [0]Tush
  16047. Ffreq Tush
  16048. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(145)})),
  16049. Fdl: *(*struct {
  16050. Flen1 [0]Tush
  16051. Fdad Tush
  16052. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16053. },
  16054. 90: {
  16055. Ffc: *(*struct {
  16056. Fcode [0]Tush
  16057. Ffreq Tush
  16058. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(81)})),
  16059. Fdl: *(*struct {
  16060. Flen1 [0]Tush
  16061. Fdad Tush
  16062. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16063. },
  16064. 91: {
  16065. Ffc: *(*struct {
  16066. Fcode [0]Tush
  16067. Ffreq Tush
  16068. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(209)})),
  16069. Fdl: *(*struct {
  16070. Flen1 [0]Tush
  16071. Fdad Tush
  16072. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16073. },
  16074. 92: {
  16075. Ffc: *(*struct {
  16076. Fcode [0]Tush
  16077. Ffreq Tush
  16078. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(49)})),
  16079. Fdl: *(*struct {
  16080. Flen1 [0]Tush
  16081. Fdad Tush
  16082. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16083. },
  16084. 93: {
  16085. Ffc: *(*struct {
  16086. Fcode [0]Tush
  16087. Ffreq Tush
  16088. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(177)})),
  16089. Fdl: *(*struct {
  16090. Flen1 [0]Tush
  16091. Fdad Tush
  16092. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16093. },
  16094. 94: {
  16095. Ffc: *(*struct {
  16096. Fcode [0]Tush
  16097. Ffreq Tush
  16098. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(113)})),
  16099. Fdl: *(*struct {
  16100. Flen1 [0]Tush
  16101. Fdad Tush
  16102. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16103. },
  16104. 95: {
  16105. Ffc: *(*struct {
  16106. Fcode [0]Tush
  16107. Ffreq Tush
  16108. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(241)})),
  16109. Fdl: *(*struct {
  16110. Flen1 [0]Tush
  16111. Fdad Tush
  16112. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16113. },
  16114. 96: {
  16115. Ffc: *(*struct {
  16116. Fcode [0]Tush
  16117. Ffreq Tush
  16118. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16119. Fdl: *(*struct {
  16120. Flen1 [0]Tush
  16121. Fdad Tush
  16122. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16123. },
  16124. 97: {
  16125. Ffc: *(*struct {
  16126. Fcode [0]Tush
  16127. Ffreq Tush
  16128. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(137)})),
  16129. Fdl: *(*struct {
  16130. Flen1 [0]Tush
  16131. Fdad Tush
  16132. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16133. },
  16134. 98: {
  16135. Ffc: *(*struct {
  16136. Fcode [0]Tush
  16137. Ffreq Tush
  16138. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(73)})),
  16139. Fdl: *(*struct {
  16140. Flen1 [0]Tush
  16141. Fdad Tush
  16142. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16143. },
  16144. 99: {
  16145. Ffc: *(*struct {
  16146. Fcode [0]Tush
  16147. Ffreq Tush
  16148. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(201)})),
  16149. Fdl: *(*struct {
  16150. Flen1 [0]Tush
  16151. Fdad Tush
  16152. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16153. },
  16154. 100: {
  16155. Ffc: *(*struct {
  16156. Fcode [0]Tush
  16157. Ffreq Tush
  16158. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(41)})),
  16159. Fdl: *(*struct {
  16160. Flen1 [0]Tush
  16161. Fdad Tush
  16162. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16163. },
  16164. 101: {
  16165. Ffc: *(*struct {
  16166. Fcode [0]Tush
  16167. Ffreq Tush
  16168. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(169)})),
  16169. Fdl: *(*struct {
  16170. Flen1 [0]Tush
  16171. Fdad Tush
  16172. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16173. },
  16174. 102: {
  16175. Ffc: *(*struct {
  16176. Fcode [0]Tush
  16177. Ffreq Tush
  16178. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(105)})),
  16179. Fdl: *(*struct {
  16180. Flen1 [0]Tush
  16181. Fdad Tush
  16182. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16183. },
  16184. 103: {
  16185. Ffc: *(*struct {
  16186. Fcode [0]Tush
  16187. Ffreq Tush
  16188. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(233)})),
  16189. Fdl: *(*struct {
  16190. Flen1 [0]Tush
  16191. Fdad Tush
  16192. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16193. },
  16194. 104: {
  16195. Ffc: *(*struct {
  16196. Fcode [0]Tush
  16197. Ffreq Tush
  16198. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(25)})),
  16199. Fdl: *(*struct {
  16200. Flen1 [0]Tush
  16201. Fdad Tush
  16202. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16203. },
  16204. 105: {
  16205. Ffc: *(*struct {
  16206. Fcode [0]Tush
  16207. Ffreq Tush
  16208. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(153)})),
  16209. Fdl: *(*struct {
  16210. Flen1 [0]Tush
  16211. Fdad Tush
  16212. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16213. },
  16214. 106: {
  16215. Ffc: *(*struct {
  16216. Fcode [0]Tush
  16217. Ffreq Tush
  16218. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(89)})),
  16219. Fdl: *(*struct {
  16220. Flen1 [0]Tush
  16221. Fdad Tush
  16222. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16223. },
  16224. 107: {
  16225. Ffc: *(*struct {
  16226. Fcode [0]Tush
  16227. Ffreq Tush
  16228. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(217)})),
  16229. Fdl: *(*struct {
  16230. Flen1 [0]Tush
  16231. Fdad Tush
  16232. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16233. },
  16234. 108: {
  16235. Ffc: *(*struct {
  16236. Fcode [0]Tush
  16237. Ffreq Tush
  16238. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(57)})),
  16239. Fdl: *(*struct {
  16240. Flen1 [0]Tush
  16241. Fdad Tush
  16242. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16243. },
  16244. 109: {
  16245. Ffc: *(*struct {
  16246. Fcode [0]Tush
  16247. Ffreq Tush
  16248. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(185)})),
  16249. Fdl: *(*struct {
  16250. Flen1 [0]Tush
  16251. Fdad Tush
  16252. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16253. },
  16254. 110: {
  16255. Ffc: *(*struct {
  16256. Fcode [0]Tush
  16257. Ffreq Tush
  16258. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(121)})),
  16259. Fdl: *(*struct {
  16260. Flen1 [0]Tush
  16261. Fdad Tush
  16262. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16263. },
  16264. 111: {
  16265. Ffc: *(*struct {
  16266. Fcode [0]Tush
  16267. Ffreq Tush
  16268. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(249)})),
  16269. Fdl: *(*struct {
  16270. Flen1 [0]Tush
  16271. Fdad Tush
  16272. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16273. },
  16274. 112: {
  16275. Ffc: *(*struct {
  16276. Fcode [0]Tush
  16277. Ffreq Tush
  16278. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  16279. Fdl: *(*struct {
  16280. Flen1 [0]Tush
  16281. Fdad Tush
  16282. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16283. },
  16284. 113: {
  16285. Ffc: *(*struct {
  16286. Fcode [0]Tush
  16287. Ffreq Tush
  16288. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(133)})),
  16289. Fdl: *(*struct {
  16290. Flen1 [0]Tush
  16291. Fdad Tush
  16292. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16293. },
  16294. 114: {
  16295. Ffc: *(*struct {
  16296. Fcode [0]Tush
  16297. Ffreq Tush
  16298. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(69)})),
  16299. Fdl: *(*struct {
  16300. Flen1 [0]Tush
  16301. Fdad Tush
  16302. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16303. },
  16304. 115: {
  16305. Ffc: *(*struct {
  16306. Fcode [0]Tush
  16307. Ffreq Tush
  16308. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(197)})),
  16309. Fdl: *(*struct {
  16310. Flen1 [0]Tush
  16311. Fdad Tush
  16312. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16313. },
  16314. 116: {
  16315. Ffc: *(*struct {
  16316. Fcode [0]Tush
  16317. Ffreq Tush
  16318. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(37)})),
  16319. Fdl: *(*struct {
  16320. Flen1 [0]Tush
  16321. Fdad Tush
  16322. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16323. },
  16324. 117: {
  16325. Ffc: *(*struct {
  16326. Fcode [0]Tush
  16327. Ffreq Tush
  16328. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(165)})),
  16329. Fdl: *(*struct {
  16330. Flen1 [0]Tush
  16331. Fdad Tush
  16332. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16333. },
  16334. 118: {
  16335. Ffc: *(*struct {
  16336. Fcode [0]Tush
  16337. Ffreq Tush
  16338. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(101)})),
  16339. Fdl: *(*struct {
  16340. Flen1 [0]Tush
  16341. Fdad Tush
  16342. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16343. },
  16344. 119: {
  16345. Ffc: *(*struct {
  16346. Fcode [0]Tush
  16347. Ffreq Tush
  16348. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(229)})),
  16349. Fdl: *(*struct {
  16350. Flen1 [0]Tush
  16351. Fdad Tush
  16352. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16353. },
  16354. 120: {
  16355. Ffc: *(*struct {
  16356. Fcode [0]Tush
  16357. Ffreq Tush
  16358. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(21)})),
  16359. Fdl: *(*struct {
  16360. Flen1 [0]Tush
  16361. Fdad Tush
  16362. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16363. },
  16364. 121: {
  16365. Ffc: *(*struct {
  16366. Fcode [0]Tush
  16367. Ffreq Tush
  16368. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(149)})),
  16369. Fdl: *(*struct {
  16370. Flen1 [0]Tush
  16371. Fdad Tush
  16372. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16373. },
  16374. 122: {
  16375. Ffc: *(*struct {
  16376. Fcode [0]Tush
  16377. Ffreq Tush
  16378. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(85)})),
  16379. Fdl: *(*struct {
  16380. Flen1 [0]Tush
  16381. Fdad Tush
  16382. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16383. },
  16384. 123: {
  16385. Ffc: *(*struct {
  16386. Fcode [0]Tush
  16387. Ffreq Tush
  16388. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(213)})),
  16389. Fdl: *(*struct {
  16390. Flen1 [0]Tush
  16391. Fdad Tush
  16392. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16393. },
  16394. 124: {
  16395. Ffc: *(*struct {
  16396. Fcode [0]Tush
  16397. Ffreq Tush
  16398. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(53)})),
  16399. Fdl: *(*struct {
  16400. Flen1 [0]Tush
  16401. Fdad Tush
  16402. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16403. },
  16404. 125: {
  16405. Ffc: *(*struct {
  16406. Fcode [0]Tush
  16407. Ffreq Tush
  16408. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(181)})),
  16409. Fdl: *(*struct {
  16410. Flen1 [0]Tush
  16411. Fdad Tush
  16412. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16413. },
  16414. 126: {
  16415. Ffc: *(*struct {
  16416. Fcode [0]Tush
  16417. Ffreq Tush
  16418. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(117)})),
  16419. Fdl: *(*struct {
  16420. Flen1 [0]Tush
  16421. Fdad Tush
  16422. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16423. },
  16424. 127: {
  16425. Ffc: *(*struct {
  16426. Fcode [0]Tush
  16427. Ffreq Tush
  16428. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(245)})),
  16429. Fdl: *(*struct {
  16430. Flen1 [0]Tush
  16431. Fdad Tush
  16432. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16433. },
  16434. 128: {
  16435. Ffc: *(*struct {
  16436. Fcode [0]Tush
  16437. Ffreq Tush
  16438. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(13)})),
  16439. Fdl: *(*struct {
  16440. Flen1 [0]Tush
  16441. Fdad Tush
  16442. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16443. },
  16444. 129: {
  16445. Ffc: *(*struct {
  16446. Fcode [0]Tush
  16447. Ffreq Tush
  16448. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(141)})),
  16449. Fdl: *(*struct {
  16450. Flen1 [0]Tush
  16451. Fdad Tush
  16452. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16453. },
  16454. 130: {
  16455. Ffc: *(*struct {
  16456. Fcode [0]Tush
  16457. Ffreq Tush
  16458. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(77)})),
  16459. Fdl: *(*struct {
  16460. Flen1 [0]Tush
  16461. Fdad Tush
  16462. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16463. },
  16464. 131: {
  16465. Ffc: *(*struct {
  16466. Fcode [0]Tush
  16467. Ffreq Tush
  16468. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(205)})),
  16469. Fdl: *(*struct {
  16470. Flen1 [0]Tush
  16471. Fdad Tush
  16472. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16473. },
  16474. 132: {
  16475. Ffc: *(*struct {
  16476. Fcode [0]Tush
  16477. Ffreq Tush
  16478. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(45)})),
  16479. Fdl: *(*struct {
  16480. Flen1 [0]Tush
  16481. Fdad Tush
  16482. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16483. },
  16484. 133: {
  16485. Ffc: *(*struct {
  16486. Fcode [0]Tush
  16487. Ffreq Tush
  16488. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(173)})),
  16489. Fdl: *(*struct {
  16490. Flen1 [0]Tush
  16491. Fdad Tush
  16492. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16493. },
  16494. 134: {
  16495. Ffc: *(*struct {
  16496. Fcode [0]Tush
  16497. Ffreq Tush
  16498. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(109)})),
  16499. Fdl: *(*struct {
  16500. Flen1 [0]Tush
  16501. Fdad Tush
  16502. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16503. },
  16504. 135: {
  16505. Ffc: *(*struct {
  16506. Fcode [0]Tush
  16507. Ffreq Tush
  16508. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(237)})),
  16509. Fdl: *(*struct {
  16510. Flen1 [0]Tush
  16511. Fdad Tush
  16512. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16513. },
  16514. 136: {
  16515. Ffc: *(*struct {
  16516. Fcode [0]Tush
  16517. Ffreq Tush
  16518. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(29)})),
  16519. Fdl: *(*struct {
  16520. Flen1 [0]Tush
  16521. Fdad Tush
  16522. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16523. },
  16524. 137: {
  16525. Ffc: *(*struct {
  16526. Fcode [0]Tush
  16527. Ffreq Tush
  16528. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(157)})),
  16529. Fdl: *(*struct {
  16530. Flen1 [0]Tush
  16531. Fdad Tush
  16532. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16533. },
  16534. 138: {
  16535. Ffc: *(*struct {
  16536. Fcode [0]Tush
  16537. Ffreq Tush
  16538. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(93)})),
  16539. Fdl: *(*struct {
  16540. Flen1 [0]Tush
  16541. Fdad Tush
  16542. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16543. },
  16544. 139: {
  16545. Ffc: *(*struct {
  16546. Fcode [0]Tush
  16547. Ffreq Tush
  16548. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(221)})),
  16549. Fdl: *(*struct {
  16550. Flen1 [0]Tush
  16551. Fdad Tush
  16552. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16553. },
  16554. 140: {
  16555. Ffc: *(*struct {
  16556. Fcode [0]Tush
  16557. Ffreq Tush
  16558. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(61)})),
  16559. Fdl: *(*struct {
  16560. Flen1 [0]Tush
  16561. Fdad Tush
  16562. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16563. },
  16564. 141: {
  16565. Ffc: *(*struct {
  16566. Fcode [0]Tush
  16567. Ffreq Tush
  16568. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(189)})),
  16569. Fdl: *(*struct {
  16570. Flen1 [0]Tush
  16571. Fdad Tush
  16572. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16573. },
  16574. 142: {
  16575. Ffc: *(*struct {
  16576. Fcode [0]Tush
  16577. Ffreq Tush
  16578. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(125)})),
  16579. Fdl: *(*struct {
  16580. Flen1 [0]Tush
  16581. Fdad Tush
  16582. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16583. },
  16584. 143: {
  16585. Ffc: *(*struct {
  16586. Fcode [0]Tush
  16587. Ffreq Tush
  16588. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(253)})),
  16589. Fdl: *(*struct {
  16590. Flen1 [0]Tush
  16591. Fdad Tush
  16592. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  16593. },
  16594. 144: {
  16595. Ffc: *(*struct {
  16596. Fcode [0]Tush
  16597. Ffreq Tush
  16598. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(19)})),
  16599. Fdl: *(*struct {
  16600. Flen1 [0]Tush
  16601. Fdad Tush
  16602. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16603. },
  16604. 145: {
  16605. Ffc: *(*struct {
  16606. Fcode [0]Tush
  16607. Ffreq Tush
  16608. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(275)})),
  16609. Fdl: *(*struct {
  16610. Flen1 [0]Tush
  16611. Fdad Tush
  16612. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16613. },
  16614. 146: {
  16615. Ffc: *(*struct {
  16616. Fcode [0]Tush
  16617. Ffreq Tush
  16618. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(147)})),
  16619. Fdl: *(*struct {
  16620. Flen1 [0]Tush
  16621. Fdad Tush
  16622. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16623. },
  16624. 147: {
  16625. Ffc: *(*struct {
  16626. Fcode [0]Tush
  16627. Ffreq Tush
  16628. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(403)})),
  16629. Fdl: *(*struct {
  16630. Flen1 [0]Tush
  16631. Fdad Tush
  16632. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16633. },
  16634. 148: {
  16635. Ffc: *(*struct {
  16636. Fcode [0]Tush
  16637. Ffreq Tush
  16638. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(83)})),
  16639. Fdl: *(*struct {
  16640. Flen1 [0]Tush
  16641. Fdad Tush
  16642. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16643. },
  16644. 149: {
  16645. Ffc: *(*struct {
  16646. Fcode [0]Tush
  16647. Ffreq Tush
  16648. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(339)})),
  16649. Fdl: *(*struct {
  16650. Flen1 [0]Tush
  16651. Fdad Tush
  16652. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16653. },
  16654. 150: {
  16655. Ffc: *(*struct {
  16656. Fcode [0]Tush
  16657. Ffreq Tush
  16658. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(211)})),
  16659. Fdl: *(*struct {
  16660. Flen1 [0]Tush
  16661. Fdad Tush
  16662. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16663. },
  16664. 151: {
  16665. Ffc: *(*struct {
  16666. Fcode [0]Tush
  16667. Ffreq Tush
  16668. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(467)})),
  16669. Fdl: *(*struct {
  16670. Flen1 [0]Tush
  16671. Fdad Tush
  16672. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16673. },
  16674. 152: {
  16675. Ffc: *(*struct {
  16676. Fcode [0]Tush
  16677. Ffreq Tush
  16678. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(51)})),
  16679. Fdl: *(*struct {
  16680. Flen1 [0]Tush
  16681. Fdad Tush
  16682. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16683. },
  16684. 153: {
  16685. Ffc: *(*struct {
  16686. Fcode [0]Tush
  16687. Ffreq Tush
  16688. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(307)})),
  16689. Fdl: *(*struct {
  16690. Flen1 [0]Tush
  16691. Fdad Tush
  16692. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16693. },
  16694. 154: {
  16695. Ffc: *(*struct {
  16696. Fcode [0]Tush
  16697. Ffreq Tush
  16698. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(179)})),
  16699. Fdl: *(*struct {
  16700. Flen1 [0]Tush
  16701. Fdad Tush
  16702. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16703. },
  16704. 155: {
  16705. Ffc: *(*struct {
  16706. Fcode [0]Tush
  16707. Ffreq Tush
  16708. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(435)})),
  16709. Fdl: *(*struct {
  16710. Flen1 [0]Tush
  16711. Fdad Tush
  16712. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16713. },
  16714. 156: {
  16715. Ffc: *(*struct {
  16716. Fcode [0]Tush
  16717. Ffreq Tush
  16718. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(115)})),
  16719. Fdl: *(*struct {
  16720. Flen1 [0]Tush
  16721. Fdad Tush
  16722. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16723. },
  16724. 157: {
  16725. Ffc: *(*struct {
  16726. Fcode [0]Tush
  16727. Ffreq Tush
  16728. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(371)})),
  16729. Fdl: *(*struct {
  16730. Flen1 [0]Tush
  16731. Fdad Tush
  16732. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16733. },
  16734. 158: {
  16735. Ffc: *(*struct {
  16736. Fcode [0]Tush
  16737. Ffreq Tush
  16738. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(243)})),
  16739. Fdl: *(*struct {
  16740. Flen1 [0]Tush
  16741. Fdad Tush
  16742. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16743. },
  16744. 159: {
  16745. Ffc: *(*struct {
  16746. Fcode [0]Tush
  16747. Ffreq Tush
  16748. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(499)})),
  16749. Fdl: *(*struct {
  16750. Flen1 [0]Tush
  16751. Fdad Tush
  16752. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16753. },
  16754. 160: {
  16755. Ffc: *(*struct {
  16756. Fcode [0]Tush
  16757. Ffreq Tush
  16758. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(11)})),
  16759. Fdl: *(*struct {
  16760. Flen1 [0]Tush
  16761. Fdad Tush
  16762. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16763. },
  16764. 161: {
  16765. Ffc: *(*struct {
  16766. Fcode [0]Tush
  16767. Ffreq Tush
  16768. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(267)})),
  16769. Fdl: *(*struct {
  16770. Flen1 [0]Tush
  16771. Fdad Tush
  16772. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16773. },
  16774. 162: {
  16775. Ffc: *(*struct {
  16776. Fcode [0]Tush
  16777. Ffreq Tush
  16778. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(139)})),
  16779. Fdl: *(*struct {
  16780. Flen1 [0]Tush
  16781. Fdad Tush
  16782. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16783. },
  16784. 163: {
  16785. Ffc: *(*struct {
  16786. Fcode [0]Tush
  16787. Ffreq Tush
  16788. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(395)})),
  16789. Fdl: *(*struct {
  16790. Flen1 [0]Tush
  16791. Fdad Tush
  16792. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16793. },
  16794. 164: {
  16795. Ffc: *(*struct {
  16796. Fcode [0]Tush
  16797. Ffreq Tush
  16798. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(75)})),
  16799. Fdl: *(*struct {
  16800. Flen1 [0]Tush
  16801. Fdad Tush
  16802. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16803. },
  16804. 165: {
  16805. Ffc: *(*struct {
  16806. Fcode [0]Tush
  16807. Ffreq Tush
  16808. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(331)})),
  16809. Fdl: *(*struct {
  16810. Flen1 [0]Tush
  16811. Fdad Tush
  16812. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16813. },
  16814. 166: {
  16815. Ffc: *(*struct {
  16816. Fcode [0]Tush
  16817. Ffreq Tush
  16818. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(203)})),
  16819. Fdl: *(*struct {
  16820. Flen1 [0]Tush
  16821. Fdad Tush
  16822. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16823. },
  16824. 167: {
  16825. Ffc: *(*struct {
  16826. Fcode [0]Tush
  16827. Ffreq Tush
  16828. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(459)})),
  16829. Fdl: *(*struct {
  16830. Flen1 [0]Tush
  16831. Fdad Tush
  16832. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16833. },
  16834. 168: {
  16835. Ffc: *(*struct {
  16836. Fcode [0]Tush
  16837. Ffreq Tush
  16838. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(43)})),
  16839. Fdl: *(*struct {
  16840. Flen1 [0]Tush
  16841. Fdad Tush
  16842. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16843. },
  16844. 169: {
  16845. Ffc: *(*struct {
  16846. Fcode [0]Tush
  16847. Ffreq Tush
  16848. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(299)})),
  16849. Fdl: *(*struct {
  16850. Flen1 [0]Tush
  16851. Fdad Tush
  16852. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16853. },
  16854. 170: {
  16855. Ffc: *(*struct {
  16856. Fcode [0]Tush
  16857. Ffreq Tush
  16858. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(171)})),
  16859. Fdl: *(*struct {
  16860. Flen1 [0]Tush
  16861. Fdad Tush
  16862. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16863. },
  16864. 171: {
  16865. Ffc: *(*struct {
  16866. Fcode [0]Tush
  16867. Ffreq Tush
  16868. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(427)})),
  16869. Fdl: *(*struct {
  16870. Flen1 [0]Tush
  16871. Fdad Tush
  16872. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16873. },
  16874. 172: {
  16875. Ffc: *(*struct {
  16876. Fcode [0]Tush
  16877. Ffreq Tush
  16878. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(107)})),
  16879. Fdl: *(*struct {
  16880. Flen1 [0]Tush
  16881. Fdad Tush
  16882. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16883. },
  16884. 173: {
  16885. Ffc: *(*struct {
  16886. Fcode [0]Tush
  16887. Ffreq Tush
  16888. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(363)})),
  16889. Fdl: *(*struct {
  16890. Flen1 [0]Tush
  16891. Fdad Tush
  16892. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16893. },
  16894. 174: {
  16895. Ffc: *(*struct {
  16896. Fcode [0]Tush
  16897. Ffreq Tush
  16898. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(235)})),
  16899. Fdl: *(*struct {
  16900. Flen1 [0]Tush
  16901. Fdad Tush
  16902. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16903. },
  16904. 175: {
  16905. Ffc: *(*struct {
  16906. Fcode [0]Tush
  16907. Ffreq Tush
  16908. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(491)})),
  16909. Fdl: *(*struct {
  16910. Flen1 [0]Tush
  16911. Fdad Tush
  16912. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16913. },
  16914. 176: {
  16915. Ffc: *(*struct {
  16916. Fcode [0]Tush
  16917. Ffreq Tush
  16918. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(27)})),
  16919. Fdl: *(*struct {
  16920. Flen1 [0]Tush
  16921. Fdad Tush
  16922. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16923. },
  16924. 177: {
  16925. Ffc: *(*struct {
  16926. Fcode [0]Tush
  16927. Ffreq Tush
  16928. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(283)})),
  16929. Fdl: *(*struct {
  16930. Flen1 [0]Tush
  16931. Fdad Tush
  16932. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16933. },
  16934. 178: {
  16935. Ffc: *(*struct {
  16936. Fcode [0]Tush
  16937. Ffreq Tush
  16938. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(155)})),
  16939. Fdl: *(*struct {
  16940. Flen1 [0]Tush
  16941. Fdad Tush
  16942. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16943. },
  16944. 179: {
  16945. Ffc: *(*struct {
  16946. Fcode [0]Tush
  16947. Ffreq Tush
  16948. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(411)})),
  16949. Fdl: *(*struct {
  16950. Flen1 [0]Tush
  16951. Fdad Tush
  16952. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16953. },
  16954. 180: {
  16955. Ffc: *(*struct {
  16956. Fcode [0]Tush
  16957. Ffreq Tush
  16958. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(91)})),
  16959. Fdl: *(*struct {
  16960. Flen1 [0]Tush
  16961. Fdad Tush
  16962. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16963. },
  16964. 181: {
  16965. Ffc: *(*struct {
  16966. Fcode [0]Tush
  16967. Ffreq Tush
  16968. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(347)})),
  16969. Fdl: *(*struct {
  16970. Flen1 [0]Tush
  16971. Fdad Tush
  16972. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16973. },
  16974. 182: {
  16975. Ffc: *(*struct {
  16976. Fcode [0]Tush
  16977. Ffreq Tush
  16978. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(219)})),
  16979. Fdl: *(*struct {
  16980. Flen1 [0]Tush
  16981. Fdad Tush
  16982. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16983. },
  16984. 183: {
  16985. Ffc: *(*struct {
  16986. Fcode [0]Tush
  16987. Ffreq Tush
  16988. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(475)})),
  16989. Fdl: *(*struct {
  16990. Flen1 [0]Tush
  16991. Fdad Tush
  16992. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  16993. },
  16994. 184: {
  16995. Ffc: *(*struct {
  16996. Fcode [0]Tush
  16997. Ffreq Tush
  16998. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(59)})),
  16999. Fdl: *(*struct {
  17000. Flen1 [0]Tush
  17001. Fdad Tush
  17002. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17003. },
  17004. 185: {
  17005. Ffc: *(*struct {
  17006. Fcode [0]Tush
  17007. Ffreq Tush
  17008. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(315)})),
  17009. Fdl: *(*struct {
  17010. Flen1 [0]Tush
  17011. Fdad Tush
  17012. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17013. },
  17014. 186: {
  17015. Ffc: *(*struct {
  17016. Fcode [0]Tush
  17017. Ffreq Tush
  17018. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(187)})),
  17019. Fdl: *(*struct {
  17020. Flen1 [0]Tush
  17021. Fdad Tush
  17022. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17023. },
  17024. 187: {
  17025. Ffc: *(*struct {
  17026. Fcode [0]Tush
  17027. Ffreq Tush
  17028. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(443)})),
  17029. Fdl: *(*struct {
  17030. Flen1 [0]Tush
  17031. Fdad Tush
  17032. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17033. },
  17034. 188: {
  17035. Ffc: *(*struct {
  17036. Fcode [0]Tush
  17037. Ffreq Tush
  17038. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(123)})),
  17039. Fdl: *(*struct {
  17040. Flen1 [0]Tush
  17041. Fdad Tush
  17042. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17043. },
  17044. 189: {
  17045. Ffc: *(*struct {
  17046. Fcode [0]Tush
  17047. Ffreq Tush
  17048. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(379)})),
  17049. Fdl: *(*struct {
  17050. Flen1 [0]Tush
  17051. Fdad Tush
  17052. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17053. },
  17054. 190: {
  17055. Ffc: *(*struct {
  17056. Fcode [0]Tush
  17057. Ffreq Tush
  17058. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(251)})),
  17059. Fdl: *(*struct {
  17060. Flen1 [0]Tush
  17061. Fdad Tush
  17062. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17063. },
  17064. 191: {
  17065. Ffc: *(*struct {
  17066. Fcode [0]Tush
  17067. Ffreq Tush
  17068. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(507)})),
  17069. Fdl: *(*struct {
  17070. Flen1 [0]Tush
  17071. Fdad Tush
  17072. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17073. },
  17074. 192: {
  17075. Ffc: *(*struct {
  17076. Fcode [0]Tush
  17077. Ffreq Tush
  17078. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17079. Fdl: *(*struct {
  17080. Flen1 [0]Tush
  17081. Fdad Tush
  17082. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17083. },
  17084. 193: {
  17085. Ffc: *(*struct {
  17086. Fcode [0]Tush
  17087. Ffreq Tush
  17088. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(263)})),
  17089. Fdl: *(*struct {
  17090. Flen1 [0]Tush
  17091. Fdad Tush
  17092. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17093. },
  17094. 194: {
  17095. Ffc: *(*struct {
  17096. Fcode [0]Tush
  17097. Ffreq Tush
  17098. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(135)})),
  17099. Fdl: *(*struct {
  17100. Flen1 [0]Tush
  17101. Fdad Tush
  17102. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17103. },
  17104. 195: {
  17105. Ffc: *(*struct {
  17106. Fcode [0]Tush
  17107. Ffreq Tush
  17108. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(391)})),
  17109. Fdl: *(*struct {
  17110. Flen1 [0]Tush
  17111. Fdad Tush
  17112. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17113. },
  17114. 196: {
  17115. Ffc: *(*struct {
  17116. Fcode [0]Tush
  17117. Ffreq Tush
  17118. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(71)})),
  17119. Fdl: *(*struct {
  17120. Flen1 [0]Tush
  17121. Fdad Tush
  17122. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17123. },
  17124. 197: {
  17125. Ffc: *(*struct {
  17126. Fcode [0]Tush
  17127. Ffreq Tush
  17128. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(327)})),
  17129. Fdl: *(*struct {
  17130. Flen1 [0]Tush
  17131. Fdad Tush
  17132. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17133. },
  17134. 198: {
  17135. Ffc: *(*struct {
  17136. Fcode [0]Tush
  17137. Ffreq Tush
  17138. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(199)})),
  17139. Fdl: *(*struct {
  17140. Flen1 [0]Tush
  17141. Fdad Tush
  17142. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17143. },
  17144. 199: {
  17145. Ffc: *(*struct {
  17146. Fcode [0]Tush
  17147. Ffreq Tush
  17148. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(455)})),
  17149. Fdl: *(*struct {
  17150. Flen1 [0]Tush
  17151. Fdad Tush
  17152. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17153. },
  17154. 200: {
  17155. Ffc: *(*struct {
  17156. Fcode [0]Tush
  17157. Ffreq Tush
  17158. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(39)})),
  17159. Fdl: *(*struct {
  17160. Flen1 [0]Tush
  17161. Fdad Tush
  17162. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17163. },
  17164. 201: {
  17165. Ffc: *(*struct {
  17166. Fcode [0]Tush
  17167. Ffreq Tush
  17168. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(295)})),
  17169. Fdl: *(*struct {
  17170. Flen1 [0]Tush
  17171. Fdad Tush
  17172. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17173. },
  17174. 202: {
  17175. Ffc: *(*struct {
  17176. Fcode [0]Tush
  17177. Ffreq Tush
  17178. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(167)})),
  17179. Fdl: *(*struct {
  17180. Flen1 [0]Tush
  17181. Fdad Tush
  17182. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17183. },
  17184. 203: {
  17185. Ffc: *(*struct {
  17186. Fcode [0]Tush
  17187. Ffreq Tush
  17188. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(423)})),
  17189. Fdl: *(*struct {
  17190. Flen1 [0]Tush
  17191. Fdad Tush
  17192. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17193. },
  17194. 204: {
  17195. Ffc: *(*struct {
  17196. Fcode [0]Tush
  17197. Ffreq Tush
  17198. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(103)})),
  17199. Fdl: *(*struct {
  17200. Flen1 [0]Tush
  17201. Fdad Tush
  17202. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17203. },
  17204. 205: {
  17205. Ffc: *(*struct {
  17206. Fcode [0]Tush
  17207. Ffreq Tush
  17208. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(359)})),
  17209. Fdl: *(*struct {
  17210. Flen1 [0]Tush
  17211. Fdad Tush
  17212. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17213. },
  17214. 206: {
  17215. Ffc: *(*struct {
  17216. Fcode [0]Tush
  17217. Ffreq Tush
  17218. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(231)})),
  17219. Fdl: *(*struct {
  17220. Flen1 [0]Tush
  17221. Fdad Tush
  17222. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17223. },
  17224. 207: {
  17225. Ffc: *(*struct {
  17226. Fcode [0]Tush
  17227. Ffreq Tush
  17228. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(487)})),
  17229. Fdl: *(*struct {
  17230. Flen1 [0]Tush
  17231. Fdad Tush
  17232. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17233. },
  17234. 208: {
  17235. Ffc: *(*struct {
  17236. Fcode [0]Tush
  17237. Ffreq Tush
  17238. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(23)})),
  17239. Fdl: *(*struct {
  17240. Flen1 [0]Tush
  17241. Fdad Tush
  17242. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17243. },
  17244. 209: {
  17245. Ffc: *(*struct {
  17246. Fcode [0]Tush
  17247. Ffreq Tush
  17248. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(279)})),
  17249. Fdl: *(*struct {
  17250. Flen1 [0]Tush
  17251. Fdad Tush
  17252. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17253. },
  17254. 210: {
  17255. Ffc: *(*struct {
  17256. Fcode [0]Tush
  17257. Ffreq Tush
  17258. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(151)})),
  17259. Fdl: *(*struct {
  17260. Flen1 [0]Tush
  17261. Fdad Tush
  17262. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17263. },
  17264. 211: {
  17265. Ffc: *(*struct {
  17266. Fcode [0]Tush
  17267. Ffreq Tush
  17268. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(407)})),
  17269. Fdl: *(*struct {
  17270. Flen1 [0]Tush
  17271. Fdad Tush
  17272. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17273. },
  17274. 212: {
  17275. Ffc: *(*struct {
  17276. Fcode [0]Tush
  17277. Ffreq Tush
  17278. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(87)})),
  17279. Fdl: *(*struct {
  17280. Flen1 [0]Tush
  17281. Fdad Tush
  17282. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17283. },
  17284. 213: {
  17285. Ffc: *(*struct {
  17286. Fcode [0]Tush
  17287. Ffreq Tush
  17288. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(343)})),
  17289. Fdl: *(*struct {
  17290. Flen1 [0]Tush
  17291. Fdad Tush
  17292. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17293. },
  17294. 214: {
  17295. Ffc: *(*struct {
  17296. Fcode [0]Tush
  17297. Ffreq Tush
  17298. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(215)})),
  17299. Fdl: *(*struct {
  17300. Flen1 [0]Tush
  17301. Fdad Tush
  17302. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17303. },
  17304. 215: {
  17305. Ffc: *(*struct {
  17306. Fcode [0]Tush
  17307. Ffreq Tush
  17308. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(471)})),
  17309. Fdl: *(*struct {
  17310. Flen1 [0]Tush
  17311. Fdad Tush
  17312. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17313. },
  17314. 216: {
  17315. Ffc: *(*struct {
  17316. Fcode [0]Tush
  17317. Ffreq Tush
  17318. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(55)})),
  17319. Fdl: *(*struct {
  17320. Flen1 [0]Tush
  17321. Fdad Tush
  17322. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17323. },
  17324. 217: {
  17325. Ffc: *(*struct {
  17326. Fcode [0]Tush
  17327. Ffreq Tush
  17328. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(311)})),
  17329. Fdl: *(*struct {
  17330. Flen1 [0]Tush
  17331. Fdad Tush
  17332. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17333. },
  17334. 218: {
  17335. Ffc: *(*struct {
  17336. Fcode [0]Tush
  17337. Ffreq Tush
  17338. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(183)})),
  17339. Fdl: *(*struct {
  17340. Flen1 [0]Tush
  17341. Fdad Tush
  17342. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17343. },
  17344. 219: {
  17345. Ffc: *(*struct {
  17346. Fcode [0]Tush
  17347. Ffreq Tush
  17348. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(439)})),
  17349. Fdl: *(*struct {
  17350. Flen1 [0]Tush
  17351. Fdad Tush
  17352. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17353. },
  17354. 220: {
  17355. Ffc: *(*struct {
  17356. Fcode [0]Tush
  17357. Ffreq Tush
  17358. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(119)})),
  17359. Fdl: *(*struct {
  17360. Flen1 [0]Tush
  17361. Fdad Tush
  17362. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17363. },
  17364. 221: {
  17365. Ffc: *(*struct {
  17366. Fcode [0]Tush
  17367. Ffreq Tush
  17368. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(375)})),
  17369. Fdl: *(*struct {
  17370. Flen1 [0]Tush
  17371. Fdad Tush
  17372. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17373. },
  17374. 222: {
  17375. Ffc: *(*struct {
  17376. Fcode [0]Tush
  17377. Ffreq Tush
  17378. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(247)})),
  17379. Fdl: *(*struct {
  17380. Flen1 [0]Tush
  17381. Fdad Tush
  17382. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17383. },
  17384. 223: {
  17385. Ffc: *(*struct {
  17386. Fcode [0]Tush
  17387. Ffreq Tush
  17388. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(503)})),
  17389. Fdl: *(*struct {
  17390. Flen1 [0]Tush
  17391. Fdad Tush
  17392. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17393. },
  17394. 224: {
  17395. Ffc: *(*struct {
  17396. Fcode [0]Tush
  17397. Ffreq Tush
  17398. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(15)})),
  17399. Fdl: *(*struct {
  17400. Flen1 [0]Tush
  17401. Fdad Tush
  17402. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17403. },
  17404. 225: {
  17405. Ffc: *(*struct {
  17406. Fcode [0]Tush
  17407. Ffreq Tush
  17408. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(271)})),
  17409. Fdl: *(*struct {
  17410. Flen1 [0]Tush
  17411. Fdad Tush
  17412. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17413. },
  17414. 226: {
  17415. Ffc: *(*struct {
  17416. Fcode [0]Tush
  17417. Ffreq Tush
  17418. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(143)})),
  17419. Fdl: *(*struct {
  17420. Flen1 [0]Tush
  17421. Fdad Tush
  17422. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17423. },
  17424. 227: {
  17425. Ffc: *(*struct {
  17426. Fcode [0]Tush
  17427. Ffreq Tush
  17428. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(399)})),
  17429. Fdl: *(*struct {
  17430. Flen1 [0]Tush
  17431. Fdad Tush
  17432. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17433. },
  17434. 228: {
  17435. Ffc: *(*struct {
  17436. Fcode [0]Tush
  17437. Ffreq Tush
  17438. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(79)})),
  17439. Fdl: *(*struct {
  17440. Flen1 [0]Tush
  17441. Fdad Tush
  17442. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17443. },
  17444. 229: {
  17445. Ffc: *(*struct {
  17446. Fcode [0]Tush
  17447. Ffreq Tush
  17448. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(335)})),
  17449. Fdl: *(*struct {
  17450. Flen1 [0]Tush
  17451. Fdad Tush
  17452. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17453. },
  17454. 230: {
  17455. Ffc: *(*struct {
  17456. Fcode [0]Tush
  17457. Ffreq Tush
  17458. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(207)})),
  17459. Fdl: *(*struct {
  17460. Flen1 [0]Tush
  17461. Fdad Tush
  17462. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17463. },
  17464. 231: {
  17465. Ffc: *(*struct {
  17466. Fcode [0]Tush
  17467. Ffreq Tush
  17468. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(463)})),
  17469. Fdl: *(*struct {
  17470. Flen1 [0]Tush
  17471. Fdad Tush
  17472. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17473. },
  17474. 232: {
  17475. Ffc: *(*struct {
  17476. Fcode [0]Tush
  17477. Ffreq Tush
  17478. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(47)})),
  17479. Fdl: *(*struct {
  17480. Flen1 [0]Tush
  17481. Fdad Tush
  17482. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17483. },
  17484. 233: {
  17485. Ffc: *(*struct {
  17486. Fcode [0]Tush
  17487. Ffreq Tush
  17488. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(303)})),
  17489. Fdl: *(*struct {
  17490. Flen1 [0]Tush
  17491. Fdad Tush
  17492. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17493. },
  17494. 234: {
  17495. Ffc: *(*struct {
  17496. Fcode [0]Tush
  17497. Ffreq Tush
  17498. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(175)})),
  17499. Fdl: *(*struct {
  17500. Flen1 [0]Tush
  17501. Fdad Tush
  17502. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17503. },
  17504. 235: {
  17505. Ffc: *(*struct {
  17506. Fcode [0]Tush
  17507. Ffreq Tush
  17508. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(431)})),
  17509. Fdl: *(*struct {
  17510. Flen1 [0]Tush
  17511. Fdad Tush
  17512. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17513. },
  17514. 236: {
  17515. Ffc: *(*struct {
  17516. Fcode [0]Tush
  17517. Ffreq Tush
  17518. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(111)})),
  17519. Fdl: *(*struct {
  17520. Flen1 [0]Tush
  17521. Fdad Tush
  17522. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17523. },
  17524. 237: {
  17525. Ffc: *(*struct {
  17526. Fcode [0]Tush
  17527. Ffreq Tush
  17528. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(367)})),
  17529. Fdl: *(*struct {
  17530. Flen1 [0]Tush
  17531. Fdad Tush
  17532. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17533. },
  17534. 238: {
  17535. Ffc: *(*struct {
  17536. Fcode [0]Tush
  17537. Ffreq Tush
  17538. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(239)})),
  17539. Fdl: *(*struct {
  17540. Flen1 [0]Tush
  17541. Fdad Tush
  17542. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17543. },
  17544. 239: {
  17545. Ffc: *(*struct {
  17546. Fcode [0]Tush
  17547. Ffreq Tush
  17548. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(495)})),
  17549. Fdl: *(*struct {
  17550. Flen1 [0]Tush
  17551. Fdad Tush
  17552. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17553. },
  17554. 240: {
  17555. Ffc: *(*struct {
  17556. Fcode [0]Tush
  17557. Ffreq Tush
  17558. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(31)})),
  17559. Fdl: *(*struct {
  17560. Flen1 [0]Tush
  17561. Fdad Tush
  17562. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17563. },
  17564. 241: {
  17565. Ffc: *(*struct {
  17566. Fcode [0]Tush
  17567. Ffreq Tush
  17568. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(287)})),
  17569. Fdl: *(*struct {
  17570. Flen1 [0]Tush
  17571. Fdad Tush
  17572. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17573. },
  17574. 242: {
  17575. Ffc: *(*struct {
  17576. Fcode [0]Tush
  17577. Ffreq Tush
  17578. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(159)})),
  17579. Fdl: *(*struct {
  17580. Flen1 [0]Tush
  17581. Fdad Tush
  17582. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17583. },
  17584. 243: {
  17585. Ffc: *(*struct {
  17586. Fcode [0]Tush
  17587. Ffreq Tush
  17588. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(415)})),
  17589. Fdl: *(*struct {
  17590. Flen1 [0]Tush
  17591. Fdad Tush
  17592. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17593. },
  17594. 244: {
  17595. Ffc: *(*struct {
  17596. Fcode [0]Tush
  17597. Ffreq Tush
  17598. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(95)})),
  17599. Fdl: *(*struct {
  17600. Flen1 [0]Tush
  17601. Fdad Tush
  17602. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17603. },
  17604. 245: {
  17605. Ffc: *(*struct {
  17606. Fcode [0]Tush
  17607. Ffreq Tush
  17608. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(351)})),
  17609. Fdl: *(*struct {
  17610. Flen1 [0]Tush
  17611. Fdad Tush
  17612. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17613. },
  17614. 246: {
  17615. Ffc: *(*struct {
  17616. Fcode [0]Tush
  17617. Ffreq Tush
  17618. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(223)})),
  17619. Fdl: *(*struct {
  17620. Flen1 [0]Tush
  17621. Fdad Tush
  17622. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17623. },
  17624. 247: {
  17625. Ffc: *(*struct {
  17626. Fcode [0]Tush
  17627. Ffreq Tush
  17628. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(479)})),
  17629. Fdl: *(*struct {
  17630. Flen1 [0]Tush
  17631. Fdad Tush
  17632. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17633. },
  17634. 248: {
  17635. Ffc: *(*struct {
  17636. Fcode [0]Tush
  17637. Ffreq Tush
  17638. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(63)})),
  17639. Fdl: *(*struct {
  17640. Flen1 [0]Tush
  17641. Fdad Tush
  17642. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17643. },
  17644. 249: {
  17645. Ffc: *(*struct {
  17646. Fcode [0]Tush
  17647. Ffreq Tush
  17648. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(319)})),
  17649. Fdl: *(*struct {
  17650. Flen1 [0]Tush
  17651. Fdad Tush
  17652. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17653. },
  17654. 250: {
  17655. Ffc: *(*struct {
  17656. Fcode [0]Tush
  17657. Ffreq Tush
  17658. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(191)})),
  17659. Fdl: *(*struct {
  17660. Flen1 [0]Tush
  17661. Fdad Tush
  17662. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17663. },
  17664. 251: {
  17665. Ffc: *(*struct {
  17666. Fcode [0]Tush
  17667. Ffreq Tush
  17668. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(447)})),
  17669. Fdl: *(*struct {
  17670. Flen1 [0]Tush
  17671. Fdad Tush
  17672. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17673. },
  17674. 252: {
  17675. Ffc: *(*struct {
  17676. Fcode [0]Tush
  17677. Ffreq Tush
  17678. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(127)})),
  17679. Fdl: *(*struct {
  17680. Flen1 [0]Tush
  17681. Fdad Tush
  17682. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17683. },
  17684. 253: {
  17685. Ffc: *(*struct {
  17686. Fcode [0]Tush
  17687. Ffreq Tush
  17688. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(383)})),
  17689. Fdl: *(*struct {
  17690. Flen1 [0]Tush
  17691. Fdad Tush
  17692. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17693. },
  17694. 254: {
  17695. Ffc: *(*struct {
  17696. Fcode [0]Tush
  17697. Ffreq Tush
  17698. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(255)})),
  17699. Fdl: *(*struct {
  17700. Flen1 [0]Tush
  17701. Fdad Tush
  17702. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17703. },
  17704. 255: {
  17705. Ffc: *(*struct {
  17706. Fcode [0]Tush
  17707. Ffreq Tush
  17708. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(511)})),
  17709. Fdl: *(*struct {
  17710. Flen1 [0]Tush
  17711. Fdad Tush
  17712. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  17713. },
  17714. 256: {
  17715. Fdl: *(*struct {
  17716. Flen1 [0]Tush
  17717. Fdad Tush
  17718. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17719. },
  17720. 257: {
  17721. Ffc: *(*struct {
  17722. Fcode [0]Tush
  17723. Ffreq Tush
  17724. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(64)})),
  17725. Fdl: *(*struct {
  17726. Flen1 [0]Tush
  17727. Fdad Tush
  17728. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17729. },
  17730. 258: {
  17731. Ffc: *(*struct {
  17732. Fcode [0]Tush
  17733. Ffreq Tush
  17734. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(32)})),
  17735. Fdl: *(*struct {
  17736. Flen1 [0]Tush
  17737. Fdad Tush
  17738. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17739. },
  17740. 259: {
  17741. Ffc: *(*struct {
  17742. Fcode [0]Tush
  17743. Ffreq Tush
  17744. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(96)})),
  17745. Fdl: *(*struct {
  17746. Flen1 [0]Tush
  17747. Fdad Tush
  17748. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17749. },
  17750. 260: {
  17751. Ffc: *(*struct {
  17752. Fcode [0]Tush
  17753. Ffreq Tush
  17754. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(16)})),
  17755. Fdl: *(*struct {
  17756. Flen1 [0]Tush
  17757. Fdad Tush
  17758. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17759. },
  17760. 261: {
  17761. Ffc: *(*struct {
  17762. Fcode [0]Tush
  17763. Ffreq Tush
  17764. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(80)})),
  17765. Fdl: *(*struct {
  17766. Flen1 [0]Tush
  17767. Fdad Tush
  17768. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17769. },
  17770. 262: {
  17771. Ffc: *(*struct {
  17772. Fcode [0]Tush
  17773. Ffreq Tush
  17774. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(48)})),
  17775. Fdl: *(*struct {
  17776. Flen1 [0]Tush
  17777. Fdad Tush
  17778. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17779. },
  17780. 263: {
  17781. Ffc: *(*struct {
  17782. Fcode [0]Tush
  17783. Ffreq Tush
  17784. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(112)})),
  17785. Fdl: *(*struct {
  17786. Flen1 [0]Tush
  17787. Fdad Tush
  17788. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17789. },
  17790. 264: {
  17791. Ffc: *(*struct {
  17792. Fcode [0]Tush
  17793. Ffreq Tush
  17794. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  17795. Fdl: *(*struct {
  17796. Flen1 [0]Tush
  17797. Fdad Tush
  17798. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17799. },
  17800. 265: {
  17801. Ffc: *(*struct {
  17802. Fcode [0]Tush
  17803. Ffreq Tush
  17804. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(72)})),
  17805. Fdl: *(*struct {
  17806. Flen1 [0]Tush
  17807. Fdad Tush
  17808. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17809. },
  17810. 266: {
  17811. Ffc: *(*struct {
  17812. Fcode [0]Tush
  17813. Ffreq Tush
  17814. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(40)})),
  17815. Fdl: *(*struct {
  17816. Flen1 [0]Tush
  17817. Fdad Tush
  17818. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17819. },
  17820. 267: {
  17821. Ffc: *(*struct {
  17822. Fcode [0]Tush
  17823. Ffreq Tush
  17824. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(104)})),
  17825. Fdl: *(*struct {
  17826. Flen1 [0]Tush
  17827. Fdad Tush
  17828. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17829. },
  17830. 268: {
  17831. Ffc: *(*struct {
  17832. Fcode [0]Tush
  17833. Ffreq Tush
  17834. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(24)})),
  17835. Fdl: *(*struct {
  17836. Flen1 [0]Tush
  17837. Fdad Tush
  17838. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17839. },
  17840. 269: {
  17841. Ffc: *(*struct {
  17842. Fcode [0]Tush
  17843. Ffreq Tush
  17844. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(88)})),
  17845. Fdl: *(*struct {
  17846. Flen1 [0]Tush
  17847. Fdad Tush
  17848. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17849. },
  17850. 270: {
  17851. Ffc: *(*struct {
  17852. Fcode [0]Tush
  17853. Ffreq Tush
  17854. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(56)})),
  17855. Fdl: *(*struct {
  17856. Flen1 [0]Tush
  17857. Fdad Tush
  17858. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17859. },
  17860. 271: {
  17861. Ffc: *(*struct {
  17862. Fcode [0]Tush
  17863. Ffreq Tush
  17864. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(120)})),
  17865. Fdl: *(*struct {
  17866. Flen1 [0]Tush
  17867. Fdad Tush
  17868. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17869. },
  17870. 272: {
  17871. Ffc: *(*struct {
  17872. Fcode [0]Tush
  17873. Ffreq Tush
  17874. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(4)})),
  17875. Fdl: *(*struct {
  17876. Flen1 [0]Tush
  17877. Fdad Tush
  17878. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17879. },
  17880. 273: {
  17881. Ffc: *(*struct {
  17882. Fcode [0]Tush
  17883. Ffreq Tush
  17884. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(68)})),
  17885. Fdl: *(*struct {
  17886. Flen1 [0]Tush
  17887. Fdad Tush
  17888. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17889. },
  17890. 274: {
  17891. Ffc: *(*struct {
  17892. Fcode [0]Tush
  17893. Ffreq Tush
  17894. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(36)})),
  17895. Fdl: *(*struct {
  17896. Flen1 [0]Tush
  17897. Fdad Tush
  17898. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17899. },
  17900. 275: {
  17901. Ffc: *(*struct {
  17902. Fcode [0]Tush
  17903. Ffreq Tush
  17904. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(100)})),
  17905. Fdl: *(*struct {
  17906. Flen1 [0]Tush
  17907. Fdad Tush
  17908. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17909. },
  17910. 276: {
  17911. Ffc: *(*struct {
  17912. Fcode [0]Tush
  17913. Ffreq Tush
  17914. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(20)})),
  17915. Fdl: *(*struct {
  17916. Flen1 [0]Tush
  17917. Fdad Tush
  17918. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17919. },
  17920. 277: {
  17921. Ffc: *(*struct {
  17922. Fcode [0]Tush
  17923. Ffreq Tush
  17924. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(84)})),
  17925. Fdl: *(*struct {
  17926. Flen1 [0]Tush
  17927. Fdad Tush
  17928. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17929. },
  17930. 278: {
  17931. Ffc: *(*struct {
  17932. Fcode [0]Tush
  17933. Ffreq Tush
  17934. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(52)})),
  17935. Fdl: *(*struct {
  17936. Flen1 [0]Tush
  17937. Fdad Tush
  17938. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17939. },
  17940. 279: {
  17941. Ffc: *(*struct {
  17942. Fcode [0]Tush
  17943. Ffreq Tush
  17944. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(116)})),
  17945. Fdl: *(*struct {
  17946. Flen1 [0]Tush
  17947. Fdad Tush
  17948. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  17949. },
  17950. 280: {
  17951. Ffc: *(*struct {
  17952. Fcode [0]Tush
  17953. Ffreq Tush
  17954. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(3)})),
  17955. Fdl: *(*struct {
  17956. Flen1 [0]Tush
  17957. Fdad Tush
  17958. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  17959. },
  17960. 281: {
  17961. Ffc: *(*struct {
  17962. Fcode [0]Tush
  17963. Ffreq Tush
  17964. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(131)})),
  17965. Fdl: *(*struct {
  17966. Flen1 [0]Tush
  17967. Fdad Tush
  17968. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  17969. },
  17970. 282: {
  17971. Ffc: *(*struct {
  17972. Fcode [0]Tush
  17973. Ffreq Tush
  17974. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(67)})),
  17975. Fdl: *(*struct {
  17976. Flen1 [0]Tush
  17977. Fdad Tush
  17978. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  17979. },
  17980. 283: {
  17981. Ffc: *(*struct {
  17982. Fcode [0]Tush
  17983. Ffreq Tush
  17984. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(195)})),
  17985. Fdl: *(*struct {
  17986. Flen1 [0]Tush
  17987. Fdad Tush
  17988. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  17989. },
  17990. 284: {
  17991. Ffc: *(*struct {
  17992. Fcode [0]Tush
  17993. Ffreq Tush
  17994. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(35)})),
  17995. Fdl: *(*struct {
  17996. Flen1 [0]Tush
  17997. Fdad Tush
  17998. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  17999. },
  18000. 285: {
  18001. Ffc: *(*struct {
  18002. Fcode [0]Tush
  18003. Ffreq Tush
  18004. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(163)})),
  18005. Fdl: *(*struct {
  18006. Flen1 [0]Tush
  18007. Fdad Tush
  18008. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  18009. },
  18010. 286: {
  18011. Ffc: *(*struct {
  18012. Fcode [0]Tush
  18013. Ffreq Tush
  18014. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(99)})),
  18015. Fdl: *(*struct {
  18016. Flen1 [0]Tush
  18017. Fdad Tush
  18018. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  18019. },
  18020. 287: {
  18021. Ffc: *(*struct {
  18022. Fcode [0]Tush
  18023. Ffreq Tush
  18024. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(227)})),
  18025. Fdl: *(*struct {
  18026. Flen1 [0]Tush
  18027. Fdad Tush
  18028. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  18029. },
  18030. }
  18031. var _static_dtree = [30]Tct_data{
  18032. 0: {
  18033. Fdl: *(*struct {
  18034. Flen1 [0]Tush
  18035. Fdad Tush
  18036. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18037. },
  18038. 1: {
  18039. Ffc: *(*struct {
  18040. Fcode [0]Tush
  18041. Ffreq Tush
  18042. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(16)})),
  18043. Fdl: *(*struct {
  18044. Flen1 [0]Tush
  18045. Fdad Tush
  18046. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18047. },
  18048. 2: {
  18049. Ffc: *(*struct {
  18050. Fcode [0]Tush
  18051. Ffreq Tush
  18052. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(8)})),
  18053. Fdl: *(*struct {
  18054. Flen1 [0]Tush
  18055. Fdad Tush
  18056. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18057. },
  18058. 3: {
  18059. Ffc: *(*struct {
  18060. Fcode [0]Tush
  18061. Ffreq Tush
  18062. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(24)})),
  18063. Fdl: *(*struct {
  18064. Flen1 [0]Tush
  18065. Fdad Tush
  18066. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18067. },
  18068. 4: {
  18069. Ffc: *(*struct {
  18070. Fcode [0]Tush
  18071. Ffreq Tush
  18072. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(4)})),
  18073. Fdl: *(*struct {
  18074. Flen1 [0]Tush
  18075. Fdad Tush
  18076. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18077. },
  18078. 5: {
  18079. Ffc: *(*struct {
  18080. Fcode [0]Tush
  18081. Ffreq Tush
  18082. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(20)})),
  18083. Fdl: *(*struct {
  18084. Flen1 [0]Tush
  18085. Fdad Tush
  18086. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18087. },
  18088. 6: {
  18089. Ffc: *(*struct {
  18090. Fcode [0]Tush
  18091. Ffreq Tush
  18092. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(12)})),
  18093. Fdl: *(*struct {
  18094. Flen1 [0]Tush
  18095. Fdad Tush
  18096. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18097. },
  18098. 7: {
  18099. Ffc: *(*struct {
  18100. Fcode [0]Tush
  18101. Ffreq Tush
  18102. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(28)})),
  18103. Fdl: *(*struct {
  18104. Flen1 [0]Tush
  18105. Fdad Tush
  18106. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18107. },
  18108. 8: {
  18109. Ffc: *(*struct {
  18110. Fcode [0]Tush
  18111. Ffreq Tush
  18112. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(2)})),
  18113. Fdl: *(*struct {
  18114. Flen1 [0]Tush
  18115. Fdad Tush
  18116. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18117. },
  18118. 9: {
  18119. Ffc: *(*struct {
  18120. Fcode [0]Tush
  18121. Ffreq Tush
  18122. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(18)})),
  18123. Fdl: *(*struct {
  18124. Flen1 [0]Tush
  18125. Fdad Tush
  18126. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18127. },
  18128. 10: {
  18129. Ffc: *(*struct {
  18130. Fcode [0]Tush
  18131. Ffreq Tush
  18132. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(10)})),
  18133. Fdl: *(*struct {
  18134. Flen1 [0]Tush
  18135. Fdad Tush
  18136. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18137. },
  18138. 11: {
  18139. Ffc: *(*struct {
  18140. Fcode [0]Tush
  18141. Ffreq Tush
  18142. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(26)})),
  18143. Fdl: *(*struct {
  18144. Flen1 [0]Tush
  18145. Fdad Tush
  18146. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18147. },
  18148. 12: {
  18149. Ffc: *(*struct {
  18150. Fcode [0]Tush
  18151. Ffreq Tush
  18152. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(6)})),
  18153. Fdl: *(*struct {
  18154. Flen1 [0]Tush
  18155. Fdad Tush
  18156. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18157. },
  18158. 13: {
  18159. Ffc: *(*struct {
  18160. Fcode [0]Tush
  18161. Ffreq Tush
  18162. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(22)})),
  18163. Fdl: *(*struct {
  18164. Flen1 [0]Tush
  18165. Fdad Tush
  18166. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18167. },
  18168. 14: {
  18169. Ffc: *(*struct {
  18170. Fcode [0]Tush
  18171. Ffreq Tush
  18172. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(14)})),
  18173. Fdl: *(*struct {
  18174. Flen1 [0]Tush
  18175. Fdad Tush
  18176. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18177. },
  18178. 15: {
  18179. Ffc: *(*struct {
  18180. Fcode [0]Tush
  18181. Ffreq Tush
  18182. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(30)})),
  18183. Fdl: *(*struct {
  18184. Flen1 [0]Tush
  18185. Fdad Tush
  18186. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18187. },
  18188. 16: {
  18189. Ffc: *(*struct {
  18190. Fcode [0]Tush
  18191. Ffreq Tush
  18192. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(1)})),
  18193. Fdl: *(*struct {
  18194. Flen1 [0]Tush
  18195. Fdad Tush
  18196. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18197. },
  18198. 17: {
  18199. Ffc: *(*struct {
  18200. Fcode [0]Tush
  18201. Ffreq Tush
  18202. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(17)})),
  18203. Fdl: *(*struct {
  18204. Flen1 [0]Tush
  18205. Fdad Tush
  18206. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18207. },
  18208. 18: {
  18209. Ffc: *(*struct {
  18210. Fcode [0]Tush
  18211. Ffreq Tush
  18212. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(9)})),
  18213. Fdl: *(*struct {
  18214. Flen1 [0]Tush
  18215. Fdad Tush
  18216. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18217. },
  18218. 19: {
  18219. Ffc: *(*struct {
  18220. Fcode [0]Tush
  18221. Ffreq Tush
  18222. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(25)})),
  18223. Fdl: *(*struct {
  18224. Flen1 [0]Tush
  18225. Fdad Tush
  18226. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18227. },
  18228. 20: {
  18229. Ffc: *(*struct {
  18230. Fcode [0]Tush
  18231. Ffreq Tush
  18232. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18233. Fdl: *(*struct {
  18234. Flen1 [0]Tush
  18235. Fdad Tush
  18236. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18237. },
  18238. 21: {
  18239. Ffc: *(*struct {
  18240. Fcode [0]Tush
  18241. Ffreq Tush
  18242. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(21)})),
  18243. Fdl: *(*struct {
  18244. Flen1 [0]Tush
  18245. Fdad Tush
  18246. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18247. },
  18248. 22: {
  18249. Ffc: *(*struct {
  18250. Fcode [0]Tush
  18251. Ffreq Tush
  18252. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(13)})),
  18253. Fdl: *(*struct {
  18254. Flen1 [0]Tush
  18255. Fdad Tush
  18256. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18257. },
  18258. 23: {
  18259. Ffc: *(*struct {
  18260. Fcode [0]Tush
  18261. Ffreq Tush
  18262. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(29)})),
  18263. Fdl: *(*struct {
  18264. Flen1 [0]Tush
  18265. Fdad Tush
  18266. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18267. },
  18268. 24: {
  18269. Ffc: *(*struct {
  18270. Fcode [0]Tush
  18271. Ffreq Tush
  18272. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(3)})),
  18273. Fdl: *(*struct {
  18274. Flen1 [0]Tush
  18275. Fdad Tush
  18276. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18277. },
  18278. 25: {
  18279. Ffc: *(*struct {
  18280. Fcode [0]Tush
  18281. Ffreq Tush
  18282. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(19)})),
  18283. Fdl: *(*struct {
  18284. Flen1 [0]Tush
  18285. Fdad Tush
  18286. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18287. },
  18288. 26: {
  18289. Ffc: *(*struct {
  18290. Fcode [0]Tush
  18291. Ffreq Tush
  18292. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(11)})),
  18293. Fdl: *(*struct {
  18294. Flen1 [0]Tush
  18295. Fdad Tush
  18296. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18297. },
  18298. 27: {
  18299. Ffc: *(*struct {
  18300. Fcode [0]Tush
  18301. Ffreq Tush
  18302. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(27)})),
  18303. Fdl: *(*struct {
  18304. Flen1 [0]Tush
  18305. Fdad Tush
  18306. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18307. },
  18308. 28: {
  18309. Ffc: *(*struct {
  18310. Fcode [0]Tush
  18311. Ffreq Tush
  18312. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(7)})),
  18313. Fdl: *(*struct {
  18314. Flen1 [0]Tush
  18315. Fdad Tush
  18316. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18317. },
  18318. 29: {
  18319. Ffc: *(*struct {
  18320. Fcode [0]Tush
  18321. Ffreq Tush
  18322. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(23)})),
  18323. Fdl: *(*struct {
  18324. Flen1 [0]Tush
  18325. Fdad Tush
  18326. })(unsafe.Pointer(&struct{ f Tush }{f: uint16(5)})),
  18327. },
  18328. }
  18329. var _base_length = [29]int32{
  18330. 1: int32(1),
  18331. 2: int32(2),
  18332. 3: int32(3),
  18333. 4: int32(4),
  18334. 5: int32(5),
  18335. 6: int32(6),
  18336. 7: int32(7),
  18337. 8: int32(8),
  18338. 9: int32(10),
  18339. 10: int32(12),
  18340. 11: int32(14),
  18341. 12: int32(16),
  18342. 13: int32(20),
  18343. 14: int32(24),
  18344. 15: int32(28),
  18345. 16: int32(32),
  18346. 17: int32(40),
  18347. 18: int32(48),
  18348. 19: int32(56),
  18349. 20: int32(64),
  18350. 21: int32(80),
  18351. 22: int32(96),
  18352. 23: int32(112),
  18353. 24: int32(128),
  18354. 25: int32(160),
  18355. 26: int32(192),
  18356. 27: int32(224),
  18357. }
  18358. var _base_dist = [30]int32{
  18359. 1: int32(1),
  18360. 2: int32(2),
  18361. 3: int32(3),
  18362. 4: int32(4),
  18363. 5: int32(6),
  18364. 6: int32(8),
  18365. 7: int32(12),
  18366. 8: int32(16),
  18367. 9: int32(24),
  18368. 10: int32(32),
  18369. 11: int32(48),
  18370. 12: int32(64),
  18371. 13: int32(96),
  18372. 14: int32(128),
  18373. 15: int32(192),
  18374. 16: int32(256),
  18375. 17: int32(384),
  18376. 18: int32(512),
  18377. 19: int32(768),
  18378. 20: int32(1024),
  18379. 21: int32(1536),
  18380. 22: int32(2048),
  18381. 23: int32(3072),
  18382. 24: int32(4096),
  18383. 25: int32(6144),
  18384. 26: int32(8192),
  18385. 27: int32(12288),
  18386. 28: int32(16384),
  18387. 29: int32(24576),
  18388. }
  18389. var _static_l_desc = Tstatic_tree_desc{
  18390. Fstatic_tree: uintptr(unsafe.Pointer(&_static_ltree)),
  18391. Fextra_bits: uintptr(unsafe.Pointer(&_extra_lbits)),
  18392. Fextra_base: libc.Int32FromInt32(m_LITERALS) + libc.Int32FromInt32(1),
  18393. Felems: libc.Int32FromInt32(m_LITERALS) + libc.Int32FromInt32(1) + libc.Int32FromInt32(m_LENGTH_CODES),
  18394. Fmax_length: int32(m_MAX_BITS),
  18395. }
  18396. var _static_d_desc = Tstatic_tree_desc{
  18397. Fstatic_tree: uintptr(unsafe.Pointer(&_static_dtree)),
  18398. Fextra_bits: uintptr(unsafe.Pointer(&_extra_dbits)),
  18399. Felems: int32(m_D_CODES),
  18400. Fmax_length: int32(m_MAX_BITS),
  18401. }
  18402. var _static_bl_desc = Tstatic_tree_desc{
  18403. Fextra_bits: uintptr(unsafe.Pointer(&_extra_blbits)),
  18404. Felems: int32(m_BL_CODES),
  18405. Fmax_length: int32(m_MAX_BL_BITS),
  18406. }
  18407. /* ===========================================================================
  18408. * Output a short LSB first on the stream.
  18409. * IN assertion: there is enough room in pendingBuf.
  18410. */
  18411. // C documentation
  18412. //
  18413. // /* ===========================================================================
  18414. // * Reverse the first len bits of a code, using straightforward code (a faster
  18415. // * method would use a table)
  18416. // * IN assertion: 1 <= len <= 15
  18417. // */
  18418. func _bi_reverse(tls *libc.TLS, code uint32, len1 int32) (r uint32) {
  18419. var res uint32
  18420. var v1 int32
  18421. _, _ = res, v1
  18422. res = uint32(0)
  18423. for {
  18424. res |= code & uint32(1)
  18425. code >>= uint32(1)
  18426. res <<= uint32(1)
  18427. goto _2
  18428. _2:
  18429. ;
  18430. len1--
  18431. v1 = len1
  18432. if !(v1 > 0) {
  18433. break
  18434. }
  18435. }
  18436. return res >> int32(1)
  18437. }
  18438. // C documentation
  18439. //
  18440. // /* ===========================================================================
  18441. // * Flush the bit buffer, keeping at most 7 bits in it.
  18442. // */
  18443. func _bi_flush(tls *libc.TLS, s uintptr) {
  18444. var v1, v3, v5 Tulg
  18445. var v2, v4, v6, p7 uintptr
  18446. _, _, _, _, _, _, _ = v1, v2, v3, v4, v5, v6, p7
  18447. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid == int32(16) {
  18448. v2 = s + 20
  18449. v1 = *(*Tulg)(unsafe.Pointer(v2))
  18450. *(*Tulg)(unsafe.Pointer(v2))++
  18451. *(*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))
  18452. v4 = s + 20
  18453. v3 = *(*Tulg)(unsafe.Pointer(v4))
  18454. *(*Tulg)(unsafe.Pointer(v4))++
  18455. *(*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))
  18456. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = uint16(0)
  18457. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid = 0
  18458. } else {
  18459. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid >= int32(8) {
  18460. v6 = s + 20
  18461. v5 = *(*Tulg)(unsafe.Pointer(v6))
  18462. *(*Tulg)(unsafe.Pointer(v6))++
  18463. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v5))) = uint8((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf)
  18464. p7 = s + 5816
  18465. *(*Tush)(unsafe.Pointer(p7)) = Tush(int32(*(*Tush)(unsafe.Pointer(p7))) >> libc.Int32FromInt32(8))
  18466. *(*int32)(unsafe.Pointer(s + 5820)) -= int32(8)
  18467. }
  18468. }
  18469. }
  18470. // C documentation
  18471. //
  18472. // /* ===========================================================================
  18473. // * Flush the bit buffer and align the output on a byte boundary
  18474. // */
  18475. func _bi_windup(tls *libc.TLS, s uintptr) {
  18476. var v1, v3, v5 Tulg
  18477. var v2, v4, v6 uintptr
  18478. _, _, _, _, _, _ = v1, v2, v3, v4, v5, v6
  18479. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > int32(8) {
  18480. v2 = s + 20
  18481. v1 = *(*Tulg)(unsafe.Pointer(v2))
  18482. *(*Tulg)(unsafe.Pointer(v2))++
  18483. *(*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))
  18484. v4 = s + 20
  18485. v3 = *(*Tulg)(unsafe.Pointer(v4))
  18486. *(*Tulg)(unsafe.Pointer(v4))++
  18487. *(*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))
  18488. } else {
  18489. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > 0 {
  18490. v6 = s + 20
  18491. v5 = *(*Tulg)(unsafe.Pointer(v6))
  18492. *(*Tulg)(unsafe.Pointer(v6))++
  18493. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v5))) = uint8((*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf)
  18494. }
  18495. }
  18496. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = uint16(0)
  18497. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid = 0
  18498. }
  18499. // C documentation
  18500. //
  18501. // /* ===========================================================================
  18502. // * Generate the codes for a given tree and bit counts (which need not be
  18503. // * optimal).
  18504. // * IN assertion: the array bl_count contains the bit length statistics for
  18505. // * the given tree and the field len is set for all tree elements.
  18506. // * OUT assertion: the field code is set for all tree elements of non
  18507. // * zero code length.
  18508. // */
  18509. func _gen_codes(tls *libc.TLS, tree uintptr, max_code int32, bl_count uintptr) {
  18510. bp := tls.Alloc(32)
  18511. defer tls.Free(32)
  18512. var bits, len1, n int32
  18513. var code uint32
  18514. var v3 Tush
  18515. var v4 uintptr
  18516. var _ /* next_code at bp+0 */ [16]Tush
  18517. _, _, _, _, _, _ = bits, code, len1, n, v3, v4 /* next code value for each bit length */
  18518. code = uint32(0) /* code index */
  18519. /* The distribution counts are first used to generate the code values
  18520. * without bit reversal.
  18521. */
  18522. bits = int32(1)
  18523. for {
  18524. if !(bits <= int32(m_MAX_BITS)) {
  18525. break
  18526. }
  18527. code = (code + uint32(*(*Tushf)(unsafe.Pointer(bl_count + uintptr(bits-int32(1))*2)))) << int32(1)
  18528. (*(*[16]Tush)(unsafe.Pointer(bp)))[bits] = uint16(code)
  18529. goto _1
  18530. _1:
  18531. ;
  18532. bits++
  18533. }
  18534. /* Check that the bit counts in bl_count are consistent. The last code
  18535. * must be all ones.
  18536. */
  18537. n = 0
  18538. for {
  18539. if !(n <= max_code) {
  18540. break
  18541. }
  18542. len1 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(n)*4 + 2)))
  18543. if len1 == 0 {
  18544. goto _2
  18545. }
  18546. /* Now reverse the bits */
  18547. v4 = bp + uintptr(len1)*2
  18548. v3 = *(*Tush)(unsafe.Pointer(v4))
  18549. *(*Tush)(unsafe.Pointer(v4))++
  18550. *(*Tush)(unsafe.Pointer(tree + uintptr(n)*4)) = uint16(_bi_reverse(tls, uint32(v3), len1))
  18551. goto _2
  18552. _2:
  18553. ;
  18554. n++
  18555. }
  18556. }
  18557. /* Send a code of the given tree. c and tree must not have side effects */
  18558. /* ===========================================================================
  18559. * Send a value on a given number of bits.
  18560. * IN assertion: length <= 16 and value fits in length bits.
  18561. */
  18562. /* the arguments must not have side effects */
  18563. // C documentation
  18564. //
  18565. // /* ===========================================================================
  18566. // * Initialize the various 'constant' tables.
  18567. // */
  18568. func _tr_static_init(tls *libc.TLS) {
  18569. }
  18570. /* ===========================================================================
  18571. * Generate the file trees.h describing the static trees.
  18572. */
  18573. // C documentation
  18574. //
  18575. // /* ===========================================================================
  18576. // * Initialize a new block.
  18577. // */
  18578. func _init_block(tls *libc.TLS, s uintptr) {
  18579. var n int32
  18580. var v4 Tulg
  18581. var v5 TuInt
  18582. _, _, _ = n, v4, v5 /* iterates over tree elements */
  18583. /* Initialize the trees. */
  18584. n = 0
  18585. for {
  18586. if !(n < libc.Int32FromInt32(m_LITERALS)+libc.Int32FromInt32(1)+libc.Int32FromInt32(m_LENGTH_CODES)) {
  18587. break
  18588. }
  18589. *(*Tush)(unsafe.Pointer(s + 148 + uintptr(n)*4)) = uint16(0)
  18590. goto _1
  18591. _1:
  18592. ;
  18593. n++
  18594. }
  18595. n = 0
  18596. for {
  18597. if !(n < int32(m_D_CODES)) {
  18598. break
  18599. }
  18600. *(*Tush)(unsafe.Pointer(s + 2440 + uintptr(n)*4)) = uint16(0)
  18601. goto _2
  18602. _2:
  18603. ;
  18604. n++
  18605. }
  18606. n = 0
  18607. for {
  18608. if !(n < int32(m_BL_CODES)) {
  18609. break
  18610. }
  18611. *(*Tush)(unsafe.Pointer(s + 2684 + uintptr(n)*4)) = uint16(0)
  18612. goto _3
  18613. _3:
  18614. ;
  18615. n++
  18616. }
  18617. *(*Tush)(unsafe.Pointer(s + 148 + 256*4)) = uint16(1)
  18618. v4 = libc.Uint32FromInt32(0)
  18619. (*Tdeflate_state)(unsafe.Pointer(s)).Fstatic_len = v4
  18620. (*Tdeflate_state)(unsafe.Pointer(s)).Fopt_len = v4
  18621. v5 = libc.Uint32FromInt32(0)
  18622. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatches = v5
  18623. (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next = v5
  18624. }
  18625. // C documentation
  18626. //
  18627. // /* ===========================================================================
  18628. // * Initialize the tree data structures for a new zlib stream.
  18629. // */
  18630. func x__tr_init(tls *libc.TLS, s uintptr) {
  18631. _tr_static_init(tls)
  18632. (*Tdeflate_state)(unsafe.Pointer(s)).Fl_desc.Fdyn_tree = s + 148
  18633. (*Tdeflate_state)(unsafe.Pointer(s)).Fl_desc.Fstat_desc = uintptr(unsafe.Pointer(&_static_l_desc))
  18634. (*Tdeflate_state)(unsafe.Pointer(s)).Fd_desc.Fdyn_tree = s + 2440
  18635. (*Tdeflate_state)(unsafe.Pointer(s)).Fd_desc.Fstat_desc = uintptr(unsafe.Pointer(&_static_d_desc))
  18636. (*Tdeflate_state)(unsafe.Pointer(s)).Fbl_desc.Fdyn_tree = s + 2684
  18637. (*Tdeflate_state)(unsafe.Pointer(s)).Fbl_desc.Fstat_desc = uintptr(unsafe.Pointer(&_static_bl_desc))
  18638. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_buf = uint16(0)
  18639. (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid = 0
  18640. /* Initialize the first block of the first file: */
  18641. _init_block(tls, s)
  18642. }
  18643. /* Index within the heap array of least frequent node in the Huffman tree */
  18644. /* ===========================================================================
  18645. * Remove the smallest element from the heap and recreate the heap with
  18646. * one less element. Updates heap and heap_len.
  18647. */
  18648. /* ===========================================================================
  18649. * Compares to subtrees, using the tree depth as tie breaker when
  18650. * the subtrees have equal frequency. This minimizes the worst case length.
  18651. */
  18652. // C documentation
  18653. //
  18654. // /* ===========================================================================
  18655. // * Restore the heap property by moving down the tree starting at node k,
  18656. // * exchanging a node with the smallest of its two sons if necessary, stopping
  18657. // * when the heap property is re-established (each father smaller than its
  18658. // * two sons).
  18659. // */
  18660. func _pqdownheap(tls *libc.TLS, s uintptr, tree uintptr, k int32) {
  18661. var j, v int32
  18662. _, _ = j, v
  18663. v = *(*int32)(unsafe.Pointer(s + 2908 + uintptr(k)*4))
  18664. j = k << int32(1) /* left son of k */
  18665. for j <= (*Tdeflate_state)(unsafe.Pointer(s)).Fheap_len {
  18666. /* Set j to the smallest of the two sons: */
  18667. if j < (*Tdeflate_state)(unsafe.Pointer(s)).Fheap_len && (libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(*(*int32)(unsafe.Pointer(s + 2908 + uintptr(j+int32(1))*4)))*4))) < libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(*(*int32)(unsafe.Pointer(s + 2908 + uintptr(j)*4)))*4))) || libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(*(*int32)(unsafe.Pointer(s + 2908 + uintptr(j+int32(1))*4)))*4))) == libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(*(*int32)(unsafe.Pointer(s + 2908 + uintptr(j)*4)))*4))) && libc.Int32FromUint8(*(*Tuch)(unsafe.Pointer(s + 5208 + uintptr(*(*int32)(unsafe.Pointer(s + 2908 + uintptr(j+int32(1))*4)))))) <= libc.Int32FromUint8(*(*Tuch)(unsafe.Pointer(s + 5208 + uintptr(*(*int32)(unsafe.Pointer(s + 2908 + uintptr(j)*4))))))) {
  18668. j++
  18669. }
  18670. /* Exit if v is smaller than both sons */
  18671. if libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(v)*4))) < libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(*(*int32)(unsafe.Pointer(s + 2908 + uintptr(j)*4)))*4))) || libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(v)*4))) == libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(*(*int32)(unsafe.Pointer(s + 2908 + uintptr(j)*4)))*4))) && libc.Int32FromUint8(*(*Tuch)(unsafe.Pointer(s + 5208 + uintptr(v)))) <= libc.Int32FromUint8(*(*Tuch)(unsafe.Pointer(s + 5208 + uintptr(*(*int32)(unsafe.Pointer(s + 2908 + uintptr(j)*4)))))) {
  18672. break
  18673. }
  18674. /* Exchange v with the smallest son */
  18675. *(*int32)(unsafe.Pointer(s + 2908 + uintptr(k)*4)) = *(*int32)(unsafe.Pointer(s + 2908 + uintptr(j)*4))
  18676. k = j
  18677. /* And continue down the tree, setting j to the left son of k */
  18678. j <<= int32(1)
  18679. }
  18680. *(*int32)(unsafe.Pointer(s + 2908 + uintptr(k)*4)) = v
  18681. }
  18682. // C documentation
  18683. //
  18684. // /* ===========================================================================
  18685. // * Compute the optimal bit lengths for a tree and update the total bit length
  18686. // * for the current block.
  18687. // * IN assertion: the fields freq and dad are set, heap[heap_max] and
  18688. // * above are the tree nodes sorted by increasing frequency.
  18689. // * OUT assertions: the field len is set to the optimal bit length, the
  18690. // * array bl_count contains the frequencies for each bit length.
  18691. // * The length opt_len is updated; static_len is also updated if stree is
  18692. // * not null.
  18693. // */
  18694. func _gen_bitlen(tls *libc.TLS, s uintptr, desc uintptr) {
  18695. var base, bits, h, m, max_code, max_length, n, overflow, xbits, v5 int32
  18696. var extra, stree, tree, p3 uintptr
  18697. var f Tush
  18698. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = base, bits, extra, f, h, m, max_code, max_length, n, overflow, stree, tree, xbits, v5, p3
  18699. tree = (*Ttree_desc)(unsafe.Pointer(desc)).Fdyn_tree
  18700. max_code = (*Ttree_desc)(unsafe.Pointer(desc)).Fmax_code
  18701. stree = (*Tstatic_tree_desc)(unsafe.Pointer((*Ttree_desc)(unsafe.Pointer(desc)).Fstat_desc)).Fstatic_tree
  18702. extra = (*Tstatic_tree_desc)(unsafe.Pointer((*Ttree_desc)(unsafe.Pointer(desc)).Fstat_desc)).Fextra_bits
  18703. base = (*Tstatic_tree_desc)(unsafe.Pointer((*Ttree_desc)(unsafe.Pointer(desc)).Fstat_desc)).Fextra_base
  18704. max_length = (*Tstatic_tree_desc)(unsafe.Pointer((*Ttree_desc)(unsafe.Pointer(desc)).Fstat_desc)).Fmax_length /* frequency */
  18705. overflow = 0 /* number of elements with bit length too large */
  18706. bits = 0
  18707. for {
  18708. if !(bits <= int32(m_MAX_BITS)) {
  18709. break
  18710. }
  18711. *(*Tush)(unsafe.Pointer(s + 2876 + uintptr(bits)*2)) = uint16(0)
  18712. goto _1
  18713. _1:
  18714. ;
  18715. bits++
  18716. }
  18717. /* In a first pass, compute the optimal bit lengths (which may
  18718. * overflow in the case of the bit length tree).
  18719. */
  18720. *(*Tush)(unsafe.Pointer(tree + uintptr(*(*int32)(unsafe.Pointer(s + 2908 + uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fheap_max)*4)))*4 + 2)) = uint16(0) /* root of the heap */
  18721. h = (*Tdeflate_state)(unsafe.Pointer(s)).Fheap_max + int32(1)
  18722. for {
  18723. if !(h < libc.Int32FromInt32(2)*(libc.Int32FromInt32(m_LITERALS)+libc.Int32FromInt32(1)+libc.Int32FromInt32(m_LENGTH_CODES))+libc.Int32FromInt32(1)) {
  18724. break
  18725. }
  18726. n = *(*int32)(unsafe.Pointer(s + 2908 + uintptr(h)*4))
  18727. bits = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(*(*Tush)(unsafe.Pointer(tree + uintptr(n)*4 + 2)))*4 + 2))) + int32(1)
  18728. if bits > max_length {
  18729. bits = max_length
  18730. overflow++
  18731. }
  18732. *(*Tush)(unsafe.Pointer(tree + uintptr(n)*4 + 2)) = libc.Uint16FromInt32(bits)
  18733. /* We overwrite tree[n].Dad which is no longer needed */
  18734. if n > max_code {
  18735. goto _2
  18736. } /* not a leaf node */
  18737. *(*Tush)(unsafe.Pointer(s + 2876 + uintptr(bits)*2))++
  18738. xbits = 0
  18739. if n >= base {
  18740. xbits = *(*Tintf)(unsafe.Pointer(extra + uintptr(n-base)*4))
  18741. }
  18742. f = *(*Tush)(unsafe.Pointer(tree + uintptr(n)*4))
  18743. *(*Tulg)(unsafe.Pointer(s + 5800)) += uint32(f) * uint32(libc.Uint32FromInt32(bits+xbits))
  18744. if stree != 0 {
  18745. *(*Tulg)(unsafe.Pointer(s + 5804)) += uint32(f) * uint32(libc.Uint32FromInt32(libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(stree + uintptr(n)*4 + 2)))+xbits))
  18746. }
  18747. goto _2
  18748. _2:
  18749. ;
  18750. h++
  18751. }
  18752. if overflow == 0 {
  18753. return
  18754. }
  18755. /* This happens for example on obj2 and pic of the Calgary corpus */
  18756. /* Find the first bit length which could increase: */
  18757. for cond := true; cond; cond = overflow > 0 {
  18758. bits = max_length - int32(1)
  18759. for libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2876 + uintptr(bits)*2))) == 0 {
  18760. bits--
  18761. }
  18762. *(*Tush)(unsafe.Pointer(s + 2876 + uintptr(bits)*2))-- /* move one leaf down the tree */
  18763. p3 = s + 2876 + uintptr(bits+int32(1))*2
  18764. *(*Tush)(unsafe.Pointer(p3)) = Tush(int32(*(*Tush)(unsafe.Pointer(p3))) + libc.Int32FromInt32(2)) /* move one overflow item as its brother */
  18765. *(*Tush)(unsafe.Pointer(s + 2876 + uintptr(max_length)*2))--
  18766. /* The brother of the overflow item also moves one step up,
  18767. * but this does not affect bl_count[max_length]
  18768. */
  18769. overflow -= int32(2)
  18770. }
  18771. /* Now recompute all bit lengths, scanning in increasing frequency.
  18772. * h is still equal to HEAP_SIZE. (It is simpler to reconstruct all
  18773. * lengths instead of fixing only the wrong ones. This idea is taken
  18774. * from 'ar' written by Haruhiko Okumura.)
  18775. */
  18776. bits = max_length
  18777. for {
  18778. if !(bits != 0) {
  18779. break
  18780. }
  18781. n = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2876 + uintptr(bits)*2)))
  18782. for n != 0 {
  18783. h--
  18784. v5 = h
  18785. m = *(*int32)(unsafe.Pointer(s + 2908 + uintptr(v5)*4))
  18786. if m > max_code {
  18787. continue
  18788. }
  18789. if uint32(*(*Tush)(unsafe.Pointer(tree + uintptr(m)*4 + 2))) != libc.Uint32FromInt32(bits) {
  18790. *(*Tulg)(unsafe.Pointer(s + 5800)) += (libc.Uint32FromInt32(bits) - uint32(*(*Tush)(unsafe.Pointer(tree + uintptr(m)*4 + 2)))) * uint32(*(*Tush)(unsafe.Pointer(tree + uintptr(m)*4)))
  18791. *(*Tush)(unsafe.Pointer(tree + uintptr(m)*4 + 2)) = libc.Uint16FromInt32(bits)
  18792. }
  18793. n--
  18794. }
  18795. goto _4
  18796. _4:
  18797. ;
  18798. bits--
  18799. }
  18800. }
  18801. // C documentation
  18802. //
  18803. // /* ===========================================================================
  18804. // * Construct one Huffman tree and assigns the code bit strings and lengths.
  18805. // * Update the total bit length for the current block.
  18806. // * IN assertion: the field freq is set for all tree elements.
  18807. // * OUT assertions: the fields len and code are set to the optimal bit length
  18808. // * and corresponding code. The length opt_len is updated; static_len is
  18809. // * also updated if stree is not null. The field max_code is set.
  18810. // */
  18811. func _build_tree(tls *libc.TLS, s uintptr, desc uintptr) {
  18812. var elems, m, max_code, n, node, v11, v13, v15, v17, v19, v2, v20, v4, v5, v6, v7, v8 int32
  18813. var stree, tree, v12, v14, v16, v21, v3, v9 uintptr
  18814. var v18 Tush
  18815. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = 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
  18816. tree = (*Ttree_desc)(unsafe.Pointer(desc)).Fdyn_tree
  18817. stree = (*Tstatic_tree_desc)(unsafe.Pointer((*Ttree_desc)(unsafe.Pointer(desc)).Fstat_desc)).Fstatic_tree
  18818. elems = (*Tstatic_tree_desc)(unsafe.Pointer((*Ttree_desc)(unsafe.Pointer(desc)).Fstat_desc)).Felems /* iterate over heap elements */
  18819. max_code = -int32(1) /* new node being created */
  18820. /* Construct the initial heap, with least frequent element in
  18821. * heap[SMALLEST]. The sons of heap[n] are heap[2*n] and heap[2*n + 1].
  18822. * heap[0] is not used.
  18823. */
  18824. (*Tdeflate_state)(unsafe.Pointer(s)).Fheap_len = 0 /* new node being created */
  18825. /* Construct the initial heap, with least frequent element in
  18826. * heap[SMALLEST]. The sons of heap[n] are heap[2*n] and heap[2*n + 1].
  18827. * heap[0] is not used.
  18828. */
  18829. (*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)
  18830. n = 0
  18831. for {
  18832. if !(n < elems) {
  18833. break
  18834. }
  18835. if libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(n)*4))) != 0 {
  18836. v3 = s + 5200
  18837. *(*int32)(unsafe.Pointer(v3))++
  18838. v2 = *(*int32)(unsafe.Pointer(v3))
  18839. v4 = n
  18840. max_code = v4
  18841. *(*int32)(unsafe.Pointer(s + 2908 + uintptr(v2)*4)) = v4
  18842. *(*Tuch)(unsafe.Pointer(s + 5208 + uintptr(n))) = uint8(0)
  18843. } else {
  18844. *(*Tush)(unsafe.Pointer(tree + uintptr(n)*4 + 2)) = uint16(0)
  18845. }
  18846. goto _1
  18847. _1:
  18848. ;
  18849. n++
  18850. }
  18851. /* The pkzip format requires that at least one distance code exists,
  18852. * and that at least one bit should be sent even if there is only one
  18853. * possible code. So to avoid special checks later on we force at least
  18854. * two codes of non zero frequency.
  18855. */
  18856. for (*Tdeflate_state)(unsafe.Pointer(s)).Fheap_len < int32(2) {
  18857. if max_code < int32(2) {
  18858. max_code++
  18859. v7 = max_code
  18860. v6 = v7
  18861. } else {
  18862. v6 = 0
  18863. }
  18864. v5 = v6
  18865. v9 = s + 5200
  18866. *(*int32)(unsafe.Pointer(v9))++
  18867. v8 = *(*int32)(unsafe.Pointer(v9))
  18868. *(*int32)(unsafe.Pointer(s + 2908 + uintptr(v8)*4)) = v5
  18869. node = v5
  18870. *(*Tush)(unsafe.Pointer(tree + uintptr(node)*4)) = uint16(1)
  18871. *(*Tuch)(unsafe.Pointer(s + 5208 + uintptr(node))) = uint8(0)
  18872. (*Tdeflate_state)(unsafe.Pointer(s)).Fopt_len--
  18873. if stree != 0 {
  18874. *(*Tulg)(unsafe.Pointer(s + 5804)) -= uint32(*(*Tush)(unsafe.Pointer(stree + uintptr(node)*4 + 2)))
  18875. }
  18876. /* node is 0 or 1 so it does not have extra bits */
  18877. }
  18878. (*Ttree_desc)(unsafe.Pointer(desc)).Fmax_code = max_code
  18879. /* The elements heap[heap_len/2 + 1 .. heap_len] are leaves of the tree,
  18880. * establish sub-heaps of increasing lengths:
  18881. */
  18882. n = (*Tdeflate_state)(unsafe.Pointer(s)).Fheap_len / int32(2)
  18883. for {
  18884. if !(n >= int32(1)) {
  18885. break
  18886. }
  18887. _pqdownheap(tls, s, tree, n)
  18888. goto _10
  18889. _10:
  18890. ;
  18891. n--
  18892. }
  18893. /* Construct the Huffman tree by repeatedly combining the least two
  18894. * frequent nodes.
  18895. */
  18896. node = elems /* next internal node of the tree */
  18897. for cond := true; cond; cond = (*Tdeflate_state)(unsafe.Pointer(s)).Fheap_len >= int32(2) {
  18898. n = *(*int32)(unsafe.Pointer(s + 2908 + 1*4))
  18899. v12 = s + 5200
  18900. v11 = *(*int32)(unsafe.Pointer(v12))
  18901. *(*int32)(unsafe.Pointer(v12))--
  18902. *(*int32)(unsafe.Pointer(s + 2908 + 1*4)) = *(*int32)(unsafe.Pointer(s + 2908 + uintptr(v11)*4))
  18903. _pqdownheap(tls, s, tree, int32(m_SMALLEST)) /* n = node of least frequency */
  18904. m = *(*int32)(unsafe.Pointer(s + 2908 + 1*4)) /* m = node of next least frequency */
  18905. v14 = s + 5204
  18906. *(*int32)(unsafe.Pointer(v14))--
  18907. v13 = *(*int32)(unsafe.Pointer(v14))
  18908. *(*int32)(unsafe.Pointer(s + 2908 + uintptr(v13)*4)) = n /* keep the nodes sorted by frequency */
  18909. v16 = s + 5204
  18910. *(*int32)(unsafe.Pointer(v16))--
  18911. v15 = *(*int32)(unsafe.Pointer(v16))
  18912. *(*int32)(unsafe.Pointer(s + 2908 + uintptr(v15)*4)) = m
  18913. /* Create a new node father of n and m */
  18914. *(*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))))
  18915. if libc.Int32FromUint8(*(*Tuch)(unsafe.Pointer(s + 5208 + uintptr(n)))) >= libc.Int32FromUint8(*(*Tuch)(unsafe.Pointer(s + 5208 + uintptr(m)))) {
  18916. v17 = libc.Int32FromUint8(*(*Tuch)(unsafe.Pointer(s + 5208 + uintptr(n))))
  18917. } else {
  18918. v17 = libc.Int32FromUint8(*(*Tuch)(unsafe.Pointer(s + 5208 + uintptr(m))))
  18919. }
  18920. *(*Tuch)(unsafe.Pointer(s + 5208 + uintptr(node))) = libc.Uint8FromInt32(v17 + libc.Int32FromInt32(1))
  18921. v18 = libc.Uint16FromInt32(node)
  18922. *(*Tush)(unsafe.Pointer(tree + uintptr(m)*4 + 2)) = v18
  18923. *(*Tush)(unsafe.Pointer(tree + uintptr(n)*4 + 2)) = v18
  18924. /* and insert the new node in the heap */
  18925. v19 = node
  18926. node++
  18927. *(*int32)(unsafe.Pointer(s + 2908 + 1*4)) = v19
  18928. _pqdownheap(tls, s, tree, int32(m_SMALLEST))
  18929. }
  18930. v21 = s + 5204
  18931. *(*int32)(unsafe.Pointer(v21))--
  18932. v20 = *(*int32)(unsafe.Pointer(v21))
  18933. *(*int32)(unsafe.Pointer(s + 2908 + uintptr(v20)*4)) = *(*int32)(unsafe.Pointer(s + 2908 + 1*4))
  18934. /* At this point, the fields freq and dad are set. We can now
  18935. * generate the bit lengths.
  18936. */
  18937. _gen_bitlen(tls, s, desc)
  18938. /* The field len is now set, we can generate the bit codes */
  18939. _gen_codes(tls, tree, max_code, s+2876)
  18940. }
  18941. // C documentation
  18942. //
  18943. // /* ===========================================================================
  18944. // * Scan a literal or distance tree to determine the frequencies of the codes
  18945. // * in the bit length tree.
  18946. // */
  18947. func _scan_tree(tls *libc.TLS, s uintptr, tree uintptr, max_code int32) {
  18948. var count, curlen, max_count, min_count, n, nextlen, prevlen, v2 int32
  18949. var p3 uintptr
  18950. _, _, _, _, _, _, _, _, _ = count, curlen, max_count, min_count, n, nextlen, prevlen, v2, p3 /* iterates over all tree elements */
  18951. prevlen = -int32(1) /* length of current code */
  18952. nextlen = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + 2))) /* length of next code */
  18953. count = 0 /* repeat count of the current code */
  18954. max_count = int32(7) /* max repeat count */
  18955. min_count = int32(4) /* min repeat count */
  18956. if nextlen == 0 {
  18957. max_count = int32(138)
  18958. min_count = libc.Int32FromInt32(3)
  18959. }
  18960. *(*Tush)(unsafe.Pointer(tree + uintptr(max_code+int32(1))*4 + 2)) = libc.Uint16FromInt32(0xffff) /* guard */
  18961. n = 0
  18962. for {
  18963. if !(n <= max_code) {
  18964. break
  18965. }
  18966. curlen = nextlen
  18967. nextlen = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(n+int32(1))*4 + 2)))
  18968. count++
  18969. v2 = count
  18970. if v2 < max_count && curlen == nextlen {
  18971. goto _1
  18972. } else {
  18973. if count < min_count {
  18974. p3 = s + 2684 + uintptr(curlen)*4
  18975. *(*Tush)(unsafe.Pointer(p3)) = Tush(int32(*(*Tush)(unsafe.Pointer(p3))) + count)
  18976. } else {
  18977. if curlen != 0 {
  18978. if curlen != prevlen {
  18979. *(*Tush)(unsafe.Pointer(s + 2684 + uintptr(curlen)*4))++
  18980. }
  18981. *(*Tush)(unsafe.Pointer(s + 2684 + 16*4))++
  18982. } else {
  18983. if count <= int32(10) {
  18984. *(*Tush)(unsafe.Pointer(s + 2684 + 17*4))++
  18985. } else {
  18986. *(*Tush)(unsafe.Pointer(s + 2684 + 18*4))++
  18987. }
  18988. }
  18989. }
  18990. }
  18991. count = 0
  18992. prevlen = curlen
  18993. if nextlen == 0 {
  18994. max_count = int32(138)
  18995. min_count = libc.Int32FromInt32(3)
  18996. } else {
  18997. if curlen == nextlen {
  18998. max_count = int32(6)
  18999. min_count = libc.Int32FromInt32(3)
  19000. } else {
  19001. max_count = int32(7)
  19002. min_count = libc.Int32FromInt32(4)
  19003. }
  19004. }
  19005. goto _1
  19006. _1:
  19007. ;
  19008. n++
  19009. }
  19010. }
  19011. // C documentation
  19012. //
  19013. // /* ===========================================================================
  19014. // * Send a literal or distance tree in compressed form, using the codes in
  19015. // * bl_tree.
  19016. // */
  19017. func _send_tree(tls *libc.TLS, s uintptr, tree uintptr, max_code int32) {
  19018. 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
  19019. var v12, v14, v18, v20, v24, v26, v30, v32, v36, v38, v42, v44, v48, v50, v6, v8 Tulg
  19020. 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
  19021. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = 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 */
  19022. prevlen = -int32(1) /* length of current code */
  19023. nextlen = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + 2))) /* length of next code */
  19024. count = 0 /* repeat count of the current code */
  19025. max_count = int32(7) /* max repeat count */
  19026. min_count = int32(4) /* min repeat count */
  19027. /* tree[max_code + 1].Len = -1; */ /* guard already set */
  19028. if nextlen == 0 {
  19029. max_count = int32(138)
  19030. min_count = libc.Int32FromInt32(3)
  19031. }
  19032. n = 0
  19033. for {
  19034. if !(n <= max_code) {
  19035. break
  19036. }
  19037. curlen = nextlen
  19038. nextlen = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(tree + uintptr(n+int32(1))*4 + 2)))
  19039. count++
  19040. v2 = count
  19041. if v2 < max_count && curlen == nextlen {
  19042. goto _1
  19043. } else {
  19044. if count < min_count {
  19045. for {
  19046. len1 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2684 + uintptr(curlen)*4 + 2)))
  19047. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len1 {
  19048. val = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2684 + uintptr(curlen)*4)))
  19049. p5 = s + 5816
  19050. *(*Tush)(unsafe.Pointer(p5)) = Tush(int32(*(*Tush)(unsafe.Pointer(p5))) | libc.Int32FromUint16(libc.Uint16FromInt32(val))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19051. v7 = s + 20
  19052. v6 = *(*Tulg)(unsafe.Pointer(v7))
  19053. *(*Tulg)(unsafe.Pointer(v7))++
  19054. *(*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))
  19055. v9 = s + 20
  19056. v8 = *(*Tulg)(unsafe.Pointer(v9))
  19057. *(*Tulg)(unsafe.Pointer(v9))++
  19058. *(*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))
  19059. (*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))
  19060. *(*int32)(unsafe.Pointer(s + 5820)) += len1 - int32(m_Buf_size)
  19061. } else {
  19062. p10 = s + 5816
  19063. *(*Tush)(unsafe.Pointer(p10)) = Tush(int32(*(*Tush)(unsafe.Pointer(p10))) | libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2684 + uintptr(curlen)*4)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19064. *(*int32)(unsafe.Pointer(s + 5820)) += len1
  19065. }
  19066. goto _4
  19067. _4:
  19068. ;
  19069. count--
  19070. v3 = count
  19071. if !(v3 != 0) {
  19072. break
  19073. }
  19074. }
  19075. } else {
  19076. if curlen != 0 {
  19077. if curlen != prevlen {
  19078. len11 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2684 + uintptr(curlen)*4 + 2)))
  19079. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len11 {
  19080. val1 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2684 + uintptr(curlen)*4)))
  19081. p11 = s + 5816
  19082. *(*Tush)(unsafe.Pointer(p11)) = Tush(int32(*(*Tush)(unsafe.Pointer(p11))) | libc.Int32FromUint16(libc.Uint16FromInt32(val1))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19083. v13 = s + 20
  19084. v12 = *(*Tulg)(unsafe.Pointer(v13))
  19085. *(*Tulg)(unsafe.Pointer(v13))++
  19086. *(*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))
  19087. v15 = s + 20
  19088. v14 = *(*Tulg)(unsafe.Pointer(v15))
  19089. *(*Tulg)(unsafe.Pointer(v15))++
  19090. *(*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))
  19091. (*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))
  19092. *(*int32)(unsafe.Pointer(s + 5820)) += len11 - int32(m_Buf_size)
  19093. } else {
  19094. p16 = s + 5816
  19095. *(*Tush)(unsafe.Pointer(p16)) = Tush(int32(*(*Tush)(unsafe.Pointer(p16))) | libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2684 + uintptr(curlen)*4)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19096. *(*int32)(unsafe.Pointer(s + 5820)) += len11
  19097. }
  19098. count--
  19099. }
  19100. len2 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2684 + 16*4 + 2)))
  19101. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len2 {
  19102. val2 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2684 + 16*4)))
  19103. p17 = s + 5816
  19104. *(*Tush)(unsafe.Pointer(p17)) = Tush(int32(*(*Tush)(unsafe.Pointer(p17))) | libc.Int32FromUint16(libc.Uint16FromInt32(val2))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19105. v19 = s + 20
  19106. v18 = *(*Tulg)(unsafe.Pointer(v19))
  19107. *(*Tulg)(unsafe.Pointer(v19))++
  19108. *(*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))
  19109. v21 = s + 20
  19110. v20 = *(*Tulg)(unsafe.Pointer(v21))
  19111. *(*Tulg)(unsafe.Pointer(v21))++
  19112. *(*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))
  19113. (*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))
  19114. *(*int32)(unsafe.Pointer(s + 5820)) += len2 - int32(m_Buf_size)
  19115. } else {
  19116. p22 = s + 5816
  19117. *(*Tush)(unsafe.Pointer(p22)) = Tush(int32(*(*Tush)(unsafe.Pointer(p22))) | libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2684 + 16*4)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19118. *(*int32)(unsafe.Pointer(s + 5820)) += len2
  19119. }
  19120. len3 = int32(2)
  19121. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len3 {
  19122. val3 = count - int32(3)
  19123. p23 = s + 5816
  19124. *(*Tush)(unsafe.Pointer(p23)) = Tush(int32(*(*Tush)(unsafe.Pointer(p23))) | libc.Int32FromUint16(libc.Uint16FromInt32(val3))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19125. v25 = s + 20
  19126. v24 = *(*Tulg)(unsafe.Pointer(v25))
  19127. *(*Tulg)(unsafe.Pointer(v25))++
  19128. *(*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))
  19129. v27 = s + 20
  19130. v26 = *(*Tulg)(unsafe.Pointer(v27))
  19131. *(*Tulg)(unsafe.Pointer(v27))++
  19132. *(*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))
  19133. (*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))
  19134. *(*int32)(unsafe.Pointer(s + 5820)) += len3 - int32(m_Buf_size)
  19135. } else {
  19136. p28 = s + 5816
  19137. *(*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)
  19138. *(*int32)(unsafe.Pointer(s + 5820)) += len3
  19139. }
  19140. } else {
  19141. if count <= int32(10) {
  19142. len4 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2684 + 17*4 + 2)))
  19143. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len4 {
  19144. val4 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2684 + 17*4)))
  19145. p29 = s + 5816
  19146. *(*Tush)(unsafe.Pointer(p29)) = Tush(int32(*(*Tush)(unsafe.Pointer(p29))) | libc.Int32FromUint16(libc.Uint16FromInt32(val4))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19147. v31 = s + 20
  19148. v30 = *(*Tulg)(unsafe.Pointer(v31))
  19149. *(*Tulg)(unsafe.Pointer(v31))++
  19150. *(*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))
  19151. v33 = s + 20
  19152. v32 = *(*Tulg)(unsafe.Pointer(v33))
  19153. *(*Tulg)(unsafe.Pointer(v33))++
  19154. *(*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))
  19155. (*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))
  19156. *(*int32)(unsafe.Pointer(s + 5820)) += len4 - int32(m_Buf_size)
  19157. } else {
  19158. p34 = s + 5816
  19159. *(*Tush)(unsafe.Pointer(p34)) = Tush(int32(*(*Tush)(unsafe.Pointer(p34))) | libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2684 + 17*4)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19160. *(*int32)(unsafe.Pointer(s + 5820)) += len4
  19161. }
  19162. len5 = int32(3)
  19163. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len5 {
  19164. val5 = count - int32(3)
  19165. p35 = s + 5816
  19166. *(*Tush)(unsafe.Pointer(p35)) = Tush(int32(*(*Tush)(unsafe.Pointer(p35))) | libc.Int32FromUint16(libc.Uint16FromInt32(val5))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19167. v37 = s + 20
  19168. v36 = *(*Tulg)(unsafe.Pointer(v37))
  19169. *(*Tulg)(unsafe.Pointer(v37))++
  19170. *(*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))
  19171. v39 = s + 20
  19172. v38 = *(*Tulg)(unsafe.Pointer(v39))
  19173. *(*Tulg)(unsafe.Pointer(v39))++
  19174. *(*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))
  19175. (*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))
  19176. *(*int32)(unsafe.Pointer(s + 5820)) += len5 - int32(m_Buf_size)
  19177. } else {
  19178. p40 = s + 5816
  19179. *(*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)
  19180. *(*int32)(unsafe.Pointer(s + 5820)) += len5
  19181. }
  19182. } else {
  19183. len6 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2684 + 18*4 + 2)))
  19184. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len6 {
  19185. val6 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2684 + 18*4)))
  19186. p41 = s + 5816
  19187. *(*Tush)(unsafe.Pointer(p41)) = Tush(int32(*(*Tush)(unsafe.Pointer(p41))) | libc.Int32FromUint16(libc.Uint16FromInt32(val6))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19188. v43 = s + 20
  19189. v42 = *(*Tulg)(unsafe.Pointer(v43))
  19190. *(*Tulg)(unsafe.Pointer(v43))++
  19191. *(*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))
  19192. v45 = s + 20
  19193. v44 = *(*Tulg)(unsafe.Pointer(v45))
  19194. *(*Tulg)(unsafe.Pointer(v45))++
  19195. *(*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))
  19196. (*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))
  19197. *(*int32)(unsafe.Pointer(s + 5820)) += len6 - int32(m_Buf_size)
  19198. } else {
  19199. p46 = s + 5816
  19200. *(*Tush)(unsafe.Pointer(p46)) = Tush(int32(*(*Tush)(unsafe.Pointer(p46))) | libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2684 + 18*4)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19201. *(*int32)(unsafe.Pointer(s + 5820)) += len6
  19202. }
  19203. len7 = int32(7)
  19204. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len7 {
  19205. val7 = count - int32(11)
  19206. p47 = s + 5816
  19207. *(*Tush)(unsafe.Pointer(p47)) = Tush(int32(*(*Tush)(unsafe.Pointer(p47))) | libc.Int32FromUint16(libc.Uint16FromInt32(val7))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19208. v49 = s + 20
  19209. v48 = *(*Tulg)(unsafe.Pointer(v49))
  19210. *(*Tulg)(unsafe.Pointer(v49))++
  19211. *(*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))
  19212. v51 = s + 20
  19213. v50 = *(*Tulg)(unsafe.Pointer(v51))
  19214. *(*Tulg)(unsafe.Pointer(v51))++
  19215. *(*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))
  19216. (*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))
  19217. *(*int32)(unsafe.Pointer(s + 5820)) += len7 - int32(m_Buf_size)
  19218. } else {
  19219. p52 = s + 5816
  19220. *(*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)
  19221. *(*int32)(unsafe.Pointer(s + 5820)) += len7
  19222. }
  19223. }
  19224. }
  19225. }
  19226. }
  19227. count = 0
  19228. prevlen = curlen
  19229. if nextlen == 0 {
  19230. max_count = int32(138)
  19231. min_count = libc.Int32FromInt32(3)
  19232. } else {
  19233. if curlen == nextlen {
  19234. max_count = int32(6)
  19235. min_count = libc.Int32FromInt32(3)
  19236. } else {
  19237. max_count = int32(7)
  19238. min_count = libc.Int32FromInt32(4)
  19239. }
  19240. }
  19241. goto _1
  19242. _1:
  19243. ;
  19244. n++
  19245. }
  19246. }
  19247. // C documentation
  19248. //
  19249. // /* ===========================================================================
  19250. // * Construct the Huffman tree for the bit lengths and return the index in
  19251. // * bl_order of the last bit length code to send.
  19252. // */
  19253. func _build_bl_tree(tls *libc.TLS, s uintptr) (r int32) {
  19254. var max_blindex int32
  19255. _ = max_blindex /* index of last bit length code of non zero freq */
  19256. /* Determine the bit length frequencies for literal and distance trees */
  19257. _scan_tree(tls, s, s+148, (*Tdeflate_state)(unsafe.Pointer(s)).Fl_desc.Fmax_code)
  19258. _scan_tree(tls, s, s+2440, (*Tdeflate_state)(unsafe.Pointer(s)).Fd_desc.Fmax_code)
  19259. /* Build the bit length tree: */
  19260. _build_tree(tls, s, s+2864)
  19261. /* opt_len now includes the length of the tree representations, except the
  19262. * lengths of the bit lengths codes and the 5 + 5 + 4 bits for the counts.
  19263. */
  19264. /* Determine the number of bit length codes to send. The pkzip format
  19265. * requires that at least 4 bit length codes be sent. (appnote.txt says
  19266. * 3 but the actual value used is 4.)
  19267. */
  19268. max_blindex = libc.Int32FromInt32(m_BL_CODES) - libc.Int32FromInt32(1)
  19269. for {
  19270. if !(max_blindex >= int32(3)) {
  19271. break
  19272. }
  19273. if libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2684 + uintptr(_bl_order[max_blindex])*4 + 2))) != 0 {
  19274. break
  19275. }
  19276. goto _1
  19277. _1:
  19278. ;
  19279. max_blindex--
  19280. }
  19281. /* Update opt_len to include the bit length tree and counts */
  19282. *(*Tulg)(unsafe.Pointer(s + 5800)) += uint32(3)*(libc.Uint32FromInt32(max_blindex)+uint32(1)) + uint32(5) + uint32(5) + uint32(4)
  19283. return max_blindex
  19284. }
  19285. // C documentation
  19286. //
  19287. // /* ===========================================================================
  19288. // * Send the header for a block using dynamic Huffman trees: the counts, the
  19289. // * lengths of the bit length codes, the literal tree and the distance tree.
  19290. // * IN assertion: lcodes >= 257, dcodes >= 1, blcodes >= 4.
  19291. // */
  19292. func _send_all_trees(tls *libc.TLS, s uintptr, lcodes int32, dcodes int32, blcodes int32) {
  19293. var len1, len11, len2, len3, rank, val, val1, val2, val3 int32
  19294. var v10, v14, v16, v2, v21, v23, v4, v8 Tulg
  19295. var v11, v15, v17, v22, v24, v3, v5, v9, p1, p12, p13, p18, p20, p25, p6, p7 uintptr
  19296. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = 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 */
  19297. len1 = int32(5)
  19298. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len1 {
  19299. val = lcodes - int32(257)
  19300. p1 = s + 5816
  19301. *(*Tush)(unsafe.Pointer(p1)) = Tush(int32(*(*Tush)(unsafe.Pointer(p1))) | libc.Int32FromUint16(libc.Uint16FromInt32(val))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19302. v3 = s + 20
  19303. v2 = *(*Tulg)(unsafe.Pointer(v3))
  19304. *(*Tulg)(unsafe.Pointer(v3))++
  19305. *(*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))
  19306. v5 = s + 20
  19307. v4 = *(*Tulg)(unsafe.Pointer(v5))
  19308. *(*Tulg)(unsafe.Pointer(v5))++
  19309. *(*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))
  19310. (*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))
  19311. *(*int32)(unsafe.Pointer(s + 5820)) += len1 - int32(m_Buf_size)
  19312. } else {
  19313. p6 = s + 5816
  19314. *(*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)
  19315. *(*int32)(unsafe.Pointer(s + 5820)) += len1
  19316. } /* not +255 as stated in appnote.txt */
  19317. len11 = int32(5)
  19318. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len11 {
  19319. val1 = dcodes - int32(1)
  19320. p7 = s + 5816
  19321. *(*Tush)(unsafe.Pointer(p7)) = Tush(int32(*(*Tush)(unsafe.Pointer(p7))) | libc.Int32FromUint16(libc.Uint16FromInt32(val1))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19322. v9 = s + 20
  19323. v8 = *(*Tulg)(unsafe.Pointer(v9))
  19324. *(*Tulg)(unsafe.Pointer(v9))++
  19325. *(*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))
  19326. v11 = s + 20
  19327. v10 = *(*Tulg)(unsafe.Pointer(v11))
  19328. *(*Tulg)(unsafe.Pointer(v11))++
  19329. *(*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))
  19330. (*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))
  19331. *(*int32)(unsafe.Pointer(s + 5820)) += len11 - int32(m_Buf_size)
  19332. } else {
  19333. p12 = s + 5816
  19334. *(*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)
  19335. *(*int32)(unsafe.Pointer(s + 5820)) += len11
  19336. }
  19337. len2 = int32(4)
  19338. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len2 {
  19339. val2 = blcodes - int32(4)
  19340. p13 = s + 5816
  19341. *(*Tush)(unsafe.Pointer(p13)) = Tush(int32(*(*Tush)(unsafe.Pointer(p13))) | libc.Int32FromUint16(libc.Uint16FromInt32(val2))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19342. v15 = s + 20
  19343. v14 = *(*Tulg)(unsafe.Pointer(v15))
  19344. *(*Tulg)(unsafe.Pointer(v15))++
  19345. *(*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))
  19346. v17 = s + 20
  19347. v16 = *(*Tulg)(unsafe.Pointer(v17))
  19348. *(*Tulg)(unsafe.Pointer(v17))++
  19349. *(*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))
  19350. (*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))
  19351. *(*int32)(unsafe.Pointer(s + 5820)) += len2 - int32(m_Buf_size)
  19352. } else {
  19353. p18 = s + 5816
  19354. *(*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)
  19355. *(*int32)(unsafe.Pointer(s + 5820)) += len2
  19356. } /* not -3 as stated in appnote.txt */
  19357. rank = 0
  19358. for {
  19359. if !(rank < blcodes) {
  19360. break
  19361. }
  19362. len3 = int32(3)
  19363. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len3 {
  19364. val3 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2684 + uintptr(_bl_order[rank])*4 + 2)))
  19365. p20 = s + 5816
  19366. *(*Tush)(unsafe.Pointer(p20)) = Tush(int32(*(*Tush)(unsafe.Pointer(p20))) | libc.Int32FromUint16(libc.Uint16FromInt32(val3))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19367. v22 = s + 20
  19368. v21 = *(*Tulg)(unsafe.Pointer(v22))
  19369. *(*Tulg)(unsafe.Pointer(v22))++
  19370. *(*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))
  19371. v24 = s + 20
  19372. v23 = *(*Tulg)(unsafe.Pointer(v24))
  19373. *(*Tulg)(unsafe.Pointer(v24))++
  19374. *(*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))
  19375. (*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))
  19376. *(*int32)(unsafe.Pointer(s + 5820)) += len3 - int32(m_Buf_size)
  19377. } else {
  19378. p25 = s + 5816
  19379. *(*Tush)(unsafe.Pointer(p25)) = Tush(int32(*(*Tush)(unsafe.Pointer(p25))) | libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 2684 + uintptr(_bl_order[rank])*4 + 2)))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19380. *(*int32)(unsafe.Pointer(s + 5820)) += len3
  19381. }
  19382. goto _19
  19383. _19:
  19384. ;
  19385. rank++
  19386. }
  19387. _send_tree(tls, s, s+148, lcodes-int32(1)) /* literal tree */
  19388. _send_tree(tls, s, s+2440, dcodes-int32(1)) /* distance tree */
  19389. }
  19390. // C documentation
  19391. //
  19392. // /* ===========================================================================
  19393. // * Send a stored block
  19394. // */
  19395. func x__tr_stored_block(tls *libc.TLS, s uintptr, buf uintptr, stored_len Tulg, last int32) {
  19396. var len1, val int32
  19397. var v10, v12, v14, v3, v5, v8, p1, p6 uintptr
  19398. var v11, v13, v2, v4, v7, v9 Tulg
  19399. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = len1, val, v10, v11, v12, v13, v14, v2, v3, v4, v5, v7, v8, v9, p1, p6
  19400. len1 = int32(3)
  19401. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len1 {
  19402. val = libc.Int32FromInt32(m_STORED_BLOCK)<<libc.Int32FromInt32(1) + last
  19403. p1 = s + 5816
  19404. *(*Tush)(unsafe.Pointer(p1)) = Tush(int32(*(*Tush)(unsafe.Pointer(p1))) | libc.Int32FromUint16(libc.Uint16FromInt32(val))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19405. v3 = s + 20
  19406. v2 = *(*Tulg)(unsafe.Pointer(v3))
  19407. *(*Tulg)(unsafe.Pointer(v3))++
  19408. *(*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))
  19409. v5 = s + 20
  19410. v4 = *(*Tulg)(unsafe.Pointer(v5))
  19411. *(*Tulg)(unsafe.Pointer(v5))++
  19412. *(*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))
  19413. (*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))
  19414. *(*int32)(unsafe.Pointer(s + 5820)) += len1 - int32(m_Buf_size)
  19415. } else {
  19416. p6 = s + 5816
  19417. *(*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)
  19418. *(*int32)(unsafe.Pointer(s + 5820)) += len1
  19419. } /* send block type */
  19420. _bi_windup(tls, s) /* align on byte boundary */
  19421. v8 = s + 20
  19422. v7 = *(*Tulg)(unsafe.Pointer(v8))
  19423. *(*Tulg)(unsafe.Pointer(v8))++
  19424. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v7))) = libc.Uint8FromInt32(libc.Int32FromUint16(uint16(stored_len)) & libc.Int32FromInt32(0xff))
  19425. v10 = s + 20
  19426. v9 = *(*Tulg)(unsafe.Pointer(v10))
  19427. *(*Tulg)(unsafe.Pointer(v10))++
  19428. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v9))) = libc.Uint8FromInt32(libc.Int32FromUint16(uint16(stored_len)) >> libc.Int32FromInt32(8))
  19429. v12 = s + 20
  19430. v11 = *(*Tulg)(unsafe.Pointer(v12))
  19431. *(*Tulg)(unsafe.Pointer(v12))++
  19432. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v11))) = libc.Uint8FromInt32(libc.Int32FromUint16(uint16(^stored_len)) & libc.Int32FromInt32(0xff))
  19433. v14 = s + 20
  19434. v13 = *(*Tulg)(unsafe.Pointer(v14))
  19435. *(*Tulg)(unsafe.Pointer(v14))++
  19436. *(*TBytef)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf + uintptr(v13))) = libc.Uint8FromInt32(libc.Int32FromUint16(uint16(^stored_len)) >> libc.Int32FromInt32(8))
  19437. if stored_len != 0 {
  19438. libc.Xmemcpy(tls, (*Tdeflate_state)(unsafe.Pointer(s)).Fpending_buf+uintptr((*Tdeflate_state)(unsafe.Pointer(s)).Fpending), buf, stored_len)
  19439. }
  19440. *(*Tulg)(unsafe.Pointer(s + 20)) += stored_len
  19441. }
  19442. // C documentation
  19443. //
  19444. // /* ===========================================================================
  19445. // * Flush the bits in the bit buffer to pending output (leaves at most 7 bits)
  19446. // */
  19447. func x__tr_flush_bits(tls *libc.TLS, s uintptr) {
  19448. _bi_flush(tls, s)
  19449. }
  19450. // C documentation
  19451. //
  19452. // /* ===========================================================================
  19453. // * Send one empty static block to give enough lookahead for inflate.
  19454. // * This takes 10 bits, of which 7 may remain in the bit buffer.
  19455. // */
  19456. func x__tr_align(tls *libc.TLS, s uintptr) {
  19457. var len1, len11, val, val1 int32
  19458. var v10, v2, v4, v8 Tulg
  19459. var v11, v3, v5, v9, p1, p12, p6, p7 uintptr
  19460. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = len1, len11, val, val1, v10, v11, v2, v3, v4, v5, v8, v9, p1, p12, p6, p7
  19461. len1 = int32(3)
  19462. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len1 {
  19463. val = libc.Int32FromInt32(m_STATIC_TREES) << libc.Int32FromInt32(1)
  19464. p1 = s + 5816
  19465. *(*Tush)(unsafe.Pointer(p1)) = Tush(int32(*(*Tush)(unsafe.Pointer(p1))) | libc.Int32FromUint16(libc.Uint16FromInt32(val))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19466. v3 = s + 20
  19467. v2 = *(*Tulg)(unsafe.Pointer(v3))
  19468. *(*Tulg)(unsafe.Pointer(v3))++
  19469. *(*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))
  19470. v5 = s + 20
  19471. v4 = *(*Tulg)(unsafe.Pointer(v5))
  19472. *(*Tulg)(unsafe.Pointer(v5))++
  19473. *(*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))
  19474. (*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))
  19475. *(*int32)(unsafe.Pointer(s + 5820)) += len1 - int32(m_Buf_size)
  19476. } else {
  19477. p6 = s + 5816
  19478. *(*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)
  19479. *(*int32)(unsafe.Pointer(s + 5820)) += len1
  19480. }
  19481. len11 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(uintptr(unsafe.Pointer(&_static_ltree)) + 256*4 + 2)))
  19482. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len11 {
  19483. val1 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(uintptr(unsafe.Pointer(&_static_ltree)) + 256*4)))
  19484. p7 = s + 5816
  19485. *(*Tush)(unsafe.Pointer(p7)) = Tush(int32(*(*Tush)(unsafe.Pointer(p7))) | libc.Int32FromUint16(libc.Uint16FromInt32(val1))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19486. v9 = s + 20
  19487. v8 = *(*Tulg)(unsafe.Pointer(v9))
  19488. *(*Tulg)(unsafe.Pointer(v9))++
  19489. *(*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))
  19490. v11 = s + 20
  19491. v10 = *(*Tulg)(unsafe.Pointer(v11))
  19492. *(*Tulg)(unsafe.Pointer(v11))++
  19493. *(*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))
  19494. (*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))
  19495. *(*int32)(unsafe.Pointer(s + 5820)) += len11 - int32(m_Buf_size)
  19496. } else {
  19497. p12 = s + 5816
  19498. *(*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)
  19499. *(*int32)(unsafe.Pointer(s + 5820)) += len11
  19500. }
  19501. _bi_flush(tls, s)
  19502. }
  19503. // C documentation
  19504. //
  19505. // /* ===========================================================================
  19506. // * Send the block data compressed using the given Huffman trees
  19507. // */
  19508. func _compress_block(tls *libc.TLS, s uintptr, ltree uintptr, dtree uintptr) {
  19509. var code, dist, sx, v1, v2, v3 uint32
  19510. var extra, lc, len1, len11, len2, len3, len4, len5, val, val1, val2, val3, val4, val5, v22 int32
  19511. var v11, v13, v17, v19, v24, v26, v30, v32, v36, v38, v5, v7 Tulg
  19512. 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
  19513. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = 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) */
  19514. sx = uint32(0) /* number of extra bits to send */
  19515. if (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next != uint32(0) {
  19516. for cond := true; cond; cond = sx < (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next {
  19517. v1 = sx
  19518. sx++
  19519. dist = libc.Uint32FromInt32(libc.Int32FromUint8(*(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v1)))) & int32(0xff))
  19520. v2 = sx
  19521. sx++
  19522. dist += libc.Uint32FromInt32(libc.Int32FromUint8(*(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v2))))&libc.Int32FromInt32(0xff)) << int32(8)
  19523. v3 = sx
  19524. sx++
  19525. lc = libc.Int32FromUint8(*(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v3))))
  19526. if dist == uint32(0) {
  19527. len1 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(ltree + uintptr(lc)*4 + 2)))
  19528. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len1 {
  19529. val = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(ltree + uintptr(lc)*4)))
  19530. p4 = s + 5816
  19531. *(*Tush)(unsafe.Pointer(p4)) = Tush(int32(*(*Tush)(unsafe.Pointer(p4))) | libc.Int32FromUint16(libc.Uint16FromInt32(val))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19532. v6 = s + 20
  19533. v5 = *(*Tulg)(unsafe.Pointer(v6))
  19534. *(*Tulg)(unsafe.Pointer(v6))++
  19535. *(*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))
  19536. v8 = s + 20
  19537. v7 = *(*Tulg)(unsafe.Pointer(v8))
  19538. *(*Tulg)(unsafe.Pointer(v8))++
  19539. *(*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))
  19540. (*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))
  19541. *(*int32)(unsafe.Pointer(s + 5820)) += len1 - int32(m_Buf_size)
  19542. } else {
  19543. p9 = s + 5816
  19544. *(*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)
  19545. *(*int32)(unsafe.Pointer(s + 5820)) += len1
  19546. } /* send a literal byte */
  19547. } else {
  19548. /* Here, lc is the match length - MIN_MATCH */
  19549. code = uint32(x__length_code[lc])
  19550. len11 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(ltree + uintptr(code+uint32(m_LITERALS)+uint32(1))*4 + 2)))
  19551. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len11 {
  19552. val1 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(ltree + uintptr(code+uint32(m_LITERALS)+uint32(1))*4)))
  19553. p10 = s + 5816
  19554. *(*Tush)(unsafe.Pointer(p10)) = Tush(int32(*(*Tush)(unsafe.Pointer(p10))) | libc.Int32FromUint16(libc.Uint16FromInt32(val1))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19555. v12 = s + 20
  19556. v11 = *(*Tulg)(unsafe.Pointer(v12))
  19557. *(*Tulg)(unsafe.Pointer(v12))++
  19558. *(*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))
  19559. v14 = s + 20
  19560. v13 = *(*Tulg)(unsafe.Pointer(v14))
  19561. *(*Tulg)(unsafe.Pointer(v14))++
  19562. *(*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))
  19563. (*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))
  19564. *(*int32)(unsafe.Pointer(s + 5820)) += len11 - int32(m_Buf_size)
  19565. } else {
  19566. p15 = s + 5816
  19567. *(*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)
  19568. *(*int32)(unsafe.Pointer(s + 5820)) += len11
  19569. } /* send length code */
  19570. extra = _extra_lbits[code]
  19571. if extra != 0 {
  19572. lc -= _base_length[code]
  19573. len2 = extra
  19574. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len2 {
  19575. val2 = lc
  19576. p16 = s + 5816
  19577. *(*Tush)(unsafe.Pointer(p16)) = Tush(int32(*(*Tush)(unsafe.Pointer(p16))) | libc.Int32FromUint16(libc.Uint16FromInt32(val2))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19578. v18 = s + 20
  19579. v17 = *(*Tulg)(unsafe.Pointer(v18))
  19580. *(*Tulg)(unsafe.Pointer(v18))++
  19581. *(*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))
  19582. v20 = s + 20
  19583. v19 = *(*Tulg)(unsafe.Pointer(v20))
  19584. *(*Tulg)(unsafe.Pointer(v20))++
  19585. *(*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))
  19586. (*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))
  19587. *(*int32)(unsafe.Pointer(s + 5820)) += len2 - int32(m_Buf_size)
  19588. } else {
  19589. p21 = s + 5816
  19590. *(*Tush)(unsafe.Pointer(p21)) = Tush(int32(*(*Tush)(unsafe.Pointer(p21))) | libc.Int32FromUint16(libc.Uint16FromInt32(lc))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19591. *(*int32)(unsafe.Pointer(s + 5820)) += len2
  19592. } /* send the extra length bits */
  19593. }
  19594. dist-- /* dist is now the match distance - 1 */
  19595. if dist < uint32(256) {
  19596. v22 = libc.Int32FromUint8(x__dist_code[dist])
  19597. } else {
  19598. v22 = libc.Int32FromUint8(x__dist_code[uint32(256)+dist>>int32(7)])
  19599. }
  19600. code = libc.Uint32FromInt32(v22)
  19601. len3 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(dtree + uintptr(code)*4 + 2)))
  19602. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len3 {
  19603. val3 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(dtree + uintptr(code)*4)))
  19604. p23 = s + 5816
  19605. *(*Tush)(unsafe.Pointer(p23)) = Tush(int32(*(*Tush)(unsafe.Pointer(p23))) | libc.Int32FromUint16(libc.Uint16FromInt32(val3))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19606. v25 = s + 20
  19607. v24 = *(*Tulg)(unsafe.Pointer(v25))
  19608. *(*Tulg)(unsafe.Pointer(v25))++
  19609. *(*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))
  19610. v27 = s + 20
  19611. v26 = *(*Tulg)(unsafe.Pointer(v27))
  19612. *(*Tulg)(unsafe.Pointer(v27))++
  19613. *(*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))
  19614. (*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))
  19615. *(*int32)(unsafe.Pointer(s + 5820)) += len3 - int32(m_Buf_size)
  19616. } else {
  19617. p28 = s + 5816
  19618. *(*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)
  19619. *(*int32)(unsafe.Pointer(s + 5820)) += len3
  19620. } /* send the distance code */
  19621. extra = _extra_dbits[code]
  19622. if extra != 0 {
  19623. dist -= libc.Uint32FromInt32(_base_dist[code])
  19624. len4 = extra
  19625. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len4 {
  19626. val4 = libc.Int32FromUint32(dist)
  19627. p29 = s + 5816
  19628. *(*Tush)(unsafe.Pointer(p29)) = Tush(int32(*(*Tush)(unsafe.Pointer(p29))) | libc.Int32FromUint16(libc.Uint16FromInt32(val4))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19629. v31 = s + 20
  19630. v30 = *(*Tulg)(unsafe.Pointer(v31))
  19631. *(*Tulg)(unsafe.Pointer(v31))++
  19632. *(*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))
  19633. v33 = s + 20
  19634. v32 = *(*Tulg)(unsafe.Pointer(v33))
  19635. *(*Tulg)(unsafe.Pointer(v33))++
  19636. *(*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))
  19637. (*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))
  19638. *(*int32)(unsafe.Pointer(s + 5820)) += len4 - int32(m_Buf_size)
  19639. } else {
  19640. p34 = s + 5816
  19641. *(*Tush)(unsafe.Pointer(p34)) = Tush(int32(*(*Tush)(unsafe.Pointer(p34))) | libc.Int32FromUint16(uint16(dist))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19642. *(*int32)(unsafe.Pointer(s + 5820)) += len4
  19643. } /* send the extra distance bits */
  19644. }
  19645. } /* literal or match pair ? */
  19646. /* Check for no overlay of pending_buf on needed symbols */
  19647. }
  19648. }
  19649. len5 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(ltree + 256*4 + 2)))
  19650. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len5 {
  19651. val5 = libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(ltree + 256*4)))
  19652. p35 = s + 5816
  19653. *(*Tush)(unsafe.Pointer(p35)) = Tush(int32(*(*Tush)(unsafe.Pointer(p35))) | libc.Int32FromUint16(libc.Uint16FromInt32(val5))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19654. v37 = s + 20
  19655. v36 = *(*Tulg)(unsafe.Pointer(v37))
  19656. *(*Tulg)(unsafe.Pointer(v37))++
  19657. *(*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))
  19658. v39 = s + 20
  19659. v38 = *(*Tulg)(unsafe.Pointer(v39))
  19660. *(*Tulg)(unsafe.Pointer(v39))++
  19661. *(*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))
  19662. (*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))
  19663. *(*int32)(unsafe.Pointer(s + 5820)) += len5 - int32(m_Buf_size)
  19664. } else {
  19665. p40 = s + 5816
  19666. *(*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)
  19667. *(*int32)(unsafe.Pointer(s + 5820)) += len5
  19668. }
  19669. }
  19670. // C documentation
  19671. //
  19672. // /* ===========================================================================
  19673. // * Check if the data type is TEXT or BINARY, using the following algorithm:
  19674. // * - TEXT if the two conditions below are satisfied:
  19675. // * a) There are no non-portable control characters belonging to the
  19676. // * "block list" (0..6, 14..25, 28..31).
  19677. // * b) There is at least one printable character belonging to the
  19678. // * "allow list" (9 {TAB}, 10 {LF}, 13 {CR}, 32..255).
  19679. // * - BINARY otherwise.
  19680. // * - The following partially-portable control characters form a
  19681. // * "gray list" that is ignored in this detection algorithm:
  19682. // * (7 {BEL}, 8 {BS}, 11 {VT}, 12 {FF}, 26 {SUB}, 27 {ESC}).
  19683. // * IN assertion: the fields Freq of dyn_ltree are set.
  19684. // */
  19685. func _detect_data_type(tls *libc.TLS, s uintptr) (r int32) {
  19686. var block_mask uint32
  19687. var n int32
  19688. _, _ = block_mask, n
  19689. /* block_mask is the bit mask of block-listed bytes
  19690. * set bits 0..6, 14..25, and 28..31
  19691. * 0xf3ffc07f = binary 11110011111111111100000001111111
  19692. */
  19693. block_mask = uint32(0xf3ffc07f)
  19694. /* Check for non-textual ("block-listed") bytes. */
  19695. n = 0
  19696. for {
  19697. if !(n <= int32(31)) {
  19698. break
  19699. }
  19700. if block_mask&uint32(1) != 0 && libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 148 + uintptr(n)*4))) != 0 {
  19701. return m_Z_BINARY
  19702. }
  19703. goto _1
  19704. _1:
  19705. ;
  19706. n++
  19707. block_mask >>= uint32(1)
  19708. }
  19709. /* Check for textual ("allow-listed") bytes. */
  19710. if libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 148 + 9*4))) != 0 || libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 148 + 10*4))) != 0 || libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 148 + 13*4))) != 0 {
  19711. return int32(m_Z_TEXT)
  19712. }
  19713. n = int32(32)
  19714. for {
  19715. if !(n < int32(m_LITERALS)) {
  19716. break
  19717. }
  19718. if libc.Int32FromUint16(*(*Tush)(unsafe.Pointer(s + 148 + uintptr(n)*4))) != 0 {
  19719. return int32(m_Z_TEXT)
  19720. }
  19721. goto _2
  19722. _2:
  19723. ;
  19724. n++
  19725. }
  19726. /* There are no "block-listed" or "allow-listed" bytes:
  19727. * this stream either is empty or has tolerated ("gray-listed") bytes only.
  19728. */
  19729. return m_Z_BINARY
  19730. }
  19731. // C documentation
  19732. //
  19733. // /* ===========================================================================
  19734. // * Determine the best encoding for the current block: dynamic trees, static
  19735. // * trees or store, and write out the encoded block.
  19736. // */
  19737. func x__tr_flush_block(tls *libc.TLS, s uintptr, buf uintptr, stored_len Tulg, last int32) {
  19738. var len1, len11, max_blindex, val, val1 int32
  19739. var opt_lenb, static_lenb, v1, v11, v3, v5, v9 Tulg
  19740. var v10, v12, v4, v6, p13, p2, p7, p8 uintptr
  19741. _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _ = 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 */
  19742. max_blindex = 0 /* index of last bit length code of non zero freq */
  19743. /* Build the Huffman trees unless a stored block is forced */
  19744. if (*Tdeflate_state)(unsafe.Pointer(s)).Flevel > 0 {
  19745. /* Check if the file is binary or text */
  19746. if (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Fdata_type == int32(m_Z_UNKNOWN) {
  19747. (*Tz_stream)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fstrm)).Fdata_type = _detect_data_type(tls, s)
  19748. }
  19749. /* Construct the literal and distance trees */
  19750. _build_tree(tls, s, s+2840)
  19751. _build_tree(tls, s, s+2852)
  19752. /* At this point, opt_len and static_len are the total bit lengths of
  19753. * the compressed block data, excluding the tree representations.
  19754. */
  19755. /* Build the bit length tree for the above two trees, and get the index
  19756. * in bl_order of the last bit length code to send.
  19757. */
  19758. max_blindex = _build_bl_tree(tls, s)
  19759. /* Determine the best encoding. Compute the block lengths in bytes. */
  19760. opt_lenb = ((*Tdeflate_state)(unsafe.Pointer(s)).Fopt_len + uint32(3) + uint32(7)) >> int32(3)
  19761. static_lenb = ((*Tdeflate_state)(unsafe.Pointer(s)).Fstatic_len + uint32(3) + uint32(7)) >> int32(3)
  19762. if static_lenb <= opt_lenb || (*Tdeflate_state)(unsafe.Pointer(s)).Fstrategy == int32(m_Z_FIXED) {
  19763. opt_lenb = static_lenb
  19764. }
  19765. } else {
  19766. v1 = stored_len + libc.Uint32FromInt32(5)
  19767. static_lenb = v1
  19768. opt_lenb = v1 /* force a stored block */
  19769. }
  19770. if stored_len+uint32(4) <= opt_lenb && buf != libc.UintptrFromInt32(0) {
  19771. /* 4: two words for the lengths */
  19772. /* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE.
  19773. * Otherwise we can't have processed more than WSIZE input bytes since
  19774. * the last block flush, because compression would have been
  19775. * successful. If LIT_BUFSIZE <= WSIZE, it is never too late to
  19776. * transform a block into a stored block.
  19777. */
  19778. x__tr_stored_block(tls, s, buf, stored_len, last)
  19779. } else {
  19780. if static_lenb == opt_lenb {
  19781. len1 = int32(3)
  19782. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len1 {
  19783. val = libc.Int32FromInt32(m_STATIC_TREES)<<libc.Int32FromInt32(1) + last
  19784. p2 = s + 5816
  19785. *(*Tush)(unsafe.Pointer(p2)) = Tush(int32(*(*Tush)(unsafe.Pointer(p2))) | libc.Int32FromUint16(libc.Uint16FromInt32(val))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19786. v4 = s + 20
  19787. v3 = *(*Tulg)(unsafe.Pointer(v4))
  19788. *(*Tulg)(unsafe.Pointer(v4))++
  19789. *(*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))
  19790. v6 = s + 20
  19791. v5 = *(*Tulg)(unsafe.Pointer(v6))
  19792. *(*Tulg)(unsafe.Pointer(v6))++
  19793. *(*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))
  19794. (*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))
  19795. *(*int32)(unsafe.Pointer(s + 5820)) += len1 - int32(m_Buf_size)
  19796. } else {
  19797. p7 = s + 5816
  19798. *(*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)
  19799. *(*int32)(unsafe.Pointer(s + 5820)) += len1
  19800. }
  19801. _compress_block(tls, s, uintptr(unsafe.Pointer(&_static_ltree)), uintptr(unsafe.Pointer(&_static_dtree)))
  19802. } else {
  19803. len11 = int32(3)
  19804. if (*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid > libc.Int32FromInt32(m_Buf_size)-len11 {
  19805. val1 = libc.Int32FromInt32(m_DYN_TREES)<<libc.Int32FromInt32(1) + last
  19806. p8 = s + 5816
  19807. *(*Tush)(unsafe.Pointer(p8)) = Tush(int32(*(*Tush)(unsafe.Pointer(p8))) | libc.Int32FromUint16(libc.Uint16FromInt32(val1))<<(*Tdeflate_state)(unsafe.Pointer(s)).Fbi_valid)
  19808. v10 = s + 20
  19809. v9 = *(*Tulg)(unsafe.Pointer(v10))
  19810. *(*Tulg)(unsafe.Pointer(v10))++
  19811. *(*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))
  19812. v12 = s + 20
  19813. v11 = *(*Tulg)(unsafe.Pointer(v12))
  19814. *(*Tulg)(unsafe.Pointer(v12))++
  19815. *(*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))
  19816. (*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))
  19817. *(*int32)(unsafe.Pointer(s + 5820)) += len11 - int32(m_Buf_size)
  19818. } else {
  19819. p13 = s + 5816
  19820. *(*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)
  19821. *(*int32)(unsafe.Pointer(s + 5820)) += len11
  19822. }
  19823. _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))
  19824. _compress_block(tls, s, s+148, s+2440)
  19825. }
  19826. }
  19827. /* The above check is made mod 2^32, for files larger than 512 MB
  19828. * and uLong implemented on 32 bits.
  19829. */
  19830. _init_block(tls, s)
  19831. if last != 0 {
  19832. _bi_windup(tls, s)
  19833. }
  19834. }
  19835. // C documentation
  19836. //
  19837. // /* ===========================================================================
  19838. // * Save the match info and tally the frequency counts. Return true if
  19839. // * the current block must be flushed.
  19840. // */
  19841. func x__tr_tally(tls *libc.TLS, s uintptr, dist uint32, lc uint32) (r int32) {
  19842. var v1, v3, v5 TuInt
  19843. var v2, v4, v6 uintptr
  19844. var v7 int32
  19845. _, _, _, _, _, _, _ = v1, v2, v3, v4, v5, v6, v7
  19846. v2 = s + 5792
  19847. v1 = *(*TuInt)(unsafe.Pointer(v2))
  19848. *(*TuInt)(unsafe.Pointer(v2))++
  19849. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v1))) = uint8(dist)
  19850. v4 = s + 5792
  19851. v3 = *(*TuInt)(unsafe.Pointer(v4))
  19852. *(*TuInt)(unsafe.Pointer(v4))++
  19853. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v3))) = uint8(dist >> libc.Int32FromInt32(8))
  19854. v6 = s + 5792
  19855. v5 = *(*TuInt)(unsafe.Pointer(v6))
  19856. *(*TuInt)(unsafe.Pointer(v6))++
  19857. *(*Tuchf)(unsafe.Pointer((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_buf + uintptr(v5))) = uint8(lc)
  19858. if dist == uint32(0) {
  19859. /* lc is the unmatched char */
  19860. *(*Tush)(unsafe.Pointer(s + 148 + uintptr(lc)*4))++
  19861. } else {
  19862. (*Tdeflate_state)(unsafe.Pointer(s)).Fmatches++
  19863. /* Here, lc is the match length - MIN_MATCH */
  19864. dist-- /* dist = match distance - 1 */
  19865. *(*Tush)(unsafe.Pointer(s + 148 + uintptr(libc.Int32FromUint8(x__length_code[lc])+int32(m_LITERALS)+int32(1))*4))++
  19866. if dist < uint32(256) {
  19867. v7 = libc.Int32FromUint8(x__dist_code[dist])
  19868. } else {
  19869. v7 = libc.Int32FromUint8(x__dist_code[uint32(256)+dist>>int32(7)])
  19870. }
  19871. *(*Tush)(unsafe.Pointer(s + 2440 + uintptr(v7)*4))++
  19872. }
  19873. return libc.BoolInt32((*Tdeflate_state)(unsafe.Pointer(s)).Fsym_next == (*Tdeflate_state)(unsafe.Pointer(s)).Fsym_end)
  19874. }
  19875. const m_AT_EACCESS = 0x200
  19876. const m_AT_EMPTY_PATH = 0x1000
  19877. const m_AT_NO_AUTOMOUNT = 0x800
  19878. const m_AT_RECURSIVE = 0x8000
  19879. const m_AT_REMOVEDIR = 0x200
  19880. const m_AT_STATX_DONT_SYNC = 0x4000
  19881. const m_AT_STATX_FORCE_SYNC = 0x2000
  19882. const m_AT_STATX_SYNC_AS_STAT = 0x0000
  19883. const m_AT_STATX_SYNC_TYPE = 0x6000
  19884. const m_AT_SYMLINK_FOLLOW = 0x400
  19885. const m_AT_SYMLINK_NOFOLLOW = 0x100
  19886. const m_BUFSIZ = 1024
  19887. const m_COPY = 1
  19888. const m_DN_ACCESS = 0x00000001
  19889. const m_DN_ATTRIB = 0x00000020
  19890. const m_DN_CREATE = 0x00000004
  19891. const m_DN_DELETE = 0x00000008
  19892. const m_DN_MODIFY = 0x00000002
  19893. const m_DN_MULTISHOT = 0x80000000
  19894. const m_DN_RENAME = 0x00000010
  19895. const m_E2BIG = 7
  19896. const m_EACCES = 13
  19897. const m_EADDRINUSE = 98
  19898. const m_EADDRNOTAVAIL = 99
  19899. const m_EADV = 68
  19900. const m_EAFNOSUPPORT = 97
  19901. const m_EAGAIN = 11
  19902. const m_EALREADY = 114
  19903. const m_EBADE = 52
  19904. const m_EBADF = 9
  19905. const m_EBADFD = 77
  19906. const m_EBADMSG = 74
  19907. const m_EBADR = 53
  19908. const m_EBADRQC = 56
  19909. const m_EBADSLT = 57
  19910. const m_EBFONT = 59
  19911. const m_EBUSY = 16
  19912. const m_ECANCELED = 125
  19913. const m_ECHILD = 10
  19914. const m_ECHRNG = 44
  19915. const m_ECOMM = 70
  19916. const m_ECONNABORTED = 103
  19917. const m_ECONNREFUSED = 111
  19918. const m_ECONNRESET = 104
  19919. const m_EDEADLK = 35
  19920. const m_EDEADLOCK = "EDEADLK"
  19921. const m_EDESTADDRREQ = 89
  19922. const m_EDOM = 33
  19923. const m_EDOTDOT = 73
  19924. const m_EDQUOT = 122
  19925. const m_EEXIST = 17
  19926. const m_EFAULT = 14
  19927. const m_EFBIG = 27
  19928. const m_EHOSTDOWN = 112
  19929. const m_EHOSTUNREACH = 113
  19930. const m_EHWPOISON = 133
  19931. const m_EIDRM = 43
  19932. const m_EILSEQ = 84
  19933. const m_EINPROGRESS = 115
  19934. const m_EINTR = 4
  19935. const m_EINVAL = 22
  19936. const m_EIO = 5
  19937. const m_EISCONN = 106
  19938. const m_EISDIR = 21
  19939. const m_EISNAM = 120
  19940. const m_EKEYEXPIRED = 127
  19941. const m_EKEYREJECTED = 129
  19942. const m_EKEYREVOKED = 128
  19943. const m_EL2HLT = 51
  19944. const m_EL2NSYNC = 45
  19945. const m_EL3HLT = 46
  19946. const m_EL3RST = 47
  19947. const m_ELIBACC = 79
  19948. const m_ELIBBAD = 80
  19949. const m_ELIBEXEC = 83
  19950. const m_ELIBMAX = 82
  19951. const m_ELIBSCN = 81
  19952. const m_ELNRNG = 48
  19953. const m_ELOOP = 40
  19954. const m_EMEDIUMTYPE = 124
  19955. const m_EMFILE = 24
  19956. const m_EMLINK = 31
  19957. const m_EMSGSIZE = 90
  19958. const m_EMULTIHOP = 72
  19959. const m_ENAMETOOLONG = 36
  19960. const m_ENAVAIL = 119
  19961. const m_ENETDOWN = 100
  19962. const m_ENETRESET = 102
  19963. const m_ENETUNREACH = 101
  19964. const m_ENFILE = 23
  19965. const m_ENOANO = 55
  19966. const m_ENOBUFS = 105
  19967. const m_ENOCSI = 50
  19968. const m_ENODATA = 61
  19969. const m_ENODEV = 19
  19970. const m_ENOENT = 2
  19971. const m_ENOEXEC = 8
  19972. const m_ENOKEY = 126
  19973. const m_ENOLCK = 37
  19974. const m_ENOLINK = 67
  19975. const m_ENOMEDIUM = 123
  19976. const m_ENOMEM = 12
  19977. const m_ENOMSG = 42
  19978. const m_ENONET = 64
  19979. const m_ENOPKG = 65
  19980. const m_ENOPROTOOPT = 92
  19981. const m_ENOSPC = 28
  19982. const m_ENOSR = 63
  19983. const m_ENOSTR = 60
  19984. const m_ENOSYS = 38
  19985. const m_ENOTBLK = 15
  19986. const m_ENOTCONN = 107
  19987. const m_ENOTDIR = 20
  19988. const m_ENOTEMPTY = 39
  19989. const m_ENOTNAM = 118
  19990. const m_ENOTRECOVERABLE = 131
  19991. const m_ENOTSOCK = 88
  19992. const m_ENOTSUP = "EOPNOTSUPP"
  19993. const m_ENOTTY = 25
  19994. const m_ENOTUNIQ = 76
  19995. const m_ENXIO = 6
  19996. const m_EOPNOTSUPP = 95
  19997. const m_EOVERFLOW = 75
  19998. const m_EOWNERDEAD = 130
  19999. const m_EPERM = 1
  20000. const m_EPFNOSUPPORT = 96
  20001. const m_EPIPE = 32
  20002. const m_EPROTO = 71
  20003. const m_EPROTONOSUPPORT = 93
  20004. const m_EPROTOTYPE = 91
  20005. const m_ERANGE = 34
  20006. const m_EREMCHG = 78
  20007. const m_EREMOTE = 66
  20008. const m_EREMOTEIO = 121
  20009. const m_ERESTART = 85
  20010. const m_ERFKILL = 132
  20011. const m_EROFS = 30
  20012. const m_ESHUTDOWN = 108
  20013. const m_ESOCKTNOSUPPORT = 94
  20014. const m_ESPIPE = 29
  20015. const m_ESRCH = 3
  20016. const m_ESRMNT = 69
  20017. const m_ESTALE = 116
  20018. const m_ESTRPIPE = 86
  20019. const m_ETIME = 62
  20020. const m_ETIMEDOUT = 110
  20021. const m_ETOOMANYREFS = 109
  20022. const m_ETXTBSY = 26
  20023. const m_EUCLEAN = 117
  20024. const m_EUNATCH = 49
  20025. const m_EUSERS = 87
  20026. const m_EWOULDBLOCK = "EAGAIN"
  20027. const m_EXDEV = 18
  20028. const m_EXFULL = 54
  20029. const m_FALLOC_FL_KEEP_SIZE = 1
  20030. const m_FALLOC_FL_PUNCH_HOLE = 2
  20031. const m_FAPPEND = "O_APPEND"
  20032. const m_FASYNC = "O_ASYNC"
  20033. const m_FD_CLOEXEC = 1
  20034. const m_FFSYNC = "O_SYNC"
  20035. const m_FILENAME_MAX = 4096
  20036. const m_FNDELAY = "O_NDELAY"
  20037. const m_FNONBLOCK = "O_NONBLOCK"
  20038. const m_FOPEN_MAX = 1000
  20039. const m_F_ADD_SEALS = 1033
  20040. const m_F_CANCELLK = 1029
  20041. const m_F_DUPFD = 0
  20042. const m_F_DUPFD_CLOEXEC = 1030
  20043. const m_F_GETFD = 1
  20044. const m_F_GETFL = 3
  20045. const m_F_GETLEASE = 1025
  20046. const m_F_GETLK = 12
  20047. const m_F_GETLK64 = "F_GETLK"
  20048. const m_F_GETOWN = 9
  20049. const m_F_GETOWNER_UIDS = 17
  20050. const m_F_GETOWN_EX = 16
  20051. const m_F_GETPIPE_SZ = 1032
  20052. const m_F_GETSIG = 11
  20053. const m_F_GET_FILE_RW_HINT = 1037
  20054. const m_F_GET_RW_HINT = 1035
  20055. const m_F_GET_SEALS = 1034
  20056. const m_F_NOTIFY = 1026
  20057. const m_F_OFD_GETLK = 36
  20058. const m_F_OFD_SETLK = 37
  20059. const m_F_OFD_SETLKW = 38
  20060. const m_F_OWNER_GID = 2
  20061. const m_F_OWNER_PGRP = 2
  20062. const m_F_OWNER_PID = 1
  20063. const m_F_OWNER_TID = 0
  20064. const m_F_RDLCK = 0
  20065. const m_F_SEAL_FUTURE_WRITE = 0x0010
  20066. const m_F_SEAL_GROW = 0x0004
  20067. const m_F_SEAL_SEAL = 0x0001
  20068. const m_F_SEAL_SHRINK = 0x0002
  20069. const m_F_SEAL_WRITE = 0x0008
  20070. const m_F_SETFD = 2
  20071. const m_F_SETFL = 4
  20072. const m_F_SETLEASE = 1024
  20073. const m_F_SETLK = 13
  20074. const m_F_SETLK64 = "F_SETLK"
  20075. const m_F_SETLKW = 14
  20076. const m_F_SETLKW64 = "F_SETLKW"
  20077. const m_F_SETOWN = 8
  20078. const m_F_SETOWN_EX = 15
  20079. const m_F_SETPIPE_SZ = 1031
  20080. const m_F_SETSIG = 10
  20081. const m_F_SET_FILE_RW_HINT = 1038
  20082. const m_F_SET_RW_HINT = 1036
  20083. const m_F_UNLCK = 2
  20084. const m_F_WRLCK = 1
  20085. const m_GZBUFSIZE = 8192
  20086. const m_GZIP = 2
  20087. const m_GZ_APPEND = 1
  20088. const m_GZ_NONE = 0
  20089. const m_GZ_READ = 7247
  20090. const m_GZ_WRITE = 31153
  20091. const m_LOOK = 0
  20092. const m_L_ctermid = 20
  20093. const m_L_cuserid = 20
  20094. const m_L_tmpnam = 20
  20095. const m_MAX_HANDLE_SZ = 128
  20096. const m_O_APPEND = 02000
  20097. const m_O_ASYNC = 020000
  20098. const m_O_CLOEXEC = 02000000
  20099. const m_O_CREAT = 0100
  20100. const m_O_DIRECT = 040000
  20101. const m_O_DIRECTORY = 0200000
  20102. const m_O_DSYNC = 010000
  20103. const m_O_EXCL = 0200
  20104. const m_O_EXEC = "O_PATH"
  20105. const m_O_LARGEFILE = 0100000
  20106. const m_O_NDELAY = "O_NONBLOCK"
  20107. const m_O_NOATIME = 01000000
  20108. const m_O_NOCTTY = 0400
  20109. const m_O_NOFOLLOW = 0400000
  20110. const m_O_NONBLOCK = 04000
  20111. const m_O_PATH = 010000000
  20112. const m_O_RDONLY = 00
  20113. const m_O_RDWR = 02
  20114. const m_O_RSYNC = 04010000
  20115. const m_O_SEARCH = "O_PATH"
  20116. const m_O_SYNC = 04010000
  20117. const m_O_TMPFILE = 020200000
  20118. const m_O_TRUNC = 01000
  20119. const m_O_TTY_INIT = 0
  20120. const m_O_WRONLY = 01
  20121. const m_POSIX_FADV_DONTNEED = 4
  20122. const m_POSIX_FADV_NOREUSE = 5
  20123. const m_POSIX_FADV_NORMAL = 0
  20124. const m_POSIX_FADV_RANDOM = 1
  20125. const m_POSIX_FADV_SEQUENTIAL = 2
  20126. const m_POSIX_FADV_WILLNEED = 3
  20127. const m_P_tmpdir = "/tmp"
  20128. const m_RWF_WRITE_LIFE_NOT_SET = 0
  20129. const m_RWH_WRITE_LIFE_EXTREME = 5
  20130. const m_RWH_WRITE_LIFE_LONG = 4
  20131. const m_RWH_WRITE_LIFE_MEDIUM = 3
  20132. const m_RWH_WRITE_LIFE_NONE = 1
  20133. const m_RWH_WRITE_LIFE_SHORT = 2
  20134. const m_SPLICE_F_GIFT = 8
  20135. const m_SPLICE_F_MORE = 4
  20136. const m_SPLICE_F_MOVE = 1
  20137. const m_SPLICE_F_NONBLOCK = 2
  20138. const m_SYNC_FILE_RANGE_WAIT_AFTER = 4
  20139. const m_SYNC_FILE_RANGE_WAIT_BEFORE = 1
  20140. const m_SYNC_FILE_RANGE_WRITE = 2
  20141. const m_S_IRGRP = 0040
  20142. const m_S_IROTH = 0004
  20143. const m_S_IRUSR = 0400
  20144. const m_S_IRWXG = 0070
  20145. const m_S_IRWXO = 0007
  20146. const m_S_IRWXU = 0700
  20147. const m_S_ISGID = 02000
  20148. const m_S_ISUID = 04000
  20149. const m_S_ISVTX = 01000
  20150. const m_S_IWGRP = 0020
  20151. const m_S_IWOTH = 0002
  20152. const m_S_IWUSR = 0200
  20153. const m_S_IXGRP = 0010
  20154. const m_S_IXOTH = 0001
  20155. const m_S_IXUSR = 0100
  20156. const m_TMP_MAX = 10000
  20157. const m__IOFBF = 0
  20158. const m__IOLBF = 1
  20159. const m__IONBF = 2
  20160. const m__LARGEFILE_SOURCE = 1
  20161. const m_creat64 = "creat"
  20162. const m_fallocate64 = "fallocate"
  20163. const m_fgetpos64 = "fgetpos"
  20164. const m_flock64 = "flock"
  20165. const m_fopen64 = "fopen"
  20166. const m_fpos64_t = "fpos_t"
  20167. const m_freopen64 = "freopen"
  20168. const m_fseeko64 = "fseeko"
  20169. const m_fsetpos64 = "fsetpos"
  20170. const m_ftello64 = "ftello"
  20171. const m_loff_t = "off_t"
  20172. const m_open64 = "open"
  20173. const m_openat64 = "openat"
  20174. const m_posix_fadvise64 = "posix_fadvise"
  20175. const m_posix_fallocate64 = "posix_fallocate"
  20176. const m_tmpfile64 = "tmpfile"
  20177. type t__isoc_va_list = uintptr
  20178. type Tfpos_t = struct {
  20179. F__lldata [0]int64
  20180. F__align [0]float64
  20181. F__opaque [16]int8
  20182. }
  20183. type T_G_fpos64_t = Tfpos_t
  20184. type Tcookie_io_functions_t = struct {
  20185. Fread uintptr
  20186. Fwrite uintptr
  20187. Fseek uintptr
  20188. Fclose1 uintptr
  20189. }
  20190. type T_IO_cookie_io_functions_t = Tcookie_io_functions_t
  20191. type Tiovec = struct {
  20192. Fiov_base uintptr
  20193. Fiov_len Tsize_t
  20194. }
  20195. type Tflock = struct {
  20196. Fl_type int16
  20197. Fl_whence int16
  20198. Fl_start Toff_t
  20199. Fl_len Toff_t
  20200. Fl_pid Tpid_t
  20201. }
  20202. type Tfile_handle = struct {
  20203. Fhandle_bytes uint32
  20204. Fhandle_type int32
  20205. }
  20206. type Tf_owner_ex = struct {
  20207. Ftype1 int32
  20208. Fpid Tpid_t
  20209. }
  20210. type Tgz_state = struct {
  20211. Fx TgzFile_s
  20212. Fmode int32
  20213. Ffd int32
  20214. Fpath uintptr
  20215. Fsize uint32
  20216. Fwant uint32
  20217. Fin uintptr
  20218. Fout uintptr
  20219. Fdirect int32
  20220. Fhow int32
  20221. Fstart Toff_t
  20222. Feof int32
  20223. Fpast int32
  20224. Flevel int32
  20225. Fstrategy int32
  20226. Freset int32
  20227. Fskip Toff_t
  20228. Fseek int32
  20229. Ferr int32
  20230. Fmsg uintptr
  20231. Fstrm Tz_stream
  20232. }
  20233. type Tgz_statep = uintptr
  20234. func XzlibVersion(tls *libc.TLS) (r uintptr) {
  20235. return __ccgo_ts
  20236. }
  20237. func XzlibCompileFlags(tls *libc.TLS) (r TuLong) {
  20238. var flags TuLong
  20239. _ = flags
  20240. flags = uint32(0)
  20241. switch libc.Int32FromUint32(libc.Uint32FromInt64(4)) {
  20242. case int32(2):
  20243. case int32(4):
  20244. flags += uint32(1)
  20245. case int32(8):
  20246. flags += uint32(2)
  20247. default:
  20248. flags += uint32(3)
  20249. }
  20250. switch libc.Int32FromUint32(libc.Uint32FromInt64(4)) {
  20251. case int32(2):
  20252. case int32(4):
  20253. flags += libc.Uint32FromInt32(libc.Int32FromInt32(1) << libc.Int32FromInt32(2))
  20254. case int32(8):
  20255. flags += libc.Uint32FromInt32(libc.Int32FromInt32(2) << libc.Int32FromInt32(2))
  20256. default:
  20257. flags += libc.Uint32FromInt32(libc.Int32FromInt32(3) << libc.Int32FromInt32(2))
  20258. }
  20259. switch libc.Int32FromUint32(libc.Uint32FromInt64(4)) {
  20260. case int32(2):
  20261. case int32(4):
  20262. flags += libc.Uint32FromInt32(libc.Int32FromInt32(1) << libc.Int32FromInt32(4))
  20263. case int32(8):
  20264. flags += libc.Uint32FromInt32(libc.Int32FromInt32(2) << libc.Int32FromInt32(4))
  20265. default:
  20266. flags += libc.Uint32FromInt32(libc.Int32FromInt32(3) << libc.Int32FromInt32(4))
  20267. }
  20268. switch libc.Int32FromUint32(libc.Uint32FromInt64(8)) {
  20269. case int32(2):
  20270. case int32(4):
  20271. flags += libc.Uint32FromInt32(libc.Int32FromInt32(1) << libc.Int32FromInt32(6))
  20272. case int32(8):
  20273. flags += libc.Uint32FromInt32(libc.Int32FromInt32(2) << libc.Int32FromInt32(6))
  20274. default:
  20275. flags += libc.Uint32FromInt32(libc.Int32FromInt32(3) << libc.Int32FromInt32(6))
  20276. }
  20277. /*
  20278. #if defined(ASMV) || defined(ASMINF)
  20279. flags += 1 << 9;
  20280. #endif
  20281. */
  20282. return flags
  20283. }
  20284. // C documentation
  20285. //
  20286. // /* exported to allow conversion of error code to string for compress() and
  20287. // * uncompress()
  20288. // */
  20289. func XzError(tls *libc.TLS, err int32) (r uintptr) {
  20290. var v1 int32
  20291. _ = v1
  20292. if err < -int32(6) || err > int32(2) {
  20293. v1 = int32(9)
  20294. } else {
  20295. v1 = int32(2) - err
  20296. }
  20297. return Xz_errmsg[v1]
  20298. }
  20299. func Xzcalloc(tls *libc.TLS, opaque Tvoidpf, items uint32, size uint32) (r Tvoidpf) {
  20300. _ = opaque
  20301. return libc.Xmalloc(tls, items*size)
  20302. }
  20303. func Xzcfree(tls *libc.TLS, opaque Tvoidpf, ptr Tvoidpf) {
  20304. _ = opaque
  20305. libc.Xfree(tls, ptr)
  20306. }
  20307. // C documentation
  20308. //
  20309. // /* ===========================================================================
  20310. // Compresses the source buffer into the destination buffer. The level
  20311. // parameter has the same meaning as in deflateInit. sourceLen is the byte
  20312. // length of the source buffer. Upon entry, destLen is the total size of the
  20313. // destination buffer, which must be at least 0.1% larger than sourceLen plus
  20314. // 12 bytes. Upon exit, destLen is the actual size of the compressed buffer.
  20315. //
  20316. // compress2 returns Z_OK if success, Z_MEM_ERROR if there was not enough
  20317. // memory, Z_BUF_ERROR if there was not enough room in the output buffer,
  20318. // Z_STREAM_ERROR if the level parameter is invalid.
  20319. // */
  20320. func Xcompress2(tls *libc.TLS, dest uintptr, destLen uintptr, source uintptr, sourceLen TuLong, level int32) (r int32) {
  20321. bp := tls.Alloc(64)
  20322. defer tls.Free(64)
  20323. var err, v3, v4 int32
  20324. var left TuLong
  20325. var max TuInt
  20326. var v1, v2 uint32
  20327. var _ /* stream at bp+0 */ Tz_stream
  20328. _, _, _, _, _, _, _ = err, left, max, v1, v2, v3, v4
  20329. max = libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  20330. left = *(*TuLongf)(unsafe.Pointer(destLen))
  20331. *(*TuLongf)(unsafe.Pointer(destLen)) = uint32(0)
  20332. (*(*Tz_stream)(unsafe.Pointer(bp))).Fzalloc = libc.UintptrFromInt32(0)
  20333. (*(*Tz_stream)(unsafe.Pointer(bp))).Fzfree = libc.UintptrFromInt32(0)
  20334. (*(*Tz_stream)(unsafe.Pointer(bp))).Fopaque = libc.UintptrFromInt32(0)
  20335. err = XdeflateInit_(tls, bp, level, __ccgo_ts, libc.Int32FromInt64(56))
  20336. if err != m_Z_OK {
  20337. return err
  20338. }
  20339. (*(*Tz_stream)(unsafe.Pointer(bp))).Fnext_out = dest
  20340. (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_out = uint32(0)
  20341. (*(*Tz_stream)(unsafe.Pointer(bp))).Fnext_in = source
  20342. (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_in = uint32(0)
  20343. for cond := true; cond; cond = err == m_Z_OK {
  20344. if (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_out == uint32(0) {
  20345. if left > max {
  20346. v1 = max
  20347. } else {
  20348. v1 = left
  20349. }
  20350. (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_out = v1
  20351. left -= (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_out
  20352. }
  20353. if (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_in == uint32(0) {
  20354. if sourceLen > max {
  20355. v2 = max
  20356. } else {
  20357. v2 = sourceLen
  20358. }
  20359. (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_in = v2
  20360. sourceLen -= (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_in
  20361. }
  20362. if sourceLen != 0 {
  20363. v3 = m_Z_NO_FLUSH
  20364. } else {
  20365. v3 = int32(m_Z_FINISH)
  20366. }
  20367. err = Xdeflate(tls, bp, v3)
  20368. }
  20369. *(*TuLongf)(unsafe.Pointer(destLen)) = (*(*Tz_stream)(unsafe.Pointer(bp))).Ftotal_out
  20370. XdeflateEnd(tls, bp)
  20371. if err == int32(m_Z_STREAM_END) {
  20372. v4 = m_Z_OK
  20373. } else {
  20374. v4 = err
  20375. }
  20376. return v4
  20377. }
  20378. // C documentation
  20379. //
  20380. // /* ===========================================================================
  20381. // */
  20382. func Xcompress(tls *libc.TLS, dest uintptr, destLen uintptr, source uintptr, sourceLen TuLong) (r int32) {
  20383. return Xcompress2(tls, dest, destLen, source, sourceLen, -int32(1))
  20384. }
  20385. // C documentation
  20386. //
  20387. // /* ===========================================================================
  20388. // If the default memLevel or windowBits for deflateInit() is changed, then
  20389. // this function needs to be updated.
  20390. // */
  20391. func XcompressBound(tls *libc.TLS, sourceLen TuLong) (r TuLong) {
  20392. return sourceLen + sourceLen>>libc.Int32FromInt32(12) + sourceLen>>libc.Int32FromInt32(14) + sourceLen>>libc.Int32FromInt32(25) + uint32(13)
  20393. }
  20394. // C documentation
  20395. //
  20396. // /* ===========================================================================
  20397. // Decompresses the source buffer into the destination buffer. *sourceLen is
  20398. // the byte length of the source buffer. Upon entry, *destLen is the total size
  20399. // of the destination buffer, which must be large enough to hold the entire
  20400. // uncompressed data. (The size of the uncompressed data must have been saved
  20401. // previously by the compressor and transmitted to the decompressor by some
  20402. // mechanism outside the scope of this compression library.) Upon exit,
  20403. // *destLen is the size of the decompressed data and *sourceLen is the number
  20404. // of source bytes consumed. Upon return, source + *sourceLen points to the
  20405. // first unused input byte.
  20406. //
  20407. // uncompress returns Z_OK if success, Z_MEM_ERROR if there was not enough
  20408. // memory, Z_BUF_ERROR if there was not enough room in the output buffer, or
  20409. // Z_DATA_ERROR if the input data was corrupted, including if the input data is
  20410. // an incomplete zlib stream.
  20411. // */
  20412. func Xuncompress2(tls *libc.TLS, dest uintptr, destLen uintptr, source uintptr, sourceLen uintptr) (r int32) {
  20413. bp := tls.Alloc(64)
  20414. defer tls.Free(64)
  20415. var err, v3, v4, v5 int32
  20416. var left, len1 TuLong
  20417. var max TuInt
  20418. var v1, v2 uint32
  20419. var _ /* buf at bp+56 */ [1]TByte
  20420. var _ /* stream at bp+0 */ Tz_stream
  20421. _, _, _, _, _, _, _, _, _ = err, left, len1, max, v1, v2, v3, v4, v5
  20422. max = libc.Uint32FromInt32(-libc.Int32FromInt32(1)) /* for detection of incomplete stream when *destLen == 0 */
  20423. len1 = *(*TuLong)(unsafe.Pointer(sourceLen))
  20424. if *(*TuLongf)(unsafe.Pointer(destLen)) != 0 {
  20425. left = *(*TuLongf)(unsafe.Pointer(destLen))
  20426. *(*TuLongf)(unsafe.Pointer(destLen)) = uint32(0)
  20427. } else {
  20428. left = uint32(1)
  20429. dest = bp + 56
  20430. }
  20431. (*(*Tz_stream)(unsafe.Pointer(bp))).Fnext_in = source
  20432. (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_in = uint32(0)
  20433. (*(*Tz_stream)(unsafe.Pointer(bp))).Fzalloc = libc.UintptrFromInt32(0)
  20434. (*(*Tz_stream)(unsafe.Pointer(bp))).Fzfree = libc.UintptrFromInt32(0)
  20435. (*(*Tz_stream)(unsafe.Pointer(bp))).Fopaque = libc.UintptrFromInt32(0)
  20436. err = XinflateInit_(tls, bp, __ccgo_ts, libc.Int32FromInt64(56))
  20437. if err != m_Z_OK {
  20438. return err
  20439. }
  20440. (*(*Tz_stream)(unsafe.Pointer(bp))).Fnext_out = dest
  20441. (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_out = uint32(0)
  20442. for cond := true; cond; cond = err == m_Z_OK {
  20443. if (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_out == uint32(0) {
  20444. if left > max {
  20445. v1 = max
  20446. } else {
  20447. v1 = left
  20448. }
  20449. (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_out = v1
  20450. left -= (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_out
  20451. }
  20452. if (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_in == uint32(0) {
  20453. if len1 > max {
  20454. v2 = max
  20455. } else {
  20456. v2 = len1
  20457. }
  20458. (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_in = v2
  20459. len1 -= (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_in
  20460. }
  20461. err = Xinflate(tls, bp, m_Z_NO_FLUSH)
  20462. }
  20463. *(*TuLong)(unsafe.Pointer(sourceLen)) -= len1 + (*(*Tz_stream)(unsafe.Pointer(bp))).Favail_in
  20464. if dest != bp+56 {
  20465. *(*TuLongf)(unsafe.Pointer(destLen)) = (*(*Tz_stream)(unsafe.Pointer(bp))).Ftotal_out
  20466. } else {
  20467. if (*(*Tz_stream)(unsafe.Pointer(bp))).Ftotal_out != 0 && err == -int32(5) {
  20468. left = uint32(1)
  20469. }
  20470. }
  20471. XinflateEnd(tls, bp)
  20472. if err == int32(m_Z_STREAM_END) {
  20473. v3 = m_Z_OK
  20474. } else {
  20475. if err == int32(m_Z_NEED_DICT) {
  20476. v4 = -int32(3)
  20477. } else {
  20478. if err == -int32(5) && left+(*(*Tz_stream)(unsafe.Pointer(bp))).Favail_out != 0 {
  20479. v5 = -int32(3)
  20480. } else {
  20481. v5 = err
  20482. }
  20483. v4 = v5
  20484. }
  20485. v3 = v4
  20486. }
  20487. return v3
  20488. }
  20489. func Xuncompress(tls *libc.TLS, dest uintptr, destLen uintptr, source uintptr, _sourceLen TuLong) (r int32) {
  20490. bp := tls.Alloc(16)
  20491. defer tls.Free(16)
  20492. *(*TuLong)(unsafe.Pointer(bp)) = _sourceLen
  20493. return Xuncompress2(tls, dest, destLen, source, bp)
  20494. }
  20495. // C documentation
  20496. //
  20497. // /* gzclose() is in a separate file so that it is linked in only if it is used.
  20498. // That way the other gzclose functions can be used instead to avoid linking in
  20499. // unneeded compression or decompression routines. */
  20500. func Xgzclose(tls *libc.TLS, file TgzFile) (r int32) {
  20501. var state Tgz_statep
  20502. var v1 int32
  20503. _, _ = state, v1
  20504. if file == libc.UintptrFromInt32(0) {
  20505. return -int32(2)
  20506. }
  20507. state = file
  20508. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_READ) {
  20509. v1 = Xgzclose_r(tls, file)
  20510. } else {
  20511. v1 = Xgzclose_w(tls, file)
  20512. }
  20513. return v1
  20514. }
  20515. const m_INT_MAX1 = 2147483647
  20516. const m_LSEEK = "lseek"
  20517. const m_O_APPEND1 = 1024
  20518. const m_O_CLOEXEC1 = 524288
  20519. const m_O_CREAT1 = 64
  20520. const m_O_EXCL1 = 128
  20521. const m_O_LARGEFILE1 = 32768
  20522. const m_O_RDONLY1 = 0
  20523. const m_O_TRUNC1 = 512
  20524. const m_O_WRONLY1 = 1
  20525. // C documentation
  20526. //
  20527. // /* Reset gzip file state */
  20528. func _gz_reset(tls *libc.TLS, state Tgz_statep) {
  20529. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave = uint32(0) /* no output data available */
  20530. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_READ) { /* for reading ... */
  20531. (*Tgz_state)(unsafe.Pointer(state)).Feof = 0 /* not at end of file */
  20532. (*Tgz_state)(unsafe.Pointer(state)).Fpast = 0 /* have not read past end yet */
  20533. (*Tgz_state)(unsafe.Pointer(state)).Fhow = m_LOOK /* look for gzip header */
  20534. } else { /* for writing ... */
  20535. (*Tgz_state)(unsafe.Pointer(state)).Freset = 0
  20536. } /* no deflateReset pending */
  20537. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0 /* no seek request pending */
  20538. Xgz_error(tls, state, m_Z_OK, libc.UintptrFromInt32(0)) /* clear error */
  20539. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos = 0 /* no uncompressed data yet */
  20540. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_in = uint32(0) /* no input data yet */
  20541. }
  20542. // C documentation
  20543. //
  20544. // /* Open a gzip file either by name or file descriptor. */
  20545. func _gz_open(tls *libc.TLS, path uintptr, fd int32, mode uintptr) (r TgzFile) {
  20546. bp := tls.Alloc(16)
  20547. defer tls.Free(16)
  20548. var cloexec, exclusive, oflag, v1, v2, v3, v4, v5 int32
  20549. var len1 Tz_size_t
  20550. var state Tgz_statep
  20551. _, _, _, _, _, _, _, _, _, _ = cloexec, exclusive, len1, oflag, state, v1, v2, v3, v4, v5
  20552. cloexec = 0
  20553. exclusive = 0
  20554. /* check input */
  20555. if path == libc.UintptrFromInt32(0) {
  20556. return libc.UintptrFromInt32(0)
  20557. }
  20558. /* allocate gzFile structure to return */
  20559. state = libc.Xmalloc(tls, uint32(156))
  20560. if state == libc.UintptrFromInt32(0) {
  20561. return libc.UintptrFromInt32(0)
  20562. }
  20563. (*Tgz_state)(unsafe.Pointer(state)).Fsize = uint32(0) /* no buffers allocated yet */
  20564. (*Tgz_state)(unsafe.Pointer(state)).Fwant = uint32(m_GZBUFSIZE) /* requested buffer size */
  20565. (*Tgz_state)(unsafe.Pointer(state)).Fmsg = libc.UintptrFromInt32(0) /* no error message yet */
  20566. /* interpret mode */
  20567. (*Tgz_state)(unsafe.Pointer(state)).Fmode = m_GZ_NONE
  20568. (*Tgz_state)(unsafe.Pointer(state)).Flevel = -int32(1)
  20569. (*Tgz_state)(unsafe.Pointer(state)).Fstrategy = m_Z_DEFAULT_STRATEGY
  20570. (*Tgz_state)(unsafe.Pointer(state)).Fdirect = 0
  20571. for *(*int8)(unsafe.Pointer(mode)) != 0 {
  20572. if int32(*(*int8)(unsafe.Pointer(mode))) >= int32('0') && int32(*(*int8)(unsafe.Pointer(mode))) <= int32('9') {
  20573. (*Tgz_state)(unsafe.Pointer(state)).Flevel = int32(*(*int8)(unsafe.Pointer(mode))) - int32('0')
  20574. } else {
  20575. switch int32(*(*int8)(unsafe.Pointer(mode))) {
  20576. case int32('r'):
  20577. (*Tgz_state)(unsafe.Pointer(state)).Fmode = int32(m_GZ_READ)
  20578. case int32('w'):
  20579. (*Tgz_state)(unsafe.Pointer(state)).Fmode = int32(m_GZ_WRITE)
  20580. case int32('a'):
  20581. (*Tgz_state)(unsafe.Pointer(state)).Fmode = int32(m_GZ_APPEND)
  20582. case int32('+'): /* can't read and write at the same time */
  20583. libc.Xfree(tls, state)
  20584. return libc.UintptrFromInt32(0)
  20585. case int32('b'): /* ignore -- will request binary anyway */
  20586. case int32('e'):
  20587. cloexec = int32(1)
  20588. case int32('x'):
  20589. exclusive = int32(1)
  20590. case int32('f'):
  20591. (*Tgz_state)(unsafe.Pointer(state)).Fstrategy = int32(m_Z_FILTERED)
  20592. case int32('h'):
  20593. (*Tgz_state)(unsafe.Pointer(state)).Fstrategy = int32(m_Z_HUFFMAN_ONLY)
  20594. case int32('R'):
  20595. (*Tgz_state)(unsafe.Pointer(state)).Fstrategy = int32(m_Z_RLE)
  20596. case int32('F'):
  20597. (*Tgz_state)(unsafe.Pointer(state)).Fstrategy = int32(m_Z_FIXED)
  20598. case int32('T'):
  20599. (*Tgz_state)(unsafe.Pointer(state)).Fdirect = int32(1)
  20600. default: /* could consider as an error, but just ignore */
  20601. }
  20602. }
  20603. mode++
  20604. }
  20605. /* must provide an "r", "w", or "a" */
  20606. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == m_GZ_NONE {
  20607. libc.Xfree(tls, state)
  20608. return libc.UintptrFromInt32(0)
  20609. }
  20610. /* can't force transparent read */
  20611. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_READ) {
  20612. if (*Tgz_state)(unsafe.Pointer(state)).Fdirect != 0 {
  20613. libc.Xfree(tls, state)
  20614. return libc.UintptrFromInt32(0)
  20615. }
  20616. (*Tgz_state)(unsafe.Pointer(state)).Fdirect = int32(1) /* for empty file */
  20617. }
  20618. /* save the path name for error messages */
  20619. len1 = libc.Xstrlen(tls, path)
  20620. (*Tgz_state)(unsafe.Pointer(state)).Fpath = libc.Xmalloc(tls, len1+uint32(1))
  20621. if (*Tgz_state)(unsafe.Pointer(state)).Fpath == libc.UintptrFromInt32(0) {
  20622. libc.Xfree(tls, state)
  20623. return libc.UintptrFromInt32(0)
  20624. }
  20625. libc.X__builtin_snprintf(tls, (*Tgz_state)(unsafe.Pointer(state)).Fpath, len1+uint32(1), __ccgo_ts+584, libc.VaList(bp+8, path))
  20626. /* compute the flags for open() */
  20627. if cloexec != 0 {
  20628. v1 = int32(m_O_CLOEXEC1)
  20629. } else {
  20630. v1 = 0
  20631. }
  20632. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_READ) {
  20633. v2 = m_O_RDONLY1
  20634. } else {
  20635. if exclusive != 0 {
  20636. v3 = int32(m_O_EXCL1)
  20637. } else {
  20638. v3 = 0
  20639. }
  20640. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_WRITE) {
  20641. v4 = int32(m_O_TRUNC1)
  20642. } else {
  20643. v4 = int32(m_O_APPEND1)
  20644. }
  20645. v2 = libc.Int32FromInt32(m_O_WRONLY1) | libc.Int32FromInt32(m_O_CREAT1) | v3 | v4
  20646. }
  20647. oflag = int32(m_O_LARGEFILE1) | v1 | v2
  20648. /* open the file with the appropriate flags (or just use fd) */
  20649. if fd > -int32(1) {
  20650. v5 = fd
  20651. } else {
  20652. v5 = libc.Xopen(tls, path, oflag, libc.VaList(bp+8, int32(0666)))
  20653. }
  20654. (*Tgz_state)(unsafe.Pointer(state)).Ffd = v5
  20655. if (*Tgz_state)(unsafe.Pointer(state)).Ffd == -int32(1) {
  20656. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fpath)
  20657. libc.Xfree(tls, state)
  20658. return libc.UintptrFromInt32(0)
  20659. }
  20660. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_APPEND) {
  20661. libc.Xlseek(tls, (*Tgz_state)(unsafe.Pointer(state)).Ffd, 0, int32(2)) /* so gzoffset() is correct */
  20662. (*Tgz_state)(unsafe.Pointer(state)).Fmode = int32(m_GZ_WRITE) /* simplify later checks */
  20663. }
  20664. /* save the current position for rewinding (only if reading) */
  20665. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_READ) {
  20666. (*Tgz_state)(unsafe.Pointer(state)).Fstart = libc.Xlseek(tls, (*Tgz_state)(unsafe.Pointer(state)).Ffd, 0, int32(1))
  20667. if (*Tgz_state)(unsafe.Pointer(state)).Fstart == int64(-int32(1)) {
  20668. (*Tgz_state)(unsafe.Pointer(state)).Fstart = 0
  20669. }
  20670. }
  20671. /* initialize stream */
  20672. _gz_reset(tls, state)
  20673. /* return stream */
  20674. return state
  20675. }
  20676. // C documentation
  20677. //
  20678. // /* -- see zlib.h -- */
  20679. func Xgzopen(tls *libc.TLS, path uintptr, mode uintptr) (r TgzFile) {
  20680. return _gz_open(tls, path, -int32(1), mode)
  20681. }
  20682. // C documentation
  20683. //
  20684. // /* -- see zlib.h -- */
  20685. func Xgzopen64(tls *libc.TLS, path uintptr, mode uintptr) (r TgzFile) {
  20686. return _gz_open(tls, path, -int32(1), mode)
  20687. }
  20688. // C documentation
  20689. //
  20690. // /* -- see zlib.h -- */
  20691. func Xgzdopen(tls *libc.TLS, fd int32, mode uintptr) (r TgzFile) {
  20692. bp := tls.Alloc(16)
  20693. defer tls.Free(16)
  20694. var gz TgzFile
  20695. var path, v1 uintptr
  20696. var v2 bool
  20697. _, _, _, _ = gz, path, v1, v2
  20698. if v2 = fd == -int32(1); !v2 {
  20699. v1 = libc.Xmalloc(tls, libc.Uint32FromInt32(7)+libc.Uint32FromInt32(3)*libc.Uint32FromInt64(4))
  20700. path = v1
  20701. }
  20702. if v2 || v1 == libc.UintptrFromInt32(0) {
  20703. return libc.UintptrFromInt32(0)
  20704. }
  20705. libc.X__builtin_snprintf(tls, path, libc.Uint32FromInt32(7)+libc.Uint32FromInt32(3)*libc.Uint32FromInt64(4), __ccgo_ts+587, libc.VaList(bp+8, fd))
  20706. gz = _gz_open(tls, path, fd, mode)
  20707. libc.Xfree(tls, path)
  20708. return gz
  20709. }
  20710. /* -- see zlib.h -- */
  20711. // C documentation
  20712. //
  20713. // /* -- see zlib.h -- */
  20714. func Xgzbuffer(tls *libc.TLS, file TgzFile, size uint32) (r int32) {
  20715. var state Tgz_statep
  20716. _ = state
  20717. /* get internal structure and check integrity */
  20718. if file == libc.UintptrFromInt32(0) {
  20719. return -int32(1)
  20720. }
  20721. state = file
  20722. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) && (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) {
  20723. return -int32(1)
  20724. }
  20725. /* make sure we haven't already allocated memory */
  20726. if (*Tgz_state)(unsafe.Pointer(state)).Fsize != uint32(0) {
  20727. return -int32(1)
  20728. }
  20729. /* check and set requested size */
  20730. if size<<int32(1) < size {
  20731. return -int32(1)
  20732. } /* need to be able to double it */
  20733. if size < uint32(8) {
  20734. size = uint32(8)
  20735. } /* needed to behave well with flushing */
  20736. (*Tgz_state)(unsafe.Pointer(state)).Fwant = size
  20737. return 0
  20738. }
  20739. // C documentation
  20740. //
  20741. // /* -- see zlib.h -- */
  20742. func Xgzrewind(tls *libc.TLS, file TgzFile) (r int32) {
  20743. var state Tgz_statep
  20744. _ = state
  20745. /* get internal structure */
  20746. if file == libc.UintptrFromInt32(0) {
  20747. return -int32(1)
  20748. }
  20749. state = file
  20750. /* check that we're reading and that there's no error */
  20751. 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) {
  20752. return -int32(1)
  20753. }
  20754. /* back up and start over */
  20755. if libc.Xlseek(tls, (*Tgz_state)(unsafe.Pointer(state)).Ffd, (*Tgz_state)(unsafe.Pointer(state)).Fstart, 0) == int64(-int32(1)) {
  20756. return -int32(1)
  20757. }
  20758. _gz_reset(tls, state)
  20759. return 0
  20760. }
  20761. // C documentation
  20762. //
  20763. // /* -- see zlib.h -- */
  20764. func Xgzseek64(tls *libc.TLS, file TgzFile, offset Toff_t, whence int32) (r Toff_t) {
  20765. var n, v1 uint32
  20766. var ret Toff_t
  20767. var state Tgz_statep
  20768. _, _, _, _ = n, ret, state, v1
  20769. /* get internal structure and check integrity */
  20770. if file == libc.UintptrFromInt32(0) {
  20771. return int64(-int32(1))
  20772. }
  20773. state = file
  20774. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) && (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) {
  20775. return int64(-int32(1))
  20776. }
  20777. /* check that there's no error */
  20778. if (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK && (*Tgz_state)(unsafe.Pointer(state)).Ferr != -int32(5) {
  20779. return int64(-int32(1))
  20780. }
  20781. /* can only seek from start or relative to current position */
  20782. if whence != 0 && whence != int32(1) {
  20783. return int64(-int32(1))
  20784. }
  20785. /* normalize offset to a SEEK_CUR specification */
  20786. if whence == 0 {
  20787. offset -= (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos
  20788. } else {
  20789. if (*Tgz_state)(unsafe.Pointer(state)).Fseek != 0 {
  20790. offset += (*Tgz_state)(unsafe.Pointer(state)).Fskip
  20791. }
  20792. }
  20793. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0
  20794. /* if within raw area while reading, just go there */
  20795. 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 {
  20796. ret = libc.Xlseek(tls, (*Tgz_state)(unsafe.Pointer(state)).Ffd, offset-libc.Int64FromUint32((*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave), int32(1))
  20797. if ret == int64(-int32(1)) {
  20798. return int64(-int32(1))
  20799. }
  20800. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave = uint32(0)
  20801. (*Tgz_state)(unsafe.Pointer(state)).Feof = 0
  20802. (*Tgz_state)(unsafe.Pointer(state)).Fpast = 0
  20803. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0
  20804. Xgz_error(tls, state, m_Z_OK, libc.UintptrFromInt32(0))
  20805. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_in = uint32(0)
  20806. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos += offset
  20807. return (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos
  20808. }
  20809. /* calculate skip amount, rewinding if needed for back seek when reading */
  20810. if offset < 0 {
  20811. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) { /* writing -- can't go backwards */
  20812. return int64(-int32(1))
  20813. }
  20814. offset += (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos
  20815. if offset < 0 { /* before start of file! */
  20816. return int64(-int32(1))
  20817. }
  20818. if Xgzrewind(tls, file) == -int32(1) { /* rewind, then skip to offset */
  20819. return int64(-int32(1))
  20820. }
  20821. }
  20822. /* if reading, skip what's in output buffer (one less gzgetc() check) */
  20823. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_READ) {
  20824. if libc.Bool(libc.Bool(uint32(4) == uint32(8)) && (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave > Xgz_intmax(tls)) || libc.Int64FromUint32((*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave) > offset {
  20825. v1 = libc.Uint32FromInt64(offset)
  20826. } else {
  20827. v1 = (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave
  20828. }
  20829. n = v1
  20830. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave -= n
  20831. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext += uintptr(n)
  20832. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos += libc.Int64FromUint32(n)
  20833. offset -= libc.Int64FromUint32(n)
  20834. }
  20835. /* request skip (if not zero) */
  20836. if offset != 0 {
  20837. (*Tgz_state)(unsafe.Pointer(state)).Fseek = int32(1)
  20838. (*Tgz_state)(unsafe.Pointer(state)).Fskip = offset
  20839. }
  20840. return (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos + offset
  20841. }
  20842. // C documentation
  20843. //
  20844. // /* -- see zlib.h -- */
  20845. func Xgzseek(tls *libc.TLS, file TgzFile, offset Toff_t, whence int32) (r Toff_t) {
  20846. var ret Toff_t
  20847. var v1 int64
  20848. _, _ = ret, v1
  20849. ret = Xgzseek64(tls, file, offset, whence)
  20850. if ret == ret {
  20851. v1 = ret
  20852. } else {
  20853. v1 = int64(-int32(1))
  20854. }
  20855. return v1
  20856. }
  20857. // C documentation
  20858. //
  20859. // /* -- see zlib.h -- */
  20860. func Xgztell64(tls *libc.TLS, file TgzFile) (r Toff_t) {
  20861. var state Tgz_statep
  20862. var v1 int64
  20863. _, _ = state, v1
  20864. /* get internal structure and check integrity */
  20865. if file == libc.UintptrFromInt32(0) {
  20866. return int64(-int32(1))
  20867. }
  20868. state = file
  20869. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) && (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) {
  20870. return int64(-int32(1))
  20871. }
  20872. /* return position */
  20873. if (*Tgz_state)(unsafe.Pointer(state)).Fseek != 0 {
  20874. v1 = (*Tgz_state)(unsafe.Pointer(state)).Fskip
  20875. } else {
  20876. v1 = 0
  20877. }
  20878. return (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos + v1
  20879. }
  20880. // C documentation
  20881. //
  20882. // /* -- see zlib.h -- */
  20883. func Xgztell(tls *libc.TLS, file TgzFile) (r Toff_t) {
  20884. var ret Toff_t
  20885. var v1 int64
  20886. _, _ = ret, v1
  20887. ret = Xgztell64(tls, file)
  20888. if ret == ret {
  20889. v1 = ret
  20890. } else {
  20891. v1 = int64(-int32(1))
  20892. }
  20893. return v1
  20894. }
  20895. // C documentation
  20896. //
  20897. // /* -- see zlib.h -- */
  20898. func Xgzoffset64(tls *libc.TLS, file TgzFile) (r Toff_t) {
  20899. var offset Toff_t
  20900. var state Tgz_statep
  20901. _, _ = offset, state
  20902. /* get internal structure and check integrity */
  20903. if file == libc.UintptrFromInt32(0) {
  20904. return int64(-int32(1))
  20905. }
  20906. state = file
  20907. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) && (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) {
  20908. return int64(-int32(1))
  20909. }
  20910. /* compute and return effective offset in file */
  20911. offset = libc.Xlseek(tls, (*Tgz_state)(unsafe.Pointer(state)).Ffd, 0, int32(1))
  20912. if offset == int64(-int32(1)) {
  20913. return int64(-int32(1))
  20914. }
  20915. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_READ) { /* reading */
  20916. offset -= libc.Int64FromUint32((*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_in)
  20917. } /* don't count buffered input */
  20918. return offset
  20919. }
  20920. // C documentation
  20921. //
  20922. // /* -- see zlib.h -- */
  20923. func Xgzoffset(tls *libc.TLS, file TgzFile) (r Toff_t) {
  20924. var ret Toff_t
  20925. var v1 int64
  20926. _, _ = ret, v1
  20927. ret = Xgzoffset64(tls, file)
  20928. if ret == ret {
  20929. v1 = ret
  20930. } else {
  20931. v1 = int64(-int32(1))
  20932. }
  20933. return v1
  20934. }
  20935. // C documentation
  20936. //
  20937. // /* -- see zlib.h -- */
  20938. func Xgzeof(tls *libc.TLS, file TgzFile) (r int32) {
  20939. var state Tgz_statep
  20940. var v1 int32
  20941. _, _ = state, v1
  20942. /* get internal structure and check integrity */
  20943. if file == libc.UintptrFromInt32(0) {
  20944. return 0
  20945. }
  20946. state = file
  20947. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) && (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) {
  20948. return 0
  20949. }
  20950. /* return end-of-file state */
  20951. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_READ) {
  20952. v1 = (*Tgz_state)(unsafe.Pointer(state)).Fpast
  20953. } else {
  20954. v1 = 0
  20955. }
  20956. return v1
  20957. }
  20958. // C documentation
  20959. //
  20960. // /* -- see zlib.h -- */
  20961. func Xgzerror(tls *libc.TLS, file TgzFile, errnum uintptr) (r uintptr) {
  20962. var state Tgz_statep
  20963. var v1, v2 uintptr
  20964. _, _, _ = state, v1, v2
  20965. /* get internal structure and check integrity */
  20966. if file == libc.UintptrFromInt32(0) {
  20967. return libc.UintptrFromInt32(0)
  20968. }
  20969. state = file
  20970. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) && (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) {
  20971. return libc.UintptrFromInt32(0)
  20972. }
  20973. /* return error information */
  20974. if errnum != libc.UintptrFromInt32(0) {
  20975. *(*int32)(unsafe.Pointer(errnum)) = (*Tgz_state)(unsafe.Pointer(state)).Ferr
  20976. }
  20977. if (*Tgz_state)(unsafe.Pointer(state)).Ferr == -int32(4) {
  20978. v1 = __ccgo_ts + 595
  20979. } else {
  20980. if (*Tgz_state)(unsafe.Pointer(state)).Fmsg == libc.UintptrFromInt32(0) {
  20981. v2 = __ccgo_ts + 494
  20982. } else {
  20983. v2 = (*Tgz_state)(unsafe.Pointer(state)).Fmsg
  20984. }
  20985. v1 = v2
  20986. }
  20987. return v1
  20988. }
  20989. // C documentation
  20990. //
  20991. // /* -- see zlib.h -- */
  20992. func Xgzclearerr(tls *libc.TLS, file TgzFile) {
  20993. var state Tgz_statep
  20994. _ = state
  20995. /* get internal structure and check integrity */
  20996. if file == libc.UintptrFromInt32(0) {
  20997. return
  20998. }
  20999. state = file
  21000. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) && (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) {
  21001. return
  21002. }
  21003. /* clear error and end-of-file */
  21004. if (*Tgz_state)(unsafe.Pointer(state)).Fmode == int32(m_GZ_READ) {
  21005. (*Tgz_state)(unsafe.Pointer(state)).Feof = 0
  21006. (*Tgz_state)(unsafe.Pointer(state)).Fpast = 0
  21007. }
  21008. Xgz_error(tls, state, m_Z_OK, libc.UintptrFromInt32(0))
  21009. }
  21010. // C documentation
  21011. //
  21012. // /* Create an error message in allocated memory and set state->err and
  21013. // state->msg accordingly. Free any previous error message already there. Do
  21014. // not try to free or allocate space if the error is Z_MEM_ERROR (out of
  21015. // memory). Simply save the error message as a static string. If there is an
  21016. // allocation failure constructing the error message, then convert the error to
  21017. // out of memory. */
  21018. func Xgz_error(tls *libc.TLS, state Tgz_statep, err int32, msg uintptr) {
  21019. bp := tls.Alloc(32)
  21020. defer tls.Free(32)
  21021. var v1 uintptr
  21022. _ = v1
  21023. /* free previously allocated message and clear */
  21024. if (*Tgz_state)(unsafe.Pointer(state)).Fmsg != libc.UintptrFromInt32(0) {
  21025. if (*Tgz_state)(unsafe.Pointer(state)).Ferr != -int32(4) {
  21026. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fmsg)
  21027. }
  21028. (*Tgz_state)(unsafe.Pointer(state)).Fmsg = libc.UintptrFromInt32(0)
  21029. }
  21030. /* if fatal, set state->x.have to 0 so that the gzgetc() macro fails */
  21031. if err != m_Z_OK && err != -int32(5) {
  21032. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave = uint32(0)
  21033. }
  21034. /* set error code, and if no message, then done */
  21035. (*Tgz_state)(unsafe.Pointer(state)).Ferr = err
  21036. if msg == libc.UintptrFromInt32(0) {
  21037. return
  21038. }
  21039. /* for an out of memory error, return literal string when requested */
  21040. if err == -int32(4) {
  21041. return
  21042. }
  21043. /* construct error message with path */
  21044. v1 = libc.Xmalloc(tls, libc.Xstrlen(tls, (*Tgz_state)(unsafe.Pointer(state)).Fpath)+libc.Xstrlen(tls, msg)+uint32(3))
  21045. (*Tgz_state)(unsafe.Pointer(state)).Fmsg = v1
  21046. if v1 == libc.UintptrFromInt32(0) {
  21047. (*Tgz_state)(unsafe.Pointer(state)).Ferr = -int32(4)
  21048. return
  21049. }
  21050. libc.X__builtin_snprintf(tls, (*Tgz_state)(unsafe.Pointer(state)).Fmsg, libc.Xstrlen(tls, (*Tgz_state)(unsafe.Pointer(state)).Fpath)+libc.Xstrlen(tls, msg)+uint32(3), __ccgo_ts+609, libc.VaList(bp+8, (*Tgz_state)(unsafe.Pointer(state)).Fpath, __ccgo_ts+616, msg))
  21051. }
  21052. // C documentation
  21053. //
  21054. // /* portably return maximum value for an int (when limits.h presumed not
  21055. // available) -- we need to do this to cover cases where 2's complement not
  21056. // used, since C standard permits 1's complement and sign-bit representations,
  21057. // otherwise we could just use ((unsigned)-1) >> 1 */
  21058. func Xgz_intmax(tls *libc.TLS) (r uint32) {
  21059. return uint32(m_INT_MAX1)
  21060. }
  21061. const m_INT_MAX2 = 0x7fffffff
  21062. const m_O_APPEND2 = 02000
  21063. const m_O_CLOEXEC2 = 02000000
  21064. const m_O_CREAT2 = 0100
  21065. const m_O_EXCL2 = 0200
  21066. const m_O_LARGEFILE2 = 0100000
  21067. const m_O_RDONLY2 = 00
  21068. const m_O_TRUNC2 = 01000
  21069. const m_O_WRONLY2 = 01
  21070. // C documentation
  21071. //
  21072. // /* Use read() to load a buffer -- return -1 on error, otherwise 0. Read from
  21073. // state->fd, and update state->eof, state->err, and state->msg as appropriate.
  21074. // This function needs to loop on read(), since read() is not guaranteed to
  21075. // read the number of bytes requested, depending on the type of descriptor. */
  21076. func _gz_load(tls *libc.TLS, state Tgz_statep, buf uintptr, len1 uint32, have uintptr) (r int32) {
  21077. var get, max uint32
  21078. var ret int32
  21079. _, _, _ = get, max, ret
  21080. max = libc.Uint32FromInt32(-libc.Int32FromInt32(1))>>libc.Int32FromInt32(2) + libc.Uint32FromInt32(1)
  21081. *(*uint32)(unsafe.Pointer(have)) = uint32(0)
  21082. for cond := true; cond; cond = *(*uint32)(unsafe.Pointer(have)) < len1 {
  21083. get = len1 - *(*uint32)(unsafe.Pointer(have))
  21084. if get > max {
  21085. get = max
  21086. }
  21087. ret = libc.Xread(tls, (*Tgz_state)(unsafe.Pointer(state)).Ffd, buf+uintptr(*(*uint32)(unsafe.Pointer(have))), get)
  21088. if ret <= 0 {
  21089. break
  21090. }
  21091. *(*uint32)(unsafe.Pointer(have)) += libc.Uint32FromInt32(ret)
  21092. }
  21093. if ret < 0 {
  21094. Xgz_error(tls, state, -int32(1), libc.Xstrerror(tls, *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))))
  21095. return -int32(1)
  21096. }
  21097. if ret == 0 {
  21098. (*Tgz_state)(unsafe.Pointer(state)).Feof = int32(1)
  21099. }
  21100. return 0
  21101. }
  21102. // C documentation
  21103. //
  21104. // /* Load up input buffer and set eof flag if last data loaded -- return -1 on
  21105. // error, 0 otherwise. Note that the eof flag is set when the end of the input
  21106. // file is reached, even though there may be unused data in the buffer. Once
  21107. // that data has been used, no more attempts will be made to read the file.
  21108. // If strm->avail_in != 0, then the current data is moved to the beginning of
  21109. // the input buffer, and then the remainder of the buffer is loaded with the
  21110. // available data from the input file. */
  21111. func _gz_avail(tls *libc.TLS, state Tgz_statep) (r int32) {
  21112. bp := tls.Alloc(16)
  21113. defer tls.Free(16)
  21114. var n, v1 uint32
  21115. var p, q, v3, v4 uintptr
  21116. var strm Tz_streamp
  21117. var _ /* got at bp+0 */ uint32
  21118. _, _, _, _, _, _, _ = n, p, q, strm, v1, v3, v4
  21119. strm = state + 100
  21120. if (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK && (*Tgz_state)(unsafe.Pointer(state)).Ferr != -int32(5) {
  21121. return -int32(1)
  21122. }
  21123. if (*Tgz_state)(unsafe.Pointer(state)).Feof == 0 {
  21124. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in != 0 { /* copy what's there to the start */
  21125. p = (*Tgz_state)(unsafe.Pointer(state)).Fin
  21126. q = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in
  21127. n = (*Tz_stream)(unsafe.Pointer(strm)).Favail_in
  21128. for {
  21129. v3 = p
  21130. p++
  21131. v4 = q
  21132. q++
  21133. *(*uint8)(unsafe.Pointer(v3)) = *(*uint8)(unsafe.Pointer(v4))
  21134. goto _2
  21135. _2:
  21136. ;
  21137. n--
  21138. v1 = n
  21139. if !(v1 != 0) {
  21140. break
  21141. }
  21142. }
  21143. }
  21144. 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) {
  21145. return -int32(1)
  21146. }
  21147. *(*TuInt)(unsafe.Pointer(strm + 4)) += *(*uint32)(unsafe.Pointer(bp))
  21148. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = (*Tgz_state)(unsafe.Pointer(state)).Fin
  21149. }
  21150. return 0
  21151. }
  21152. // C documentation
  21153. //
  21154. // /* Look for gzip header, set up for inflate or copy. state->x.have must be 0.
  21155. // If this is the first time in, allocate required memory. state->how will be
  21156. // left unchanged if there is no more input data available, will be set to COPY
  21157. // if there is no gzip header and direct copying will be performed, or it will
  21158. // be set to GZIP for decompression. If direct copying, then leftover input
  21159. // data from the input buffer will be copied to the output buffer. In that
  21160. // case, all further file reads will be directly to either the output buffer or
  21161. // a user buffer. If decompressing, the inflate state will be initialized.
  21162. // gz_look() will return 0 on success or -1 on failure. */
  21163. func _gz_look(tls *libc.TLS, state Tgz_statep) (r int32) {
  21164. var strm Tz_streamp
  21165. _ = strm
  21166. strm = state + 100
  21167. /* allocate read buffers and inflate memory */
  21168. if (*Tgz_state)(unsafe.Pointer(state)).Fsize == uint32(0) {
  21169. /* allocate buffers */
  21170. (*Tgz_state)(unsafe.Pointer(state)).Fin = libc.Xmalloc(tls, (*Tgz_state)(unsafe.Pointer(state)).Fwant)
  21171. (*Tgz_state)(unsafe.Pointer(state)).Fout = libc.Xmalloc(tls, (*Tgz_state)(unsafe.Pointer(state)).Fwant<<int32(1))
  21172. if (*Tgz_state)(unsafe.Pointer(state)).Fin == libc.UintptrFromInt32(0) || (*Tgz_state)(unsafe.Pointer(state)).Fout == libc.UintptrFromInt32(0) {
  21173. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fout)
  21174. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fin)
  21175. Xgz_error(tls, state, -int32(4), __ccgo_ts+595)
  21176. return -int32(1)
  21177. }
  21178. (*Tgz_state)(unsafe.Pointer(state)).Fsize = (*Tgz_state)(unsafe.Pointer(state)).Fwant
  21179. /* allocate inflate memory */
  21180. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Fzalloc = uintptr(m_Z_NULL)
  21181. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Fzfree = uintptr(m_Z_NULL)
  21182. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Fopaque = uintptr(m_Z_NULL)
  21183. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_in = uint32(0)
  21184. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Fnext_in = uintptr(m_Z_NULL)
  21185. if XinflateInit2_(tls, state+100, libc.Int32FromInt32(15)+libc.Int32FromInt32(16), __ccgo_ts, libc.Int32FromInt64(56)) != m_Z_OK { /* gunzip */
  21186. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fout)
  21187. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fin)
  21188. (*Tgz_state)(unsafe.Pointer(state)).Fsize = uint32(0)
  21189. Xgz_error(tls, state, -int32(4), __ccgo_ts+595)
  21190. return -int32(1)
  21191. }
  21192. }
  21193. /* get at least the magic bytes in the input buffer */
  21194. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in < uint32(2) {
  21195. if _gz_avail(tls, state) == -int32(1) {
  21196. return -int32(1)
  21197. }
  21198. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in == uint32(0) {
  21199. return 0
  21200. }
  21201. }
  21202. /* look for gzip magic bytes -- if there, do gzip decoding (note: there is
  21203. a logical dilemma here when considering the case of a partially written
  21204. gzip file, to wit, if a single 31 byte is written, then we cannot tell
  21205. whether this is a single-byte file, or just a partially written gzip
  21206. file -- for here we assume that if a gzip file is being written, then
  21207. the header will be written in a single operation, so that reading a
  21208. single byte is sufficient indication that it is not a gzip file) */
  21209. 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) {
  21210. XinflateReset(tls, strm)
  21211. (*Tgz_state)(unsafe.Pointer(state)).Fhow = int32(m_GZIP)
  21212. (*Tgz_state)(unsafe.Pointer(state)).Fdirect = 0
  21213. return 0
  21214. }
  21215. /* no gzip header -- if we were decoding gzip before, then this is trailing
  21216. garbage. Ignore the trailing garbage and finish. */
  21217. if (*Tgz_state)(unsafe.Pointer(state)).Fdirect == 0 {
  21218. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = uint32(0)
  21219. (*Tgz_state)(unsafe.Pointer(state)).Feof = int32(1)
  21220. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave = uint32(0)
  21221. return 0
  21222. }
  21223. /* doing raw i/o, copy any leftover input to output -- this assumes that
  21224. the output buffer is larger than the input buffer, which also assures
  21225. space for gzungetc() */
  21226. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext = (*Tgz_state)(unsafe.Pointer(state)).Fout
  21227. libc.Xmemcpy(tls, (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext, (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in, (*Tz_stream)(unsafe.Pointer(strm)).Favail_in)
  21228. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave = (*Tz_stream)(unsafe.Pointer(strm)).Favail_in
  21229. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = uint32(0)
  21230. (*Tgz_state)(unsafe.Pointer(state)).Fhow = int32(m_COPY)
  21231. (*Tgz_state)(unsafe.Pointer(state)).Fdirect = int32(1)
  21232. return 0
  21233. }
  21234. // C documentation
  21235. //
  21236. // /* Decompress from input to the provided next_out and avail_out in the state.
  21237. // On return, state->x.have and state->x.next point to the just decompressed
  21238. // data. If the gzip stream completes, state->how is reset to LOOK to look for
  21239. // the next gzip stream or raw data, once state->x.have is depleted. Returns 0
  21240. // on success, -1 on failure. */
  21241. func _gz_decomp(tls *libc.TLS, state Tgz_statep) (r int32) {
  21242. var had uint32
  21243. var ret int32
  21244. var strm Tz_streamp
  21245. var v1 uintptr
  21246. _, _, _, _ = had, ret, strm, v1
  21247. ret = m_Z_OK
  21248. strm = state + 100
  21249. /* fill output buffer up to end of deflate stream */
  21250. had = (*Tz_stream)(unsafe.Pointer(strm)).Favail_out
  21251. for cond := true; cond; cond = (*Tz_stream)(unsafe.Pointer(strm)).Favail_out != 0 && ret != int32(m_Z_STREAM_END) {
  21252. /* get more input for inflate() */
  21253. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in == uint32(0) && _gz_avail(tls, state) == -int32(1) {
  21254. return -int32(1)
  21255. }
  21256. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in == uint32(0) {
  21257. Xgz_error(tls, state, -int32(5), __ccgo_ts+619)
  21258. break
  21259. }
  21260. /* decompress and handle errors */
  21261. ret = Xinflate(tls, strm, m_Z_NO_FLUSH)
  21262. if ret == -int32(2) || ret == int32(m_Z_NEED_DICT) {
  21263. Xgz_error(tls, state, -int32(2), __ccgo_ts+642)
  21264. return -int32(1)
  21265. }
  21266. if ret == -int32(4) {
  21267. Xgz_error(tls, state, -int32(4), __ccgo_ts+595)
  21268. return -int32(1)
  21269. }
  21270. if ret == -int32(3) { /* deflate stream invalid */
  21271. if (*Tz_stream)(unsafe.Pointer(strm)).Fmsg == libc.UintptrFromInt32(0) {
  21272. v1 = __ccgo_ts + 681
  21273. } else {
  21274. v1 = (*Tz_stream)(unsafe.Pointer(strm)).Fmsg
  21275. }
  21276. Xgz_error(tls, state, -int32(3), v1)
  21277. return -int32(1)
  21278. }
  21279. }
  21280. /* update available output */
  21281. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave = had - (*Tz_stream)(unsafe.Pointer(strm)).Favail_out
  21282. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out - uintptr((*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave)
  21283. /* if the gzip stream completed successfully, look for another */
  21284. if ret == int32(m_Z_STREAM_END) {
  21285. (*Tgz_state)(unsafe.Pointer(state)).Fhow = m_LOOK
  21286. }
  21287. /* good decompression */
  21288. return 0
  21289. }
  21290. // C documentation
  21291. //
  21292. // /* Fetch data and put it in the output buffer. Assumes state->x.have is 0.
  21293. // Data is either copied from the input file or decompressed from the input
  21294. // file depending on state->how. If state->how is LOOK, then a gzip header is
  21295. // looked for to determine whether to copy or decompress. Returns -1 on error,
  21296. // otherwise 0. gz_fetch() will leave state->how as COPY or GZIP unless the
  21297. // end of the input file has been reached and all data has been processed. */
  21298. func _gz_fetch(tls *libc.TLS, state Tgz_statep) (r int32) {
  21299. var strm Tz_streamp
  21300. _ = strm
  21301. strm = state + 100
  21302. 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) {
  21303. switch (*Tgz_state)(unsafe.Pointer(state)).Fhow {
  21304. case m_LOOK: /* -> LOOK, COPY (only if never GZIP), or GZIP */
  21305. if _gz_look(tls, state) == -int32(1) {
  21306. return -int32(1)
  21307. }
  21308. if (*Tgz_state)(unsafe.Pointer(state)).Fhow == m_LOOK {
  21309. return 0
  21310. }
  21311. case int32(m_COPY): /* -> COPY */
  21312. if _gz_load(tls, state, (*Tgz_state)(unsafe.Pointer(state)).Fout, (*Tgz_state)(unsafe.Pointer(state)).Fsize<<int32(1), state) == -int32(1) {
  21313. return -int32(1)
  21314. }
  21315. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext = (*Tgz_state)(unsafe.Pointer(state)).Fout
  21316. return 0
  21317. case int32(m_GZIP): /* -> GZIP or LOOK (if end of gzip stream) */
  21318. (*Tz_stream)(unsafe.Pointer(strm)).Favail_out = (*Tgz_state)(unsafe.Pointer(state)).Fsize << int32(1)
  21319. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out = (*Tgz_state)(unsafe.Pointer(state)).Fout
  21320. if _gz_decomp(tls, state) == -int32(1) {
  21321. return -int32(1)
  21322. }
  21323. }
  21324. }
  21325. return 0
  21326. }
  21327. // C documentation
  21328. //
  21329. // /* Skip len uncompressed bytes of output. Return -1 on error, 0 on success. */
  21330. func _gz_skip(tls *libc.TLS, state Tgz_statep, len1 Toff_t) (r int32) {
  21331. var n, v1 uint32
  21332. _, _ = n, v1
  21333. /* skip over len bytes or reach end-of-file, whichever comes first */
  21334. for len1 != 0 {
  21335. /* skip over whatever is in output buffer */
  21336. if (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave != 0 {
  21337. if libc.Bool(libc.Bool(uint32(4) == uint32(8)) && (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave > Xgz_intmax(tls)) || libc.Int64FromUint32((*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave) > len1 {
  21338. v1 = libc.Uint32FromInt64(len1)
  21339. } else {
  21340. v1 = (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave
  21341. }
  21342. n = v1
  21343. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave -= n
  21344. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext += uintptr(n)
  21345. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos += libc.Int64FromUint32(n)
  21346. len1 -= libc.Int64FromUint32(n)
  21347. } else {
  21348. if (*Tgz_state)(unsafe.Pointer(state)).Feof != 0 && (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_in == uint32(0) {
  21349. break
  21350. } else {
  21351. /* get more output, looking for header if required */
  21352. if _gz_fetch(tls, state) == -int32(1) {
  21353. return -int32(1)
  21354. }
  21355. }
  21356. }
  21357. }
  21358. return 0
  21359. }
  21360. // C documentation
  21361. //
  21362. // /* Read len bytes into buf from file, or less than len up to the end of the
  21363. // input. Return the number of bytes read. If zero is returned, either the
  21364. // end of file was reached, or there was an error. state->err must be
  21365. // consulted in that case to determine which. */
  21366. func _gz_read(tls *libc.TLS, state Tgz_statep, buf Tvoidp, len1 Tz_size_t) (r Tz_size_t) {
  21367. bp := tls.Alloc(16)
  21368. defer tls.Free(16)
  21369. var got Tz_size_t
  21370. var _ /* n at bp+0 */ uint32
  21371. _ = got
  21372. /* if len is zero, avoid unnecessary operations */
  21373. if len1 == uint32(0) {
  21374. return uint32(0)
  21375. }
  21376. /* process a skip request */
  21377. if (*Tgz_state)(unsafe.Pointer(state)).Fseek != 0 {
  21378. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0
  21379. if _gz_skip(tls, state, (*Tgz_state)(unsafe.Pointer(state)).Fskip) == -int32(1) {
  21380. return uint32(0)
  21381. }
  21382. }
  21383. /* get len bytes to buf, or less than len if at the end */
  21384. got = uint32(0)
  21385. for cond := true; cond; cond = len1 != 0 {
  21386. /* set n to the maximum amount of len that fits in an unsigned int */
  21387. *(*uint32)(unsafe.Pointer(bp)) = libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  21388. if *(*uint32)(unsafe.Pointer(bp)) > len1 {
  21389. *(*uint32)(unsafe.Pointer(bp)) = len1
  21390. }
  21391. /* first just try copying data from the output buffer */
  21392. if (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave != 0 {
  21393. if (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave < *(*uint32)(unsafe.Pointer(bp)) {
  21394. *(*uint32)(unsafe.Pointer(bp)) = (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave
  21395. }
  21396. libc.Xmemcpy(tls, buf, (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext, *(*uint32)(unsafe.Pointer(bp)))
  21397. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext += uintptr(*(*uint32)(unsafe.Pointer(bp)))
  21398. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave -= *(*uint32)(unsafe.Pointer(bp))
  21399. } else {
  21400. if (*Tgz_state)(unsafe.Pointer(state)).Feof != 0 && (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_in == uint32(0) {
  21401. (*Tgz_state)(unsafe.Pointer(state)).Fpast = int32(1) /* tried to read past end */
  21402. break
  21403. } else {
  21404. if (*Tgz_state)(unsafe.Pointer(state)).Fhow == m_LOOK || *(*uint32)(unsafe.Pointer(bp)) < (*Tgz_state)(unsafe.Pointer(state)).Fsize<<int32(1) {
  21405. /* get more output, looking for header if required */
  21406. if _gz_fetch(tls, state) == -int32(1) {
  21407. return uint32(0)
  21408. }
  21409. continue /* no progress yet -- go back to copy above */
  21410. /* the copy above assures that we will leave with space in the
  21411. output buffer, allowing at least one gzungetc() to succeed */
  21412. } else {
  21413. if (*Tgz_state)(unsafe.Pointer(state)).Fhow == int32(m_COPY) { /* read directly */
  21414. if _gz_load(tls, state, buf, *(*uint32)(unsafe.Pointer(bp)), bp) == -int32(1) {
  21415. return uint32(0)
  21416. }
  21417. } else { /* state->how == GZIP */
  21418. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_out = *(*uint32)(unsafe.Pointer(bp))
  21419. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Fnext_out = buf
  21420. if _gz_decomp(tls, state) == -int32(1) {
  21421. return uint32(0)
  21422. }
  21423. *(*uint32)(unsafe.Pointer(bp)) = (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave
  21424. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave = uint32(0)
  21425. }
  21426. }
  21427. }
  21428. }
  21429. /* update progress */
  21430. len1 -= *(*uint32)(unsafe.Pointer(bp))
  21431. buf = buf + uintptr(*(*uint32)(unsafe.Pointer(bp)))
  21432. got += *(*uint32)(unsafe.Pointer(bp))
  21433. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos += libc.Int64FromUint32(*(*uint32)(unsafe.Pointer(bp)))
  21434. }
  21435. /* return number of bytes read into user buffer */
  21436. return got
  21437. }
  21438. // C documentation
  21439. //
  21440. // /* -- see zlib.h -- */
  21441. func Xgzread(tls *libc.TLS, file TgzFile, buf Tvoidp, len1 uint32) (r int32) {
  21442. var state Tgz_statep
  21443. _ = state
  21444. /* get internal structure */
  21445. if file == libc.UintptrFromInt32(0) {
  21446. return -int32(1)
  21447. }
  21448. state = file
  21449. /* check that we're reading and that there's no (serious) error */
  21450. 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) {
  21451. return -int32(1)
  21452. }
  21453. /* since an int is returned, make sure len fits in one, otherwise return
  21454. with an error (this avoids a flaw in the interface) */
  21455. if libc.Int32FromUint32(len1) < 0 {
  21456. Xgz_error(tls, state, -int32(2), __ccgo_ts+703)
  21457. return -int32(1)
  21458. }
  21459. /* read len or fewer bytes to buf */
  21460. len1 = _gz_read(tls, state, buf, len1)
  21461. /* check for an error */
  21462. if len1 == uint32(0) && (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK && (*Tgz_state)(unsafe.Pointer(state)).Ferr != -int32(5) {
  21463. return -int32(1)
  21464. }
  21465. /* return the number of bytes read (this is assured to fit in an int) */
  21466. return libc.Int32FromUint32(len1)
  21467. }
  21468. // C documentation
  21469. //
  21470. // /* -- see zlib.h -- */
  21471. func Xgzfread(tls *libc.TLS, buf Tvoidp, size Tz_size_t, nitems Tz_size_t, file TgzFile) (r Tz_size_t) {
  21472. var len1 Tz_size_t
  21473. var state Tgz_statep
  21474. var v1 uint32
  21475. _, _, _ = len1, state, v1
  21476. /* get internal structure */
  21477. if file == libc.UintptrFromInt32(0) {
  21478. return uint32(0)
  21479. }
  21480. state = file
  21481. /* check that we're reading and that there's no (serious) error */
  21482. 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) {
  21483. return uint32(0)
  21484. }
  21485. /* compute bytes to read -- error on overflow */
  21486. len1 = nitems * size
  21487. if size != 0 && len1/size != nitems {
  21488. Xgz_error(tls, state, -int32(2), __ccgo_ts+734)
  21489. return uint32(0)
  21490. }
  21491. /* read len or fewer bytes to buf, return the number of full items read */
  21492. if len1 != 0 {
  21493. v1 = _gz_read(tls, state, buf, len1) / size
  21494. } else {
  21495. v1 = uint32(0)
  21496. }
  21497. return v1
  21498. }
  21499. // C documentation
  21500. //
  21501. // /* -- see zlib.h -- */
  21502. func Xgzgetc(tls *libc.TLS, file TgzFile) (r int32) {
  21503. bp := tls.Alloc(16)
  21504. defer tls.Free(16)
  21505. var state Tgz_statep
  21506. var v1, v2 uintptr
  21507. var v3 int32
  21508. var _ /* buf at bp+0 */ [1]uint8
  21509. _, _, _, _ = state, v1, v2, v3
  21510. /* get internal structure */
  21511. if file == libc.UintptrFromInt32(0) {
  21512. return -int32(1)
  21513. }
  21514. state = file
  21515. /* check that we're reading and that there's no (serious) error */
  21516. 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) {
  21517. return -int32(1)
  21518. }
  21519. /* try output buffer (no need to check for skip request) */
  21520. if (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave != 0 {
  21521. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave--
  21522. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos++
  21523. v2 = state + 4
  21524. v1 = *(*uintptr)(unsafe.Pointer(v2))
  21525. *(*uintptr)(unsafe.Pointer(v2))++
  21526. return libc.Int32FromUint8(*(*uint8)(unsafe.Pointer(v1)))
  21527. }
  21528. /* nothing there -- try gz_read() */
  21529. if _gz_read(tls, state, bp, uint32(1)) < uint32(1) {
  21530. v3 = -int32(1)
  21531. } else {
  21532. v3 = libc.Int32FromUint8((*(*[1]uint8)(unsafe.Pointer(bp)))[0])
  21533. }
  21534. return v3
  21535. }
  21536. func Xgzgetc_(tls *libc.TLS, file TgzFile) (r int32) {
  21537. return Xgzgetc(tls, file)
  21538. }
  21539. // C documentation
  21540. //
  21541. // /* -- see zlib.h -- */
  21542. func Xgzungetc(tls *libc.TLS, c int32, file TgzFile) (r int32) {
  21543. var dest, src, v1, v2 uintptr
  21544. var state Tgz_statep
  21545. _, _, _, _, _ = dest, src, state, v1, v2
  21546. /* get internal structure */
  21547. if file == libc.UintptrFromInt32(0) {
  21548. return -int32(1)
  21549. }
  21550. state = file
  21551. /* in case this was just opened, set up the input buffer */
  21552. 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) {
  21553. _gz_look(tls, state)
  21554. }
  21555. /* check that we're reading and that there's no (serious) error */
  21556. 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) {
  21557. return -int32(1)
  21558. }
  21559. /* process a skip request */
  21560. if (*Tgz_state)(unsafe.Pointer(state)).Fseek != 0 {
  21561. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0
  21562. if _gz_skip(tls, state, (*Tgz_state)(unsafe.Pointer(state)).Fskip) == -int32(1) {
  21563. return -int32(1)
  21564. }
  21565. }
  21566. /* can't push EOF */
  21567. if c < 0 {
  21568. return -int32(1)
  21569. }
  21570. /* if output buffer empty, put byte at end (allows more pushing) */
  21571. if (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave == uint32(0) {
  21572. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave = uint32(1)
  21573. (*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)
  21574. *(*uint8)(unsafe.Pointer((*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext)) = libc.Uint8FromInt32(c)
  21575. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos--
  21576. (*Tgz_state)(unsafe.Pointer(state)).Fpast = 0
  21577. return c
  21578. }
  21579. /* if no room, give up (must have already done a gzungetc()) */
  21580. if (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave == (*Tgz_state)(unsafe.Pointer(state)).Fsize<<int32(1) {
  21581. Xgz_error(tls, state, -int32(3), __ccgo_ts+767)
  21582. return -int32(1)
  21583. }
  21584. /* slide output data if needed and insert byte before existing data */
  21585. if (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext == (*Tgz_state)(unsafe.Pointer(state)).Fout {
  21586. src = (*Tgz_state)(unsafe.Pointer(state)).Fout + uintptr((*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave)
  21587. dest = (*Tgz_state)(unsafe.Pointer(state)).Fout + uintptr((*Tgz_state)(unsafe.Pointer(state)).Fsize<<libc.Int32FromInt32(1))
  21588. for src > (*Tgz_state)(unsafe.Pointer(state)).Fout {
  21589. dest--
  21590. v1 = dest
  21591. src--
  21592. v2 = src
  21593. *(*uint8)(unsafe.Pointer(v1)) = *(*uint8)(unsafe.Pointer(v2))
  21594. }
  21595. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext = dest
  21596. }
  21597. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave++
  21598. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext--
  21599. *(*uint8)(unsafe.Pointer((*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext)) = libc.Uint8FromInt32(c)
  21600. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos--
  21601. (*Tgz_state)(unsafe.Pointer(state)).Fpast = 0
  21602. return c
  21603. }
  21604. // C documentation
  21605. //
  21606. // /* -- see zlib.h -- */
  21607. func Xgzgets(tls *libc.TLS, file TgzFile, buf uintptr, len1 int32) (r uintptr) {
  21608. var eol, str uintptr
  21609. var left, n, v1 uint32
  21610. var state Tgz_statep
  21611. _, _, _, _, _, _ = eol, left, n, state, str, v1
  21612. /* check parameters and get internal structure */
  21613. if file == libc.UintptrFromInt32(0) || buf == libc.UintptrFromInt32(0) || len1 < int32(1) {
  21614. return libc.UintptrFromInt32(0)
  21615. }
  21616. state = file
  21617. /* check that we're reading and that there's no (serious) error */
  21618. 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) {
  21619. return libc.UintptrFromInt32(0)
  21620. }
  21621. /* process a skip request */
  21622. if (*Tgz_state)(unsafe.Pointer(state)).Fseek != 0 {
  21623. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0
  21624. if _gz_skip(tls, state, (*Tgz_state)(unsafe.Pointer(state)).Fskip) == -int32(1) {
  21625. return libc.UintptrFromInt32(0)
  21626. }
  21627. }
  21628. /* copy output bytes up to new line or len - 1, whichever comes first --
  21629. append a terminating zero to the string (we don't check for a zero in
  21630. the contents, let the user worry about that) */
  21631. str = buf
  21632. left = libc.Uint32FromInt32(len1) - uint32(1)
  21633. if left != 0 {
  21634. for cond := true; cond; cond = left != 0 && eol == libc.UintptrFromInt32(0) {
  21635. /* assure that something is in the output buffer */
  21636. if (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave == uint32(0) && _gz_fetch(tls, state) == -int32(1) {
  21637. return libc.UintptrFromInt32(0)
  21638. } /* error */
  21639. if (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave == uint32(0) { /* end of file */
  21640. (*Tgz_state)(unsafe.Pointer(state)).Fpast = int32(1) /* read past end */
  21641. break /* return what we have */
  21642. }
  21643. /* look for end-of-line in current output buffer */
  21644. if (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave > left {
  21645. v1 = left
  21646. } else {
  21647. v1 = (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave
  21648. }
  21649. n = v1
  21650. eol = libc.Xmemchr(tls, (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext, int32('\n'), n)
  21651. if eol != libc.UintptrFromInt32(0) {
  21652. n = libc.Uint32FromInt32(int32(eol)-int32((*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext)) + uint32(1)
  21653. }
  21654. /* copy through end-of-line, or remainder if not found */
  21655. libc.Xmemcpy(tls, buf, (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext, n)
  21656. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fhave -= n
  21657. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext += uintptr(n)
  21658. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos += libc.Int64FromUint32(n)
  21659. left -= n
  21660. buf += uintptr(n)
  21661. }
  21662. }
  21663. /* return terminated string, or if nothing, end of file */
  21664. if buf == str {
  21665. return libc.UintptrFromInt32(0)
  21666. }
  21667. *(*int8)(unsafe.Pointer(buf)) = 0
  21668. return str
  21669. }
  21670. // C documentation
  21671. //
  21672. // /* -- see zlib.h -- */
  21673. func Xgzdirect(tls *libc.TLS, file TgzFile) (r int32) {
  21674. var state Tgz_statep
  21675. _ = state
  21676. /* get internal structure */
  21677. if file == libc.UintptrFromInt32(0) {
  21678. return 0
  21679. }
  21680. state = file
  21681. /* if the state is not known, but we can find out, then do so (this is
  21682. mainly for right after a gzopen() or gzdopen()) */
  21683. 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) {
  21684. _gz_look(tls, state)
  21685. }
  21686. /* return 1 if transparent, 0 if processing a gzip stream */
  21687. return (*Tgz_state)(unsafe.Pointer(state)).Fdirect
  21688. }
  21689. // C documentation
  21690. //
  21691. // /* -- see zlib.h -- */
  21692. func Xgzclose_r(tls *libc.TLS, file TgzFile) (r int32) {
  21693. var err, ret, v1, v2 int32
  21694. var state Tgz_statep
  21695. _, _, _, _, _ = err, ret, state, v1, v2
  21696. /* get internal structure */
  21697. if file == libc.UintptrFromInt32(0) {
  21698. return -int32(2)
  21699. }
  21700. state = file
  21701. /* check that we're reading */
  21702. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_READ) {
  21703. return -int32(2)
  21704. }
  21705. /* free memory and close file */
  21706. if (*Tgz_state)(unsafe.Pointer(state)).Fsize != 0 {
  21707. XinflateEnd(tls, state+100)
  21708. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fout)
  21709. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fin)
  21710. }
  21711. if (*Tgz_state)(unsafe.Pointer(state)).Ferr == -int32(5) {
  21712. v1 = -int32(5)
  21713. } else {
  21714. v1 = m_Z_OK
  21715. }
  21716. err = v1
  21717. Xgz_error(tls, state, m_Z_OK, libc.UintptrFromInt32(0))
  21718. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fpath)
  21719. ret = libc.Xclose(tls, (*Tgz_state)(unsafe.Pointer(state)).Ffd)
  21720. libc.Xfree(tls, state)
  21721. if ret != 0 {
  21722. v2 = -int32(1)
  21723. } else {
  21724. v2 = err
  21725. }
  21726. return v2
  21727. }
  21728. // C documentation
  21729. //
  21730. // /* Initialize state for writing a gzip file. Mark initialization by setting
  21731. // state->size to non-zero. Return -1 on a memory allocation failure, or 0 on
  21732. // success. */
  21733. func _gz_init(tls *libc.TLS, state Tgz_statep) (r int32) {
  21734. var ret int32
  21735. var strm Tz_streamp
  21736. _, _ = ret, strm
  21737. strm = state + 100
  21738. /* allocate input buffer (double size for gzprintf) */
  21739. (*Tgz_state)(unsafe.Pointer(state)).Fin = libc.Xmalloc(tls, (*Tgz_state)(unsafe.Pointer(state)).Fwant<<int32(1))
  21740. if (*Tgz_state)(unsafe.Pointer(state)).Fin == libc.UintptrFromInt32(0) {
  21741. Xgz_error(tls, state, -int32(4), __ccgo_ts+595)
  21742. return -int32(1)
  21743. }
  21744. /* only need output buffer and deflate state if compressing */
  21745. if !((*Tgz_state)(unsafe.Pointer(state)).Fdirect != 0) {
  21746. /* allocate output buffer */
  21747. (*Tgz_state)(unsafe.Pointer(state)).Fout = libc.Xmalloc(tls, (*Tgz_state)(unsafe.Pointer(state)).Fwant)
  21748. if (*Tgz_state)(unsafe.Pointer(state)).Fout == libc.UintptrFromInt32(0) {
  21749. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fin)
  21750. Xgz_error(tls, state, -int32(4), __ccgo_ts+595)
  21751. return -int32(1)
  21752. }
  21753. /* allocate deflate memory, set up for gzip compression */
  21754. (*Tz_stream)(unsafe.Pointer(strm)).Fzalloc = uintptr(m_Z_NULL)
  21755. (*Tz_stream)(unsafe.Pointer(strm)).Fzfree = uintptr(m_Z_NULL)
  21756. (*Tz_stream)(unsafe.Pointer(strm)).Fopaque = uintptr(m_Z_NULL)
  21757. 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(56))
  21758. if ret != m_Z_OK {
  21759. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fout)
  21760. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fin)
  21761. Xgz_error(tls, state, -int32(4), __ccgo_ts+595)
  21762. return -int32(1)
  21763. }
  21764. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = libc.UintptrFromInt32(0)
  21765. }
  21766. /* mark state as initialized */
  21767. (*Tgz_state)(unsafe.Pointer(state)).Fsize = (*Tgz_state)(unsafe.Pointer(state)).Fwant
  21768. /* initialize write buffer if compressing */
  21769. if !((*Tgz_state)(unsafe.Pointer(state)).Fdirect != 0) {
  21770. (*Tz_stream)(unsafe.Pointer(strm)).Favail_out = (*Tgz_state)(unsafe.Pointer(state)).Fsize
  21771. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out = (*Tgz_state)(unsafe.Pointer(state)).Fout
  21772. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext = (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out
  21773. }
  21774. return 0
  21775. }
  21776. // C documentation
  21777. //
  21778. // /* Compress whatever is at avail_in and next_in and write to the output file.
  21779. // Return -1 if there is an error writing to the output file or if gz_init()
  21780. // fails to allocate memory, otherwise 0. flush is assumed to be a valid
  21781. // deflate() flush value. If flush is Z_FINISH, then the deflate() state is
  21782. // reset to start a new gzip stream. If gz->direct is true, then simply write
  21783. // to the output file without compressing, and ignore flush. */
  21784. func _gz_comp(tls *libc.TLS, state Tgz_statep, flush int32) (r int32) {
  21785. var have, max, put, v1, v2 uint32
  21786. var ret, writ int32
  21787. var strm Tz_streamp
  21788. _, _, _, _, _, _, _, _ = have, max, put, ret, strm, writ, v1, v2
  21789. max = libc.Uint32FromInt32(-libc.Int32FromInt32(1))>>libc.Int32FromInt32(2) + libc.Uint32FromInt32(1)
  21790. strm = state + 100
  21791. /* allocate memory if this is the first time through */
  21792. if (*Tgz_state)(unsafe.Pointer(state)).Fsize == uint32(0) && _gz_init(tls, state) == -int32(1) {
  21793. return -int32(1)
  21794. }
  21795. /* write directly if requested */
  21796. if (*Tgz_state)(unsafe.Pointer(state)).Fdirect != 0 {
  21797. for (*Tz_stream)(unsafe.Pointer(strm)).Favail_in != 0 {
  21798. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in > max {
  21799. v1 = max
  21800. } else {
  21801. v1 = (*Tz_stream)(unsafe.Pointer(strm)).Favail_in
  21802. }
  21803. put = v1
  21804. writ = libc.Xwrite(tls, (*Tgz_state)(unsafe.Pointer(state)).Ffd, (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in, put)
  21805. if writ < 0 {
  21806. Xgz_error(tls, state, -int32(1), libc.Xstrerror(tls, *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))))
  21807. return -int32(1)
  21808. }
  21809. *(*TuInt)(unsafe.Pointer(strm + 4)) -= libc.Uint32FromInt32(writ)
  21810. *(*uintptr)(unsafe.Pointer(strm)) += uintptr(writ)
  21811. }
  21812. return 0
  21813. }
  21814. /* check for a pending reset */
  21815. if (*Tgz_state)(unsafe.Pointer(state)).Freset != 0 {
  21816. /* don't start a new gzip member unless there is data to write */
  21817. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in == uint32(0) {
  21818. return 0
  21819. }
  21820. XdeflateReset(tls, strm)
  21821. (*Tgz_state)(unsafe.Pointer(state)).Freset = 0
  21822. }
  21823. /* run deflate() on provided input until it produces no more output */
  21824. ret = m_Z_OK
  21825. for cond := true; cond; cond = have != 0 {
  21826. /* write out current buffer contents if full, or if flushing, but if
  21827. doing Z_FINISH then don't write until we get to Z_STREAM_END */
  21828. 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)) {
  21829. for (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out > (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext {
  21830. if int32((*Tz_stream)(unsafe.Pointer(strm)).Fnext_out)-int32((*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext) > libc.Int32FromUint32(max) {
  21831. v2 = max
  21832. } else {
  21833. v2 = libc.Uint32FromInt32(int32((*Tz_stream)(unsafe.Pointer(strm)).Fnext_out) - int32((*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext))
  21834. }
  21835. put = v2
  21836. writ = libc.Xwrite(tls, (*Tgz_state)(unsafe.Pointer(state)).Ffd, (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext, put)
  21837. if writ < 0 {
  21838. Xgz_error(tls, state, -int32(1), libc.Xstrerror(tls, *(*int32)(unsafe.Pointer(libc.X__errno_location(tls)))))
  21839. return -int32(1)
  21840. }
  21841. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext += uintptr(writ)
  21842. }
  21843. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_out == uint32(0) {
  21844. (*Tz_stream)(unsafe.Pointer(strm)).Favail_out = (*Tgz_state)(unsafe.Pointer(state)).Fsize
  21845. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_out = (*Tgz_state)(unsafe.Pointer(state)).Fout
  21846. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fnext = (*Tgz_state)(unsafe.Pointer(state)).Fout
  21847. }
  21848. }
  21849. /* compress */
  21850. have = (*Tz_stream)(unsafe.Pointer(strm)).Favail_out
  21851. ret = Xdeflate(tls, strm, flush)
  21852. if ret == -int32(2) {
  21853. Xgz_error(tls, state, -int32(2), __ccgo_ts+798)
  21854. return -int32(1)
  21855. }
  21856. have -= (*Tz_stream)(unsafe.Pointer(strm)).Favail_out
  21857. }
  21858. /* if that completed a deflate stream, allow another to start */
  21859. if flush == int32(m_Z_FINISH) {
  21860. (*Tgz_state)(unsafe.Pointer(state)).Freset = int32(1)
  21861. }
  21862. /* all done, no errors */
  21863. return 0
  21864. }
  21865. // C documentation
  21866. //
  21867. // /* Compress len zeros to output. Return -1 on a write error or memory
  21868. // allocation failure by gz_comp(), or 0 on success. */
  21869. func _gz_zero(tls *libc.TLS, state Tgz_statep, len1 Toff_t) (r int32) {
  21870. var first int32
  21871. var n, v1 uint32
  21872. var strm Tz_streamp
  21873. _, _, _, _ = first, n, strm, v1
  21874. strm = state + 100
  21875. /* consume whatever's left in the input buffer */
  21876. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in != 0 && _gz_comp(tls, state, m_Z_NO_FLUSH) == -int32(1) {
  21877. return -int32(1)
  21878. }
  21879. /* compress len zeros (len guaranteed > 0) */
  21880. first = int32(1)
  21881. for len1 != 0 {
  21882. if libc.Bool(libc.Bool(uint32(4) == uint32(8)) && (*Tgz_state)(unsafe.Pointer(state)).Fsize > Xgz_intmax(tls)) || libc.Int64FromUint32((*Tgz_state)(unsafe.Pointer(state)).Fsize) > len1 {
  21883. v1 = libc.Uint32FromInt64(len1)
  21884. } else {
  21885. v1 = (*Tgz_state)(unsafe.Pointer(state)).Fsize
  21886. }
  21887. n = v1
  21888. if first != 0 {
  21889. libc.Xmemset(tls, (*Tgz_state)(unsafe.Pointer(state)).Fin, 0, n)
  21890. first = 0
  21891. }
  21892. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = n
  21893. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = (*Tgz_state)(unsafe.Pointer(state)).Fin
  21894. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos += libc.Int64FromUint32(n)
  21895. if _gz_comp(tls, state, m_Z_NO_FLUSH) == -int32(1) {
  21896. return -int32(1)
  21897. }
  21898. len1 -= libc.Int64FromUint32(n)
  21899. }
  21900. return 0
  21901. }
  21902. // C documentation
  21903. //
  21904. // /* Write len bytes from buf to file. Return the number of bytes written. If
  21905. // the returned value is less than len, then there was an error. */
  21906. func _gz_write(tls *libc.TLS, state Tgz_statep, buf Tvoidpc, len1 Tz_size_t) (r Tz_size_t) {
  21907. var copy1, have, n uint32
  21908. var put Tz_size_t
  21909. _, _, _, _ = copy1, have, n, put
  21910. put = len1
  21911. /* if len is zero, avoid unnecessary operations */
  21912. if len1 == uint32(0) {
  21913. return uint32(0)
  21914. }
  21915. /* allocate memory if this is the first time through */
  21916. if (*Tgz_state)(unsafe.Pointer(state)).Fsize == uint32(0) && _gz_init(tls, state) == -int32(1) {
  21917. return uint32(0)
  21918. }
  21919. /* check for seek request */
  21920. if (*Tgz_state)(unsafe.Pointer(state)).Fseek != 0 {
  21921. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0
  21922. if _gz_zero(tls, state, (*Tgz_state)(unsafe.Pointer(state)).Fskip) == -int32(1) {
  21923. return uint32(0)
  21924. }
  21925. }
  21926. /* for small len, copy to input buffer, otherwise compress directly */
  21927. if len1 < (*Tgz_state)(unsafe.Pointer(state)).Fsize {
  21928. /* copy to input buffer, compress when full */
  21929. for cond := true; cond; cond = len1 != 0 {
  21930. if (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_in == uint32(0) {
  21931. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Fnext_in = (*Tgz_state)(unsafe.Pointer(state)).Fin
  21932. }
  21933. have = libc.Uint32FromInt32(int32((*Tgz_state)(unsafe.Pointer(state)).Fstrm.Fnext_in+uintptr((*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_in)) - int32((*Tgz_state)(unsafe.Pointer(state)).Fin))
  21934. copy1 = (*Tgz_state)(unsafe.Pointer(state)).Fsize - have
  21935. if copy1 > len1 {
  21936. copy1 = len1
  21937. }
  21938. libc.Xmemcpy(tls, (*Tgz_state)(unsafe.Pointer(state)).Fin+uintptr(have), buf, copy1)
  21939. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_in += copy1
  21940. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos += libc.Int64FromUint32(copy1)
  21941. buf = buf + uintptr(copy1)
  21942. len1 -= copy1
  21943. if len1 != 0 && _gz_comp(tls, state, m_Z_NO_FLUSH) == -int32(1) {
  21944. return uint32(0)
  21945. }
  21946. }
  21947. } else {
  21948. /* consume whatever's left in the input buffer */
  21949. if (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_in != 0 && _gz_comp(tls, state, m_Z_NO_FLUSH) == -int32(1) {
  21950. return uint32(0)
  21951. }
  21952. /* directly compress user buffer to file */
  21953. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Fnext_in = buf
  21954. for cond := true; cond; cond = len1 != 0 {
  21955. n = libc.Uint32FromInt32(-libc.Int32FromInt32(1))
  21956. if n > len1 {
  21957. n = len1
  21958. }
  21959. (*Tgz_state)(unsafe.Pointer(state)).Fstrm.Favail_in = n
  21960. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos += libc.Int64FromUint32(n)
  21961. if _gz_comp(tls, state, m_Z_NO_FLUSH) == -int32(1) {
  21962. return uint32(0)
  21963. }
  21964. len1 -= n
  21965. }
  21966. }
  21967. /* input was all buffered or compressed */
  21968. return put
  21969. }
  21970. // C documentation
  21971. //
  21972. // /* -- see zlib.h -- */
  21973. func Xgzwrite(tls *libc.TLS, file TgzFile, buf Tvoidpc, len1 uint32) (r int32) {
  21974. var state Tgz_statep
  21975. _ = state
  21976. /* get internal structure */
  21977. if file == libc.UintptrFromInt32(0) {
  21978. return 0
  21979. }
  21980. state = file
  21981. /* check that we're writing and that there's no error */
  21982. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) || (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK {
  21983. return 0
  21984. }
  21985. /* since an int is returned, make sure len fits in one, otherwise return
  21986. with an error (this avoids a flaw in the interface) */
  21987. if libc.Int32FromUint32(len1) < 0 {
  21988. Xgz_error(tls, state, -int32(3), __ccgo_ts+837)
  21989. return 0
  21990. }
  21991. /* write len bytes from buf (the return value will fit in an int) */
  21992. return libc.Int32FromUint32(_gz_write(tls, state, buf, len1))
  21993. }
  21994. // C documentation
  21995. //
  21996. // /* -- see zlib.h -- */
  21997. func Xgzfwrite(tls *libc.TLS, buf Tvoidpc, size Tz_size_t, nitems Tz_size_t, file TgzFile) (r Tz_size_t) {
  21998. var len1 Tz_size_t
  21999. var state Tgz_statep
  22000. var v1 uint32
  22001. _, _, _ = len1, state, v1
  22002. /* get internal structure */
  22003. if file == libc.UintptrFromInt32(0) {
  22004. return uint32(0)
  22005. }
  22006. state = file
  22007. /* check that we're writing and that there's no error */
  22008. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) || (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK {
  22009. return uint32(0)
  22010. }
  22011. /* compute bytes to read -- error on overflow */
  22012. len1 = nitems * size
  22013. if size != 0 && len1/size != nitems {
  22014. Xgz_error(tls, state, -int32(2), __ccgo_ts+734)
  22015. return uint32(0)
  22016. }
  22017. /* write len bytes to buf, return the number of full items written */
  22018. if len1 != 0 {
  22019. v1 = _gz_write(tls, state, buf, len1) / size
  22020. } else {
  22021. v1 = uint32(0)
  22022. }
  22023. return v1
  22024. }
  22025. // C documentation
  22026. //
  22027. // /* -- see zlib.h -- */
  22028. func Xgzputc(tls *libc.TLS, file TgzFile, c int32) (r int32) {
  22029. bp := tls.Alloc(16)
  22030. defer tls.Free(16)
  22031. var have uint32
  22032. var state Tgz_statep
  22033. var strm Tz_streamp
  22034. var _ /* buf at bp+0 */ [1]uint8
  22035. _, _, _ = have, state, strm
  22036. /* get internal structure */
  22037. if file == libc.UintptrFromInt32(0) {
  22038. return -int32(1)
  22039. }
  22040. state = file
  22041. strm = state + 100
  22042. /* check that we're writing and that there's no error */
  22043. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) || (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK {
  22044. return -int32(1)
  22045. }
  22046. /* check for seek request */
  22047. if (*Tgz_state)(unsafe.Pointer(state)).Fseek != 0 {
  22048. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0
  22049. if _gz_zero(tls, state, (*Tgz_state)(unsafe.Pointer(state)).Fskip) == -int32(1) {
  22050. return -int32(1)
  22051. }
  22052. }
  22053. /* try writing to input buffer for speed (state->size == 0 if buffer not
  22054. initialized) */
  22055. if (*Tgz_state)(unsafe.Pointer(state)).Fsize != 0 {
  22056. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in == uint32(0) {
  22057. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = (*Tgz_state)(unsafe.Pointer(state)).Fin
  22058. }
  22059. have = libc.Uint32FromInt32(int32((*Tz_stream)(unsafe.Pointer(strm)).Fnext_in+uintptr((*Tz_stream)(unsafe.Pointer(strm)).Favail_in)) - int32((*Tgz_state)(unsafe.Pointer(state)).Fin))
  22060. if have < (*Tgz_state)(unsafe.Pointer(state)).Fsize {
  22061. *(*uint8)(unsafe.Pointer((*Tgz_state)(unsafe.Pointer(state)).Fin + uintptr(have))) = libc.Uint8FromInt32(c)
  22062. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in++
  22063. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos++
  22064. return c & int32(0xff)
  22065. }
  22066. }
  22067. /* no room in buffer or not initialized, use gz_write() */
  22068. (*(*[1]uint8)(unsafe.Pointer(bp)))[0] = libc.Uint8FromInt32(c)
  22069. if _gz_write(tls, state, bp, uint32(1)) != uint32(1) {
  22070. return -int32(1)
  22071. }
  22072. return c & int32(0xff)
  22073. }
  22074. // C documentation
  22075. //
  22076. // /* -- see zlib.h -- */
  22077. func Xgzputs(tls *libc.TLS, file TgzFile, s uintptr) (r int32) {
  22078. var len1, put Tz_size_t
  22079. var state Tgz_statep
  22080. var v1 int32
  22081. _, _, _, _ = len1, put, state, v1
  22082. /* get internal structure */
  22083. if file == libc.UintptrFromInt32(0) {
  22084. return -int32(1)
  22085. }
  22086. state = file
  22087. /* check that we're writing and that there's no error */
  22088. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) || (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK {
  22089. return -int32(1)
  22090. }
  22091. /* write string */
  22092. len1 = libc.Xstrlen(tls, s)
  22093. if libc.Int32FromUint32(len1) < 0 || len1 != len1 {
  22094. Xgz_error(tls, state, -int32(2), __ccgo_ts+874)
  22095. return -int32(1)
  22096. }
  22097. put = _gz_write(tls, state, s, len1)
  22098. if put < len1 {
  22099. v1 = -int32(1)
  22100. } else {
  22101. v1 = libc.Int32FromUint32(len1)
  22102. }
  22103. return v1
  22104. }
  22105. // C documentation
  22106. //
  22107. // /* -- see zlib.h -- */
  22108. func Xgzvprintf(tls *libc.TLS, file TgzFile, format uintptr, va Tva_list) (r int32) {
  22109. var left uint32
  22110. var len1 int32
  22111. var next uintptr
  22112. var state Tgz_statep
  22113. var strm Tz_streamp
  22114. _, _, _, _, _ = left, len1, next, state, strm
  22115. /* get internal structure */
  22116. if file == libc.UintptrFromInt32(0) {
  22117. return -int32(2)
  22118. }
  22119. state = file
  22120. strm = state + 100
  22121. /* check that we're writing and that there's no error */
  22122. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) || (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK {
  22123. return -int32(2)
  22124. }
  22125. /* make sure we have some buffer space */
  22126. if (*Tgz_state)(unsafe.Pointer(state)).Fsize == uint32(0) && _gz_init(tls, state) == -int32(1) {
  22127. return (*Tgz_state)(unsafe.Pointer(state)).Ferr
  22128. }
  22129. /* check for seek request */
  22130. if (*Tgz_state)(unsafe.Pointer(state)).Fseek != 0 {
  22131. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0
  22132. if _gz_zero(tls, state, (*Tgz_state)(unsafe.Pointer(state)).Fskip) == -int32(1) {
  22133. return (*Tgz_state)(unsafe.Pointer(state)).Ferr
  22134. }
  22135. }
  22136. /* do the printf() into the input buffer, put length in len -- the input
  22137. buffer is double-sized just for this function, so there is guaranteed to
  22138. be state->size bytes available after the current contents */
  22139. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in == uint32(0) {
  22140. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = (*Tgz_state)(unsafe.Pointer(state)).Fin
  22141. }
  22142. next = (*Tgz_state)(unsafe.Pointer(state)).Fin + uintptr(int32((*Tz_stream)(unsafe.Pointer(strm)).Fnext_in)-int32((*Tgz_state)(unsafe.Pointer(state)).Fin)) + uintptr((*Tz_stream)(unsafe.Pointer(strm)).Favail_in)
  22143. *(*int8)(unsafe.Pointer(next + uintptr((*Tgz_state)(unsafe.Pointer(state)).Fsize-uint32(1)))) = 0
  22144. len1 = libc.X__builtin_vsnprintf(tls, next, (*Tgz_state)(unsafe.Pointer(state)).Fsize, format, va)
  22145. /* check that printf() results fit in buffer */
  22146. 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 {
  22147. return 0
  22148. }
  22149. /* update buffer and position, compress first half if past that */
  22150. *(*TuInt)(unsafe.Pointer(strm + 4)) += libc.Uint32FromInt32(len1)
  22151. (*Tgz_state)(unsafe.Pointer(state)).Fx.Fpos += int64(len1)
  22152. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in >= (*Tgz_state)(unsafe.Pointer(state)).Fsize {
  22153. left = (*Tz_stream)(unsafe.Pointer(strm)).Favail_in - (*Tgz_state)(unsafe.Pointer(state)).Fsize
  22154. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = (*Tgz_state)(unsafe.Pointer(state)).Fsize
  22155. if _gz_comp(tls, state, m_Z_NO_FLUSH) == -int32(1) {
  22156. return (*Tgz_state)(unsafe.Pointer(state)).Ferr
  22157. }
  22158. libc.Xmemmove(tls, (*Tgz_state)(unsafe.Pointer(state)).Fin, (*Tgz_state)(unsafe.Pointer(state)).Fin+uintptr((*Tgz_state)(unsafe.Pointer(state)).Fsize), left)
  22159. (*Tz_stream)(unsafe.Pointer(strm)).Fnext_in = (*Tgz_state)(unsafe.Pointer(state)).Fin
  22160. (*Tz_stream)(unsafe.Pointer(strm)).Favail_in = left
  22161. }
  22162. return len1
  22163. }
  22164. func Xgzprintf(tls *libc.TLS, file TgzFile, format uintptr, va1 uintptr) (r int32) {
  22165. var ret int32
  22166. var va Tva_list
  22167. _, _ = ret, va
  22168. va = va1
  22169. ret = Xgzvprintf(tls, file, format, va)
  22170. _ = va
  22171. return ret
  22172. }
  22173. // C documentation
  22174. //
  22175. // /* -- see zlib.h -- */
  22176. func Xgzflush(tls *libc.TLS, file TgzFile, flush int32) (r int32) {
  22177. var state Tgz_statep
  22178. _ = state
  22179. /* get internal structure */
  22180. if file == libc.UintptrFromInt32(0) {
  22181. return -int32(2)
  22182. }
  22183. state = file
  22184. /* check that we're writing and that there's no error */
  22185. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) || (*Tgz_state)(unsafe.Pointer(state)).Ferr != m_Z_OK {
  22186. return -int32(2)
  22187. }
  22188. /* check flush parameter */
  22189. if flush < 0 || flush > int32(m_Z_FINISH) {
  22190. return -int32(2)
  22191. }
  22192. /* check for seek request */
  22193. if (*Tgz_state)(unsafe.Pointer(state)).Fseek != 0 {
  22194. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0
  22195. if _gz_zero(tls, state, (*Tgz_state)(unsafe.Pointer(state)).Fskip) == -int32(1) {
  22196. return (*Tgz_state)(unsafe.Pointer(state)).Ferr
  22197. }
  22198. }
  22199. /* compress remaining data with requested flush */
  22200. _gz_comp(tls, state, flush)
  22201. return (*Tgz_state)(unsafe.Pointer(state)).Ferr
  22202. }
  22203. // C documentation
  22204. //
  22205. // /* -- see zlib.h -- */
  22206. func Xgzsetparams(tls *libc.TLS, file TgzFile, level int32, strategy int32) (r int32) {
  22207. var state Tgz_statep
  22208. var strm Tz_streamp
  22209. _, _ = state, strm
  22210. /* get internal structure */
  22211. if file == libc.UintptrFromInt32(0) {
  22212. return -int32(2)
  22213. }
  22214. state = file
  22215. strm = state + 100
  22216. /* check that we're writing and that there's no error */
  22217. 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 {
  22218. return -int32(2)
  22219. }
  22220. /* if no change is requested, then do nothing */
  22221. if level == (*Tgz_state)(unsafe.Pointer(state)).Flevel && strategy == (*Tgz_state)(unsafe.Pointer(state)).Fstrategy {
  22222. return m_Z_OK
  22223. }
  22224. /* check for seek request */
  22225. if (*Tgz_state)(unsafe.Pointer(state)).Fseek != 0 {
  22226. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0
  22227. if _gz_zero(tls, state, (*Tgz_state)(unsafe.Pointer(state)).Fskip) == -int32(1) {
  22228. return (*Tgz_state)(unsafe.Pointer(state)).Ferr
  22229. }
  22230. }
  22231. /* change compression parameters for subsequent input */
  22232. if (*Tgz_state)(unsafe.Pointer(state)).Fsize != 0 {
  22233. /* flush previous input with previous parameters before changing */
  22234. if (*Tz_stream)(unsafe.Pointer(strm)).Favail_in != 0 && _gz_comp(tls, state, int32(m_Z_BLOCK)) == -int32(1) {
  22235. return (*Tgz_state)(unsafe.Pointer(state)).Ferr
  22236. }
  22237. XdeflateParams(tls, strm, level, strategy)
  22238. }
  22239. (*Tgz_state)(unsafe.Pointer(state)).Flevel = level
  22240. (*Tgz_state)(unsafe.Pointer(state)).Fstrategy = strategy
  22241. return m_Z_OK
  22242. }
  22243. // C documentation
  22244. //
  22245. // /* -- see zlib.h -- */
  22246. func Xgzclose_w(tls *libc.TLS, file TgzFile) (r int32) {
  22247. var ret int32
  22248. var state Tgz_statep
  22249. _, _ = ret, state
  22250. ret = m_Z_OK
  22251. /* get internal structure */
  22252. if file == libc.UintptrFromInt32(0) {
  22253. return -int32(2)
  22254. }
  22255. state = file
  22256. /* check that we're writing */
  22257. if (*Tgz_state)(unsafe.Pointer(state)).Fmode != int32(m_GZ_WRITE) {
  22258. return -int32(2)
  22259. }
  22260. /* check for seek request */
  22261. if (*Tgz_state)(unsafe.Pointer(state)).Fseek != 0 {
  22262. (*Tgz_state)(unsafe.Pointer(state)).Fseek = 0
  22263. if _gz_zero(tls, state, (*Tgz_state)(unsafe.Pointer(state)).Fskip) == -int32(1) {
  22264. ret = (*Tgz_state)(unsafe.Pointer(state)).Ferr
  22265. }
  22266. }
  22267. /* flush, free memory, and close file */
  22268. if _gz_comp(tls, state, int32(m_Z_FINISH)) == -int32(1) {
  22269. ret = (*Tgz_state)(unsafe.Pointer(state)).Ferr
  22270. }
  22271. if (*Tgz_state)(unsafe.Pointer(state)).Fsize != 0 {
  22272. if !((*Tgz_state)(unsafe.Pointer(state)).Fdirect != 0) {
  22273. XdeflateEnd(tls, state+100)
  22274. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fout)
  22275. }
  22276. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fin)
  22277. }
  22278. Xgz_error(tls, state, m_Z_OK, libc.UintptrFromInt32(0))
  22279. libc.Xfree(tls, (*Tgz_state)(unsafe.Pointer(state)).Fpath)
  22280. if libc.Xclose(tls, (*Tgz_state)(unsafe.Pointer(state)).Ffd) == -int32(1) {
  22281. ret = -int32(1)
  22282. }
  22283. libc.Xfree(tls, state)
  22284. return ret
  22285. }
  22286. func __ccgo_fp(f interface{}) uintptr {
  22287. type iface [2]uintptr
  22288. return (*iface)(unsafe.Pointer(&f))[1]
  22289. }
  22290. var x__dist_code = [512]Tuch{
  22291. 1: uint8(1),
  22292. 2: uint8(2),
  22293. 3: uint8(3),
  22294. 4: uint8(4),
  22295. 5: uint8(4),
  22296. 6: uint8(5),
  22297. 7: uint8(5),
  22298. 8: uint8(6),
  22299. 9: uint8(6),
  22300. 10: uint8(6),
  22301. 11: uint8(6),
  22302. 12: uint8(7),
  22303. 13: uint8(7),
  22304. 14: uint8(7),
  22305. 15: uint8(7),
  22306. 16: uint8(8),
  22307. 17: uint8(8),
  22308. 18: uint8(8),
  22309. 19: uint8(8),
  22310. 20: uint8(8),
  22311. 21: uint8(8),
  22312. 22: uint8(8),
  22313. 23: uint8(8),
  22314. 24: uint8(9),
  22315. 25: uint8(9),
  22316. 26: uint8(9),
  22317. 27: uint8(9),
  22318. 28: uint8(9),
  22319. 29: uint8(9),
  22320. 30: uint8(9),
  22321. 31: uint8(9),
  22322. 32: uint8(10),
  22323. 33: uint8(10),
  22324. 34: uint8(10),
  22325. 35: uint8(10),
  22326. 36: uint8(10),
  22327. 37: uint8(10),
  22328. 38: uint8(10),
  22329. 39: uint8(10),
  22330. 40: uint8(10),
  22331. 41: uint8(10),
  22332. 42: uint8(10),
  22333. 43: uint8(10),
  22334. 44: uint8(10),
  22335. 45: uint8(10),
  22336. 46: uint8(10),
  22337. 47: uint8(10),
  22338. 48: uint8(11),
  22339. 49: uint8(11),
  22340. 50: uint8(11),
  22341. 51: uint8(11),
  22342. 52: uint8(11),
  22343. 53: uint8(11),
  22344. 54: uint8(11),
  22345. 55: uint8(11),
  22346. 56: uint8(11),
  22347. 57: uint8(11),
  22348. 58: uint8(11),
  22349. 59: uint8(11),
  22350. 60: uint8(11),
  22351. 61: uint8(11),
  22352. 62: uint8(11),
  22353. 63: uint8(11),
  22354. 64: uint8(12),
  22355. 65: uint8(12),
  22356. 66: uint8(12),
  22357. 67: uint8(12),
  22358. 68: uint8(12),
  22359. 69: uint8(12),
  22360. 70: uint8(12),
  22361. 71: uint8(12),
  22362. 72: uint8(12),
  22363. 73: uint8(12),
  22364. 74: uint8(12),
  22365. 75: uint8(12),
  22366. 76: uint8(12),
  22367. 77: uint8(12),
  22368. 78: uint8(12),
  22369. 79: uint8(12),
  22370. 80: uint8(12),
  22371. 81: uint8(12),
  22372. 82: uint8(12),
  22373. 83: uint8(12),
  22374. 84: uint8(12),
  22375. 85: uint8(12),
  22376. 86: uint8(12),
  22377. 87: uint8(12),
  22378. 88: uint8(12),
  22379. 89: uint8(12),
  22380. 90: uint8(12),
  22381. 91: uint8(12),
  22382. 92: uint8(12),
  22383. 93: uint8(12),
  22384. 94: uint8(12),
  22385. 95: uint8(12),
  22386. 96: uint8(13),
  22387. 97: uint8(13),
  22388. 98: uint8(13),
  22389. 99: uint8(13),
  22390. 100: uint8(13),
  22391. 101: uint8(13),
  22392. 102: uint8(13),
  22393. 103: uint8(13),
  22394. 104: uint8(13),
  22395. 105: uint8(13),
  22396. 106: uint8(13),
  22397. 107: uint8(13),
  22398. 108: uint8(13),
  22399. 109: uint8(13),
  22400. 110: uint8(13),
  22401. 111: uint8(13),
  22402. 112: uint8(13),
  22403. 113: uint8(13),
  22404. 114: uint8(13),
  22405. 115: uint8(13),
  22406. 116: uint8(13),
  22407. 117: uint8(13),
  22408. 118: uint8(13),
  22409. 119: uint8(13),
  22410. 120: uint8(13),
  22411. 121: uint8(13),
  22412. 122: uint8(13),
  22413. 123: uint8(13),
  22414. 124: uint8(13),
  22415. 125: uint8(13),
  22416. 126: uint8(13),
  22417. 127: uint8(13),
  22418. 128: uint8(14),
  22419. 129: uint8(14),
  22420. 130: uint8(14),
  22421. 131: uint8(14),
  22422. 132: uint8(14),
  22423. 133: uint8(14),
  22424. 134: uint8(14),
  22425. 135: uint8(14),
  22426. 136: uint8(14),
  22427. 137: uint8(14),
  22428. 138: uint8(14),
  22429. 139: uint8(14),
  22430. 140: uint8(14),
  22431. 141: uint8(14),
  22432. 142: uint8(14),
  22433. 143: uint8(14),
  22434. 144: uint8(14),
  22435. 145: uint8(14),
  22436. 146: uint8(14),
  22437. 147: uint8(14),
  22438. 148: uint8(14),
  22439. 149: uint8(14),
  22440. 150: uint8(14),
  22441. 151: uint8(14),
  22442. 152: uint8(14),
  22443. 153: uint8(14),
  22444. 154: uint8(14),
  22445. 155: uint8(14),
  22446. 156: uint8(14),
  22447. 157: uint8(14),
  22448. 158: uint8(14),
  22449. 159: uint8(14),
  22450. 160: uint8(14),
  22451. 161: uint8(14),
  22452. 162: uint8(14),
  22453. 163: uint8(14),
  22454. 164: uint8(14),
  22455. 165: uint8(14),
  22456. 166: uint8(14),
  22457. 167: uint8(14),
  22458. 168: uint8(14),
  22459. 169: uint8(14),
  22460. 170: uint8(14),
  22461. 171: uint8(14),
  22462. 172: uint8(14),
  22463. 173: uint8(14),
  22464. 174: uint8(14),
  22465. 175: uint8(14),
  22466. 176: uint8(14),
  22467. 177: uint8(14),
  22468. 178: uint8(14),
  22469. 179: uint8(14),
  22470. 180: uint8(14),
  22471. 181: uint8(14),
  22472. 182: uint8(14),
  22473. 183: uint8(14),
  22474. 184: uint8(14),
  22475. 185: uint8(14),
  22476. 186: uint8(14),
  22477. 187: uint8(14),
  22478. 188: uint8(14),
  22479. 189: uint8(14),
  22480. 190: uint8(14),
  22481. 191: uint8(14),
  22482. 192: uint8(15),
  22483. 193: uint8(15),
  22484. 194: uint8(15),
  22485. 195: uint8(15),
  22486. 196: uint8(15),
  22487. 197: uint8(15),
  22488. 198: uint8(15),
  22489. 199: uint8(15),
  22490. 200: uint8(15),
  22491. 201: uint8(15),
  22492. 202: uint8(15),
  22493. 203: uint8(15),
  22494. 204: uint8(15),
  22495. 205: uint8(15),
  22496. 206: uint8(15),
  22497. 207: uint8(15),
  22498. 208: uint8(15),
  22499. 209: uint8(15),
  22500. 210: uint8(15),
  22501. 211: uint8(15),
  22502. 212: uint8(15),
  22503. 213: uint8(15),
  22504. 214: uint8(15),
  22505. 215: uint8(15),
  22506. 216: uint8(15),
  22507. 217: uint8(15),
  22508. 218: uint8(15),
  22509. 219: uint8(15),
  22510. 220: uint8(15),
  22511. 221: uint8(15),
  22512. 222: uint8(15),
  22513. 223: uint8(15),
  22514. 224: uint8(15),
  22515. 225: uint8(15),
  22516. 226: uint8(15),
  22517. 227: uint8(15),
  22518. 228: uint8(15),
  22519. 229: uint8(15),
  22520. 230: uint8(15),
  22521. 231: uint8(15),
  22522. 232: uint8(15),
  22523. 233: uint8(15),
  22524. 234: uint8(15),
  22525. 235: uint8(15),
  22526. 236: uint8(15),
  22527. 237: uint8(15),
  22528. 238: uint8(15),
  22529. 239: uint8(15),
  22530. 240: uint8(15),
  22531. 241: uint8(15),
  22532. 242: uint8(15),
  22533. 243: uint8(15),
  22534. 244: uint8(15),
  22535. 245: uint8(15),
  22536. 246: uint8(15),
  22537. 247: uint8(15),
  22538. 248: uint8(15),
  22539. 249: uint8(15),
  22540. 250: uint8(15),
  22541. 251: uint8(15),
  22542. 252: uint8(15),
  22543. 253: uint8(15),
  22544. 254: uint8(15),
  22545. 255: uint8(15),
  22546. 258: uint8(16),
  22547. 259: uint8(17),
  22548. 260: uint8(18),
  22549. 261: uint8(18),
  22550. 262: uint8(19),
  22551. 263: uint8(19),
  22552. 264: uint8(20),
  22553. 265: uint8(20),
  22554. 266: uint8(20),
  22555. 267: uint8(20),
  22556. 268: uint8(21),
  22557. 269: uint8(21),
  22558. 270: uint8(21),
  22559. 271: uint8(21),
  22560. 272: uint8(22),
  22561. 273: uint8(22),
  22562. 274: uint8(22),
  22563. 275: uint8(22),
  22564. 276: uint8(22),
  22565. 277: uint8(22),
  22566. 278: uint8(22),
  22567. 279: uint8(22),
  22568. 280: uint8(23),
  22569. 281: uint8(23),
  22570. 282: uint8(23),
  22571. 283: uint8(23),
  22572. 284: uint8(23),
  22573. 285: uint8(23),
  22574. 286: uint8(23),
  22575. 287: uint8(23),
  22576. 288: uint8(24),
  22577. 289: uint8(24),
  22578. 290: uint8(24),
  22579. 291: uint8(24),
  22580. 292: uint8(24),
  22581. 293: uint8(24),
  22582. 294: uint8(24),
  22583. 295: uint8(24),
  22584. 296: uint8(24),
  22585. 297: uint8(24),
  22586. 298: uint8(24),
  22587. 299: uint8(24),
  22588. 300: uint8(24),
  22589. 301: uint8(24),
  22590. 302: uint8(24),
  22591. 303: uint8(24),
  22592. 304: uint8(25),
  22593. 305: uint8(25),
  22594. 306: uint8(25),
  22595. 307: uint8(25),
  22596. 308: uint8(25),
  22597. 309: uint8(25),
  22598. 310: uint8(25),
  22599. 311: uint8(25),
  22600. 312: uint8(25),
  22601. 313: uint8(25),
  22602. 314: uint8(25),
  22603. 315: uint8(25),
  22604. 316: uint8(25),
  22605. 317: uint8(25),
  22606. 318: uint8(25),
  22607. 319: uint8(25),
  22608. 320: uint8(26),
  22609. 321: uint8(26),
  22610. 322: uint8(26),
  22611. 323: uint8(26),
  22612. 324: uint8(26),
  22613. 325: uint8(26),
  22614. 326: uint8(26),
  22615. 327: uint8(26),
  22616. 328: uint8(26),
  22617. 329: uint8(26),
  22618. 330: uint8(26),
  22619. 331: uint8(26),
  22620. 332: uint8(26),
  22621. 333: uint8(26),
  22622. 334: uint8(26),
  22623. 335: uint8(26),
  22624. 336: uint8(26),
  22625. 337: uint8(26),
  22626. 338: uint8(26),
  22627. 339: uint8(26),
  22628. 340: uint8(26),
  22629. 341: uint8(26),
  22630. 342: uint8(26),
  22631. 343: uint8(26),
  22632. 344: uint8(26),
  22633. 345: uint8(26),
  22634. 346: uint8(26),
  22635. 347: uint8(26),
  22636. 348: uint8(26),
  22637. 349: uint8(26),
  22638. 350: uint8(26),
  22639. 351: uint8(26),
  22640. 352: uint8(27),
  22641. 353: uint8(27),
  22642. 354: uint8(27),
  22643. 355: uint8(27),
  22644. 356: uint8(27),
  22645. 357: uint8(27),
  22646. 358: uint8(27),
  22647. 359: uint8(27),
  22648. 360: uint8(27),
  22649. 361: uint8(27),
  22650. 362: uint8(27),
  22651. 363: uint8(27),
  22652. 364: uint8(27),
  22653. 365: uint8(27),
  22654. 366: uint8(27),
  22655. 367: uint8(27),
  22656. 368: uint8(27),
  22657. 369: uint8(27),
  22658. 370: uint8(27),
  22659. 371: uint8(27),
  22660. 372: uint8(27),
  22661. 373: uint8(27),
  22662. 374: uint8(27),
  22663. 375: uint8(27),
  22664. 376: uint8(27),
  22665. 377: uint8(27),
  22666. 378: uint8(27),
  22667. 379: uint8(27),
  22668. 380: uint8(27),
  22669. 381: uint8(27),
  22670. 382: uint8(27),
  22671. 383: uint8(27),
  22672. 384: uint8(28),
  22673. 385: uint8(28),
  22674. 386: uint8(28),
  22675. 387: uint8(28),
  22676. 388: uint8(28),
  22677. 389: uint8(28),
  22678. 390: uint8(28),
  22679. 391: uint8(28),
  22680. 392: uint8(28),
  22681. 393: uint8(28),
  22682. 394: uint8(28),
  22683. 395: uint8(28),
  22684. 396: uint8(28),
  22685. 397: uint8(28),
  22686. 398: uint8(28),
  22687. 399: uint8(28),
  22688. 400: uint8(28),
  22689. 401: uint8(28),
  22690. 402: uint8(28),
  22691. 403: uint8(28),
  22692. 404: uint8(28),
  22693. 405: uint8(28),
  22694. 406: uint8(28),
  22695. 407: uint8(28),
  22696. 408: uint8(28),
  22697. 409: uint8(28),
  22698. 410: uint8(28),
  22699. 411: uint8(28),
  22700. 412: uint8(28),
  22701. 413: uint8(28),
  22702. 414: uint8(28),
  22703. 415: uint8(28),
  22704. 416: uint8(28),
  22705. 417: uint8(28),
  22706. 418: uint8(28),
  22707. 419: uint8(28),
  22708. 420: uint8(28),
  22709. 421: uint8(28),
  22710. 422: uint8(28),
  22711. 423: uint8(28),
  22712. 424: uint8(28),
  22713. 425: uint8(28),
  22714. 426: uint8(28),
  22715. 427: uint8(28),
  22716. 428: uint8(28),
  22717. 429: uint8(28),
  22718. 430: uint8(28),
  22719. 431: uint8(28),
  22720. 432: uint8(28),
  22721. 433: uint8(28),
  22722. 434: uint8(28),
  22723. 435: uint8(28),
  22724. 436: uint8(28),
  22725. 437: uint8(28),
  22726. 438: uint8(28),
  22727. 439: uint8(28),
  22728. 440: uint8(28),
  22729. 441: uint8(28),
  22730. 442: uint8(28),
  22731. 443: uint8(28),
  22732. 444: uint8(28),
  22733. 445: uint8(28),
  22734. 446: uint8(28),
  22735. 447: uint8(28),
  22736. 448: uint8(29),
  22737. 449: uint8(29),
  22738. 450: uint8(29),
  22739. 451: uint8(29),
  22740. 452: uint8(29),
  22741. 453: uint8(29),
  22742. 454: uint8(29),
  22743. 455: uint8(29),
  22744. 456: uint8(29),
  22745. 457: uint8(29),
  22746. 458: uint8(29),
  22747. 459: uint8(29),
  22748. 460: uint8(29),
  22749. 461: uint8(29),
  22750. 462: uint8(29),
  22751. 463: uint8(29),
  22752. 464: uint8(29),
  22753. 465: uint8(29),
  22754. 466: uint8(29),
  22755. 467: uint8(29),
  22756. 468: uint8(29),
  22757. 469: uint8(29),
  22758. 470: uint8(29),
  22759. 471: uint8(29),
  22760. 472: uint8(29),
  22761. 473: uint8(29),
  22762. 474: uint8(29),
  22763. 475: uint8(29),
  22764. 476: uint8(29),
  22765. 477: uint8(29),
  22766. 478: uint8(29),
  22767. 479: uint8(29),
  22768. 480: uint8(29),
  22769. 481: uint8(29),
  22770. 482: uint8(29),
  22771. 483: uint8(29),
  22772. 484: uint8(29),
  22773. 485: uint8(29),
  22774. 486: uint8(29),
  22775. 487: uint8(29),
  22776. 488: uint8(29),
  22777. 489: uint8(29),
  22778. 490: uint8(29),
  22779. 491: uint8(29),
  22780. 492: uint8(29),
  22781. 493: uint8(29),
  22782. 494: uint8(29),
  22783. 495: uint8(29),
  22784. 496: uint8(29),
  22785. 497: uint8(29),
  22786. 498: uint8(29),
  22787. 499: uint8(29),
  22788. 500: uint8(29),
  22789. 501: uint8(29),
  22790. 502: uint8(29),
  22791. 503: uint8(29),
  22792. 504: uint8(29),
  22793. 505: uint8(29),
  22794. 506: uint8(29),
  22795. 507: uint8(29),
  22796. 508: uint8(29),
  22797. 509: uint8(29),
  22798. 510: uint8(29),
  22799. 511: uint8(29),
  22800. }
  22801. var x__length_code = [256]Tuch{
  22802. 1: uint8(1),
  22803. 2: uint8(2),
  22804. 3: uint8(3),
  22805. 4: uint8(4),
  22806. 5: uint8(5),
  22807. 6: uint8(6),
  22808. 7: uint8(7),
  22809. 8: uint8(8),
  22810. 9: uint8(8),
  22811. 10: uint8(9),
  22812. 11: uint8(9),
  22813. 12: uint8(10),
  22814. 13: uint8(10),
  22815. 14: uint8(11),
  22816. 15: uint8(11),
  22817. 16: uint8(12),
  22818. 17: uint8(12),
  22819. 18: uint8(12),
  22820. 19: uint8(12),
  22821. 20: uint8(13),
  22822. 21: uint8(13),
  22823. 22: uint8(13),
  22824. 23: uint8(13),
  22825. 24: uint8(14),
  22826. 25: uint8(14),
  22827. 26: uint8(14),
  22828. 27: uint8(14),
  22829. 28: uint8(15),
  22830. 29: uint8(15),
  22831. 30: uint8(15),
  22832. 31: uint8(15),
  22833. 32: uint8(16),
  22834. 33: uint8(16),
  22835. 34: uint8(16),
  22836. 35: uint8(16),
  22837. 36: uint8(16),
  22838. 37: uint8(16),
  22839. 38: uint8(16),
  22840. 39: uint8(16),
  22841. 40: uint8(17),
  22842. 41: uint8(17),
  22843. 42: uint8(17),
  22844. 43: uint8(17),
  22845. 44: uint8(17),
  22846. 45: uint8(17),
  22847. 46: uint8(17),
  22848. 47: uint8(17),
  22849. 48: uint8(18),
  22850. 49: uint8(18),
  22851. 50: uint8(18),
  22852. 51: uint8(18),
  22853. 52: uint8(18),
  22854. 53: uint8(18),
  22855. 54: uint8(18),
  22856. 55: uint8(18),
  22857. 56: uint8(19),
  22858. 57: uint8(19),
  22859. 58: uint8(19),
  22860. 59: uint8(19),
  22861. 60: uint8(19),
  22862. 61: uint8(19),
  22863. 62: uint8(19),
  22864. 63: uint8(19),
  22865. 64: uint8(20),
  22866. 65: uint8(20),
  22867. 66: uint8(20),
  22868. 67: uint8(20),
  22869. 68: uint8(20),
  22870. 69: uint8(20),
  22871. 70: uint8(20),
  22872. 71: uint8(20),
  22873. 72: uint8(20),
  22874. 73: uint8(20),
  22875. 74: uint8(20),
  22876. 75: uint8(20),
  22877. 76: uint8(20),
  22878. 77: uint8(20),
  22879. 78: uint8(20),
  22880. 79: uint8(20),
  22881. 80: uint8(21),
  22882. 81: uint8(21),
  22883. 82: uint8(21),
  22884. 83: uint8(21),
  22885. 84: uint8(21),
  22886. 85: uint8(21),
  22887. 86: uint8(21),
  22888. 87: uint8(21),
  22889. 88: uint8(21),
  22890. 89: uint8(21),
  22891. 90: uint8(21),
  22892. 91: uint8(21),
  22893. 92: uint8(21),
  22894. 93: uint8(21),
  22895. 94: uint8(21),
  22896. 95: uint8(21),
  22897. 96: uint8(22),
  22898. 97: uint8(22),
  22899. 98: uint8(22),
  22900. 99: uint8(22),
  22901. 100: uint8(22),
  22902. 101: uint8(22),
  22903. 102: uint8(22),
  22904. 103: uint8(22),
  22905. 104: uint8(22),
  22906. 105: uint8(22),
  22907. 106: uint8(22),
  22908. 107: uint8(22),
  22909. 108: uint8(22),
  22910. 109: uint8(22),
  22911. 110: uint8(22),
  22912. 111: uint8(22),
  22913. 112: uint8(23),
  22914. 113: uint8(23),
  22915. 114: uint8(23),
  22916. 115: uint8(23),
  22917. 116: uint8(23),
  22918. 117: uint8(23),
  22919. 118: uint8(23),
  22920. 119: uint8(23),
  22921. 120: uint8(23),
  22922. 121: uint8(23),
  22923. 122: uint8(23),
  22924. 123: uint8(23),
  22925. 124: uint8(23),
  22926. 125: uint8(23),
  22927. 126: uint8(23),
  22928. 127: uint8(23),
  22929. 128: uint8(24),
  22930. 129: uint8(24),
  22931. 130: uint8(24),
  22932. 131: uint8(24),
  22933. 132: uint8(24),
  22934. 133: uint8(24),
  22935. 134: uint8(24),
  22936. 135: uint8(24),
  22937. 136: uint8(24),
  22938. 137: uint8(24),
  22939. 138: uint8(24),
  22940. 139: uint8(24),
  22941. 140: uint8(24),
  22942. 141: uint8(24),
  22943. 142: uint8(24),
  22944. 143: uint8(24),
  22945. 144: uint8(24),
  22946. 145: uint8(24),
  22947. 146: uint8(24),
  22948. 147: uint8(24),
  22949. 148: uint8(24),
  22950. 149: uint8(24),
  22951. 150: uint8(24),
  22952. 151: uint8(24),
  22953. 152: uint8(24),
  22954. 153: uint8(24),
  22955. 154: uint8(24),
  22956. 155: uint8(24),
  22957. 156: uint8(24),
  22958. 157: uint8(24),
  22959. 158: uint8(24),
  22960. 159: uint8(24),
  22961. 160: uint8(25),
  22962. 161: uint8(25),
  22963. 162: uint8(25),
  22964. 163: uint8(25),
  22965. 164: uint8(25),
  22966. 165: uint8(25),
  22967. 166: uint8(25),
  22968. 167: uint8(25),
  22969. 168: uint8(25),
  22970. 169: uint8(25),
  22971. 170: uint8(25),
  22972. 171: uint8(25),
  22973. 172: uint8(25),
  22974. 173: uint8(25),
  22975. 174: uint8(25),
  22976. 175: uint8(25),
  22977. 176: uint8(25),
  22978. 177: uint8(25),
  22979. 178: uint8(25),
  22980. 179: uint8(25),
  22981. 180: uint8(25),
  22982. 181: uint8(25),
  22983. 182: uint8(25),
  22984. 183: uint8(25),
  22985. 184: uint8(25),
  22986. 185: uint8(25),
  22987. 186: uint8(25),
  22988. 187: uint8(25),
  22989. 188: uint8(25),
  22990. 189: uint8(25),
  22991. 190: uint8(25),
  22992. 191: uint8(25),
  22993. 192: uint8(26),
  22994. 193: uint8(26),
  22995. 194: uint8(26),
  22996. 195: uint8(26),
  22997. 196: uint8(26),
  22998. 197: uint8(26),
  22999. 198: uint8(26),
  23000. 199: uint8(26),
  23001. 200: uint8(26),
  23002. 201: uint8(26),
  23003. 202: uint8(26),
  23004. 203: uint8(26),
  23005. 204: uint8(26),
  23006. 205: uint8(26),
  23007. 206: uint8(26),
  23008. 207: uint8(26),
  23009. 208: uint8(26),
  23010. 209: uint8(26),
  23011. 210: uint8(26),
  23012. 211: uint8(26),
  23013. 212: uint8(26),
  23014. 213: uint8(26),
  23015. 214: uint8(26),
  23016. 215: uint8(26),
  23017. 216: uint8(26),
  23018. 217: uint8(26),
  23019. 218: uint8(26),
  23020. 219: uint8(26),
  23021. 220: uint8(26),
  23022. 221: uint8(26),
  23023. 222: uint8(26),
  23024. 223: uint8(26),
  23025. 224: uint8(27),
  23026. 225: uint8(27),
  23027. 226: uint8(27),
  23028. 227: uint8(27),
  23029. 228: uint8(27),
  23030. 229: uint8(27),
  23031. 230: uint8(27),
  23032. 231: uint8(27),
  23033. 232: uint8(27),
  23034. 233: uint8(27),
  23035. 234: uint8(27),
  23036. 235: uint8(27),
  23037. 236: uint8(27),
  23038. 237: uint8(27),
  23039. 238: uint8(27),
  23040. 239: uint8(27),
  23041. 240: uint8(27),
  23042. 241: uint8(27),
  23043. 242: uint8(27),
  23044. 243: uint8(27),
  23045. 244: uint8(27),
  23046. 245: uint8(27),
  23047. 246: uint8(27),
  23048. 247: uint8(27),
  23049. 248: uint8(27),
  23050. 249: uint8(27),
  23051. 250: uint8(27),
  23052. 251: uint8(27),
  23053. 252: uint8(27),
  23054. 253: uint8(27),
  23055. 254: uint8(27),
  23056. 255: uint8(28),
  23057. }
  23058. 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', ' '}
  23059. 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', ' '}
  23060. var Xz_errmsg = [10]uintptr{
  23061. 0: __ccgo_ts + 467,
  23062. 1: __ccgo_ts + 483,
  23063. 2: __ccgo_ts + 494,
  23064. 3: __ccgo_ts + 495,
  23065. 4: __ccgo_ts + 506,
  23066. 5: __ccgo_ts + 519,
  23067. 6: __ccgo_ts + 530,
  23068. 7: __ccgo_ts + 550,
  23069. 8: __ccgo_ts + 563,
  23070. 9: __ccgo_ts + 494,
  23071. }
  23072. var __ccgo_ts = (*reflect.StringHeader)(unsafe.Pointer(&__ccgo_ts1)).Data
  23073. 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"