{"type": "func", "start": 4410280, "end": 4410398, "name": "GJGroundLayer::updateShadows", "pseudocode": "// \n// GJGroundLayer::updateShadows from 0x434ba8 to 0x434c1e (118 bytes)\n// \n// 5 xrefs:\n// > GJGroundLayer::scaleGround @ 0x434c6c\n// > GJBaseGameLayer::preUpdateVisibility @ 0x489178\n// > GJBaseGameLayer::preUpdateVisibility @ 0x48918c\n// > GJBaseGameLayer::resetLevelVariables @ 0x491e2e\n// > GJBaseGameLayer::resetLevelVariables @ 0x491e42\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::updateShadows(GJGroundLayer *a1)\n{\n  float v2; // s16\n  cocos2d::CCDirector *v3; // r0\n  float v4; // s16\n  cocos2d::CCNode *v5; // r0\n  cocos2d::CCNode *v6; // r6\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7\n  cocos2d::CCPoint v8; // [sp+4h] [bp-10h] BYREF\n\n  v2 = COERCE_FLOAT(((int (__fastcall *)(GJGroundLayer *))a1->getScaleX)(a1));\n  v3 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize((cocos2d::CCSize *)&v8, v3);\n  v4 = v8.x / v2;\n  v5 = a1->getChildByTag(a1, 1);\n  v6 = v5;\n  if ( v5 )\n  {\n    setPosition = v5->setPosition;\n    cocos2d::CCPoint::CCPoint(&v8, v4 + 1.0, 0.0);\n    setPosition(v6, &v8);\n  }\n}", "assembly": "; \n; GJGroundLayer::updateShadows from 0x434ba8 to 0x434c1e (118 bytes)\n; \n; 5 xrefs:\n; > GJGroundLayer::scaleGround @ 0x434c6c\n; > GJBaseGameLayer::preUpdateVisibility @ 0x489178\n; > GJBaseGameLayer::preUpdateVisibility @ 0x48918c\n; > GJBaseGameLayer::resetLevelVariables @ 0x491e2e\n; > GJBaseGameLayer::resetLevelVariables @ 0x491e42\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            {R4-R7,LR}                                             ; +0x0, 0x434ba8\nMOV             R6, R0                                                 ; +0x2, 0x434baa\nLDR             R4, =(__stack_chk_guard_ptr - 0x434BB6)                ; +0x4, 0x434bac\nVPUSH           {D8}                                                   ; +0x6, 0x434bae\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xa, 0x434bb2\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xc, 0x434bb4\nLDR             R3, [R4]                                               ; +0xe, 0x434bb6\nSUB             SP, SP, #0x14                                          ; +0x10, 0x434bb8\nADD             R5, SP, #0x14+var_10                                   ; +0x12, 0x434bba\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x14, 0x434bbc\nLDR             R3, [R0]                                               ; +0x16, 0x434bbe\nLDR             R3, [R3,#0x44]                                         ; +0x18, 0x434bc0\nBLX             R3                                                     ; +0x1a, 0x434bc2\nVMOV            S16, R0; this                                          ; +0x1c, 0x434bc4\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x20, 0x434bc8\nMOV             R1, R0                                                 ; +0x24, 0x434bcc\nMOV             R0, R5; this                                           ; +0x26, 0x434bce\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x28, 0x434bd0\nLDR             R3, [R6]                                               ; +0x2c, 0x434bd4\nVLDR            S15, [SP,#0x14+var_10]                                 ; +0x2e, 0x434bd6\nMOV             R0, R6                                                 ; +0x32, 0x434bda\nMOVS            R1, #1                                                 ; +0x34, 0x434bdc\nLDR.W           R3, [R3,#0xE8]                                         ; +0x36, 0x434bde\nVDIV.F32        S16, S15, S16                                          ; +0x3a, 0x434be2\nBLX             R3                                                     ; +0x3e, 0x434be6\nMOV             R6, R0                                                 ; +0x40, 0x434be8\nCBZ             R0, loc_434C0A                                         ; +0x42, 0x434bea\nLDR             R3, [R0]                                               ; +0x44, 0x434bec\nMOVS            R2, #0; float                                          ; +0x46, 0x434bee\nMOV             R0, R5; this                                           ; +0x48, 0x434bf0\nLDR             R7, [R3,#0x5C]                                         ; +0x4a, 0x434bf2\nVMOV.F32        S15, #1.0                                              ; +0x4c, 0x434bf4\nVADD.F32        S15, S16, S15                                          ; +0x50, 0x434bf8\nVMOV            R1, S15; float                                         ; +0x54, 0x434bfc\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x58, 0x434c00\nMOV             R0, R6                                                 ; +0x5c, 0x434c04\nMOV             R1, R5                                                 ; +0x5e, 0x434c06\nBLX             R7                                                     ; +0x60, 0x434c08\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x62, 0x434c0a\nLDR             R3, [R4]                                               ; +0x64, 0x434c0c\nCMP             R2, R3                                                 ; +0x66, 0x434c0e\nBEQ             loc_434C16                                             ; +0x68, 0x434c10\nBLX             __stack_chk_fail                                       ; +0x6a, 0x434c12\nADD             SP, SP, #0x14                                          ; +0x6e, 0x434c16\nVPOP            {D8}                                                   ; +0x70, 0x434c18\nPOP             {R4-R7,PC}                                             ; +0x74, 0x434c1c", "xrefs": ["GJGroundLayer::scaleGround @ 0x434c6c", "GJBaseGameLayer::preUpdateVisibility @ 0x489178", "GJBaseGameLayer::preUpdateVisibility @ 0x48918c", "GJBaseGameLayer::resetLevelVariables @ 0x491e2e", "GJBaseGameLayer::resetLevelVariables @ 0x491e42"], "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"}