{"type": "func", "start": 4300063996, "end": 4300064124, "name": "EmoteSprite::createWithDef", "pseudocode": "// \n// EmoteSprite::createWithDef from 0x1004dc4fc to 0x1004dc57c (128 bytes)\n// \n// 4 xrefs:\n// > sub_1002D0568 @ 0x1002d0b14\n// > EmotePickerPopup::addCell @ 0x1004db748\n// > EmoteSprite::createWithName @ 0x1004dc630\n// > EmoteSprite::attachToLabel @ 0x1004dd0e4\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_QWORD *__fastcall EmoteSprite::createWithDef(__int64 a1)\n{\n  _QWORD *v2; // x19\n\n  v2 = operator new(0x260u);\n  cocos2d::CCSprite::CCSprite((__int64)v2);\n  *v2 = &off_10098C6A0;\n  v2[40] = off_10098CB88;\n  v2[43] = off_10098CC08;\n  v2[75] = 0;\n  if ( (unsigned int)EmoteSprite::initWithDef(v2, a1) )\n  {\n    cocos2d::CCObject::autorelease((__int64)v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD *))(*v2 + 16LL))(v2);\n    return nullptr;\n  }\n  return v2;\n}", "assembly": "; \n; EmoteSprite::createWithDef from 0x1004dc4fc to 0x1004dc57c (128 bytes)\n; \n; 4 xrefs:\n; > sub_1002D0568 @ 0x1002d0b14\n; > EmotePickerPopup::addCell @ 0x1004db748\n; > EmoteSprite::createWithName @ 0x1004dc630\n; > EmoteSprite::attachToLabel @ 0x1004dd0e4\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; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1004dc4fc\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1004dc500\nADD             X29, SP, #0x10                                         ; +0x8, 0x1004dc504\nMOV             X20, X0                                                ; +0xc, 0x1004dc508\nMOV             W0, #0x260; __sz                                       ; +0x10, 0x1004dc50c\nBL              __Znwm; operator new(ulong)                            ; +0x14, 0x1004dc510\nMOV             X19, X0                                                ; +0x18, 0x1004dc514\nBL              cocos2d__CCSprite__CCSprite                            ; +0x1c, 0x1004dc518\nADRL            X8, off_10098C6A0                                      ; +0x20, 0x1004dc51c\nSTR             X8, [X19]                                              ; +0x28, 0x1004dc524\nADD             X9, X8, #(off_10098CB88 - 0x10098C6A0)                 ; +0x2c, 0x1004dc528\nSTR             X9, [X19,#0x140]                                       ; +0x30, 0x1004dc52c\nADD             X8, X8, #(off_10098CC08 - 0x10098C6A0)                 ; +0x34, 0x1004dc530\nSTR             X8, [X19,#0x158]                                       ; +0x38, 0x1004dc534\nSTR             XZR, [X19,#0x258]                                      ; +0x3c, 0x1004dc538\nMOV             X0, X19                                                ; +0x40, 0x1004dc53c\nMOV             X1, X20                                                ; +0x44, 0x1004dc540\nBL              EmoteSprite__initWithDef                               ; +0x48, 0x1004dc544\nCBZ             W0, loc_1004DC558                                      ; +0x4c, 0x1004dc548\nMOV             X0, X19                                                ; +0x50, 0x1004dc54c\nBL              cocos2d__CCObject__autorelease                         ; +0x54, 0x1004dc550\nB               loc_1004DC56C                                          ; +0x58, 0x1004dc554\nLDR             X8, [X19]                                              ; +0x5c, 0x1004dc558\nLDR             X8, [X8,#0x10]                                         ; +0x60, 0x1004dc55c\nMOV             X0, X19                                                ; +0x64, 0x1004dc560\nBLR             X8                                                     ; +0x68, 0x1004dc564\nMOV             X19, #0                                                ; +0x6c, 0x1004dc568\nMOV             X0, X19                                                ; +0x70, 0x1004dc56c\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x74, 0x1004dc570\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x78, 0x1004dc574\nRET                                                                    ; +0x7c, 0x1004dc578", "xrefs": ["sub_1002D0568 @ 0x1002d0b14", "EmotePickerPopup::addCell @ 0x1004db748", "EmoteSprite::createWithName @ 0x1004dc630", "EmoteSprite::attachToLabel @ 0x1004dd0e4"], "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"}