{"type": "func", "start": 4300585848, "end": 4300586040, "name": "FMOD::ExpandingPool<FMOD::DSPConnectionI>::getBlockAndIndex", "pseudocode": "// \n// FMOD::ExpandingPool<FMOD::DSPConnectionI>::getBlockAndIndex from 0x10055bb78 to 0x10055bc38 (192 bytes)\n// \n// 0 xrefs:\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 11:08:01 +0000\n// \n\n__int64 __fastcall FMOD::ExpandingPool<FMOD::DSPConnectionI>::getBlockAndIndex(\n        __int64 a1,\n        unsigned __int64 a2,\n        unsigned __int64 a3,\n        __int64 **a4,\n        _DWORD *a5)\n{\n  unsigned __int64 v5; // x10\n  __int64 *v6; // x8\n  unsigned __int64 v7; // x12\n  unsigned __int64 v8; // x12\n  unsigned __int64 v9; // x9\n  __int64 result; // x0\n\n  v5 = (*(_DWORD *)(a1 + 28) + 167) & (unsigned int)-*(_DWORD *)(a1 + 28);\n  v6 = *(__int64 **)(a1 + 8);\n  while ( 1 )\n  {\n    if ( a2 )\n    {\n      v7 = *(_QWORD *)v6[6];\n      if ( v7 <= a2 && (unsigned int)(*((_DWORD *)v6 + 8) * v5) + v7 > a2 )\n      {\n        v9 = (a2 - v7) / v5;\n        if ( (_DWORD)v9 != -1 )\n          goto LABEL_10;\n        return 30;\n      }\n    }\n    if ( a3 )\n    {\n      v8 = v6[5];\n      if ( v8 <= a3 && v8 + 24LL * *((int *)v6 + 8) > a3 )\n        break;\n    }\n    v6 = (__int64 *)*v6;\n    if ( v6 == *(__int64 **)(a1 + 8) )\n      return 30;\n  }\n  v9 = 0xAAAAAAAAAAAAAAABLL * ((__int64)(a3 - v8) >> 3);\n  if ( (_DWORD)v9 == -1 )\n    return 30;\nLABEL_10:\n  if ( a4 )\n    *a4 = v6;\n  result = 0;\n  if ( a5 )\n    *a5 = v9;\n  return result;\n}", "assembly": "; \n; FMOD::ExpandingPool<FMOD::DSPConnectionI>::getBlockAndIndex from 0x10055bb78 to 0x10055bc38 (192 bytes)\n; \n; 0 xrefs:\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 11:08:01 +0000\n; \nLDR             X9, [X0,#8]                                            ; +0x0, 0x10055bb78\nLDR             W8, [X0,#0x1C]                                         ; +0x4, 0x10055bb7c\nADD             W10, W8, #0xA7                                         ; +0x8, 0x10055bb80\nNEG             W8, W8                                                 ; +0xc, 0x10055bb84\nAND             W10, W10, W8                                           ; +0x10, 0x10055bb88\nMOV             W11, #0x18                                             ; +0x14, 0x10055bb8c\nMOV             X8, X9                                                 ; +0x18, 0x10055bb90\nB               loc_10055BBA4                                          ; +0x1c, 0x10055bb94\nLDR             X8, [X8]                                               ; +0x20, 0x10055bb98\nCMP             X8, X9                                                 ; +0x24, 0x10055bb9c\nB.EQ            loc_10055BC30                                          ; +0x28, 0x10055bba0\nCBZ             X1, loc_10055BBCC                                      ; +0x2c, 0x10055bba4\nLDR             X12, [X8,#0x30]                                        ; +0x30, 0x10055bba8\nLDR             X12, [X12]                                             ; +0x34, 0x10055bbac\nCMP             X12, X1                                                ; +0x38, 0x10055bbb0\nB.HI            loc_10055BBCC                                          ; +0x3c, 0x10055bbb4\nLDR             W13, [X8,#0x20]                                        ; +0x40, 0x10055bbb8\nMUL             W13, W13, W10                                          ; +0x44, 0x10055bbbc\nADD             X13, X13, X12                                          ; +0x48, 0x10055bbc0\nCMP             X13, X1                                                ; +0x4c, 0x10055bbc4\nB.HI            loc_10055BC20                                          ; +0x50, 0x10055bbc8\nCBZ             X2, loc_10055BB98                                      ; +0x54, 0x10055bbcc\nLDR             X12, [X8,#0x28]                                        ; +0x58, 0x10055bbd0\nCMP             X12, X2                                                ; +0x5c, 0x10055bbd4\nB.HI            loc_10055BB98                                          ; +0x60, 0x10055bbd8\nLDRSW           X13, [X8,#0x20]                                        ; +0x64, 0x10055bbdc\nMADD            X13, X13, X11, X12                                     ; +0x68, 0x10055bbe0\nCMP             X13, X2                                                ; +0x6c, 0x10055bbe4\nB.LS            loc_10055BB98                                          ; +0x70, 0x10055bbe8\nSUB             X9, X2, X12                                            ; +0x74, 0x10055bbec\nASR             X9, X9, #3                                             ; +0x78, 0x10055bbf0\nMOV             X10, #0xAAAAAAAAAAAAAAAB                               ; +0x7c, 0x10055bbf4\nMUL             X9, X9, X10                                            ; +0x84, 0x10055bbfc\nCMN             W9, #1                                                 ; +0x88, 0x10055bc00\nB.EQ            loc_10055BC30                                          ; +0x8c, 0x10055bc04\nCBZ             X3, loc_10055BC10                                      ; +0x90, 0x10055bc08\nSTR             X8, [X3]                                               ; +0x94, 0x10055bc0c\nMOV             W0, #0                                                 ; +0x98, 0x10055bc10\nCBZ             X4, locret_10055BC1C                                   ; +0x9c, 0x10055bc14\nSTR             W9, [X4]                                               ; +0xa0, 0x10055bc18\nRET                                                                    ; +0xa4, 0x10055bc1c\nSUB             X9, X1, X12                                            ; +0xa8, 0x10055bc20\nUDIV            X9, X9, X10                                            ; +0xac, 0x10055bc24\nCMN             W9, #1                                                 ; +0xb0, 0x10055bc28\nB.NE            loc_10055BC08                                          ; +0xb4, 0x10055bc2c\nMOV             W0, #0x1E                                              ; +0xb8, 0x10055bc30\nRET                                                                    ; +0xbc, 0x10055bc34", "xrefs": [], "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"}