{"type": "func", "start": 5370204080, "end": 5370204372, "name": "GJGameLevel::getSongName", "pseudocode": "// \n// GJGameLevel::getSongName from 0x14016cfb0 to 0x14016d0d4 (292 bytes)\n// \n// 4 xrefs:\n// > LevelCell::loadCustomLevelCell @ 0x1400af4e4\n// > LevelCell::loadLocalLevelCell @ 0x1400b12ee\n// > EditLevelLayer::setupLevelInfo @ 0x1400d6df1\n// > <???> @ 0x1406cade8\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// Hidden C++ exception states: #wind=1\n_OWORD *__fastcall GJGameLevel::getSongName(__int64 a1, _OWORD *a2)\n{\n  int v3; // eax\n  SongInfoObject *v4; // rax\n  __int128 v5; // xmm6\n  __m128i v6; // xmm7\n  __int128 v8; // [rsp+30h] [rbp-78h]\n  __m128i v9; // [rsp+40h] [rbp-68h]\n  __int128 v10; // [rsp+50h] [rbp-58h] BYREF\n  __m128i si128; // [rsp+60h] [rbp-48h]\n\n  v3 = *(_DWORD *)(a1 + 672);\n  if ( v3 )\n  {\n    v8 = 0;\n    v9.m128i_i64[1] = 15;\n    v4 = SongInfoObject::create_1(v3);\n    if ( !v4 || v4->m_unloaded )\n    {\n      v9.m128i_i64[0] = 7;\n      *(_QWORD *)&v8 = 0x6E776F6E6B6E55LL;\n      v6 = v9;\n      v5 = v8;\n    }\n    else\n    {\n      sub_14003BDB0((__int64)&v10, (__int64)&v4->m_songName);\n      v5 = v10;\n      v6 = si128;\n      si128 = _mm_load_si128((const __m128i *)&xmmword_140623F30);\n      LOBYTE(v10) = 0;\n      sub_14003A830((__int64)&v10);\n    }\n    *a2 = v5;\n    a2[1] = v6;\n  }\n  else\n  {\n    LevelTools::getAudioTitle(a2, *(unsigned int *)(a1 + 668));\n  }\n  return a2;\n}", "assembly": "; \n; GJGameLevel::getSongName from 0x14016cfb0 to 0x14016d0d4 (292 bytes)\n; \n; 4 xrefs:\n; > LevelCell::loadCustomLevelCell @ 0x1400af4e4\n; > LevelCell::loadLocalLevelCell @ 0x1400b12ee\n; > EditLevelLayer::setupLevelInfo @ 0x1400d6df1\n; > <???> @ 0x1406cade8\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\nmov     rax, rsp                                                       ; +0x0, 0x14016cfb0\nmov     [rax+18h], rbx                                                 ; +0x3, 0x14016cfb3\npush    rdi                                                            ; +0x7, 0x14016cfb7\nsub     rsp, 0A0h                                                      ; +0x8, 0x14016cfb8\nmovaps  xmmword ptr [rax-18h], xmm6                                    ; +0xf, 0x14016cfbf\nmovaps  xmmword ptr [rax-28h], xmm7                                    ; +0x13, 0x14016cfc3\nmov     rax, cs:__security_cookie                                      ; +0x17, 0x14016cfc7\nxor     rax, rsp                                                       ; +0x1e, 0x14016cfce\nmov     [rsp+0A8h+var_38], rax                                         ; +0x21, 0x14016cfd1\nmov     rbx, rdx                                                       ; +0x26, 0x14016cfd6\nmov     [rsp+0A8h+var_80], rdx                                         ; +0x29, 0x14016cfd9\nxor     edi, edi                                                       ; +0x2e, 0x14016cfde\nmov     eax, [rcx+2A0h]                                                ; +0x30, 0x14016cfe0\ntest    eax, eax                                                       ; +0x36, 0x14016cfe6\njz      loc_14016D09B                                                  ; +0x38, 0x14016cfe8\nxorps   xmm0, xmm0                                                     ; +0x3e, 0x14016cfee\nmovups  [rsp+0A8h+var_78], xmm0                                        ; +0x41, 0x14016cff1\nmov     qword ptr [rsp+0A8h+var_68], rdi                               ; +0x46, 0x14016cff6\nmov     qword ptr [rsp+0A8h+var_68+8], 0Fh                             ; +0x4b, 0x14016cffb\nmov     byte ptr [rsp+0A8h+var_78], dil                                ; +0x54, 0x14016d004\nmov     ecx, eax                                                       ; +0x59, 0x14016d009\ncall    SongInfoObject__create_1                                       ; +0x5b, 0x14016d00b\ntest    rax, rax                                                       ; +0x60, 0x14016d010\njz      short loc_14016D058                                            ; +0x63, 0x14016d013\ncmp     [rax+238h], dil                                                ; +0x65, 0x14016d015\njnz     short loc_14016D058                                            ; +0x6c, 0x14016d01c\nlea     rdx, [rax+148h]                                                ; +0x6e, 0x14016d01e\nlea     rcx, [rsp+0A8h+var_58]                                         ; +0x75, 0x14016d025\ncall    sub_14003BDB0                                                  ; +0x7a, 0x14016d02a\nmovups  xmm6, [rsp+0A8h+var_58]                                        ; +0x7f, 0x14016d02f\nmovups  xmm7, [rsp+0A8h+var_48]                                        ; +0x84, 0x14016d034\nmovdqa  xmm0, cs:xmmword_140623F30                                     ; +0x89, 0x14016d039\nmovdqu  [rsp+0A8h+var_48], xmm0                                        ; +0x91, 0x14016d041\nmov     byte ptr [rsp+0A8h+var_58], dil                                ; +0x97, 0x14016d047\nlea     rcx, [rsp+0A8h+var_58]                                         ; +0x9c, 0x14016d04c\ncall    sub_14003A830                                                  ; +0xa1, 0x14016d051\njmp     short loc_14016D092                                            ; +0xa6, 0x14016d056\nmov     qword ptr [rsp+0A8h+var_68], 7                                 ; +0xa8, 0x14016d058\nmov     rax, cs:qword_1405515B8                                        ; +0xb1, 0x14016d061\nmov     dword ptr [rsp+0A8h+var_78], eax                               ; +0xb8, 0x14016d068\nmovzx   eax, word ptr cs:qword_1405515B8+4                             ; +0xbc, 0x14016d06c\nmov     word ptr [rsp+0A8h+var_78+4], ax                               ; +0xc3, 0x14016d073\nmovzx   eax, byte ptr cs:qword_1405515B8+6                             ; +0xc8, 0x14016d078\nmov     byte ptr [rsp+0A8h+var_78+6], al                               ; +0xcf, 0x14016d07f\nmov     byte ptr [rsp+0A8h+var_78+7], 0                                ; +0xd3, 0x14016d083\nmovups  xmm7, [rsp+0A8h+var_68]                                        ; +0xd8, 0x14016d088\nmovups  xmm6, [rsp+0A8h+var_78]                                        ; +0xdd, 0x14016d08d\nmovups  xmmword ptr [rbx], xmm6                                        ; +0xe2, 0x14016d092\nmovups  xmmword ptr [rbx+10h], xmm7                                    ; +0xe5, 0x14016d095\njmp     short loc_14016D0A9                                            ; +0xe9, 0x14016d099\nmov     edx, [rcx+29Ch]                                                ; +0xeb, 0x14016d09b\nmov     rcx, rbx                                                       ; +0xf1, 0x14016d0a1\ncall    LevelTools__getAudioTitle                                      ; +0xf4, 0x14016d0a4\nmov     rax, rbx                                                       ; +0xf9, 0x14016d0a9\nmov     rcx, [rsp+0A8h+var_38]                                         ; +0xfc, 0x14016d0ac\nxor     rcx, rsp; StackCookie                                          ; +0x101, 0x14016d0b1\ncall    __security_check_cookie                                        ; +0x104, 0x14016d0b4\nlea     r11, [rsp+0A8h+var_8]                                          ; +0x109, 0x14016d0b9\nmov     rbx, [r11+20h]                                                 ; +0x111, 0x14016d0c1\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x115, 0x14016d0c5\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x11a, 0x14016d0ca\nmov     rsp, r11                                                       ; +0x11f, 0x14016d0cf\npop     rdi                                                            ; +0x122, 0x14016d0d2\nretn                                                                   ; +0x123, 0x14016d0d3", "xrefs": ["LevelCell::loadCustomLevelCell @ 0x1400af4e4", "LevelCell::loadLocalLevelCell @ 0x1400b12ee", "EditLevelLayer::setupLevelInfo @ 0x1400d6df1", "<???> @ 0x1406cade8"], "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"}