{"type": "func", "start": 742968, "end": 743020, "name": "sub_B5638", "pseudocode": "// \n// sub_B5638 from 0xb5638 to 0xb566c (52 bytes)\n// \n// 3 xrefs:\n// > FMOD::Sound::getNumTags @ 0xb560c\n// > FMOD::System::getChannelsPlaying @ 0xb9272\n// > FMOD::System::getRecordNumDrivers @ 0xba08c\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_B5638(int a1, int a2, _DWORD *a3, _DWORD *a4)\n{\n  int v7; // r4\n  int v8; // r4\n\n  v7 = sub_5C9EC(a1, a2, a3);\n  v8 = v7 + sub_5C990((_BYTE *)(v7 + a1), a2 - v7, \", \");\n  return sub_5C9EC(a1 + v8, a2 - v8, a4) + v8;\n}", "assembly": "; \n; sub_B5638 from 0xb5638 to 0xb566c (52 bytes)\n; \n; 3 xrefs:\n; > FMOD::Sound::getNumTags @ 0xb560c\n; > FMOD::System::getChannelsPlaying @ 0xb9272\n; > FMOD::System::getRecordNumDrivers @ 0xba08c\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\nPUSH            {R4-R7,LR}                                             ; +0x0, 0xb5638\nADD             R7, SP, #0xC                                           ; +0x2, 0xb563a\nPUSH.W          {R8}                                                   ; +0x4, 0xb563c\nMOV             R8, R3                                                 ; +0x8, 0xb5640\nMOV             R5, R1                                                 ; +0xa, 0xb5642\nMOV             R6, R0                                                 ; +0xc, 0xb5644\nBL              sub_5C9EC                                              ; +0xe, 0xb5646\nLDR             R2, =(asc_21715 - 0xB5656); \", \" ...                   ; +0x12, 0xb564a\nMOV             R4, R0                                                 ; +0x14, 0xb564c\nADD             R0, R6                                                 ; +0x16, 0xb564e\nSUBS            R1, R5, R4                                             ; +0x18, 0xb5650\nADD             R2, PC; \", \"                                           ; +0x1a, 0xb5652\nBL              sub_5C990                                              ; +0x1c, 0xb5654\nADD             R4, R0                                                 ; +0x20, 0xb5658\nMOV             R2, R8                                                 ; +0x22, 0xb565a\nADDS            R0, R6, R4                                             ; +0x24, 0xb565c\nSUBS            R1, R5, R4                                             ; +0x26, 0xb565e\nBL              sub_5C9EC                                              ; +0x28, 0xb5660\nADD             R0, R4                                                 ; +0x2c, 0xb5664\nPOP.W           {R8}                                                   ; +0x2e, 0xb5666\nPOP             {R4-R7,PC}                                             ; +0x32, 0xb566a", "xrefs": ["FMOD::Sound::getNumTags @ 0xb560c", "FMOD::System::getChannelsPlaying @ 0xb9272", "FMOD::System::getRecordNumDrivers @ 0xba08c"], "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"}