{"type": "func", "start": 5372410528, "end": 5372410724, "name": "GJGroundLayer::updateShadowXPos", "pseudocode": "// \n// GJGroundLayer::updateShadowXPos from 0x140387aa0 to 0x140387b64 (196 bytes)\n// \n// 9 xrefs:\n// > GJBaseGameLayer::updateGroundShadows @ 0x1403125ca\n// > GJBaseGameLayer::updateGroundShadows @ 0x1403125e8\n// > GJBaseGameLayer::preUpdateVisibility @ 0x14033f527\n// > GJBaseGameLayer::preUpdateVisibility @ 0x14033f545\n// > GJBaseGameLayer::resetLevelVariables @ 0x1403456b9\n// > GJBaseGameLayer::resetLevelVariables @ 0x1403456d7\n// > <???> @ 0x1408bd9a8\n// > <???> @ 0x1408bd9b8\n// > <???> @ 0x140922bb0\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::updateShadowXPos(__int64 a1, float a2, float a3)\n{\n  _QWORD *v4; // rax\n  _QWORD *v5; // rsi\n  __int64 v6; // rbx\n  __int64 v7; // rax\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  (*(void (**)(void))(*(_QWORD *)a1 + 128LL))();\n  v4 = (_QWORD *)(*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 472LL))(a1, 0);\n  v5 = v4;\n  if ( v4 )\n  {\n    v6 = *v4;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, a2 - 1.0, 0.0);\n    (*(void (__fastcall **)(_QWORD *, __int64))(v6 + 184))(v5, v7);\n  }\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, a3 + 1.0, 0.0);\n    return (_QWORD *)(*(__int64 (__fastcall **)(_QWORD *, __int64))(v10 + 184))(v9, v11);\n  }\n  return result;\n}", "assembly": "; \n; GJGroundLayer::updateShadowXPos from 0x140387aa0 to 0x140387b64 (196 bytes)\n; \n; 9 xrefs:\n; > GJBaseGameLayer::updateGroundShadows @ 0x1403125ca\n; > GJBaseGameLayer::updateGroundShadows @ 0x1403125e8\n; > GJBaseGameLayer::preUpdateVisibility @ 0x14033f527\n; > GJBaseGameLayer::preUpdateVisibility @ 0x14033f545\n; > GJBaseGameLayer::resetLevelVariables @ 0x1403456b9\n; > GJBaseGameLayer::resetLevelVariables @ 0x1403456d7\n; > <???> @ 0x1408bd9a8\n; > <???> @ 0x1408bd9b8\n; > <???> @ 0x140922bb0\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_10], rbx                                              ; +0x0, 0x140387aa0\npush    rdi                                                            ; +0x5, 0x140387aa5\nsub     rsp, 40h                                                       ; +0x6, 0x140387aa6\nmov     rax, [rcx]                                                     ; +0xa, 0x140387aaa\nmov     rdi, rcx                                                       ; +0xd, 0x140387aad\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x10, 0x140387ab0\nmovaps  xmm6, xmm2                                                     ; +0x15, 0x140387ab5\nmov     [rsp+48h+arg_8], rsi                                           ; +0x18, 0x140387ab8\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x1d, 0x140387abd\nmovaps  xmm7, xmm1                                                     ; +0x22, 0x140387ac2\ncall    qword ptr [rax+80h]                                            ; +0x25, 0x140387ac5\nmov     rax, [rdi]                                                     ; +0x2b, 0x140387acb\nxor     edx, edx                                                       ; +0x2e, 0x140387ace\nmov     rcx, rdi                                                       ; +0x30, 0x140387ad0\ncall    qword ptr [rax+1D8h]                                           ; +0x33, 0x140387ad3\nmov     rsi, rax                                                       ; +0x39, 0x140387ad9\ntest    rax, rax                                                       ; +0x3c, 0x140387adc\njz      short loc_140387B09                                            ; +0x3f, 0x140387adf\nsubss   xmm7, cs:flt_140835080                                         ; +0x41, 0x140387ae1\nmov     rbx, [rax]                                                     ; +0x49, 0x140387ae9\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x4c, 0x140387aec\nxorps   xmm2, xmm2                                                     ; +0x51, 0x140387af1\nmovaps  xmm1, xmm7                                                     ; +0x54, 0x140387af4\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x57, 0x140387af7\nmov     rdx, rax                                                       ; +0x5d, 0x140387afd\nmov     rcx, rsi                                                       ; +0x60, 0x140387b00\ncall    qword ptr [rbx+0B8h]                                           ; +0x63, 0x140387b03\nmov     rax, [rdi]                                                     ; +0x69, 0x140387b09\nmov     edx, 1                                                         ; +0x6c, 0x140387b0c\nmov     rcx, rdi                                                       ; +0x71, 0x140387b11\ncall    qword ptr [rax+1D8h]                                           ; +0x74, 0x140387b14\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x7a, 0x140387b1a\nmov     rdi, rax                                                       ; +0x7f, 0x140387b1f\nmov     rsi, [rsp+48h+arg_8]                                           ; +0x82, 0x140387b22\ntest    rax, rax                                                       ; +0x87, 0x140387b27\njz      short loc_140387B54                                            ; +0x8a, 0x140387b2a\naddss   xmm6, cs:flt_140835080                                         ; +0x8c, 0x140387b2c\nmov     rbx, [rax]                                                     ; +0x94, 0x140387b34\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x97, 0x140387b37\nxorps   xmm2, xmm2                                                     ; +0x9c, 0x140387b3c\nmovaps  xmm1, xmm6                                                     ; +0x9f, 0x140387b3f\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xa2, 0x140387b42\nmov     rdx, rax                                                       ; +0xa8, 0x140387b48\nmov     rcx, rdi                                                       ; +0xab, 0x140387b4b\ncall    qword ptr [rbx+0B8h]                                           ; +0xae, 0x140387b4e\nmov     rbx, [rsp+48h+arg_10]                                          ; +0xb4, 0x140387b54\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0xb9, 0x140387b59\nadd     rsp, 40h                                                       ; +0xbe, 0x140387b5e\npop     rdi                                                            ; +0xc2, 0x140387b62\nretn                                                                   ; +0xc3, 0x140387b63", "xrefs": ["GJBaseGameLayer::updateGroundShadows @ 0x1403125ca", "GJBaseGameLayer::updateGroundShadows @ 0x1403125e8", "GJBaseGameLayer::preUpdateVisibility @ 0x14033f527", "GJBaseGameLayer::preUpdateVisibility @ 0x14033f545", "GJBaseGameLayer::resetLevelVariables @ 0x1403456b9", "GJBaseGameLayer::resetLevelVariables @ 0x1403456d7", "<???> @ 0x1408bd9a8", "<???> @ 0x1408bd9b8", "<???> @ 0x140922bb0"], "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"}