{"type": "func", "start": 4881108, "end": 4881188, "name": "GJAccountSettingsLayer::onFriendRequests", "pseudocode": "// \n// GJAccountSettingsLayer::onFriendRequests from 0x4a7ad4 to 0x4a7b24 (80 bytes)\n// \n// 1 xrefs:\n// > GJAccountSettingsLayer::init @ 0x4b6622\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; // 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_friendStatus = a2->getTag(a2);\n  m_friendRequestSettings = a1->m_friendRequestSettings;\n  if ( m_friendRequestSettings )\n  {\n    data = m_friendRequestSettings->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_friendStatus;\n        CCMenuItemToggler::toggle(v7, v9 != 0);\n      }\n    }\n  }\n}", "assembly": "; \n; GJAccountSettingsLayer::onFriendRequests from 0x4a7ad4 to 0x4a7b24 (80 bytes)\n; \n; 1 xrefs:\n; > GJAccountSettingsLayer::init @ 0x4b6622\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, 0x4a7ad4\nMOV             R7, R0                                                 ; +0x2, 0x4a7ad6\nCBZ             R1, loc_4A7AE6                                         ; +0x4, 0x4a7ad8\nLDR             R3, [R1]                                               ; +0x6, 0x4a7ada\nMOV             R0, R1                                                 ; +0x8, 0x4a7adc\nLDR             R3, [R3,#0x20]                                         ; +0xa, 0x4a7ade\nBLX             R3                                                     ; +0xc, 0x4a7ae0\nSTR.W           R0, [R7,#0x1FC]                                        ; +0xe, 0x4a7ae2\nLDR.W           R3, [R7,#0x224]                                        ; +0x12, 0x4a7ae6\nCBZ             R3, locret_4A7B22                                      ; +0x16, 0x4a7aea\nLDR             R2, [R3,#0x34]                                         ; +0x18, 0x4a7aec\nLDR             R3, [R2]                                               ; +0x1a, 0x4a7aee\nCBZ             R3, locret_4A7B22                                      ; +0x1c, 0x4a7af0\nADD.W           R3, R3, #0x40000000                                    ; +0x1e, 0x4a7af2\nLDR             R5, [R2,#0xC]                                          ; +0x22, 0x4a7af6\nSUBS            R3, #1                                                 ; +0x24, 0x4a7af8\nADD.W           R4, R5, R3,LSL#2                                       ; +0x26, 0x4a7afa\nCMP             R5, R4                                                 ; +0x2a, 0x4a7afe\nBHI             locret_4A7B22                                          ; +0x2c, 0x4a7b00\nLDR.W           R6, [R5],#4                                            ; +0x2e, 0x4a7b02\nCBZ             R6, locret_4A7B22                                      ; +0x32, 0x4a7b06\nLDR             R3, [R6]                                               ; +0x34, 0x4a7b08\nMOV             R0, R6                                                 ; +0x36, 0x4a7b0a\nLDR             R3, [R3,#0x20]                                         ; +0x38, 0x4a7b0c\nBLX             R3                                                     ; +0x3a, 0x4a7b0e\nLDR.W           R1, [R7,#0x1FC]                                        ; +0x3c, 0x4a7b10\nSUBS            R1, R0, R1                                             ; +0x40, 0x4a7b14\nMOV             R0, R6; this                                           ; +0x42, 0x4a7b16\nIT NE                                                                  ; +0x44, 0x4a7b18\nMOVNE           R1, #1; bool                                           ; +0x46, 0x4a7b1a\nBL              _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x48, 0x4a7b1c\nB               loc_4A7AFE                                             ; +0x4c, 0x4a7b20\nPOP             {R3-R7,PC}                                             ; +0x4e, 0x4a7b22", "xrefs": ["GJAccountSettingsLayer::init @ 0x4b6622"], "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"}