interplane.Get Omega
Read in your language

yang

This project has not described itself yet.

Brought by drakestapleton

branch main Branches Tags History

yang / src / ufbi_check3_kernels.om

665 lines · 15526 bytes Raw Blame History
1note SPDX-License-Identifier: Apache-2.0
2note src/ufbi_check3_kernels.om: Pure Seeded-OM-2 SM121 Direct SASS Emitter for Check #3
3note (4D SU(2) Quaternion Lattice Monte Carlo: 6-Staple Sum, Exact 4-FMA Overrelaxation,
4note and Exact Trigonometric-Free Kennedy-Pendleton Heatbath on GB10).
5note Composed after om/encoder/bw_enc_sm121.om.
6note Honors all SM121 silicon laws (Antibodies #13-#15: 6-cycle ALU floor, disjoint
7note LDG/STG address registers before uW0/uW1, 4-aligned LDG.E.128, zero B0 nesting).
8
9const UZ ulong 255
10global uPc ulong 1
11global uGuard ulong 1
12global uCodeBuf ulong 16384
13
14fn ucw st ulong wb ulong rbar ulong wt ulong yld ulong to ulong
15a = or shl st 9 shl yld 13
16b = or shl wb 14 shl rbar 17
17ret or or a b shl wt 20
18end
19
20fn uAlu4 to ulong
21ret ucw 6 7 7 0 0
22end
23fn uCmp to ulong
24ret ucw 14 7 7 0 0
25end
26fn uLd to ulong
27ret ucw 2 0 1 0 1
28end
29fn uSt to ulong
30ret ucw 4 7 1 0 1
31end
32fn uW0 to ulong
33ret ucw 6 7 7 1 0
34end
35fn uW1 to ulong
36ret ucw 6 7 7 2 0
37end
38fn uWall to ulong
39ret ucw 6 7 7 7 0
40end
41fn uMufu to ulong
42ret ucw 4 0 7 0 1
43end
44fn uSafe to ulong
45ret ucw 6 7 7 7 0
46end
47
48fn uEmitRaw o edit ulong 16 atPc ulong to void
49w = new ulong 4 0
50if ne get uGuard 0 0
51put o 9 1
52end
53if eq get uGuard 0 2
54put o 10 1
55end
56put uGuard 0 0
57if ne get o 2 UZ
58put o 12 1
59end
60if ne get o 3 UZ
61put o 13 1
62end
63if ne enc1 o w 0
64exit 3
65end
66base = mul atPc 4
67for i ulong 4
68put uCodeBuf add base i get w i
69end
70end
71
72fn uic op ulong dst ulong a ulong b ulong imm ulong ctrl ulong to void
73o = new ulong 16 0
74put o 0 op
75put o 1 dst
76put o 2 a
77put o 3 b
78put o 4 UZ
79put o 5 4
80put o 6 and imm 0xffffffff
81put o 7 ctrl
82pc = get uPc 0
83uEmitRaw o pc
84put uPc 0 add pc 1
85end
86
87fn uic4 op ulong dst ulong a ulong b ulong c ulong ctrl ulong to void
88o = new ulong 16 0
89put o 0 op
90put o 1 dst
91put o 2 a
92put o 3 b
93put o 4 c
94put o 5 4
95put o 6 0
96put o 7 ctrl
97pc = get uPc 0
98uEmitRaw o pc
99put uPc 0 add pc 1
100end
101
102fn uicImm op ulong dst ulong a ulong c ulong imm ulong ctrl ulong to void
103o = new ulong 16 0
104put o 0 op
105put o 1 dst
106put o 2 a
107put o 3 UZ
108put o 4 c
109put o 5 4
110put o 6 and imm 0xffffffff
111put o 7 ctrl
112pc = get uPc 0
113uEmitRaw o pc
114put uPc 0 add pc 1
115end
116
117fn uBraFwd gd ulong to ulong
118pos = get uPc 0
119put uGuard 0 gd
120uic 46 UZ UZ UZ 0 uAlu4
121ret pos
122end
123
124fn uBraBack targetPc ulong gd ulong to void
125pos = get uPc 0
126put uGuard 0 gd
127delta = and sub targetPc pos 0xffffffff
128uic 46 UZ UZ UZ delta uAlu4
129end
130
131fn uPatch pos ulong gd ulong to void
132o = new ulong 16 0
133put o 0 46
134put o 1 UZ
135put o 2 UZ
136put o 3 UZ
137put o 4 UZ
138put o 5 4
139put o 6 and sub get uPc 0 pos 0xffffffff
140put o 7 uAlu4
141put uGuard 0 gd
142uEmitRaw o pos
143end
144
145fn uLit d ulong x ulong to void
146uic 2 d UZ UZ x uAlu4
147end
148
149fn uNum d ulong x f32 to void
150uLit d ulong bitcast uint x
151end
152
153fn uParam d ulong off ulong to void
154uic 4 d UZ UZ add 896 off ucw 4 0 7 0 1
155uic 0 UZ UZ UZ 0 uW0
156end
157
158fn uStart ptrs ulong to void
159uic 7 4 UZ UZ 856 ucw 4 2 7 0 1
160for i ulong ptrs bound 8
161uic 5 mul i 2 UZ UZ add 896 mul i 8 ucw 4 0 7 0 1
162end
163uic 3 14 UZ UZ 33 ucw 4 0 7 0 1
164uic 3 15 UZ UZ 37 ucw 4 0 7 0 1
165uic 0 UZ UZ UZ 0 uWall
166end
167
168fn uDone to void
169uic 0 UZ UZ UZ 0 uWall
170uic 45 UZ UZ UZ 0 uSafe
171while or lt get uPc 0 32 ne rem get uPc 0 8 0 bound 4096
172uic 0 UZ UZ UZ 0 uSafe
173end
174w = new ulong 4 0
175n = get uPc 0
176for pc ulong n bound 4096
177base = mul pc 4
178for i ulong 4
179put w i get uCodeBuf add base i
180end
181uCodeWrite w
182end
183end
184
185note =========================================================================
186note SM121 Quaternion Macro Helpers
187note All quaternions are 4 consecutive GPRs: q0, q1, q2, q3
188note =========================================================================
189
190note Emit Hamilton product dst[0..3] = a[0..3] * b[0..3] using tmp reg t
191note Requires dst disjoint from a, b, and t.
192fn uEmitQMul dst ulong a ulong b ulong t ulong to void
193note dst0 = a0*b0 - a1*b1 - a2*b2 - a3*b3
194uic 32 dst a b 0 uAlu4
195uic 32 t add a 1 add b 1 0 uAlu4
196uic 31 dst dst t 0 uAlu4
197uic 32 t add a 2 add b 2 0 uAlu4
198uic 31 dst dst t 0 uAlu4
199uic 32 t add a 3 add b 3 0 uAlu4
200uic 31 dst dst t 0 uAlu4
201note dst1 = a0*b1 + a1*b0 + a2*b3 - a3*b2
202uic 32 add dst 1 a add b 1 0 uAlu4
203uic4 33 add dst 1 add a 1 b add dst 1 uAlu4
204uic4 33 add dst 1 add a 2 add b 3 add dst 1 uAlu4
205uic 32 t add a 3 add b 2 0 uAlu4
206uic 31 add dst 1 add dst 1 t 0 uAlu4
207note dst2 = a0*b2 - a1*b3 + a2*b0 + a3*b1
208uic 32 add dst 2 a add b 2 0 uAlu4
209uic 32 t add a 1 add b 3 0 uAlu4
210uic 31 add dst 2 add dst 2 t 0 uAlu4
211uic4 33 add dst 2 add a 2 b add dst 2 uAlu4
212uic4 33 add dst 2 add a 3 add b 1 add dst 2 uAlu4
213note dst3 = a0*b3 + a1*b2 - a2*b1 + a3*b0
214uic 32 add dst 3 a add b 3 0 uAlu4
215uic4 33 add dst 3 add a 1 add b 2 add dst 3 uAlu4
216uic 32 t add a 2 add b 1 0 uAlu4
217uic 31 add dst 3 add dst 3 t 0 uAlu4
218uic4 33 add dst 3 add a 3 b add dst 3 uAlu4
219end
220
221note Emit quaternion conjugate in-place: q1 = -q1, q2 = -q2, q3 = -q3 (using zero reg zReg)
222fn uEmitQConj q ulong zReg ulong to void
223uic 31 add q 1 zReg add q 1 0 uAlu4
224uic 31 add q 2 zReg add q 2 0 uAlu4
225uic 31 add q 3 zReg add q 3 0 uAlu4
226end
227
228note Load link quaternion (siteReg, dirReg) from links ptr (R0:R1) into 4-aligned dst (LDG.E.128)
229note Clobbers tmpIdx and addrPair (even register)
230fn uEmitLoadLink dst ulong siteReg ulong dirReg ulong tmpIdx ulong addrPair ulong to void
231uicImm 8 tmpIdx siteReg dirReg 4 uAlu4
232uicImm 9 addrPair tmpIdx 0 16 uAlu4
233uic 57 dst addrPair UZ 0 uLd
234end
235
236note Load nb_site[siteReg * 8 + dirOffReg] from nb_site ptr (R6:R7) into dstSite
237fn uEmitLoadNb dstSite ulong siteReg ulong dirOffReg ulong tmpIdx ulong addrPair ulong to void
238uicImm 8 tmpIdx siteReg dirOffReg 8 uAlu4
239uicImm 9 addrPair tmpIdx 6 4 uAlu4
240uic 11 dstSite addrPair UZ 0 uLd
241end
242
243note =========================================================================
244note Kernel 0: k_su2_staple (Compute 6-staple conjugate sum A_mu(x) on checkerboard)
245note Args:
246note ptr0 (R0:R1) = links (f32[N * 16])
247note ptr1 (R2:R3) = staples (f32[N * 16])
248note ptr2 (R4:R5) = flags (u32[N * 4]: 0=even, 1=odd, 2=frozen)
249note ptr3 (R6:R7) = nb_site (u32[N * 8]: 0=+0,1=-0,2=+1,3=-1,4=+2,5=-2,6=+3,7=-3)
250note off 32 = N
251note off 36 = mu
252note off 40 = parity (0 or 1)
253note off 44 = nu0
254note off 48 = nu1
255note off 52 = nu2
256note =========================================================================
257fn uEmitStapleOneDir nuReg ulong to void
258note Uses: R16=s, R17=mu, R18=xp (s+mu), R19=zero_f32
259note R24..27=t1, R28..31=t2, R32..35=t3, R36..39=p1, R40..43=acc, R44..47=p2
260note R48..57=scratch indices/addrs, R58=one_u32, R59=mul_tmp
261note Forward staple: U_nu(s) * U_mu(s+nu) * U_nu^dag(s+mu)
262note plus_off = nu * 2 (R48), minus_off = nu * 2 + 1 (R49)
263uicImm 8 48 nuReg UZ 2 uAlu4
264uic 14 49 48 58 0 uAlu4
265note Load xn = nb[s, +nu] into R50
266uEmitLoadNb 50 16 48 52 54
267uic 0 UZ UZ UZ 0 uW0
268note Batch load t1=U(s,nu), t2=U(xn,mu), t3=U(xp,nu)
269uEmitLoadLink 24 16 nuReg 52 54
270uic 0 UZ UZ UZ 0 uW1
271uEmitLoadLink 28 50 17 52 54
272uic 0 UZ UZ UZ 0 uW1
273uEmitLoadLink 32 18 nuReg 52 54
274uic 0 UZ UZ UZ 0 uW0
275uEmitQConj 32 19
276uEmitQMul 36 24 28 59
277uEmitQMul 44 36 32 59
278for c ulong 4
279uic 30 add 40 c add 40 c add 44 c 0 uAlu4
280end
281
282note Backward staple: U_nu^dag(s-nu) * U_mu(s-nu) * U_nu(s+mu-nu)
283note Load xm = nb[s, -nu] (R50) and xpm = nb[xp, -nu] (R51)
284uEmitLoadNb 50 16 49 52 54
285uic 0 UZ UZ UZ 0 uW1
286uEmitLoadNb 51 18 49 52 56
287uic 0 UZ UZ UZ 0 uW0
288uEmitLoadLink 24 50 nuReg 52 54
289uic 0 UZ UZ UZ 0 uW1
290uEmitLoadLink 28 50 17 52 54
291uic 0 UZ UZ UZ 0 uW1
292uEmitLoadLink 32 51 nuReg 52 54
293uic 0 UZ UZ UZ 0 uW0
294uEmitQConj 24 19
295uEmitQMul 36 24 28 59
296uEmitQMul 44 36 32 59
297for c ulong 4
298uic 30 add 40 c add 40 c add 44 c 0 uAlu4
299end
300end
301
302fn uEmitSu2Staple to bool
303uStart 4
304uParam 20 32
305uParam 17 36
306uParam 21 40
307uParam 22 44
308uParam 23 48
309uParam 60 52
310note s (R16) = CTAID.X * 256 + TID.X
311uicImm 8 16 15 14 256 uAlu4
312uic 28 UZ 16 20 0 uCmp
313bOob = uBraFwd 1
314
315note Check flags[s * 4 + mu] == parity
316uicImm 8 52 16 17 4 uAlu4
317uicImm 9 54 52 4 4 uAlu4
318uic 11 53 54 UZ 0 uLd
319uic 0 UZ UZ UZ 0 uW0
320note XOR flags with parity: 0 iff equal; if >= 1 then skip!
321uic 29 53 53 21 0 uAlu4
322uLit 58 1
323uic 28 UZ 53 58 0 uCmp
324bSkip = uBraFwd 1
325
326note Load xp = nb[s, +mu] into R18
327uicImm 8 48 17 UZ 2 uAlu4
328uEmitLoadNb 18 16 48 52 54
329uic 0 UZ UZ UZ 0 uW0
330
331note Zero accumulator acc (R40..43) and zero_f32 (R19)
332uic 1 19 UZ UZ 0 uAlu4
333uic 1 40 UZ UZ 0 uAlu4
334uic 1 41 UZ UZ 0 uAlu4
335uic 1 42 UZ UZ 0 uAlu4
336uic 1 43 UZ UZ 0 uAlu4
337
338note Sum all 3 orthogonal staple pairs (nu0=R22, nu1=R23, nu2=R60)
339uEmitStapleOneDir 22
340uEmitStapleOneDir 23
341uEmitStapleOneDir 60
342
343note Store acc[0..3] to staples[s * 4 + mu] (ptr1 = R2:R3)
344uicImm 8 52 16 17 4 uAlu4
345uicImm 9 54 52 2 16 uAlu4
346uic 12 UZ 54 40 0 uSt
347uic 12 UZ 54 41 4 uSt
348uic 12 UZ 54 42 8 uSt
349uic 12 UZ 54 43 12 uSt
350uic 0 UZ UZ UZ 0 uW1
351
352uPatch bSkip 1
353uPatch bOob 1
354ret true
355end
356
357note =========================================================================
358note Kernel 1: k_su2_overrelax (Exact 4-FMA Microcanonical Reflection U' = 2(U.V)V - U)
359note Args:
360note ptr0 (R0:R1) = links
361note ptr1 (R2:R3) = staples
362note ptr2 (R4:R5) = flags
363note off 24 = N, off 28 = mu, off 32 = parity
364note =========================================================================
365fn uEmitSu2Overrelax to bool
366uStart 3
367uParam 20 24
368uParam 17 28
369uParam 21 32
370uicImm 8 16 15 14 256 uAlu4
371uic 28 UZ 16 20 0 uCmp
372bOob = uBraFwd 1
373
374uicImm 8 52 16 17 4 uAlu4
375uicImm 9 54 52 4 4 uAlu4
376uic 11 53 54 UZ 0 uLd
377uic 0 UZ UZ UZ 0 uW0
378uic 29 53 53 21 0 uAlu4
379uLit 58 1
380uic 28 UZ 53 58 0 uCmp
381bSkip = uBraFwd 1
382
383note Load U (R24..27) and A (R28..31)
384uicImm 9 54 52 0 16 uAlu4
385uicImm 9 56 52 2 16 uAlu4
386uic 57 24 54 UZ 0 uLd
387uic 57 28 56 UZ 0 uLd
388uic 0 UZ UZ UZ 0 uW0
389
390note k2 = A.A (R32)
391uic 32 32 28 28 0 uAlu4
392uic4 33 32 29 29 32 uAlu4
393uic4 33 32 30 30 32 uAlu4
394uic4 33 32 31 31 32 uAlu4
395uNum 33 0.0000000001f32
396uic 34 0 33 32 0 uCmp
397bTiny = uBraFwd 1
398
399note invK = rsqrt(k2), V = A * invK (in-place R28..31)
400uic 41 34 32 UZ 0 uMufu
401uic 0 UZ UZ UZ 0 uW0
402for c ulong 4
403uic 32 add 28 c add 28 c 34 0 uAlu4
404end
405
406note dot = U.V (R35), d2 = 2.0 * dot (R35)
407uic 32 35 24 28 0 uAlu4
408uic4 33 35 25 29 35 uAlu4
409uic4 33 35 26 30 35 uAlu4
410uic4 33 35 27 31 35 uAlu4
411uic 30 35 35 35 0 uAlu4
412
413note U' = d2 * V - U (R36..39)
414for c ulong 4
415uic 32 add 36 c 35 add 28 c 0 uAlu4
416uic 31 add 36 c add 36 c add 24 c 0 uAlu4
417end
418
419note Renormalize U' once for f32 stability
420uic 32 32 36 36 0 uAlu4
421uic4 33 32 37 37 32 uAlu4
422uic4 33 32 38 38 32 uAlu4
423uic4 33 32 39 39 32 uAlu4
424uic 41 34 32 UZ 0 uMufu
425uic 0 UZ UZ UZ 0 uW0
426for c ulong 4
427uic 32 add 36 c add 36 c 34 0 uAlu4
428end
429
430note Store U' back to links[s*4+mu]
431uic 12 UZ 54 36 0 uSt
432uic 12 UZ 54 37 4 uSt
433uic 12 UZ 54 38 8 uSt
434uic 12 UZ 54 39 12 uSt
435uic 0 UZ UZ UZ 0 uW1
436
437uPatch bTiny 1
438uPatch bSkip 1
439uPatch bOob 1
440ret true
441end
442
443note =========================================================================
444note Kernel 2: k_su2_heatbath (Exact Trigonometric-Free Kennedy-Pendleton Heatbath)
445note Args:
446note ptr0 (R0:R1) = links
447note ptr1 (R2:R3) = staples
448note ptr2 (R4:R5) = flags
449note ptr3 (R6:R7) = rng (u32[N])
450note off 32 = N, off 36 = mu, off 40 = parity, off 44 = beta_f32_bits
451note =========================================================================
452note Advance xorshift32 state in rSt, produce u in (0, 1) in rOut (clobbers rTmp, rSh)
453fn uEmitRand01 rSt ulong rOut ulong rTmp ulong rSh ulong rScale ulong rEps ulong to void
454uLit rSh 13
455uic 52 rTmp rSt rSh 0 uAlu4
456uic 29 rSt rSt rTmp 0 uAlu4
457uic 17 rTmp rSt UZ 17 uAlu4
458uic 29 rSt rSt rTmp 0 uAlu4
459uLit rSh 5
460uic 52 rTmp rSt rSh 0 uAlu4
461uic 29 rSt rSt rTmp 0 uAlu4
462note Convert top 24 bits (non-negative s32) to f32 in [eps, 1.0)
463uic 17 rTmp rSt UZ 8 uAlu4
464uic 38 rOut rTmp UZ 0 uAlu4
465uic4 33 rOut rOut rScale rEps uAlu4
466end
467
468note The plaquette measurement retries rejected proposals until accepted.
469note Older calibration binaries retain their original bounded sampler by default.
470global uStrictRejection uint 1
471
472fn uEmitHbDisk to void
473uLit 48 0
474uLit 49 16
475uNum 37 0.5f32
476lblDisk = get uPc 0
477uEmitRand01 18 38 50 51 19 23
478uEmitRand01 18 39 50 51 19 23
479uic4 33 38 45 38 44 uAlu4
480uic 31 38 38 45 0 uAlu4
481uic4 33 39 45 39 44 uAlu4
482uic 31 39 39 45 0 uAlu4
483uic 32 38 38 38 0 uAlu4
484uic4 33 39 39 39 38 uAlu4
485uic 34 0 39 44 0 uCmp
486bR1 = uBraFwd 1
487uic 34 0 23 39 0 uCmp
488bR2 = uBraFwd 1
489uic 40 39 39 UZ 0 uMufu
490uic 0 UZ UZ UZ 0 uW0
491uic 32 37 38 39 0 uAlu4
492bDone = uBraFwd 0
493uPatch bR1 1
494uPatch bR2 1
495uic 14 48 48 58 0 uAlu4
496uic 28 UZ 48 49 0 uCmp
497if ne get uStrictRejection 0 0
498uBraBack lblDisk 0
499else
500uBraBack lblDisk 2
501end
502uPatch bDone 0
503end
504
505fn uEmitHbKpLoop to void
506uLit 47 0
507uLit 59 48
508uNum 36 0.0f32
509lblKp = get uPc 0
510uEmitHbDisk
511uEmitRand01 18 38 50 51 19 23
512uEmitRand01 18 39 50 51 19 23
513uEmitRand01 18 40 50 51 19 23
514uic 59 38 38 UZ 0 uMufu
515uic 0 UZ UZ UZ 0 uW0
516uic 59 39 39 UZ 0 uMufu
517uic 0 UZ UZ UZ 0 uW0
518uic4 33 38 37 39 38 uAlu4
519uic 32 36 46 38 0 uAlu4
520uic 31 38 44 36 0 uAlu4
521uic 32 40 40 40 0 uAlu4
522uic 34 0 38 40 0 uCmp
523bKpOk = uBraFwd 1
524uic 14 47 47 58 0 uAlu4
525uic 28 UZ 47 59 0 uCmp
526if ne get uStrictRejection 0 0
527uBraBack lblKp 0
528else
529uBraBack lblKp 2
530end
531uNum 36 0.0f32
532uPatch bKpOk 1
533end
534
535fn uEmitHbSphere to void
536uLit 47 0
537uLit 59 32
538uNum 25 1.0f32
539uNum 26 0.0f32
540uNum 27 0.0f32
541lblSph = get uPc 0
542uEmitRand01 18 38 50 51 19 23
543uEmitRand01 18 39 50 51 19 23
544uEmitRand01 18 40 50 51 19 23
545uic4 33 38 45 38 44 uAlu4
546uic 31 38 38 45 0 uAlu4
547uic4 33 39 45 39 44 uAlu4
548uic 31 39 39 45 0 uAlu4
549uic4 33 40 45 40 44 uAlu4
550uic 31 40 40 45 0 uAlu4
551uic 32 41 38 38 0 uAlu4
552uic4 33 41 39 39 41 uAlu4
553uic4 33 41 40 40 41 uAlu4
554uic 34 0 41 44 0 uCmp
555bR1 = uBraFwd 1
556uic 34 0 23 41 0 uCmp
557bR2 = uBraFwd 1
558uic 41 42 41 UZ 0 uMufu
559uic 0 UZ UZ UZ 0 uW0
560uic 32 42 42 37 0 uAlu4
561uic 32 25 38 42 0 uAlu4
562uic 32 26 39 42 0 uAlu4
563uic 32 27 40 42 0 uAlu4
564bDone = uBraFwd 0
565uPatch bR1 1
566uPatch bR2 1
567uic 14 47 47 58 0 uAlu4
568uic 28 UZ 47 59 0 uCmp
569if ne get uStrictRejection 0 0
570uBraBack lblSph 0
571else
572uBraBack lblSph 2
573end
574uPatch bDone 0
575end
576
577fn uEmitSu2Heatbath to bool
578uStart 4
579uParam 20 32
580uParam 17 36
581uParam 21 40
582uParam 22 44
583uicImm 8 16 15 14 256 uAlu4
584uic 28 UZ 16 20 0 uCmp
585bOob = uBraFwd 1
586
587uicImm 8 52 16 17 4 uAlu4
588uicImm 9 54 52 4 4 uAlu4
589uic 11 53 54 UZ 0 uLd
590uic 0 UZ UZ UZ 0 uW0
591uic 29 53 53 21 0 uAlu4
592uLit 58 1
593uic 28 UZ 53 58 0 uCmp
594bSkip = uBraFwd 1
595
596uicImm 9 56 52 2 16 uAlu4
597uicImm 9 54 16 6 4 uAlu4
598uic 57 28 56 UZ 0 uLd
599uic 11 18 54 UZ 0 uLd
600uic 0 UZ UZ UZ 0 uW0
601
602uic 32 32 28 28 0 uAlu4
603uic4 33 32 29 29 32 uAlu4
604uic4 33 32 30 30 32 uAlu4
605uic4 33 32 31 31 32 uAlu4
606uNum 35 0.0000000001f32
607uic 34 0 35 32 0 uCmp
608bTiny = uBraFwd 1
609
610uic 41 33 32 UZ 0 uMufu
611uic 0 UZ UZ UZ 0 uW0
612uic 32 34 32 33 0 uAlu4
613for c ulong 4
614uic 32 add 28 c add 28 c 33 0 uAlu4
615end
616
617uNum 19 0.000000059604645f32
618uNum 23 0.0000001f32
619uNum 44 1.0f32
620uNum 45 2.0f32
621uic 32 35 22 34 0 uAlu4
622uic 30 35 35 35 0 uAlu4
623uic 40 35 35 UZ 0 uMufu
624uic 0 UZ UZ UZ 0 uW0
625uNum 46 neg 0.69314718f32
626uic 32 46 46 35 0 uAlu4
627
628uEmitHbKpLoop
629
630uic 30 36 36 36 0 uAlu4
631uic 31 24 44 36 0 uAlu4
632uic 32 37 24 24 0 uAlu4
633uic 31 37 44 37 0 uAlu4
634uNum 38 0.00000001f32
635uic 37 37 37 38 0 uAlu4
636uic 41 38 37 UZ 0 uMufu
637uic 0 UZ UZ UZ 0 uW0
638uic 32 37 37 38 0 uAlu4
639
640uEmitHbSphere
641
642uEmitQMul 36 24 28 50
643uic 32 32 36 36 0 uAlu4
644uic4 33 32 37 37 32 uAlu4
645uic4 33 32 38 38 32 uAlu4
646uic4 33 32 39 39 32 uAlu4
647uic 41 33 32 UZ 0 uMufu
648uic 0 UZ UZ UZ 0 uW0
649for c ulong 4
650uic 32 add 36 c add 36 c 33 0 uAlu4
651end
652
653uicImm 9 56 52 0 16 uAlu4
654uic 12 UZ 56 36 0 uSt
655uic 12 UZ 56 37 4 uSt
656uic 12 UZ 56 38 8 uSt
657uic 12 UZ 56 39 12 uSt
658uic 12 UZ 54 18 0 uSt
659uic 0 UZ UZ UZ 0 uW1
660
661uPatch bTiny 1
662uPatch bSkip 1
663uPatch bOob 1
664ret true
665end