{"type": "func", "start": 4146100, "end": 4146172, "name": "EmoteSprite::initWithDef", "pseudocode": "// \n// EmoteSprite::initWithDef from 0x3f43b4 to 0x3f43fc (72 bytes)\n// \n// 1 xrefs:\n// > EmoteSprite::createWithDef @ 0x3f4438\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\nint __fastcall EmoteSprite::initWithDef(cocos2d::CCSprite *a1, int a2)\n{\n  int v4; // r5\n  cocos2d::CCString *v5; // r0\n  const char *CString; // r0\n  int v7; // r2\n  int v8; // r3\n  int v9; // r4\n\n  if ( !a2 )\n    return 0;\n  v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"particle_%02d_001.png\",\n                              *(const char **)(a2 + 4));\n  CString = (const char *)cocos2d::CCString::getCString(v5);\n  v4 = cocos2d::CCSprite::initWithSpriteFrameName(a1, CString);\n  if ( !v4 )\n    return 0;\n  *((_DWORD *)a1 + 127) = a2;\n  cocos2d::CCSprite::setColor(a1, a2 + 20, v7, v8);\n  v9 = *(unsigned __int8 *)(a2 + 28);\n  if ( v9 )\n  {\n    cocos2d::CCSprite::setFlipX(a1, 1);\n    return v9;\n  }\n  return v4;\n}", "assembly": "; \n; EmoteSprite::initWithDef from 0x3f43b4 to 0x3f43fc (72 bytes)\n; \n; 1 xrefs:\n; > EmoteSprite::createWithDef @ 0x3f4438\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            {R4-R6,LR}                                             ; +0x0, 0x3f43b4\nMOV             R6, R0                                                 ; +0x2, 0x3f43b6\nMOV             R4, R1                                                 ; +0x4, 0x3f43b8\nCBNZ            R1, loc_3F43C0                                         ; +0x6, 0x3f43ba\nMOVS            R5, #0                                                 ; +0x8, 0x3f43bc\nB               loc_3F43F8                                             ; +0xa, 0x3f43be\nLDR             R0, =(aParticle02d001 - 0x3F43C8); \"particle_%02d_001.png\" ; +0xc, 0x3f43c0\nLDR             R1, [R1,#4]; char *                                    ; +0xe, 0x3f43c2\nADD             R0, PC; \"particle_%02d_001.png\"                        ; +0x10, 0x3f43c4\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x12, 0x3f43c6\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x16, 0x3f43ca\nMOV             R1, R0; char *                                         ; +0x1a, 0x3f43ce\nMOV             R0, R6; this                                           ; +0x1c, 0x3f43d0\nBL              _ZN7cocos2d8CCSprite23initWithSpriteFrameNameEPKc; cocos2d::CCSprite::initWithSpriteFrameName(char const*) ; +0x1e, 0x3f43d2\nMOV             R5, R0                                                 ; +0x22, 0x3f43d6\nCMP             R0, #0                                                 ; +0x24, 0x3f43d8\nBEQ             loc_3F43BC                                             ; +0x26, 0x3f43da\nSTR.W           R4, [R6,#0x1FC]                                        ; +0x28, 0x3f43dc\nADD.W           R1, R4, #0x14                                          ; +0x2c, 0x3f43e0\nMOV             R0, R6                                                 ; +0x30, 0x3f43e4\nBL              _ZN7cocos2d8CCSprite8setColorERKNS_10_ccColor3BE; cocos2d::CCSprite::setColor(cocos2d::_ccColor3B const&) ; +0x32, 0x3f43e6\nLDRB            R4, [R4,#0x1C]                                         ; +0x36, 0x3f43ea\nCBZ             R4, loc_3F43F8                                         ; +0x38, 0x3f43ec\nMOV             R0, R6; this                                           ; +0x3a, 0x3f43ee\nMOVS            R1, #1; bool                                           ; +0x3c, 0x3f43f0\nBL              _ZN7cocos2d8CCSprite8setFlipXEb; cocos2d::CCSprite::setFlipX(bool) ; +0x3e, 0x3f43f2\nMOV             R5, R4                                                 ; +0x42, 0x3f43f6\nMOV             R0, R5                                                 ; +0x44, 0x3f43f8\nPOP             {R4-R6,PC}                                             ; +0x46, 0x3f43fa", "xrefs": ["EmoteSprite::createWithDef @ 0x3f4438"], "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"}