{"type": "func", "start": 4300587264, "end": 4300587441, "name": "GJGameLevel::getSongName", "pseudocode": "// \n// GJGameLevel::getSongName from 0x10055c100 to 0x10055c1b1 (177 bytes)\n// \n// 3 xrefs:\n// > EditLevelLayer::setupLevelInfo @ 0x1001fc541\n// > LevelCell::loadLocalLevelCell @ 0x10024f1fe\n// > LevelCell::loadCustomLevelCell @ 0x100250412\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\nstd::string *__fastcall GJGameLevel::getSongName(std::string *this, __int64 a2, double a3)\n{\n  int v4; // edi\n  SongInfoObject *v5; // rax\n  std::string *p_m_songName; // rax\n  __int128 v8; // [rsp+0h] [rbp-30h] BYREF\n  std::string::size_type longStorage; // [rsp+10h] [rbp-20h]\n\n  v4 = *(_DWORD *)(a2 + 600);\n  if ( v4 )\n  {\n    *(_WORD *)&this->__r_.__value_.__l.0 = 0;\n    v5 = SongInfoObject::create_1(v4);\n    if ( v5 && !v5->m_unloaded )\n    {\n      if ( (v5->m_songName.m_data.m_short.sizex2 & 1) != 0 )\n      {\n        sub_100006B70(&v8, v5->m_songName.m_data.m_long.longStorage, v5->m_songName.m_data.m_long.size, a3);\n      }\n      else\n      {\n        p_m_songName = &v5->m_songName;\n        longStorage = (std::string::size_type)p_m_songName->m_data.m_long.longStorage;\n        v8 = *(_OWORD *)&p_m_songName->m_data.m_short.sizex2;\n      }\n      if ( (*(_BYTE *)&this->__r_.__value_.__s.0 & 1) != 0 )\n        operator delete(this->__r_.__value_.__l.__data_);\n      this->__r_.__value_.__r.__words[2] = longStorage;\n      *(_OWORD *)&this->__r_.__value_.__l.0 = v8;\n    }\n    else\n    {\n      std::string::assign(this, \"Unknown\");\n    }\n  }\n  else\n  {\n    LevelTools::getAudioTitle((__int64)this, *(_DWORD *)(a2 + 596));\n  }\n  return this;\n}", "assembly": "; \n; GJGameLevel::getSongName from 0x10055c100 to 0x10055c1b1 (177 bytes)\n; \n; 3 xrefs:\n; > EditLevelLayer::setupLevelInfo @ 0x1001fc541\n; > LevelCell::loadLocalLevelCell @ 0x10024f1fe\n; > LevelCell::loadCustomLevelCell @ 0x100250412\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, 0x10055c100\nmov     rbp, rsp                                                       ; +0x1, 0x10055c101\npush    r14                                                            ; +0x4, 0x10055c104\npush    rbx                                                            ; +0x6, 0x10055c106\nsub     rsp, 20h                                                       ; +0x7, 0x10055c107\nmov     rbx, rdi                                                       ; +0xb, 0x10055c10b\nmov     edi, [rsi+258h]                                                ; +0xe, 0x10055c10e\ntest    edi, edi                                                       ; +0x14, 0x10055c114\njz      short loc_10055C141                                            ; +0x16, 0x10055c116\nmov     word ptr [rbx], 0                                              ; +0x18, 0x10055c118\ncall    SongInfoObject__create_1                                       ; +0x1d, 0x10055c11d\ntest    rax, rax                                                       ; +0x22, 0x10055c122\njz      short loc_10055C130                                            ; +0x25, 0x10055c125\ncmp     byte ptr [rax+1F8h], 0                                         ; +0x27, 0x10055c127\njz      short loc_10055C151                                            ; +0x2e, 0x10055c12e\nlea     rsi, aUnknown; \"Unknown\"                                       ; +0x30, 0x10055c130\nmov     rdi, rbx; this                                                 ; +0x37, 0x10055c137\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x3a, 0x10055c13a\njmp     short loc_10055C1A5                                            ; +0x3f, 0x10055c13f\nmov     esi, [rsi+254h]                                                ; +0x41, 0x10055c141\nmov     rdi, rbx                                                       ; +0x47, 0x10055c147\ncall    LevelTools__getAudioTitle                                      ; +0x4a, 0x10055c14a\njmp     short loc_10055C1A5                                            ; +0x4f, 0x10055c14f\ntest    byte ptr [rax+140h], 1                                         ; +0x51, 0x10055c151\njnz     short loc_10055C171                                            ; +0x58, 0x10055c158\nadd     rax, 140h                                                      ; +0x5a, 0x10055c15a\nmov     rcx, [rax+10h]                                                 ; +0x60, 0x10055c160\nmov     [rbp+var_20], rcx                                              ; +0x64, 0x10055c164\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x68, 0x10055c168\nmovaps  [rbp+var_30], xmm0                                             ; +0x6b, 0x10055c16b\njmp     short loc_10055C188                                            ; +0x6f, 0x10055c16f\nmov     rdx, [rax+148h]                                                ; +0x71, 0x10055c171\nmov     rsi, [rax+150h]                                                ; +0x78, 0x10055c178\nlea     rdi, [rbp+var_30]                                              ; +0x7f, 0x10055c17f\ncall    sub_100006B70                                                  ; +0x83, 0x10055c183\ntest    byte ptr [rbx], 1                                              ; +0x88, 0x10055c188\njz      short loc_10055C196                                            ; +0x8b, 0x10055c18b\nmov     rdi, [rbx+10h]; __p                                            ; +0x8d, 0x10055c18d\ncall    __ZdlPv; operator delete(void *)                               ; +0x91, 0x10055c191\nmov     rax, [rbp+var_20]                                              ; +0x96, 0x10055c196\nmov     [rbx+10h], rax                                                 ; +0x9a, 0x10055c19a\nmovaps  xmm0, [rbp+var_30]                                             ; +0x9e, 0x10055c19e\nmovups  xmmword ptr [rbx], xmm0                                        ; +0xa2, 0x10055c1a2\nmov     rax, rbx                                                       ; +0xa5, 0x10055c1a5\nadd     rsp, 20h                                                       ; +0xa8, 0x10055c1a8\npop     rbx                                                            ; +0xac, 0x10055c1ac\npop     r14                                                            ; +0xad, 0x10055c1ad\npop     rbp                                                            ; +0xaf, 0x10055c1af\nretn                                                                   ; +0xb0, 0x10055c1b0", "xrefs": ["EditLevelLayer::setupLevelInfo @ 0x1001fc541", "LevelCell::loadLocalLevelCell @ 0x10024f1fe", "LevelCell::loadCustomLevelCell @ 0x100250412"], "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"}