{"type": "func", "start": 4688848, "end": 4689852, "name": "GJBaseGameLayer::processSongState", "pseudocode": "// \n// GJBaseGameLayer::processSongState from 0x478bd0 to 0x478fbc (1004 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x48b370\n// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x48b476\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\nbool GJBaseGameLayer::processSongState(\n        GJBaseGameLayer *a1,\n        int a2,\n        float a3,\n        float a4,\n        int a5,\n        float a6,\n        float a7,\n        std::vector<SongTriggerState> *a8,\n        SongTriggerGameObject *a9)\n{\n  float v9; // s26\n  float *v17; // r4\n  SongTriggerState *m_finish; // r1\n  float *v19; // r5\n  SongTriggerState *i; // r8\n  float *m_songTriggerGameObject; // r6\n  float *v22; // r3\n  float m_unkDouble; // s14\n  FMODAudioEngine *v24; // r0\n  float v26; // s16\n  float v27; // s20\n  float v28; // s18\n  float v29; // r0\n  float v30; // s14\n  float v31; // s15\n  float v32; // s14\n  float v33; // s13\n  float v34; // s15\n  float v35; // s24\n  float v36; // s18\n  float v37; // s20\n  float v38; // r0\n  float v39; // s20\n  float v40; // s15\n  float v41; // s23\n  bool v42; // cc\n  float v43; // s24\n  float v44; // s16\n  FMODAudioEngine *v45; // r0\n  FMODAudioEngine *v46; // r0\n  int v47; // r5\n  float v48; // s14\n  float v49; // s18\n  float v50; // s15\n  float v51; // s20\n  float v52; // s19\n  FMODAudioEngine *v53; // r0\n  FMODAudioEngine *v54; // r0\n  FMODAudioEngine *v55; // r0\n  FMOD::Channel *ActiveMusicChannel; // r0\n  _BOOL4 m_dontReset; // r3\n  FMODAudioEngine *v58; // r0\n  FMODAudioEngine *v59; // r0\n  SongTriggerState *v60; // [sp+8h] [bp-1Ch]\n  unsigned int v61; // [sp+14h] [bp-10h] BYREF\n  unsigned int v62; // [sp+18h] [bp-Ch] BYREF\n\n  if ( !a8 )\n    goto LABEL_51;\n  v17 = nullptr;\n  m_finish = a8->m_finish;\n  v19 = nullptr;\n  for ( i = a8->m_start + 1; m_finish != &i[-1]; ++i )\n  {\n    m_songTriggerGameObject = (float *)i[-1].m_songTriggerGameObject;\n    v22 = m_songTriggerGameObject + 404;\n    m_unkDouble = i[-1].m_unkDouble;\n    m_songTriggerGameObject[404] = m_unkDouble;\n    if ( m_unkDouble < a3 )\n      goto LABEL_23;\n    if ( *((_BYTE *)m_songTriggerGameObject + 1728) )\n    {\n      v24 = FMODAudioEngine::sharedEngine();\n      FMODAudioEngine::stopMusic(v24, a2);\n      return 0;\n    }\n    if ( !*((_BYTE *)m_songTriggerGameObject + 1730) )\n      goto LABEL_18;\n    if ( v19 )\n    {\n      v60 = m_finish;\n      v27 = v19[316];\n      v28 = m_unkDouble - v19[404];\n      FMODAudioEngine::sharedEngine();\n      v29 = FMODAudioEngine::pitchForIdx(*((_DWORD *)v19 + 412));\n      m_finish = v60;\n      v22 = m_songTriggerGameObject + 404;\n      v30 = v28 - v27;\n      v31 = v29;\n      if ( v27 > 0.0 )\n      {\n        if ( v27 > v28 )\n        {\n          v32 = a7 + (float)((float)(v29 - a7) * (float)(v28 / v27));\n          v27 = v28;\n          v31 = v32;\n          v30 = 0.0;\n        }\n        a5 = (int)(float)((float)a5 + (float)((float)(v27 * (float)((float)(a7 + v31) * 0.5)) * 1000.0));\n      }\n      a7 = v31;\n      if ( v30 <= 0.0 )\n        goto LABEL_17;\n      v26 = (float)a5 + (float)((float)(v30 * v31) * 1000.0);\n    }\n    else\n    {\n      v26 = (float)a5 + (float)((float)((float)(m_unkDouble - a3) * a7) * 1000.0);\n    }\n    a5 = (int)v26;\nLABEL_17:\n    v19 = m_songTriggerGameObject;\nLABEL_18:\n    if ( !*((_BYTE *)m_songTriggerGameObject + 1729) )\n    {\nLABEL_23:\n      m_songTriggerGameObject = v17;\n      goto LABEL_25;\n    }\n    if ( v17 )\n    {\n      v33 = v17[316];\n      if ( v33 <= 0.0 || (v34 = *v22 - v17[404], v33 <= v34) )\n        a6 = v17[414];\n      else\n        a6 = a6 + (float)((float)(v17[414] - a6) * (float)(v34 / v33));\n    }\nLABEL_25:\n    v17 = m_songTriggerGameObject;\n  }\n  v35 = a7;\n  if ( v19 )\n  {\n    v36 = v19[316];\n    v37 = v19[404];\n    FMODAudioEngine::sharedEngine();\n    v38 = FMODAudioEngine::pitchForIdx(*((_DWORD *)v19 + 412));\n    v39 = a4 - v37;\n    v40 = v39 - v36;\n    v41 = v38;\n    if ( v36 <= 0.0 )\n    {\n      if ( v40 <= 0.0 )\n      {\n        v59 = FMODAudioEngine::sharedEngine();\n        FMODAudioEngine::updateChannel(v59, a2, MusicChannel, Pitch, 0.0, v41);\n        a7 = v41;\n        goto LABEL_63;\n      }\n      a7 = v38;\n      v9 = 0.0;\n    }\n    else\n    {\n      v42 = v36 <= v39;\n      if ( v36 <= v39 )\n      {\n        a7 = v38;\n      }\n      else\n      {\n        v9 = v36 - v39;\n        v36 = v39 / v36;\n        v40 = v38 - a7;\n        a7 = a7 + (float)((float)(v38 - a7) * v36);\n      }\n      v43 = (float)(v35 + a7) * 0.5;\n      if ( !v42 )\n        v36 = v39;\n      v44 = (float)a5 + (float)((float)(v36 * v43) * 1000.0);\n      if ( v42 )\n        v9 = 0.0;\n      else\n        v40 = 0.0;\n      a5 = (int)v44;\n      if ( v40 <= 0.0 )\n      {\nLABEL_41:\n        v45 = FMODAudioEngine::sharedEngine();\n        FMODAudioEngine::updateChannel(v45, a2, MusicChannel, Pitch, 0.0, a7);\n        if ( v9 > 0.0 )\n        {\n          v46 = FMODAudioEngine::sharedEngine();\n          FMODAudioEngine::updateChannel(v46, a2, MusicChannel, Pitch, v9, v41);\n        }\nLABEL_63:\n        if ( v17 )\n        {\n          v47 = 0;\n          goto LABEL_45;\n        }\n        goto LABEL_52;\n      }\n    }\n    a5 = (int)(float)((float)a5 + (float)((float)(v40 * a7) * 1000.0));\n    goto LABEL_41;\n  }\n  if ( !v17 )\n    goto LABEL_51;\n  v47 = 1;\nLABEL_45:\n  v48 = v17[316];\n  v49 = v17[414];\n  if ( v48 <= 0.0 || (v50 = a4 - v17[404], v48 <= v50) )\n  {\n    v52 = v17[414];\n    v51 = 0.0;\n  }\n  else\n  {\n    v51 = v48 - v50;\n    v52 = a6 + (float)((float)(v49 - a6) * (float)(v50 / v48));\n  }\n  v53 = FMODAudioEngine::sharedEngine();\n  FMODAudioEngine::updateChannel(v53, a2, MusicChannel, Volume, 0.0, v52);\n  if ( v51 > 0.0 )\n  {\n    v54 = FMODAudioEngine::sharedEngine();\n    FMODAudioEngine::updateChannel(v54, a2, MusicChannel, Volume, v51, v49);\n  }\n  if ( v47 )\nLABEL_51:\n    a5 = (int)(float)((float)a5 + (float)((float)((float)(a4 - a3) * a7) * 1000.0));\nLABEL_52:\n  if ( a9 )\n  {\n    if ( a9->m_loop && a9->m_end > 0 )\n    {\n      v55 = FMODAudioEngine::sharedEngine();\n      ActiveMusicChannel = FMODAudioEngine::getActiveMusicChannel(v55, a2);\n      if ( ActiveMusicChannel )\n      {\n        FMOD::Channel::getLoopPoints(ActiveMusicChannel, &v61, 1u, &v62, 1u);\n        a5 = (a5 - v61) % (v62 - v61) + v61;\n      }\n    }\n    m_dontReset = a9->m_dontReset;\n  }\n  else\n  {\n    m_dontReset = a1->m_levelSettings->m_dontReset;\n  }\n  if ( !m_dontReset )\n  {\n    v58 = FMODAudioEngine::sharedEngine();\n    FMODAudioEngine::setMusicTimeMS(v58, a5, 0, a2);\n  }\n  return 1;\n}", "assembly": "; \n; GJBaseGameLayer::processSongState from 0x478bd0 to 0x478fbc (1004 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::processActivatedAudioTriggers @ 0x48b370\n; > GJBaseGameLayer::processActivatedAudioTriggers @ 0x48b476\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.W          {R4-R11,LR}                                            ; +0x0, 0x478bd0\nMOV             R7, R1                                                 ; +0x4, 0x478bd4\nVPUSH           {D8-D13}                                               ; +0x6, 0x478bd6\nMOV             R10, R0                                                ; +0xa, 0x478bda\nVMOV            S22, R3                                                ; +0xc, 0x478bdc\nLDR             R3, =(__stack_chk_guard_ptr - 0x478BEC)                ; +0x10, 0x478be0\nSUB             SP, SP, #0x24; float                                   ; +0x12, 0x478be2\nVMOV            S21, R2                                                ; +0x14, 0x478be4\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x18, 0x478be8\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x1a, 0x478bea\nLDR             R2, [SP,#0x24+arg_C]                                   ; +0x1c, 0x478bec\nLDR             R1, [R3]                                               ; +0x1e, 0x478bee\nMOV             R11, R3                                                ; +0x20, 0x478bf0\nVLDR            S16, [SP,#0x24+arg_0]                                  ; +0x22, 0x478bf2\nLDR.W           R9, [SP,#0x24+arg_10]                                  ; +0x26, 0x478bf6\nSTR             R1, [SP,#0x24+var_8]                                   ; +0x2a, 0x478bfa\nVLDR            S19, [SP,#0x24+arg_4]                                  ; +0x2c, 0x478bfc\nVLDR            S17, [SP,#0x24+arg_8]                                  ; +0x30, 0x478c00\nCMP             R2, #0                                                 ; +0x34, 0x478c04\nBEQ.W           loc_478EEA                                             ; +0x36, 0x478c06\nLDR             R3, [R2]                                               ; +0x3a, 0x478c0a\nMOVS            R4, #0                                                 ; +0x3c, 0x478c0c\nLDR             R1, [R2,#4]                                            ; +0x3e, 0x478c0e\nMOV             R5, R4                                                 ; +0x40, 0x478c10\nVMOV.F32        S24, #0.5                                              ; +0x42, 0x478c12\nADD.W           R8, R3, #0x10                                          ; +0x46, 0x478c16\nVLDR            S23, =1000.0                                           ; +0x4a, 0x478c1a\nSUB.W           R3, R8, #0x10                                          ; +0x4e, 0x478c1e\nCMP             R1, R3                                                 ; +0x52, 0x478c22\nBEQ.W           loc_478D6A                                             ; +0x54, 0x478c24\nVLDR            D7, [R8,#-8]                                           ; +0x58, 0x478c28\nLDR.W           R6, [R8,#-0x10]                                        ; +0x5c, 0x478c2c\nADD.W           R3, R6, #0x650                                         ; +0x60, 0x478c30\nVCVT.F32.F64    S14, D7                                                ; +0x64, 0x478c34\nVCMPE.F32       S14, S21                                               ; +0x68, 0x478c38\nVSTR            S14, [R3]                                              ; +0x6c, 0x478c3c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x70, 0x478c40\nBLT.W           loc_478D5A                                             ; +0x74, 0x478c44\nLDRB.W          R2, [R6,#0x6C0]                                        ; +0x78, 0x478c48\nCBZ             R2, loc_478C5C                                         ; +0x7c, 0x478c4c\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x7e, 0x478c4e\nMOV             R1, R7; int                                            ; +0x82, 0x478c52\nBL              _ZN15FMODAudioEngine9stopMusicEi; FMODAudioEngine::stopMusic(int) ; +0x84, 0x478c54\nMOVS            R0, #0; this                                           ; +0x88, 0x478c58\nB               loc_478F66                                             ; +0x8a, 0x478c5a\nLDRB.W          R2, [R6,#0x6C2]                                        ; +0x8c, 0x478c5c\nCMP             R2, #0                                                 ; +0x90, 0x478c60\nBEQ             loc_478D10                                             ; +0x92, 0x478c62\nCBNZ            R5, loc_478C78                                         ; +0x94, 0x478c64\nVSUB.F32        S14, S14, S21                                          ; +0x96, 0x478c66\nVMUL.F32        S14, S14, S17                                          ; +0x9a, 0x478c6a\nVCVT.F32.S32    S16, S16                                               ; +0x9e, 0x478c6e\nVMLA.F32        S16, S14, S23                                          ; +0xa2, 0x478c72\nB               loc_478D0A                                             ; +0xa6, 0x478c76\nADD.W           R2, R5, #0x4F0                                         ; +0xa8, 0x478c78\nSTR             R3, [SP,#0x24+var_18]                                  ; +0xac, 0x478c7c\nSTR             R1, [SP,#0x24+var_1C]                                  ; +0xae, 0x478c7e\nVLDR            S20, [R2]                                              ; +0xb0, 0x478c80\nADD.W           R2, R5, #0x650                                         ; +0xb4, 0x478c84\nVLDR            S18, [R2]                                              ; +0xb8, 0x478c88\nVSUB.F32        S18, S14, S18                                          ; +0xbc, 0x478c8c\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0xc0, 0x478c90\nLDR.W           R0, [R5,#0x670]; this                                  ; +0xc4, 0x478c94\nBL              _ZN15FMODAudioEngine11pitchForIdxEi; FMODAudioEngine::pitchForIdx(int) ; +0xc8, 0x478c98\nLDR             R1, [SP,#0x24+var_1C]                                  ; +0xcc, 0x478c9c\nLDR             R3, [SP,#0x24+var_18]                                  ; +0xce, 0x478c9e\nVCMPE.F32       S20, #0.0                                              ; +0xd0, 0x478ca0\nVSUB.F32        S14, S18, S20                                          ; +0xd4, 0x478ca4\nVMRS            APSR_nzcv, FPSCR                                       ; +0xd8, 0x478ca8\nVMOV            S15, R0; this                                          ; +0xdc, 0x478cac\nBLE             loc_478CF0                                             ; +0xe0, 0x478cb0\nVCMPE.F32       S20, S18                                               ; +0xe2, 0x478cb2\nVMRS            APSR_nzcv, FPSCR                                       ; +0xe6, 0x478cb6\nBLE             loc_478CD8                                             ; +0xea, 0x478cba\nVDIV.F32        S20, S18, S20                                          ; +0xec, 0x478cbc\nVSUB.F32        S15, S15, S17                                          ; +0xf0, 0x478cc0\nVMOV.F32        S14, S17                                               ; +0xf4, 0x478cc4\nVMLA.F32        S14, S15, S20                                          ; +0xf8, 0x478cc8\nVMOV.F32        S20, S18                                               ; +0xfc, 0x478ccc\nVMOV.F32        S15, S14                                               ; +0x100, 0x478cd0\nVLDR            S14, =0.0                                              ; +0x104, 0x478cd4\nVADD.F32        S17, S17, S15                                          ; +0x108, 0x478cd8\nVMUL.F32        S17, S17, S24                                          ; +0x10c, 0x478cdc\nVMUL.F32        S20, S20, S17                                          ; +0x110, 0x478ce0\nVCVT.F32.S32    S16, S16                                               ; +0x114, 0x478ce4\nVMLA.F32        S16, S20, S23                                          ; +0x118, 0x478ce8\nVCVT.S32.F32    S16, S16                                               ; +0x11c, 0x478cec\nVCMPE.F32       S14, #0.0                                              ; +0x120, 0x478cf0\nVMOV.F32        S17, S15                                               ; +0x124, 0x478cf4\nVMRS            APSR_nzcv, FPSCR                                       ; +0x128, 0x478cf8\nBLE             loc_478D0E                                             ; +0x12c, 0x478cfc\nVMUL.F32        S15, S14, S15                                          ; +0x12e, 0x478cfe\nVCVT.F32.S32    S16, S16                                               ; +0x132, 0x478d02\nVMLA.F32        S16, S15, S23                                          ; +0x136, 0x478d06\nVCVT.S32.F32    S16, S16                                               ; +0x13a, 0x478d0a\nMOV             R5, R6                                                 ; +0x13e, 0x478d0e\nLDRB.W          R2, [R6,#0x6C1]                                        ; +0x140, 0x478d10\nCBZ             R2, loc_478D5A                                         ; +0x144, 0x478d14\nCBZ             R4, loc_478D62                                         ; +0x146, 0x478d16\nADD.W           R2, R4, #0x4F0                                         ; +0x148, 0x478d18\nVLDR            S15, [R3]                                              ; +0x14c, 0x478d1c\nADD.W           R3, R4, #0x650                                         ; +0x150, 0x478d20\nADD.W           R4, R4, #0x678                                         ; +0x154, 0x478d24\nVLDR            S13, [R2]                                              ; +0x158, 0x478d28\nVLDR            S12, [R3]                                              ; +0x15c, 0x478d2c\nVCMPE.F32       S13, #0.0                                              ; +0x160, 0x478d30\nVLDR            S14, [R4]                                              ; +0x164, 0x478d34\nVMRS            APSR_nzcv, FPSCR                                       ; +0x168, 0x478d38\nBLE             loc_478D5E                                             ; +0x16c, 0x478d3c\nVSUB.F32        S15, S15, S12                                          ; +0x16e, 0x478d3e\nVCMPE.F32       S13, S15                                               ; +0x172, 0x478d42\nVMRS            APSR_nzcv, FPSCR                                       ; +0x176, 0x478d46\nBLE             loc_478D5E                                             ; +0x17a, 0x478d4a\nVDIV.F32        S15, S15, S13                                          ; +0x17c, 0x478d4c\nVSUB.F32        S14, S14, S19                                          ; +0x180, 0x478d50\nVMLA.F32        S19, S14, S15                                          ; +0x184, 0x478d54\nB               loc_478D62                                             ; +0x188, 0x478d58\nMOV             R6, R4                                                 ; +0x18a, 0x478d5a\nB               loc_478D62                                             ; +0x18c, 0x478d5c\nVMOV.F32        S19, S14                                               ; +0x18e, 0x478d5e\nADD.W           R8, R8, #0x10                                          ; +0x192, 0x478d62\nMOV             R4, R6                                                 ; +0x196, 0x478d66\nB               loc_478C1E                                             ; +0x198, 0x478d68\nVMOV.F32        S24, S17                                               ; +0x19a, 0x478d6a\nCMP             R5, #0                                                 ; +0x19e, 0x478d6e\nBEQ             loc_478E6A                                             ; +0x1a0, 0x478d70\nADD.W           R3, R5, #0x4F0                                         ; +0x1a2, 0x478d72\nVLDR            S18, [R3]                                              ; +0x1a6, 0x478d76\nADD.W           R3, R5, #0x650                                         ; +0x1aa, 0x478d7a\nVLDR            S20, [R3]                                              ; +0x1ae, 0x478d7e\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x1b2, 0x478d82\nLDR.W           R0, [R5,#0x670]; this                                  ; +0x1b6, 0x478d86\nMOVS            R5, #0                                                 ; +0x1ba, 0x478d8a\nBL              _ZN15FMODAudioEngine11pitchForIdxEi; FMODAudioEngine::pitchForIdx(int) ; +0x1bc, 0x478d8c\nVCMPE.F32       S18, #0.0                                              ; +0x1c0, 0x478d90\nVMOV            S25, R5                                                ; +0x1c4, 0x478d94\nVSUB.F32        S20, S22, S20                                          ; +0x1c8, 0x478d98\nVMRS            APSR_nzcv, FPSCR                                       ; +0x1cc, 0x478d9c\nVSUB.F32        S15, S20, S18                                          ; +0x1d0, 0x478da0\nVMOV            S23, R0; this                                          ; +0x1d4, 0x478da4\nBLE             loc_478E08                                             ; +0x1d8, 0x478da8\nVCMPE.F32       S18, S20                                               ; +0x1da, 0x478daa\nVMRS            APSR_nzcv, FPSCR                                       ; +0x1de, 0x478dae\nITTTT GT                                                               ; +0x1e2, 0x478db2\nVSUBGT.F32      S26, S18, S20                                          ; +0x1e4, 0x478db4\nVDIVGT.F32      S18, S20, S18                                          ; +0x1e8, 0x478db8\nVSUBGT.F32      S15, S23, S17                                          ; +0x1ec, 0x478dbc\nVMLAGT.F32      S17, S15, S18                                          ; +0x1f0, 0x478dc0\nIT LE                                                                  ; +0x1f4, 0x478dc4\nVMOVLE.F32      S17, S23                                               ; +0x1f6, 0x478dc6\nVMOV.F32        S14, #0.5                                              ; +0x1fa, 0x478dca\nVADD.F32        S24, S24, S17                                          ; +0x1fe, 0x478dce\nVMUL.F32        S24, S24, S14                                          ; +0x202, 0x478dd2\nVLDR            S14, =1000.0                                           ; +0x206, 0x478dd6\nIT GT                                                                  ; +0x20a, 0x478dda\nVMOVGT.F32      S18, S20                                               ; +0x20c, 0x478ddc\nVMUL.F32        S18, S18, S24                                          ; +0x210, 0x478de0\nVCVT.F32.S32    S16, S16                                               ; +0x214, 0x478de4\nVMLA.F32        S16, S18, S14                                          ; +0x218, 0x478de8\nIT GT                                                                  ; +0x21c, 0x478dec\nVMOVGT.F32      S15, S25                                               ; +0x21e, 0x478dee\nVCMPE.F32       S15, #0.0                                              ; +0x222, 0x478df2\nIT LE                                                                  ; +0x226, 0x478df6\nVMOVLE.F32      S26, S25                                               ; +0x228, 0x478df8\nVMRS            APSR_nzcv, FPSCR                                       ; +0x22c, 0x478dfc\nVCVT.S32.F32    S16, S16                                               ; +0x230, 0x478e00\nBGT             loc_478E1C                                             ; +0x234, 0x478e04\nB               loc_478E30                                             ; +0x236, 0x478e06\nVCMPE.F32       S15, #0.0                                              ; +0x238, 0x478e08\nVMRS            APSR_nzcv, FPSCR                                       ; +0x23c, 0x478e0c\nBLE.W           loc_478F8C                                             ; +0x240, 0x478e10\nVMOV.F32        S17, S23                                               ; +0x244, 0x478e14\nVMOV.F32        S26, S25                                               ; +0x248, 0x478e18\nVLDR            S14, =1000.0                                           ; +0x24c, 0x478e1c\nVMUL.F32        S15, S15, S17                                          ; +0x250, 0x478e20\nVCVT.F32.S32    S16, S16                                               ; +0x254, 0x478e24\nVMLA.F32        S16, S15, S14                                          ; +0x258, 0x478e28\nVCVT.S32.F32    S16, S16                                               ; +0x25c, 0x478e2c\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x260, 0x478e30\nVSTR            S25, [SP,#0x24+var_24]                                 ; +0x264, 0x478e34\nMOV             R1, R7; int                                            ; +0x268, 0x478e38\nMOVS            R2, #2; int                                            ; +0x26a, 0x478e3a\nMOVS            R3, #1; int                                            ; +0x26c, 0x478e3c\nVSTR            S17, [SP,#0x24+var_20]                                 ; +0x26e, 0x478e3e\nBL              _ZN15FMODAudioEngine13updateChannelEi15AudioTargetType12AudioModTypeff; FMODAudioEngine::updateChannel(int,AudioTargetType,AudioModType,float,float) ; +0x272, 0x478e42\nVCMPE.F32       S26, #0.0                                              ; +0x276, 0x478e46\nVMRS            APSR_nzcv, FPSCR                                       ; +0x27a, 0x478e4a\nBLE.W           loc_478FA4                                             ; +0x27e, 0x478e4e\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x282, 0x478e52\nVSTR            S26, [SP,#0x24+var_24]                                 ; +0x286, 0x478e56\nMOV             R1, R7; int                                            ; +0x28a, 0x478e5a\nMOVS            R2, #2; int                                            ; +0x28c, 0x478e5c\nMOVS            R3, #1; int                                            ; +0x28e, 0x478e5e\nVSTR            S23, [SP,#0x24+var_20]                                 ; +0x290, 0x478e60\nBL              _ZN15FMODAudioEngine13updateChannelEi15AudioTargetType12AudioModTypeff; FMODAudioEngine::updateChannel(int,AudioTargetType,AudioModType,float,float) ; +0x294, 0x478e64\nB               loc_478FA4                                             ; +0x298, 0x478e68\nCBZ             R4, loc_478EEA                                         ; +0x29a, 0x478e6a\nMOVS            R5, #1                                                 ; +0x29c, 0x478e6c\nADD.W           R3, R4, #0x4F0                                         ; +0x29e, 0x478e6e\nVLDR            S23, =0.0                                              ; +0x2a2, 0x478e72\nVLDR            S14, [R3]                                              ; +0x2a6, 0x478e76\nADD.W           R3, R4, #0x650                                         ; +0x2aa, 0x478e7a\nADD.W           R4, R4, #0x678                                         ; +0x2ae, 0x478e7e\nVLDR            S15, [R3]                                              ; +0x2b2, 0x478e82\nVCMPE.F32       S14, #0.0                                              ; +0x2b6, 0x478e86\nVLDR            S18, [R4]                                              ; +0x2ba, 0x478e8a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x2be, 0x478e8e\nBLE             loc_478F74                                             ; +0x2c2, 0x478e92\nVSUB.F32        S15, S22, S15                                          ; +0x2c4, 0x478e94\nVCMPE.F32       S14, S15                                               ; +0x2c8, 0x478e98\nVMRS            APSR_nzcv, FPSCR                                       ; +0x2cc, 0x478e9c\nBLE             loc_478F74                                             ; +0x2d0, 0x478ea0\nVSUB.F32        S20, S14, S15                                          ; +0x2d2, 0x478ea2\nVDIV.F32        S15, S15, S14                                          ; +0x2d6, 0x478ea6\nVSUB.F32        S13, S18, S19                                          ; +0x2da, 0x478eaa\nVMLA.F32        S19, S13, S15                                          ; +0x2de, 0x478eae\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x2e2, 0x478eb2\nVSTR            S23, [SP,#0x24+var_24]                                 ; +0x2e6, 0x478eb6\nMOV             R1, R7; int                                            ; +0x2ea, 0x478eba\nMOVS            R2, #2; int                                            ; +0x2ec, 0x478ebc\nMOVS            R3, #0; int                                            ; +0x2ee, 0x478ebe\nVSTR            S19, [SP,#0x24+var_20]                                 ; +0x2f0, 0x478ec0\nBL              _ZN15FMODAudioEngine13updateChannelEi15AudioTargetType12AudioModTypeff; FMODAudioEngine::updateChannel(int,AudioTargetType,AudioModType,float,float) ; +0x2f4, 0x478ec4\nVCMPE.F32       S20, #0.0                                              ; +0x2f8, 0x478ec8\nVMRS            APSR_nzcv, FPSCR                                       ; +0x2fc, 0x478ecc\nBLE             loc_478EE8                                             ; +0x300, 0x478ed0\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x302, 0x478ed2\nVSTR            S20, [SP,#0x24+var_24]                                 ; +0x306, 0x478ed6\nMOV             R1, R7; int                                            ; +0x30a, 0x478eda\nMOVS            R2, #2; int                                            ; +0x30c, 0x478edc\nMOVS            R3, #0; int                                            ; +0x30e, 0x478ede\nVSTR            S18, [SP,#0x24+var_20]                                 ; +0x310, 0x478ee0\nBL              _ZN15FMODAudioEngine13updateChannelEi15AudioTargetType12AudioModTypeff; FMODAudioEngine::updateChannel(int,AudioTargetType,AudioModType,float,float) ; +0x314, 0x478ee4\nCBZ             R5, loc_478F02                                         ; +0x318, 0x478ee8\nVSUB.F32        S21, S22, S21                                          ; +0x31a, 0x478eea\nVLDR            S15, =1000.0                                           ; +0x31e, 0x478eee\nVMUL.F32        S17, S21, S17                                          ; +0x322, 0x478ef2\nVCVT.F32.S32    S16, S16                                               ; +0x326, 0x478ef6\nVMLA.F32        S16, S17, S15                                          ; +0x32a, 0x478efa\nVCVT.S32.F32    S16, S16                                               ; +0x32e, 0x478efe\nCMP.W           R9, #0                                                 ; +0x332, 0x478f02\nBEQ             loc_478F4A                                             ; +0x336, 0x478f06\nLDRB.W          R3, [R9,#0x68E]                                        ; +0x338, 0x478f08\nCMP             R3, #0                                                 ; +0x33c, 0x478f0c\nBEQ             loc_478FAC                                             ; +0x33e, 0x478f0e\nLDR.W           R3, [R9,#0x684]                                        ; +0x340, 0x478f10\nCMP             R3, #0                                                 ; +0x344, 0x478f14\nBLE             loc_478FAC                                             ; +0x346, 0x478f16\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x348, 0x478f18\nMOV             R1, R7; int                                            ; +0x34c, 0x478f1c\nBL              _ZN15FMODAudioEngine21getActiveMusicChannelEi; FMODAudioEngine::getActiveMusicChannel(int) ; +0x34e, 0x478f1e\nCMP             R0, #0                                                 ; +0x352, 0x478f22\nBEQ             loc_478FAC                                             ; +0x354, 0x478f24\nMOVS            R2, #1; unsigned int                                   ; +0x356, 0x478f26\nADD             R1, SP, #0x24+var_10; unsigned int *                   ; +0x358, 0x478f28\nSTR             R2, [SP,#0x24+var_24]; unsigned int                    ; +0x35a, 0x478f2a\nADD             R3, SP, #0x24+var_C; unsigned int *                    ; +0x35c, 0x478f2c\nBLX             _ZN4FMOD7Channel13getLoopPointsEPjjS1_j; FMOD::Channel::getLoopPoints(uint *,uint,uint *,uint) ; +0x35e, 0x478f2e\nVMOV            R3, S16                                                ; +0x362, 0x478f32\nLDR             R4, [SP,#0x24+var_10]                                  ; +0x366, 0x478f36\nLDR             R1, [SP,#0x24+var_C]                                   ; +0x368, 0x478f38\nSUBS            R1, R1, R4                                             ; +0x36a, 0x478f3a\nSUBS            R0, R3, R4                                             ; +0x36c, 0x478f3c\nBLX             __aeabi_uidivmod                                       ; +0x36e, 0x478f3e\nADDS            R3, R1, R4                                             ; +0x372, 0x478f42\nVMOV            S16, R3                                                ; +0x374, 0x478f44\nB               loc_478FAC                                             ; +0x378, 0x478f48\nLDR.W           R3, [R10,#0x8C0]                                       ; +0x37a, 0x478f4a\nLDRB.W          R3, [R3,#0x122]                                        ; +0x37e, 0x478f4e\nCBNZ            R3, loc_478F64                                         ; +0x382, 0x478f52\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x384, 0x478f54\nVMOV            R1, S16; unsigned int                                  ; +0x388, 0x478f58\nMOVS            R2, #0; bool                                           ; +0x38c, 0x478f5c\nMOV             R3, R7; int                                            ; +0x38e, 0x478f5e\nBL              _ZN15FMODAudioEngine14setMusicTimeMSEjbi; FMODAudioEngine::setMusicTimeMS(uint,bool,int) ; +0x390, 0x478f60\nMOVS            R0, #1                                                 ; +0x394, 0x478f64\nLDR             R2, [SP,#0x24+var_8]                                   ; +0x396, 0x478f66\nLDR.W           R3, [R11]                                              ; +0x398, 0x478f68\nCMP             R2, R3                                                 ; +0x39c, 0x478f6c\nBEQ             loc_478FB2                                             ; +0x39e, 0x478f6e\nBLX             __stack_chk_fail                                       ; +0x3a0, 0x478f70\nVMOV.F32        S19, S18                                               ; +0x3a4, 0x478f74\nVMOV.F32        S20, S23                                               ; +0x3a8, 0x478f78\nB               loc_478EB2                                             ; +0x3ac, 0x478f7c\nALIGN 0x10                                                             ; +0x3ae, 0x478f7e\nDCFS 1000.0                                                            ; +0x3b0, 0x478f80\nDCFS 0.0                                                               ; +0x3b4, 0x478f84\nDCD __stack_chk_guard_ptr - 0x478BEC                                   ; +0x3b8, 0x478f88\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x3bc, 0x478f8c\nSTR             R5, [SP,#0x24+var_24]; float                           ; +0x3c0, 0x478f90\nVSTR            S23, [SP,#0x24+var_20]                                 ; +0x3c2, 0x478f92\nMOV             R1, R7; int                                            ; +0x3c6, 0x478f96\nMOVS            R2, #2; int                                            ; +0x3c8, 0x478f98\nMOVS            R3, #1; int                                            ; +0x3ca, 0x478f9a\nBL              _ZN15FMODAudioEngine13updateChannelEi15AudioTargetType12AudioModTypeff; FMODAudioEngine::updateChannel(int,AudioTargetType,AudioModType,float,float) ; +0x3cc, 0x478f9c\nVMOV.F32        S17, S23                                               ; +0x3d0, 0x478fa0\nCMP             R4, #0                                                 ; +0x3d4, 0x478fa4\nBEQ             loc_478F02                                             ; +0x3d6, 0x478fa6\nMOVS            R5, #0                                                 ; +0x3d8, 0x478fa8\nB               loc_478E6E                                             ; +0x3da, 0x478faa\nLDRB.W          R3, [R9,#0x690]                                        ; +0x3dc, 0x478fac\nB               loc_478F52                                             ; +0x3e0, 0x478fb0\nADD             SP, SP, #0x24 ; '$'                                    ; +0x3e2, 0x478fb2\nVPOP            {D8-D13}                                               ; +0x3e4, 0x478fb4\nPOP.W           {R4-R11,PC}                                            ; +0x3e8, 0x478fb8", "xrefs": ["GJBaseGameLayer::processActivatedAudioTriggers @ 0x48b370", "GJBaseGameLayer::processActivatedAudioTriggers @ 0x48b476"], "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"}