{"type": "func", "start": 4298256176, "end": 4298256428, "name": "GJShopLayer::create", "pseudocode": "// \n// GJShopLayer::create from 0x100322f30 to 0x10032302c (252 bytes)\n// \n// 0 xrefs:\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\nGJShopLayer *__fastcall GJShopLayer::create(ShopType a1)\n{\n  char *v1; // rbx\n\n  v1 = (char *)operator new(0x210u);\n  cocos2d::CCLayer::CCLayer(v1);\n  *(_QWORD *)v1 = off_1009136F8;\n  *((_QWORD *)v1 + 40) = off_100913B90;\n  *((_QWORD *)v1 + 41) = &off_100913C00;\n  *((_QWORD *)v1 + 42) = off_100913C18;\n  *((_QWORD *)v1 + 43) = off_100913C38;\n  *((_QWORD *)v1 + 44) = off_100913C58;\n  *((_QWORD *)v1 + 51) = &off_100913C80;\n  *((_QWORD *)v1 + 52) = &off_100913C98;\n  *((_QWORD *)v1 + 53) = off_100913CB0;\n  v1[432] = 0;\n  *(_OWORD *)(v1 + 440) = 0;\n  *((_DWORD *)v1 + 114) = 0;\n  *((_OWORD *)v1 + 29) = 0;\n  *((_OWORD *)v1 + 30) = 0;\n  *(_OWORD *)(v1 + 490) = 0;\n  *((_OWORD *)v1 + 32) = 0;\n  if ( GJShopLayer::init((GJShopLayer *)v1, a1) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);\n    return nullptr;\n  }\n  return (GJShopLayer *)v1;\n}", "assembly": "; \n; GJShopLayer::create from 0x100322f30 to 0x10032302c (252 bytes)\n; \n; 0 xrefs:\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\npush    rbp                                                            ; +0x0, 0x100322f30\nmov     rbp, rsp                                                       ; +0x1, 0x100322f31\npush    r14                                                            ; +0x4, 0x100322f34\npush    rbx                                                            ; +0x6, 0x100322f36\nmov     r14d, edi                                                      ; +0x7, 0x100322f37\nmov     edi, 210h; __sz                                                ; +0xa, 0x100322f3a\ncall    __Znwm; operator new(ulong)                                    ; +0xf, 0x100322f3f\nmov     rbx, rax                                                       ; +0x14, 0x100322f44\nmov     rdi, rax                                                       ; +0x17, 0x100322f47\ncall    cocos2d__CCLayer__CCLayer                                      ; +0x1a, 0x100322f4a\nlea     rax, off_1009136F8                                             ; +0x1f, 0x100322f4f\nmov     [rbx], rax                                                     ; +0x26, 0x100322f56\nlea     rax, off_100913B90                                             ; +0x29, 0x100322f59\nmov     [rbx+140h], rax                                                ; +0x30, 0x100322f60\nlea     rax, off_100913C00                                             ; +0x37, 0x100322f67\nmov     [rbx+148h], rax                                                ; +0x3e, 0x100322f6e\nlea     rax, off_100913C18                                             ; +0x45, 0x100322f75\nmov     [rbx+150h], rax                                                ; +0x4c, 0x100322f7c\nlea     rax, off_100913C38                                             ; +0x53, 0x100322f83\nmov     [rbx+158h], rax                                                ; +0x5a, 0x100322f8a\nlea     rax, off_100913C58                                             ; +0x61, 0x100322f91\nmov     [rbx+160h], rax                                                ; +0x68, 0x100322f98\nlea     rax, off_100913C80                                             ; +0x6f, 0x100322f9f\nmov     [rbx+198h], rax                                                ; +0x76, 0x100322fa6\nlea     rax, off_100913C98                                             ; +0x7d, 0x100322fad\nmov     [rbx+1A0h], rax                                                ; +0x84, 0x100322fb4\nlea     rax, off_100913CB0                                             ; +0x8b, 0x100322fbb\nmov     [rbx+1A8h], rax                                                ; +0x92, 0x100322fc2\nmov     byte ptr [rbx+1B0h], 0                                         ; +0x99, 0x100322fc9\nxorps   xmm0, xmm0                                                     ; +0xa0, 0x100322fd0\nmovups  xmmword ptr [rbx+1B8h], xmm0                                   ; +0xa3, 0x100322fd3\nmov     dword ptr [rbx+1C8h], 0                                        ; +0xaa, 0x100322fda\nmovups  xmmword ptr [rbx+1D0h], xmm0                                   ; +0xb4, 0x100322fe4\nmovups  xmmword ptr [rbx+1E0h], xmm0                                   ; +0xbb, 0x100322feb\nmovups  xmmword ptr [rbx+1EAh], xmm0                                   ; +0xc2, 0x100322ff2\nmovups  xmmword ptr [rbx+200h], xmm0                                   ; +0xc9, 0x100322ff9\nmov     rdi, rbx                                                       ; +0xd0, 0x100323000\nmov     esi, r14d                                                      ; +0xd3, 0x100323003\ncall    GJShopLayer__init                                              ; +0xd6, 0x100323006\ntest    al, al                                                         ; +0xdb, 0x10032300b\njz      short loc_100323019                                            ; +0xdd, 0x10032300d\nmov     rdi, rbx                                                       ; +0xdf, 0x10032300f\ncall    cocos2d__CCObject__autorelease                                 ; +0xe2, 0x100323012\njmp     short loc_100323024                                            ; +0xe7, 0x100323017\nmov     rax, [rbx]                                                     ; +0xe9, 0x100323019\nmov     rdi, rbx                                                       ; +0xec, 0x10032301c\ncall    qword ptr [rax+10h]                                            ; +0xef, 0x10032301f\nxor     ebx, ebx                                                       ; +0xf2, 0x100323022\nmov     rax, rbx                                                       ; +0xf4, 0x100323024\npop     rbx                                                            ; +0xf7, 0x100323027\npop     r14                                                            ; +0xf8, 0x100323028\npop     rbp                                                            ; +0xfa, 0x10032302a\nretn                                                                   ; +0xfb, 0x10032302b", "xrefs": [], "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"}