{"type": "func", "start": 13345784, "end": 13345932, "name": "EmotePickerPopup::togglePicker", "pseudocode": "// \n// EmotePickerPopup::togglePicker from 0xcba3f8 to 0xcba48c (148 bytes)\n// \n// 4 xrefs:\n// > ThreadDescPopup::onPickIcon @ 0xc64090\n// > NewThreadPopup::onPickIcon @ 0xc64250\n// > SoundPackDescPopup::onPickIcon @ 0xcccd28\n// > <???> @ 0x63718\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::togglePicker(__int64 a1, __int64 a2, EmotePickerPopup *this)\n{\n  _QWORD *Picker; // x0\n  __int64 v7; // [xsp+30h] [xbp+30h] BYREF\n\n  if ( a1 )\n  {\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1368LL))(a1, 0);\n    return nullptr;\n  }\n  else if ( this )\n  {\n    EmotePickerPopup::buttonAnchor(this, &v7);\n    Picker = (_QWORD *)EmotePickerPopup::createPicker((const cocos2d::CCPoint *)&v7);\n    return EmotePickerPopup::openAt(Picker, a2, this);\n  }\n  else\n  {\n    return nullptr;\n  }\n}", "assembly": "; \n; EmotePickerPopup::togglePicker from 0xcba3f8 to 0xcba48c (148 bytes)\n; \n; 4 xrefs:\n; > ThreadDescPopup::onPickIcon @ 0xc64090\n; > NewThreadPopup::onPickIcon @ 0xc64250\n; > SoundPackDescPopup::onPickIcon @ 0xcccd28\n; > <???> @ 0x63718\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_40]!                                ; +0x0, 0xcba3f8\nMOV             X29, SP                                                ; +0x4, 0xcba3fc\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xcba400\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xcba404\nLDR             X4, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x10, 0xcba408\nLDR             X4, [X4]                                               ; +0x14, 0xcba40c\nSTR             X4, [X29,#0x40+var_8]                                  ; +0x18, 0xcba410\nCBNZ            X0, loc_CBA468                                         ; +0x1c, 0xcba414\nSTR             X1, [X29,#0x40+var_18]                                 ; +0x20, 0xcba418\nCBZ             X2, loc_CBA480                                         ; +0x24, 0xcba41c\nADD             X20, X29, #0x40+var_10                                 ; +0x28, 0xcba420\nMOV             X0, X2; this                                           ; +0x2c, 0xcba424\nMOV             X8, X20                                                ; +0x30, 0xcba428\nSTR             X2, [X29,#0x40+var_20]                                 ; +0x34, 0xcba42c\nBL              _ZN16EmotePickerPopup12buttonAnchorEPN7cocos2d6CCNodeE; EmotePickerPopup::buttonAnchor(cocos2d::CCNode *) ; +0x38, 0xcba430\nMOV             X0, X20                                                ; +0x3c, 0xcba434\nBL              _ZN16EmotePickerPopup12createPickerEN7cocos2d7CCPointE; EmotePickerPopup::createPicker(cocos2d::CCPoint) ; +0x40, 0xcba438\nLDR             X1, [X29,#0x40+var_18]; int                            ; +0x44, 0xcba43c\nLDR             X2, [X29,#0x40+var_20]; this                           ; +0x48, 0xcba440\nBL              _ZN16EmotePickerPopup6openAtEPS_P19EmotePickerDelegatePN7cocos2d6CCNodeE; EmotePickerPopup::openAt(EmotePickerPopup*,EmotePickerDelegate *,cocos2d::CCNode *) ; +0x4c, 0xcba444\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x50, 0xcba448\nLDR             X2, [X29,#0x40+var_8]                                  ; +0x54, 0xcba44c\nLDR             X1, [X19]                                              ; +0x58, 0xcba450\nCMP             X2, X1                                                 ; +0x5c, 0xcba454\nB.NE            loc_CBA488                                             ; +0x60, 0xcba458\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x64, 0xcba45c\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x68, 0xcba460\nRET                                                                    ; +0x6c, 0xcba464\nLDR             X2, [X0]                                               ; +0x70, 0xcba468\nMOV             X1, #0                                                 ; +0x74, 0xcba46c\nLDR             X2, [X2,#0x558]                                        ; +0x78, 0xcba470\nBLR             X2                                                     ; +0x7c, 0xcba474\nMOV             X0, #0                                                 ; +0x80, 0xcba478\nB               loc_CBA448                                             ; +0x84, 0xcba47c\nMOV             X0, #0                                                 ; +0x88, 0xcba480\nB               loc_CBA448                                             ; +0x8c, 0xcba484\nBL              .__stack_chk_fail                                      ; +0x90, 0xcba488", "xrefs": ["ThreadDescPopup::onPickIcon @ 0xc64090", "NewThreadPopup::onPickIcon @ 0xc64250", "SoundPackDescPopup::onPickIcon @ 0xcccd28", "<???> @ 0x63718"], "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"}