{"type": "func", "start": 8308188, "end": 8308384, "name": "GJGroundLayer::updateShadows", "pseudocode": "// \n// GJGroundLayer::updateShadows from 0x7ec5dc to 0x7ec6a0 (196 bytes)\n// \n// 6 xrefs:\n// > GJGroundLayer::scaleGround @ 0x7ec70c\n// > GJBaseGameLayer::preUpdateVisibility @ 0x882ce8\n// > GJBaseGameLayer::preUpdateVisibility @ 0x882d00\n// > GJBaseGameLayer::resetLevelVariables @ 0x88af44\n// > GJBaseGameLayer::resetLevelVariables @ 0x88af5c\n// > <???> @ 0xc46f8\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  cocos2d::CCDirector *v2; // x0\n  cocos2d::CCNode *v3; // x0\n  cocos2d::CCNode *v4; // x20\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22\n  float v6; // [xsp+40h] [xbp+40h]\n  cocos2d::CCPoint v7; // [xsp+50h] [xbp+50h] BYREF\n\n  LODWORD(v6) = COERCE_UNSIGNED_INT128(((long double (__fastcall *)(GJGroundLayer *))a1->getScaleX)(a1));\n  v2 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v2);\n  v3 = a1->getChildByTag(a1, 1);\n  v4 = v3;\n  if ( v3 )\n  {\n    setPosition = v3->setPosition;\n    cocos2d::CCPoint::CCPoint(&v7, (float)(v7.x / v6) + 1.0, 0.0);\n    setPosition(v4, &v7);\n  }\n}", "assembly": "; \n; GJGroundLayer::updateShadows from 0x7ec5dc to 0x7ec6a0 (196 bytes)\n; \n; 6 xrefs:\n; > GJGroundLayer::scaleGround @ 0x7ec70c\n; > GJBaseGameLayer::preUpdateVisibility @ 0x882ce8\n; > GJBaseGameLayer::preUpdateVisibility @ 0x882d00\n; > GJBaseGameLayer::resetLevelVariables @ 0x88af44\n; > GJBaseGameLayer::resetLevelVariables @ 0x88af5c\n; > <???> @ 0xc46f8\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\nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x7ec5dc\nMOV             X29, SP                                                ; +0x4, 0x7ec5e0\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x7ec5e4\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x7ec5e8\nLDR             X1, [X0]                                               ; +0x10, 0x7ec5ec\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x14, 0x7ec5f0\nMOV             X20, X0                                                ; +0x18, 0x7ec5f4\nADD             X21, X29, #0x60+var_10                                 ; +0x1c, 0x7ec5f8\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x7ec5fc\nLDR             X1, [X1,#0x88]                                         ; +0x24, 0x7ec600\nSTR             D8, [SP,#0x60+var_30]                                  ; +0x28, 0x7ec604\nLDR             X2, [X2]                                               ; +0x2c, 0x7ec608\nSTR             X2, [X29,#0x60+var_8]                                  ; +0x30, 0x7ec60c\nBLR             X1                                                     ; +0x34, 0x7ec610\nSTR             Q0, [X29,#0x60+var_20]                                 ; +0x38, 0x7ec614\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x3c, 0x7ec618\nMOV             X8, X21                                                ; +0x40, 0x7ec61c\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x44, 0x7ec620\nLDR             S1, [X29,#0x60+var_10]                                 ; +0x48, 0x7ec624\nLDR             X2, [X20]                                              ; +0x4c, 0x7ec628\nLDR             Q0, [X29,#0x60+var_20]                                 ; +0x50, 0x7ec62c\nMOV             X0, X20                                                ; +0x54, 0x7ec630\nMOV             W1, #1                                                 ; +0x58, 0x7ec634\nFDIV            S8, S1, S0                                             ; +0x5c, 0x7ec638\nLDR             X2, [X2,#0x1D0]                                        ; +0x60, 0x7ec63c\nBLR             X2                                                     ; +0x64, 0x7ec640\nMOV             X20, X0                                                ; +0x68, 0x7ec644\nCBZ             X0, loc_7EC674                                         ; +0x6c, 0x7ec648\nFMOV            S0, #1.0                                               ; +0x70, 0x7ec64c\nLDR             X1, [X0]                                               ; +0x74, 0x7ec650\nFMOV            S1, WZR; float                                         ; +0x78, 0x7ec654\nMOV             X0, X21; this                                          ; +0x7c, 0x7ec658\nFADD            S0, S8, S0; float                                      ; +0x80, 0x7ec65c\nLDR             X22, [X1,#0xB8]                                        ; +0x84, 0x7ec660\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x88, 0x7ec664\nMOV             X0, X20                                                ; +0x8c, 0x7ec668\nMOV             X1, X21                                                ; +0x90, 0x7ec66c\nBLR             X22                                                    ; +0x94, 0x7ec670\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x98, 0x7ec674\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x9c, 0x7ec678\nLDR             X0, [X19]                                              ; +0xa0, 0x7ec67c\nCMP             X1, X0                                                 ; +0xa4, 0x7ec680\nB.NE            loc_7EC69C                                             ; +0xa8, 0x7ec684\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0xac, 0x7ec688\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0xb0, 0x7ec68c\nLDR             D8, [SP,#0x60+var_30]                                  ; +0xb4, 0x7ec690\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0xb8, 0x7ec694\nRET                                                                    ; +0xbc, 0x7ec698\nBL              .__stack_chk_fail                                      ; +0xc0, 0x7ec69c", "xrefs": ["GJGroundLayer::scaleGround @ 0x7ec70c", "GJBaseGameLayer::preUpdateVisibility @ 0x882ce8", "GJBaseGameLayer::preUpdateVisibility @ 0x882d00", "GJBaseGameLayer::resetLevelVariables @ 0x88af44", "GJBaseGameLayer::resetLevelVariables @ 0x88af5c", "<???> @ 0xc46f8"], "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"}