{"type": "func", "start": 6443710260, "end": 6443710306, "name": "_set_errno_from_matherr", "pseudocode": "// \n// _set_errno_from_matherr from 0x180133734 to 0x180133762 (46 bytes)\n// \n// 7 xrefs:\n// > _except2 @ 0x18013311e\n// > _umatherr @ 0x180133810\n// > _umatherr @ 0x180133824\n// > _call_matherr @ 0x18013395c\n// > _handle_error @ 0x180133b17\n// > _handle_errorf @ 0x180133c4b\n// > <???> @ 0x180203158\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\nint *__fastcall set_errno_from_matherr(int a1)\n{\n  int *result; // rax\n\n  if ( a1 == 1 )\n  {\n    result = errno();\n    *result = 33;\n  }\n  else\n  {\n    result = (int *)(unsigned int)(a1 - 2);\n    if ( (unsigned int)result <= 1 )\n    {\n      result = errno();\n      *result = 34;\n    }\n  }\n  return result;\n}", "assembly": "; \n; _set_errno_from_matherr from 0x180133734 to 0x180133762 (46 bytes)\n; \n; 7 xrefs:\n; > _except2 @ 0x18013311e\n; > _umatherr @ 0x180133810\n; > _umatherr @ 0x180133824\n; > _call_matherr @ 0x18013395c\n; > _handle_error @ 0x180133b17\n; > _handle_errorf @ 0x180133c4b\n; > <???> @ 0x180203158\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\nsub     rsp, 28h                                                       ; +0x0, 0x180133734\ncmp     ecx, 1                                                         ; +0x4, 0x180133738\njz      short loc_180133752                                            ; +0x7, 0x18013373b\nlea     eax, [rcx-2]                                                   ; +0x9, 0x18013373d\ncmp     eax, 1                                                         ; +0xc, 0x180133740\nja      short loc_18013375D                                            ; +0xf, 0x180133743\ncall    _errno                                                         ; +0x11, 0x180133745\nmov     dword ptr [rax], 22h ; '\"'                                     ; +0x16, 0x18013374a\njmp     short loc_18013375D                                            ; +0x1c, 0x180133750\ncall    _errno                                                         ; +0x1e, 0x180133752\nmov     dword ptr [rax], 21h ; '!'                                     ; +0x23, 0x180133757\nadd     rsp, 28h                                                       ; +0x29, 0x18013375d\nretn                                                                   ; +0x2d, 0x180133761", "xrefs": ["_except2 @ 0x18013311e", "_umatherr @ 0x180133810", "_umatherr @ 0x180133824", "_call_matherr @ 0x18013395c", "_handle_error @ 0x180133b17", "_handle_errorf @ 0x180133c4b", "<???> @ 0x180203158"], "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"}