{"type": "func", "start": 5372573744, "end": 5372574114, "name": "GJShopLayer::scene", "pseudocode": "// \n// GJShopLayer::scene from 0x1403af830 to 0x1403af9a2 (370 bytes)\n// \n// 4 xrefs:\n// > GJGarageLayer::onShop @ 0x14038194f\n// > SecretRewardsLayer::onShop @ 0x14056c2f9\n// > SecretRewardsLayer::dialogClosed @ 0x14056c4f0\n// > <???> @ 0x140923bb8\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:22 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall GJShopLayer::scene(__int64 a1, __int64 a2, __int64 a3, __int64 a4)\n{\n  unsigned int v4; // ebx\n  __int64 v5; // rsi\n  __int64 v6; // rcx\n  cocos2d::CCLayer *v7; // rdi\n\n  v4 = a1;\n  v5 = cocos2d::CCScene::create(a1, a2, a3, a4);\n  *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v6) + 232) = v5;\n  v7 = (cocos2d::CCLayer *)operator new(0x218u);\n  cocos2d::CCLayer::CCLayer(v7);\n  *(_QWORD *)v7 = &GJShopLayer::`vftable';\n  *((_QWORD *)v7 + 40) = &GJShopLayer::`vftable';\n  *((_QWORD *)v7 + 41) = &GJShopLayer::`vftable';\n  *((_QWORD *)v7 + 42) = &GJShopLayer::`vftable';\n  *((_QWORD *)v7 + 43) = &GJShopLayer::`vftable';\n  *((_QWORD *)v7 + 44) = &GJShopLayer::`vftable';\n  *((_QWORD *)v7 + 51) = &GJShopLayer::`vftable';\n  *((_QWORD *)v7 + 52) = &GJShopLayer::`vftable';\n  *((_QWORD *)v7 + 53) = &GJShopLayer::`vftable';\n  *((_BYTE *)v7 + 432) = 0;\n  *((_QWORD *)v7 + 55) = 0;\n  *((_QWORD *)v7 + 56) = 0;\n  *((_DWORD *)v7 + 114) = 0;\n  *((_OWORD *)v7 + 29) = 0;\n  *((_QWORD *)v7 + 60) = 0;\n  *((_QWORD *)v7 + 61) = 15;\n  *((_BYTE *)v7 + 464) = 0;\n  *((_QWORD *)v7 + 62) = 0;\n  *((_QWORD *)v7 + 63) = 0;\n  *((_WORD *)v7 + 256) = 0;\n  *((_QWORD *)v7 + 65) = 0;\n  *((_QWORD *)v7 + 66) = 0;\n  if ( (unsigned __int8)GJShopLayer::init(v7, v4) )\n  {\n    cocos2d::CCObject::autorelease(v7);\n  }\n  else\n  {\n    (*(void (__fastcall **)(cocos2d::CCLayer *, __int64))(*(_QWORD *)v7 + 8LL))(v7, 1);\n    v7 = nullptr;\n  }\n  (*(void (__fastcall **)(__int64, cocos2d::CCLayer *))(*(_QWORD *)v5 + 464LL))(v5, v7);\n  return v5;\n}", "assembly": "; \n; GJShopLayer::scene from 0x1403af830 to 0x1403af9a2 (370 bytes)\n; \n; 4 xrefs:\n; > GJGarageLayer::onShop @ 0x14038194f\n; > SecretRewardsLayer::onShop @ 0x14056c2f9\n; > SecretRewardsLayer::dialogClosed @ 0x14056c4f0\n; > <???> @ 0x140923bb8\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:22 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1403af830\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1403af835\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1403af83a\npush    rdi                                                            ; +0xf, 0x1403af83f\nsub     rsp, 20h                                                       ; +0x10, 0x1403af840\nmov     ebx, ecx                                                       ; +0x14, 0x1403af844\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x16, 0x1403af846\nmov     rsi, rax                                                       ; +0x1c, 0x1403af84c\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x1f, 0x1403af84f\nmov     [rax+0E8h], rsi                                                ; +0x25, 0x1403af855\nmov     ecx, 218h; Size                                                ; +0x2c, 0x1403af85c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x31, 0x1403af861\nmov     rdi, rax                                                       ; +0x36, 0x1403af866\nmov     [rsp+28h+arg_8], rax                                           ; +0x39, 0x1403af869\nmov     rcx, rax                                                       ; +0x3e, 0x1403af86e\ncall    cs:??0CCLayer@cocos2d@@QEAA@XZ; cocos2d::CCLayer::CCLayer(void) ; +0x41, 0x1403af871\nlea     rax, ??_7GJShopLayer@@6B@; const GJShopLayer::`vftable'        ; +0x47, 0x1403af877\nmov     [rdi], rax                                                     ; +0x4e, 0x1403af87e\nlea     rax, ??_7GJShopLayer@@6B@_0; const GJShopLayer::`vftable'      ; +0x51, 0x1403af881\nmov     [rdi+140h], rax                                                ; +0x58, 0x1403af888\nlea     rax, ??_7GJShopLayer@@6B@_1; const GJShopLayer::`vftable'      ; +0x5f, 0x1403af88f\nmov     [rdi+148h], rax                                                ; +0x66, 0x1403af896\nlea     rax, ??_7GJShopLayer@@6B@_2; const GJShopLayer::`vftable'      ; +0x6d, 0x1403af89d\nmov     [rdi+150h], rax                                                ; +0x74, 0x1403af8a4\nlea     rax, ??_7GJShopLayer@@6B@_3; const GJShopLayer::`vftable'      ; +0x7b, 0x1403af8ab\nmov     [rdi+158h], rax                                                ; +0x82, 0x1403af8b2\nlea     rax, ??_7GJShopLayer@@6B@_4; const GJShopLayer::`vftable'      ; +0x89, 0x1403af8b9\nmov     [rdi+160h], rax                                                ; +0x90, 0x1403af8c0\nlea     rax, ??_7GJShopLayer@@6B@_5; const GJShopLayer::`vftable'      ; +0x97, 0x1403af8c7\nmov     [rdi+198h], rax                                                ; +0x9e, 0x1403af8ce\nlea     rax, ??_7GJShopLayer@@6B@_6; const GJShopLayer::`vftable'      ; +0xa5, 0x1403af8d5\nmov     [rdi+1A0h], rax                                                ; +0xac, 0x1403af8dc\nlea     rax, ??_7GJShopLayer@@6B@_7; const GJShopLayer::`vftable'      ; +0xb3, 0x1403af8e3\nmov     [rdi+1A8h], rax                                                ; +0xba, 0x1403af8ea\nmov     byte ptr [rdi+1B0h], 0                                         ; +0xc1, 0x1403af8f1\nxor     ebp, ebp                                                       ; +0xc8, 0x1403af8f8\nmov     [rdi+1B8h], rbp                                                ; +0xca, 0x1403af8fa\nmov     [rdi+1C0h], rbp                                                ; +0xd1, 0x1403af901\nmov     [rdi+1C8h], ebp                                                ; +0xd8, 0x1403af908\nxorps   xmm0, xmm0                                                     ; +0xde, 0x1403af90e\nmovups  xmmword ptr [rdi+1D0h], xmm0                                   ; +0xe1, 0x1403af911\nmov     [rdi+1E0h], rbp                                                ; +0xe8, 0x1403af918\nmov     qword ptr [rdi+1E8h], 0Fh                                      ; +0xef, 0x1403af91f\nmov     [rdi+1D0h], bpl                                                ; +0xfa, 0x1403af92a\nmov     [rdi+1F0h], rbp                                                ; +0x101, 0x1403af931\nmov     [rdi+1F8h], rbp                                                ; +0x108, 0x1403af938\nmov     [rdi+200h], bp                                                 ; +0x10f, 0x1403af93f\nmov     [rdi+208h], rbp                                                ; +0x116, 0x1403af946\nmov     [rdi+210h], rbp                                                ; +0x11d, 0x1403af94d\nmov     edx, ebx                                                       ; +0x124, 0x1403af954\nmov     rcx, rdi                                                       ; +0x126, 0x1403af956\ncall    GJShopLayer__init                                              ; +0x129, 0x1403af959\nmov     rcx, rdi                                                       ; +0x12e, 0x1403af95e\ntest    al, al                                                         ; +0x131, 0x1403af961\njz      short loc_1403AF96D                                            ; +0x133, 0x1403af963\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x135, 0x1403af965\njmp     short loc_1403AF97B                                            ; +0x13b, 0x1403af96b\nmov     rax, [rdi]                                                     ; +0x13d, 0x1403af96d\nmov     edx, 1                                                         ; +0x140, 0x1403af970\ncall    qword ptr [rax+8]                                              ; +0x145, 0x1403af975\nmov     rdi, rbp                                                       ; +0x148, 0x1403af978\nmov     rax, [rsi]                                                     ; +0x14b, 0x1403af97b\nmov     rdx, rdi                                                       ; +0x14e, 0x1403af97e\nmov     rcx, rsi                                                       ; +0x151, 0x1403af981\ncall    qword ptr [rax+1D0h]                                           ; +0x154, 0x1403af984\nmov     rax, rsi                                                       ; +0x15a, 0x1403af98a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x15d, 0x1403af98d\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x162, 0x1403af992\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x167, 0x1403af997\nadd     rsp, 20h                                                       ; +0x16c, 0x1403af99c\npop     rdi                                                            ; +0x170, 0x1403af9a0\nretn                                                                   ; +0x171, 0x1403af9a1", "xrefs": ["GJGarageLayer::onShop @ 0x14038194f", "SecretRewardsLayer::onShop @ 0x14056c2f9", "SecretRewardsLayer::dialogClosed @ 0x14056c4f0", "<???> @ 0x140923bb8"], "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"}