{"type": "func", "start": 4300260720, "end": 4300260987, "name": "CreateGuidelinesLayer::onRecord", "pseudocode": "// \n// CreateGuidelinesLayer::onRecord from 0x10050c570 to 0x10050c67b (267 bytes)\n// \n// 2 xrefs:\n// > FindBPMLayer::onRecord @ 0x10050d7e9\n// > <???> @ 0x10095c170\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 __fastcall CreateGuidelinesLayer::onRecord(CreateGuidelinesLayer *a1, cocos2d::CCObject *a2)\n{\n  double v3; // xmm0_8\n  double v4; // xmm0_8\n  char *v5; // r14\n  float v6; // xmm0_4\n  cocos2d::CCSprite *m_circleSprite; // rdi\n  char v8[16]; // [rsp+0h] [rbp-30h] BYREF\n  char *v9; // [rsp+10h] [rbp-20h]\n  double v10; // [rsp+18h] [rbp-18h]\n\n  v3 = ((double (__fastcall *)(CCTextInputNode *, _QWORD))a1->m_offsetInput->onClickTrackNode)(a1->m_offsetInput, 0);\n  CCTextInputNode::getString(v8, (__int64)a1->m_offsetInput, v3);\n  if ( (v8[0] & 1) != 0 )\n  {\n    v5 = v9;\n    v10 = atof(v9);\n    operator delete(v5);\n    v4 = v10;\n  }\n  else\n  {\n    v4 = atof(&v8[1]);\n  }\n  v6 = v4;\n  *(float *)&v10 = v6;\n  CreateGuidelinesLayer::toggleItems(a1, 1);\n  ((void (__fastcall *)(CCTextInputNode *, _QWORD))a1->m_offsetInput->setTouchEnabled)(a1->m_offsetInput, 0);\n  a1->m_elapsed = *(float *)&v10;\n  std::string::assign((std::string *)&a1->m_guidelineString, \"\");\n  a1->m_guidelines = 0;\n  m_circleSprite = a1->m_circleSprite;\n  v8[2] = 0;\n  *(_WORD *)v8 = -26881;\n  ((void (__fastcall *)(cocos2d::CCSprite *, char *))m_circleSprite->setColor)(m_circleSprite, v8);\n  ((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_circleSprite->setScale)(a1->m_circleSprite, 0.80000001);\n  ((void (__fastcall *)(CreateGuidelinesLayer *))a1->playMusic)(a1);\n  a1->m_recording = 1;\n  cocos2d::CCNode::scheduleUpdate(a1);\n}", "assembly": "; \n; CreateGuidelinesLayer::onRecord from 0x10050c570 to 0x10050c67b (267 bytes)\n; \n; 2 xrefs:\n; > FindBPMLayer::onRecord @ 0x10050d7e9\n; > <???> @ 0x10095c170\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    rbp                                                            ; +0x0, 0x10050c570\nmov     rbp, rsp                                                       ; +0x1, 0x10050c571\npush    r14                                                            ; +0x4, 0x10050c574\npush    rbx                                                            ; +0x6, 0x10050c576\nsub     rsp, 20h                                                       ; +0x7, 0x10050c577\nmov     rbx, rdi                                                       ; +0xb, 0x10050c57b\nmov     rdi, [rdi+288h]                                                ; +0xe, 0x10050c57e\nmov     rax, [rdi]                                                     ; +0x15, 0x10050c585\nxor     esi, esi                                                       ; +0x18, 0x10050c588\ncall    qword ptr [rax+478h]                                           ; +0x1a, 0x10050c58a\nmov     rsi, [rbx+288h]                                                ; +0x20, 0x10050c590\nlea     rdi, [rbp+var_30]                                              ; +0x27, 0x10050c597\ncall    CCTextInputNode__getString                                     ; +0x2b, 0x10050c59b\ntest    [rbp+var_30], 1                                                ; +0x30, 0x10050c5a0\njnz     short loc_10050C5B1                                            ; +0x34, 0x10050c5a4\nlea     rdi, [rbp+var_30+1]; char *                                    ; +0x36, 0x10050c5a6\ncall    _atof                                                          ; +0x3a, 0x10050c5aa\njmp     short loc_10050C5CF                                            ; +0x3f, 0x10050c5af\nmov     r14, [rbp+var_20]                                              ; +0x41, 0x10050c5b1\nmov     rdi, r14; char *                                               ; +0x45, 0x10050c5b5\ncall    _atof                                                          ; +0x48, 0x10050c5b8\nmovsd   [rbp+var_18], xmm0                                             ; +0x4d, 0x10050c5bd\nmov     rdi, r14; __p                                                  ; +0x52, 0x10050c5c2\ncall    __ZdlPv; operator delete(void *)                               ; +0x55, 0x10050c5c5\nmovsd   xmm0, [rbp+var_18]                                             ; +0x5a, 0x10050c5ca\ncvtsd2ss xmm0, xmm0                                                    ; +0x5f, 0x10050c5cf\nmovss   dword ptr [rbp+var_18], xmm0                                   ; +0x63, 0x10050c5d3\nmov     rdi, rbx                                                       ; +0x68, 0x10050c5d8\nmov     esi, 1                                                         ; +0x6b, 0x10050c5db\ncall    CreateGuidelinesLayer__toggleItems                             ; +0x70, 0x10050c5e0\nmov     rdi, [rbx+288h]                                                ; +0x75, 0x10050c5e5\nmov     rax, [rdi]                                                     ; +0x7c, 0x10050c5ec\nxor     esi, esi                                                       ; +0x7f, 0x10050c5ef\ncall    qword ptr [rax+3D8h]                                           ; +0x81, 0x10050c5f1\nmovss   xmm0, dword ptr [rbp+var_18]                                   ; +0x87, 0x10050c5f7\nmovss   dword ptr [rbx+2B0h], xmm0                                     ; +0x8c, 0x10050c5fc\nlea     rdi, [rbx+2C0h]; this                                          ; +0x94, 0x10050c604\nlea     rsi, __src; \"\"                                                 ; +0x9b, 0x10050c60b\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xa2, 0x10050c612\nmov     dword ptr [rbx+2B8h], 0                                        ; +0xa7, 0x10050c617\nmov     rdi, [rbx+2A8h]                                                ; +0xb1, 0x10050c621\nmov     [rbp+var_2E], 0                                                ; +0xb8, 0x10050c628\nmov     word ptr [rbp+var_30], 96FFh                                   ; +0xbc, 0x10050c62c\nmov     rax, [rdi]                                                     ; +0xc2, 0x10050c632\nlea     rsi, [rbp+var_30]                                              ; +0xc5, 0x10050c635\ncall    qword ptr [rax+3B0h]                                           ; +0xc9, 0x10050c639\nmov     rdi, [rbx+2A8h]                                                ; +0xcf, 0x10050c63f\nmov     rax, [rdi]                                                     ; +0xd6, 0x10050c646\nmovss   xmm0, cs:dword_100814FE4                                       ; +0xd9, 0x10050c649\ncall    qword ptr [rax+0A0h]                                           ; +0xe1, 0x10050c651\nmov     rax, [rbx]                                                     ; +0xe7, 0x10050c657\nmov     rdi, rbx                                                       ; +0xea, 0x10050c65a\ncall    qword ptr [rax+528h]                                           ; +0xed, 0x10050c65d\nmov     byte ptr [rbx+2B4h], 1                                         ; +0xf3, 0x10050c663\nmov     rdi, rbx                                                       ; +0xfa, 0x10050c66a\ncall    cocos2d__CCNode__scheduleUpdate                                ; +0xfd, 0x10050c66d\nadd     rsp, 20h                                                       ; +0x102, 0x10050c672\npop     rbx                                                            ; +0x106, 0x10050c676\npop     r14                                                            ; +0x107, 0x10050c677\npop     rbp                                                            ; +0x109, 0x10050c679\nretn                                                                   ; +0x10a, 0x10050c67a", "xrefs": ["FindBPMLayer::onRecord @ 0x10050d7e9", "<???> @ 0x10095c170"], "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"}