{"type": "func", "start": 7836896, "end": 7836978, "name": "EmotePickerPopup::togglePicker", "pseudocode": "// \n// EmotePickerPopup::togglePicker from 0x7794e0 to 0x779532 (82 bytes)\n// \n// 3 xrefs:\n// > ThreadDescPopup::onPickIcon @ 0x7463ba\n// > NewThreadPopup::onPickIcon @ 0x7464a8\n// > SoundPackDescPopup::onPickIcon @ 0x784bde\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:59:22 +0000\n// \n\n_DWORD *__fastcall EmotePickerPopup::togglePicker(int a1, int a2, cocos2d::CCNode *a3)\n{\n  _DWORD *Picker; // r0\n  _BYTE v7[8]; // [sp+4h] [bp-10h] BYREF\n\n  if ( a1 )\n  {\n    (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)a1 + 684))(a1, 0);\n    return nullptr;\n  }\n  else if ( a3 )\n  {\n    EmotePickerPopup::buttonAnchor((EmotePickerPopup *)v7, a3);\n    Picker = EmotePickerPopup::createPicker((const cocos2d::CCPoint *)v7);\n    return EmotePickerPopup::openAt(Picker, a2, a3);\n  }\n  else\n  {\n    return nullptr;\n  }\n}", "assembly": "; \n; EmotePickerPopup::togglePicker from 0x7794e0 to 0x779532 (82 bytes)\n; \n; 3 xrefs:\n; > ThreadDescPopup::onPickIcon @ 0x7463ba\n; > NewThreadPopup::onPickIcon @ 0x7464a8\n; > SoundPackDescPopup::onPickIcon @ 0x784bde\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:59:22 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x7794E8)                ; +0x0, 0x7794e0\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x7794e2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x7794e4\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x7794e6\nMOV             R4, R2                                                 ; +0x8, 0x7794e8\nSUB             SP, SP, #0x14                                          ; +0xa, 0x7794ea\nLDR             R2, [R3]                                               ; +0xc, 0x7794ec\nMOV             R7, R1                                                 ; +0xe, 0x7794ee\nMOV             R5, R3                                                 ; +0x10, 0x7794f0\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x12, 0x7794f2\nCBZ             R0, loc_779504                                         ; +0x14, 0x7794f4\nLDR             R3, [R0]                                               ; +0x16, 0x7794f6\nMOVS            R1, #0                                                 ; +0x18, 0x7794f8\nLDR.W           R3, [R3,#0x2AC]                                        ; +0x1a, 0x7794fa\nBLX             R3                                                     ; +0x1e, 0x7794fe\nMOVS            R0, #0                                                 ; +0x20, 0x779500\nB               loc_779522                                             ; +0x22, 0x779502\nCBZ             R4, loc_779520                                         ; +0x24, 0x779504\nADD             R6, SP, #0x14+var_10                                   ; +0x26, 0x779506\nMOV             R1, R4; cocos2d::CCNode *                              ; +0x28, 0x779508\nMOV             R0, R6; this                                           ; +0x2a, 0x77950a\nBL              _ZN16EmotePickerPopup12buttonAnchorEPN7cocos2d6CCNodeE; EmotePickerPopup::buttonAnchor(cocos2d::CCNode *) ; +0x2c, 0x77950c\nMOV             R0, R6                                                 ; +0x30, 0x779510\nBL              _ZN16EmotePickerPopup12createPickerEN7cocos2d7CCPointE; EmotePickerPopup::createPicker(cocos2d::CCPoint) ; +0x32, 0x779512\nMOV             R1, R7; int                                            ; +0x36, 0x779516\nMOV             R2, R4; cocos2d::CCNode *                              ; +0x38, 0x779518\nBL              _ZN16EmotePickerPopup6openAtEPS_P19EmotePickerDelegatePN7cocos2d6CCNodeE; EmotePickerPopup::openAt(EmotePickerPopup*,EmotePickerDelegate *,cocos2d::CCNode *) ; +0x3a, 0x77951a\nB               loc_779522                                             ; +0x3e, 0x77951e\nMOV             R0, R4                                                 ; +0x40, 0x779520\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x42, 0x779522\nLDR             R3, [R5]                                               ; +0x44, 0x779524\nCMP             R2, R3                                                 ; +0x46, 0x779526\nBEQ             loc_77952E                                             ; +0x48, 0x779528\nBLX             __stack_chk_fail                                       ; +0x4a, 0x77952a\nADD             SP, SP, #0x14                                          ; +0x4e, 0x77952e\nPOP             {R4-R7,PC}                                             ; +0x50, 0x779530", "xrefs": ["ThreadDescPopup::onPickIcon @ 0x7463ba", "NewThreadPopup::onPickIcon @ 0x7464a8", "SoundPackDescPopup::onPickIcon @ 0x784bde"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}