{"type": "func", "start": 301704, "end": 301742, "name": "sub_49A88", "pseudocode": "// \n// sub_49A88 from 0x49a88 to 0x49aae (38 bytes)\n// \n// 2 xrefs:\n// > sub_49A04 @ 0x49a26\n// > FMOD::ChannelGroup::getChannel @ 0xb045c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall sub_49A88(int a1, int a2, _DWORD *a3)\n{\n  _DWORD *v3; // r0\n  int v4; // r1\n  _DWORD *v5; // r3\n\n  if ( a3 )\n  {\n    v3 = (_DWORD *)(a1 + 304);\n    v4 = a2 + 1;\n    *a3 = 0;\n    v5 = v3;\n    while ( 1 )\n    {\n      v5 = (_DWORD *)*v5;\n      if ( v5 == v3 )\n        break;\n      if ( !--v4 )\n      {\n        *a3 = *(_DWORD *)(v5[2] + 44);\n        return 0;\n      }\n    }\n  }\n  return 31;\n}", "assembly": "; \n; sub_49A88 from 0x49a88 to 0x49aae (38 bytes)\n; \n; 2 xrefs:\n; > sub_49A04 @ 0x49a26\n; > FMOD::ChannelGroup::getChannel @ 0xb045c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nCBZ             R2, loc_49AAA                                          ; +0x0, 0x49a88\nADD.W           R0, R0, #0x130                                         ; +0x2, 0x49a8a\nMOVS            R3, #0                                                 ; +0x6, 0x49a8e\nADDS            R1, #1                                                 ; +0x8, 0x49a90\nSTR             R3, [R2]                                               ; +0xa, 0x49a92\nMOV             R3, R0                                                 ; +0xc, 0x49a94\nLDR             R3, [R3]                                               ; +0xe, 0x49a96\nCMP             R3, R0                                                 ; +0x10, 0x49a98\nBEQ             loc_49AAA                                              ; +0x12, 0x49a9a\nSUBS            R1, #1                                                 ; +0x14, 0x49a9c\nBNE             loc_49A96                                              ; +0x16, 0x49a9e\nLDR             R0, [R3,#8]                                            ; +0x18, 0x49aa0\nLDR             R0, [R0,#0x2C]                                         ; +0x1a, 0x49aa2\nSTR             R0, [R2]                                               ; +0x1c, 0x49aa4\nMOVS            R0, #0                                                 ; +0x1e, 0x49aa6\nBX              LR                                                     ; +0x20, 0x49aa8\nMOVS            R0, #0x1F                                              ; +0x22, 0x49aaa\nBX              LR                                                     ; +0x24, 0x49aac", "xrefs": ["sub_49A04 @ 0x49a26", "FMOD::ChannelGroup::getChannel @ 0xb045c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}