{"type": "func", "start": 7948396, "end": 7948716, "name": "GJItemIcon::create", "pseudocode": "// \n// GJItemIcon::create from 0x79486c to 0x7949ac (320 bytes)\n// \n// 10 xrefs:\n// > AchievementCell::loadFromDict @ 0x60e208\n// > GJItemIcon::createStoreItem @ 0x7949e0\n// > GJItemIcon::createBrowserItem @ 0x794a30\n// > AchievementBar::init @ 0x7d82b8\n// > RewardUnlockLayer::playRewardEffect @ 0x93949c\n// > RewardUnlockLayer::playRewardEffect @ 0x9396c8\n// > ShardsPage::init @ 0x95cd98\n// > CommunityCreditsPage::init @ 0x971b70\n// > GJPathPage::init @ 0xa6fd98\n// > <???> @ 0x55a70\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 *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  __int64 v13; // x19\n  int v15; // [xsp+58h] [xbp+48h]\n  int v16; // [xsp+60h] [xbp+50h]\n  int v17; // [xsp+68h] [xbp+58h]\n\n  v17 = *(_DWORD *)&a3.r;\n  v16 = *(_DWORD *)&a4.r;\n  v15 = *(_DWORD *)&a8.r;\n  v13 = operator new(0x278u);\n  cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v13);\n  *(_QWORD *)(v13 + 600) = 0;\n  *(_QWORD *)v13 = &off_1179250;\n  *(_QWORD *)(v13 + 320) = &off_1179728;\n  *(_QWORD *)(v13 + 344) = &off_11797A8;\n  *(_DWORD *)(v13 + 608) = 0;\n  cocos2d::CCSize::CCSize((cocos2d::CCSize *)(v13 + 612));\n  *(_BYTE *)(v13 + 620) = 0;\n  *(_DWORD *)(v13 + 624) = 0;\n  *(_DWORD *)(v13 + 628) = 0;\n  if ( GJItemIcon::init(\n         (GJItemIcon *)v13,\n         a1,\n         a2,\n         (cocos2d::ccColor3B)v17,\n         (cocos2d::ccColor3B)v16,\n         a5,\n         a6,\n         a7,\n         (cocos2d::ccColor3B)v15) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v13);\n    return (GJItemIcon *)v13;\n  }\n  else\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v13 + 16LL))(v13);\n    return nullptr;\n  }\n}", "assembly": "; \n; GJItemIcon::create from 0x79486c to 0x7949ac (320 bytes)\n; \n; 10 xrefs:\n; > AchievementCell::loadFromDict @ 0x60e208\n; > GJItemIcon::createStoreItem @ 0x7949e0\n; > GJItemIcon::createBrowserItem @ 0x794a30\n; > AchievementBar::init @ 0x7d82b8\n; > RewardUnlockLayer::playRewardEffect @ 0x93949c\n; > RewardUnlockLayer::playRewardEffect @ 0x9396c8\n; > ShardsPage::init @ 0x95cd98\n; > CommunityCreditsPage::init @ 0x971b70\n; > GJPathPage::init @ 0xa6fd98\n; > <???> @ 0x55a70\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\nSUB             SP, SP, #0x70                                          ; +0x0, 0x79486c\nSTP             X29, X30, [SP,#0x70+var_60]                            ; +0x4, 0x794870\nADD             X29, SP, #0x10                                         ; +0x8, 0x794874\nSTP             X23, X24, [SP,#0x70+var_30]                            ; +0xc, 0x794878\nMOV             W24, W0                                                ; +0x10, 0x79487c\nMOV             X0, #0x278; unsigned __int64                           ; +0x14, 0x794880\nSTP             X19, X20, [SP,#0x70+var_50]                            ; +0x18, 0x794884\nSTP             X21, X22, [SP,#0x70+var_40]                            ; +0x1c, 0x794888\nMOV             W23, W1                                                ; +0x20, 0x79488c\nSTR             X2, [X29,#0x60+var_8]                                  ; +0x24, 0x794890\nSTR             X3, [X29,#0x60+var_10]                                 ; +0x28, 0x794894\nUXTB            W22, W4                                                ; +0x2c, 0x794898\nUXTB            W21, W5                                                ; +0x30, 0x79489c\nUXTB            W20, W6                                                ; +0x34, 0x7948a0\nSTR             X7, [X29,#0x60+var_18]                                 ; +0x38, 0x7948a4\nBL              _Znwm; operator new(ulong)                             ; +0x3c, 0x7948a8\nMOV             X19, X0                                                ; +0x40, 0x7948ac\nBL              _ZN7cocos2d8CCSpriteC2Ev; cocos2d::CCSprite::CCSprite(void) ; +0x44, 0x7948b0\nADRP            X1, #_ZTV10GJItemIcon_ptr@PAGE                         ; +0x48, 0x7948b4\nADD             X0, X19, #0x264; this                                  ; +0x4c, 0x7948b8\nLDR             X1, [X1,#_ZTV10GJItemIcon_ptr@PAGEOFF]; `vtable for'GJItemIcon ... ; +0x50, 0x7948bc\nSTR             XZR, [X19,#0x258]                                      ; +0x54, 0x7948c0\nADD             X3, X1, #0x10                                          ; +0x58, 0x7948c4\nADD             X2, X1, #0x4E8                                         ; +0x5c, 0x7948c8\nSTR             X3, [X19]                                              ; +0x60, 0x7948cc\nADD             X1, X1, #0x568                                         ; +0x64, 0x7948d0\nSTR             X2, [X19,#0x140]                                       ; +0x68, 0x7948d4\nSTR             X1, [X19,#0x158]                                       ; +0x6c, 0x7948d8\nSTR             WZR, [X19,#0x260]                                      ; +0x70, 0x7948dc\nBL              _ZN7cocos2d6CCSizeC1Ev; cocos2d::CCSize::CCSize(void)  ; +0x74, 0x7948e0\nSTRB            WZR, [X19,#0x26C]                                      ; +0x78, 0x7948e4\nMOV             X0, X19                                                ; +0x7c, 0x7948e8\nSTR             WZR, [X19,#0x270]                                      ; +0x80, 0x7948ec\nMOV             W1, W24                                                ; +0x84, 0x7948f0\nSTR             WZR, [X19,#0x274]                                      ; +0x88, 0x7948f4\nMOV             W2, W23                                                ; +0x8c, 0x7948f8\nLDRH            W8, [X29,#0x60+var_18]                                 ; +0x90, 0x7948fc\nMOV             W5, W22                                                ; +0x94, 0x794900\nSTRH            W8, [SP,#0x70+var_70]                                  ; +0x98, 0x794904\nMOV             W6, W21                                                ; +0x9c, 0x794908\nLDRB            W8, [X29,#0x60+var_18+2]                               ; +0xa0, 0x79490c\nMOV             W7, W20                                                ; +0xa4, 0x794910\nLDR             X3, [X29,#0x60+var_8]                                  ; +0xa8, 0x794914\nLDR             X4, [X29,#0x60+var_10]                                 ; +0xac, 0x794918\nSTRB            W8, [SP,#0x70+var_6E]                                  ; +0xb0, 0x79491c\nBL              _ZN10GJItemIcon4initE10UnlockTypeiN7cocos2d10_ccColor3BES2_bbbS2_; GJItemIcon::init(UnlockType,int,cocos2d::_ccColor3B,cocos2d::_ccColor3B,bool,bool,bool,cocos2d::_ccColor3B) ; +0xb4, 0x794920\nUXTB            W0, W0                                                 ; +0xb8, 0x794924\nCBZ             W0, loc_794954                                         ; +0xbc, 0x794928\nMOV             X0, X19; this                                          ; +0xc0, 0x79492c\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0xc4, 0x794930\nSUB             SP, X29, #0x10                                         ; +0xc8, 0x794934\nMOV             X0, X19                                                ; +0xcc, 0x794938\nLDP             X19, X20, [SP,#0x70+var_50]                            ; +0xd0, 0x79493c\nLDP             X21, X22, [SP,#0x70+var_40]                            ; +0xd4, 0x794940\nLDP             X23, X24, [SP,#0x70+var_30]                            ; +0xd8, 0x794944\nLDP             X29, X30, [SP,#0x70+var_60]                            ; +0xdc, 0x794948\nADD             SP, SP, #0x70 ; 'p'                                    ; +0xe0, 0x79494c\nRET                                                                    ; +0xe4, 0x794950\nLDR             X1, [X19]                                              ; +0xe8, 0x794954\nMOV             X0, X19                                                ; +0xec, 0x794958\nMOV             X19, #0                                                ; +0xf0, 0x79495c\nLDR             X1, [X1,#0x10]                                         ; +0xf4, 0x794960\nBLR             X1                                                     ; +0xf8, 0x794964\nSUB             SP, X29, #0x10                                         ; +0xfc, 0x794968\nMOV             X0, X19                                                ; +0x100, 0x79496c\nLDP             X19, X20, [SP,#0x70+var_50]                            ; +0x104, 0x794970\nLDP             X21, X22, [SP,#0x70+var_40]                            ; +0x108, 0x794974\nLDP             X23, X24, [SP,#0x70+var_30]                            ; +0x10c, 0x794978\nLDP             X29, X30, [SP,#0x70+var_60]                            ; +0x110, 0x79497c\nADD             SP, SP, #0x70 ; 'p'                                    ; +0x114, 0x794980\nRET                                                                    ; +0x118, 0x794984\nMOV             X20, X0                                                ; +0x11c, 0x794988\nMOV             X0, X19; p                                             ; +0x120, 0x79498c\nBL              _ZdlPv; operator delete(void *)                        ; +0x124, 0x794990\nMOV             X0, X20                                                ; +0x128, 0x794994\nBL              _Unwind_Resume                                         ; +0x12c, 0x794998\nMOV             X20, X0                                                ; +0x130, 0x79499c\nMOV             X0, X19; this                                          ; +0x134, 0x7949a0\nBL              _ZN7cocos2d8CCSpriteD1Ev; cocos2d::CCSprite::~CCSprite() ; +0x138, 0x7949a4\nB               loc_79498C                                             ; +0x13c, 0x7949a8", "xrefs": ["AchievementCell::loadFromDict @ 0x60e208", "GJItemIcon::createStoreItem @ 0x7949e0", "GJItemIcon::createBrowserItem @ 0x794a30", "AchievementBar::init @ 0x7d82b8", "RewardUnlockLayer::playRewardEffect @ 0x93949c", "RewardUnlockLayer::playRewardEffect @ 0x9396c8", "ShardsPage::init @ 0x95cd98", "CommunityCreditsPage::init @ 0x971b70", "GJPathPage::init @ 0xa6fd98", "<???> @ 0x55a70"], "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"}