{"type": "func", "start": 5372392144, "end": 5372392441, "name": "GJItemIcon::createStoreItem", "pseudocode": "// \n// GJItemIcon::createStoreItem from 0x1403832d0 to 0x1403833f9 (297 bytes)\n// \n// 3 xrefs:\n// > GJShopLayer::init @ 0x1403b157e\n// > PurchaseItemPopup::init @ 0x1403b52b2\n// > <???> @ 0x140922a00\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:06 +0000\n// \n\n// Hidden C++ exception states: #wind=2\nchar *__fastcall GJItemIcon::createStoreItem(int a1, int a2, char a3)\n{\n  char *v6; // r15\n  __int16 v8; // [rsp+50h] [rbp-48h] BYREF\n  char v9; // [rsp+52h] [rbp-46h]\n  __int16 v10; // [rsp+60h] [rbp-38h] BYREF\n  char v11; // [rsp+62h] [rbp-36h]\n\n  v8 = -256;\n  v6 = (char *)operator new(0x278u);\n  cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v6);\n  *(_QWORD *)v6 = &GJItemIcon::`vftable';\n  *((_QWORD *)v6 + 40) = &GJItemIcon::`vftable';\n  *((_QWORD *)v6 + 43) = &GJItemIcon::`vftable';\n  *((_QWORD *)v6 + 75) = 0;\n  *((_DWORD *)v6 + 152) = 0;\n  cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v6 + 612));\n  v6[620] = 0;\n  *((_QWORD *)v6 + 78) = 0;\n  v9 = -1;\n  v10 = -1;\n  v11 = -1;\n  if ( (unsigned __int8)GJItemIcon::init((_DWORD)v6, a1, a2, (unsigned int)&v10, (__int64)&v8, a3) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);\n    return v6;\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v6 + 8LL))(v6, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; GJItemIcon::createStoreItem from 0x1403832d0 to 0x1403833f9 (297 bytes)\n; \n; 3 xrefs:\n; > GJShopLayer::init @ 0x1403b157e\n; > PurchaseItemPopup::init @ 0x1403b52b2\n; > <???> @ 0x140922a00\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:06 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1403832d0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1403832d5\nmov     [rsp+arg_18], r9                                               ; +0xa, 0x1403832da\npush    rsi                                                            ; +0xf, 0x1403832df\npush    rdi                                                            ; +0x10, 0x1403832e0\npush    r12                                                            ; +0x11, 0x1403832e1\npush    r14                                                            ; +0x13, 0x1403832e3\npush    r15                                                            ; +0x15, 0x1403832e5\nsub     rsp, 70h                                                       ; +0x17, 0x1403832e7\nmovzx   esi, r8b                                                       ; +0x1b, 0x1403832eb\nmov     ebp, edx                                                       ; +0x1f, 0x1403832ef\nmov     r14d, ecx                                                      ; +0x21, 0x1403832f1\nmov     [rsp+98h+var_48], 0FF00h                                       ; +0x24, 0x1403832f4\nmovzx   edi, cs:word_140703470                                         ; +0x2b, 0x1403832fb\nmovzx   ebx, cs:byte_140703472                                         ; +0x32, 0x140383302\nmov     ecx, 278h; Size                                                ; +0x39, 0x140383309\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3e, 0x14038330e\nmov     r15, rax                                                       ; +0x43, 0x140383313\nmov     [rsp+98h+arg_18], rax                                          ; +0x46, 0x140383316\nmov     rcx, rax                                                       ; +0x4e, 0x14038331e\ncall    cs:??0CCSprite@cocos2d@@QEAA@XZ; cocos2d::CCSprite::CCSprite(void) ; +0x51, 0x140383321\nnop                                                                    ; +0x57, 0x140383327\nlea     rax, ??_7GJItemIcon@@6B@; const GJItemIcon::`vftable'          ; +0x58, 0x140383328\nmov     [r15], rax                                                     ; +0x5f, 0x14038332f\nlea     rax, ??_7GJItemIcon@@6B@_0; const GJItemIcon::`vftable'        ; +0x62, 0x140383332\nmov     [r15+140h], rax                                                ; +0x69, 0x140383339\nlea     rax, ??_7GJItemIcon@@6B@_1; const GJItemIcon::`vftable'        ; +0x70, 0x140383340\nmov     [r15+158h], rax                                                ; +0x77, 0x140383347\nxor     r12d, r12d                                                     ; +0x7e, 0x14038334e\nmov     [r15+258h], r12                                                ; +0x81, 0x140383351\nmov     [r15+260h], r12d                                               ; +0x88, 0x140383358\nlea     rcx, [r15+264h]                                                ; +0x8f, 0x14038335f\ncall    cs:??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)   ; +0x96, 0x140383366\nmov     [r15+26Ch], r12b                                               ; +0x9c, 0x14038336c\nmov     [r15+270h], r12                                                ; +0xa3, 0x140383373\nmovzx   eax, [rsp+98h+var_48]                                          ; +0xaa, 0x14038337a\nmov     [rsp+98h+var_48], ax                                           ; +0xaf, 0x14038337f\nmov     [rsp+98h+var_46], 0FFh                                         ; +0xb4, 0x140383384\nmov     [rsp+98h+var_38], di                                           ; +0xb9, 0x140383389\nmov     [rsp+98h+var_36], bl                                           ; +0xbe, 0x14038338e\nmov     [rsp+98h+var_60], r12b                                         ; +0xc2, 0x140383392\nmov     [rsp+98h+var_70], sil                                          ; +0xc7, 0x140383397\nlea     rax, [rsp+98h+var_48]                                          ; +0xcc, 0x14038339c\nmov     [rsp+98h+var_78], rax                                          ; +0xd1, 0x1403833a1\nlea     r9, [rsp+98h+var_38]                                           ; +0xd6, 0x1403833a6\nmov     r8d, ebp                                                       ; +0xdb, 0x1403833ab\nmov     edx, r14d                                                      ; +0xde, 0x1403833ae\nmov     rcx, r15                                                       ; +0xe1, 0x1403833b1\ncall    GJItemIcon__init                                               ; +0xe4, 0x1403833b4\ntest    al, al                                                         ; +0xe9, 0x1403833b9\njz      short loc_1403833CB                                            ; +0xeb, 0x1403833bb\nmov     rcx, r15                                                       ; +0xed, 0x1403833bd\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xf0, 0x1403833c0\nmov     rax, r15                                                       ; +0xf6, 0x1403833c6\njmp     short loc_1403833E0                                            ; +0xf9, 0x1403833c9\nmov     rcx, [r15]                                                     ; +0xfb, 0x1403833cb\nmov     r8, [rcx+8]                                                    ; +0xfe, 0x1403833ce\nmov     edx, 1                                                         ; +0x102, 0x1403833d2\nmov     rcx, r15                                                       ; +0x107, 0x1403833d7\ncall    r8                                                             ; +0x10a, 0x1403833da\nmov     rax, r12                                                       ; +0x10d, 0x1403833dd\nlea     r11, [rsp+98h+var_28]                                          ; +0x110, 0x1403833e0\nmov     rbx, [r11+30h]                                                 ; +0x115, 0x1403833e5\nmov     rbp, [r11+38h]                                                 ; +0x119, 0x1403833e9\nmov     rsp, r11                                                       ; +0x11d, 0x1403833ed\npop     r15                                                            ; +0x120, 0x1403833f0\npop     r14                                                            ; +0x122, 0x1403833f2\npop     r12                                                            ; +0x124, 0x1403833f4\npop     rdi                                                            ; +0x126, 0x1403833f6\npop     rsi                                                            ; +0x127, 0x1403833f7\nretn                                                                   ; +0x128, 0x1403833f8", "xrefs": ["GJShopLayer::init @ 0x1403b157e", "PurchaseItemPopup::init @ 0x1403b52b2", "<???> @ 0x140922a00"], "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"}