{"type": "func", "start": 4213208, "end": 4213392, "name": "GJItemIcon::create", "pseudocode": "// \n// GJItemIcon::create from 0x4049d8 to 0x404a90 (184 bytes)\n// \n// 9 xrefs:\n// > AchievementCell::loadFromDict @ 0x330f16\n// > GJItemIcon::createStoreItem @ 0x404ace\n// > GJItemIcon::createBrowserItem @ 0x404b1a\n// > AchievementBar::init @ 0x42a896\n// > RewardUnlockLayer::playRewardEffect @ 0x4e9550\n// > RewardUnlockLayer::playRewardEffect @ 0x4e99be\n// > ShardsPage::init @ 0x4fbe3c\n// > CommunityCreditsPage::init @ 0x507c60\n// > GJPathPage::init @ 0x58da62\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\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  GJItemIcon *v10; // r4\n  GJItemIcon_vtbl *v11; // r3\n  int *v12; // r0\n  int v14; // [sp+18h] [bp-Ch]\n  int v15; // [sp+1Ch] [bp-8h]\n\n  v15 = *(_DWORD *)&a3.r;\n  v14 = *(_DWORD *)&a4.r;\n  v10 = (GJItemIcon *)operator new(0x218u);\n  cocos2d::CCSprite::CCSprite(v10);\n  v10->m_player = nullptr;\n  v10->m_iconRequestID = 0;\n  v10->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJItemIcon_vtbl *)&off_A5DB20;\n  v10->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A5DD8C;\n  v10->cocos2d::CCSprite::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_A5DDCC;\n  cocos2d::CCSize::CCSize(&v10->m_playerSize);\n  v10->m_isIcon = 0;\n  v10->m_unlockID = 0;\n  v10->m_unlockType = 0;\n  if ( GJItemIcon::init(v10, a1, a2, (cocos2d::ccColor3B)v15, (cocos2d::ccColor3B)v14, a5, a6, a7, a8) )\n  {\n    cocos2d::CCObject::autorelease(v10);\n  }\n  else\n  {\n    v11 = v10->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v12 = (int *)v10;\n    v10 = nullptr;\n    v11->~GJItemIcon_0((GJItemIcon *)v12);\n  }\n  return v10;\n}", "assembly": "; \n; GJItemIcon::create from 0x4049d8 to 0x404a90 (184 bytes)\n; \n; 9 xrefs:\n; > AchievementCell::loadFromDict @ 0x330f16\n; > GJItemIcon::createStoreItem @ 0x404ace\n; > GJItemIcon::createBrowserItem @ 0x404b1a\n; > AchievementBar::init @ 0x42a896\n; > RewardUnlockLayer::playRewardEffect @ 0x4e9550\n; > RewardUnlockLayer::playRewardEffect @ 0x4e99be\n; > ShardsPage::init @ 0x4fbe3c\n; > CommunityCreditsPage::init @ 0x507c60\n; > GJPathPage::init @ 0x58da62\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            {R4-R7,LR}                                             ; +0x0, 0x4049d8\nSUB             SP, SP, #0x24                                          ; +0x2, 0x4049da\nMOV             R7, R0                                                 ; +0x4, 0x4049dc\nMOV.W           R0, #0x218; unsigned int                               ; +0x6, 0x4049de\nMOV             R6, R1                                                 ; +0xa, 0x4049e2\nSTR             R2, [SP,#0x24+var_8]                                   ; +0xc, 0x4049e4\nSTR             R3, [SP,#0x24+var_C]                                   ; +0xe, 0x4049e6\nBL              _Znwj; operator new(uint)                              ; +0x10, 0x4049e8\nMOV             R4, R0                                                 ; +0x14, 0x4049ec\nBL              _ZN7cocos2d8CCSpriteC2Ev; cocos2d::CCSprite::CCSprite(void) ; +0x16, 0x4049ee\nLDR             R3, =(_ZTV10GJItemIcon_ptr - 0x404A02)                 ; +0x1a, 0x4049f2\nMOVS            R5, #0                                                 ; +0x1c, 0x4049f4\nADD.W           R0, R4, #0x204; this                                   ; +0x1e, 0x4049f6\nSTR.W           R5, [R4,#0x1FC]                                        ; +0x22, 0x4049fa\nADD             R3, PC; _ZTV10GJItemIcon_ptr                           ; +0x26, 0x4049fe\nLDR             R3, [R3]; `vtable for'GJItemIcon ...                   ; +0x28, 0x404a00\nSTR.W           R5, [R4,#0x200]                                        ; +0x2a, 0x404a02\nADD.W           R2, R3, #8                                             ; +0x2e, 0x404a06\nSTR             R2, [R4]                                               ; +0x32, 0x404a0a\nADD.W           R2, R3, #0x274                                         ; +0x34, 0x404a0c\nADD.W           R3, R3, #0x2B4                                         ; +0x38, 0x404a10\nSTR.W           R2, [R4,#0x108]                                        ; +0x3c, 0x404a14\nSTR.W           R3, [R4,#0x118]                                        ; +0x40, 0x404a18\nBL              _ZN7cocos2d6CCSizeC1Ev; cocos2d::CCSize::CCSize(void)  ; +0x44, 0x404a1c\nSTRB.W          R5, [R4,#0x20C]                                        ; +0x48, 0x404a20\nMOV             R0, R4                                                 ; +0x4c, 0x404a24\nSTR.W           R5, [R4,#0x210]                                        ; +0x4e, 0x404a26\nMOV             R1, R7                                                 ; +0x52, 0x404a2a\nSTR.W           R5, [R4,#0x214]                                        ; +0x54, 0x404a2c\nMOV             R2, R6                                                 ; +0x58, 0x404a30\nLDR             R3, [SP,#0x24+var_C]                                   ; +0x5a, 0x404a32\nSTRH.W          R3, [SP,#0x24+var_24]                                  ; +0x5c, 0x404a34\nLSRS            R3, R3, #0x10                                          ; +0x60, 0x404a38\nSTRB.W          R3, [SP,#0x24+var_22]                                  ; +0x62, 0x404a3a\nLDRB.W          R3, [SP,#0x24+arg_0]                                   ; +0x66, 0x404a3e\nSTR             R3, [SP,#0x24+var_20]                                  ; +0x6a, 0x404a42\nLDRB.W          R3, [SP,#0x24+arg_4]                                   ; +0x6c, 0x404a44\nSTR             R3, [SP,#0x24+var_1C]                                  ; +0x70, 0x404a48\nLDRB.W          R3, [SP,#0x24+arg_8]                                   ; +0x72, 0x404a4a\nSTR             R3, [SP,#0x24+var_18]                                  ; +0x76, 0x404a4e\nLDR             R3, [SP,#0x24+arg_C]                                   ; +0x78, 0x404a50\nSTRH.W          R3, [SP,#0x24+var_14]                                  ; +0x7a, 0x404a52\nLSRS            R3, R3, #0x10                                          ; +0x7e, 0x404a56\nSTRB.W          R3, [SP,#0x24+var_12]                                  ; +0x80, 0x404a58\nLDR             R3, [SP,#0x24+var_8]                                   ; +0x84, 0x404a5c\nBL              _ZN10GJItemIcon4initE10UnlockTypeiN7cocos2d10_ccColor3BES2_bbbS2_; GJItemIcon::init(UnlockType,int,cocos2d::_ccColor3B,cocos2d::_ccColor3B,bool,bool,bool,cocos2d::_ccColor3B) ; +0x86, 0x404a5e\nMOV             R5, R0                                                 ; +0x8a, 0x404a62\nCBZ             R0, loc_404A80                                         ; +0x8c, 0x404a64\nMOV             R0, R4; this                                           ; +0x8e, 0x404a66\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x90, 0x404a68\nB               loc_404A8A                                             ; +0x94, 0x404a6c\nMOV             R0, R4; this                                           ; +0x96, 0x404a6e\nBL              _ZN7cocos2d8CCSpriteD2Ev; cocos2d::CCSprite::~CCSprite() ; +0x98, 0x404a70\nB               loc_404A76                                             ; +0x9c, 0x404a74\nMOV             R0, R4; p                                              ; +0x9e, 0x404a76\nBL              _ZdlPv; operator delete(void *)                        ; +0xa0, 0x404a78\nBL              __cxa_end_cleanup                                      ; +0xa4, 0x404a7c\nLDR             R3, [R4]                                               ; +0xa8, 0x404a80\nMOV             R0, R4                                                 ; +0xaa, 0x404a82\nMOV             R4, R5                                                 ; +0xac, 0x404a84\nLDR             R3, [R3,#8]                                            ; +0xae, 0x404a86\nBLX             R3                                                     ; +0xb0, 0x404a88\nMOV             R0, R4                                                 ; +0xb2, 0x404a8a\nADD             SP, SP, #0x24 ; '$'                                    ; +0xb4, 0x404a8c\nPOP             {R4-R7,PC}                                             ; +0xb6, 0x404a8e", "xrefs": ["AchievementCell::loadFromDict @ 0x330f16", "GJItemIcon::createStoreItem @ 0x404ace", "GJItemIcon::createBrowserItem @ 0x404b1a", "AchievementBar::init @ 0x42a896", "RewardUnlockLayer::playRewardEffect @ 0x4e9550", "RewardUnlockLayer::playRewardEffect @ 0x4e99be", "ShardsPage::init @ 0x4fbe3c", "CommunityCreditsPage::init @ 0x507c60", "GJPathPage::init @ 0x58da62"], "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"}