{"type": "func", "start": 4301174768, "end": 4301174905, "name": "GJGroundLayer::updateShadows", "pseudocode": "// \n// GJGroundLayer::updateShadows from 0x1005eb7f0 to 0x1005eb879 (137 bytes)\n// \n// 4 xrefs:\n// > GJBaseGameLayer::preUpdateVisibility @ 0x10014f832\n// > GJBaseGameLayer::preUpdateVisibility @ 0x10014f850\n// > GJBaseGameLayer::resetLevelVariables @ 0x10015983e\n// > GJBaseGameLayer::resetLevelVariables @ 0x10015985c\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  __int64 v1; // rax\n  __int64 v2; // rbx\n  float v3; // [rsp+0h] [rbp-20h] BYREF\n  float v4; // [rsp+8h] [rbp-18h]\n  float v5; // [rsp+Ch] [rbp-14h]\n\n  v4 = ((float (__fastcall *)(GJGroundLayer *))a1->getScaleX)(a1);\n  cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v3);\n  v5 = v3;\n  v1 = ((__int64 (__fastcall *)(GJGroundLayer *, __int64))a1->getChildByTag)(a1, 1);\n  if ( v1 )\n  {\n    v2 = v1;\n    sub_10028CBE0(&v3, (float)(v5 / v4) + 1.0, 0.0);\n    (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v2 + 184LL))(v2, &v3);\n  }\n}", "assembly": "; \n; GJGroundLayer::updateShadows from 0x1005eb7f0 to 0x1005eb879 (137 bytes)\n; \n; 4 xrefs:\n; > GJBaseGameLayer::preUpdateVisibility @ 0x10014f832\n; > GJBaseGameLayer::preUpdateVisibility @ 0x10014f850\n; > GJBaseGameLayer::resetLevelVariables @ 0x10015983e\n; > GJBaseGameLayer::resetLevelVariables @ 0x10015985c\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    rbp                                                            ; +0x0, 0x1005eb7f0\nmov     rbp, rsp                                                       ; +0x1, 0x1005eb7f1\npush    r14                                                            ; +0x4, 0x1005eb7f4\npush    rbx                                                            ; +0x6, 0x1005eb7f6\nsub     rsp, 10h                                                       ; +0x7, 0x1005eb7f7\nmov     rbx, rdi                                                       ; +0xb, 0x1005eb7fb\nmov     rax, [rdi]                                                     ; +0xe, 0x1005eb7fe\ncall    qword ptr [rax+88h]                                            ; +0x11, 0x1005eb801\nmovss   [rbp+var_18], xmm0                                             ; +0x17, 0x1005eb807\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x1c, 0x1005eb80c\nlea     rdi, [rbp+var_20]                                              ; +0x21, 0x1005eb811\nmov     rsi, rax                                                       ; +0x25, 0x1005eb815\ncall    cocos2d__CCDirector__getWinSize                                ; +0x28, 0x1005eb818\nmovss   xmm0, [rbp+var_20]                                             ; +0x2d, 0x1005eb81d\nmovss   [rbp+var_14], xmm0                                             ; +0x32, 0x1005eb822\nmov     rax, [rbx]                                                     ; +0x37, 0x1005eb827\nmov     rdi, rbx                                                       ; +0x3a, 0x1005eb82a\nmov     esi, 1                                                         ; +0x3d, 0x1005eb82d\ncall    qword ptr [rax+1D0h]                                           ; +0x42, 0x1005eb832\ntest    rax, rax                                                       ; +0x48, 0x1005eb838\njz      short loc_1005EB870                                            ; +0x4b, 0x1005eb83b\nmov     rbx, rax                                                       ; +0x4d, 0x1005eb83d\nmovss   xmm0, [rbp+var_14]                                             ; +0x50, 0x1005eb840\ndivss   xmm0, [rbp+var_18]                                             ; +0x55, 0x1005eb845\naddss   xmm0, cs:alpha                                                 ; +0x5a, 0x1005eb84a\nlea     r14, [rbp+var_20]                                              ; +0x62, 0x1005eb852\nxorps   xmm1, xmm1                                                     ; +0x66, 0x1005eb856\nmov     rdi, r14                                                       ; +0x69, 0x1005eb859\ncall    sub_10028CBE0                                                  ; +0x6c, 0x1005eb85c\nmov     rax, [rbx]                                                     ; +0x71, 0x1005eb861\nmov     rdi, rbx                                                       ; +0x74, 0x1005eb864\nmov     rsi, r14                                                       ; +0x77, 0x1005eb867\ncall    qword ptr [rax+0B8h]                                           ; +0x7a, 0x1005eb86a\nadd     rsp, 10h                                                       ; +0x80, 0x1005eb870\npop     rbx                                                            ; +0x84, 0x1005eb874\npop     r14                                                            ; +0x85, 0x1005eb875\npop     rbp                                                            ; +0x87, 0x1005eb877\nretn                                                                   ; +0x88, 0x1005eb878", "xrefs": ["GJBaseGameLayer::preUpdateVisibility @ 0x10014f832", "GJBaseGameLayer::preUpdateVisibility @ 0x10014f850", "GJBaseGameLayer::resetLevelVariables @ 0x10015983e", "GJBaseGameLayer::resetLevelVariables @ 0x10015985c"], "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"}