{"type": "func", "start": 4298144180, "end": 4298144352, "name": "GJItemIcon::create", "pseudocode": "// \n// GJItemIcon::create from 0x1003079b4 to 0x100307a60 (172 bytes)\n// \n// 12 xrefs:\n// > AchievementCell::loadFromDict @ 0x100101ac8\n// > CommunityCreditsPage::init @ 0x1001a1ac4\n// > RewardUnlockLayer::playRewardEffect @ 0x1001c626c\n// > RewardUnlockLayer::playRewardEffect @ 0x1001c671c\n// > AchievementBar::init @ 0x10026b694\n// > GJGarageLayer::setupSpecialPage @ 0x1003054c4\n// > GJGarageLayer::getItems @ 0x100305754\n// > GJGarageLayer::dialogClosed @ 0x100306da4\n// > GJItemIcon::createStoreItem @ 0x1003079b0\n// > ItemInfoPopup::init @ 0x1003085f0\n// > ShardsPage::init @ 0x1003a291c\n// > GJPathPage::init @ 0x1003b95b8\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 v10; // w23\n  int v11; // w25\n  GJItemIcon *v14; // x19\n  cocos2d::ccColor3B v16; // [xsp+0h] [xbp-50h]\n\n  v10 = *(_DWORD *)&a4.r;\n  v11 = *(_DWORD *)&a3.r;\n  v14 = (GJItemIcon *)operator new(0x278u);\n  GJItemIcon::GJItemIcon(v14);\n  if ( GJItemIcon::init(\n         v14,\n         a1,\n         a2,\n         (cocos2d::ccColor3B)(v11 & 0xFFFFFF),\n         (cocos2d::ccColor3B)(v10 & 0xFFFFFF),\n         a5,\n         0,\n         a7,\n         v16) )\n  {\n    cocos2d::CCObject::autorelease(v14);\n  }\n  else\n  {\n    ((void (__fastcall *)(GJItemIcon *))v14->~GJItemIcon_0)(v14);\n    return nullptr;\n  }\n  return v14;\n}", "assembly": "; \n; GJItemIcon::create from 0x1003079b4 to 0x100307a60 (172 bytes)\n; \n; 12 xrefs:\n; > AchievementCell::loadFromDict @ 0x100101ac8\n; > CommunityCreditsPage::init @ 0x1001a1ac4\n; > RewardUnlockLayer::playRewardEffect @ 0x1001c626c\n; > RewardUnlockLayer::playRewardEffect @ 0x1001c671c\n; > AchievementBar::init @ 0x10026b694\n; > GJGarageLayer::setupSpecialPage @ 0x1003054c4\n; > GJGarageLayer::getItems @ 0x100305754\n; > GJGarageLayer::dialogClosed @ 0x100306da4\n; > GJItemIcon::createStoreItem @ 0x1003079b0\n; > ItemInfoPopup::init @ 0x1003085f0\n; > ShardsPage::init @ 0x1003a291c\n; > GJPathPage::init @ 0x1003b95b8\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, #0x60                                          ; +0x0, 0x1003079b4\nSTP             X26, X25, [SP,#0x50+var_40]                            ; +0x4, 0x1003079b8\nSTP             X24, X23, [SP,#0x50+var_30]                            ; +0x8, 0x1003079bc\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0xc, 0x1003079c0\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x10, 0x1003079c4\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x14, 0x1003079c8\nADD             X29, SP, #0x50                                         ; +0x18, 0x1003079cc\nMOV             X20, X6                                                ; +0x1c, 0x1003079d0\nMOV             X21, X4                                                ; +0x20, 0x1003079d4\nMOV             X23, X3                                                ; +0x24, 0x1003079d8\nMOV             X25, X2                                                ; +0x28, 0x1003079dc\nMOV             X22, X1                                                ; +0x2c, 0x1003079e0\nMOV             X24, X0                                                ; +0x30, 0x1003079e4\nMOV             W0, #0x278; __sz                                       ; +0x34, 0x1003079e8\nBL              __Znwm; operator new(ulong)                            ; +0x38, 0x1003079ec\nMOV             X19, X0                                                ; +0x3c, 0x1003079f0\nBL              GJItemIcon__GJItemIcon                                 ; +0x40, 0x1003079f4\nAND             X3, X25, #0xFFFFFF                                     ; +0x44, 0x1003079f8\nAND             X4, X23, #0xFFFFFF                                     ; +0x48, 0x1003079fc\nMOV             X0, X19                                                ; +0x4c, 0x100307a00\nMOV             X1, X24                                                ; +0x50, 0x100307a04\nMOV             X2, X22                                                ; +0x54, 0x100307a08\nMOV             X5, X21                                                ; +0x58, 0x100307a0c\nMOV             W6, #0                                                 ; +0x5c, 0x100307a10\nMOV             X7, X20                                                ; +0x60, 0x100307a14\nBL              GJItemIcon__init                                       ; +0x64, 0x100307a18\nCBZ             W0, loc_100307A2C                                      ; +0x68, 0x100307a1c\nMOV             X0, X19                                                ; +0x6c, 0x100307a20\nBL              cocos2d__CCObject__autorelease                         ; +0x70, 0x100307a24\nB               loc_100307A40                                          ; +0x74, 0x100307a28\nLDR             X8, [X19]                                              ; +0x78, 0x100307a2c\nLDR             X8, [X8,#0x10]                                         ; +0x7c, 0x100307a30\nMOV             X0, X19                                                ; +0x80, 0x100307a34\nBLR             X8                                                     ; +0x84, 0x100307a38\nMOV             X19, #0                                                ; +0x88, 0x100307a3c\nMOV             X0, X19                                                ; +0x8c, 0x100307a40\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x90, 0x100307a44\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x94, 0x100307a48\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0x98, 0x100307a4c\nLDP             X24, X23, [SP,#0x50+var_30]                            ; +0x9c, 0x100307a50\nLDP             X26, X25, [SP,#0x50+var_40]                            ; +0xa0, 0x100307a54\nADD             SP, SP, #0x60 ; '`'                                    ; +0xa4, 0x100307a58\nRET                                                                    ; +0xa8, 0x100307a5c", "xrefs": ["AchievementCell::loadFromDict @ 0x100101ac8", "CommunityCreditsPage::init @ 0x1001a1ac4", "RewardUnlockLayer::playRewardEffect @ 0x1001c626c", "RewardUnlockLayer::playRewardEffect @ 0x1001c671c", "AchievementBar::init @ 0x10026b694", "GJGarageLayer::setupSpecialPage @ 0x1003054c4", "GJGarageLayer::getItems @ 0x100305754", "GJGarageLayer::dialogClosed @ 0x100306da4", "GJItemIcon::createStoreItem @ 0x1003079b0", "ItemInfoPopup::init @ 0x1003085f0", "ShardsPage::init @ 0x1003a291c", "GJPathPage::init @ 0x1003b95b8"], "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"}