{"type": "func", "start": 4881188, "end": 4881268, "name": "GJAccountSettingsLayer::onCommentSetting", "pseudocode": "// \n// GJAccountSettingsLayer::onCommentSetting from 0x4a7b24 to 0x4a7b74 (80 bytes)\n// \n// 1 xrefs:\n// > GJAccountSettingsLayer::init @ 0x4b662a\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; // r3\n  cocos2d::ccArray *data; // r2\n  cocos2d::CCObject **arr; // r5\n  cocos2d::CCObject **v6; // r4\n  CCMenuItemToggler *v7; // r6\n  CCMenuItemToggler *v8; // t1\n  int v9; // r1\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    if ( data->num )\n    {\n      arr = data->arr;\n      v6 = &arr[data->num] + 0x3FFFFFFF;\n      while ( arr <= v6 )\n      {\n        v8 = (CCMenuItemToggler *)*arr++;\n        v7 = v8;\n        if ( !v8 )\n          break;\n        v9 = v7->getTag(v7) - a1->m_commentHistoryStatus;\n        CCMenuItemToggler::toggle(v7, v9 != 0);\n      }\n    }\n  }\n}", "assembly": "; \n; GJAccountSettingsLayer::onCommentSetting from 0x4a7b24 to 0x4a7b74 (80 bytes)\n; \n; 1 xrefs:\n; > GJAccountSettingsLayer::init @ 0x4b662a\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            {R3-R7,LR}                                             ; +0x0, 0x4a7b24\nMOV             R7, R0                                                 ; +0x2, 0x4a7b26\nCBZ             R1, loc_4A7B36                                         ; +0x4, 0x4a7b28\nLDR             R3, [R1]                                               ; +0x6, 0x4a7b2a\nMOV             R0, R1                                                 ; +0x8, 0x4a7b2c\nLDR             R3, [R3,#0x20]                                         ; +0xa, 0x4a7b2e\nBLX             R3                                                     ; +0xc, 0x4a7b30\nSTR.W           R0, [R7,#0x200]                                        ; +0xe, 0x4a7b32\nLDR.W           R3, [R7,#0x228]                                        ; +0x12, 0x4a7b36\nCBZ             R3, locret_4A7B72                                      ; +0x16, 0x4a7b3a\nLDR             R2, [R3,#0x34]                                         ; +0x18, 0x4a7b3c\nLDR             R3, [R2]                                               ; +0x1a, 0x4a7b3e\nCBZ             R3, locret_4A7B72                                      ; +0x1c, 0x4a7b40\nADD.W           R3, R3, #0x40000000                                    ; +0x1e, 0x4a7b42\nLDR             R5, [R2,#0xC]                                          ; +0x22, 0x4a7b46\nSUBS            R3, #1                                                 ; +0x24, 0x4a7b48\nADD.W           R4, R5, R3,LSL#2                                       ; +0x26, 0x4a7b4a\nCMP             R5, R4                                                 ; +0x2a, 0x4a7b4e\nBHI             locret_4A7B72                                          ; +0x2c, 0x4a7b50\nLDR.W           R6, [R5],#4                                            ; +0x2e, 0x4a7b52\nCBZ             R6, locret_4A7B72                                      ; +0x32, 0x4a7b56\nLDR             R3, [R6]                                               ; +0x34, 0x4a7b58\nMOV             R0, R6                                                 ; +0x36, 0x4a7b5a\nLDR             R3, [R3,#0x20]                                         ; +0x38, 0x4a7b5c\nBLX             R3                                                     ; +0x3a, 0x4a7b5e\nLDR.W           R1, [R7,#0x200]                                        ; +0x3c, 0x4a7b60\nSUBS            R1, R0, R1                                             ; +0x40, 0x4a7b64\nMOV             R0, R6; this                                           ; +0x42, 0x4a7b66\nIT NE                                                                  ; +0x44, 0x4a7b68\nMOVNE           R1, #1; bool                                           ; +0x46, 0x4a7b6a\nBL              _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x48, 0x4a7b6c\nB               loc_4A7B4E                                             ; +0x4c, 0x4a7b70\nPOP             {R3-R7,PC}                                             ; +0x4e, 0x4a7b72", "xrefs": ["GJAccountSettingsLayer::init @ 0x4b662a"], "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"}