{"type": "func", "start": 4410492, "end": 4410648, "name": "GJGroundLayer::updateShadowXPos", "pseudocode": "// \n// GJGroundLayer::updateShadowXPos from 0x434c7c to 0x434d18 (156 bytes)\n// \n// 6 xrefs:\n// > GJBaseGameLayer::updateGroundShadows @ 0x46d904\n// > GJBaseGameLayer::updateGroundShadows @ 0x46d924\n// > GJBaseGameLayer::preUpdateVisibility @ 0x489170\n// > GJBaseGameLayer::preUpdateVisibility @ 0x489184\n// > GJBaseGameLayer::resetLevelVariables @ 0x491e26\n// > GJBaseGameLayer::resetLevelVariables @ 0x491e3a\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 GJGroundLayer::updateShadowXPos(GJGroundLayer *a1, float a2, float a3)\n{\n  cocos2d::CCNode *v6; // r0\n  cocos2d::CCNode *v7; // r6\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8\n  cocos2d::CCNode *v9; // r0\n  cocos2d::CCNode *v10; // r4\n  void (__fastcall *v11)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7\n  cocos2d::CCPoint v12; // [sp+4h] [bp-Ch] BYREF\n\n  ((void (__fastcall *)(GJGroundLayer *, _DWORD, _DWORD))a1->getScaleX)(a1, LODWORD(a2), LODWORD(a3));\n  v6 = a1->getChildByTag(a1, 0);\n  v7 = v6;\n  if ( v6 )\n  {\n    setPosition = v6->setPosition;\n    cocos2d::CCPoint::CCPoint(&v12, a2 - 1.0, 0.0);\n    setPosition(v7, &v12);\n  }\n  v9 = a1->getChildByTag(a1, 1);\n  v10 = v9;\n  if ( v9 )\n  {\n    v11 = v9->setPosition;\n    cocos2d::CCPoint::CCPoint(&v12, a3 + 1.0, 0.0);\n    v11(v10, &v12);\n  }\n}", "assembly": "; \n; GJGroundLayer::updateShadowXPos from 0x434c7c to 0x434d18 (156 bytes)\n; \n; 6 xrefs:\n; > GJBaseGameLayer::updateGroundShadows @ 0x46d904\n; > GJBaseGameLayer::updateGroundShadows @ 0x46d924\n; > GJBaseGameLayer::preUpdateVisibility @ 0x489170\n; > GJBaseGameLayer::preUpdateVisibility @ 0x489184\n; > GJBaseGameLayer::resetLevelVariables @ 0x491e26\n; > GJBaseGameLayer::resetLevelVariables @ 0x491e3a\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\nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x434c7c\nMOV             R4, R0                                                 ; +0x4, 0x434c80\nLDR             R5, =(__stack_chk_guard_ptr - 0x434C8C)                ; +0x6, 0x434c82\nVPUSH           {D8}                                                   ; +0x8, 0x434c84\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x434c88\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x434c8a\nLDR             R3, [R5]                                               ; +0x10, 0x434c8c\nVMOV            S17, R1                                                ; +0x12, 0x434c8e\nSUB             SP, SP, #0x10                                          ; +0x16, 0x434c92\nVMOV            S16, R2                                                ; +0x18, 0x434c94\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x1c, 0x434c98\nLDR             R3, [R0]                                               ; +0x1e, 0x434c9a\nLDR             R3, [R3,#0x44]                                         ; +0x20, 0x434c9c\nBLX             R3                                                     ; +0x22, 0x434c9e\nLDR             R3, [R4]                                               ; +0x24, 0x434ca0\nMOV             R0, R4                                                 ; +0x26, 0x434ca2\nMOVS            R1, #0                                                 ; +0x28, 0x434ca4\nLDR.W           R3, [R3,#0xE8]                                         ; +0x2a, 0x434ca6\nBLX             R3                                                     ; +0x2e, 0x434caa\nMOV             R6, R0                                                 ; +0x30, 0x434cac\nCBZ             R0, loc_434CD2                                         ; +0x32, 0x434cae\nVMOV.F32        S15, #1.0                                              ; +0x34, 0x434cb0\nLDR             R3, [R0]                                               ; +0x38, 0x434cb4\nADD             R7, SP, #0x10+var_C                                    ; +0x3a, 0x434cb6\nMOVS            R2, #0; float                                          ; +0x3c, 0x434cb8\nMOV             R0, R7; this                                           ; +0x3e, 0x434cba\nLDR.W           R8, [R3,#0x5C]                                         ; +0x40, 0x434cbc\nVSUB.F32        S15, S17, S15                                          ; +0x44, 0x434cc0\nVMOV            R1, S15; float                                         ; +0x48, 0x434cc4\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x4c, 0x434cc8\nMOV             R0, R6                                                 ; +0x50, 0x434ccc\nMOV             R1, R7                                                 ; +0x52, 0x434cce\nBLX             R8                                                     ; +0x54, 0x434cd0\nLDR             R3, [R4]                                               ; +0x56, 0x434cd2\nMOV             R0, R4                                                 ; +0x58, 0x434cd4\nMOVS            R1, #1                                                 ; +0x5a, 0x434cd6\nLDR.W           R3, [R3,#0xE8]                                         ; +0x5c, 0x434cd8\nBLX             R3                                                     ; +0x60, 0x434cdc\nMOV             R4, R0                                                 ; +0x62, 0x434cde\nCBZ             R0, loc_434D02                                         ; +0x64, 0x434ce0\nVMOV.F32        S15, #1.0                                              ; +0x66, 0x434ce2\nLDR             R3, [R0]                                               ; +0x6a, 0x434ce6\nADD             R6, SP, #0x10+var_C                                    ; +0x6c, 0x434ce8\nMOVS            R2, #0; float                                          ; +0x6e, 0x434cea\nMOV             R0, R6; this                                           ; +0x70, 0x434cec\nLDR             R7, [R3,#0x5C]                                         ; +0x72, 0x434cee\nVADD.F32        S15, S16, S15                                          ; +0x74, 0x434cf0\nVMOV            R1, S15; float                                         ; +0x78, 0x434cf4\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x7c, 0x434cf8\nMOV             R0, R4                                                 ; +0x80, 0x434cfc\nMOV             R1, R6                                                 ; +0x82, 0x434cfe\nBLX             R7                                                     ; +0x84, 0x434d00\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x86, 0x434d02\nLDR             R3, [R5]                                               ; +0x88, 0x434d04\nCMP             R2, R3                                                 ; +0x8a, 0x434d06\nBEQ             loc_434D0E                                             ; +0x8c, 0x434d08\nBLX             __stack_chk_fail                                       ; +0x8e, 0x434d0a\nADD             SP, SP, #0x10                                          ; +0x92, 0x434d0e\nVPOP            {D8}                                                   ; +0x94, 0x434d10\nPOP.W           {R4-R8,PC}                                             ; +0x98, 0x434d14", "xrefs": ["GJBaseGameLayer::updateGroundShadows @ 0x46d904", "GJBaseGameLayer::updateGroundShadows @ 0x46d924", "GJBaseGameLayer::preUpdateVisibility @ 0x489170", "GJBaseGameLayer::preUpdateVisibility @ 0x489184", "GJBaseGameLayer::resetLevelVariables @ 0x491e26", "GJBaseGameLayer::resetLevelVariables @ 0x491e3a"], "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"}