{"type": "func", "start": 5371412016, "end": 5371412163, "name": "GJAccountSettingsLayer::onCommentSetting", "pseudocode": "// \n// GJAccountSettingsLayer::onCommentSetting from 0x140293e30 to 0x140293ec3 (147 bytes)\n// \n// 6 xrefs:\n// > GJAccountSettingsLayer::init @ 0x140292eac\n// > GJAccountSettingsLayer::init @ 0x140292f5f\n// > GJAccountSettingsLayer::init @ 0x140293003\n// > <???> @ 0x1406890e8\n// > <???> @ 0x140689140\n// > <???> @ 0x1406d1ab4\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::onCommentSetting(GJAccountSettingsLayer *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCArray *m_commentSettings; // 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_commentHistoryStatus = a2->getTag(a2);\n  m_commentSettings = a1->m_commentSettings;\n  if ( m_commentSettings )\n  {\n    data = m_commentSettings->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_commentHistoryStatus);\n      }\n    }\n  }\n}", "assembly": "; \n; GJAccountSettingsLayer::onCommentSetting from 0x140293e30 to 0x140293ec3 (147 bytes)\n; \n; 6 xrefs:\n; > GJAccountSettingsLayer::init @ 0x140292eac\n; > GJAccountSettingsLayer::init @ 0x140292f5f\n; > GJAccountSettingsLayer::init @ 0x140293003\n; > <???> @ 0x1406890e8\n; > <???> @ 0x140689140\n; > <???> @ 0x1406d1ab4\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, 0x140293e30\nsub     rsp, 20h                                                       ; +0x2, 0x140293e32\nmov     rsi, rcx                                                       ; +0x6, 0x140293e36\ntest    rdx, rdx                                                       ; +0x9, 0x140293e39\njz      short loc_140293E4D                                            ; +0xc, 0x140293e3c\nmov     rax, [rdx]                                                     ; +0xe, 0x140293e3e\nmov     rcx, rdx                                                       ; +0x11, 0x140293e41\ncall    qword ptr [rax+38h]                                            ; +0x14, 0x140293e44\nmov     [rsi+28Ch], eax                                                ; +0x17, 0x140293e47\nmov     rax, [rsi+2B8h]                                                ; +0x1d, 0x140293e4d\ntest    rax, rax                                                       ; +0x24, 0x140293e54\njz      short loc_140293EBD                                            ; +0x27, 0x140293e57\nmov     [rsp+28h+arg_10], rdi                                          ; +0x29, 0x140293e59\nmov     rdi, [rax+38h]                                                 ; +0x2e, 0x140293e5e\nmov     eax, [rdi]                                                     ; +0x32, 0x140293e62\ntest    eax, eax                                                       ; +0x34, 0x140293e64\njz      short loc_140293EB8                                            ; +0x36, 0x140293e66\nmov     rdi, [rdi+10h]                                                 ; +0x38, 0x140293e68\nmov     [rsp+28h+arg_8], rbp                                           ; +0x3c, 0x140293e6c\nlea     rbp, [rax-1]                                                   ; +0x41, 0x140293e71\nlea     rbp, [rdi+rbp*8]                                               ; +0x45, 0x140293e75\ncmp     rdi, rbp                                                       ; +0x49, 0x140293e79\nja      short loc_140293EB3                                            ; +0x4c, 0x140293e7c\nmov     [rsp+28h+arg_0], rbx                                           ; +0x4e, 0x140293e7e\nmov     rbx, [rdi]                                                     ; +0x53, 0x140293e83\ntest    rbx, rbx                                                       ; +0x56, 0x140293e86\njz      short loc_140293EAE                                            ; +0x59, 0x140293e89\nmov     rax, [rbx]                                                     ; +0x5b, 0x140293e8b\nmov     rcx, rbx                                                       ; +0x5e, 0x140293e8e\ncall    qword ptr [rax+38h]                                            ; +0x61, 0x140293e91\ncmp     eax, [rsi+28Ch]                                                ; +0x64, 0x140293e94\nmov     rcx, rbx                                                       ; +0x6a, 0x140293e9a\nsetnz   dl                                                             ; +0x6d, 0x140293e9d\ncall    CCMenuItemToggler__toggle                                      ; +0x70, 0x140293ea0\nadd     rdi, 8                                                         ; +0x75, 0x140293ea5\ncmp     rdi, rbp                                                       ; +0x79, 0x140293ea9\njbe     short loc_140293E83                                            ; +0x7c, 0x140293eac\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7e, 0x140293eae\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x83, 0x140293eb3\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x88, 0x140293eb8\nadd     rsp, 20h                                                       ; +0x8d, 0x140293ebd\npop     rsi                                                            ; +0x91, 0x140293ec1\nretn                                                                   ; +0x92, 0x140293ec2", "xrefs": ["GJAccountSettingsLayer::init @ 0x140292eac", "GJAccountSettingsLayer::init @ 0x140292f5f", "GJAccountSettingsLayer::init @ 0x140293003", "<???> @ 0x1406890e8", "<???> @ 0x140689140", "<???> @ 0x1406d1ab4"], "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"}