{"type": "func", "start": 4298244964, "end": 4298245076, "name": "CurrencySprite::create", "pseudocode": "// \n// CurrencySprite::create from 0x100320364 to 0x1003203d4 (112 bytes)\n// \n// 3 xrefs:\n// > CurrencyRewardLayer::init @ 0x10031fb54\n// > CurrencyRewardLayer::init @ 0x10031fde0\n// > CurrencyRewardLayer::createObjectsFull @ 0x1003208c0\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\nCurrencySprite *__fastcall CurrencySprite::create(CurrencySpriteType a1, bool a2)\n{\n  CurrencySprite *v4; // x19\n\n  v4 = (CurrencySprite *)operator new(0x2A0u);\n  CurrencySprite::CurrencySprite(v4);\n  if ( CurrencySprite::init(v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n  }\n  else\n  {\n    ((void (__fastcall *)(CurrencySprite *))v4->~CurrencySprite_0)(v4);\n    return nullptr;\n  }\n  return v4;\n}", "assembly": "; \n; CurrencySprite::create from 0x100320364 to 0x1003203d4 (112 bytes)\n; \n; 3 xrefs:\n; > CurrencyRewardLayer::init @ 0x10031fb54\n; > CurrencyRewardLayer::init @ 0x10031fde0\n; > CurrencyRewardLayer::createObjectsFull @ 0x1003208c0\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100320364\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100320368\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10032036c\nADD             X29, SP, #0x20                                         ; +0xc, 0x100320370\nMOV             X20, X1                                                ; +0x10, 0x100320374\nMOV             X21, X0                                                ; +0x14, 0x100320378\nMOV             W0, #0x2A0; __sz                                       ; +0x18, 0x10032037c\nBL              __Znwm; operator new(ulong)                            ; +0x1c, 0x100320380\nMOV             X19, X0                                                ; +0x20, 0x100320384\nBL              CurrencySprite__CurrencySprite                         ; +0x24, 0x100320388\nMOV             X0, X19                                                ; +0x28, 0x10032038c\nMOV             X1, X21                                                ; +0x2c, 0x100320390\nMOV             X2, X20                                                ; +0x30, 0x100320394\nBL              CurrencySprite__init                                   ; +0x34, 0x100320398\nCBZ             W0, loc_1003203AC                                      ; +0x38, 0x10032039c\nMOV             X0, X19                                                ; +0x3c, 0x1003203a0\nBL              cocos2d__CCObject__autorelease                         ; +0x40, 0x1003203a4\nB               loc_1003203C0                                          ; +0x44, 0x1003203a8\nLDR             X8, [X19]                                              ; +0x48, 0x1003203ac\nLDR             X8, [X8,#0x10]                                         ; +0x4c, 0x1003203b0\nMOV             X0, X19                                                ; +0x50, 0x1003203b4\nBLR             X8                                                     ; +0x54, 0x1003203b8\nMOV             X19, #0                                                ; +0x58, 0x1003203bc\nMOV             X0, X19                                                ; +0x5c, 0x1003203c0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x60, 0x1003203c4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x64, 0x1003203c8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x68, 0x1003203cc\nRET                                                                    ; +0x6c, 0x1003203d0", "xrefs": ["CurrencyRewardLayer::init @ 0x10031fb54", "CurrencyRewardLayer::init @ 0x10031fde0", "CurrencyRewardLayer::createObjectsFull @ 0x1003208c0"], "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"}