{"type": "func", "start": 4297943452, "end": 4297943600, "name": "GJAccountSettingsLayer::onMessageSetting", "pseudocode": "// \n// GJAccountSettingsLayer::onMessageSetting from 0x1002d699c to 0x1002d6a30 (148 bytes)\n// \n// 4 xrefs:\n// > GJAccountSettingsLayer::init @ 0x1002d6604\n// > GJAccountSettingsLayer::init @ 0x1002d58e0\n// > GJAccountSettingsLayer::init @ 0x1002d5974\n// > GJAccountSettingsLayer::init @ 0x1002d5a0c\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; // x8\n  cocos2d::ccArray *data; // x9\n  __int64 num; // x8\n  CCMenuItemToggler **arr; // x21\n  unsigned __int64 v7; // x22\n  CCMenuItemToggler *v8; // x20\n  bool v9; // w1\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    num = data->num;\n    if ( (_DWORD)num )\n    {\n      arr = (CCMenuItemToggler **)data->arr;\n      v7 = (unsigned __int64)&arr[num - 1];\n      do\n      {\n        v8 = *arr;\n        if ( !*arr )\n          break;\n        v9 = ((unsigned int (__fastcall *)(CCMenuItemToggler *))v8->getTag)(*arr) != a1->m_messageStatus;\n        CCMenuItemToggler::toggle(v8, v9);\n        ++arr;\n      }\n      while ( (unsigned __int64)arr <= v7 );\n    }\n  }\n}", "assembly": "; \n; GJAccountSettingsLayer::onMessageSetting from 0x1002d699c to 0x1002d6a30 (148 bytes)\n; \n; 4 xrefs:\n; > GJAccountSettingsLayer::init @ 0x1002d6604\n; > GJAccountSettingsLayer::init @ 0x1002d58e0\n; > GJAccountSettingsLayer::init @ 0x1002d5974\n; > GJAccountSettingsLayer::init @ 0x1002d5a0c\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1002d699c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1002d69a0\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1002d69a4\nADD             X29, SP, #0x20                                         ; +0xc, 0x1002d69a8\nMOV             X19, X0                                                ; +0x10, 0x1002d69ac\nCBZ             X1, loc_1002D69C8                                      ; +0x14, 0x1002d69b0\nLDR             X8, [X1]                                               ; +0x18, 0x1002d69b4\nLDR             X8, [X8,#0x40]                                         ; +0x1c, 0x1002d69b8\nMOV             X0, X1                                                 ; +0x20, 0x1002d69bc\nBLR             X8                                                     ; +0x24, 0x1002d69c0\nSTR             W0, [X19,#0x284]                                       ; +0x28, 0x1002d69c4\nLDR             X8, [X19,#0x2B0]                                       ; +0x2c, 0x1002d69c8\nCBZ             X8, loc_1002D6A20                                      ; +0x30, 0x1002d69cc\nLDR             X9, [X8,#0x38]                                         ; +0x34, 0x1002d69d0\nLDR             W8, [X9]                                               ; +0x38, 0x1002d69d4\nCBZ             W8, loc_1002D6A20                                      ; +0x3c, 0x1002d69d8\nLDR             X21, [X9,#0x10]                                        ; +0x40, 0x1002d69dc\nADD             X8, X21, X8,LSL#3                                      ; +0x44, 0x1002d69e0\nSUB             X22, X8, #8                                            ; +0x48, 0x1002d69e4\nLDR             X20, [X21]                                             ; +0x4c, 0x1002d69e8\nCBZ             X20, loc_1002D6A20                                     ; +0x50, 0x1002d69ec\nLDR             X8, [X20]                                              ; +0x54, 0x1002d69f0\nLDR             X8, [X8,#0x40]                                         ; +0x58, 0x1002d69f4\nMOV             X0, X20                                                ; +0x5c, 0x1002d69f8\nBLR             X8                                                     ; +0x60, 0x1002d69fc\nLDR             W8, [X19,#0x284]                                       ; +0x64, 0x1002d6a00\nCMP             W0, W8                                                 ; +0x68, 0x1002d6a04\nCSET            W1, NE                                                 ; +0x6c, 0x1002d6a08\nMOV             X0, X20                                                ; +0x70, 0x1002d6a0c\nBL              CCMenuItemToggler__toggle                              ; +0x74, 0x1002d6a10\nADD             X21, X21, #8                                           ; +0x78, 0x1002d6a14\nCMP             X21, X22                                               ; +0x7c, 0x1002d6a18\nB.LS            loc_1002D69E8                                          ; +0x80, 0x1002d6a1c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x84, 0x1002d6a20\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x88, 0x1002d6a24\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x8c, 0x1002d6a28\nRET                                                                    ; +0x90, 0x1002d6a2c", "xrefs": ["GJAccountSettingsLayer::init @ 0x1002d6604", "GJAccountSettingsLayer::init @ 0x1002d58e0", "GJAccountSettingsLayer::init @ 0x1002d5974", "GJAccountSettingsLayer::init @ 0x1002d5a0c"], "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"}