{"type": "func", "start": 4300058864, "end": 4300059052, "name": "EmotePickerPopup::toggle", "pseudocode": "// \n// EmotePickerPopup::toggle from 0x1004db0f0 to 0x1004db1ac (188 bytes)\n// \n// 7 xrefs:\n// > sub_1001101C0 @ 0x10011020c\n// > sub_10026DCF0 @ 0x10026dd2c\n// > sub_10037D4C8 @ 0x10037d4f0\n// > sub_1004D52E8 @ 0x1004d5324\n// > sub_1004F9A8C @ 0x1004f9ac8\n// > sub_10050B088 @ 0x10050b0e8\n// > sub_1005139B0 @ 0x1005139ec\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 11:06:34 +0000\n// \n\n__int64 __fastcall EmotePickerPopup::toggle(__int64 result, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6)\n{\n  __int64 v11; // x24\n  __int64 v12; // x0\n  void *v13; // x0\n  __int64 v14; // [xsp+8h] [xbp-38h] BYREF\n\n  if ( result )\n  {\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)result + 1368LL))(result, 0);\n    return 0;\n  }\n  else if ( a3 )\n  {\n    if ( a4 )\n    {\n      v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a3 + 512LL))(a3);\n      v12 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a3 + 192LL))(a3);\n      cocos2d::CCNode::convertToWorldSpace(v11, v12, &v14);\n      v13 = EmotePickerPopup::create(a4, (double *)&v14, a5, a6);\n      return EmotePickerPopup::openAt(v13, a2, a3);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EmotePickerPopup::toggle from 0x1004db0f0 to 0x1004db1ac (188 bytes)\n; \n; 7 xrefs:\n; > sub_1001101C0 @ 0x10011020c\n; > sub_10026DCF0 @ 0x10026dd2c\n; > sub_10037D4C8 @ 0x10037d4f0\n; > sub_1004D52E8 @ 0x1004d5324\n; > sub_1004F9A8C @ 0x1004f9ac8\n; > sub_10050B088 @ 0x10050b0e8\n; > sub_1005139B0 @ 0x1005139ec\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 11:06:34 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x1004db0f0\nSTP             X24, X23, [SP,#0x40+var_30]                            ; +0x4, 0x1004db0f4\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x1004db0f8\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x1004db0fc\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x1004db100\nADD             X29, SP, #0x40                                         ; +0x14, 0x1004db104\nCBZ             X0, loc_1004DB124                                      ; +0x18, 0x1004db108\nLDR             X8, [X0]                                               ; +0x1c, 0x1004db10c\nLDR             X8, [X8,#0x558]                                        ; +0x20, 0x1004db110\nMOV             X1, #0                                                 ; +0x24, 0x1004db114\nBLR             X8                                                     ; +0x28, 0x1004db118\nMOV             X0, #0                                                 ; +0x2c, 0x1004db11c\nB               loc_1004DB194                                          ; +0x30, 0x1004db120\nMOV             X19, X2                                                ; +0x34, 0x1004db124\nCBZ             X2, loc_1004DB194                                      ; +0x38, 0x1004db128\nMOV             X23, X3                                                ; +0x3c, 0x1004db12c\nCBZ             X3, loc_1004DB194                                      ; +0x40, 0x1004db130\nMOV             X21, X5                                                ; +0x44, 0x1004db134\nMOV             X22, X4                                                ; +0x48, 0x1004db138\nMOV             X20, X1                                                ; +0x4c, 0x1004db13c\nLDR             X8, [X19]                                              ; +0x50, 0x1004db140\nLDR             X8, [X8,#0x200]                                        ; +0x54, 0x1004db144\nMOV             X0, X19                                                ; +0x58, 0x1004db148\nBLR             X8                                                     ; +0x5c, 0x1004db14c\nMOV             X24, X0                                                ; +0x60, 0x1004db150\nLDR             X8, [X19]                                              ; +0x64, 0x1004db154\nLDR             X8, [X8,#0xC0]                                         ; +0x68, 0x1004db158\nMOV             X0, X19                                                ; +0x6c, 0x1004db15c\nBLR             X8                                                     ; +0x70, 0x1004db160\nMOV             X1, X0                                                 ; +0x74, 0x1004db164\nADD             X8, SP, #0x40+var_38                                   ; +0x78, 0x1004db168\nMOV             X0, X24                                                ; +0x7c, 0x1004db16c\nBL              cocos2d__CCNode__convertToWorldSpace                   ; +0x80, 0x1004db170\nADD             X1, SP, #0x40+var_38                                   ; +0x84, 0x1004db174\nMOV             X0, X23                                                ; +0x88, 0x1004db178\nMOV             X2, X22                                                ; +0x8c, 0x1004db17c\nMOV             X3, X21                                                ; +0x90, 0x1004db180\nBL              EmotePickerPopup__create                               ; +0x94, 0x1004db184\nMOV             X1, X20                                                ; +0x98, 0x1004db188\nMOV             X2, X19                                                ; +0x9c, 0x1004db18c\nBL              EmotePickerPopup__openAt                               ; +0xa0, 0x1004db190\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xa4, 0x1004db194\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xa8, 0x1004db198\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xac, 0x1004db19c\nLDP             X24, X23, [SP,#0x40+var_30]                            ; +0xb0, 0x1004db1a0\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xb4, 0x1004db1a4\nRET                                                                    ; +0xb8, 0x1004db1a8", "xrefs": ["sub_1001101C0 @ 0x10011020c", "sub_10026DCF0 @ 0x10026dd2c", "sub_10037D4C8 @ 0x10037d4f0", "sub_1004D52E8 @ 0x1004d5324", "sub_1004F9A8C @ 0x1004f9ac8", "sub_10050B088 @ 0x10050b0e8", "sub_1005139B0 @ 0x1005139ec"], "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"}