{"type": "func", "start": 4296691076, "end": 4296691248, "name": "KeybindCapturePopup::onSet", "pseudocode": "// \n// KeybindCapturePopup::onSet from 0x1001a4d84 to 0x1001a4e30 (172 bytes)\n// \n// 3 xrefs:\n// > KeybindCapturePopup::inputKeySelected @ 0x1001a51e4\n// > KeybindCapturePopup::keyDown @ 0x1001a59a4\n// > KeybindCapturePopup::init @ 0x1001a4aec\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:00:02 +0000\n// \n\n__int64 __fastcall KeybindCapturePopup::onSet(__int64 result)\n{\n  int v1; // w1\n  __int64 v2; // x19\n  int v3; // w8\n\n  v1 = *(_DWORD *)(result + 1048);\n  if ( v1 )\n  {\n    v2 = result;\n    result = *(_QWORD *)(result + 1024);\n    if ( result )\n    {\n      if ( (*(_BYTE *)(v2 + 1056) & 1) == 0 )\n      {\n        if ( (*(_BYTE *)(v2 + 1052) & 1) == 0 )\n        {\n          v3 = *(_DWORD *)(v2 + 1044);\n          if ( v3 )\n          {\n            if ( v3 != v1 )\n            {\n              (*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)result + 40LL))(\n                result,\n                *(unsigned int *)(v2 + 1044),\n                *(unsigned int *)(v2 + 1040));\n              result = *(_QWORD *)(v2 + 1024);\n            }\n          }\n        }\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)result + 32LL))(result);\n        if ( *(_QWORD *)(v2 + 1064) )\n          VirtualKeyboardNode::resetModifiers();\n        if ( *(_QWORD *)(v2 + 1032) )\n          FLAlertLayer::requestRebuild();\n        return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 1368LL))(v2, 0);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; KeybindCapturePopup::onSet from 0x1001a4d84 to 0x1001a4e30 (172 bytes)\n; \n; 3 xrefs:\n; > KeybindCapturePopup::inputKeySelected @ 0x1001a51e4\n; > KeybindCapturePopup::keyDown @ 0x1001a59a4\n; > KeybindCapturePopup::init @ 0x1001a4aec\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:00:02 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1001a4d84\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1001a4d88\nADD             X29, SP, #0x10                                         ; +0x8, 0x1001a4d8c\nLDR             W1, [X0,#0x418]                                        ; +0xc, 0x1001a4d90\nCBZ             W1, loc_1001A4DAC                                      ; +0x10, 0x1001a4d94\nMOV             X19, X0                                                ; +0x14, 0x1001a4d98\nLDR             X0, [X0,#0x400]                                        ; +0x18, 0x1001a4d9c\nCBZ             X0, loc_1001A4DAC                                      ; +0x1c, 0x1001a4da0\nLDRB            W8, [X19,#0x420]                                       ; +0x20, 0x1001a4da4\nTBZ             W8, #0, loc_1001A4DB8                                  ; +0x24, 0x1001a4da8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x28, 0x1001a4dac\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x2c, 0x1001a4db0\nRET                                                                    ; +0x30, 0x1001a4db4\nLDRB            W8, [X19,#0x41C]                                       ; +0x34, 0x1001a4db8\nTBNZ            W8, #0, loc_1001A4DEC                                  ; +0x38, 0x1001a4dbc\nLDR             W8, [X19,#0x414]                                       ; +0x3c, 0x1001a4dc0\nCBZ             W8, loc_1001A4DEC                                      ; +0x40, 0x1001a4dc4\nCMP             W8, W1                                                 ; +0x44, 0x1001a4dc8\nB.EQ            loc_1001A4DEC                                          ; +0x48, 0x1001a4dcc\nLDR             W2, [X19,#0x410]                                       ; +0x4c, 0x1001a4dd0\nLDR             X9, [X0]                                               ; +0x50, 0x1001a4dd4\nLDR             X9, [X9,#0x28]                                         ; +0x54, 0x1001a4dd8\nMOV             X1, X8                                                 ; +0x58, 0x1001a4ddc\nBLR             X9                                                     ; +0x5c, 0x1001a4de0\nLDR             X0, [X19,#0x400]                                       ; +0x60, 0x1001a4de4\nLDR             W1, [X19,#0x418]                                       ; +0x64, 0x1001a4de8\nLDR             W2, [X19,#0x410]                                       ; +0x68, 0x1001a4dec\nLDR             X8, [X0]                                               ; +0x6c, 0x1001a4df0\nLDR             X8, [X8,#0x20]                                         ; +0x70, 0x1001a4df4\nBLR             X8                                                     ; +0x74, 0x1001a4df8\nLDR             X0, [X19,#0x428]                                       ; +0x78, 0x1001a4dfc\nCBZ             X0, loc_1001A4E08                                      ; +0x7c, 0x1001a4e00\nBL              VirtualKeyboardNode__resetModifiers                    ; +0x80, 0x1001a4e04\nLDR             X0, [X19,#0x408]                                       ; +0x84, 0x1001a4e08\nCBZ             X0, loc_1001A4E14                                      ; +0x88, 0x1001a4e0c\nBL              FLAlertLayer__requestRebuild                           ; +0x8c, 0x1001a4e10\nLDR             X8, [X19]                                              ; +0x90, 0x1001a4e14\nLDR             X2, [X8,#0x558]                                        ; +0x94, 0x1001a4e18\nMOV             X0, X19                                                ; +0x98, 0x1001a4e1c\nMOV             X1, #0                                                 ; +0x9c, 0x1001a4e20\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xa0, 0x1001a4e24\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xa4, 0x1001a4e28\nBR              X2                                                     ; +0xa8, 0x1001a4e2c", "xrefs": ["KeybindCapturePopup::inputKeySelected @ 0x1001a51e4", "KeybindCapturePopup::keyDown @ 0x1001a59a4", "KeybindCapturePopup::init @ 0x1001a4aec"], "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"}