{"type": "func", "start": 7836672, "end": 7836768, "name": "EmotePickerPopup::toggle", "pseudocode": "// \n// EmotePickerPopup::toggle from 0x779400 to 0x779460 (96 bytes)\n// \n// 7 xrefs:\n// > EditLevelLayer::onEmotes @ 0x49f4b2\n// > ShareCommentLayer::onEmotes @ 0x540c4c\n// > SetTextPopup::onEmotes @ 0x5d38ae\n// > ThreadViewPopup::onEmotes @ 0x745bf4\n// > ThreadDescPopup::onEmotes @ 0x7463e8\n// > NewThreadPopup::onEmotes @ 0x748364\n// > SoundPackDescPopup::onEmotes @ 0x784c0a\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::toggle(int a1, int a2, cocos2d::CCNode *a3, int a4, int a5, int a6)\n{\n  _DWORD *v10; // r0\n  _DWORD v11[3]; // [sp+4h] [bp-Ch] BYREF\n\n  v11[0] = a2;\n  v11[1] = a3;\n  v11[2] = a4;\n  if ( a1 )\n  {\n    (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)a1 + 684))(a1, 0);\n    return nullptr;\n  }\n  if ( !a3 )\n    return nullptr;\n  if ( !a4 )\n    return nullptr;\n  EmotePickerPopup::buttonAnchor((EmotePickerPopup *)v11, a3);\n  v10 = EmotePickerPopup::create(a4, (const cocos2d::CCPoint *)v11, a5, a6);\n  return EmotePickerPopup::openAt(v10, a2, a3);\n}", "assembly": "; \n; EmotePickerPopup::toggle from 0x779400 to 0x779460 (96 bytes)\n; \n; 7 xrefs:\n; > EditLevelLayer::onEmotes @ 0x49f4b2\n; > ShareCommentLayer::onEmotes @ 0x540c4c\n; > SetTextPopup::onEmotes @ 0x5d38ae\n; > ThreadViewPopup::onEmotes @ 0x745bf4\n; > ThreadDescPopup::onEmotes @ 0x7463e8\n; > NewThreadPopup::onEmotes @ 0x748364\n; > SoundPackDescPopup::onEmotes @ 0x784c0a\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; \nPUSH.W          {R0-R8,LR}                                             ; +0x0, 0x779400\nMOV             R4, R3                                                 ; +0x4, 0x779404\nLDR             R3, =(__stack_chk_guard_ptr - 0x779410)                ; +0x6, 0x779406\nMOV             R5, R2                                                 ; +0x8, 0x779408\nMOV             R8, R1                                                 ; +0xa, 0x77940a\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0xc, 0x77940c\nLDR             R3, [R3]; __stack_chk_guard                            ; +0xe, 0x77940e\nLDR             R2, [R3]                                               ; +0x10, 0x779410\nMOV             R6, R3                                                 ; +0x12, 0x779412\nSTR             R2, [SP,#0x10+var_4]                                   ; +0x14, 0x779414\nCBZ             R0, loc_779426                                         ; +0x16, 0x779416\nLDR             R3, [R0]                                               ; +0x18, 0x779418\nMOVS            R1, #0                                                 ; +0x1a, 0x77941a\nLDR.W           R3, [R3,#0x2AC]                                        ; +0x1c, 0x77941c\nBLX             R3                                                     ; +0x20, 0x779420\nMOVS            R0, #0                                                 ; +0x22, 0x779422\nB               loc_77944E                                             ; +0x24, 0x779424\nCMP             R5, #0                                                 ; +0x26, 0x779426\nBEQ             loc_779422                                             ; +0x28, 0x779428\nCBZ             R4, loc_77944C                                         ; +0x2a, 0x77942a\nADD             R7, SP, #0x10+var_C                                    ; +0x2c, 0x77942c\nMOV             R1, R5; cocos2d::CCNode *                              ; +0x2e, 0x77942e\nMOV             R0, R7; this                                           ; +0x30, 0x779430\nBL              _ZN16EmotePickerPopup12buttonAnchorEPN7cocos2d6CCNodeE; EmotePickerPopup::buttonAnchor(cocos2d::CCNode *) ; +0x32, 0x779432\nMOV             R1, R7                                                 ; +0x36, 0x779436\nLDR             R2, [SP,#0x10+arg_0]                                   ; +0x38, 0x779438\nMOV             R0, R4                                                 ; +0x3a, 0x77943a\nLDR             R3, [SP,#0x10+arg_4]                                   ; +0x3c, 0x77943c\nBL              _ZN16EmotePickerPopup6createEP15CCTextInputNodeN7cocos2d7CCPointEii; EmotePickerPopup::create(CCTextInputNode *,cocos2d::CCPoint,int,int) ; +0x3e, 0x77943e\nMOV             R1, R8; int                                            ; +0x42, 0x779442\nMOV             R2, R5; cocos2d::CCNode *                              ; +0x44, 0x779444\nBL              _ZN16EmotePickerPopup6openAtEPS_P19EmotePickerDelegatePN7cocos2d6CCNodeE; EmotePickerPopup::openAt(EmotePickerPopup*,EmotePickerDelegate *,cocos2d::CCNode *) ; +0x46, 0x779446\nB               loc_77944E                                             ; +0x4a, 0x77944a\nMOV             R0, R4                                                 ; +0x4c, 0x77944c\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x4e, 0x77944e\nLDR             R3, [R6]                                               ; +0x50, 0x779450\nCMP             R2, R3                                                 ; +0x52, 0x779452\nBEQ             loc_77945A                                             ; +0x54, 0x779454\nBLX             __stack_chk_fail                                       ; +0x56, 0x779456\nADD             SP, SP, #0x10                                          ; +0x5a, 0x77945a\nPOP.W           {R4-R8,PC}                                             ; +0x5c, 0x77945c", "xrefs": ["EditLevelLayer::onEmotes @ 0x49f4b2", "ShareCommentLayer::onEmotes @ 0x540c4c", "SetTextPopup::onEmotes @ 0x5d38ae", "ThreadViewPopup::onEmotes @ 0x745bf4", "ThreadDescPopup::onEmotes @ 0x7463e8", "NewThreadPopup::onEmotes @ 0x748364", "SoundPackDescPopup::onEmotes @ 0x784c0a"], "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"}