{"type": "func", "start": 4146176, "end": 4146272, "name": "EmoteSprite::createWithDef", "pseudocode": "// \n// EmoteSprite::createWithDef from 0x3f4400 to 0x3f4460 (96 bytes)\n// \n// 4 xrefs:\n// > MultilineBitmapFont::initWithFont @ 0x3d64f2\n// > EmoteSprite::createWithName @ 0x3f4470\n// > EmoteSprite::attachToLabel @ 0x3f4574\n// > EmotePickerPopup::addCell @ 0x778da6\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:47:16 +0000\n// \n\ncocos2d::CCSprite *__fastcall EmoteSprite::createWithDef(int a1)\n{\n  cocos2d::CCSprite *v2; // r4\n\n  v2 = (cocos2d::CCSprite *)operator new(0x200u);\n  cocos2d::CCSprite::CCSprite(v2);\n  *(_DWORD *)v2 = &off_C8BB80;\n  *((_DWORD *)v2 + 66) = &off_C8BDF4;\n  *((_DWORD *)v2 + 70) = &off_C8BE34;\n  *((_DWORD *)v2 + 127) = 0;\n  if ( EmoteSprite::initWithDef(v2, a1) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n    return v2;\n  }\n  else\n  {\n    (*(void (__fastcall **)(cocos2d::CCSprite *))(*(_DWORD *)v2 + 8))(v2);\n    return nullptr;\n  }\n}", "assembly": "; \n; EmoteSprite::createWithDef from 0x3f4400 to 0x3f4460 (96 bytes)\n; \n; 4 xrefs:\n; > MultilineBitmapFont::initWithFont @ 0x3d64f2\n; > EmoteSprite::createWithName @ 0x3f4470\n; > EmoteSprite::attachToLabel @ 0x3f4574\n; > EmotePickerPopup::addCell @ 0x778da6\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:47:16 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x3f4400\nMOV             R5, R0                                                 ; +0x2, 0x3f4402\nMOV.W           R0, #0x200; unsigned int                               ; +0x4, 0x3f4404\nBL              _Znwj; operator new(uint)                              ; +0x8, 0x3f4408\nMOV             R4, R0                                                 ; +0xc, 0x3f440c\nBL              _ZN7cocos2d8CCSpriteC2Ev; cocos2d::CCSprite::CCSprite(void) ; +0xe, 0x3f440e\nLDR             R3, =(_ZTV11EmoteSprite_ptr - 0x3F441C)                ; +0x12, 0x3f4412\nMOV             R1, R5                                                 ; +0x14, 0x3f4414\nMOV             R0, R4                                                 ; +0x16, 0x3f4416\nADD             R3, PC; _ZTV11EmoteSprite_ptr                          ; +0x18, 0x3f4418\nLDR             R3, [R3]; `vtable for'EmoteSprite ...                  ; +0x1a, 0x3f441a\nADD.W           R2, R3, #8                                             ; +0x1c, 0x3f441c\nSTR             R2, [R4]                                               ; +0x20, 0x3f4420\nADD.W           R2, R3, #0x27C                                         ; +0x22, 0x3f4422\nADD.W           R3, R3, #0x2BC                                         ; +0x26, 0x3f4426\nSTR.W           R2, [R4,#0x108]                                        ; +0x2a, 0x3f442a\nSTR.W           R3, [R4,#0x118]                                        ; +0x2e, 0x3f442e\nMOVS            R3, #0                                                 ; +0x32, 0x3f4432\nSTR.W           R3, [R4,#0x1FC]                                        ; +0x34, 0x3f4434\nBL              _ZN11EmoteSprite11initWithDefEPK8EmoteDef; EmoteSprite::initWithDef(EmoteDef const*) ; +0x38, 0x3f4438\nMOV             R5, R0                                                 ; +0x3c, 0x3f443c\nCBZ             R0, loc_3F4454                                         ; +0x3e, 0x3f443e\nMOV             R0, R4; this                                           ; +0x40, 0x3f4440\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x42, 0x3f4442\nMOV             R0, R4                                                 ; +0x46, 0x3f4446\nPOP             {R3-R5,PC}                                             ; +0x48, 0x3f4448\nMOV             R0, R4; void *                                         ; +0x4a, 0x3f444a\nBL              _ZdlPv; operator delete(void *)                        ; +0x4c, 0x3f444c\nBL              __cxa_end_cleanup                                      ; +0x50, 0x3f4450\nLDR             R3, [R4]                                               ; +0x54, 0x3f4454\nMOV             R0, R4                                                 ; +0x56, 0x3f4456\nLDR             R3, [R3,#8]                                            ; +0x58, 0x3f4458\nBLX             R3                                                     ; +0x5a, 0x3f445a\nMOV             R0, R5                                                 ; +0x5c, 0x3f445c\nPOP             {R3-R5,PC}                                             ; +0x5e, 0x3f445e", "xrefs": ["MultilineBitmapFont::initWithFont @ 0x3d64f2", "EmoteSprite::createWithName @ 0x3f4470", "EmoteSprite::attachToLabel @ 0x3f4574", "EmotePickerPopup::addCell @ 0x778da6"], "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"}