{"type": "func", "start": 4300261136, "end": 4300261846, "name": "CreateGuidelinesLayer::recordingDidStop", "pseudocode": "// \n// CreateGuidelinesLayer::recordingDidStop from 0x10050c710 to 0x10050c9d6 (710 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10095c178\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::recordingDidStop(CreateGuidelinesLayer *a1)\n{\n  __int128 v1; // xmm0\n  unsigned int sizex2; // eax\n  std::size_t size; // rax\n  cocos2d::CCLabelBMFont *m_infoLabel; // rdi\n  void (__cdecl *setString)(cocos2d::CCLabelBMFont *__hidden, const char *); // rcx\n  __int64 v7; // rax\n  __int64 v8; // rax\n  std::string *p_m_guidelineString; // r15\n  char v10; // al\n  __int64 v11; // r14\n  __int64 v12; // r14\n  std::string v13; // [rsp+0h] [rbp-C0h] BYREF\n  __int128 v14; // [rsp+20h] [rbp-A0h] BYREF\n  void *v15; // [rsp+30h] [rbp-90h]\n  __int128 v16; // [rsp+40h] [rbp-80h] BYREF\n  void *__p; // [rsp+50h] [rbp-70h]\n  std::string __str; // [rsp+60h] [rbp-60h] BYREF\n  __int128 v19; // [rsp+78h] [rbp-48h] BYREF\n  void *v20; // [rsp+88h] [rbp-38h]\n  __int128 v21; // [rsp+90h] [rbp-30h] BYREF\n  void *v22; // [rsp+A0h] [rbp-20h]\n\n  sizex2 = a1->m_guidelineString.m_data.m_short.sizex2;\n  if ( (sizex2 & 1) != 0 )\n    size = a1->m_guidelineString.m_data.m_long.size;\n  else\n    size = sizex2 >> 1;\n  m_infoLabel = a1->m_infoLabel;\n  setString = m_infoLabel->setString;\n  if ( !size )\n  {\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))setString)(m_infoLabel, \"\");\n    goto LABEL_30;\n  }\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))setString)(m_infoLabel, \"Guidelines saved\");\n  v7 = ((__int64 (__fastcall *)(CustomSongDelegate *))a1->m_delegate->getLevelSettings)(a1->m_delegate);\n  if ( (*(_BYTE *)(v7 + 392) & 1) == 0 )\n  {\n    v8 = v7 + 392;\n    v22 = *(void **)(v8 + 16);\n    v1 = *(_OWORD *)v8;\n    v21 = *(_OWORD *)v8;\n    p_m_guidelineString = (std::string *)&a1->m_guidelineString;\n    v10 = v21;\n    if ( (v21 & 1) != 0 )\n      goto LABEL_7;\nLABEL_12:\n    if ( v10 )\n    {\n      *(_QWORD *)&v1 = v21;\n      v14 = v21;\n      v15 = v22;\n      if ( (*(_BYTE *)&p_m_guidelineString->__r_.__value_.__s.0 & 1) == 0 )\n        goto LABEL_9;\n      goto LABEL_14;\n    }\nLABEL_21:\n    v12 = ((__int64 (__fastcall *)(CustomSongDelegate *))a1->m_delegate->getLevelSettings)(a1->m_delegate);\n    if ( (*(_BYTE *)&p_m_guidelineString->__r_.__value_.__s.0 & 1) != 0 )\n      sub_100006B70(\n        &v13,\n        a1->m_guidelineString.m_data.m_long.longStorage,\n        a1->m_guidelineString.m_data.m_long.size,\n        *(double *)&v1);\n    else\n      v13 = *p_m_guidelineString;\n    std::string::operator=((std::string *)(v12 + 392), &v13);\n    if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 )\n      operator delete(v13.__r_.__value_.__l.__data_);\n    *(_BYTE *)(((__int64 (__fastcall *)(CustomSongDelegate *))a1->m_delegate->getLevelSettings)(a1->m_delegate) + 416) = 1;\n    if ( (v21 & 1) != 0 )\n      goto LABEL_29;\n    goto LABEL_30;\n  }\n  sub_100006B70(&v21, *(const void **)(v7 + 408), *(_QWORD *)(v7 + 400), *(double *)&v1);\n  p_m_guidelineString = (std::string *)&a1->m_guidelineString;\n  v10 = v21;\n  if ( (v21 & 1) == 0 )\n    goto LABEL_12;\nLABEL_7:\n  if ( !*((_QWORD *)&v21 + 1) )\n    goto LABEL_21;\n  sub_100006B70(&v14, v22, *((unsigned __int64 *)&v21 + 1), *(double *)&v1);\n  if ( (*(_BYTE *)&p_m_guidelineString->__r_.__value_.__s.0 & 1) == 0 )\n  {\nLABEL_9:\n    __p = p_m_guidelineString->__r_.__value_.__l.__data_;\n    v1 = *(_OWORD *)&p_m_guidelineString->__r_.__value_.__l.0;\n    v16 = *(_OWORD *)&p_m_guidelineString->__r_.__value_.__l.0;\n    goto LABEL_15;\n  }\nLABEL_14:\n  sub_100006B70(\n    &v16,\n    a1->m_guidelineString.m_data.m_long.longStorage,\n    a1->m_guidelineString.m_data.m_long.size,\n    *(double *)&v1);\nLABEL_15:\n  CreateGuidelinesLayer::getMergedRecordString(&v19, a1, &v14, &v16);\n  if ( (v16 & 1) != 0 )\n    operator delete(__p);\n  if ( (v14 & 1) != 0 )\n    operator delete(v15);\n  v11 = ((__int64 (__fastcall *)(CustomSongDelegate *))a1->m_delegate->getLevelSettings)(a1->m_delegate);\n  if ( (v19 & 1) != 0 )\n  {\n    sub_100006B70(&__str, v20, *((unsigned __int64 *)&v19 + 1), *(double *)&v1);\n  }\n  else\n  {\n    __str.__r_.__value_.__r.__words[2] = (std::string::size_type)v20;\n    *(_OWORD *)&__str.__r_.__value_.__l.0 = v19;\n  }\n  std::string::operator=((std::string *)(v11 + 392), &__str);\n  if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(__str.__r_.__value_.__l.__data_);\n  *(_BYTE *)(((__int64 (__fastcall *)(CustomSongDelegate *))a1->m_delegate->getLevelSettings)(a1->m_delegate) + 416) = 1;\n  if ( (v19 & 1) != 0 )\n    operator delete(v20);\n  if ( (v21 & 1) != 0 )\nLABEL_29:\n    operator delete(v22);\nLABEL_30:\n  if ( a1->m_guidelines >= 1001 )\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_infoLabel->setString)(\n      a1->m_infoLabel,\n      \"Maximum limit exceeded\");\n  a1->m_guidelines = 0;\n}", "assembly": "; \n; CreateGuidelinesLayer::recordingDidStop from 0x10050c710 to 0x10050c9d6 (710 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10095c178\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, 0x10050c710\nmov     rbp, rsp                                                       ; +0x1, 0x10050c711\npush    r15                                                            ; +0x4, 0x10050c714\npush    r14                                                            ; +0x6, 0x10050c716\npush    rbx                                                            ; +0x8, 0x10050c718\nsub     rsp, 0A8h                                                      ; +0x9, 0x10050c719\nmov     rbx, rdi                                                       ; +0x10, 0x10050c720\nmovzx   eax, byte ptr [rdi+2C0h]                                       ; +0x13, 0x10050c723\ntest    al, 1                                                          ; +0x1a, 0x10050c72a\njnz     short loc_10050C732                                            ; +0x1c, 0x10050c72c\nshr     eax, 1                                                         ; +0x1e, 0x10050c72e\njmp     short loc_10050C739                                            ; +0x20, 0x10050c730\nmov     rax, [rbx+2C8h]                                                ; +0x22, 0x10050c732\nmov     rdi, [rbx+2A0h]                                                ; +0x29, 0x10050c739\nmov     rcx, [rdi]                                                     ; +0x30, 0x10050c740\nmov     rcx, [rcx+390h]                                                ; +0x33, 0x10050c743\ntest    rax, rax                                                       ; +0x3a, 0x10050c74a\njz      short loc_10050C7C7                                            ; +0x3d, 0x10050c74d\nlea     rsi, aGuidelinesSave; \"Guidelines saved\"                       ; +0x3f, 0x10050c74f\ncall    rcx                                                            ; +0x46, 0x10050c756\nmov     rdi, [rbx+280h]                                                ; +0x48, 0x10050c758\nmov     rax, [rdi]                                                     ; +0x4f, 0x10050c75f\ncall    qword ptr [rax+18h]                                            ; +0x52, 0x10050c762\ntest    byte ptr [rax+188h], 1                                         ; +0x55, 0x10050c765\njnz     short loc_10050C7D5                                            ; +0x5c, 0x10050c76c\nadd     rax, 188h                                                      ; +0x5e, 0x10050c76e\nmov     rcx, [rax+10h]                                                 ; +0x64, 0x10050c774\nmov     [rbp+var_20], rcx                                              ; +0x68, 0x10050c778\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x6c, 0x10050c77c\nmovaps  [rbp+var_30], xmm0                                             ; +0x6f, 0x10050c77f\nlea     r15, [rbx+2C0h]                                                ; +0x73, 0x10050c783\nmovzx   eax, byte ptr [rbp+var_30]                                     ; +0x7a, 0x10050c78a\ntest    al, 1                                                          ; +0x7e, 0x10050c78e\njz      short loc_10050C7FB                                            ; +0x80, 0x10050c790\nmov     rdx, qword ptr [rbp+var_30+8]                                  ; +0x82, 0x10050c792\ntest    rdx, rdx                                                       ; +0x86, 0x10050c796\njz      loc_10050C899                                                  ; +0x89, 0x10050c799\nmov     rsi, [rbp+var_20]                                              ; +0x8f, 0x10050c79f\nlea     rdi, [rbp+var_A0]                                              ; +0x93, 0x10050c7a3\ncall    sub_100006B70                                                  ; +0x9a, 0x10050c7aa\ntest    byte ptr [r15], 1                                              ; +0x9f, 0x10050c7af\njnz     short loc_10050C81F                                            ; +0xa3, 0x10050c7b3\nmov     rax, [r15+10h]                                                 ; +0xa5, 0x10050c7b5\nmov     [rbp+__p], rax                                                 ; +0xa9, 0x10050c7b9\nmovups  xmm0, xmmword ptr [r15]                                        ; +0xad, 0x10050c7bd\nmovaps  [rbp+var_80], xmm0                                             ; +0xb1, 0x10050c7c1\njmp     short loc_10050C836                                            ; +0xb5, 0x10050c7c5\nlea     rsi, __src; \"\"                                                 ; +0xb7, 0x10050c7c7\ncall    rcx                                                            ; +0xbe, 0x10050c7ce\njmp     loc_10050C933                                                  ; +0xc0, 0x10050c7d0\nmov     rdx, [rax+190h]                                                ; +0xc5, 0x10050c7d5\nmov     rsi, [rax+198h]                                                ; +0xcc, 0x10050c7dc\nlea     rdi, [rbp+var_30]                                              ; +0xd3, 0x10050c7e3\ncall    sub_100006B70                                                  ; +0xd7, 0x10050c7e7\nlea     r15, [rbx+2C0h]                                                ; +0xdc, 0x10050c7ec\nmovzx   eax, byte ptr [rbp+var_30]                                     ; +0xe3, 0x10050c7f3\ntest    al, 1                                                          ; +0xe7, 0x10050c7f7\njnz     short loc_10050C792                                            ; +0xe9, 0x10050c7f9\ntest    al, al                                                         ; +0xeb, 0x10050c7fb\njz      loc_10050C899                                                  ; +0xed, 0x10050c7fd\nmovaps  xmm0, [rbp+var_30]                                             ; +0xf3, 0x10050c803\nmovaps  [rbp+var_A0], xmm0                                             ; +0xf7, 0x10050c807\nmov     rax, [rbp+var_20]                                              ; +0xfe, 0x10050c80e\nmov     [rbp+var_90], rax                                              ; +0x102, 0x10050c812\ntest    byte ptr [r15], 1                                              ; +0x109, 0x10050c819\njz      short loc_10050C7B5                                            ; +0x10d, 0x10050c81d\nmov     rdx, [rbx+2C8h]                                                ; +0x10f, 0x10050c81f\nmov     rsi, [rbx+2D0h]                                                ; +0x116, 0x10050c826\nlea     rdi, [rbp+var_80]                                              ; +0x11d, 0x10050c82d\ncall    sub_100006B70                                                  ; +0x121, 0x10050c831\nlea     rdi, [rbp+var_48]                                              ; +0x126, 0x10050c836\nlea     rdx, [rbp+var_A0]                                              ; +0x12a, 0x10050c83a\nlea     rcx, [rbp+var_80]                                              ; +0x131, 0x10050c841\nmov     rsi, rbx                                                       ; +0x135, 0x10050c845\ncall    CreateGuidelinesLayer__getMergedRecordString                   ; +0x138, 0x10050c848\ntest    byte ptr [rbp+var_80], 1                                       ; +0x13d, 0x10050c84d\njz      short loc_10050C85C                                            ; +0x141, 0x10050c851\nmov     rdi, [rbp+__p]; __p                                            ; +0x143, 0x10050c853\ncall    __ZdlPv; operator delete(void *)                               ; +0x147, 0x10050c857\ntest    byte ptr [rbp+var_A0], 1                                       ; +0x14c, 0x10050c85c\njz      short loc_10050C871                                            ; +0x153, 0x10050c863\nmov     rdi, [rbp+var_90]; __p                                         ; +0x155, 0x10050c865\ncall    __ZdlPv; operator delete(void *)                               ; +0x15c, 0x10050c86c\nmov     rdi, [rbx+280h]                                                ; +0x161, 0x10050c871\nmov     rax, [rdi]                                                     ; +0x168, 0x10050c878\ncall    qword ptr [rax+18h]                                            ; +0x16b, 0x10050c87b\nmov     r14, rax                                                       ; +0x16e, 0x10050c87e\ntest    byte ptr [rbp+var_48], 1                                       ; +0x171, 0x10050c881\njnz     short loc_10050C8CE                                            ; +0x175, 0x10050c885\nmov     rax, [rbp+var_38]                                              ; +0x177, 0x10050c887\nmov     qword ptr [rbp+__str.__r_.__value_+10h], rax                   ; +0x17b, 0x10050c88b\nmovups  xmm0, [rbp+var_48]                                             ; +0x17f, 0x10050c88f\nmovaps  xmmword ptr [rbp+__str.__r_.__value_], xmm0                    ; +0x183, 0x10050c893\njmp     short loc_10050C8DF                                            ; +0x187, 0x10050c897\nmov     rdi, [rbx+280h]                                                ; +0x189, 0x10050c899\nmov     rax, [rdi]                                                     ; +0x190, 0x10050c8a0\ncall    qword ptr [rax+18h]                                            ; +0x193, 0x10050c8a3\nmov     r14, rax                                                       ; +0x196, 0x10050c8a6\ntest    byte ptr [r15], 1                                              ; +0x199, 0x10050c8a9\njnz     loc_10050C96E                                                  ; +0x19d, 0x10050c8ad\nmov     rax, [r15+10h]                                                 ; +0x1a3, 0x10050c8b3\nmov     qword ptr [rbp+var_C0.__r_.__value_+10h], rax                  ; +0x1a7, 0x10050c8b7\nmovups  xmm0, xmmword ptr [r15]                                        ; +0x1ae, 0x10050c8be\nmovaps  xmmword ptr [rbp+var_C0.__r_.__value_], xmm0                   ; +0x1b2, 0x10050c8c2\njmp     loc_10050C988                                                  ; +0x1b9, 0x10050c8c9\nmov     rdx, qword ptr [rbp+var_48+8]                                  ; +0x1be, 0x10050c8ce\nmov     rsi, [rbp+var_38]                                              ; +0x1c2, 0x10050c8d2\nlea     rdi, [rbp+__str]                                               ; +0x1c6, 0x10050c8d6\ncall    sub_100006B70                                                  ; +0x1ca, 0x10050c8da\nadd     r14, 188h                                                      ; +0x1cf, 0x10050c8df\nlea     rsi, [rbp+__str]; __str                                        ; +0x1d6, 0x10050c8e6\nmov     rdi, r14; this                                                 ; +0x1da, 0x10050c8ea\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x1dd, 0x10050c8ed\ntest    byte ptr [rbp+__str.__r_.__value_], 1                          ; +0x1e2, 0x10050c8f2\njz      short loc_10050C901                                            ; +0x1e6, 0x10050c8f6\nmov     rdi, qword ptr [rbp+__str.__r_.__value_+10h]; __p              ; +0x1e8, 0x10050c8f8\ncall    __ZdlPv; operator delete(void *)                               ; +0x1ec, 0x10050c8fc\nmov     rdi, [rbx+280h]                                                ; +0x1f1, 0x10050c901\nmov     rax, [rdi]                                                     ; +0x1f8, 0x10050c908\ncall    qword ptr [rax+18h]                                            ; +0x1fb, 0x10050c90b\nmov     byte ptr [rax+1A0h], 1                                         ; +0x1fe, 0x10050c90e\ntest    byte ptr [rbp+var_48], 1                                       ; +0x205, 0x10050c915\njz      short loc_10050C924                                            ; +0x209, 0x10050c919\nmov     rdi, [rbp+var_38]; __p                                         ; +0x20b, 0x10050c91b\ncall    __ZdlPv; operator delete(void *)                               ; +0x20f, 0x10050c91f\ntest    byte ptr [rbp+var_30], 1                                       ; +0x214, 0x10050c924\njz      short loc_10050C933                                            ; +0x218, 0x10050c928\nmov     rdi, [rbp+var_20]; __p                                         ; +0x21a, 0x10050c92a\ncall    __ZdlPv; operator delete(void *)                               ; +0x21e, 0x10050c92e\ncmp     dword ptr [rbx+2B8h], 3E9h                                     ; +0x223, 0x10050c933\njl      short loc_10050C956                                            ; +0x22d, 0x10050c93d\nmov     rdi, [rbx+2A0h]                                                ; +0x22f, 0x10050c93f\nmov     rax, [rdi]                                                     ; +0x236, 0x10050c946\nlea     rsi, aMaximumLimitEx; \"Maximum limit exceeded\"                 ; +0x239, 0x10050c949\ncall    qword ptr [rax+390h]                                           ; +0x240, 0x10050c950\nmov     dword ptr [rbx+2B8h], 0                                        ; +0x246, 0x10050c956\nadd     rsp, 0A8h                                                      ; +0x250, 0x10050c960\npop     rbx                                                            ; +0x257, 0x10050c967\npop     r14                                                            ; +0x258, 0x10050c968\npop     r15                                                            ; +0x25a, 0x10050c96a\npop     rbp                                                            ; +0x25c, 0x10050c96c\nretn                                                                   ; +0x25d, 0x10050c96d\nmov     rdx, [rbx+2C8h]                                                ; +0x25e, 0x10050c96e\nmov     rsi, [rbx+2D0h]                                                ; +0x265, 0x10050c975\nlea     rdi, [rbp+var_C0]                                              ; +0x26c, 0x10050c97c\ncall    sub_100006B70                                                  ; +0x273, 0x10050c983\nadd     r14, 188h                                                      ; +0x278, 0x10050c988\nlea     rsi, [rbp+var_C0]; __str                                       ; +0x27f, 0x10050c98f\nmov     rdi, r14; this                                                 ; +0x286, 0x10050c996\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_; std::string::operator=(std::string const&) ; +0x289, 0x10050c999\ntest    byte ptr [rbp+var_C0.__r_.__value_], 1                         ; +0x28e, 0x10050c99e\njz      short loc_10050C9B3                                            ; +0x295, 0x10050c9a5\nmov     rdi, qword ptr [rbp+var_C0.__r_.__value_+10h]; __p             ; +0x297, 0x10050c9a7\ncall    __ZdlPv; operator delete(void *)                               ; +0x29e, 0x10050c9ae\nmov     rdi, [rbx+280h]                                                ; +0x2a3, 0x10050c9b3\nmov     rax, [rdi]                                                     ; +0x2aa, 0x10050c9ba\ncall    qword ptr [rax+18h]                                            ; +0x2ad, 0x10050c9bd\nmov     byte ptr [rax+1A0h], 1                                         ; +0x2b0, 0x10050c9c0\ntest    byte ptr [rbp+var_30], 1                                       ; +0x2b7, 0x10050c9c7\njnz     loc_10050C92A                                                  ; +0x2bb, 0x10050c9cb\njmp     loc_10050C933                                                  ; +0x2c1, 0x10050c9d1", "xrefs": ["<???> @ 0x10095c178"], "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"}