{"type": "func", "start": 4297791744, "end": 4297792345, "name": "GameOptionsLayer::showPracticeMusicSyncUnlockInfo", "pseudocode": "// \n// GameOptionsLayer::showPracticeMusicSyncUnlockInfo from 0x1002b1900 to 0x1002b1b59 (601 bytes)\n// \n// 1 xrefs:\n// > GameOptionsLayer::onPracticeMusicSync @ 0x1002b1879\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 GameOptionsLayer::showPracticeMusicSyncUnlockInfo(GameOptionsLayer *a1)\n{\n  double v1; // xmm0_8\n  unsigned int v2; // r15d\n  int v3; // r14d\n  const std::string::value_type *v4; // rsi\n  DialogObject *v5; // rax\n  DialogLayer *v6; // r14\n  int m_practiceDialogIndex; // eax\n  int v8; // edx\n  __int128 v9; // [rsp+0h] [rbp-80h] BYREF\n  void *data; // [rsp+10h] [rbp-70h]\n  __int128 v11; // [rsp+20h] [rbp-60h] BYREF\n  void *__p; // [rsp+30h] [rbp-50h]\n  std::string v13; // [rsp+38h] [rbp-48h] BYREF\n  std::string v14; // [rsp+50h] [rbp-30h] BYREF\n\n  *(_WORD *)&v14.__r_.__value_.__l.0 = 0;\n  v13.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)14;\n  strcpy(v13.__r_.__value_.__s.__data_, \"Scratch\");\n  v2 = 10;\n  v3 = 2;\n  switch ( a1->m_practiceDialogIndex )\n  {\n    case 0:\n      std::string::assign(\n        &v14,\n        \"You need a <cg>Music Unlocker</c> to play <cy>normal music</c> in <cl>practice mode</c>.\");\n      goto LABEL_10;\n    case 1:\n      v2 = 26;\n      std::string::assign(&v14, \"I think the <cl>Diamond Shopkeeper</c> has one, <d030><co>weird guy</c>...\");\n      goto LABEL_10;\n    case 2:\n      std::string::assign(&v14, \"<cl>SpaRkle gnAsH Glorp sHiMmerRr crUnCHle bLinGz...</c>\");\n      std::string::assign(&v13, \"Diamond Shopkeeper\");\n      v2 = 40;\n      v3 = 4;\n      if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 )\n        goto LABEL_14;\n      goto LABEL_10;\n    case 3:\n      v4 = \"See what I mean?.<d010>.<d010>.<d010>\";\n      goto LABEL_9;\n    case 4:\n      std::string::assign(\n        &v14,\n        \"<cl>ShiM gNaw glEaM.<d010>.<d010>.<d010></c> <cy><i050><s260>bRinG</s> <s260>ShiNy!</c></s></i>\");\n      std::string::assign(&v13, \"Diamond Shopkeeper\");\n      v2 = 41;\n      v3 = 4;\n      if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 )\n        goto LABEL_14;\n      goto LABEL_10;\n    case 5:\n      v2 = 11;\n      std::string::assign(&v14, \"Looks to me like you had enough <cy>shiny</c>.<d010>.<d010>.<d010>\");\n      goto LABEL_10;\n    case 6:\n      std::string::assign(\n        &v14,\n        \"<cl>ShiMmer.<d010>.<d010>.<d010> sHim.<d010>.<d010>.<d010> bLiNg<d020> sNap.<d010>.<d010>.<d010> <i050><s260>HA!</s></i></c>\");\n      std::string::assign(&v13, \"Diamond Shopkeeper\");\n      v2 = 42;\n      v3 = 4;\n      if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) == 0 )\n        goto LABEL_10;\nLABEL_14:\n      sub_100006B70(&v9, v13.__r_.__value_.__l.__data_, v13.__r_.__value_.__l.__size_, v1);\n      break;\n    case 7:\n      v4 = \".<d010>.<d010>.<d010>\";\nLABEL_9:\n      v2 = 12;\n      std::string::assign(&v14, v4);\n      goto LABEL_10;\n    default:\nLABEL_10:\n      data = v13.__r_.__value_.__l.__data_;\n      v1 = *(double *)v13.__r_.__value_.__r.__words;\n      v9 = *(_OWORD *)&v13.__r_.__value_.__l.0;\n      break;\n  }\n  if ( (*(_BYTE *)&v14.__r_.__value_.__s.0 & 1) != 0 )\n  {\n    sub_100006B70(&v11, v14.__r_.__value_.__l.__data_, v14.__r_.__value_.__l.__size_, v1);\n  }\n  else\n  {\n    __p = v14.__r_.__value_.__l.__data_;\n    v11 = *(_OWORD *)&v14.__r_.__value_.__l.0;\n  }\n  v5 = (DialogObject *)DialogObject::create(&v9, &v11, v2, 0, 0xFFFFFF, 1.0);\n  v6 = DialogLayer::create(v5, v3);\n  if ( (v11 & 1) != 0 )\n    operator delete(__p);\n  if ( (v9 & 1) != 0 )\n    operator delete(data);\n  DialogLayer::addToMainScene(v6);\n  DialogLayer::updateChatPlacement(v6, Center);\n  DialogLayer::animateIn(v6, FromCenter);\n  m_practiceDialogIndex = a1->m_practiceDialogIndex;\n  v8 = 0;\n  if ( m_practiceDialogIndex < 7 )\n    v8 = m_practiceDialogIndex + 1;\n  a1->m_practiceDialogIndex = v8;\n  if ( (*(_BYTE *)&v13.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v13.__r_.__value_.__l.__data_);\n  if ( (*(_BYTE *)&v14.__r_.__value_.__s.0 & 1) != 0 )\n    operator delete(v14.__r_.__value_.__l.__data_);\n}", "assembly": "; \n; GameOptionsLayer::showPracticeMusicSyncUnlockInfo from 0x1002b1900 to 0x1002b1b59 (601 bytes)\n; \n; 1 xrefs:\n; > GameOptionsLayer::onPracticeMusicSync @ 0x1002b1879\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, 0x1002b1900\nmov     rbp, rsp                                                       ; +0x1, 0x1002b1901\npush    r15                                                            ; +0x4, 0x1002b1904\npush    r14                                                            ; +0x6, 0x1002b1906\npush    rbx                                                            ; +0x8, 0x1002b1908\nsub     rsp, 68h                                                       ; +0x9, 0x1002b1909\nmov     rbx, rdi                                                       ; +0xd, 0x1002b190d\nmov     word ptr [rbp+var_30.__r_.__value_], 0                         ; +0x10, 0x1002b1910\nmov     byte ptr [rbp+var_48.__r_.__value_], 0Eh                       ; +0x16, 0x1002b1916\nmov     dword ptr [rbp+var_48.__r_.__value_+1], 61726353h              ; +0x1a, 0x1002b191a\nmov     dword ptr [rbp+var_48.__r_.__value_+4], 68637461h              ; +0x21, 0x1002b1921\nmov     byte ptr [rbp+var_48.__r_.__value_+8], 0                       ; +0x28, 0x1002b1928\nmov     eax, [rdi+3F8h]                                                ; +0x2c, 0x1002b192c\nmov     r15d, 0Ah                                                      ; +0x32, 0x1002b1932\nmov     r14d, 2                                                        ; +0x38, 0x1002b1938\ncmp     rax, 7; switch 8 cases                                         ; +0x3e, 0x1002b193e\nja      def_1002B1956; jumptable 00000001002B1956 default case         ; +0x42, 0x1002b1942\nlea     rcx, jpt_1002B1956                                             ; +0x48, 0x1002b1948\nmovsxd  rax, (jpt_1002B1956 - 1002B1BDCh)[rcx+rax*4]                   ; +0x4f, 0x1002b194f\nadd     rax, rcx                                                       ; +0x53, 0x1002b1953\njmp     rax; switch jump                                               ; +0x56, 0x1002b1956\nlea     rsi, aYouNeedACgMusi; jumptable 00000001002B1956 case 0        ; +0x58, 0x1002b1958\nlea     rdi, [rbp+var_30]; this                                        ; +0x5f, 0x1002b195f\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x63, 0x1002b1963\njmp     def_1002B1956; jumptable 00000001002B1956 default case         ; +0x68, 0x1002b1968\nlea     rsi, aClShimGnawGlea; jumptable 00000001002B1956 case 4        ; +0x6d, 0x1002b196d\nlea     rdi, [rbp+var_30]; this                                        ; +0x74, 0x1002b1974\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x78, 0x1002b1978\nlea     rsi, aDiamondShopkee; \"Diamond Shopkeeper\"                     ; +0x7d, 0x1002b197d\nlea     rdi, [rbp+var_48]; this                                        ; +0x84, 0x1002b1984\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x88, 0x1002b1988\nmov     r15d, 29h ; ')'                                                ; +0x8d, 0x1002b198d\nmov     r14d, 4                                                        ; +0x93, 0x1002b1993\ntest    byte ptr [rbp+var_48.__r_.__value_], 1                         ; +0x99, 0x1002b1999\njz      short loc_1002B1A00                                            ; +0x9d, 0x1002b199d\njmp     loc_1002B1A74                                                  ; +0x9f, 0x1002b199f\nlea     rsi, aClSparkleGnash; jumptable 00000001002B1956 case 2        ; +0xa4, 0x1002b19a4\nlea     rdi, [rbp+var_30]; this                                        ; +0xab, 0x1002b19ab\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xaf, 0x1002b19af\nlea     rsi, aDiamondShopkee; \"Diamond Shopkeeper\"                     ; +0xb4, 0x1002b19b4\nlea     rdi, [rbp+var_48]; this                                        ; +0xbb, 0x1002b19bb\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xbf, 0x1002b19bf\nmov     r15d, 28h ; '('                                                ; +0xc4, 0x1002b19c4\nmov     r14d, 4                                                        ; +0xca, 0x1002b19ca\ntest    byte ptr [rbp+var_48.__r_.__value_], 1                         ; +0xd0, 0x1002b19d0\njz      short loc_1002B1A00                                            ; +0xd4, 0x1002b19d4\njmp     loc_1002B1A74                                                  ; +0xd6, 0x1002b19d6\nlea     rsi, aSeeWhatIMeanD0; jumptable 00000001002B1956 case 3        ; +0xdb, 0x1002b19db\njmp     short loc_1002B19EB                                            ; +0xe2, 0x1002b19e2\nlea     rsi, aD010D010D010; jumptable 00000001002B1956 case 7          ; +0xe4, 0x1002b19e4\nmov     r15d, 0Ch                                                      ; +0xeb, 0x1002b19eb\nlea     rdi, [rbp+var_30]; this                                        ; +0xf1, 0x1002b19f1\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0xf5, 0x1002b19f5\ntest    byte ptr [rbp+var_48.__r_.__value_], 1; jumptable 00000001002B1956 default case ; +0xfa, 0x1002b19fa\njnz     short loc_1002B1A74                                            ; +0xfe, 0x1002b19fe\nmov     rax, qword ptr [rbp+var_48.__r_.__value_+10h]                  ; +0x100, 0x1002b1a00\nmov     [rbp+var_70], rax                                              ; +0x104, 0x1002b1a04\nmovups  xmm0, xmmword ptr [rbp+var_48.__r_.__value_]                   ; +0x108, 0x1002b1a08\nmovaps  [rbp+var_80], xmm0                                             ; +0x10c, 0x1002b1a0c\njmp     short loc_1002B1A85                                            ; +0x110, 0x1002b1a10\nmov     r15d, 1Ah; jumptable 00000001002B1956 case 1                   ; +0x112, 0x1002b1a12\nlea     rsi, aIThinkTheClDia; \"I think the <cl>Diamond Shopkeeper</c> \"... ; +0x118, 0x1002b1a18\nlea     rdi, [rbp+var_30]; this                                        ; +0x11f, 0x1002b1a1f\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x123, 0x1002b1a23\njmp     short def_1002B1956; jumptable 00000001002B1956 default case   ; +0x128, 0x1002b1a28\nmov     r15d, 0Bh; jumptable 00000001002B1956 case 5                   ; +0x12a, 0x1002b1a2a\nlea     rsi, aLooksToMeLikeY; \"Looks to me like you had enough <cy>shi\"... ; +0x130, 0x1002b1a30\nlea     rdi, [rbp+var_30]; this                                        ; +0x137, 0x1002b1a37\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x13b, 0x1002b1a3b\njmp     short def_1002B1956; jumptable 00000001002B1956 default case   ; +0x140, 0x1002b1a40\nlea     rsi, aClShimmerD010D; jumptable 00000001002B1956 case 6        ; +0x142, 0x1002b1a42\nlea     rdi, [rbp+var_30]; this                                        ; +0x149, 0x1002b1a49\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x14d, 0x1002b1a4d\nlea     rsi, aDiamondShopkee; \"Diamond Shopkeeper\"                     ; +0x152, 0x1002b1a52\nlea     rdi, [rbp+var_48]; this                                        ; +0x159, 0x1002b1a59\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x15d, 0x1002b1a5d\nmov     r15d, 2Ah ; '*'                                                ; +0x162, 0x1002b1a62\nmov     r14d, 4                                                        ; +0x168, 0x1002b1a68\ntest    byte ptr [rbp+var_48.__r_.__value_], 1                         ; +0x16e, 0x1002b1a6e\njz      short loc_1002B1A00                                            ; +0x172, 0x1002b1a72\nmov     rdx, qword ptr [rbp+var_48.__r_.__value_+8]                    ; +0x174, 0x1002b1a74\nmov     rsi, qword ptr [rbp+var_48.__r_.__value_+10h]                  ; +0x178, 0x1002b1a78\nlea     rdi, [rbp+var_80]                                              ; +0x17c, 0x1002b1a7c\ncall    sub_100006B70                                                  ; +0x180, 0x1002b1a80\ntest    byte ptr [rbp+var_30.__r_.__value_], 1                         ; +0x185, 0x1002b1a85\njnz     short loc_1002B1A9D                                            ; +0x189, 0x1002b1a89\nmov     rax, qword ptr [rbp+var_30.__r_.__value_+10h]                  ; +0x18b, 0x1002b1a8b\nmov     [rbp+__p], rax                                                 ; +0x18f, 0x1002b1a8f\nmovups  xmm0, xmmword ptr [rbp+var_30.__r_.__value_]                   ; +0x193, 0x1002b1a93\nmovaps  [rbp+var_60], xmm0                                             ; +0x197, 0x1002b1a97\njmp     short loc_1002B1AAE                                            ; +0x19b, 0x1002b1a9b\nmov     rdx, qword ptr [rbp+var_30.__r_.__value_+8]                    ; +0x19d, 0x1002b1a9d\nmov     rsi, qword ptr [rbp+var_30.__r_.__value_+10h]                  ; +0x1a1, 0x1002b1aa1\nlea     rdi, [rbp+var_60]                                              ; +0x1a5, 0x1002b1aa5\ncall    sub_100006B70                                                  ; +0x1a9, 0x1002b1aa9\nlea     rdi, [rbp+var_80]                                              ; +0x1ae, 0x1002b1aae\nlea     rsi, [rbp+var_60]                                              ; +0x1b2, 0x1002b1ab2\nmovss   xmm0, cs:alpha                                                 ; +0x1b6, 0x1002b1ab6\nmov     edx, r15d                                                      ; +0x1be, 0x1002b1abe\nxor     ecx, ecx                                                       ; +0x1c1, 0x1002b1ac1\nmov     r8d, 0FFFFFFh                                                  ; +0x1c3, 0x1002b1ac3\ncall    DialogObject__create                                           ; +0x1c9, 0x1002b1ac9\nmov     rdi, rax                                                       ; +0x1ce, 0x1002b1ace\nmov     esi, r14d                                                      ; +0x1d1, 0x1002b1ad1\ncall    DialogLayer__create                                            ; +0x1d4, 0x1002b1ad4\nmov     r14, rax                                                       ; +0x1d9, 0x1002b1ad9\ntest    byte ptr [rbp+var_60], 1                                       ; +0x1dc, 0x1002b1adc\njz      short loc_1002B1AEB                                            ; +0x1e0, 0x1002b1ae0\nmov     rdi, [rbp+__p]; __p                                            ; +0x1e2, 0x1002b1ae2\ncall    __ZdlPv; operator delete(void *)                               ; +0x1e6, 0x1002b1ae6\ntest    byte ptr [rbp+var_80], 1                                       ; +0x1eb, 0x1002b1aeb\njz      short loc_1002B1AFA                                            ; +0x1ef, 0x1002b1aef\nmov     rdi, [rbp+var_70]; __p                                         ; +0x1f1, 0x1002b1af1\ncall    __ZdlPv; operator delete(void *)                               ; +0x1f5, 0x1002b1af5\nmov     rdi, r14                                                       ; +0x1fa, 0x1002b1afa\ncall    DialogLayer__addToMainScene                                    ; +0x1fd, 0x1002b1afd\nmov     rdi, r14                                                       ; +0x202, 0x1002b1b02\nxor     esi, esi                                                       ; +0x205, 0x1002b1b05\ncall    DialogLayer__updateChatPlacement                               ; +0x207, 0x1002b1b07\nmov     rdi, r14                                                       ; +0x20c, 0x1002b1b0c\nmov     esi, 1                                                         ; +0x20f, 0x1002b1b0f\ncall    DialogLayer__animateIn                                         ; +0x214, 0x1002b1b14\nmov     eax, [rbx+3F8h]                                                ; +0x219, 0x1002b1b19\nlea     ecx, [rax+1]                                                   ; +0x21f, 0x1002b1b1f\nxor     edx, edx                                                       ; +0x222, 0x1002b1b22\ncmp     eax, 7                                                         ; +0x224, 0x1002b1b24\ncmovl   edx, ecx                                                       ; +0x227, 0x1002b1b27\nmov     [rbx+3F8h], edx                                                ; +0x22a, 0x1002b1b2a\ntest    byte ptr [rbp+var_48.__r_.__value_], 1                         ; +0x230, 0x1002b1b30\njz      short loc_1002B1B3F                                            ; +0x234, 0x1002b1b34\nmov     rdi, qword ptr [rbp+var_48.__r_.__value_+10h]; __p             ; +0x236, 0x1002b1b36\ncall    __ZdlPv; operator delete(void *)                               ; +0x23a, 0x1002b1b3a\ntest    byte ptr [rbp+var_30.__r_.__value_], 1                         ; +0x23f, 0x1002b1b3f\njz      short loc_1002B1B4E                                            ; +0x243, 0x1002b1b43\nmov     rdi, qword ptr [rbp+var_30.__r_.__value_+10h]; __p             ; +0x245, 0x1002b1b45\ncall    __ZdlPv; operator delete(void *)                               ; +0x249, 0x1002b1b49\nadd     rsp, 68h                                                       ; +0x24e, 0x1002b1b4e\npop     rbx                                                            ; +0x252, 0x1002b1b52\npop     r14                                                            ; +0x253, 0x1002b1b53\npop     r15                                                            ; +0x255, 0x1002b1b55\npop     rbp                                                            ; +0x257, 0x1002b1b57\nretn                                                                   ; +0x258, 0x1002b1b58", "xrefs": ["GameOptionsLayer::onPracticeMusicSync @ 0x1002b1879"], "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"}