{"type": "func", "start": 5372410368, "end": 5372410517, "name": "GJGroundLayer::updateShadows", "pseudocode": "// \n// GJGroundLayer::updateShadows from 0x140387a00 to 0x140387a95 (149 bytes)\n// \n// 6 xrefs:\n// > GJBaseGameLayer::preUpdateVisibility @ 0x14033f533\n// > GJBaseGameLayer::preUpdateVisibility @ 0x14033f551\n// > GJBaseGameLayer::resetLevelVariables @ 0x1403456c5\n// > GJBaseGameLayer::resetLevelVariables @ 0x1403456e3\n// > GJGroundLayer::scaleGround @ 0x140387954\n// > <???> @ 0x140922ba4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:31:08 +0000\n// \n\n_QWORD *__fastcall GJGroundLayer::updateShadows(__int64 a1)\n{\n  double v2; // xmm0_8\n  float v3; // xmm6_4\n  __int64 v4; // rcx\n  __int64 v5; // rax\n  float *v6; // rax\n  float v7; // xmm7_4\n  _QWORD *result; // rax\n  _QWORD *v9; // rdi\n  __int64 v10; // rbx\n  __int64 v11; // rax\n  char v12; // [rsp+50h] [rbp+8h] BYREF\n\n  v2 = (*(double (__fastcall **)(__int64))(*(_QWORD *)a1 + 128LL))(a1);\n  v3 = *(float *)&v2;\n  v5 = cocos2d::CCDirector::sharedDirector(v4);\n  cocos2d::CCDirector::getWinSize(v5, &v12);\n  v7 = *v6 / v3;\n  result = (_QWORD *)(*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 472LL))(a1, 1);\n  v9 = result;\n  if ( result )\n  {\n    v10 = *result;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, v7 + 1.0, 0.0);\n    return (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *, __int64))(v10 + 184))(v9, v11);\n  }\n  return result;\n}", "assembly": "; \n; GJGroundLayer::updateShadows from 0x140387a00 to 0x140387a95 (149 bytes)\n; \n; 6 xrefs:\n; > GJBaseGameLayer::preUpdateVisibility @ 0x14033f533\n; > GJBaseGameLayer::preUpdateVisibility @ 0x14033f551\n; > GJBaseGameLayer::resetLevelVariables @ 0x1403456c5\n; > GJBaseGameLayer::resetLevelVariables @ 0x1403456e3\n; > GJGroundLayer::scaleGround @ 0x140387954\n; > <???> @ 0x140922ba4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:31:08 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140387a00\npush    rdi                                                            ; +0x5, 0x140387a05\nsub     rsp, 40h                                                       ; +0x6, 0x140387a06\nmov     rax, [rcx]                                                     ; +0xa, 0x140387a0a\nmov     rbx, rcx                                                       ; +0xd, 0x140387a0d\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x10, 0x140387a10\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x15, 0x140387a15\ncall    qword ptr [rax+80h]                                            ; +0x1a, 0x140387a1a\nmovaps  xmm6, xmm0                                                     ; +0x20, 0x140387a20\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x23, 0x140387a23\nmov     rcx, rax                                                       ; +0x29, 0x140387a29\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x2c, 0x140387a2c\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x31, 0x140387a31\nmov     edx, 1                                                         ; +0x37, 0x140387a37\nmov     rcx, rbx                                                       ; +0x3c, 0x140387a3c\nmovss   xmm7, dword ptr [rax]                                          ; +0x3f, 0x140387a3f\nmov     rax, [rbx]                                                     ; +0x43, 0x140387a43\ndivss   xmm7, xmm6                                                     ; +0x46, 0x140387a46\ncall    qword ptr [rax+1D8h]                                           ; +0x4a, 0x140387a4a\nmov     rdi, rax                                                       ; +0x50, 0x140387a50\ntest    rax, rax                                                       ; +0x53, 0x140387a53\njz      short loc_140387A80                                            ; +0x56, 0x140387a56\naddss   xmm7, cs:flt_140835080                                         ; +0x58, 0x140387a58\nmov     rbx, [rax]                                                     ; +0x60, 0x140387a60\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x63, 0x140387a63\nxorps   xmm2, xmm2                                                     ; +0x68, 0x140387a68\nmovaps  xmm1, xmm7                                                     ; +0x6b, 0x140387a6b\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x6e, 0x140387a6e\nmov     rdx, rax                                                       ; +0x74, 0x140387a74\nmov     rcx, rdi                                                       ; +0x77, 0x140387a77\ncall    qword ptr [rbx+0B8h]                                           ; +0x7a, 0x140387a7a\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x80, 0x140387a80\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x85, 0x140387a85\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x8a, 0x140387a8a\nadd     rsp, 40h                                                       ; +0x8f, 0x140387a8f\npop     rdi                                                            ; +0x93, 0x140387a93\nretn                                                                   ; +0x94, 0x140387a94", "xrefs": ["GJBaseGameLayer::preUpdateVisibility @ 0x14033f533", "GJBaseGameLayer::preUpdateVisibility @ 0x14033f551", "GJBaseGameLayer::resetLevelVariables @ 0x1403456c5", "GJBaseGameLayer::resetLevelVariables @ 0x1403456e3", "GJGroundLayer::scaleGround @ 0x140387954", "<???> @ 0x140922ba4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}