{"type": "func", "start": 5372392448, "end": 5372392741, "name": "GJItemIcon::createBrowserItem", "pseudocode": "// \n// GJItemIcon::createBrowserItem from 0x140383400 to 0x140383525 (293 bytes)\n// \n// 5 xrefs:\n// > GJGarageLayer::getItems @ 0x14037f29e\n// > GJGarageLayer::setupSpecialPage @ 0x14037f8e8\n// > GJGarageLayer::dialogClosed @ 0x1403811d8\n// > ItemInfoPopup::init @ 0x140384b22\n// > <???> @ 0x140922a0c\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::createBrowserItem(int a1, int a2)\n{\n  char *v4; // rsi\n  __int16 v6; // [rsp+50h] [rbp-28h] BYREF\n  char v7; // [rsp+52h] [rbp-26h]\n  __int16 v8; // [rsp+90h] [rbp+18h] BYREF\n  char v9; // [rsp+92h] [rbp+1Ah]\n  char *v10; // [rsp+98h] [rbp+20h]\n\n  v8 = -1;\n  v6 = -20561;\n  v4 = (char *)operator new(0x278u);\n  v10 = v4;\n  cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v4);\n  *(_QWORD *)v4 = &GJItemIcon::`vftable';\n  *((_QWORD *)v4 + 40) = &GJItemIcon::`vftable';\n  *((_QWORD *)v4 + 43) = &GJItemIcon::`vftable';\n  *((_QWORD *)v4 + 75) = 0;\n  *((_DWORD *)v4 + 152) = 0;\n  cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v4 + 612));\n  v4[620] = 0;\n  *((_QWORD *)v4 + 78) = 0;\n  v9 = -1;\n  v7 = -81;\n  if ( (unsigned __int8)GJItemIcon::init((_DWORD)v4, a1, a2, (unsigned int)&v6, (__int64)&v8, 0) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);\n    return v4;\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; GJItemIcon::createBrowserItem from 0x140383400 to 0x140383525 (293 bytes)\n; \n; 5 xrefs:\n; > GJGarageLayer::getItems @ 0x14037f29e\n; > GJGarageLayer::setupSpecialPage @ 0x14037f8e8\n; > GJGarageLayer::dialogClosed @ 0x1403811d8\n; > ItemInfoPopup::init @ 0x140384b22\n; > <???> @ 0x140922a0c\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, 0x140383400\npush    rbp                                                            ; +0x5, 0x140383405\npush    rsi                                                            ; +0x6, 0x140383406\npush    rdi                                                            ; +0x7, 0x140383407\nsub     rsp, 60h                                                       ; +0x8, 0x140383408\nmov     ebx, edx                                                       ; +0xc, 0x14038340c\nmov     edi, ecx                                                       ; +0xe, 0x14038340e\nmov     [rsp+78h+arg_10], 0FFFFh                                       ; +0x10, 0x140383410\nmov     [rsp+78h+var_28], 0AFAFh                                       ; +0x1a, 0x14038341a\nmov     ecx, 278h; Size                                                ; +0x21, 0x140383421\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x26, 0x140383426\nmov     rsi, rax                                                       ; +0x2b, 0x14038342b\nmov     [rsp+78h+arg_18], rax                                          ; +0x2e, 0x14038342e\nmov     rcx, rax                                                       ; +0x36, 0x140383436\ncall    cs:??0CCSprite@cocos2d@@QEAA@XZ; cocos2d::CCSprite::CCSprite(void) ; +0x39, 0x140383439\nnop                                                                    ; +0x3f, 0x14038343f\nlea     rax, ??_7GJItemIcon@@6B@; const GJItemIcon::`vftable'          ; +0x40, 0x140383440\nmov     [rsi], rax                                                     ; +0x47, 0x140383447\nlea     rax, ??_7GJItemIcon@@6B@_0; const GJItemIcon::`vftable'        ; +0x4a, 0x14038344a\nmov     [rsi+140h], rax                                                ; +0x51, 0x140383451\nlea     rax, ??_7GJItemIcon@@6B@_1; const GJItemIcon::`vftable'        ; +0x58, 0x140383458\nmov     [rsi+158h], rax                                                ; +0x5f, 0x14038345f\nxor     ebp, ebp                                                       ; +0x66, 0x140383466\nmov     [rsi+258h], rbp                                                ; +0x68, 0x140383468\nmov     [rsi+260h], ebp                                                ; +0x6f, 0x14038346f\nlea     rcx, [rsi+264h]                                                ; +0x75, 0x140383475\ncall    cs:??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)   ; +0x7c, 0x14038347c\nmov     [rsi+26Ch], bpl                                                ; +0x82, 0x140383482\nmov     [rsi+270h], rbp                                                ; +0x89, 0x140383489\nmovzx   eax, [rsp+78h+arg_10]                                          ; +0x90, 0x140383490\nmov     [rsp+78h+arg_10], ax                                           ; +0x98, 0x140383498\nmov     [rsp+78h+arg_12], 0FFh                                         ; +0xa0, 0x1403834a0\nmovzx   eax, [rsp+78h+var_28]                                          ; +0xa8, 0x1403834a8\nmov     [rsp+78h+var_28], ax                                           ; +0xad, 0x1403834ad\nmov     [rsp+78h+var_26], 0AFh                                         ; +0xb2, 0x1403834b2\nmov     [rsp+78h+var_40], 1                                            ; +0xb7, 0x1403834b7\nmov     [rsp+78h+var_50], bpl                                          ; +0xbc, 0x1403834bc\nlea     rax, [rsp+78h+arg_10]                                          ; +0xc1, 0x1403834c1\nmov     [rsp+78h+var_58], rax                                          ; +0xc9, 0x1403834c9\nlea     r9, [rsp+78h+var_28]                                           ; +0xce, 0x1403834ce\nmov     r8d, ebx                                                       ; +0xd3, 0x1403834d3\nmov     edx, edi                                                       ; +0xd6, 0x1403834d6\nmov     rcx, rsi                                                       ; +0xd8, 0x1403834d8\ncall    GJItemIcon__init                                               ; +0xdb, 0x1403834db\ntest    al, al                                                         ; +0xe0, 0x1403834e0\njz      short loc_140383500                                            ; +0xe2, 0x1403834e2\nmov     rcx, rsi                                                       ; +0xe4, 0x1403834e4\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xe7, 0x1403834e7\nmov     rax, rsi                                                       ; +0xed, 0x1403834ed\nmov     rbx, [rsp+78h+arg_0]                                           ; +0xf0, 0x1403834f0\nadd     rsp, 60h                                                       ; +0xf8, 0x1403834f8\npop     rdi                                                            ; +0xfc, 0x1403834fc\npop     rsi                                                            ; +0xfd, 0x1403834fd\npop     rbp                                                            ; +0xfe, 0x1403834fe\nretn                                                                   ; +0xff, 0x1403834ff\nmov     rcx, [rsi]                                                     ; +0x100, 0x140383500\nmov     r8, [rcx+8]                                                    ; +0x103, 0x140383503\nmov     edx, 1                                                         ; +0x107, 0x140383507\nmov     rcx, rsi                                                       ; +0x10c, 0x14038350c\ncall    r8                                                             ; +0x10f, 0x14038350f\nmov     rax, rbp                                                       ; +0x112, 0x140383512\nmov     rbx, [rsp+78h+arg_0]                                           ; +0x115, 0x140383515\nadd     rsp, 60h                                                       ; +0x11d, 0x14038351d\npop     rdi                                                            ; +0x121, 0x140383521\npop     rsi                                                            ; +0x122, 0x140383522\npop     rbp                                                            ; +0x123, 0x140383523\nretn                                                                   ; +0x124, 0x140383524", "xrefs": ["GJGarageLayer::getItems @ 0x14037f29e", "GJGarageLayer::setupSpecialPage @ 0x14037f8e8", "GJGarageLayer::dialogClosed @ 0x1403811d8", "ItemInfoPopup::init @ 0x140384b22", "<???> @ 0x140922a0c"], "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"}