{"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 (idp: pc, 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 10:53:20 +0000\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 (idp: pc, 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 10:53:20 +0000\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_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}