{"type": "func", "start": 440248, "end": 440424, "name": "sub_6B7B8", "pseudocode": "// \n// sub_6B7B8 from 0x6b7b8 to 0x6b868 (176 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::setSoftwareFormat @ 0xdb2ec\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 12:13:57 +0000\n// \n\n__int64 __fastcall sub_6B7B8(__int64 a1, int a2, signed int a3, int a4)\n{\n  __int64 result; // x0\n\n  if ( *(_BYTE *)(a1 + 8) )\n    return 27;\n  result = 31;\n  if ( a3 <= 8 && (a2 == 0 || (unsigned int)(a2 - 8000) <= 0x2CEC0) )\n  {\n    if ( a3 != 1 || a4 )\n    {\n      if ( a4 <= 32 )\n      {\n        if ( a2 )\n          *(_DWORD *)(a1 + 1744) = a2;\n        *(_DWORD *)(a1 + 70460) = a3;\n        if ( a3 != 1 )\n          a4 = sub_65A10(a3);\n        *(_DWORD *)(a1 + 1748) = a4;\n        return 0;\n      }\n      else\n      {\n        return 64;\n      }\n    }\n    else\n    {\n      return 31;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_6B7B8 from 0x6b7b8 to 0x6b868 (176 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::setSoftwareFormat @ 0xdb2ec\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 12:13:57 +0000\n; \nSTR             X19, [SP,#-0x10+var_10]!                               ; +0x0, 0x6b7b8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x6b7bc\nLDRB            W8, [X0,#8]                                            ; +0x8, 0x6b7c0\nADD             X29, SP, #0x10                                         ; +0xc, 0x6b7c4\nCBZ             W8, loc_6B7D8                                          ; +0x10, 0x6b7c8\nMOV             W0, #0x1B                                              ; +0x14, 0x6b7cc\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x18, 0x6b7d0\nB               loc_702F8                                              ; +0x1c, 0x6b7d4\nMOV             W9, #0xFFFFE0C0                                        ; +0x20, 0x6b7d8\nMOV             W10, #0xCEC0                                           ; +0x24, 0x6b7dc\nCMP             W1, #0                                                 ; +0x28, 0x6b7e0\nMOVK            W10, #2,LSL#16                                         ; +0x2c, 0x6b7e4\nADD             W9, W1, W9                                             ; +0x30, 0x6b7e8\nCSET            W8, NE                                                 ; +0x34, 0x6b7ec\nCMP             W9, W10                                                ; +0x38, 0x6b7f0\nMOV             X19, X0                                                ; +0x3c, 0x6b7f4\nCSET            W9, HI                                                 ; +0x40, 0x6b7f8\nCMP             W2, #8                                                 ; +0x44, 0x6b7fc\nMOV             W0, #0x1F                                              ; +0x48, 0x6b800\nB.GT            loc_6B7D0                                              ; +0x4c, 0x6b804\nAND             W8, W8, W9                                             ; +0x50, 0x6b808\nTBNZ            W8, #0, loc_6B7D0                                      ; +0x54, 0x6b80c\nCMP             W2, #1                                                 ; +0x58, 0x6b810\nB.NE            loc_6B824                                              ; +0x5c, 0x6b814\nCBNZ            W3, loc_6B824                                          ; +0x60, 0x6b818\nMOV             W0, #0x1F                                              ; +0x64, 0x6b81c\nB               loc_6B7D0                                              ; +0x68, 0x6b820\nCMP             W3, #0x20 ; ' '                                        ; +0x6c, 0x6b824\nB.LE            loc_6B834                                              ; +0x70, 0x6b828\nMOV             W0, #0x40 ; '@'                                        ; +0x74, 0x6b82c\nB               loc_6B7D0                                              ; +0x78, 0x6b830\nCBZ             W1, loc_6B83C                                          ; +0x7c, 0x6b834\nSTR             W1, [X19,#0x6D0]                                       ; +0x80, 0x6b838\nMOV             W8, #0x1133C                                           ; +0x84, 0x6b83c\nCMP             W2, #1                                                 ; +0x8c, 0x6b844\nSTR             W2, [X19,X8]                                           ; +0x90, 0x6b848\nB.EQ            loc_6B85C                                              ; +0x94, 0x6b84c\nMOV             W0, W2                                                 ; +0x98, 0x6b850\nBL              sub_65A10                                              ; +0x9c, 0x6b854\nMOV             W3, W0                                                 ; +0xa0, 0x6b858\nMOV             W0, WZR                                                ; +0xa4, 0x6b85c\nSTR             W3, [X19,#0x6D4]                                       ; +0xa8, 0x6b860\nB               loc_6B7D0                                              ; +0xac, 0x6b864", "xrefs": ["FMOD::System::setSoftwareFormat @ 0xdb2ec"], "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"}