{"type": "func", "start": 5371411856, "end": 5371412003, "name": "GJAccountSettingsLayer::onFriendRequests", "pseudocode": "// \n// GJAccountSettingsLayer::onFriendRequests from 0x140293d90 to 0x140293e23 (147 bytes)\n// \n// 5 xrefs:\n// > GJAccountSettingsLayer::init @ 0x140292c03\n// > GJAccountSettingsLayer::init @ 0x140292ca2\n// > <???> @ 0x14068907c\n// > <???> @ 0x1406890d4\n// > <???> @ 0x1406d1a60\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\nvoid GJAccountSettingsLayer::onFriendRequests(GJAccountSettingsLayer *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCArray *m_friendRequestSettings; // rax\n  cocos2d::ccArray *data; // rdi\n  __int64 num; // rax\n  CCMenuItemToggler **arr; // rdi\n  CCMenuItemToggler **i; // rbp\n  CCMenuItemToggler *v8; // rbx\n  int v9; // eax\n\n  if ( a2 )\n    a1->m_friendStatus = a2->getTag(a2);\n  m_friendRequestSettings = a1->m_friendRequestSettings;\n  if ( m_friendRequestSettings )\n  {\n    data = m_friendRequestSettings->data;\n    num = data->num;\n    if ( (_DWORD)num )\n    {\n      arr = (CCMenuItemToggler **)data->arr;\n      for ( i = &arr[num - 1]; arr <= i; ++arr )\n      {\n        v8 = *arr;\n        if ( !*arr )\n          break;\n        v9 = v8->getTag(*arr);\n        CCMenuItemToggler::toggle(v8, v9 != a1->m_friendStatus);\n      }\n    }\n  }\n}", "assembly": "; \n; GJAccountSettingsLayer::onFriendRequests from 0x140293d90 to 0x140293e23 (147 bytes)\n; \n; 5 xrefs:\n; > GJAccountSettingsLayer::init @ 0x140292c03\n; > GJAccountSettingsLayer::init @ 0x140292ca2\n; > <???> @ 0x14068907c\n; > <???> @ 0x1406890d4\n; > <???> @ 0x1406d1a60\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    rsi                                                            ; +0x0, 0x140293d90\nsub     rsp, 20h                                                       ; +0x2, 0x140293d92\nmov     rsi, rcx                                                       ; +0x6, 0x140293d96\ntest    rdx, rdx                                                       ; +0x9, 0x140293d99\njz      short loc_140293DAD                                            ; +0xc, 0x140293d9c\nmov     rax, [rdx]                                                     ; +0xe, 0x140293d9e\nmov     rcx, rdx                                                       ; +0x11, 0x140293da1\ncall    qword ptr [rax+38h]                                            ; +0x14, 0x140293da4\nmov     [rsi+288h], eax                                                ; +0x17, 0x140293da7\nmov     rax, [rsi+2B0h]                                                ; +0x1d, 0x140293dad\ntest    rax, rax                                                       ; +0x24, 0x140293db4\njz      short loc_140293E1D                                            ; +0x27, 0x140293db7\nmov     [rsp+28h+arg_10], rdi                                          ; +0x29, 0x140293db9\nmov     rdi, [rax+38h]                                                 ; +0x2e, 0x140293dbe\nmov     eax, [rdi]                                                     ; +0x32, 0x140293dc2\ntest    eax, eax                                                       ; +0x34, 0x140293dc4\njz      short loc_140293E18                                            ; +0x36, 0x140293dc6\nmov     rdi, [rdi+10h]                                                 ; +0x38, 0x140293dc8\nmov     [rsp+28h+arg_8], rbp                                           ; +0x3c, 0x140293dcc\nlea     rbp, [rax-1]                                                   ; +0x41, 0x140293dd1\nlea     rbp, [rdi+rbp*8]                                               ; +0x45, 0x140293dd5\ncmp     rdi, rbp                                                       ; +0x49, 0x140293dd9\nja      short loc_140293E13                                            ; +0x4c, 0x140293ddc\nmov     [rsp+28h+arg_0], rbx                                           ; +0x4e, 0x140293dde\nmov     rbx, [rdi]                                                     ; +0x53, 0x140293de3\ntest    rbx, rbx                                                       ; +0x56, 0x140293de6\njz      short loc_140293E0E                                            ; +0x59, 0x140293de9\nmov     rax, [rbx]                                                     ; +0x5b, 0x140293deb\nmov     rcx, rbx                                                       ; +0x5e, 0x140293dee\ncall    qword ptr [rax+38h]                                            ; +0x61, 0x140293df1\ncmp     eax, [rsi+288h]                                                ; +0x64, 0x140293df4\nmov     rcx, rbx                                                       ; +0x6a, 0x140293dfa\nsetnz   dl                                                             ; +0x6d, 0x140293dfd\ncall    CCMenuItemToggler__toggle                                      ; +0x70, 0x140293e00\nadd     rdi, 8                                                         ; +0x75, 0x140293e05\ncmp     rdi, rbp                                                       ; +0x79, 0x140293e09\njbe     short loc_140293DE3                                            ; +0x7c, 0x140293e0c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7e, 0x140293e0e\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x83, 0x140293e13\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x88, 0x140293e18\nadd     rsp, 20h                                                       ; +0x8d, 0x140293e1d\npop     rsi                                                            ; +0x91, 0x140293e21\nretn                                                                   ; +0x92, 0x140293e22", "xrefs": ["GJAccountSettingsLayer::init @ 0x140292c03", "GJAccountSettingsLayer::init @ 0x140292ca2", "<???> @ 0x14068907c", "<???> @ 0x1406890d4", "<???> @ 0x1406d1a60"], "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"}