{"type": "func", "start": 5369511296, "end": 5369511465, "name": "CustomSongLayer::textInputOpened", "pseudocode": "// \n// CustomSongLayer::textInputOpened from 0x1400c3d80 to 0x1400c3e29 (169 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x14054da38\n// > <???> @ 0x14054da40\n// > <???> @ 0x14056ad50\n// > <???> @ 0x1406c804c\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\n// Merged with: CustomSongLayer::textInputOpened, GJGarageLayer::textChanged\nvoid __fastcall CustomSongLayer::textInputOpened(__int64 a1, __int64 a2)\n{\n  _BYTE *v2; // rax\n  size_t v3; // r8\n  void *v4; // rcx\n  void *Block[2]; // [rsp+28h] [rbp-30h] BYREF\n  __int128 v6; // [rsp+38h] [rbp-20h]\n\n  v2 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(a2 + 552) + 600LL) + 8LL))(*(_QWORD *)(a2 + 552) + 600LL);\n  *(_OWORD *)Block = 0;\n  v3 = -1;\n  v6 = 0;\n  do\n    ++v3;\n  while ( v2[v3] );\n  sub_14003A930(Block, v2, v3);\n  if ( *((_QWORD *)&v6 + 1) > 0xFu )\n  {\n    v4 = Block[0];\n    if ( (unsigned __int64)(*((_QWORD *)&v6 + 1) + 1LL) >= 0x1000 )\n    {\n      v4 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v4 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v4);\n  }\n}", "assembly": "; \n; CustomSongLayer::textInputOpened from 0x1400c3d80 to 0x1400c3e29 (169 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x14054da38\n; > <???> @ 0x14054da40\n; > <???> @ 0x14056ad50\n; > <???> @ 0x1406c804c\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\nsub     rsp, 58h                                                       ; +0x0, 0x1400c3d80\nmov     rax, cs:__security_cookie                                      ; +0x4, 0x1400c3d84\nxor     rax, rsp                                                       ; +0xb, 0x1400c3d8b\nmov     [rsp+58h+var_10], rax                                          ; +0xe, 0x1400c3d8e\nmov     rcx, [rdx+228h]                                                ; +0x13, 0x1400c3d93\nadd     rcx, 258h                                                      ; +0x1a, 0x1400c3d9a\nmov     rax, [rcx]                                                     ; +0x21, 0x1400c3da1\ncall    qword ptr [rax+8]                                              ; +0x24, 0x1400c3da4\nxorps   xmm0, xmm0                                                     ; +0x27, 0x1400c3da7\nxorps   xmm1, xmm1                                                     ; +0x2a, 0x1400c3daa\nmovups  xmmword ptr [rsp+58h+Block], xmm0                              ; +0x2d, 0x1400c3dad\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x32, 0x1400c3db2\nmovdqu  [rsp+58h+var_20], xmm1                                         ; +0x39, 0x1400c3db9\nnop                                                                    ; +0x3f, 0x1400c3dbf\ninc     r8                                                             ; +0x40, 0x1400c3dc0\ncmp     byte ptr [rax+r8], 0                                           ; +0x43, 0x1400c3dc3\njnz     short loc_1400C3DC0                                            ; +0x48, 0x1400c3dc8\nmov     rdx, rax                                                       ; +0x4a, 0x1400c3dca\nlea     rcx, [rsp+58h+Block]                                           ; +0x4d, 0x1400c3dcd\ncall    sub_14003A930                                                  ; +0x52, 0x1400c3dd2\nmov     rdx, qword ptr [rsp+58h+var_20+8]                              ; +0x57, 0x1400c3dd7\ncmp     rdx, 0Fh                                                       ; +0x5c, 0x1400c3ddc\njbe     short loc_1400C3E17                                            ; +0x60, 0x1400c3de0\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0x62, 0x1400c3de2\ninc     rdx                                                            ; +0x67, 0x1400c3de7\nmov     rax, rcx                                                       ; +0x6a, 0x1400c3dea\ncmp     rdx, 1000h                                                     ; +0x6d, 0x1400c3ded\njb      short loc_1400C3E12                                            ; +0x74, 0x1400c3df4\nmov     rcx, [rcx-8]                                                   ; +0x76, 0x1400c3df6\nadd     rdx, 27h ; '''                                                 ; +0x7a, 0x1400c3dfa\nsub     rax, rcx                                                       ; +0x7e, 0x1400c3dfe\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x81, 0x1400c3e01\ncmp     rax, 1Fh                                                       ; +0x85, 0x1400c3e05\njbe     short loc_1400C3E12                                            ; +0x89, 0x1400c3e09\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x8b, 0x1400c3e0b\nalign 2                                                                ; +0x91, 0x1400c3e11\ncall    j_j_free                                                       ; +0x92, 0x1400c3e12\nmov     rcx, [rsp+58h+var_10]                                          ; +0x97, 0x1400c3e17\nxor     rcx, rsp; StackCookie                                          ; +0x9c, 0x1400c3e1c\ncall    __security_check_cookie                                        ; +0x9f, 0x1400c3e1f\nadd     rsp, 58h                                                       ; +0xa4, 0x1400c3e24\nretn                                                                   ; +0xa8, 0x1400c3e28", "xrefs": ["<???> @ 0x14054da38", "<???> @ 0x14054da40", "<???> @ 0x14056ad50", "<???> @ 0x1406c804c"], "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"}