{"type": "func", "start": 13344408, "end": 13344608, "name": "EmotePickerPopup::toggle", "pseudocode": "// \n// EmotePickerPopup::toggle from 0xcb9e98 to 0xcb9f60 (200 bytes)\n// \n// 8 xrefs:\n// > EditLevelLayer::onEmotes @ 0x7ed5b4\n// > ShareCommentLayer::onEmotes @ 0x90df98\n// > SetTextPopup::onEmotes @ 0xa1e004\n// > ThreadViewPopup::onEmotes @ 0xc62f94\n// > ThreadDescPopup::onEmotes @ 0xc640e0\n// > NewThreadPopup::onEmotes @ 0xc67d58\n// > SoundPackDescPopup::onEmotes @ 0xcccd78\n// > <???> @ 0x798e8\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 13:06:14 +0000\n// \n\n_QWORD *__fastcall EmotePickerPopup::toggle(__int64 a1, __int64 a2, EmotePickerPopup *this, __int64 a4, int a5, int a6)\n{\n  _QWORD *v8; // x0\n  __int64 v13; // [xsp+50h] [xbp+50h] BYREF\n\n  if ( a1 )\n  {\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1368LL))(a1, 0);\n    return nullptr;\n  }\n  else if ( this && a4 )\n  {\n    EmotePickerPopup::buttonAnchor(this, &v13);\n    v8 = (_QWORD *)EmotePickerPopup::create(a4, (const cocos2d::CCPoint *)&v13, a5, a6);\n    return EmotePickerPopup::openAt(v8, a2, this);\n  }\n  else\n  {\n    return nullptr;\n  }\n}", "assembly": "; \n; EmotePickerPopup::toggle from 0xcb9e98 to 0xcb9f60 (200 bytes)\n; \n; 8 xrefs:\n; > EditLevelLayer::onEmotes @ 0x7ed5b4\n; > ShareCommentLayer::onEmotes @ 0x90df98\n; > SetTextPopup::onEmotes @ 0xa1e004\n; > ThreadViewPopup::onEmotes @ 0xc62f94\n; > ThreadDescPopup::onEmotes @ 0xc640e0\n; > NewThreadPopup::onEmotes @ 0xc67d58\n; > SoundPackDescPopup::onEmotes @ 0xcccd78\n; > <???> @ 0x798e8\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 13:06:14 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0xcb9e98\nMOV             X29, SP                                                ; +0x4, 0xcb9e9c\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0xcb9ea0\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xcb9ea4\nSTR             X22, [SP,#0x60+var_40]                                 ; +0x10, 0xcb9ea8\nMOV             X22, X1                                                ; +0x14, 0xcb9eac\nMOV             X20, X2                                                ; +0x18, 0xcb9eb0\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0xcb9eb4\nLDR             X1, [X1]                                               ; +0x20, 0xcb9eb8\nSTR             X1, [X29,#0x60+var_8]                                  ; +0x24, 0xcb9ebc\nCBNZ            X0, loc_CB9F3C                                         ; +0x28, 0xcb9ec0\nSTR             X5, [X29,#0x60+var_20]                                 ; +0x2c, 0xcb9ec4\nSTR             X4, [X29,#0x60+var_18]                                 ; +0x30, 0xcb9ec8\nCBZ             X2, loc_CB9F54                                         ; +0x34, 0xcb9ecc\nSTR             X3, [X29,#0x60+var_28]                                 ; +0x38, 0xcb9ed0\nCBZ             X3, loc_CB9F54                                         ; +0x3c, 0xcb9ed4\nADD             X1, X29, #0x60+var_10; cocos2d::CCNode *               ; +0x40, 0xcb9ed8\nMOV             X0, X2; this                                           ; +0x44, 0xcb9edc\nMOV             X8, X1                                                 ; +0x48, 0xcb9ee0\nSTR             X1, [X29,#0x60+var_30]                                 ; +0x4c, 0xcb9ee4\nBL              _ZN16EmotePickerPopup12buttonAnchorEPN7cocos2d6CCNodeE; EmotePickerPopup::buttonAnchor(cocos2d::CCNode *) ; +0x50, 0xcb9ee8\nLDR             X3, [X29,#0x60+var_28]                                 ; +0x54, 0xcb9eec\nLDR             X4, [X29,#0x60+var_18]                                 ; +0x58, 0xcb9ef0\nLDR             X5, [X29,#0x60+var_20]                                 ; +0x5c, 0xcb9ef4\nMOV             X0, X3                                                 ; +0x60, 0xcb9ef8\nLDR             X1, [X29,#0x60+var_30]                                 ; +0x64, 0xcb9efc\nMOV             W2, W4                                                 ; +0x68, 0xcb9f00\nMOV             W3, W5                                                 ; +0x6c, 0xcb9f04\nBL              _ZN16EmotePickerPopup6createEP15CCTextInputNodeN7cocos2d7CCPointEii; EmotePickerPopup::create(CCTextInputNode *,cocos2d::CCPoint,int,int) ; +0x70, 0xcb9f08\nMOV             X1, X22; int                                           ; +0x74, 0xcb9f0c\nMOV             X2, X20; this                                          ; +0x78, 0xcb9f10\nBL              _ZN16EmotePickerPopup6openAtEPS_P19EmotePickerDelegatePN7cocos2d6CCNodeE; EmotePickerPopup::openAt(EmotePickerPopup*,EmotePickerDelegate *,cocos2d::CCNode *) ; +0x7c, 0xcb9f14\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x80, 0xcb9f18\nLDR             X2, [X29,#0x60+var_8]                                  ; +0x84, 0xcb9f1c\nLDR             X1, [X19]                                              ; +0x88, 0xcb9f20\nCMP             X2, X1                                                 ; +0x8c, 0xcb9f24\nB.NE            loc_CB9F5C                                             ; +0x90, 0xcb9f28\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x94, 0xcb9f2c\nLDR             X22, [SP,#0x60+var_40]                                 ; +0x98, 0xcb9f30\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x9c, 0xcb9f34\nRET                                                                    ; +0xa0, 0xcb9f38\nLDR             X2, [X0]                                               ; +0xa4, 0xcb9f3c\nMOV             X1, #0                                                 ; +0xa8, 0xcb9f40\nLDR             X2, [X2,#0x558]                                        ; +0xac, 0xcb9f44\nBLR             X2                                                     ; +0xb0, 0xcb9f48\nMOV             X0, #0                                                 ; +0xb4, 0xcb9f4c\nB               loc_CB9F18                                             ; +0xb8, 0xcb9f50\nMOV             X0, #0                                                 ; +0xbc, 0xcb9f54\nB               loc_CB9F18                                             ; +0xc0, 0xcb9f58\nBL              .__stack_chk_fail                                      ; +0xc4, 0xcb9f5c", "xrefs": ["EditLevelLayer::onEmotes @ 0x7ed5b4", "ShareCommentLayer::onEmotes @ 0x90df98", "SetTextPopup::onEmotes @ 0xa1e004", "ThreadViewPopup::onEmotes @ 0xc62f94", "ThreadDescPopup::onEmotes @ 0xc640e0", "NewThreadPopup::onEmotes @ 0xc67d58", "SoundPackDescPopup::onEmotes @ 0xcccd78", "<???> @ 0x798e8"], "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"}