{"type": "func", "start": 4300751840, "end": 4300752017, "name": "GJGameLevel::getSongName", "pseudocode": "// \n// GJGameLevel::getSongName from 0x1005843e0 to 0x100584491 (177 bytes)\n// \n// 3 xrefs:\n// > EditLevelLayer::setupLevelInfo @ 0x1001dee01\n// > LevelCell::loadLocalLevelCell @ 0x1002370fd\n// > LevelCell::loadCustomLevelCell @ 0x10023895a\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:32:21 +0000\n// \n\nstd::string *__fastcall GJGameLevel::getSongName(std::string *this, __int64 a2)\n{\n  __int64 v3; // rdi\n  __int64 v4; // rax\n  __int64 v5; // rax\n  __int128 v7; // [rsp+0h] [rbp-30h] BYREF\n  std::string::size_type v8; // [rsp+10h] [rbp-20h]\n\n  v3 = *(unsigned int *)(a2 + 608);\n  if ( (_DWORD)v3 )\n  {\n    *(_WORD *)&this->__r_.__value_.__l.0 = 0;\n    v4 = SongInfoObject::create_1(v3);\n    if ( v4 && !*(_BYTE *)(v4 + 432) )\n    {\n      if ( (*(_BYTE *)(v4 + 320) & 1) != 0 )\n      {\n        sub_10001AD30(&v7, *(const void **)(v4 + 336), *(_QWORD *)(v4 + 328));\n      }\n      else\n      {\n        v5 = v4 + 320;\n        v8 = *(_QWORD *)(v5 + 16);\n        v7 = *(_OWORD *)v5;\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] = v8;\n      *(_OWORD *)&this->__r_.__value_.__l.0 = v7;\n    }\n    else\n    {\n      std::string::assign(this, \"Unknown\");\n    }\n  }\n  else\n  {\n    LevelTools::getAudioTitle((__int64)this, *(_DWORD *)(a2 + 604));\n  }\n  return this;\n}", "assembly": "; \n; GJGameLevel::getSongName from 0x1005843e0 to 0x100584491 (177 bytes)\n; \n; 3 xrefs:\n; > EditLevelLayer::setupLevelInfo @ 0x1001dee01\n; > LevelCell::loadLocalLevelCell @ 0x1002370fd\n; > LevelCell::loadCustomLevelCell @ 0x10023895a\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:32:21 +0000\n; \npush    rbp                                                            ; +0x0, 0x1005843e0\nmov     rbp, rsp                                                       ; +0x1, 0x1005843e1\npush    r14                                                            ; +0x4, 0x1005843e4\npush    rbx                                                            ; +0x6, 0x1005843e6\nsub     rsp, 20h                                                       ; +0x7, 0x1005843e7\nmov     rbx, rdi                                                       ; +0xb, 0x1005843eb\nmov     edi, [rsi+260h]                                                ; +0xe, 0x1005843ee\ntest    edi, edi                                                       ; +0x14, 0x1005843f4\njz      short loc_100584421                                            ; +0x16, 0x1005843f6\nmov     word ptr [rbx], 0                                              ; +0x18, 0x1005843f8\ncall    SongInfoObject__create_1                                       ; +0x1d, 0x1005843fd\ntest    rax, rax                                                       ; +0x22, 0x100584402\njz      short loc_100584410                                            ; +0x25, 0x100584405\ncmp     byte ptr [rax+1B0h], 0                                         ; +0x27, 0x100584407\njz      short loc_100584431                                            ; +0x2e, 0x10058440e\nlea     rsi, aUnknown; \"Unknown\"                                       ; +0x30, 0x100584410\nmov     rdi, rbx; this                                                 ; +0x37, 0x100584417\ncall    __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKc; std::string::assign(char const*) ; +0x3a, 0x10058441a\njmp     short loc_100584485                                            ; +0x3f, 0x10058441f\nmov     esi, [rsi+25Ch]                                                ; +0x41, 0x100584421\nmov     rdi, rbx                                                       ; +0x47, 0x100584427\ncall    LevelTools__getAudioTitle                                      ; +0x4a, 0x10058442a\njmp     short loc_100584485                                            ; +0x4f, 0x10058442f\ntest    byte ptr [rax+140h], 1                                         ; +0x51, 0x100584431\njnz     short loc_100584451                                            ; +0x58, 0x100584438\nadd     rax, 140h                                                      ; +0x5a, 0x10058443a\nmov     rcx, [rax+10h]                                                 ; +0x60, 0x100584440\nmov     [rbp+var_20], rcx                                              ; +0x64, 0x100584444\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x68, 0x100584448\nmovaps  [rbp+var_30], xmm0                                             ; +0x6b, 0x10058444b\njmp     short loc_100584468                                            ; +0x6f, 0x10058444f\nmov     rdx, [rax+148h]                                                ; +0x71, 0x100584451\nmov     rsi, [rax+150h]                                                ; +0x78, 0x100584458\nlea     rdi, [rbp+var_30]                                              ; +0x7f, 0x10058445f\ncall    sub_10001AD30                                                  ; +0x83, 0x100584463\ntest    byte ptr [rbx], 1                                              ; +0x88, 0x100584468\njz      short loc_100584476                                            ; +0x8b, 0x10058446b\nmov     rdi, [rbx+10h]; __p                                            ; +0x8d, 0x10058446d\ncall    __ZdlPv; operator delete(void *)                               ; +0x91, 0x100584471\nmov     rax, [rbp+var_20]                                              ; +0x96, 0x100584476\nmov     [rbx+10h], rax                                                 ; +0x9a, 0x10058447a\nmovaps  xmm0, [rbp+var_30]                                             ; +0x9e, 0x10058447e\nmovups  xmmword ptr [rbx], xmm0                                        ; +0xa2, 0x100584482\nmov     rax, rbx                                                       ; +0xa5, 0x100584485\nadd     rsp, 20h                                                       ; +0xa8, 0x100584488\npop     rbx                                                            ; +0xac, 0x10058448c\npop     r14                                                            ; +0xad, 0x10058448d\npop     rbp                                                            ; +0xaf, 0x10058448f\nretn                                                                   ; +0xb0, 0x100584490", "xrefs": ["EditLevelLayer::setupLevelInfo @ 0x1001dee01", "LevelCell::loadLocalLevelCell @ 0x1002370fd", "LevelCell::loadCustomLevelCell @ 0x10023895a"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}