objdump -d MasterPiDfsEngine (ARM64 / Cortex-A76) .NET 10 Native AOT Disassembly — Defunctionalized Register Machine & 5-DOF Hardware Tick
← Back to DFS IV Article
1// Disassembly of section .text (objdump -d MasterPiDfsEngine on Raspberry Pi 5 Cortex-A76):
200000000000900c0 <DefunctionalizedDfsInterceptors__TraverseDfs_InlinedMachine>:
3 900c0: stp x29, x30, [sp, #-16]! // Prologue: Stationary 16B leaf frame (Delta SP = 0 forever)
4 900c4: mov x29, sp // Anchor frame pointer x29
5 900c8: mov x4, xzr // regDepth = 0 (continuation counter pinned to hardware register x4)
6 900cc: cmp x0, x1 // Base case guard: if (regNode >= maxDepth)
7 900d0: b.ge 90108 // goto Dispatch_Return (0x90108)
8 900d4: and x5, x3, x0, lsr #6 // Dispatch_Enter: wordIdx = (regNode >> 6) & slabMaskWords
9 900d8: mov x6, #0x1 // Load 1UL
10 900dc: lsl x6, x6, x0 // bitMask = 1UL << (regNode & 63)
11 900e0: ldr x7, [x2, x5, lsl #3] // word = visitedSlab[wordIdx] (1-bit-per-node bitmap load)
12 900e4: tst x7, x6 // Test visited bit: if ((word & bitMask) != 0)
13 900e8: b.ne 90108 // goto Dispatch_Return (already visited)
14 900ec: add x5, x2, x5, lsl #3 // slotPtr = visitedSlab + wordIdx
15 900f0: orr x6, x7, x6 // word |= bitMask (mark node visited)
16 900f4: str x6, [x5] // *slotPtr = word
17 900f8: add x4, x4, #0x1 // regDepth++ (record pending post-order +1 continuation)
18 900fc: add x0, x0, #0x1 // regNode++ (advance recursive argument in register x0)
19 90100: cmp x0, x1 // Pre-order descent check: if (regNode < maxDepth)
20 90104: b.lt 900d4 // goto Dispatch_Enter (0 bl subroutine calls, 0 B stack growth)
21 90108: mov x0, xzr // Dispatch_Return: regReturn = 0 (leaf base return value)
22 9010c: cbz x4, 9011c // if (regDepth == 0) goto Epilogue (0x9011c)
23 90110: sub x4, x4, #0x1 // Unwind loop: regDepth-- (pop pending continuation)
24 90114: add x0, x0, #0x1 // regReturn = subtreeCount + 1 (apply post-order accumulation)
25 90118: cbnz x4, 90110 // if (regDepth != 0) continue unwinding in registers
26 9011c: ldp x29, x30, [sp], #16 // Epilogue: pop stationary 16B leaf frame
27 90120: ret // Return final accumulated subtree count in x0
28 
29// =============================================================================================
30// Full Real-Time Hardware Dispatcher Tick (Lookahead Descent + Unwind + 5-DOF IK + 24B UART):
31// =============================================================================================
320000000000090240 <RecursiveGotoDispatcher__RunRecursiveGotoDispatcherTick>:
33 90240: stp x29, x30, [sp, #-64]! // Single stationary frame + 24B stackalloc UART txFrame
34 90244: mov x29, sp
35 90248: stp x19, x20, [sp, #16] // Save callee-saved registers for startIdx / lookaheadW
36 9024c: add x20, x1, x2 // targetEnd = startIdx + lookaheadW
37 90250: lsr x8, x1, #6 // Cmd_Descend_Lookahead: curr >> 6
38 90254: and x8, x8, x4 // wordIdx = (curr >> 6) & slabMaskWords
39 90258: mov x9, #0x1
40 9025c: lsl x9, x9, x1 // bitMask = 1UL << (curr & 63)
41 90260: ldr x10, [x3, x8, lsl #3] // Load visitedSlab[wordIdx]
42 90264: orr x10, x10, x9 // visitedSlab[wordIdx] |= bitMask
43 90268: str x10, [x3, x8, lsl #3] // Store updated 64-bit bitmap word
44 9026c: cmp x1, x20 // if (curr >= targetEnd) goto Cmd_Unwind_Velocity
45 90270: b.ge 9027c // Transition to State 2 (Unwind)
46 90274: add x1, x1, #0x1 // curr++
47 90278: b 90250 // goto Cmd_Descend_Lookahead
48 9027c: fmov s0, #0.98 // Cmd_Unwind_Velocity: velocityScale = 0.98f
49 90280: bl 90140 // Cmd_Solve_Cylindrical_Ik: inline 5-DOF Law of Cosines
50 90284: bl 78420 <write@plt> // Cmd_Dispatch_Stm32_Uart: write(uartFd, txFrame, 24)