{"type": "func", "start": 4297724896, "end": 4297725031, "name": "GJAccountSettingsLayer::onMessageSetting", "pseudocode": "// \n// GJAccountSettingsLayer::onMessageSetting from 0x1002a13e0 to 0x1002a1467 (135 bytes)\n// \n// 3 xrefs:\n// > GJAccountSettingsLayer::init @ 0x10029fd90\n// > GJAccountSettingsLayer::init @ 0x10029fe4e\n// > GJAccountSettingsLayer::init @ 0x10029ff00\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 __fastcall GJAccountSettingsLayer::onMessageSetting(GJAccountSettingsLayer *a1, cocos2d::CCObject *a2)\n{\n  cocos2d::CCArray *m_messageSettings; // rax\n  cocos2d::ccArray *data; // rax\n  CCMenuItemToggler **arr; // r15\n  unsigned __int64 v5; // r12\n  CCMenuItemToggler *v6; // r14\n  int v7; // eax\n\n  if ( a2 )\n    a1->m_messageStatus = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);\n  m_messageSettings = a1->m_messageSettings;\n  if ( m_messageSettings )\n  {\n    data = m_messageSettings->data;\n    if ( data->num )\n    {\n      arr = (CCMenuItemToggler **)data->arr;\n      v5 = (unsigned __int64)&arr[data->num - 1];\n      do\n      {\n        v6 = *arr;\n        if ( !*arr )\n          break;\n        v7 = ((__int64 (__fastcall *)(CCMenuItemToggler *))v6->getTag)(*arr);\n        CCMenuItemToggler::toggle(v6, v7 != a1->m_messageStatus);\n        ++arr;\n      }\n      while ( (unsigned __int64)arr <= v5 );\n    }\n  }\n}", "assembly": "; \n; GJAccountSettingsLayer::onMessageSetting from 0x1002a13e0 to 0x1002a1467 (135 bytes)\n; \n; 3 xrefs:\n; > GJAccountSettingsLayer::init @ 0x10029fd90\n; > GJAccountSettingsLayer::init @ 0x10029fe4e\n; > GJAccountSettingsLayer::init @ 0x10029ff00\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    rbp                                                            ; +0x0, 0x1002a13e0\nmov     rbp, rsp                                                       ; +0x1, 0x1002a13e1\npush    r15                                                            ; +0x4, 0x1002a13e4\npush    r14                                                            ; +0x6, 0x1002a13e6\npush    r12                                                            ; +0x8, 0x1002a13e8\npush    rbx                                                            ; +0xa, 0x1002a13ea\nmov     rbx, rdi                                                       ; +0xb, 0x1002a13eb\ntest    rsi, rsi                                                       ; +0xe, 0x1002a13ee\njz      short loc_1002A1402                                            ; +0x11, 0x1002a13f1\nmov     rax, [rsi]                                                     ; +0x13, 0x1002a13f3\nmov     rdi, rsi                                                       ; +0x16, 0x1002a13f6\ncall    qword ptr [rax+40h]                                            ; +0x19, 0x1002a13f9\nmov     [rbx+284h], eax                                                ; +0x1c, 0x1002a13fc\nmov     rax, [rbx+2B0h]                                                ; +0x22, 0x1002a1402\ntest    rax, rax                                                       ; +0x29, 0x1002a1409\njz      short loc_1002A145E                                            ; +0x2c, 0x1002a140c\nmov     rax, [rax+38h]                                                 ; +0x2e, 0x1002a140e\nmov     ecx, [rax]                                                     ; +0x32, 0x1002a1412\ntest    rcx, rcx                                                       ; +0x34, 0x1002a1414\njz      short loc_1002A145E                                            ; +0x37, 0x1002a1417\nmov     r15, [rax+10h]                                                 ; +0x39, 0x1002a1419\nlea     r12, [r15+rcx*8]                                               ; +0x3d, 0x1002a141d\nadd     r12, 0FFFFFFFFFFFFFFF8h                                        ; +0x41, 0x1002a1421\nnop     word ptr [rax+rax+00000000h]                                   ; +0x45, 0x1002a1425\nmov     r14, [r15]                                                     ; +0x50, 0x1002a1430\ntest    r14, r14                                                       ; +0x53, 0x1002a1433\njz      short loc_1002A145E                                            ; +0x56, 0x1002a1436\nmov     rax, [r14]                                                     ; +0x58, 0x1002a1438\nmov     rdi, r14                                                       ; +0x5b, 0x1002a143b\ncall    qword ptr [rax+40h]                                            ; +0x5e, 0x1002a143e\nxor     esi, esi                                                       ; +0x61, 0x1002a1441\ncmp     eax, [rbx+284h]                                                ; +0x63, 0x1002a1443\nsetnz   sil                                                            ; +0x69, 0x1002a1449\nmov     rdi, r14                                                       ; +0x6d, 0x1002a144d\ncall    CCMenuItemToggler__toggle                                      ; +0x70, 0x1002a1450\nadd     r15, 8                                                         ; +0x75, 0x1002a1455\ncmp     r15, r12                                                       ; +0x79, 0x1002a1459\njbe     short loc_1002A1430                                            ; +0x7c, 0x1002a145c\npop     rbx                                                            ; +0x7e, 0x1002a145e\npop     r12                                                            ; +0x7f, 0x1002a145f\npop     r14                                                            ; +0x81, 0x1002a1461\npop     r15                                                            ; +0x83, 0x1002a1463\npop     rbp                                                            ; +0x85, 0x1002a1465\nretn                                                                   ; +0x86, 0x1002a1466", "xrefs": ["GJAccountSettingsLayer::init @ 0x10029fd90", "GJAccountSettingsLayer::init @ 0x10029fe4e", "GJAccountSettingsLayer::init @ 0x10029ff00"], "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"}