// // GJAccountSettingsLayer::updateScoreValues from 0x8dd58c to 0x8de1a0 (3092 bytes) // // 2 xrefs: // > UpdateAccountSettingsPopup::onClose @ 0x8de1e4 // > @ 0x7a610 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void GJAccountSettingsLayer::updateScoreValues(GJAccountSettingsLayer *a1) { GameLevelManager *v2; // x0 GJUserScore *v3; // x0 GJUserScore *v4; // x23 std::_rb_tree_base *p_m_header; // x20 std::_rb_tree_base *v6; // x25 std::_rb_tree_base *m_parent; // x0 void *v8; // x0 std::_rb_tree_base *v9; // x0 std::_rb_tree_base *v10; // x25 __int64 v11; // x25 __int64 v12; // x0 __int64 v13; // x1 _BOOL8 v14; // x0 void *v15; // x0 std::_rb_tree_base *v16; // x0 std::_rb_tree_base *v17; // x25 __int64 v18; // x25 __int64 v19; // x0 __int64 v20; // x1 _BOOL8 v21; // x0 void *v22; // x0 std::_rb_tree_base *v23; // x0 std::_rb_tree_base *v24; // x25 __int64 v25; // x25 __int64 v26; // x0 __int64 v27; // x1 _BOOL8 v28; // x0 void *v29; // x0 std::_rb_tree_base *v30; // x0 std::_rb_tree_base *v31; // x25 __int64 v32; // x25 __int64 v33; // x0 __int64 v34; // x1 _BOOL8 v35; // x0 void *v36; // x0 std::_rb_tree_base *v37; // x0 std::_rb_tree_base *v38; // x25 __int64 v39; // x25 __int64 v40; // x0 __int64 v41; // x1 _BOOL8 v42; // x0 void *v43; // x0 std::_rb_tree_base *v44; // x0 std::_rb_tree_base *v45; // x25 __int64 v46; // x25 __int64 v47; // x0 __int64 v48; // x1 _BOOL8 v49; // x0 void *v50; // x19 __int64 v51; // x25 __int64 insert_hint_unique_pos; // x0 __int64 v53; // x1 _BOOL8 v54; // x0 unsigned int *v55; // x0 int v56; // w1 unsigned int *v57; // x1 int v58; // w2 unsigned int *v59; // x1 int v60; // w2 unsigned int *v61; // x1 int v62; // w2 unsigned int *v63; // x1 int v64; // w2 unsigned int *v65; // x1 int v66; // w2 unsigned int *v67; // x1 int v68; // w2 __int64 v69; // x2 __int64 v70; // x2 __int64 v71; // x2 __int64 v72; // x2 __int64 v73; // x2 __int64 v74; // x2 __int64 v75; // x2 unsigned int *v76; // x3 int v77; // w1 unsigned int *v78; // x3 int v79; // w1 unsigned int *v80; // x3 int v81; // w1 unsigned int *v82; // x3 int v83; // w1 unsigned int *v84; // x3 int v85; // w1 unsigned int *v86; // x3 int v87; // w1 unsigned int *v88; // x3 int v89; // w1 __int64 v90; // [xsp+68h] [xbp+68h] __int64 v91; // [xsp+68h] [xbp+68h] __int64 v92; // [xsp+68h] [xbp+68h] __int64 v93; // [xsp+68h] [xbp+68h] __int64 v94; // [xsp+68h] [xbp+68h] __int64 v95; // [xsp+68h] [xbp+68h] __int64 v96; // [xsp+68h] [xbp+68h] __int64 v97; // [xsp+80h] [xbp+80h] BYREF v2 = GameLevelManager::sharedState(); v3 = GameLevelManager::userInfoForAccountID(v2, a1->m_accountID); v4 = v3; if ( v3 ) { p_m_header = &a1->m_links.m_header; v3->m_messageState = a1->m_messageStatus; v6 = &a1->m_links.m_header; m_parent = a1->m_links.m_header.m_parent; v4->m_friendStatus = a1->m_friendStatus; v4->m_commentHistoryStatus = a1->m_commentHistoryStatus; if ( !m_parent ) goto LABEL_77; do { while ( (*(_DWORD *)&m_parent[1].m_isblack & 0x80000000) == 0 ) { v6 = m_parent; m_parent = m_parent->m_left; if ( !m_parent ) goto LABEL_5; } m_parent = m_parent->m_right; } while ( m_parent ); LABEL_5: if ( p_m_header == v6 || *(int *)&v6[1].m_isblack > 0 ) { LABEL_77: v96 = (__int64)v6; v51 = operator new(0x30u); *(_DWORD *)(v51 + 32) = 0; *(_QWORD *)(v51 + 40) = &byte_124B6C8; insert_hint_unique_pos = std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos( &a1->m_links.compare.pad, v96, (int *)(v51 + 32)); if ( v53 ) { v54 = insert_hint_unique_pos || p_m_header == (std::_rb_tree_base *)v53 || *(_DWORD *)(v51 + 32) < *(_DWORD *)(v53 + 32); sub_CFAD74(v54, v51, v53, &a1->m_links.m_header); ++a1->m_links.m_nodecount; } else { v69 = *(_QWORD *)(v51 + 40); if ( (__int64 *)(v69 - 24) != &qword_124B6B0 ) { v76 = (unsigned int *)(v69 - 8); if ( &pthread_create ) { do v77 = __ldaxr(v76); while ( __stlxr(v77 - 1, v76) ); } else { v77 = *(_DWORD *)(v69 - 8); *(_DWORD *)(v69 - 8) = v77 - 1; } if ( v77 <= 0 ) operator delete((void *)(v69 - 24)); } operator delete((void *)v51); } } sub_D18D28(&v97); sub_D18EA8(&v4->m_youtubeURL, &v97); v8 = (void *)(v97 - 24); if ( (__int64 *)(v97 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v57 = (unsigned int *)(v97 - 8); do v58 = __ldaxr(v57); while ( __stlxr(v58 - 1, v57) ); } else { v58 = *(_DWORD *)(v97 - 8); *(_DWORD *)(v97 - 8) = v58 - 1; } if ( v58 <= 0 ) operator delete(v8); } v9 = a1->m_links.m_header.m_parent; v10 = &a1->m_links.m_header; if ( !v9 ) goto LABEL_13; do { while ( *(int *)&v9[1].m_isblack > 0 ) { v10 = v9; v9 = v9->m_left; if ( !v9 ) goto LABEL_11; } v9 = v9->m_right; } while ( v9 ); LABEL_11: if ( p_m_header == v10 || *(int *)&v10[1].m_isblack > 1 ) { LABEL_13: v90 = (__int64)v10; v11 = operator new(0x30u); *(_DWORD *)(v11 + 32) = 1; *(_QWORD *)(v11 + 40) = &byte_124B6C8; v12 = std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos( &a1->m_links.compare.pad, v90, (int *)(v11 + 32)); if ( v13 ) { v14 = v12 || p_m_header == (std::_rb_tree_base *)v13 || *(_DWORD *)(v11 + 32) < *(_DWORD *)(v13 + 32); sub_CFAD74(v14, v11, v13, &a1->m_links.m_header); ++a1->m_links.m_nodecount; } else { v71 = *(_QWORD *)(v11 + 40); if ( (__int64 *)(v71 - 24) != &qword_124B6B0 ) { v80 = (unsigned int *)(v71 - 8); if ( &pthread_create ) { do v81 = __ldaxr(v80); while ( __stlxr(v81 - 1, v80) ); } else { v81 = *(_DWORD *)(v71 - 8); *(_DWORD *)(v71 - 8) = v81 - 1; } if ( v81 <= 0 ) operator delete((void *)(v71 - 24)); } operator delete((void *)v11); } } sub_D18D28(&v97); sub_D18EA8(&v4->m_twitterURL, &v97); v15 = (void *)(v97 - 24); if ( (__int64 *)(v97 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v61 = (unsigned int *)(v97 - 8); do v62 = __ldaxr(v61); while ( __stlxr(v62 - 1, v61) ); } else { v62 = *(_DWORD *)(v97 - 8); *(_DWORD *)(v97 - 8) = v62 - 1; } if ( v62 <= 0 ) operator delete(v15); } v16 = a1->m_links.m_header.m_parent; v17 = &a1->m_links.m_header; if ( !v16 ) goto LABEL_24; do { while ( *(int *)&v16[1].m_isblack > 1 ) { v17 = v16; v16 = v16->m_left; if ( !v16 ) goto LABEL_22; } v16 = v16->m_right; } while ( v16 ); LABEL_22: if ( p_m_header == v17 || *(int *)&v17[1].m_isblack > 2 ) { LABEL_24: v91 = (__int64)v17; v18 = operator new(0x30u); *(_DWORD *)(v18 + 32) = 2; *(_QWORD *)(v18 + 40) = &byte_124B6C8; v19 = std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos( &a1->m_links.compare.pad, v91, (int *)(v18 + 32)); if ( v20 ) { v21 = v19 || p_m_header == (std::_rb_tree_base *)v20 || *(_DWORD *)(v18 + 32) < *(_DWORD *)(v20 + 32); sub_CFAD74(v21, v18, v20, &a1->m_links.m_header); ++a1->m_links.m_nodecount; } else { v74 = *(_QWORD *)(v18 + 40); if ( (__int64 *)(v74 - 24) != &qword_124B6B0 ) { v88 = (unsigned int *)(v74 - 8); if ( &pthread_create ) { do v89 = __ldaxr(v88); while ( __stlxr(v89 - 1, v88) ); } else { v89 = *(_DWORD *)(v74 - 8); *(_DWORD *)(v74 - 8) = v89 - 1; } if ( v89 <= 0 ) operator delete((void *)(v74 - 24)); } operator delete((void *)v18); } } sub_D18D28(&v97); sub_D18EA8(&v4->m_twitchURL, &v97); v22 = (void *)(v97 - 24); if ( (__int64 *)(v97 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v59 = (unsigned int *)(v97 - 8); do v60 = __ldaxr(v59); while ( __stlxr(v60 - 1, v59) ); } else { v60 = *(_DWORD *)(v97 - 8); *(_DWORD *)(v97 - 8) = v60 - 1; } if ( v60 <= 0 ) operator delete(v22); } v23 = a1->m_links.m_header.m_parent; v24 = &a1->m_links.m_header; if ( !v23 ) goto LABEL_35; do { while ( *(int *)&v23[1].m_isblack > 2 ) { v24 = v23; v23 = v23->m_left; if ( !v23 ) goto LABEL_33; } v23 = v23->m_right; } while ( v23 ); LABEL_33: if ( p_m_header == v24 || *(int *)&v24[1].m_isblack > 3 ) { LABEL_35: v92 = (__int64)v24; v25 = operator new(0x30u); *(_DWORD *)(v25 + 32) = 3; *(_QWORD *)(v25 + 40) = &byte_124B6C8; v26 = std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos( &a1->m_links.compare.pad, v92, (int *)(v25 + 32)); if ( v27 ) { v28 = v26 || p_m_header == (std::_rb_tree_base *)v27 || *(_DWORD *)(v25 + 32) < *(_DWORD *)(v27 + 32); sub_CFAD74(v28, v25, v27, &a1->m_links.m_header); ++a1->m_links.m_nodecount; } else { v72 = *(_QWORD *)(v25 + 40); if ( (__int64 *)(v72 - 24) != &qword_124B6B0 ) { v82 = (unsigned int *)(v72 - 8); if ( &pthread_create ) { do v83 = __ldaxr(v82); while ( __stlxr(v83 - 1, v82) ); } else { v83 = *(_DWORD *)(v72 - 8); *(_DWORD *)(v72 - 8) = v83 - 1; } if ( v83 <= 0 ) operator delete((void *)(v72 - 24)); } operator delete((void *)v25); } } sub_D18D28(&v97); sub_D18EA8(&v4->m_instagramURL, &v97); v29 = (void *)(v97 - 24); if ( (__int64 *)(v97 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v63 = (unsigned int *)(v97 - 8); do v64 = __ldaxr(v63); while ( __stlxr(v64 - 1, v63) ); } else { v64 = *(_DWORD *)(v97 - 8); *(_DWORD *)(v97 - 8) = v64 - 1; } if ( v64 <= 0 ) operator delete(v29); } v30 = a1->m_links.m_header.m_parent; v31 = &a1->m_links.m_header; if ( !v30 ) goto LABEL_46; do { while ( *(int *)&v30[1].m_isblack > 3 ) { v31 = v30; v30 = v30->m_left; if ( !v30 ) goto LABEL_44; } v30 = v30->m_right; } while ( v30 ); LABEL_44: if ( p_m_header == v31 || *(int *)&v31[1].m_isblack > 4 ) { LABEL_46: v93 = (__int64)v31; v32 = operator new(0x30u); *(_DWORD *)(v32 + 32) = 4; *(_QWORD *)(v32 + 40) = &byte_124B6C8; v33 = std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos( &a1->m_links.compare.pad, v93, (int *)(v32 + 32)); if ( v34 ) { v35 = v33 || p_m_header == (std::_rb_tree_base *)v34 || *(_DWORD *)(v32 + 32) < *(_DWORD *)(v34 + 32); sub_CFAD74(v35, v32, v34, &a1->m_links.m_header); ++a1->m_links.m_nodecount; } else { v73 = *(_QWORD *)(v32 + 40); if ( (__int64 *)(v73 - 24) != &qword_124B6B0 ) { v86 = (unsigned int *)(v73 - 8); if ( &pthread_create ) { do v87 = __ldaxr(v86); while ( __stlxr(v87 - 1, v86) ); } else { v87 = *(_DWORD *)(v73 - 8); *(_DWORD *)(v73 - 8) = v87 - 1; } if ( v87 <= 0 ) operator delete((void *)(v73 - 24)); } operator delete((void *)v32); } } sub_D18D28(&v97); sub_D18EA8(&v4->m_tiktokURL, &v97); v36 = (void *)(v97 - 24); if ( (__int64 *)(v97 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v65 = (unsigned int *)(v97 - 8); do v66 = __ldaxr(v65); while ( __stlxr(v66 - 1, v65) ); } else { v66 = *(_DWORD *)(v97 - 8); *(_DWORD *)(v97 - 8) = v66 - 1; } if ( v66 <= 0 ) operator delete(v36); } v37 = a1->m_links.m_header.m_parent; v38 = &a1->m_links.m_header; if ( !v37 ) goto LABEL_57; do { while ( *(int *)&v37[1].m_isblack > 4 ) { v38 = v37; v37 = v37->m_left; if ( !v37 ) goto LABEL_55; } v37 = v37->m_right; } while ( v37 ); LABEL_55: if ( p_m_header == v38 || *(int *)&v38[1].m_isblack > 5 ) { LABEL_57: v94 = (__int64)v38; v39 = operator new(0x30u); *(_DWORD *)(v39 + 32) = 5; *(_QWORD *)(v39 + 40) = &byte_124B6C8; v40 = std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos( &a1->m_links.compare.pad, v94, (int *)(v39 + 32)); if ( v41 ) { v42 = v40 || p_m_header == (std::_rb_tree_base *)v41 || *(_DWORD *)(v39 + 32) < *(_DWORD *)(v41 + 32); sub_CFAD74(v42, v39, v41, &a1->m_links.m_header); ++a1->m_links.m_nodecount; } else { v70 = *(_QWORD *)(v39 + 40); if ( (__int64 *)(v70 - 24) != &qword_124B6B0 ) { v78 = (unsigned int *)(v70 - 8); if ( &pthread_create ) { do v79 = __ldaxr(v78); while ( __stlxr(v79 - 1, v78) ); } else { v79 = *(_DWORD *)(v70 - 8); *(_DWORD *)(v70 - 8) = v79 - 1; } if ( v79 <= 0 ) operator delete((void *)(v70 - 24)); } operator delete((void *)v39); } } sub_D18D28(&v97); sub_D18EA8(&v4->m_discordUsername, &v97); v43 = (void *)(v97 - 24); if ( (__int64 *)(v97 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v67 = (unsigned int *)(v97 - 8); do v68 = __ldaxr(v67); while ( __stlxr(v68 - 1, v67) ); } else { v68 = *(_DWORD *)(v97 - 8); *(_DWORD *)(v97 - 8) = v68 - 1; } if ( v68 <= 0 ) operator delete(v43); } v44 = a1->m_links.m_header.m_parent; v45 = &a1->m_links.m_header; if ( !v44 ) goto LABEL_68; do { while ( *(int *)&v44[1].m_isblack > 5 ) { v45 = v44; v44 = v44->m_left; if ( !v44 ) goto LABEL_66; } v44 = v44->m_right; } while ( v44 ); LABEL_66: if ( p_m_header == v45 || *(int *)&v45[1].m_isblack > 6 ) { LABEL_68: v95 = (__int64)v45; v46 = operator new(0x30u); *(_DWORD *)(v46 + 32) = 6; *(_QWORD *)(v46 + 40) = &byte_124B6C8; v47 = std::_Rb_tree,std::_Select1st>,std::less,std::allocator>>::_M_get_insert_hint_unique_pos( &a1->m_links.compare.pad, v95, (int *)(v46 + 32)); if ( v48 ) { v49 = v47 || p_m_header == (std::_rb_tree_base *)v48 || *(_DWORD *)(v46 + 32) < *(_DWORD *)(v48 + 32); sub_CFAD74(v49, v46, v48, p_m_header); ++a1->m_links.m_nodecount; } else { v75 = *(_QWORD *)(v46 + 40); if ( (__int64 *)(v75 - 24) != &qword_124B6B0 ) { v84 = (unsigned int *)(v75 - 8); if ( &pthread_create ) { do v85 = __ldaxr(v84); while ( __stlxr(v85 - 1, v84) ); } else { v85 = *(_DWORD *)(v75 - 8); *(_DWORD *)(v75 - 8) = v85 - 1; } if ( v85 <= 0 ) operator delete((void *)(v75 - 24)); } operator delete((void *)v46); } } sub_D18D28(&v97); sub_D18EA8(&v4->m_customString, &v97); v50 = (void *)(v97 - 24); if ( (__int64 *)(v97 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v55 = (unsigned int *)(v97 - 8); do v56 = __ldaxr(v55); while ( __stlxr(v56 - 1, v55) ); } else { v56 = *(_DWORD *)(v97 - 8); *(_DWORD *)(v97 - 8) = v56 - 1; } if ( v56 <= 0 ) operator delete(v50); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source