{"type": "func", "start": 4295148924, "end": 4295149072, "name": "GJGroundLayer::updateShadows", "pseudocode": "// \n// GJGroundLayer::updateShadows from 0x10002c57c to 0x10002c610 (148 bytes)\n// \n// 5 xrefs:\n// > GJGroundLayer::scaleGround @ 0x10002c3fc\n// > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd7ec\n// > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd804\n// > GJBaseGameLayer::resetLevelVariables @ 0x100202674\n// > GJBaseGameLayer::resetLevelVariables @ 0x10020268c\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::updateShadows(GJGroundLayer *a1)\n{\n  float v2; // s8\n  cocos2d::CCDirector *v3; // x0\n  __int64 v4; // x0\n  __n128 v5; // q0\n  __n128 v6; // q1\n  __int64 v7; // x19\n  float v8; // [xsp+8h] [xbp-28h] BYREF\n  cocos2d::CCSize WinSize; // 0:kr00_8.8\n\n  v2 = ((float (__fastcall *)(GJGroundLayer *))a1->getScaleX)(a1);\n  v3 = cocos2d::CCDirector::sharedDirector();\n  WinSize = cocos2d::CCDirector::getWinSize(v3);\n  v4 = ((__int64 (__fastcall *)(GJGroundLayer *, __int64, float, float))a1->getChildByTag)(\n         a1,\n         1,\n         WinSize.width,\n         WinSize.height);\n  if ( v4 )\n  {\n    v7 = v4;\n    v5.n128_f32[0] = (float)(v8 / v2) + 1.0;\n    v6.n128_u32[0] = 0;\n    sub_100022980(v5, v6, &v8);\n    (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v7 + 184LL))(v7, &v8);\n  }\n}", "assembly": "; \n; GJGroundLayer::updateShadows from 0x10002c57c to 0x10002c610 (148 bytes)\n; \n; 5 xrefs:\n; > GJGroundLayer::scaleGround @ 0x10002c3fc\n; > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd7ec\n; > GJBaseGameLayer::preUpdateVisibility @ 0x1001fd804\n; > GJBaseGameLayer::resetLevelVariables @ 0x100202674\n; > GJBaseGameLayer::resetLevelVariables @ 0x10020268c\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, 0x10002c57c\nSTP             D9, D8, [SP,#0x30+var_20]                              ; +0x4, 0x10002c580\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x10002c584\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x10002c588\nADD             X29, SP, #0x30                                         ; +0x10, 0x10002c58c\nMOV             X19, X0                                                ; +0x14, 0x10002c590\nLDR             X8, [X0]                                               ; +0x18, 0x10002c594\nLDR             X8, [X8,#0x88]                                         ; +0x1c, 0x10002c598\nBLR             X8                                                     ; +0x20, 0x10002c59c\nFMOV            S8, S0                                                 ; +0x24, 0x10002c5a0\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x28, 0x10002c5a4\nADD             X8, SP, #0x30+var_28                                   ; +0x2c, 0x10002c5a8\nBL              cocos2d__CCDirector__getWinSize                        ; +0x30, 0x10002c5ac\nLDR             S9, [SP,#0x30+var_28]                                  ; +0x34, 0x10002c5b0\nLDR             X8, [X19]                                              ; +0x38, 0x10002c5b4\nLDR             X8, [X8,#0x1D0]                                        ; +0x3c, 0x10002c5b8\nMOV             X0, X19                                                ; +0x40, 0x10002c5bc\nMOV             W1, #1                                                 ; +0x44, 0x10002c5c0\nBLR             X8                                                     ; +0x48, 0x10002c5c4\nCBZ             X0, loc_10002C5FC                                      ; +0x4c, 0x10002c5c8\nMOV             X19, X0                                                ; +0x50, 0x10002c5cc\nFDIV            S0, S9, S8                                             ; +0x54, 0x10002c5d0\nFMOV            S1, #1.0                                               ; +0x58, 0x10002c5d4\nFADD            S0, S0, S1                                             ; +0x5c, 0x10002c5d8\nADD             X0, SP, #0x30+var_28                                   ; +0x60, 0x10002c5dc\nFMOV            S1, WZR                                                ; +0x64, 0x10002c5e0\nBL              sub_100022980                                          ; +0x68, 0x10002c5e4\nLDR             X8, [X19]                                              ; +0x6c, 0x10002c5e8\nLDR             X8, [X8,#0xB8]                                         ; +0x70, 0x10002c5ec\nADD             X1, SP, #0x30+var_28                                   ; +0x74, 0x10002c5f0\nMOV             X0, X19                                                ; +0x78, 0x10002c5f4\nBLR             X8                                                     ; +0x7c, 0x10002c5f8\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x80, 0x10002c5fc\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x84, 0x10002c600\nLDP             D9, D8, [SP,#0x30+var_20]                              ; +0x88, 0x10002c604\nADD             SP, SP, #0x40 ; '@'                                    ; +0x8c, 0x10002c608\nRET                                                                    ; +0x90, 0x10002c60c", "xrefs": ["GJGroundLayer::scaleGround @ 0x10002c3fc", "GJBaseGameLayer::preUpdateVisibility @ 0x1001fd7ec", "GJBaseGameLayer::preUpdateVisibility @ 0x1001fd804", "GJBaseGameLayer::resetLevelVariables @ 0x100202674", "GJBaseGameLayer::resetLevelVariables @ 0x10020268c"], "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"}