{"type": "func", "start": 5369229536, "end": 5369229777, "name": "EmoteSprite::createWithDef", "pseudocode": "// \n// EmoteSprite::createWithDef from 0x14007f0e0 to 0x14007f1d1 (241 bytes)\n// \n// 27 xrefs:\n// > MultilineBitmapFont::initWithFont @ 0x1400793c7\n// > EmoteSprite::createWithName @ 0x14007f1fa\n// > EmoteSprite::attachToLabel @ 0x14008030d\n// > ThreadViewPopup::init @ 0x1400d9f44\n// > ThreadViewPopup::layoutTitleRow @ 0x1400e30b5\n// > ThreadViewPopup::layoutTitleRow @ 0x1400e316e\n// > NewThreadPopup::init @ 0x1400f03c1\n// > NewThreadPopup::refreshIconSlot @ 0x1400f0987\n// > InvitesPopup::buildRows @ 0x1400f7f5b\n// > InvitesPopup::buildRows @ 0x1400f800a\n// > ThreadDescPopup::buildUI @ 0x1400fd12e\n// > ThreadDescPopup::refreshIconSlot @ 0x1400fd807\n// > ThreadRequestPopup::init @ 0x1400fedb1\n// > ThreadRequestPopup::init @ 0x1400fee63\n// > EmotePickerPopup::addCell @ 0x140123f82\n// > GJThreadCell::loadFromThread @ 0x1401599d2\n// > GJThreadCell::loadFromThread @ 0x140159a8c\n// > GJNotificationCell::loadFromNotification @ 0x14015b782\n// > GJNotificationCell::loadFromNotification @ 0x14015b7e0\n// > EditLevelLayer::init @ 0x140178f53\n// > EditorSoundConfigCell::loadFromConfig @ 0x1401908ba\n// > EditorSoundConfigCell::loadFromConfig @ 0x14019098d\n// > SoundPackDescPopup::init @ 0x140199a27\n// > SoundPackDescPopup::refreshIconSlot @ 0x140199ee0\n// > SetTextPopup::init @ 0x1403a7ab3\n// > ShareCommentLayer::init @ 0x14062f06d\n// > <???> @ 0x140911eb8\n// \n// This function is hookable on this platform (idp: pc, 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:25:54 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n_QWORD *__fastcall EmoteSprite::createWithDef(__int64 a1)\n{\n  _QWORD *v2; // rbx\n  cocos2d::CCString *v3; // rax\n  const char *CString; // rax\n\n  v2 = operator new(0x260u);\n  cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v2);\n  *v2 = &EmoteSprite::`vftable';\n  v2[40] = &EmoteSprite::`vftable';\n  v2[43] = &EmoteSprite::`vftable';\n  v2[75] = 0;\n  if ( a1\n    && (v3 = cocos2d::CCString::createWithFormat(\"particle_%02d_001.png\", *(_DWORD *)(a1 + 8)),\n        CString = cocos2d::CCString::getCString(v3),\n        cocos2d::CCSprite::initWithSpriteFrameName((cocos2d::CCSprite *)v2, CString)) )\n  {\n    v2[75] = a1;\n    cocos2d::CCSprite::setColor((cocos2d::CCSprite *)(v2 + 40), (const struct cocos2d::_ccColor3B *)(a1 + 24));\n    if ( *(_BYTE *)(a1 + 40) )\n      cocos2d::CCSprite::setFlipX((cocos2d::CCSprite *)v2, 1);\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n    return v2;\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD *, __int64))(*v2 + 8LL))(v2, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; EmoteSprite::createWithDef from 0x14007f0e0 to 0x14007f1d1 (241 bytes)\n; \n; 27 xrefs:\n; > MultilineBitmapFont::initWithFont @ 0x1400793c7\n; > EmoteSprite::createWithName @ 0x14007f1fa\n; > EmoteSprite::attachToLabel @ 0x14008030d\n; > ThreadViewPopup::init @ 0x1400d9f44\n; > ThreadViewPopup::layoutTitleRow @ 0x1400e30b5\n; > ThreadViewPopup::layoutTitleRow @ 0x1400e316e\n; > NewThreadPopup::init @ 0x1400f03c1\n; > NewThreadPopup::refreshIconSlot @ 0x1400f0987\n; > InvitesPopup::buildRows @ 0x1400f7f5b\n; > InvitesPopup::buildRows @ 0x1400f800a\n; > ThreadDescPopup::buildUI @ 0x1400fd12e\n; > ThreadDescPopup::refreshIconSlot @ 0x1400fd807\n; > ThreadRequestPopup::init @ 0x1400fedb1\n; > ThreadRequestPopup::init @ 0x1400fee63\n; > EmotePickerPopup::addCell @ 0x140123f82\n; > GJThreadCell::loadFromThread @ 0x1401599d2\n; > GJThreadCell::loadFromThread @ 0x140159a8c\n; > GJNotificationCell::loadFromNotification @ 0x14015b782\n; > GJNotificationCell::loadFromNotification @ 0x14015b7e0\n; > EditLevelLayer::init @ 0x140178f53\n; > EditorSoundConfigCell::loadFromConfig @ 0x1401908ba\n; > EditorSoundConfigCell::loadFromConfig @ 0x14019098d\n; > SoundPackDescPopup::init @ 0x140199a27\n; > SoundPackDescPopup::refreshIconSlot @ 0x140199ee0\n; > SetTextPopup::init @ 0x1403a7ab3\n; > ShareCommentLayer::init @ 0x14062f06d\n; > <???> @ 0x140911eb8\n; \n; This function is hookable on this platform (idp: pc, 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:25:54 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14007f0e0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14007f0e5\npush    rdi                                                            ; +0xa, 0x14007f0ea\nsub     rsp, 20h                                                       ; +0xb, 0x14007f0eb\nmov     rdi, rcx                                                       ; +0xf, 0x14007f0ef\nmov     ecx, 260h; Size                                                ; +0x12, 0x14007f0f2\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x17, 0x14007f0f7\nmov     rbx, rax                                                       ; +0x1c, 0x14007f0fc\nmov     [rsp+28h+arg_8], rax                                           ; +0x1f, 0x14007f0ff\nmov     rcx, rax                                                       ; +0x24, 0x14007f104\ncall    cs:??0CCSprite@cocos2d@@QEAA@XZ; cocos2d::CCSprite::CCSprite(void) ; +0x27, 0x14007f107\nlea     rax, ??_7EmoteSprite@@6B@; const EmoteSprite::`vftable'        ; +0x2d, 0x14007f10d\nmov     [rbx], rax                                                     ; +0x34, 0x14007f114\nlea     rax, ??_7EmoteSprite@@6B@_0; const EmoteSprite::`vftable'      ; +0x37, 0x14007f117\nmov     [rbx+140h], rax                                                ; +0x3e, 0x14007f11e\nlea     rax, ??_7EmoteSprite@@6B@_1; const EmoteSprite::`vftable'      ; +0x45, 0x14007f125\nmov     [rbx+158h], rax                                                ; +0x4c, 0x14007f12c\nmov     qword ptr [rbx+258h], 0                                        ; +0x53, 0x14007f133\ntest    rdi, rdi                                                       ; +0x5e, 0x14007f13e\njz      short loc_14007F1B1                                            ; +0x61, 0x14007f141\nmov     edx, [rdi+8]                                                   ; +0x63, 0x14007f143\nlea     rcx, aParticle02d001; \"particle_%02d_001.png\"                  ; +0x66, 0x14007f146\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x6d, 0x14007f14d\nmov     rcx, rax                                                       ; +0x73, 0x14007f153\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x76, 0x14007f156\nmov     rdx, rax                                                       ; +0x7c, 0x14007f15c\nmov     rcx, rbx                                                       ; +0x7f, 0x14007f15f\ncall    cs:__imp_?initWithSpriteFrameName@CCSprite@cocos2d@@UEAA_NPEBD@Z; cocos2d::CCSprite::initWithSpriteFrameName(char const *) ; +0x82, 0x14007f162\ntest    al, al                                                         ; +0x88, 0x14007f168\njz      short loc_14007F1B1                                            ; +0x8a, 0x14007f16a\nmov     [rbx+258h], rdi                                                ; +0x8c, 0x14007f16c\nlea     rdx, [rdi+18h]                                                 ; +0x93, 0x14007f173\nlea     rcx, [rbx+140h]                                                ; +0x97, 0x14007f177\ncall    cs:__imp_?setColor@CCSprite@cocos2d@@UEAAXAEBU_ccColor3B@2@@Z; cocos2d::CCSprite::setColor(cocos2d::_ccColor3B const &) ; +0x9e, 0x14007f17e\ncmp     byte ptr [rdi+28h], 0                                          ; +0xa4, 0x14007f184\njz      short loc_14007F195                                            ; +0xa8, 0x14007f188\nmov     dl, 1                                                          ; +0xaa, 0x14007f18a\nmov     rcx, rbx                                                       ; +0xac, 0x14007f18c\ncall    cs:?setFlipX@CCSprite@cocos2d@@QEAAX_N@Z; cocos2d::CCSprite::setFlipX(bool) ; +0xaf, 0x14007f18f\nmov     rcx, rbx                                                       ; +0xb5, 0x14007f195\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xb8, 0x14007f198\nmov     rax, rbx                                                       ; +0xbe, 0x14007f19e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xc1, 0x14007f1a1\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xc6, 0x14007f1a6\nadd     rsp, 20h                                                       ; +0xcb, 0x14007f1ab\npop     rdi                                                            ; +0xcf, 0x14007f1af\nretn                                                                   ; +0xd0, 0x14007f1b0\nmov     rax, [rbx]                                                     ; +0xd1, 0x14007f1b1\nmov     edx, 1                                                         ; +0xd4, 0x14007f1b4\nmov     rcx, rbx                                                       ; +0xd9, 0x14007f1b9\ncall    qword ptr [rax+8]                                              ; +0xdc, 0x14007f1bc\nxor     eax, eax                                                       ; +0xdf, 0x14007f1bf\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xe1, 0x14007f1c1\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xe6, 0x14007f1c6\nadd     rsp, 20h                                                       ; +0xeb, 0x14007f1cb\npop     rdi                                                            ; +0xef, 0x14007f1cf\nretn                                                                   ; +0xf0, 0x14007f1d0", "xrefs": ["MultilineBitmapFont::initWithFont @ 0x1400793c7", "EmoteSprite::createWithName @ 0x14007f1fa", "EmoteSprite::attachToLabel @ 0x14008030d", "ThreadViewPopup::init @ 0x1400d9f44", "ThreadViewPopup::layoutTitleRow @ 0x1400e30b5", "ThreadViewPopup::layoutTitleRow @ 0x1400e316e", "NewThreadPopup::init @ 0x1400f03c1", "NewThreadPopup::refreshIconSlot @ 0x1400f0987", "InvitesPopup::buildRows @ 0x1400f7f5b", "InvitesPopup::buildRows @ 0x1400f800a", "ThreadDescPopup::buildUI @ 0x1400fd12e", "ThreadDescPopup::refreshIconSlot @ 0x1400fd807", "ThreadRequestPopup::init @ 0x1400fedb1", "ThreadRequestPopup::init @ 0x1400fee63", "EmotePickerPopup::addCell @ 0x140123f82", "GJThreadCell::loadFromThread @ 0x1401599d2", "GJThreadCell::loadFromThread @ 0x140159a8c", "GJNotificationCell::loadFromNotification @ 0x14015b782", "GJNotificationCell::loadFromNotification @ 0x14015b7e0", "EditLevelLayer::init @ 0x140178f53", "EditorSoundConfigCell::loadFromConfig @ 0x1401908ba", "EditorSoundConfigCell::loadFromConfig @ 0x14019098d", "SoundPackDescPopup::init @ 0x140199a27", "SoundPackDescPopup::refreshIconSlot @ 0x140199ee0", "SetTextPopup::init @ 0x1403a7ab3", "ShareCommentLayer::init @ 0x14062f06d", "<???> @ 0x140911eb8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}