// // GJAccountSettingsLayer::onGroupFriends from 0xa1d198 to 0xa1d28c (244 bytes) // // 7 xrefs: // > GJAccountSettingsLayer::init @ 0xa38a74 // > @ 0xb7ad8 // > GJAccountSettingsLayer::init @ 0xa38360 // > GJAccountSettingsLayer::init @ 0xa383f8 // > GJAccountSettingsLayer::init @ 0xa38494 // > GJAccountSettingsLayer::init @ 0xa38bf4 // > @ 0x15454e8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:59:38 +0000 // __int64 __fastcall GJAccountSettingsLayer::onGroupFriends(GJAccountSettingsLayer *this, cocos2d::CCObject *a2) { int v3; // w0 int v4; // w1 int v5; // w22 __int64 result; // x0 unsigned int *v7; // x1 CCMenuItemToggler **v8; // x20 char *v9; // x21 CCMenuItemToggler *v10; // x19 __int64 v11; // x0 unsigned __int8 v12; // w1 if ( a2 ) { v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2); if ( v3 == 3 ) { v3 = 1; *((_DWORD *)this + 170) = 1; v4 = 1; } else { *((_DWORD *)this + 170) = 2; if ( v3 == 2 ) { v4 = 2; } else { v3 = 2; v4 = 1; } } *((_DWORD *)this + 169) = v4; if ( v3 != 1 ) goto LABEL_6; LABEL_14: v5 = 3; goto LABEL_7; } if ( *((_DWORD *)this + 170) == 1 ) goto LABEL_14; LABEL_6: v5 = *((_DWORD *)this + 169); LABEL_7: result = *((_QWORD *)this + 93); if ( result ) { v7 = *(unsigned int **)(result + 56); result = *v7; if ( (_DWORD)result ) { v8 = *((CCMenuItemToggler ***)v7 + 2); result = 8LL * (unsigned int)result - 8; v9 = (char *)v8 + result; if ( v8 <= (CCMenuItemToggler **)((char *)v8 + result) ) { do { v10 = *v8; if ( !*v8 ) break; v11 = (__int64)*v8++; v12 = v5 != (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v10 + 64LL))(v11); result = CCMenuItemToggler::toggle(v10, v12); } while ( v9 >= (char *)v8 ); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source