{"type": "func", "start": 485868, "end": 486148, "name": "sub_769EC", "pseudocode": "// \n// sub_769EC from 0x769ec to 0x76b04 (280 bytes)\n// \n// 2 xrefs:\n// > sub_6D7F8 @ 0x6d898\n// > sub_77020 @ 0x77024\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:14:02 +0000\n// \n\n__int64 __fastcall sub_769EC(__int64 a1)\n{\n  __int64 result; // x0\n  __int64 v3; // x20\n  _QWORD *v4; // x21\n  __int64 v5; // x22\n  __int64 v6; // x0\n\n  result = sub_7BC78(a1, 0);\n  if ( !(_DWORD)result )\n  {\n    result = sub_7755C(a1, 1);\n    if ( !(_DWORD)result )\n    {\n      v3 = 0;\n      v4 = (_QWORD *)(a1 + 67952);\n      v5 = 48;\n      while ( v3 < *(int *)(a1 + 1684) )\n      {\n        if ( *(_QWORD *)(*(_QWORD *)(a1 + 1696) + v5) )\n        {\n          result = sub_6AA6C(a1, v3);\n          if ( (_DWORD)result )\n            return result;\n        }\n        ++v3;\n        v5 += 56;\n      }\n      v6 = *(_QWORD *)(a1 + 1648);\n      *(_DWORD *)(a1 + 1708) = 0;\n      sub_D769C(v6);\n      sub_D5534(*(_QWORD *)(a1 + 1648));\n      if ( *v4 )\n      {\n        result = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*v4 + 16LL))(*v4);\n        if ( (_DWORD)result )\n          return result;\n        sub_E2D74(\n          *(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000),\n          *v4,\n          \"../../src/fmod_systemi_driver.cpp\",\n          294,\n          1);\n        *v4 = 0;\n      }\n      result = *(_QWORD *)(a1 + 67960);\n      if ( result )\n      {\n        sub_D783C();\n        sub_E2D74(\n          *(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000),\n          *(_QWORD *)(a1 + 67960),\n          \"../../src/fmod_systemi_driver.cpp\",\n          303,\n          1);\n        *(_QWORD *)(a1 + 67960) = 0;\n        return 0;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_769EC from 0x769ec to 0x76b04 (280 bytes)\n; \n; 2 xrefs:\n; > sub_6D7F8 @ 0x6d898\n; > sub_77020 @ 0x77024\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:14:02 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x769ec\nMOV             W1, WZR                                                ; +0x4, 0x769f0\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x8, 0x769f4\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0xc, 0x769f8\nADD             X29, SP, #0x20                                         ; +0x10, 0x769fc\nMOV             X19, X0                                                ; +0x14, 0x76a00\nBL              sub_7BC78                                              ; +0x18, 0x76a04\nCBNZ            W0, loc_76A1C                                          ; +0x1c, 0x76a08\nMOV             W1, #1                                                 ; +0x20, 0x76a0c\nMOV             X0, X19                                                ; +0x24, 0x76a10\nBL              sub_7755C                                              ; +0x28, 0x76a14\nCBZ             W0, loc_76A2C                                          ; +0x2c, 0x76a18\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x30, 0x76a1c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x34, 0x76a20\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x38, 0x76a24\nRET                                                                    ; +0x3c, 0x76a28\nMOV             W8, #0x10970                                           ; +0x40, 0x76a2c\nMOV             X20, XZR                                               ; +0x48, 0x76a34\nADD             X21, X19, X8                                           ; +0x4c, 0x76a38\nMOV             W22, #0x30 ; '0'                                       ; +0x50, 0x76a3c\nLDRSW           X8, [X19,#0x694]                                       ; +0x54, 0x76a40\nCMP             X20, X8                                                ; +0x58, 0x76a44\nB.GE            loc_76A74                                              ; +0x5c, 0x76a48\nLDR             X8, [X19,#0x6A0]                                       ; +0x60, 0x76a4c\nLDR             X8, [X8,X22]                                           ; +0x64, 0x76a50\nCBZ             X8, loc_76A68                                          ; +0x68, 0x76a54\nMOV             X0, X19                                                ; +0x6c, 0x76a58\nMOV             W1, W20                                                ; +0x70, 0x76a5c\nBL              sub_6AA6C                                              ; +0x74, 0x76a60\nCBNZ            W0, loc_76A1C                                          ; +0x78, 0x76a64\nADD             X20, X20, #1                                           ; +0x7c, 0x76a68\nADD             X22, X22, #0x38 ; '8'                                  ; +0x80, 0x76a6c\nB               loc_76A40                                              ; +0x84, 0x76a70\nLDR             X0, [X19,#0x670]                                       ; +0x88, 0x76a74\nSTR             WZR, [X19,#0x6AC]                                      ; +0x8c, 0x76a78\nBL              sub_D769C                                              ; +0x90, 0x76a7c\nLDR             X0, [X19,#0x670]                                       ; +0x94, 0x76a80\nBL              sub_D5534                                              ; +0x98, 0x76a84\nADRP            X19, #off_10F7A0@PAGE                                  ; +0x9c, 0x76a88\nLDR             X0, [X21]                                              ; +0xa0, 0x76a8c\nLDR             X19, [X19,#off_10F7A0@PAGEOFF]; off_114000             ; +0xa4, 0x76a90\nCBZ             X0, loc_76ACC                                          ; +0xa8, 0x76a94\nLDR             X8, [X0]                                               ; +0xac, 0x76a98\nLDR             X8, [X8,#0x10]                                         ; +0xb0, 0x76a9c\nBLR             X8                                                     ; +0xb4, 0x76aa0\nCBNZ            W0, loc_76A1C                                          ; +0xb8, 0x76aa4\nLDR             X8, [X19]; qword_11F800                                ; +0xbc, 0x76aa8\nLDR             X1, [X21]                                              ; +0xc0, 0x76aac\nADRL            X2, aSrcFmodSystemi_1; \"../../src/fmod_systemi_driver.cpp\" ; +0xc4, 0x76ab0\nLDR             X0, [X8,#(qword_11F9B0 - 0x11F800)]                    ; +0xcc, 0x76ab8\nMOV             W3, #0x126                                             ; +0xd0, 0x76abc\nMOV             W4, #1                                                 ; +0xd4, 0x76ac0\nBL              sub_E2D74                                              ; +0xd8, 0x76ac4\nSTR             XZR, [X21]                                             ; +0xdc, 0x76ac8\nLDR             X0, [X21,#8]                                           ; +0xe0, 0x76acc\nCBZ             X0, loc_76A1C                                          ; +0xe4, 0x76ad0\nBL              sub_D783C                                              ; +0xe8, 0x76ad4\nLDR             X8, [X19]; qword_11F800                                ; +0xec, 0x76ad8\nLDR             X1, [X21,#8]                                           ; +0xf0, 0x76adc\nADRL            X2, aSrcFmodSystemi_1; \"../../src/fmod_systemi_driver.cpp\" ; +0xf4, 0x76ae0\nLDR             X0, [X8,#(qword_11F9B0 - 0x11F800)]                    ; +0xfc, 0x76ae8\nMOV             W3, #0x12F                                             ; +0x100, 0x76aec\nMOV             W4, #1                                                 ; +0x104, 0x76af0\nBL              sub_E2D74                                              ; +0x108, 0x76af4\nMOV             W0, WZR                                                ; +0x10c, 0x76af8\nSTR             XZR, [X21,#8]                                          ; +0x110, 0x76afc\nB               loc_76A1C                                              ; +0x114, 0x76b00", "xrefs": ["sub_6D7F8 @ 0x6d898", "sub_77020 @ 0x77024"], "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"}