{"type": "func", "start": 4295149284, "end": 4295149484, "name": "GJGroundLayer::updateShadowXPos", "pseudocode": "// \n// GJGroundLayer::updateShadowXPos from 0x10002c6e4 to 0x10002c7ac (200 bytes)\n// \n// 6 xrefs:\n// > GJBaseGameLayer::updateGroundShadows @ 0x1001de9ac\n// > GJBaseGameLayer::updateGroundShadows @ 0x1001de9c4\n// > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd7e4\n// > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd7fc\n// > GJBaseGameLayer::resetLevelVariables @ 0x10020266c\n// > GJBaseGameLayer::resetLevelVariables @ 0x100202684\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GJGroundLayer::updateShadowXPos(GJGroundLayer *a1, float a2, float a3)\n{\n  __int64 v6; // x0\n  __n128 v7; // q0\n  __n128 v8; // q1\n  __int64 v9; // x20\n  __int64 v10; // x0\n  __n128 v11; // q0\n  __n128 v12; // q1\n  __int64 v13; // x19\n  int v14; // [xsp+8h] [xbp-28h] BYREF\n\n  ((void (__fastcall *)(GJGroundLayer *))a1->getScaleX)(a1);\n  v6 = ((__int64 (__fastcall *)(GJGroundLayer *, _QWORD))a1->getChildByTag)(a1, 0);\n  if ( v6 )\n  {\n    v9 = v6;\n    v7.n128_f32[0] = a2 + -1.0;\n    v8.n128_u32[0] = 0;\n    sub_100022980(v7, v8, &v14);\n    (*(void (__fastcall **)(__int64, int *))(*(_QWORD *)v9 + 184LL))(v9, &v14);\n  }\n  v10 = ((__int64 (__fastcall *)(GJGroundLayer *, __int64))a1->getChildByTag)(a1, 1);\n  if ( v10 )\n  {\n    v13 = v10;\n    v11.n128_f32[0] = a3 + 1.0;\n    v12.n128_u32[0] = 0;\n    sub_100022980(v11, v12, &v14);\n    (*(void (__fastcall **)(__int64, int *))(*(_QWORD *)v13 + 184LL))(v13, &v14);\n  }\n}", "assembly": "; \n; GJGroundLayer::updateShadowXPos from 0x10002c6e4 to 0x10002c7ac (200 bytes)\n; \n; 6 xrefs:\n; > GJBaseGameLayer::updateGroundShadows @ 0x1001de9ac\n; > GJBaseGameLayer::updateGroundShadows @ 0x1001de9c4\n; > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd7e4\n; > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd7fc\n; > GJBaseGameLayer::resetLevelVariables @ 0x10020266c\n; > GJBaseGameLayer::resetLevelVariables @ 0x100202684\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x40                                          ; +0x0, 0x10002c6e4\nSTP             D9, D8, [SP,#0x30+var_20]                              ; +0x4, 0x10002c6e8\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x10002c6ec\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x10002c6f0\nADD             X29, SP, #0x30                                         ; +0x10, 0x10002c6f4\nFMOV            S8, S1                                                 ; +0x14, 0x10002c6f8\nFMOV            S9, S0                                                 ; +0x18, 0x10002c6fc\nMOV             X19, X0                                                ; +0x1c, 0x10002c700\nLDR             X8, [X0]                                               ; +0x20, 0x10002c704\nLDR             X8, [X8,#0x88]                                         ; +0x24, 0x10002c708\nBLR             X8                                                     ; +0x28, 0x10002c70c\nLDR             X8, [X19]                                              ; +0x2c, 0x10002c710\nLDR             X8, [X8,#0x1D0]                                        ; +0x30, 0x10002c714\nMOV             X0, X19                                                ; +0x34, 0x10002c718\nMOV             W1, #0                                                 ; +0x38, 0x10002c71c\nBLR             X8                                                     ; +0x3c, 0x10002c720\nCBZ             X0, loc_10002C754                                      ; +0x40, 0x10002c724\nMOV             X20, X0                                                ; +0x44, 0x10002c728\nFMOV            S0, #-1.0                                              ; +0x48, 0x10002c72c\nFADD            S0, S9, S0                                             ; +0x4c, 0x10002c730\nADD             X0, SP, #0x30+var_28                                   ; +0x50, 0x10002c734\nFMOV            S1, WZR                                                ; +0x54, 0x10002c738\nBL              sub_100022980                                          ; +0x58, 0x10002c73c\nLDR             X8, [X20]                                              ; +0x5c, 0x10002c740\nLDR             X8, [X8,#0xB8]                                         ; +0x60, 0x10002c744\nADD             X1, SP, #0x30+var_28                                   ; +0x64, 0x10002c748\nMOV             X0, X20                                                ; +0x68, 0x10002c74c\nBLR             X8                                                     ; +0x6c, 0x10002c750\nLDR             X8, [X19]                                              ; +0x70, 0x10002c754\nLDR             X8, [X8,#0x1D0]                                        ; +0x74, 0x10002c758\nMOV             X0, X19                                                ; +0x78, 0x10002c75c\nMOV             W1, #1                                                 ; +0x7c, 0x10002c760\nBLR             X8                                                     ; +0x80, 0x10002c764\nCBZ             X0, loc_10002C798                                      ; +0x84, 0x10002c768\nMOV             X19, X0                                                ; +0x88, 0x10002c76c\nFMOV            S0, #1.0                                               ; +0x8c, 0x10002c770\nFADD            S0, S8, S0                                             ; +0x90, 0x10002c774\nADD             X0, SP, #0x30+var_28                                   ; +0x94, 0x10002c778\nFMOV            S1, WZR                                                ; +0x98, 0x10002c77c\nBL              sub_100022980                                          ; +0x9c, 0x10002c780\nLDR             X8, [X19]                                              ; +0xa0, 0x10002c784\nLDR             X8, [X8,#0xB8]                                         ; +0xa4, 0x10002c788\nADD             X1, SP, #0x30+var_28                                   ; +0xa8, 0x10002c78c\nMOV             X0, X19                                                ; +0xac, 0x10002c790\nBLR             X8                                                     ; +0xb0, 0x10002c794\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xb4, 0x10002c798\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xb8, 0x10002c79c\nLDP             D9, D8, [SP,#0x30+var_20]                              ; +0xbc, 0x10002c7a0\nADD             SP, SP, #0x40 ; '@'                                    ; +0xc0, 0x10002c7a4\nRET                                                                    ; +0xc4, 0x10002c7a8", "xrefs": ["GJBaseGameLayer::updateGroundShadows @ 0x1001de9ac", "GJBaseGameLayer::updateGroundShadows @ 0x1001de9c4", "GJBaseGameLayer::preUpdateVisibility @ 0x1001fd7e4", "GJBaseGameLayer::preUpdateVisibility @ 0x1001fd7fc", "GJBaseGameLayer::resetLevelVariables @ 0x10020266c", "GJBaseGameLayer::resetLevelVariables @ 0x100202684"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}