{"type": "func", "start": 6443710832, "end": 6443711018, "name": "_exception_enabled", "pseudocode": "// \n// _exception_enabled from 0x180133970 to 0x180133a2a (186 bytes)\n// \n// 3 xrefs:\n// > _handle_error @ 0x180133a8a\n// > _handle_errorf @ 0x180133bb1\n// > <???> @ 0x1802031ac\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n_BOOL8 __fastcall exception_enabled(char a1, __int16 a2)\n{\n  int v3; // ebx\n\n  v3 = a1 & 0x1F;\n  if ( (a1 & 8) != 0 && (a2 & 0x80u) != 0 )\n  {\n    set_statfp(1);\n    v3 &= ~8u;\n  }\n  else if ( (a1 & 4) != 0 && (a2 & 0x200) != 0 )\n  {\n    set_statfp(4);\n    v3 &= ~4u;\n  }\n  else if ( (a1 & 1) != 0 && (a2 & 0x400) != 0 )\n  {\n    set_statfp(8);\n    v3 &= ~1u;\n  }\n  else if ( (a1 & 2) != 0 && (a2 & 0x800) != 0 )\n  {\n    if ( (a1 & 0x10) != 0 )\n      set_statfp(16);\n    v3 &= ~2u;\n  }\n  if ( (a1 & 0x10) != 0 && (a2 & 0x1000) != 0 )\n  {\n    set_statfp(32);\n    v3 &= ~0x10u;\n  }\n  return v3 == 0;\n}", "assembly": "; \n; _exception_enabled from 0x180133970 to 0x180133a2a (186 bytes)\n; \n; 3 xrefs:\n; > _handle_error @ 0x180133a8a\n; > _handle_errorf @ 0x180133bb1\n; > <???> @ 0x1802031ac\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180133970\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180133975\npush    rdi                                                            ; +0xa, 0x18013397a\nsub     rsp, 20h                                                       ; +0xb, 0x18013397b\nmov     ebx, ecx                                                       ; +0xf, 0x18013397f\nmov     rsi, rdx                                                       ; +0x11, 0x180133981\nand     ebx, 1Fh                                                       ; +0x14, 0x180133984\nmov     edi, ecx                                                       ; +0x17, 0x180133987\ntest    cl, 8                                                          ; +0x19, 0x180133989\njz      short loc_1801339A2                                            ; +0x1c, 0x18013398c\ntest    sil, sil                                                       ; +0x1e, 0x18013398e\njns     short loc_1801339A2                                            ; +0x21, 0x180133991\nmov     ecx, 1                                                         ; +0x23, 0x180133993\ncall    _set_statfp                                                    ; +0x28, 0x180133998\nand     ebx, 0FFFFFFF7h                                                ; +0x2d, 0x18013399d\njmp     short loc_1801339F9                                            ; +0x30, 0x1801339a0\nmov     ecx, 4                                                         ; +0x32, 0x1801339a2\ntest    cl, dil                                                        ; +0x37, 0x1801339a7\njz      short loc_1801339BD                                            ; +0x3a, 0x1801339aa\nbt      rsi, 9                                                         ; +0x3c, 0x1801339ac\njnb     short loc_1801339BD                                            ; +0x41, 0x1801339b1\ncall    _set_statfp                                                    ; +0x43, 0x1801339b3\nand     ebx, 0FFFFFFFBh                                                ; +0x48, 0x1801339b8\njmp     short loc_1801339F9                                            ; +0x4b, 0x1801339bb\ntest    dil, 1                                                         ; +0x4d, 0x1801339bd\njz      short loc_1801339D9                                            ; +0x51, 0x1801339c1\nbt      rsi, 0Ah                                                       ; +0x53, 0x1801339c3\njnb     short loc_1801339D9                                            ; +0x58, 0x1801339c8\nmov     ecx, 8                                                         ; +0x5a, 0x1801339ca\ncall    _set_statfp                                                    ; +0x5f, 0x1801339cf\nand     ebx, 0FFFFFFFEh                                                ; +0x64, 0x1801339d4\njmp     short loc_1801339F9                                            ; +0x67, 0x1801339d7\ntest    dil, 2                                                         ; +0x69, 0x1801339d9\njz      short loc_1801339F9                                            ; +0x6d, 0x1801339dd\nbt      rsi, 0Bh                                                       ; +0x6f, 0x1801339df\njnb     short loc_1801339F9                                            ; +0x74, 0x1801339e4\ntest    dil, 10h                                                       ; +0x76, 0x1801339e6\njz      short loc_1801339F6                                            ; +0x7a, 0x1801339ea\nmov     ecx, 10h                                                       ; +0x7c, 0x1801339ec\ncall    _set_statfp                                                    ; +0x81, 0x1801339f1\nand     ebx, 0FFFFFFFDh                                                ; +0x86, 0x1801339f6\ntest    dil, 10h                                                       ; +0x89, 0x1801339f9\njz      short loc_180133A13                                            ; +0x8d, 0x1801339fd\nbt      rsi, 0Ch                                                       ; +0x8f, 0x1801339ff\njnb     short loc_180133A13                                            ; +0x94, 0x180133a04\nmov     ecx, 20h ; ' '                                                 ; +0x96, 0x180133a06\ncall    _set_statfp                                                    ; +0x9b, 0x180133a0b\nand     ebx, 0FFFFFFEFh                                                ; +0xa0, 0x180133a10\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa3, 0x180133a13\nxor     eax, eax                                                       ; +0xa8, 0x180133a18\ntest    ebx, ebx                                                       ; +0xaa, 0x180133a1a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xac, 0x180133a1c\nsetz    al                                                             ; +0xb1, 0x180133a21\nadd     rsp, 20h                                                       ; +0xb4, 0x180133a24\npop     rdi                                                            ; +0xb8, 0x180133a28\nretn                                                                   ; +0xb9, 0x180133a29", "xrefs": ["_handle_error @ 0x180133a8a", "_handle_errorf @ 0x180133bb1", "<???> @ 0x1802031ac"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}