{"type": "func", "start": 5371308528, "end": 5371308815, "name": "GJItemIcon::createBrowserItem", "pseudocode": "// \n// GJItemIcon::createBrowserItem from 0x14027a9f0 to 0x14027ab0f (287 bytes)\n// \n// 5 xrefs:\n// > GJGarageLayer::getItems @ 0x14027693a\n// > GJGarageLayer::setupSpecialPage @ 0x140276ee3\n// > GJGarageLayer::dialogClosed @ 0x14027888e\n// > ItemInfoPopup::init @ 0x14027c087\n// > <???> @ 0x1406d10f4\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::createBrowserItem(UnlockType a1, int a2)\n{\n  GJItemIcon *v4; // rsi\n  bool v6; // [rsp+30h] [rbp-48h]\n  cocos2d::ccColor3B *v7; // [rsp+40h] [rbp-38h]\n  cocos2d::ccColor3B v8; // [rsp+50h] [rbp-28h] BYREF\n  cocos2d::ccColor3B v9; // [rsp+90h] [rbp+18h] BYREF\n  GJItemIcon *v10; // [rsp+98h] [rbp+20h]\n\n  *(_WORD *)&v9.r = -1;\n  *(_WORD *)&v8.r = -20561;\n  v4 = (GJItemIcon *)operator new(0x278u);\n  v10 = v4;\n  cocos2d::CCSprite::CCSprite(v4);\n  v4->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJItemIcon_vtbl *)&GJItemIcon::`vftable';\n  v4->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&GJItemIcon::`vftable';\n  v4->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&GJItemIcon::`vftable';\n  v4->m_player = nullptr;\n  v4->m_iconRequestID = 0;\n  cocos2d::CCSize::CCSize(&v4->m_playerSize);\n  v4->m_isIcon = 0;\n  *(_QWORD *)&v4->m_unlockID = 0;\n  v9.b = -1;\n  v8.b = -81;\n  if ( GJItemIcon::init(v4, a1, a2, &v8, &v9, 0, v6, 1, v7) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n    return v4;\n  }\n  else\n  {\n    ((void (__fastcall *)(GJItemIcon *, __int64))v4->~GJItemIcon)(v4, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; GJItemIcon::createBrowserItem from 0x14027a9f0 to 0x14027ab0f (287 bytes)\n; \n; 5 xrefs:\n; > GJGarageLayer::getItems @ 0x14027693a\n; > GJGarageLayer::setupSpecialPage @ 0x140276ee3\n; > GJGarageLayer::dialogClosed @ 0x14027888e\n; > ItemInfoPopup::init @ 0x14027c087\n; > <???> @ 0x1406d10f4\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, 0x14027a9f0\npush    rbp                                                            ; +0x5, 0x14027a9f5\npush    rsi                                                            ; +0x6, 0x14027a9f6\npush    rdi                                                            ; +0x7, 0x14027a9f7\nsub     rsp, 60h                                                       ; +0x8, 0x14027a9f8\nmov     ebx, edx                                                       ; +0xc, 0x14027a9fc\nmov     edi, ecx                                                       ; +0xe, 0x14027a9fe\nmov     [rsp+78h+arg_10], 0FFFFh                                       ; +0x10, 0x14027aa00\nmov     [rsp+78h+var_28], 0AFAFh                                       ; +0x1a, 0x14027aa0a\nmov     ecx, 278h; Size                                                ; +0x21, 0x14027aa11\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x26, 0x14027aa16\nmov     rsi, rax                                                       ; +0x2b, 0x14027aa1b\nmov     [rsp+78h+arg_18], rax                                          ; +0x2e, 0x14027aa1e\nmov     rcx, rax                                                       ; +0x36, 0x14027aa26\ncall    cs:??0CCSprite@cocos2d@@QEAA@XZ; cocos2d::CCSprite::CCSprite(void) ; +0x39, 0x14027aa29\nnop                                                                    ; +0x3f, 0x14027aa2f\nlea     rax, ??_7GJItemIcon@@6B@; const GJItemIcon::`vftable'          ; +0x40, 0x14027aa30\nmov     [rsi], rax                                                     ; +0x47, 0x14027aa37\nlea     rax, ??_7GJItemIcon@@6B@_0; const GJItemIcon::`vftable'        ; +0x4a, 0x14027aa3a\nmov     [rsi+140h], rax                                                ; +0x51, 0x14027aa41\nlea     rax, ??_7GJItemIcon@@6B@_1; const GJItemIcon::`vftable'        ; +0x58, 0x14027aa48\nmov     [rsi+158h], rax                                                ; +0x5f, 0x14027aa4f\nxor     ebp, ebp                                                       ; +0x66, 0x14027aa56\nmov     [rsi+258h], rbp                                                ; +0x68, 0x14027aa58\nmov     [rsi+260h], ebp                                                ; +0x6f, 0x14027aa5f\nlea     rcx, [rsi+264h]                                                ; +0x75, 0x14027aa65\ncall    cs:??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)   ; +0x7c, 0x14027aa6c\nmov     [rsi+26Ch], bpl                                                ; +0x82, 0x14027aa72\nmov     [rsi+270h], rbp                                                ; +0x89, 0x14027aa79\nmovzx   eax, [rsp+78h+arg_10]                                          ; +0x90, 0x14027aa80\nmov     [rsp+78h+arg_10], ax                                           ; +0x98, 0x14027aa88\nmov     [rsp+78h+arg_12], 0FFh                                         ; +0xa0, 0x14027aa90\nmovzx   eax, [rsp+78h+var_28]                                          ; +0xa8, 0x14027aa98\nmov     [rsp+78h+var_28], ax                                           ; +0xad, 0x14027aa9d\nmov     [rsp+78h+var_26], 0AFh                                         ; +0xb2, 0x14027aaa2\nmov     [rsp+78h+var_40], 1                                            ; +0xb7, 0x14027aaa7\nmov     [rsp+78h+var_50], bpl                                          ; +0xbc, 0x14027aaac\nlea     rax, [rsp+78h+arg_10]                                          ; +0xc1, 0x14027aab1\nmov     [rsp+78h+var_58], rax                                          ; +0xc9, 0x14027aab9\nlea     r9, [rsp+78h+var_28]                                           ; +0xce, 0x14027aabe\nmov     r8d, ebx                                                       ; +0xd3, 0x14027aac3\nmov     edx, edi                                                       ; +0xd6, 0x14027aac6\nmov     rcx, rsi                                                       ; +0xd8, 0x14027aac8\ncall    GJItemIcon__init                                               ; +0xdb, 0x14027aacb\nmov     rcx, rsi                                                       ; +0xe0, 0x14027aad0\ntest    al, al                                                         ; +0xe3, 0x14027aad3\njz      short loc_14027AAF0                                            ; +0xe5, 0x14027aad5\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xe7, 0x14027aad7\nmov     rax, rsi                                                       ; +0xed, 0x14027aadd\nmov     rbx, [rsp+78h+arg_0]                                           ; +0xf0, 0x14027aae0\nadd     rsp, 60h                                                       ; +0xf8, 0x14027aae8\npop     rdi                                                            ; +0xfc, 0x14027aaec\npop     rsi                                                            ; +0xfd, 0x14027aaed\npop     rbp                                                            ; +0xfe, 0x14027aaee\nretn                                                                   ; +0xff, 0x14027aaef\nmov     r8, [rsi]                                                      ; +0x100, 0x14027aaf0\nmov     edx, 1                                                         ; +0x103, 0x14027aaf3\ncall    qword ptr [r8+8]                                               ; +0x108, 0x14027aaf8\nmov     rax, rbp                                                       ; +0x10c, 0x14027aafc\nmov     rbx, [rsp+78h+arg_0]                                           ; +0x10f, 0x14027aaff\nadd     rsp, 60h                                                       ; +0x117, 0x14027ab07\npop     rdi                                                            ; +0x11b, 0x14027ab0b\npop     rsi                                                            ; +0x11c, 0x14027ab0c\npop     rbp                                                            ; +0x11d, 0x14027ab0d\nretn                                                                   ; +0x11e, 0x14027ab0e", "xrefs": ["GJGarageLayer::getItems @ 0x14027693a", "GJGarageLayer::setupSpecialPage @ 0x140276ee3", "GJGarageLayer::dialogClosed @ 0x14027888e", "ItemInfoPopup::init @ 0x14027c087", "<???> @ 0x1406d10f4"], "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"}