{"type": "func", "start": 4298171456, "end": 4298171757, "name": "GJShopLayer::scene", "pseudocode": "// \n// GJShopLayer::scene from 0x10030e440 to 0x10030e56d (301 bytes)\n// \n// 4 xrefs:\n// > GJGarageLayer::onShop @ 0x1003554b4\n// > SecretRewardsLayer::onShop @ 0x10070f537\n// > SecretRewardsLayer::showShop @ 0x100716d4b\n// > SecretRewardsLayer::dialogClosed @ 0x100716e86\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:37 +0000\n// \n\n_BYTE *__fastcall GJShopLayer::scene(__int64 a1, __int64 a2)\n{\n  _BYTE *v2; // rbx\n  char *v3; // r14\n\n  v2 = cocos2d::CCScene::create();\n  *(_QWORD *)(AppDelegate::get(a1, a2) + 72) = v2;\n  v3 = (char *)operator new(0x210u);\n  cocos2d::CCLayer::CCLayer(v3);\n  *(_QWORD *)v3 = off_100B1B458;\n  *((_QWORD *)v3 + 40) = off_100B1B900;\n  *((_QWORD *)v3 + 41) = &off_100B1B970;\n  *((_QWORD *)v3 + 42) = off_100B1B988;\n  *((_QWORD *)v3 + 43) = off_100B1B9A8;\n  *((_QWORD *)v3 + 44) = off_100B1B9D0;\n  *((_QWORD *)v3 + 51) = &off_100B1BA00;\n  *((_QWORD *)v3 + 52) = &off_100B1BA18;\n  *((_QWORD *)v3 + 53) = off_100B1BA30;\n  v3[432] = 0;\n  *(_OWORD *)(v3 + 440) = 0;\n  *((_DWORD *)v3 + 114) = 0;\n  *((_OWORD *)v3 + 29) = 0;\n  *((_OWORD *)v3 + 30) = 0;\n  *(_OWORD *)(v3 + 490) = 0;\n  *((_OWORD *)v3 + 32) = 0;\n  if ( (unsigned __int8)GJShopLayer::init(v3, (unsigned int)a1) )\n  {\n    cocos2d::CCObject::autorelease(v3);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v3 + 16LL))(v3);\n    v3 = nullptr;\n  }\n  (*(void (__fastcall **)(_BYTE *, char *))(*(_QWORD *)v2 + 456LL))(v2, v3);\n  return v2;\n}", "assembly": "; \n; GJShopLayer::scene from 0x10030e440 to 0x10030e56d (301 bytes)\n; \n; 4 xrefs:\n; > GJGarageLayer::onShop @ 0x1003554b4\n; > SecretRewardsLayer::onShop @ 0x10070f537\n; > SecretRewardsLayer::showShop @ 0x100716d4b\n; > SecretRewardsLayer::dialogClosed @ 0x100716e86\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:37 +0000\n; \npush    rbp                                                            ; +0x0, 0x10030e440\nmov     rbp, rsp                                                       ; +0x1, 0x10030e441\npush    r15                                                            ; +0x4, 0x10030e444\npush    r14                                                            ; +0x6, 0x10030e446\npush    rbx                                                            ; +0x8, 0x10030e448\npush    rax                                                            ; +0x9, 0x10030e449\nmov     r15d, edi                                                      ; +0xa, 0x10030e44a\ncall    cocos2d__CCScene__create                                       ; +0xd, 0x10030e44d\nmov     rbx, rax                                                       ; +0x12, 0x10030e452\ncall    AppDelegate__get                                               ; +0x15, 0x10030e455\nmov     [rax+48h], rbx                                                 ; +0x1a, 0x10030e45a\nmov     edi, 210h; __sz                                                ; +0x1e, 0x10030e45e\ncall    __Znwm; operator new(ulong)                                    ; +0x23, 0x10030e463\nmov     r14, rax                                                       ; +0x28, 0x10030e468\nmov     rdi, rax                                                       ; +0x2b, 0x10030e46b\ncall    cocos2d__CCLayer__CCLayer                                      ; +0x2e, 0x10030e46e\nlea     rax, off_100B1B458                                             ; +0x33, 0x10030e473\nmov     [r14], rax                                                     ; +0x3a, 0x10030e47a\nlea     rax, off_100B1B900                                             ; +0x3d, 0x10030e47d\nmov     [r14+140h], rax                                                ; +0x44, 0x10030e484\nlea     rax, off_100B1B970                                             ; +0x4b, 0x10030e48b\nmov     [r14+148h], rax                                                ; +0x52, 0x10030e492\nlea     rax, off_100B1B988                                             ; +0x59, 0x10030e499\nmov     [r14+150h], rax                                                ; +0x60, 0x10030e4a0\nlea     rax, off_100B1B9A8                                             ; +0x67, 0x10030e4a7\nmov     [r14+158h], rax                                                ; +0x6e, 0x10030e4ae\nlea     rax, off_100B1B9D0                                             ; +0x75, 0x10030e4b5\nmov     [r14+160h], rax                                                ; +0x7c, 0x10030e4bc\nlea     rax, off_100B1BA00                                             ; +0x83, 0x10030e4c3\nmov     [r14+198h], rax                                                ; +0x8a, 0x10030e4ca\nlea     rax, off_100B1BA18                                             ; +0x91, 0x10030e4d1\nmov     [r14+1A0h], rax                                                ; +0x98, 0x10030e4d8\nlea     rax, off_100B1BA30                                             ; +0x9f, 0x10030e4df\nmov     [r14+1A8h], rax                                                ; +0xa6, 0x10030e4e6\nmov     byte ptr [r14+1B0h], 0                                         ; +0xad, 0x10030e4ed\nxorps   xmm0, xmm0                                                     ; +0xb5, 0x10030e4f5\nmovups  xmmword ptr [r14+1B8h], xmm0                                   ; +0xb8, 0x10030e4f8\nmov     dword ptr [r14+1C8h], 0                                        ; +0xc0, 0x10030e500\nmovups  xmmword ptr [r14+1D0h], xmm0                                   ; +0xcb, 0x10030e50b\nmovups  xmmword ptr [r14+1E0h], xmm0                                   ; +0xd3, 0x10030e513\nmovups  xmmword ptr [r14+1EAh], xmm0                                   ; +0xdb, 0x10030e51b\nmovups  xmmword ptr [r14+200h], xmm0                                   ; +0xe3, 0x10030e523\nmov     rdi, r14                                                       ; +0xeb, 0x10030e52b\nmov     esi, r15d                                                      ; +0xee, 0x10030e52e\ncall    GJShopLayer__init                                              ; +0xf1, 0x10030e531\ntest    al, al                                                         ; +0xf6, 0x10030e536\njz      short loc_10030E544                                            ; +0xf8, 0x10030e538\nmov     rdi, r14                                                       ; +0xfa, 0x10030e53a\ncall    cocos2d__CCObject__autorelease                                 ; +0xfd, 0x10030e53d\njmp     short loc_10030E550                                            ; +0x102, 0x10030e542\nmov     rax, [r14]                                                     ; +0x104, 0x10030e544\nmov     rdi, r14                                                       ; +0x107, 0x10030e547\ncall    qword ptr [rax+10h]                                            ; +0x10a, 0x10030e54a\nxor     r14d, r14d                                                     ; +0x10d, 0x10030e54d\nmov     rax, [rbx]                                                     ; +0x110, 0x10030e550\nmov     rdi, rbx                                                       ; +0x113, 0x10030e553\nmov     rsi, r14                                                       ; +0x116, 0x10030e556\ncall    qword ptr [rax+1C8h]                                           ; +0x119, 0x10030e559\nmov     rax, rbx                                                       ; +0x11f, 0x10030e55f\nadd     rsp, 8                                                         ; +0x122, 0x10030e562\npop     rbx                                                            ; +0x126, 0x10030e566\npop     r14                                                            ; +0x127, 0x10030e567\npop     r15                                                            ; +0x129, 0x10030e569\npop     rbp                                                            ; +0x12b, 0x10030e56b\nretn                                                                   ; +0x12c, 0x10030e56c", "xrefs": ["GJGarageLayer::onShop @ 0x1003554b4", "SecretRewardsLayer::onShop @ 0x10070f537", "SecretRewardsLayer::showShop @ 0x100716d4b", "SecretRewardsLayer::dialogClosed @ 0x100716e86"], "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"}