{"type": "func", "start": 6442811504, "end": 6442811563, "name": "sub_180058070", "pseudocode": "// \n// sub_180058070 from 0x180058070 to 0x1800580ab (59 bytes)\n// \n// 1 xrefs:\n// > FMOD::DSPConnection::getType @ 0x1800573f0\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__int64 __fastcall sub_180058070(__int64 a1, int *a2)\n{\n  int v3; // ecx\n\n  if ( !a2 )\n    return 31;\n  v3 = *(_DWORD *)(a1 + 124);\n  if ( (v3 & 5) == 5 )\n  {\n    *a2 = 3;\n    return 0;\n  }\n  else\n  {\n    if ( (v3 & 1) != 0 )\n      *a2 = 1;\n    else\n      *a2 = ((unsigned __int8)v3 >> 1) & 2;\n    return 0;\n  }\n}", "assembly": "; \n; sub_180058070 from 0x180058070 to 0x1800580ab (59 bytes)\n; \n; 1 xrefs:\n; > FMOD::DSPConnection::getType @ 0x1800573f0\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\ntest    rdx, rdx                                                       ; +0x0, 0x180058070\njnz     short loc_18005807B                                            ; +0x3, 0x180058073\nmov     eax, 1Fh                                                       ; +0x5, 0x180058075\nretn                                                                   ; +0xa, 0x18005807a\nmov     ecx, [rcx+7Ch]                                                 ; +0xb, 0x18005807b\nmov     eax, ecx                                                       ; +0xe, 0x18005807e\nand     eax, 5                                                         ; +0x10, 0x180058080\ncmp     al, 5                                                          ; +0x13, 0x180058083\njnz     short loc_180058090                                            ; +0x15, 0x180058085\nmov     dword ptr [rdx], 3                                             ; +0x17, 0x180058087\nxor     eax, eax                                                       ; +0x1d, 0x18005808d\nretn                                                                   ; +0x1f, 0x18005808f\ntest    cl, 1                                                          ; +0x20, 0x180058090\njz      short loc_18005809E                                            ; +0x23, 0x180058093\nmov     dword ptr [rdx], 1                                             ; +0x25, 0x180058095\nxor     eax, eax                                                       ; +0x2b, 0x18005809b\nretn                                                                   ; +0x2d, 0x18005809d\nmovzx   eax, cl                                                        ; +0x2e, 0x18005809e\nshr     eax, 1                                                         ; +0x31, 0x1800580a1\nand     eax, 2                                                         ; +0x33, 0x1800580a3\nmov     [rdx], eax                                                     ; +0x36, 0x1800580a6\nxor     eax, eax                                                       ; +0x38, 0x1800580a8\nretn                                                                   ; +0x3a, 0x1800580aa", "xrefs": ["FMOD::DSPConnection::getType @ 0x1800573f0"], "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"}