{"type": "func", "start": 5369975408, "end": 5369975635, "name": "FindBPMLayer::registerTouch", "pseudocode": "// \n// FindBPMLayer::registerTouch from 0x140135270 to 0x140135353 (227 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140736590\n// > <???> @ 0x1409170d8\n// \n// This function is hookable on this platform (idp: pc, 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:27:04 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall FindBPMLayer::registerTouch(__int64 a1)\n{\n  int v2; // ecx\n  float v3; // xmm0_4\n  _QWORD *v4; // rax\n  _QWORD *v5; // rdx\n  _QWORD v6[4]; // [rsp+20h] [rbp-38h] BYREF\n\n  v2 = *(_DWORD *)(a1 + 788);\n  *(_DWORD *)(a1 + 788) = v2 + 1;\n  if ( v2 + 1 > 1 )\n  {\n    v3 = roundf(60.0 / (float)((float)(*(float *)(a1 + 720) - *(float *)(a1 + 784)) / (float)v2));\n    *(_DWORD *)(a1 + 792) = (int)v3;\n    v4 = GameToolbox::intToString(v6, (int)v3);\n    v5 = v4;\n    if ( v4[3] > 0xFu )\n      v5 = (_QWORD *)*v4;\n    (**(void (__fastcall ***)(__int64, _QWORD *))(*(_QWORD *)(a1 + 776) + 360LL))(*(_QWORD *)(a1 + 776) + 360LL, v5);\n    sub_14003D310((__int64)v6);\n  }\n  else\n  {\n    *(_DWORD *)(a1 + 784) = *(_DWORD *)(a1 + 720);\n    (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 776) + 360LL))(\n      *(_QWORD *)(a1 + 776) + 360LL,\n      \"0\");\n  }\n}", "assembly": "; \n; FindBPMLayer::registerTouch from 0x140135270 to 0x140135353 (227 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140736590\n; > <???> @ 0x1409170d8\n; \n; This function is hookable on this platform (idp: pc, 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:27:04 +0000\n; \npush    rbx                                                            ; +0x0, 0x140135270\nsub     rsp, 50h                                                       ; +0x2, 0x140135272\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x140135276\nxor     rax, rsp                                                       ; +0xd, 0x14013527d\nmov     [rsp+58h+var_18], rax                                          ; +0x10, 0x140135280\nmov     rbx, rcx                                                       ; +0x15, 0x140135285\nmov     ecx, [rcx+314h]                                                ; +0x18, 0x140135288\nlea     eax, [rcx+1]                                                   ; +0x1e, 0x14013528e\nmov     [rbx+314h], eax                                                ; +0x21, 0x140135291\ncmp     eax, 1                                                         ; +0x27, 0x140135297\njg      short loc_1401352D5                                            ; +0x2a, 0x14013529a\nmov     eax, [rbx+2D0h]                                                ; +0x2c, 0x14013529c\nmov     [rbx+310h], eax                                                ; +0x32, 0x1401352a2\nmov     rcx, [rbx+308h]                                                ; +0x38, 0x1401352a8\nadd     rcx, 168h                                                      ; +0x3f, 0x1401352af\nmov     rax, [rcx]                                                     ; +0x46, 0x1401352b6\nlea     rdx, a0; \"0\"                                                   ; +0x49, 0x1401352b9\ncall    qword ptr [rax]                                                ; +0x50, 0x1401352c0\nmov     rcx, [rsp+58h+var_18]                                          ; +0x52, 0x1401352c2\nxor     rcx, rsp; StackCookie                                          ; +0x57, 0x1401352c7\ncall    __security_check_cookie                                        ; +0x5a, 0x1401352ca\nadd     rsp, 50h                                                       ; +0x5f, 0x1401352cf\npop     rbx                                                            ; +0x63, 0x1401352d3\nretn                                                                   ; +0x64, 0x1401352d4\nmovss   xmm1, dword ptr [rbx+2D0h]                                     ; +0x65, 0x1401352d5\nsubss   xmm1, dword ptr [rbx+310h]                                     ; +0x6d, 0x1401352dd\nmovd    xmm0, ecx                                                      ; +0x75, 0x1401352e5\ncvtdq2ps xmm0, xmm0                                                    ; +0x79, 0x1401352e9\ndivss   xmm1, xmm0                                                     ; +0x7c, 0x1401352ec\nmovss   xmm0, cs:dword_1408356E4                                       ; +0x80, 0x1401352f0\ndivss   xmm0, xmm1; X                                                  ; +0x88, 0x1401352f8\ncall    roundf                                                         ; +0x8c, 0x1401352fc\ncvttss2si edx, xmm0                                                    ; +0x91, 0x140135301\nmov     [rbx+318h], edx                                                ; +0x95, 0x140135305\nlea     rcx, [rsp+58h+var_38]                                          ; +0x9b, 0x14013530b\ncall    GameToolbox__intToString                                       ; +0xa0, 0x140135310\nmov     rdx, rax                                                       ; +0xa5, 0x140135315\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0xa8, 0x140135318\njbe     short loc_140135322                                            ; +0xad, 0x14013531d\nmov     rdx, [rax]                                                     ; +0xaf, 0x14013531f\nmov     rcx, [rbx+308h]                                                ; +0xb2, 0x140135322\nadd     rcx, 168h                                                      ; +0xb9, 0x140135329\nmov     rax, [rcx]                                                     ; +0xc0, 0x140135330\ncall    qword ptr [rax]                                                ; +0xc3, 0x140135333\nnop                                                                    ; +0xc5, 0x140135335\nlea     rcx, [rsp+58h+var_38]                                          ; +0xc6, 0x140135336\ncall    sub_14003D310                                                  ; +0xcb, 0x14013533b\nmov     rcx, [rsp+58h+var_18]                                          ; +0xd0, 0x140135340\nxor     rcx, rsp; StackCookie                                          ; +0xd5, 0x140135345\ncall    __security_check_cookie                                        ; +0xd8, 0x140135348\nadd     rsp, 50h                                                       ; +0xdd, 0x14013534d\npop     rbx                                                            ; +0xe1, 0x140135351\nretn                                                                   ; +0xe2, 0x140135352", "xrefs": ["<???> @ 0x140736590", "<???> @ 0x1409170d8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}