{"type": "func", "start": 5372144640, "end": 5372144752, "name": "SongInfoObject::getExtraArtistCount", "pseudocode": "// \n// SongInfoObject::getExtraArtistCount from 0x140346c00 to 0x140346c70 (112 bytes)\n// \n// 2 xrefs:\n// > CustomSongWidget::updateSongInfo @ 0x1400cb6b4\n// > CustomSongWidget::updateSongInfo @ 0x1400cb9c7\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\nint SongInfoObject::getExtraArtistCount(SongInfoObject *a1)\n{\n  std::_List_val<std::_List_simple_types<int>>::_Nodeptr Myhead; // r9\n  std::_Simple_types<std::_List_unchecked_const_iterator<std::_List_val<std::_List_simple_types<int>>, std::_Iterator_base0>>::value_type *v3; // rcx\n  std::_List_unchecked_const_iterator<std::_List_val<std::_List_simple_types<int>>, std::_Iterator_base0>::_Nodeptr Ptr; // rax\n  std::_List_unchecked_const_iterator<std::_List_val<std::_List_simple_types<int>>, std::_Iterator_base0>::_Nodeptr v5; // rcx\n  int v6; // ecx\n\n  Myhead = a1->m_artistIDs._List._Mypair._Myval2._Myhead;\n  v3 = &a1->m_artistIDs._Vec._Mypair._Myval2._Myfirst[2 * (a1->m_artistIDs._Mask & 0xED1A23545D43D219uLL)];\n  Ptr = v3[1]._Ptr;\n  if ( Ptr != Myhead )\n  {\n    v5 = v3->_Ptr;\n    if ( *((_DWORD *)Ptr + 4) == 10004636 )\n      goto LABEL_7;\n    while ( Ptr != v5 )\n    {\n      Ptr = *((std::_List_unchecked_const_iterator<std::_List_val<std::_List_simple_types<int>>, std::_Iterator_base0>::_Nodeptr *)Ptr\n            + 1);\n      if ( *((_DWORD *)Ptr + 4) == 10004636 )\n        goto LABEL_7;\n    }\n  }\n  Ptr = nullptr;\nLABEL_7:\n  if ( !Ptr )\n    Ptr = Myhead;\n  v6 = LODWORD(a1->m_artistIDs._List._Mypair._Myval2._Mysize) - 1;\n  if ( Ptr == Myhead )\n    return a1->m_artistIDs._List._Mypair._Myval2._Mysize;\n  return v6;\n}", "assembly": "; \n; SongInfoObject::getExtraArtistCount from 0x140346c00 to 0x140346c70 (112 bytes)\n; \n; 2 xrefs:\n; > CustomSongWidget::updateSongInfo @ 0x1400cb6b4\n; > CustomSongWidget::updateSongInfo @ 0x1400cb9c7\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     r9, [rcx+280h]                                                 ; +0x0, 0x140346c00\nmov     r8, rcx                                                        ; +0x7, 0x140346c07\nmov     rcx, [rcx+2A8h]                                                ; +0xa, 0x140346c0a\nmov     rax, 0ED1A23545D43D219h                                        ; +0x11, 0x140346c11\nand     rcx, rax                                                       ; +0x1b, 0x140346c1b\nshl     rcx, 4                                                         ; +0x1e, 0x140346c1e\nadd     rcx, [r8+290h]                                                 ; +0x22, 0x140346c22\nmov     rax, [rcx+8]                                                   ; +0x29, 0x140346c29\ncmp     rax, r9                                                        ; +0x2d, 0x140346c2d\njz      short loc_140346C54                                            ; +0x30, 0x140346c30\ncmp     dword ptr [rax+10h], 98A89Ch                                   ; +0x32, 0x140346c32\nmov     rcx, [rcx]                                                     ; +0x39, 0x140346c39\njz      short loc_140346C56                                            ; +0x3c, 0x140346c3c\nxchg    ax, ax                                                         ; +0x3e, 0x140346c3e\ncmp     rax, rcx                                                       ; +0x40, 0x140346c40\njz      short loc_140346C54                                            ; +0x43, 0x140346c43\nmov     rax, [rax+8]                                                   ; +0x45, 0x140346c45\ncmp     dword ptr [rax+10h], 98A89Ch                                   ; +0x49, 0x140346c49\njnz     short loc_140346C40                                            ; +0x50, 0x140346c50\njmp     short loc_140346C56                                            ; +0x52, 0x140346c52\nxor     eax, eax                                                       ; +0x54, 0x140346c54\nmov     edx, [r8+288h]                                                 ; +0x56, 0x140346c56\ntest    rax, rax                                                       ; +0x5d, 0x140346c5d\ncmovz   rax, r9                                                        ; +0x60, 0x140346c60\ncmp     rax, r9                                                        ; +0x64, 0x140346c64\nlea     ecx, [rdx-1]                                                   ; +0x67, 0x140346c67\ncmovz   ecx, edx                                                       ; +0x6a, 0x140346c6a\nmov     eax, ecx                                                       ; +0x6d, 0x140346c6d\nretn                                                                   ; +0x6f, 0x140346c6f", "xrefs": ["CustomSongWidget::updateSongInfo @ 0x1400cb6b4", "CustomSongWidget::updateSongInfo @ 0x1400cb9c7"], "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"}