{"type": "func", "start": 7214404, "end": 7214556, "name": "EmoteSprite::initWithDef", "pseudocode": "// \n// EmoteSprite::initWithDef from 0x6e1544 to 0x6e15dc (152 bytes)\n// \n// 2 xrefs:\n// > EmoteSprite::createWithDef @ 0x6e1628\n// > <???> @ 0xe5a08\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:51:39 +0000\n// \n\n__int64 __fastcall EmoteSprite::initWithDef(cocos2d::CCSprite *a1, __int64 a2)\n{\n  cocos2d::CCString *v4; // x0\n  const char *CString; // x0\n  unsigned __int8 v6; // w0\n  unsigned int v7; // w21\n  unsigned int v9; // w21\n\n  if ( !a2 )\n    return 0;\n  v4 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(\n                              (cocos2d::CCString *)\"particle_%02d_001.png\",\n                              (const char *)*(unsigned int *)(a2 + 8));\n  CString = (const char *)cocos2d::CCString::getCString(v4);\n  v6 = cocos2d::CCSprite::initWithSpriteFrameName(a1, CString);\n  v7 = v6;\n  if ( !v6 )\n    return 0;\n  *((_QWORD *)a1 + 75) = a2;\n  cocos2d::CCSprite::setColor(a1, a2 + 24);\n  if ( !*(_BYTE *)(a2 + 40) )\n    return v7;\n  v9 = *(unsigned __int8 *)(a2 + 40);\n  cocos2d::CCSprite::setFlipX(a1, 1);\n  return v9;\n}", "assembly": "; \n; EmoteSprite::initWithDef from 0x6e1544 to 0x6e15dc (152 bytes)\n; \n; 2 xrefs:\n; > EmoteSprite::createWithDef @ 0x6e1628\n; > <???> @ 0xe5a08\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:51:39 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x6e1544\nMOV             X29, SP                                                ; +0x4, 0x6e1548\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x6e154c\nSTR             X21, [SP,#0x30+var_10]                                 ; +0xc, 0x6e1550\nCBZ             X1, loc_6E1588                                         ; +0x10, 0x6e1554\nMOV             X20, X0                                                ; +0x14, 0x6e1558\nMOV             X19, X1                                                ; +0x18, 0x6e155c\nADRP            X0, #aParticle02d001@PAGE; \"particle_%02d_001.png\"     ; +0x1c, 0x6e1560\nLDR             W1, [X1,#8]; char *                                    ; +0x20, 0x6e1564\nADD             X0, X0, #aParticle02d001@PAGEOFF; \"particle_%02d_001.png\" ; +0x24, 0x6e1568\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0x28, 0x6e156c\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0x2c, 0x6e1570\nMOV             X1, X0; char *                                         ; +0x30, 0x6e1574\nMOV             X0, X20; this                                          ; +0x34, 0x6e1578\nBL              _ZN7cocos2d8CCSprite23initWithSpriteFrameNameEPKc; cocos2d::CCSprite::initWithSpriteFrameName(char const*) ; +0x38, 0x6e157c\nUXTB            W21, W0                                                ; +0x3c, 0x6e1580\nCBNZ            W21, loc_6E15A0                                        ; +0x40, 0x6e1584\nMOV             W21, #0                                                ; +0x44, 0x6e1588\nMOV             W0, W21                                                ; +0x48, 0x6e158c\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x4c, 0x6e1590\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x50, 0x6e1594\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x54, 0x6e1598\nRET                                                                    ; +0x58, 0x6e159c\nSTR             X19, [X20,#0x258]                                      ; +0x5c, 0x6e15a0\nMOV             X0, X20                                                ; +0x60, 0x6e15a4\nADD             X1, X19, #0x18                                         ; +0x64, 0x6e15a8\nBL              _ZN7cocos2d8CCSprite8setColorERKNS_10_ccColor3BE; cocos2d::CCSprite::setColor(cocos2d::_ccColor3B const&) ; +0x68, 0x6e15ac\nLDRB            W2, [X19,#0x28]                                        ; +0x6c, 0x6e15b0\nCBZ             W2, loc_6E158C                                         ; +0x70, 0x6e15b4\nMOV             X0, X20; this                                          ; +0x74, 0x6e15b8\nMOV             W1, #1; bool                                           ; +0x78, 0x6e15bc\nMOV             W21, W2                                                ; +0x7c, 0x6e15c0\nBL              _ZN7cocos2d8CCSprite8setFlipXEb; cocos2d::CCSprite::setFlipX(bool) ; +0x80, 0x6e15c4\nMOV             W0, W21                                                ; +0x84, 0x6e15c8\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x88, 0x6e15cc\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x8c, 0x6e15d0\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x90, 0x6e15d4\nRET                                                                    ; +0x94, 0x6e15d8", "xrefs": ["EmoteSprite::createWithDef @ 0x6e1628", "<???> @ 0xe5a08"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}