{"type": "func", "start": 5372385600, "end": 5372385687, "name": "GJGarageLayer::onShop", "pseudocode": "// \n// GJGarageLayer::onShop from 0x140381940 to 0x140381997 (87 bytes)\n// \n// 3 xrefs:\n// > GJGarageLayer::init @ 0x14037c49c\n// > <???> @ 0x14092294c\n// > <???> @ 0x140922958\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:05 +0000\n// \n\nchar __fastcall GJGarageLayer::onShop(__int64 a1)\n{\n  struct cocos2d::CCScene *v2; // rax\n  struct cocos2d::CCScene *v3; // rbx\n  __int64 v4; // rcx\n  cocos2d::CCDirector *v5; // rax\n  char result; // al\n\n  v2 = (struct cocos2d::CCScene *)GJShopLayer::scene(0);\n  v3 = cocos2d::CCTransitionMoveInT::create(0.5, v2);\n  v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);\n  result = cocos2d::CCDirector::replaceScene(v5, v3);\n  if ( result )\n    return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n  return result;\n}", "assembly": "; \n; GJGarageLayer::onShop from 0x140381940 to 0x140381997 (87 bytes)\n; \n; 3 xrefs:\n; > GJGarageLayer::init @ 0x14037c49c\n; > <???> @ 0x14092294c\n; > <???> @ 0x140922958\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:05 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140381940\npush    rdi                                                            ; +0x5, 0x140381945\nsub     rsp, 20h                                                       ; +0x6, 0x140381946\nmov     rdi, rcx                                                       ; +0xa, 0x14038194a\nxor     ecx, ecx                                                       ; +0xd, 0x14038194d\ncall    GJShopLayer__scene                                             ; +0xf, 0x14038194f\nmovss   xmm0, cs:dword_140834F20                                       ; +0x14, 0x140381954\nmov     rdx, rax                                                       ; +0x1c, 0x14038195c\ncall    cs:?create@CCTransitionMoveInT@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionMoveInT::create(float,cocos2d::CCScene *) ; +0x1f, 0x14038195f\nmov     rbx, rax                                                       ; +0x25, 0x140381965\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x28, 0x140381968\nmov     rcx, rax                                                       ; +0x2e, 0x14038196e\nmov     rdx, rbx                                                       ; +0x31, 0x140381971\ncall    cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x34, 0x140381974\ntest    al, al                                                         ; +0x3a, 0x14038197a\njz      short loc_14038198C                                            ; +0x3c, 0x14038197c\nmov     rax, [rdi]                                                     ; +0x3e, 0x14038197e\nxor     edx, edx                                                       ; +0x41, 0x140381981\nmov     rcx, rdi                                                       ; +0x43, 0x140381983\ncall    qword ptr [rax+3E0h]                                           ; +0x46, 0x140381986\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4c, 0x14038198c\nadd     rsp, 20h                                                       ; +0x51, 0x140381991\npop     rdi                                                            ; +0x55, 0x140381995\nretn                                                                   ; +0x56, 0x140381996", "xrefs": ["GJGarageLayer::init @ 0x14037c49c", "<???> @ 0x14092294c", "<???> @ 0x140922958"], "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"}