{"type": "func", "start": 3185756, "end": 3185816, "name": "FindBPMLayer::calculateBPM", "pseudocode": "// \n// FindBPMLayer::calculateBPM from 0x309c5c to 0x309c98 (60 bytes)\n// \n// 1 xrefs:\n// > FindBPMLayer::registerTouch @ 0x309cd6\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  if ( a1->m_beats > 1 )\n    a1->m_beatsPerMinute = lroundf();\n}", "assembly": "; \n; FindBPMLayer::calculateBPM from 0x309c5c to 0x309c98 (60 bytes)\n; \n; 1 xrefs:\n; > FindBPMLayer::registerTouch @ 0x309cd6\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.W           R3, [R0,#0x228]                                        ; +0x0, 0x309c5c\nPUSH            {R4,LR}                                                ; +0x4, 0x309c60\nCMP             R3, #1                                                 ; +0x6, 0x309c62\nMOV             R4, R0                                                 ; +0x8, 0x309c64\nBLE             locret_309C96                                          ; +0xa, 0x309c66\nVLDR            S15, [R0,#0x20C]                                       ; +0xc, 0x309c68\nSUBS            R3, #1                                                 ; +0x10, 0x309c6c\nVLDR            S14, [R0,#0x224]                                       ; +0x12, 0x309c6e\nVSUB.F32        S14, S15, S14                                          ; +0x16, 0x309c72\nVMOV            S15, R3                                                ; +0x1a, 0x309c76\nVCVT.F32.S32    S15, S15                                               ; +0x1e, 0x309c7a\nVDIV.F32        S15, S14, S15                                          ; +0x22, 0x309c7e\nVLDR            S14, =60.0                                             ; +0x26, 0x309c82\nVDIV.F32        S15, S14, S15                                          ; +0x2a, 0x309c86\nVMOV            R0, S15                                                ; +0x2e, 0x309c8a\nBLX             lroundf                                                ; +0x32, 0x309c8e\nSTR.W           R0, [R4,#0x22C]                                        ; +0x36, 0x309c92\nPOP             {R4,PC}                                                ; +0x3a, 0x309c96", "xrefs": ["FindBPMLayer::registerTouch @ 0x309cd6"], "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"}