{"type": "func", "start": 355192, "end": 355254, "name": "FMOD::SystemI::validate", "pseudocode": "// \n// FMOD::SystemI::validate from 0x56b78 to 0x56bb6 (62 bytes)\n// \n// 1 xrefs:\n// > FMOD::SystemI::validate @ 0xe2fb8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:40:46 +0000\n// \n\nint __fastcall FMOD::SystemI::validate(int a1, int *a2, _DWORD *a3)\n{\n  int v4; // r0\n  int v5; // r5\n  int result; // r0\n\n  v4 = 0;\n  *a2 = 0;\n  do\n  {\n    if ( v4 == 8 )\n      return 30;\n    v5 = *((_DWORD *)off_E8000 + v4++ + 75);\n  }\n  while ( v5 != a1 );\n  *a2 = a1;\n  if ( !a1 )\n    return 30;\n  if ( !a3 )\n    return 0;\n  result = sub_431D0(a3, a1);\n  if ( !result )\n    return 0;\n  return result;\n}", "assembly": "; \n; FMOD::SystemI::validate from 0x56b78 to 0x56bb6 (62 bytes)\n; \n; 1 xrefs:\n; > FMOD::SystemI::validate @ 0xe2fb8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:40:46 +0000\n; \nPUSH            {R4,R5,R7,LR}                                          ; +0x0, 0x56b78\nADD             R7, SP, #8                                             ; +0x2, 0x56b7a\nMOV             R3, R0                                                 ; +0x4, 0x56b7c\nMOVS            R0, #0                                                 ; +0x6, 0x56b7e\nSTR             R0, [R1]                                               ; +0x8, 0x56b80\nLDR             R4, =(off_E6144 - 0x56B88)                             ; +0xa, 0x56b82\nADD             R4, PC; off_E6144                                      ; +0xc, 0x56b84\nLDR             R4, [R4]; off_E8000                                    ; +0xe, 0x56b86\nLDR             R4, [R4]; dword_F2488                                  ; +0x10, 0x56b88\nADD.W           R4, R4, #0x12C                                         ; +0x12, 0x56b8a\nCMP             R0, #8                                                 ; +0x16, 0x56b8e\nBEQ             loc_56BAE                                              ; +0x18, 0x56b90\nLDR.W           R5, [R4,R0,LSL#2]                                      ; +0x1a, 0x56b92\nADDS            R0, #1                                                 ; +0x1e, 0x56b96\nCMP             R5, R3                                                 ; +0x20, 0x56b98\nBNE             loc_56B8E                                              ; +0x22, 0x56b9a\nSTR             R3, [R1]                                               ; +0x24, 0x56b9c\nCBZ             R3, loc_56BAE                                          ; +0x26, 0x56b9e\nCBZ             R2, loc_56BB2                                          ; +0x28, 0x56ba0\nMOV             R0, R2                                                 ; +0x2a, 0x56ba2\nMOV             R1, R3                                                 ; +0x2c, 0x56ba4\nBL              sub_431D0                                              ; +0x2e, 0x56ba6\nCBZ             R0, loc_56BB2                                          ; +0x32, 0x56baa\nPOP             {R4,R5,R7,PC}                                          ; +0x34, 0x56bac\nMOVS            R0, #0x1E                                              ; +0x36, 0x56bae\nPOP             {R4,R5,R7,PC}                                          ; +0x38, 0x56bb0\nMOVS            R0, #0                                                 ; +0x3a, 0x56bb2\nPOP             {R4,R5,R7,PC}                                          ; +0x3c, 0x56bb4", "xrefs": ["FMOD::SystemI::validate @ 0xe2fb8"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}