{"type": "func", "start": 4300059432, "end": 4300059736, "name": "EmotePickerPopup::refreshEnabled", "pseudocode": "// \n// EmotePickerPopup::refreshEnabled from 0x1004db328 to 0x1004db458 (304 bytes)\n// \n// 4 xrefs:\n// > EmotePickerPopup::init @ 0x1004db010\n// > EmotePickerPopup::textChanged @ 0x1004db458\n// > sub_1004DB45C @ 0x1004db460\n// > EmotePickerPopup::onPickEmote @ 0x1004dbb5c\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::refreshEnabled(__int64 result)\n{\n  __int64 v1; // x20\n  __int64 v2; // x19\n  _QWORD *v3; // x21\n  __int64 v4; // x22\n  unsigned __int64 v5; // x22\n  unsigned __int8 v6; // w23\n  __int64 v7; // x20\n  __int64 v8; // x0\n  __int64 v9; // x0\n\n  if ( *(_QWORD *)(result + 1048) )\n  {\n    v1 = result;\n    result = EmotePickerPopup::canAddEmote();\n    if ( *(_DWORD *)(v1 + 1208) != (_DWORD)result )\n    {\n      v2 = result;\n      *(_DWORD *)(v1 + 1208) = result;\n      result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 1048) + 488LL))(*(_QWORD *)(v1 + 1048));\n      if ( result )\n      {\n        result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 1048) + 488LL))(*(_QWORD *)(v1 + 1048));\n        if ( **(_DWORD **)(result + 56) )\n        {\n          v3 = *(_QWORD **)(*(_QWORD *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 1048) + 488LL))(*(_QWORD *)(v1 + 1048))\n                                      + 56)\n                          + 16LL);\n          v4 = *(_QWORD *)(*(_QWORD *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 1048) + 488LL))(*(_QWORD *)(v1 + 1048))\n                                     + 56)\n                         + 16LL);\n          result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v1 + 1048) + 488LL))(*(_QWORD *)(v1 + 1048));\n          v5 = v4 + 8LL * **(unsigned int **)(result + 56) - 8;\n          if ( (unsigned __int64)v3 <= v5 )\n          {\n            if ( (_DWORD)v2 )\n              v6 = -1;\n            else\n              v6 = 90;\n            do\n            {\n              v7 = *v3;\n              if ( !*v3 )\n                break;\n              (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)v7 + 1056LL))(*v3, v2);\n              v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 488LL))(v7);\n              v9 = sub_1002E75A0(v8, 0);\n              result = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 912LL))(v9, v6);\n              ++v3;\n            }\n            while ( (unsigned __int64)v3 <= v5 );\n          }\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; EmotePickerPopup::refreshEnabled from 0x1004db328 to 0x1004db458 (304 bytes)\n; \n; 4 xrefs:\n; > EmotePickerPopup::init @ 0x1004db010\n; > EmotePickerPopup::textChanged @ 0x1004db458\n; > sub_1004DB45C @ 0x1004db460\n; > EmotePickerPopup::onPickEmote @ 0x1004dbb5c\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; \nLDR             X8, [X0,#0x418]                                        ; +0x0, 0x1004db328\nCBZ             X8, locret_1004DB454                                   ; +0x4, 0x1004db32c\nSTP             X24, X23, [SP,#-0x10+var_30]!                          ; +0x8, 0x1004db330\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0xc, 0x1004db334\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x10, 0x1004db338\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x14, 0x1004db33c\nADD             X29, SP, #0x30                                         ; +0x18, 0x1004db340\nMOV             X20, X0                                                ; +0x1c, 0x1004db344\nBL              EmotePickerPopup__canAddEmote                          ; +0x20, 0x1004db348\nLDR             W8, [X20,#0x4B8]                                       ; +0x24, 0x1004db34c\nCMP             W8, W0                                                 ; +0x28, 0x1004db350\nB.EQ            loc_1004DB444                                          ; +0x2c, 0x1004db354\nMOV             X19, X0                                                ; +0x30, 0x1004db358\nSTR             W0, [X20,#0x4B8]                                       ; +0x34, 0x1004db35c\nLDR             X0, [X20,#0x418]                                       ; +0x38, 0x1004db360\nLDR             X8, [X0]                                               ; +0x3c, 0x1004db364\nLDR             X8, [X8,#0x1E8]                                        ; +0x40, 0x1004db368\nBLR             X8                                                     ; +0x44, 0x1004db36c\nCBZ             X0, loc_1004DB444                                      ; +0x48, 0x1004db370\nLDR             X0, [X20,#0x418]                                       ; +0x4c, 0x1004db374\nLDR             X8, [X0]                                               ; +0x50, 0x1004db378\nLDR             X8, [X8,#0x1E8]                                        ; +0x54, 0x1004db37c\nBLR             X8                                                     ; +0x58, 0x1004db380\nLDR             X8, [X0,#0x38]                                         ; +0x5c, 0x1004db384\nLDR             W8, [X8]                                               ; +0x60, 0x1004db388\nCBZ             W8, loc_1004DB444                                      ; +0x64, 0x1004db38c\nLDR             X0, [X20,#0x418]                                       ; +0x68, 0x1004db390\nLDR             X8, [X0]                                               ; +0x6c, 0x1004db394\nLDR             X8, [X8,#0x1E8]                                        ; +0x70, 0x1004db398\nBLR             X8                                                     ; +0x74, 0x1004db39c\nLDR             X8, [X0,#0x38]                                         ; +0x78, 0x1004db3a0\nLDR             X21, [X8,#0x10]                                        ; +0x7c, 0x1004db3a4\nLDR             X0, [X20,#0x418]                                       ; +0x80, 0x1004db3a8\nLDR             X8, [X0]                                               ; +0x84, 0x1004db3ac\nLDR             X8, [X8,#0x1E8]                                        ; +0x88, 0x1004db3b0\nBLR             X8                                                     ; +0x8c, 0x1004db3b4\nLDR             X8, [X0,#0x38]                                         ; +0x90, 0x1004db3b8\nLDR             X22, [X8,#0x10]                                        ; +0x94, 0x1004db3bc\nLDR             X0, [X20,#0x418]                                       ; +0x98, 0x1004db3c0\nLDR             X8, [X0]                                               ; +0x9c, 0x1004db3c4\nLDR             X8, [X8,#0x1E8]                                        ; +0xa0, 0x1004db3c8\nBLR             X8                                                     ; +0xa4, 0x1004db3cc\nLDR             X8, [X0,#0x38]                                         ; +0xa8, 0x1004db3d0\nLDR             W8, [X8]                                               ; +0xac, 0x1004db3d4\nADD             X8, X22, X8,LSL#3                                      ; +0xb0, 0x1004db3d8\nSUB             X22, X8, #8                                            ; +0xb4, 0x1004db3dc\nCMP             X21, X22                                               ; +0xb8, 0x1004db3e0\nB.HI            loc_1004DB444                                          ; +0xbc, 0x1004db3e4\nCMP             W19, #0                                                ; +0xc0, 0x1004db3e8\nMOV             W8, #0x5A ; 'Z'                                        ; +0xc4, 0x1004db3ec\nCSINV           W23, W8, WZR, EQ                                       ; +0xc8, 0x1004db3f0\nLDR             X20, [X21]                                             ; +0xcc, 0x1004db3f4\nCBZ             X20, loc_1004DB444                                     ; +0xd0, 0x1004db3f8\nLDR             X8, [X20]                                              ; +0xd4, 0x1004db3fc\nLDR             X8, [X8,#0x420]                                        ; +0xd8, 0x1004db400\nMOV             X0, X20                                                ; +0xdc, 0x1004db404\nMOV             X1, X19                                                ; +0xe0, 0x1004db408\nBLR             X8                                                     ; +0xe4, 0x1004db40c\nLDR             X8, [X20]                                              ; +0xe8, 0x1004db410\nLDR             X8, [X8,#0x1E8]                                        ; +0xec, 0x1004db414\nMOV             X0, X20                                                ; +0xf0, 0x1004db418\nBLR             X8                                                     ; +0xf4, 0x1004db41c\nMOV             W1, #0                                                 ; +0xf8, 0x1004db420\nBL              sub_1002E75A0                                          ; +0xfc, 0x1004db424\nLDR             X8, [X0]                                               ; +0x100, 0x1004db428\nLDR             X8, [X8,#0x390]                                        ; +0x104, 0x1004db42c\nAND             W1, W23, #0xFF                                         ; +0x108, 0x1004db430\nBLR             X8                                                     ; +0x10c, 0x1004db434\nADD             X21, X21, #8                                           ; +0x110, 0x1004db438\nCMP             X21, X22                                               ; +0x114, 0x1004db43c\nB.LS            loc_1004DB3F4                                          ; +0x118, 0x1004db440\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x11c, 0x1004db444\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x120, 0x1004db448\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x124, 0x1004db44c\nLDP             X24, X23, [SP+0x30+var_30],#0x40                       ; +0x128, 0x1004db450\nRET                                                                    ; +0x12c, 0x1004db454", "xrefs": ["EmotePickerPopup::init @ 0x1004db010", "EmotePickerPopup::textChanged @ 0x1004db458", "sub_1004DB45C @ 0x1004db460", "EmotePickerPopup::onPickEmote @ 0x1004dbb5c"], "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"}