{"type": "func", "start": 6310348, "end": 6310414, "name": "CurrencySprite::create", "pseudocode": "// \n// CurrencySprite::create from 0x6049cc to 0x604a0e (66 bytes)\n// \n// 3 xrefs:\n// > CurrencyRewardLayer::createObjectsFull @ 0x604e0c\n// > CurrencyRewardLayer::init @ 0x6064f6\n// > CurrencyRewardLayer::init @ 0x606736\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:54:43 +0000\n// \n\nCurrencySprite *__fastcall CurrencySprite::create(int a1, int a2)\n{\n  CurrencySprite *v4; // r4\n  int v5; // r3\n  CurrencySprite *v6; // r0\n\n  v4 = (CurrencySprite *)operator new(0x230u);\n  CurrencySprite::CurrencySprite(v4);\n  if ( CurrencySprite::init((int)v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n  }\n  else\n  {\n    v5 = *(_DWORD *)v4;\n    v6 = v4;\n    v4 = nullptr;\n    (*(void (__fastcall **)(CurrencySprite *))(v5 + 8))(v6);\n  }\n  return v4;\n}", "assembly": "; \n; CurrencySprite::create from 0x6049cc to 0x604a0e (66 bytes)\n; \n; 3 xrefs:\n; > CurrencyRewardLayer::createObjectsFull @ 0x604e0c\n; > CurrencyRewardLayer::init @ 0x6064f6\n; > CurrencyRewardLayer::init @ 0x606736\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:54:43 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x6049cc\nMOV             R6, R0                                                 ; +0x2, 0x6049ce\nMOV.W           R0, #0x230; unsigned int                               ; +0x4, 0x6049d0\nMOV             R5, R1                                                 ; +0x8, 0x6049d4\nBL              _Znwj; operator new(uint)                              ; +0xa, 0x6049d6\nMOV             R4, R0                                                 ; +0xe, 0x6049da\nBL              _ZN14CurrencySpriteC2Ev; CurrencySprite::CurrencySprite(void) ; +0x10, 0x6049dc\nMOV             R2, R5                                                 ; +0x14, 0x6049e0\nMOV             R0, R4                                                 ; +0x16, 0x6049e2\nMOV             R1, R6                                                 ; +0x18, 0x6049e4\nBL              _ZN14CurrencySprite4initE18CurrencySpriteTypeb; CurrencySprite::init(CurrencySpriteType,bool) ; +0x1a, 0x6049e6\nMOV             R5, R0                                                 ; +0x1e, 0x6049ea\nCBZ             R0, loc_604A00                                         ; +0x20, 0x6049ec\nMOV             R0, R4; this                                           ; +0x22, 0x6049ee\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x24, 0x6049f0\nB               loc_604A0A                                             ; +0x28, 0x6049f4\nMOV             R0, R4; void *                                         ; +0x2a, 0x6049f6\nBL              _ZdlPv; operator delete(void *)                        ; +0x2c, 0x6049f8\nBL              __cxa_end_cleanup                                      ; +0x30, 0x6049fc\nLDR             R3, [R4]                                               ; +0x34, 0x604a00\nMOV             R0, R4                                                 ; +0x36, 0x604a02\nMOV             R4, R5                                                 ; +0x38, 0x604a04\nLDR             R3, [R3,#8]                                            ; +0x3a, 0x604a06\nBLX             R3                                                     ; +0x3c, 0x604a08\nMOV             R0, R4                                                 ; +0x3e, 0x604a0a\nPOP             {R4-R6,PC}                                             ; +0x40, 0x604a0c", "xrefs": ["CurrencyRewardLayer::createObjectsFull @ 0x604e0c", "CurrencyRewardLayer::init @ 0x6064f6", "CurrencyRewardLayer::init @ 0x606736"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}