{"type": "func", "start": 4298575760, "end": 4298575991, "name": "GJItemIcon::create", "pseudocode": "// \n// GJItemIcon::create from 0x100370f90 to 0x100371077 (231 bytes)\n// \n// 13 xrefs:\n// > RewardUnlockLayer::playRewardEffect @ 0x10021d696\n// > RewardUnlockLayer::playRewardEffect @ 0x10021dddf\n// > AchievementCell::loadFromDict @ 0x1002435e4\n// > GJPathPage::init @ 0x1002fffbc\n// > CommunityCreditsPage::init @ 0x100320344\n// > GJGarageLayer::setupSpecialPage @ 0x10036d7d3\n// > GJGarageLayer::getItems @ 0x10036dc10\n// > GJItemIcon::createBrowserItem @ 0x10036de6e\n// > GJGarageLayer::dialogClosed @ 0x10036fbab\n// > GJItemIcon::createStoreItem @ 0x100370f79\n// > ItemInfoPopup::init @ 0x100371eeb\n// > ShardsPage::init @ 0x1004c6a7b\n// > AchievementBar::init @ 0x10061a09d\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// local variable allocation has failed, the output may be wrong!\nGJItemIcon *__fastcall GJItemIcon::create(\n        UnlockType a1,\n        int a2,\n        cocos2d::ccColor3B a3,\n        cocos2d::ccColor3B a4,\n        bool a5,\n        bool a6,\n        bool a7,\n        cocos2d::ccColor3B a8)\n{\n  int v9; // r15d\n  GJItemIcon *v10; // rbx\n  cocos2d::ccColor3B v12; // [rsp+10h] [rbp-40h]\n  int v13; // [rsp+24h] [rbp-2Ch]\n\n  v13 = *(_DWORD *)&a4.r;\n  v9 = *(_DWORD *)&a3.r;\n  v10 = (GJItemIcon *)operator new(0x278u);\n  cocos2d::CCSprite::CCSprite((__int64)v10, *(__int64 *)&a2);\n  v10->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJItemIcon_vtbl *)off_10091C2A8;\n  v10->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)off_10091C780;\n  v10->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)off_10091C800;\n  v10->m_player = nullptr;\n  v10->m_iconRequestID = 0;\n  sub_10028CF90(&v10->m_playerSize);\n  v10->m_isIcon = 0;\n  *(_QWORD *)&v10->m_unlockID = 0;\n  if ( GJItemIcon::init(v10, a1, a2, (cocos2d::ccColor3B)v9, (cocos2d::ccColor3B)v13, a5, 0, a7, v12) )\n  {\n    cocos2d::CCObject::autorelease(v10);\n  }\n  else\n  {\n    ((void (__fastcall *)(GJItemIcon *))v10->~GJItemIcon_0)(v10);\n    return nullptr;\n  }\n  return v10;\n}", "assembly": "; \n; GJItemIcon::create from 0x100370f90 to 0x100371077 (231 bytes)\n; \n; 13 xrefs:\n; > RewardUnlockLayer::playRewardEffect @ 0x10021d696\n; > RewardUnlockLayer::playRewardEffect @ 0x10021dddf\n; > AchievementCell::loadFromDict @ 0x1002435e4\n; > GJPathPage::init @ 0x1002fffbc\n; > CommunityCreditsPage::init @ 0x100320344\n; > GJGarageLayer::setupSpecialPage @ 0x10036d7d3\n; > GJGarageLayer::getItems @ 0x10036dc10\n; > GJItemIcon::createBrowserItem @ 0x10036de6e\n; > GJGarageLayer::dialogClosed @ 0x10036fbab\n; > GJItemIcon::createStoreItem @ 0x100370f79\n; > ItemInfoPopup::init @ 0x100371eeb\n; > ShardsPage::init @ 0x1004c6a7b\n; > AchievementBar::init @ 0x10061a09d\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, 0x100370f90\nmov     rbp, rsp                                                       ; +0x1, 0x100370f91\npush    r15                                                            ; +0x4, 0x100370f94\npush    r14                                                            ; +0x6, 0x100370f96\npush    r13                                                            ; +0x8, 0x100370f98\npush    r12                                                            ; +0xa, 0x100370f9a\npush    rbx                                                            ; +0xc, 0x100370f9c\nsub     rsp, 28h                                                       ; +0xd, 0x100370f9d\nmov     r13d, r8d                                                      ; +0x11, 0x100370fa1\nmov     [rbp+var_2C], ecx                                              ; +0x14, 0x100370fa4\nmov     r15d, edx                                                      ; +0x17, 0x100370fa7\nmov     r12d, esi                                                      ; +0x1a, 0x100370faa\nmov     r14d, edi                                                      ; +0x1d, 0x100370fad\nmov     edi, 278h; __sz                                                ; +0x20, 0x100370fb0\ncall    __Znwm; operator new(ulong)                                    ; +0x25, 0x100370fb5\nmov     rbx, rax                                                       ; +0x2a, 0x100370fba\nmov     rdi, rax                                                       ; +0x2d, 0x100370fbd\ncall    cocos2d__CCSprite__CCSprite                                    ; +0x30, 0x100370fc0\nlea     rax, off_10091C2A8                                             ; +0x35, 0x100370fc5\nmov     [rbx], rax                                                     ; +0x3c, 0x100370fcc\nlea     rax, off_10091C780                                             ; +0x3f, 0x100370fcf\nmov     [rbx+140h], rax                                                ; +0x46, 0x100370fd6\nlea     rax, off_10091C800                                             ; +0x4d, 0x100370fdd\nmov     [rbx+158h], rax                                                ; +0x54, 0x100370fe4\nmov     qword ptr [rbx+258h], 0                                        ; +0x5b, 0x100370feb\nmov     dword ptr [rbx+260h], 0                                        ; +0x66, 0x100370ff6\nmov     rdi, rbx                                                       ; +0x70, 0x100371000\nadd     rdi, 264h                                                      ; +0x73, 0x100371003\ncall    sub_10028CF90                                                  ; +0x7a, 0x10037100a\nmovzx   eax, [rbp+arg_0]                                               ; +0x7f, 0x10037100f\nmov     byte ptr [rbx+26Ch], 0                                         ; +0x83, 0x100371013\nmov     qword ptr [rbx+270h], 0                                        ; +0x8a, 0x10037101a\nmovzx   eax, al                                                        ; +0x95, 0x100371025\nmov     [rsp+50h+var_48], eax                                          ; +0x98, 0x100371028\nmov     [rsp+50h+var_50], 0                                            ; +0x9c, 0x10037102c\nmovzx   r9d, r13b                                                      ; +0xa3, 0x100371033\nmov     rdi, rbx                                                       ; +0xa7, 0x100371037\nmov     esi, r14d                                                      ; +0xaa, 0x10037103a\nmov     edx, r12d                                                      ; +0xad, 0x10037103d\nmov     ecx, r15d                                                      ; +0xb0, 0x100371040\nmov     r8d, [rbp+var_2C]                                              ; +0xb3, 0x100371043\ncall    GJItemIcon__init                                               ; +0xb7, 0x100371047\ntest    al, al                                                         ; +0xbc, 0x10037104c\njz      short loc_10037105A                                            ; +0xbe, 0x10037104e\nmov     rdi, rbx                                                       ; +0xc0, 0x100371050\ncall    cocos2d__CCObject__autorelease                                 ; +0xc3, 0x100371053\njmp     short loc_100371065                                            ; +0xc8, 0x100371058\nmov     rax, [rbx]                                                     ; +0xca, 0x10037105a\nmov     rdi, rbx                                                       ; +0xcd, 0x10037105d\ncall    qword ptr [rax+10h]                                            ; +0xd0, 0x100371060\nxor     ebx, ebx                                                       ; +0xd3, 0x100371063\nmov     rax, rbx                                                       ; +0xd5, 0x100371065\nadd     rsp, 28h                                                       ; +0xd8, 0x100371068\npop     rbx                                                            ; +0xdc, 0x10037106c\npop     r12                                                            ; +0xdd, 0x10037106d\npop     r13                                                            ; +0xdf, 0x10037106f\npop     r14                                                            ; +0xe1, 0x100371071\npop     r15                                                            ; +0xe3, 0x100371073\npop     rbp                                                            ; +0xe5, 0x100371075\nretn                                                                   ; +0xe6, 0x100371076", "xrefs": ["RewardUnlockLayer::playRewardEffect @ 0x10021d696", "RewardUnlockLayer::playRewardEffect @ 0x10021dddf", "AchievementCell::loadFromDict @ 0x1002435e4", "GJPathPage::init @ 0x1002fffbc", "CommunityCreditsPage::init @ 0x100320344", "GJGarageLayer::setupSpecialPage @ 0x10036d7d3", "GJGarageLayer::getItems @ 0x10036dc10", "GJItemIcon::createBrowserItem @ 0x10036de6e", "GJGarageLayer::dialogClosed @ 0x10036fbab", "GJItemIcon::createStoreItem @ 0x100370f79", "ItemInfoPopup::init @ 0x100371eeb", "ShardsPage::init @ 0x1004c6a7b", "AchievementBar::init @ 0x10061a09d"], "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"}