{"type": "func", "start": 5373510912, "end": 5373511077, "name": "SongInfoLayer::onBPM", "pseudocode": "// \n// SongInfoLayer::onBPM from 0x140494500 to 0x1404945a5 (165 bytes)\n// \n// 2 xrefs:\n// > SongInfoLayer::init @ 0x140492e13\n// > <???> @ 0x1406dc188\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 SongInfoLayer::onBPM(SongInfoLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rbx\n  FindBPMLayer *v4; // rax\n  FMODAudioEngine *v5; // [rsp+30h] [rbp+8h]\n\n  v3 = qword_1406C2E88;\n  if ( !qword_1406C2E88 )\n  {\n    v5 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v3 = qword_1406C2E88;\n  }\n  if ( *(_QWORD *)(v3 + 552) )\n    FMOD::ChannelControl::stop(*(FMOD::ChannelControl **)(v3 + 552));\n  sub_14005E0D0((_QWORD *)(v3 + 1064));\n  sub_14005E0D0((_QWORD *)(v3 + 1128));\n  sub_14005E0D0((_QWORD *)(v3 + 1192));\n  v4 = FindBPMLayer::create(a1->m_songID);\n  v4->show(v4);\n}", "assembly": "; \n; SongInfoLayer::onBPM from 0x140494500 to 0x1404945a5 (165 bytes)\n; \n; 2 xrefs:\n; > SongInfoLayer::init @ 0x140492e13\n; > <???> @ 0x1406dc188\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140494500\npush    rdi                                                            ; +0x5, 0x140494505\nsub     rsp, 20h                                                       ; +0x6, 0x140494506\nmov     rdi, rcx                                                       ; +0xa, 0x14049450a\nmov     rbx, cs:qword_1406C2E88                                        ; +0xd, 0x14049450d\ntest    rbx, rbx                                                       ; +0x14, 0x140494514\njnz     short loc_140494548                                            ; +0x17, 0x140494517\nmov     ecx, 888h; Size                                                ; +0x19, 0x140494519\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1e, 0x14049451e\nmov     [rsp+28h+arg_0], rax                                           ; +0x23, 0x140494523\nmov     rcx, rax                                                       ; +0x28, 0x140494528\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x2b, 0x14049452b\nnop                                                                    ; +0x30, 0x140494530\nmov     cs:qword_1406C2E88, rax                                        ; +0x31, 0x140494531\nmov     rdx, [rax]                                                     ; +0x38, 0x140494538\nmov     rcx, rax                                                       ; +0x3b, 0x14049453b\ncall    qword ptr [rdx+48h]                                            ; +0x3e, 0x14049453e\nmov     rbx, cs:qword_1406C2E88                                        ; +0x41, 0x140494541\ncmp     qword ptr [rbx+228h], 0                                        ; +0x48, 0x140494548\njz      short loc_14049455F                                            ; +0x50, 0x140494550\nmov     rcx, [rbx+228h]                                                ; +0x52, 0x140494552\ncall    cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0x59, 0x140494559\nlea     rcx, [rbx+428h]                                                ; +0x5f, 0x14049455f\ncall    sub_14005E0D0                                                  ; +0x66, 0x140494566\nlea     rcx, [rbx+468h]                                                ; +0x6b, 0x14049456b\ncall    sub_14005E0D0                                                  ; +0x72, 0x140494572\nlea     rcx, [rbx+4A8h]                                                ; +0x77, 0x140494577\ncall    sub_14005E0D0                                                  ; +0x7e, 0x14049457e\nmov     ecx, [rdi+2F8h]                                                ; +0x83, 0x140494583\ncall    FindBPMLayer__create                                           ; +0x89, 0x140494589\nmov     rdx, [rax]                                                     ; +0x8e, 0x14049458e\nmov     rcx, rax                                                       ; +0x91, 0x140494591\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x94, 0x140494594\nadd     rsp, 20h                                                       ; +0x99, 0x140494599\npop     rdi                                                            ; +0x9d, 0x14049459d\njmp     qword ptr [rdx+410h]                                           ; +0x9e, 0x14049459e", "xrefs": ["SongInfoLayer::init @ 0x140492e13", "<???> @ 0x1406dc188"], "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"}