{"type": "func", "start": 4300064144, "end": 4300064284, "name": "EmoteSprite::initWithDef", "pseudocode": "// \n// EmoteSprite::initWithDef from 0x1004dc590 to 0x1004dc61c (140 bytes)\n// \n// 1 xrefs:\n// > EmoteSprite::createWithDef @ 0x1004dc544\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 11:06:34 +0000\n// \n\n__int64 __fastcall EmoteSprite::initWithDef(__int64 a1, __int64 a2)\n{\n  __int64 v2; // x20\n  void *v4; // x0\n  __int64 CString; // x0\n  int v6; // w8\n\n  v2 = a2;\n  if ( a2 )\n  {\n    v4 = sub_1003065B0(\"particle_%02d_001.png\", *(_DWORD *)(a2 + 8));\n    CString = cocos2d::CCString::getCString((__int64)v4);\n    if ( (unsigned int)cocos2d::CCSprite::initWithSpriteFrameName(a1, CString) )\n    {\n      *(_QWORD *)(a1 + 600) = v2;\n      cocos2d::CCSprite::setColor((unsigned __int8 *)a1, (unsigned __int8 *)(v2 + 24));\n      v6 = *(unsigned __int8 *)(v2 + 40);\n      v2 = 1;\n      if ( v6 == 1 )\n        cocos2d::CCSprite::setFlipX((unsigned __int8 *)a1, 1);\n    }\n    else\n    {\n      return 0;\n    }\n  }\n  return v2;\n}", "assembly": "; \n; EmoteSprite::initWithDef from 0x1004dc590 to 0x1004dc61c (140 bytes)\n; \n; 1 xrefs:\n; > EmoteSprite::createWithDef @ 0x1004dc544\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 11:06:34 +0000\n; \nSUB             SP, SP, #0x30                                          ; +0x0, 0x1004dc590\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1004dc594\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1004dc598\nADD             X29, SP, #0x20                                         ; +0xc, 0x1004dc59c\nMOV             X20, X1                                                ; +0x10, 0x1004dc5a0\nCBZ             X1, loc_1004DC608                                      ; +0x14, 0x1004dc5a4\nMOV             X19, X0                                                ; +0x18, 0x1004dc5a8\nLDR             W8, [X20,#8]                                           ; +0x1c, 0x1004dc5ac\nSTR             X8, [SP,#0x20+var_20]                                  ; +0x20, 0x1004dc5b0\nADRL            X0, aParticle02d001; \"particle_%02d_001.png\"           ; +0x24, 0x1004dc5b4\nBL              sub_1003065B0                                          ; +0x2c, 0x1004dc5bc\nBL              cocos2d__CCString__getCString                          ; +0x30, 0x1004dc5c0\nMOV             X1, X0                                                 ; +0x34, 0x1004dc5c4\nMOV             X0, X19                                                ; +0x38, 0x1004dc5c8\nBL              cocos2d__CCSprite__initWithSpriteFrameName             ; +0x3c, 0x1004dc5cc\nCBZ             W0, loc_1004DC604                                      ; +0x40, 0x1004dc5d0\nSTR             X20, [X19,#0x258]                                      ; +0x44, 0x1004dc5d4\nADD             X1, X20, #0x18                                         ; +0x48, 0x1004dc5d8\nMOV             X0, X19                                                ; +0x4c, 0x1004dc5dc\nBL              cocos2d__CCSprite__setColor                            ; +0x50, 0x1004dc5e0\nLDRB            W8, [X20,#0x28]                                        ; +0x54, 0x1004dc5e4\nMOV             W20, #1                                                ; +0x58, 0x1004dc5e8\nCMP             W8, #1                                                 ; +0x5c, 0x1004dc5ec\nB.NE            loc_1004DC608                                          ; +0x60, 0x1004dc5f0\nMOV             X0, X19                                                ; +0x64, 0x1004dc5f4\nMOV             W1, #1                                                 ; +0x68, 0x1004dc5f8\nBL              cocos2d__CCSprite__setFlipX                            ; +0x6c, 0x1004dc5fc\nB               loc_1004DC608                                          ; +0x70, 0x1004dc600\nMOV             W20, #0                                                ; +0x74, 0x1004dc604\nMOV             X0, X20                                                ; +0x78, 0x1004dc608\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x7c, 0x1004dc60c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x80, 0x1004dc610\nADD             SP, SP, #0x30 ; '0'                                    ; +0x84, 0x1004dc614\nRET                                                                    ; +0x88, 0x1004dc618", "xrefs": ["EmoteSprite::createWithDef @ 0x1004dc544"], "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"}