{"type": "func", "start": 568024, "end": 568164, "name": "sub_8AAD8", "pseudocode": "// \n// sub_8AAD8 from 0x8aad8 to 0x8ab64 (140 bytes)\n// \n// 1 xrefs:\n// > sub_8AB64 @ 0x8ad28\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:12 +0000\n// \n\n__int64 __fastcall sub_8AAD8(__int64 a1, __int64 a2, __int64 *a3)\n{\n  __int64 v4; // x1\n  __int64 v7; // x0\n  __int64 v8; // x1\n  __int64 v9; // x22\n  __int64 result; // x0\n\n  *a3 = 0;\n  v4 = *(unsigned int *)(a2 + 16);\n  if ( !(_DWORD)v4 )\n    return 0;\n  v7 = sub_8B500(*(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000), v4);\n  if ( !v7 )\n    return 38;\n  v9 = v7;\n  result = sub_8B52C(a1, v8, 1, *(unsigned int *)(a2 + 16));\n  if ( !(_DWORD)result )\n    *a3 = v9;\n  return result;\n}", "assembly": "; \n; sub_8AAD8 from 0x8aad8 to 0x8ab64 (140 bytes)\n; \n; 1 xrefs:\n; > sub_8AB64 @ 0x8ad28\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:12 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x8aad8\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x8aadc\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x8aae0\nSTR             XZR, [X2]                                              ; +0xc, 0x8aae4\nMOV             X21, X1                                                ; +0x10, 0x8aae8\nLDR             W1, [X1,#0x10]                                         ; +0x14, 0x8aaec\nADD             X29, SP, #0x20                                         ; +0x18, 0x8aaf0\nCBZ             W1, loc_8AB48                                          ; +0x1c, 0x8aaf4\nADRP            X8, #off_10F7A0@PAGE                                   ; +0x20, 0x8aaf8\nLDR             X8, [X8,#off_10F7A0@PAGEOFF]; off_114000               ; +0x24, 0x8aafc\nMOV             X20, X0                                                ; +0x28, 0x8ab00\nMOV             X19, X2                                                ; +0x2c, 0x8ab04\nADRP            X2, #aSrcFmodCodecFs@PAGE; \"../../src/fmod_codec_fsb5.cpp\" ; +0x30, 0x8ab08\nLDR             X8, [X8]; qword_11F800                                 ; +0x34, 0x8ab0c\nADD             X2, X2, #aSrcFmodCodecFs@PAGEOFF; \"../../src/fmod_codec_fsb5.cpp\" ; +0x38, 0x8ab10\nMOV             W3, #0x233                                             ; +0x3c, 0x8ab14\nMOV             W6, #1                                                 ; +0x40, 0x8ab18\nLDR             X0, [X8,#(qword_11F9B0 - 0x11F800)]                    ; +0x44, 0x8ab1c\nBL              sub_8B500                                              ; +0x48, 0x8ab20\nCBZ             X0, loc_8AB50                                          ; +0x4c, 0x8ab24\nLDR             W3, [X21,#0x10]                                        ; +0x50, 0x8ab28\nMOV             X22, X0                                                ; +0x54, 0x8ab2c\nMOV             W2, #1                                                 ; +0x58, 0x8ab30\nMOV             X0, X20                                                ; +0x5c, 0x8ab34\nBL              sub_8B52C                                              ; +0x60, 0x8ab38\nCBNZ            W0, loc_8AB54                                          ; +0x64, 0x8ab3c\nSTR             X22, [X19]                                             ; +0x68, 0x8ab40\nB               loc_8AB54                                              ; +0x6c, 0x8ab44\nMOV             W0, WZR                                                ; +0x70, 0x8ab48\nB               loc_8AB54                                              ; +0x74, 0x8ab4c\nMOV             W0, #0x26 ; '&'                                        ; +0x78, 0x8ab50\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x7c, 0x8ab54\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x80, 0x8ab58\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x84, 0x8ab5c\nRET                                                                    ; +0x88, 0x8ab60", "xrefs": ["sub_8AB64 @ 0x8ad28"], "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"}