{"type": "func", "start": 5371308224, "end": 5371308515, "name": "GJItemIcon::createStoreItem", "pseudocode": "// \n// GJItemIcon::createStoreItem from 0x14027a8c0 to 0x14027a9e3 (291 bytes)\n// \n// 3 xrefs:\n// > GJShopLayer::init @ 0x1402ab247\n// > PurchaseItemPopup::init @ 0x1402aef1c\n// > <???> @ 0x1406d10e8\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\n// Hidden C++ exception states: #wind=2\nGJItemIcon *GJItemIcon::createStoreItem(UnlockType a1, int a2, bool a3, cocos2d::ccColor3B *a4)\n{\n  GJItemIcon *v7; // r15\n  bool v9; // [rsp+30h] [rbp-68h]\n  cocos2d::ccColor3B *v10; // [rsp+40h] [rbp-58h]\n  cocos2d::ccColor3B v11; // [rsp+50h] [rbp-48h] BYREF\n  cocos2d::ccColor3B v12; // [rsp+60h] [rbp-38h] BYREF\n\n  *(_WORD *)&v11.r = -256;\n  v7 = (GJItemIcon *)operator new(0x278u);\n  cocos2d::CCSprite::CCSprite(v7);\n  v7->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJItemIcon_vtbl *)&GJItemIcon::`vftable';\n  v7->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&GJItemIcon::`vftable';\n  v7->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&GJItemIcon::`vftable';\n  v7->m_player = nullptr;\n  v7->m_iconRequestID = 0;\n  cocos2d::CCSize::CCSize(&v7->m_playerSize);\n  v7->m_isIcon = 0;\n  *(_QWORD *)&v7->m_unlockID = 0;\n  v11.b = -1;\n  *(_WORD *)&v12.r = -1;\n  v12.b = -1;\n  if ( GJItemIcon::init(v7, a1, a2, &v12, &v11, a3, v9, 0, v10) )\n  {\n    cocos2d::CCObject::autorelease(v7);\n    return v7;\n  }\n  else\n  {\n    ((void (__fastcall *)(GJItemIcon *, __int64))v7->~GJItemIcon)(v7, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; GJItemIcon::createStoreItem from 0x14027a8c0 to 0x14027a9e3 (291 bytes)\n; \n; 3 xrefs:\n; > GJShopLayer::init @ 0x1402ab247\n; > PurchaseItemPopup::init @ 0x1402aef1c\n; > <???> @ 0x1406d10e8\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14027a8c0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x14027a8c5\nmov     [rsp+arg_18], r9                                               ; +0xa, 0x14027a8ca\npush    rsi                                                            ; +0xf, 0x14027a8cf\npush    rdi                                                            ; +0x10, 0x14027a8d0\npush    r12                                                            ; +0x11, 0x14027a8d1\npush    r14                                                            ; +0x13, 0x14027a8d3\npush    r15                                                            ; +0x15, 0x14027a8d5\nsub     rsp, 70h                                                       ; +0x17, 0x14027a8d7\nmovzx   esi, r8b                                                       ; +0x1b, 0x14027a8db\nmov     ebp, edx                                                       ; +0x1f, 0x14027a8df\nmov     r14d, ecx                                                      ; +0x21, 0x14027a8e1\nmov     [rsp+98h+var_48], 0FF00h                                       ; +0x24, 0x14027a8e4\nmovzx   edi, cs:word_140529AC4                                         ; +0x2b, 0x14027a8eb\nmovzx   ebx, cs:byte_140529AC6                                         ; +0x32, 0x14027a8f2\nmov     ecx, 278h; Size                                                ; +0x39, 0x14027a8f9\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3e, 0x14027a8fe\nmov     r15, rax                                                       ; +0x43, 0x14027a903\nmov     [rsp+98h+arg_18], rax                                          ; +0x46, 0x14027a906\nmov     rcx, rax                                                       ; +0x4e, 0x14027a90e\ncall    cs:??0CCSprite@cocos2d@@QEAA@XZ; cocos2d::CCSprite::CCSprite(void) ; +0x51, 0x14027a911\nnop                                                                    ; +0x57, 0x14027a917\nlea     rax, ??_7GJItemIcon@@6B@; const GJItemIcon::`vftable'          ; +0x58, 0x14027a918\nmov     [r15], rax                                                     ; +0x5f, 0x14027a91f\nlea     rax, ??_7GJItemIcon@@6B@_0; const GJItemIcon::`vftable'        ; +0x62, 0x14027a922\nmov     [r15+140h], rax                                                ; +0x69, 0x14027a929\nlea     rax, ??_7GJItemIcon@@6B@_1; const GJItemIcon::`vftable'        ; +0x70, 0x14027a930\nmov     [r15+158h], rax                                                ; +0x77, 0x14027a937\nxor     r12d, r12d                                                     ; +0x7e, 0x14027a93e\nmov     [r15+258h], r12                                                ; +0x81, 0x14027a941\nmov     [r15+260h], r12d                                               ; +0x88, 0x14027a948\nlea     rcx, [r15+264h]                                                ; +0x8f, 0x14027a94f\ncall    cs:??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)   ; +0x96, 0x14027a956\nmov     [r15+26Ch], r12b                                               ; +0x9c, 0x14027a95c\nmov     [r15+270h], r12                                                ; +0xa3, 0x14027a963\nmovzx   eax, [rsp+98h+var_48]                                          ; +0xaa, 0x14027a96a\nmov     [rsp+98h+var_48], ax                                           ; +0xaf, 0x14027a96f\nmov     [rsp+98h+var_46], 0FFh                                         ; +0xb4, 0x14027a974\nmov     [rsp+98h+var_38], di                                           ; +0xb9, 0x14027a979\nmov     [rsp+98h+var_36], bl                                           ; +0xbe, 0x14027a97e\nmov     [rsp+98h+var_60], r12b                                         ; +0xc2, 0x14027a982\nmov     [rsp+98h+var_70], sil                                          ; +0xc7, 0x14027a987\nlea     rax, [rsp+98h+var_48]                                          ; +0xcc, 0x14027a98c\nmov     [rsp+98h+var_78], rax                                          ; +0xd1, 0x14027a991\nlea     r9, [rsp+98h+var_38]                                           ; +0xd6, 0x14027a996\nmov     r8d, ebp                                                       ; +0xdb, 0x14027a99b\nmov     edx, r14d                                                      ; +0xde, 0x14027a99e\nmov     rcx, r15                                                       ; +0xe1, 0x14027a9a1\ncall    GJItemIcon__init                                               ; +0xe4, 0x14027a9a4\nmov     rcx, r15                                                       ; +0xe9, 0x14027a9a9\ntest    al, al                                                         ; +0xec, 0x14027a9ac\njz      short loc_14027A9BB                                            ; +0xee, 0x14027a9ae\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xf0, 0x14027a9b0\nmov     rax, r15                                                       ; +0xf6, 0x14027a9b6\njmp     short loc_14027A9CA                                            ; +0xf9, 0x14027a9b9\nmov     r8, [r15]                                                      ; +0xfb, 0x14027a9bb\nmov     edx, 1                                                         ; +0xfe, 0x14027a9be\ncall    qword ptr [r8+8]                                               ; +0x103, 0x14027a9c3\nmov     rax, r12                                                       ; +0x107, 0x14027a9c7\nlea     r11, [rsp+98h+var_28]                                          ; +0x10a, 0x14027a9ca\nmov     rbx, [r11+30h]                                                 ; +0x10f, 0x14027a9cf\nmov     rbp, [r11+38h]                                                 ; +0x113, 0x14027a9d3\nmov     rsp, r11                                                       ; +0x117, 0x14027a9d7\npop     r15                                                            ; +0x11a, 0x14027a9da\npop     r14                                                            ; +0x11c, 0x14027a9dc\npop     r12                                                            ; +0x11e, 0x14027a9de\npop     rdi                                                            ; +0x120, 0x14027a9e0\npop     rsi                                                            ; +0x121, 0x14027a9e1\nretn                                                                   ; +0x122, 0x14027a9e2", "xrefs": ["GJShopLayer::init @ 0x1402ab247", "PurchaseItemPopup::init @ 0x1402aef1c", "<???> @ 0x1406d10e8"], "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"}