{"type": "func", "start": 5047740, "end": 5047802, "name": "CurrencySprite::createWithSprite", "pseudocode": "// \n// CurrencySprite::createWithSprite from 0x4d05bc to 0x4d05fa (62 bytes)\n// \n// 1 xrefs:\n// > CurrencyRewardLayer::createObjectsFull @ 0x4d1aa6\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 *CurrencySprite::createWithSprite(cocos2d::CCSprite *a1)\n{\n  CurrencySprite *v2; // r4\n  CurrencySprite_vtbl *v3; // r3\n  CurrencySprite *v4; // r0\n\n  v2 = (CurrencySprite *)operator new(0x230u);\n  CurrencySprite::CurrencySprite(v2);\n  if ( CurrencySprite::initWithSprite(v2, a1) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n  }\n  else\n  {\n    v3 = v2->CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v4 = v2;\n    v2 = nullptr;\n    v3->~CurrencySprite_0(v4);\n  }\n  return v2;\n}", "assembly": "; \n; CurrencySprite::createWithSprite from 0x4d05bc to 0x4d05fa (62 bytes)\n; \n; 1 xrefs:\n; > CurrencyRewardLayer::createObjectsFull @ 0x4d1aa6\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            {R3-R5,LR}                                             ; +0x0, 0x4d05bc\nMOV             R5, R0                                                 ; +0x2, 0x4d05be\nMOV.W           R0, #0x230; unsigned int                               ; +0x4, 0x4d05c0\nBL              _Znwj; operator new(uint)                              ; +0x8, 0x4d05c4\nMOV             R4, R0                                                 ; +0xc, 0x4d05c8\nBL              _ZN14CurrencySpriteC2Ev; CurrencySprite::CurrencySprite(void) ; +0xe, 0x4d05ca\nMOV             R1, R5; cocos2d::CCSprite *                            ; +0x12, 0x4d05ce\nMOV             R0, R4; this                                           ; +0x14, 0x4d05d0\nBL              _ZN14CurrencySprite14initWithSpriteEPN7cocos2d8CCSpriteE; CurrencySprite::initWithSprite(cocos2d::CCSprite *) ; +0x16, 0x4d05d2\nMOV             R5, R0                                                 ; +0x1a, 0x4d05d6\nCBZ             R0, loc_4D05EC                                         ; +0x1c, 0x4d05d8\nMOV             R0, R4; this                                           ; +0x1e, 0x4d05da\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x20, 0x4d05dc\nB               loc_4D05F6                                             ; +0x24, 0x4d05e0\nMOV             R0, R4; p                                              ; +0x26, 0x4d05e2\nBL              _ZdlPv; operator delete(void *)                        ; +0x28, 0x4d05e4\nBL              __cxa_end_cleanup                                      ; +0x2c, 0x4d05e8\nLDR             R3, [R4]                                               ; +0x30, 0x4d05ec\nMOV             R0, R4                                                 ; +0x32, 0x4d05ee\nMOV             R4, R5                                                 ; +0x34, 0x4d05f0\nLDR             R3, [R3,#8]                                            ; +0x36, 0x4d05f2\nBLX             R3                                                     ; +0x38, 0x4d05f4\nMOV             R0, R4                                                 ; +0x3a, 0x4d05f6\nPOP             {R3-R5,PC}                                             ; +0x3c, 0x4d05f8", "xrefs": ["CurrencyRewardLayer::createObjectsFull @ 0x4d1aa6"], "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"}