{"type": "func", "start": 755224, "end": 755312, "name": "sub_B8618", "pseudocode": "// \n// sub_B8618 from 0xb8618 to 0xb8670 (88 bytes)\n// \n// 1 xrefs:\n// > sub_B8738 @ 0xb873c\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:39 +0000\n// \n\n__int64 __fastcall sub_B8618(__int64 a1, int a2, int *a3, __int64 a4)\n{\n  int v5; // w8\n\n  if ( a2 )\n    return 31;\n  v5 = *(_DWORD *)(a1 + 572);\n  if ( v5 >= 6 )\n    v5 = 6;\n  *a3 = v5 & ~(v5 >> 31);\n  if ( a4 )\n    sub_E3C94(a4, FMOD::FMOD_dsposcillator_oscillatortypes[*(int *)(a1 + 544)], 32);\n  return 0;\n}", "assembly": "; \n; sub_B8618 from 0xb8618 to 0xb8670 (88 bytes)\n; \n; 1 xrefs:\n; > sub_B8738 @ 0xb873c\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:39 +0000\n; \nSTP             X29, X30, [SP,#-0x10+var_s0]!                          ; +0x0, 0xb8618\nMOV             X29, SP                                                ; +0x4, 0xb861c\nCBZ             W1, loc_B862C                                          ; +0x8, 0xb8620\nMOV             W0, #0x1F                                              ; +0xc, 0xb8624\nB               loc_B8668                                              ; +0x10, 0xb8628\nLDR             W8, [X0,#0x23C]                                        ; +0x14, 0xb862c\nMOV             W9, #6                                                 ; +0x18, 0xb8630\nCMP             W8, #6                                                 ; +0x1c, 0xb8634\nCSEL            W8, W8, W9, LT                                         ; +0x20, 0xb8638\nBIC             W8, W8, W8,ASR#31                                      ; +0x24, 0xb863c\nSTR             W8, [X2]                                               ; +0x28, 0xb8640\nCBZ             X3, loc_B8664                                          ; +0x2c, 0xb8644\nLDRSW           X8, [X0,#0x220]                                        ; +0x30, 0xb8648\nADRL            X9, _ZN4FMOD34FMOD_dsposcillator_oscillatortypesE; FMOD::FMOD_dsposcillator_oscillatortypes ; +0x34, 0xb864c\nMOV             W2, #0x20 ; ' '                                        ; +0x3c, 0xb8654\nLDR             X1, [X9,X8,LSL#3]                                      ; +0x40, 0xb8658\nMOV             X0, X3                                                 ; +0x44, 0xb865c\nBL              sub_E3C94                                              ; +0x48, 0xb8660\nMOV             W0, WZR                                                ; +0x4c, 0xb8664\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x50, 0xb8668\nRET                                                                    ; +0x54, 0xb866c", "xrefs": ["sub_B8738 @ 0xb873c"], "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"}