{"type": "func", "start": 4298462368, "end": 4298462450, "name": "GJGarageLayer::onShop", "pseudocode": "// \n// GJGarageLayer::onShop from 0x1003554a0 to 0x1003554f2 (82 bytes)\n// \n// 1 xrefs:\n// > GJGarageLayer::init @ 0x100353404\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 12:28:51 +0000\n// \n\n__int64 __fastcall GJGarageLayer::onShop(__int64 a1, __int64 a2)\n{\n  __int64 v2; // r14\n  _BYTE *v3; // rax\n  _QWORD *v4; // rax\n  __int64 result; // rax\n\n  v2 = cocos2d::CCDirector::sharedDirector(a1, a2);\n  v3 = GJShopLayer::scene(0, a2);\n  v4 = cocos2d::CCTransitionMoveInT::create((__int64)v3, 0.5);\n  result = cocos2d::CCDirector::replaceScene(v2, v4);\n  if ( (_BYTE)result )\n    return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);\n  return result;\n}", "assembly": "; \n; GJGarageLayer::onShop from 0x1003554a0 to 0x1003554f2 (82 bytes)\n; \n; 1 xrefs:\n; > GJGarageLayer::init @ 0x100353404\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 12:28:51 +0000\n; \npush    rbp                                                            ; +0x0, 0x1003554a0\nmov     rbp, rsp                                                       ; +0x1, 0x1003554a1\npush    r14                                                            ; +0x4, 0x1003554a4\npush    rbx                                                            ; +0x6, 0x1003554a6\nmov     rbx, rdi                                                       ; +0x7, 0x1003554a7\ncall    cocos2d__CCDirector__sharedDirector                            ; +0xa, 0x1003554aa\nmov     r14, rax                                                       ; +0xf, 0x1003554af\nxor     edi, edi                                                       ; +0x12, 0x1003554b2\ncall    GJShopLayer__scene                                             ; +0x14, 0x1003554b4\nmovss   xmm0, cs:dword_100A03578                                       ; +0x19, 0x1003554b9\nmov     rdi, rax                                                       ; +0x21, 0x1003554c1\ncall    cocos2d__CCTransitionMoveInT__create                           ; +0x24, 0x1003554c4\nmov     rdi, r14                                                       ; +0x29, 0x1003554c9\nmov     rsi, rax                                                       ; +0x2c, 0x1003554cc\ncall    cocos2d__CCDirector__replaceScene                              ; +0x2f, 0x1003554cf\ntest    al, al                                                         ; +0x34, 0x1003554d4\njz      short loc_1003554ED                                            ; +0x36, 0x1003554d6\nmov     rax, [rbx]                                                     ; +0x38, 0x1003554d8\nmov     rax, [rax+430h]                                                ; +0x3b, 0x1003554db\nmov     rdi, rbx                                                       ; +0x42, 0x1003554e2\nxor     esi, esi                                                       ; +0x45, 0x1003554e5\npop     rbx                                                            ; +0x47, 0x1003554e7\npop     r14                                                            ; +0x48, 0x1003554e8\npop     rbp                                                            ; +0x4a, 0x1003554ea\njmp     rax                                                            ; +0x4b, 0x1003554eb\npop     rbx                                                            ; +0x4d, 0x1003554ed\npop     r14                                                            ; +0x4e, 0x1003554ee\npop     rbp                                                            ; +0x50, 0x1003554f0\nretn                                                                   ; +0x51, 0x1003554f1", "xrefs": ["GJGarageLayer::init @ 0x100353404"], "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"}