{"type": "func", "start": 5371326080, "end": 5371326229, "name": "GJGroundLayer::updateShadows", "pseudocode": "// \n// GJGroundLayer::updateShadows from 0x14027ee80 to 0x14027ef15 (149 bytes)\n// \n// 6 xrefs:\n// > GJBaseGameLayer::preUpdateVisibility @ 0x140236605\n// > GJBaseGameLayer::preUpdateVisibility @ 0x140236623\n// > GJBaseGameLayer::resetLevelVariables @ 0x14023b71e\n// > GJBaseGameLayer::resetLevelVariables @ 0x14023b73c\n// > GJGroundLayer::scaleGround @ 0x14027edcb\n// > <???> @ 0x1406d128c\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  double v2; // xmm0_8\n  __int64 v3; // rcx\n  cocos2d::CCDirector *v4; // rax\n  float v5; // xmm7_4\n  cocos2d::CCNode *v6; // rax\n  cocos2d::CCNode *v7; // rdi\n  cocos2d::CCNode_vtbl *v8; // rbx\n  const cocos2d::CCPoint *v9; // rax\n\n  v2 = ((double (__fastcall *)(GJGroundLayer *))a1->getScaleX)(a1);\n  v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v3);\n  v5 = **(float **)&cocos2d::CCDirector::getWinSize(v4) / *(float *)&v2;\n  v6 = a1->getChildByTag(a1, 1);\n  v7 = v6;\n  if ( v6 )\n  {\n    v8 = v6->__vftable;\n    cocos2d::CCPoint::CCPoint(*(float *)&v2, v5 + 1.0);\n    v8->setPosition_0(v7, v9);\n  }\n}", "assembly": "; \n; GJGroundLayer::updateShadows from 0x14027ee80 to 0x14027ef15 (149 bytes)\n; \n; 6 xrefs:\n; > GJBaseGameLayer::preUpdateVisibility @ 0x140236605\n; > GJBaseGameLayer::preUpdateVisibility @ 0x140236623\n; > GJBaseGameLayer::resetLevelVariables @ 0x14023b71e\n; > GJBaseGameLayer::resetLevelVariables @ 0x14023b73c\n; > GJGroundLayer::scaleGround @ 0x14027edcb\n; > <???> @ 0x1406d128c\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14027ee80\npush    rdi                                                            ; +0x5, 0x14027ee85\nsub     rsp, 40h                                                       ; +0x6, 0x14027ee86\nmov     rax, [rcx]                                                     ; +0xa, 0x14027ee8a\nmov     rbx, rcx                                                       ; +0xd, 0x14027ee8d\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x10, 0x14027ee90\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x15, 0x14027ee95\ncall    qword ptr [rax+80h]                                            ; +0x1a, 0x14027ee9a\nmovaps  xmm6, xmm0                                                     ; +0x20, 0x14027eea0\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x23, 0x14027eea3\nmov     rcx, rax                                                       ; +0x29, 0x14027eea9\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x2c, 0x14027eeac\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x31, 0x14027eeb1\nmov     edx, 1                                                         ; +0x37, 0x14027eeb7\nmov     rcx, rbx                                                       ; +0x3c, 0x14027eebc\nmovss   xmm7, dword ptr [rax]                                          ; +0x3f, 0x14027eebf\nmov     rax, [rbx]                                                     ; +0x43, 0x14027eec3\ndivss   xmm7, xmm6                                                     ; +0x46, 0x14027eec6\ncall    qword ptr [rax+1C8h]                                           ; +0x4a, 0x14027eeca\nmov     rdi, rax                                                       ; +0x50, 0x14027eed0\ntest    rax, rax                                                       ; +0x53, 0x14027eed3\njz      short loc_14027EF00                                            ; +0x56, 0x14027eed6\naddss   xmm7, cs:flt_140622C24                                         ; +0x58, 0x14027eed8\nmov     rbx, [rax]                                                     ; +0x60, 0x14027eee0\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x63, 0x14027eee3\nxorps   xmm2, xmm2                                                     ; +0x68, 0x14027eee8\nmovaps  xmm1, xmm7                                                     ; +0x6b, 0x14027eeeb\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x6e, 0x14027eeee\nmov     rdx, rax                                                       ; +0x74, 0x14027eef4\nmov     rcx, rdi                                                       ; +0x77, 0x14027eef7\ncall    qword ptr [rbx+0B8h]                                           ; +0x7a, 0x14027eefa\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x80, 0x14027ef00\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x85, 0x14027ef05\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x8a, 0x14027ef0a\nadd     rsp, 40h                                                       ; +0x8f, 0x14027ef0f\npop     rdi                                                            ; +0x93, 0x14027ef13\nretn                                                                   ; +0x94, 0x14027ef14", "xrefs": ["GJBaseGameLayer::preUpdateVisibility @ 0x140236605", "GJBaseGameLayer::preUpdateVisibility @ 0x140236623", "GJBaseGameLayer::resetLevelVariables @ 0x14023b71e", "GJBaseGameLayer::resetLevelVariables @ 0x14023b73c", "GJGroundLayer::scaleGround @ 0x14027edcb", "<???> @ 0x1406d128c"], "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"}