{"type": "func", "start": 6036688, "end": 6036744, "name": "FindBPMLayer::calculateBPM", "pseudocode": "// \n// FindBPMLayer::calculateBPM from 0x5c1cd0 to 0x5c1d08 (56 bytes)\n// \n// 2 xrefs:\n// > FindBPMLayer::registerTouch @ 0x5c1d44\n// > <???> @ 0x886c8\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\nvoid FindBPMLayer::calculateBPM(FindBPMLayer *a1)\n{\n  int m_beats; // w1\n\n  m_beats = a1->m_beats;\n  if ( m_beats > 1 )\n    a1->m_beatsPerMinute = llroundf(60.0 / (float)((float)(a1->m_elapsed - a1->m_startOffset) / (float)(m_beats - 1)));\n}", "assembly": "; \n; FindBPMLayer::calculateBPM from 0x5c1cd0 to 0x5c1d08 (56 bytes)\n; \n; 2 xrefs:\n; > FindBPMLayer::registerTouch @ 0x5c1d44\n; > <???> @ 0x886c8\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\nLDR             W1, [X0,#0x2DC]                                        ; +0x0, 0x5c1cd0\nCMP             W1, #1                                                 ; +0x4, 0x5c1cd4\nB.LE            locret_5C1D04                                          ; +0x8, 0x5c1cd8\nLDR             S1, [X0,#0x2B0]                                        ; +0xc, 0x5c1cdc\nSUB             W1, W1, #1                                             ; +0x10, 0x5c1ce0\nLDR             S2, [X0,#0x2D8]                                        ; +0x14, 0x5c1ce4\nSCVTF           S0, W1                                                 ; +0x18, 0x5c1ce8\nFSUB            S2, S1, S2                                             ; +0x1c, 0x5c1cec\nLDR             S1, =0x42700000                                        ; +0x20, 0x5c1cf0\nFDIV            S0, S2, S0                                             ; +0x24, 0x5c1cf4\nFDIV            S0, S1, S0                                             ; +0x28, 0x5c1cf8\nFCVTAS          W1, S0                                                 ; +0x2c, 0x5c1cfc\nSTR             W1, [X0,#0x2E0]                                        ; +0x30, 0x5c1d00\nRET                                                                    ; +0x34, 0x5c1d04", "xrefs": ["FindBPMLayer::registerTouch @ 0x5c1d44", "<???> @ 0x886c8"], "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"}