{"type": "func", "start": 7835760, "end": 7835944, "name": "EmotePickerPopup::refreshEnabled", "pseudocode": "// \n// EmotePickerPopup::refreshEnabled from 0x779070 to 0x779128 (184 bytes)\n// \n// 3 xrefs:\n// > EmotePickerPopup::textChanged @ 0x779128\n// > EmotePickerPopup::init @ 0x779312\n// > EmotePickerPopup::onPickEmote @ 0x7795e6\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:59:22 +0000\n// \n\nint __fastcall EmotePickerPopup::refreshEnabled(int this, int a2, int a3)\n{\n  int v3; // r4\n  int v4; // r3\n  int v5; // r6\n  int *v6; // r5\n  int v7; // r7\n  unsigned int v8; // r7\n  int v9; // r4\n  int v10; // t1\n  cocos2d::CCArray *v11; // r0\n  int v12; // r0\n  int v13; // r1\n\n  v3 = this;\n  v4 = *(_DWORD *)(this + 728);\n  if ( v4 )\n  {\n    this = EmotePickerPopup::canAddEmote((EmotePickerPopup *)this, a2, a3, v4);\n    v5 = this;\n    if ( this != *(_DWORD *)(v3 + 872) )\n    {\n      *(_DWORD *)(v3 + 872) = this;\n      this = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v3 + 728) + 244))(*(_DWORD *)(v3 + 728));\n      if ( this )\n      {\n        this = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v3 + 728) + 244))(*(_DWORD *)(v3 + 728));\n        if ( **(_DWORD **)(this + 52) )\n        {\n          v6 = *(int **)(*(_DWORD *)((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v3 + 728) + 244))(*(_DWORD *)(v3 + 728))\n                                   + 52)\n                       + 12);\n          v7 = *(_DWORD *)(*(_DWORD *)((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v3 + 728) + 244))(*(_DWORD *)(v3 + 728))\n                                     + 52)\n                         + 12);\n          this = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v3 + 728) + 244))(*(_DWORD *)(v3 + 728));\n          v8 = v7 + 4 * (**(_DWORD **)(this + 52) + 0x3FFFFFFF);\n          while ( (unsigned int)v6 <= v8 )\n          {\n            v10 = *v6++;\n            v9 = v10;\n            if ( !v10 )\n              break;\n            (*(void (__fastcall **)(int, int))(*(_DWORD *)v9 + 528))(v9, v5);\n            v11 = (cocos2d::CCArray *)(*(int (__fastcall **)(int))(*(_DWORD *)v9 + 244))(v9);\n            v12 = cocos2d::CCArray::objectAtIndex(v11, 0);\n            if ( v5 )\n              v13 = 255;\n            else\n              v13 = 90;\n            this = (*(int (__fastcall **)(int, int))(*(_DWORD *)v12 + 456))(v12, v13);\n          }\n        }\n      }\n    }\n  }\n  return this;\n}", "assembly": "; \n; EmotePickerPopup::refreshEnabled from 0x779070 to 0x779128 (184 bytes)\n; \n; 3 xrefs:\n; > EmotePickerPopup::textChanged @ 0x779128\n; > EmotePickerPopup::init @ 0x779312\n; > EmotePickerPopup::onPickEmote @ 0x7795e6\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:59:22 +0000\n; \nPUSH            {R3-R7,LR}                                             ; +0x0, 0x779070\nMOV             R4, R0                                                 ; +0x2, 0x779072\nLDR.W           R3, [R0,#0x2D8]                                        ; +0x4, 0x779074\nCMP             R3, #0                                                 ; +0x8, 0x779078\nBEQ             locret_779126                                          ; +0xa, 0x77907a\nBL              _ZN16EmotePickerPopup11canAddEmoteEv; EmotePickerPopup::canAddEmote(void) ; +0xc, 0x77907c\nLDR.W           R3, [R4,#0x368]                                        ; +0x10, 0x779080\nCMP             R0, R3                                                 ; +0x14, 0x779084\nMOV             R6, R0                                                 ; +0x16, 0x779086\nBEQ             locret_779126                                          ; +0x18, 0x779088\nSTR.W           R0, [R4,#0x368]                                        ; +0x1a, 0x77908a\nLDR.W           R0, [R4,#0x2D8]                                        ; +0x1e, 0x77908e\nLDR             R3, [R0]                                               ; +0x22, 0x779092\nLDR.W           R3, [R3,#0xF4]                                         ; +0x24, 0x779094\nBLX             R3                                                     ; +0x28, 0x779098\nCMP             R0, #0                                                 ; +0x2a, 0x77909a\nBEQ             locret_779126                                          ; +0x2c, 0x77909c\nLDR.W           R0, [R4,#0x2D8]                                        ; +0x2e, 0x77909e\nLDR             R3, [R0]                                               ; +0x32, 0x7790a2\nLDR.W           R3, [R3,#0xF4]                                         ; +0x34, 0x7790a4\nBLX             R3                                                     ; +0x38, 0x7790a8\nLDR             R3, [R0,#0x34]                                         ; +0x3a, 0x7790aa\nLDR             R3, [R3]                                               ; +0x3c, 0x7790ac\nCBNZ            R3, loc_7790B2                                         ; +0x3e, 0x7790ae\nPOP             {R3-R7,PC}                                             ; +0x40, 0x7790b0\nLDR.W           R0, [R4,#0x2D8]                                        ; +0x42, 0x7790b2\nLDR             R3, [R0]                                               ; +0x46, 0x7790b6\nLDR.W           R3, [R3,#0xF4]                                         ; +0x48, 0x7790b8\nBLX             R3                                                     ; +0x4c, 0x7790bc\nLDR             R3, [R0,#0x34]                                         ; +0x4e, 0x7790be\nLDR.W           R0, [R4,#0x2D8]                                        ; +0x50, 0x7790c0\nLDR             R5, [R3,#0xC]                                          ; +0x54, 0x7790c4\nLDR             R3, [R0]                                               ; +0x56, 0x7790c6\nLDR.W           R3, [R3,#0xF4]                                         ; +0x58, 0x7790c8\nBLX             R3                                                     ; +0x5c, 0x7790cc\nLDR             R3, [R0,#0x34]                                         ; +0x5e, 0x7790ce\nLDR.W           R0, [R4,#0x2D8]                                        ; +0x60, 0x7790d0\nLDR             R7, [R3,#0xC]                                          ; +0x64, 0x7790d4\nLDR             R3, [R0]                                               ; +0x66, 0x7790d6\nLDR.W           R3, [R3,#0xF4]                                         ; +0x68, 0x7790d8\nBLX             R3                                                     ; +0x6c, 0x7790dc\nLDR             R3, [R0,#0x34]                                         ; +0x6e, 0x7790de\nLDR             R3, [R3]                                               ; +0x70, 0x7790e0\nADD.W           R3, R3, #0x40000000                                    ; +0x72, 0x7790e2\nSUBS            R3, #1                                                 ; +0x76, 0x7790e6\nADD.W           R7, R7, R3,LSL#2                                       ; +0x78, 0x7790e8\nCMP             R5, R7                                                 ; +0x7c, 0x7790ec\nBHI             locret_779126                                          ; +0x7e, 0x7790ee\nLDR.W           R4, [R5],#4                                            ; +0x80, 0x7790f0\nCBNZ            R4, loc_7790F8                                         ; +0x84, 0x7790f4\nPOP             {R3-R7,PC}                                             ; +0x86, 0x7790f6\nLDR             R3, [R4]                                               ; +0x88, 0x7790f8\nMOV             R1, R6                                                 ; +0x8a, 0x7790fa\nMOV             R0, R4                                                 ; +0x8c, 0x7790fc\nLDR.W           R3, [R3,#0x210]                                        ; +0x8e, 0x7790fe\nBLX             R3                                                     ; +0x92, 0x779102\nLDR             R3, [R4]                                               ; +0x94, 0x779104\nMOV             R0, R4                                                 ; +0x96, 0x779106\nLDR.W           R3, [R3,#0xF4]                                         ; +0x98, 0x779108\nBLX             R3                                                     ; +0x9c, 0x77910c\nMOVS            R1, #0; unsigned int                                   ; +0x9e, 0x77910e\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xa0, 0x779110\nCMP             R6, #0                                                 ; +0xa4, 0x779114\nITE NE                                                                 ; +0xa6, 0x779116\nMOVNE           R1, #0xFF                                              ; +0xa8, 0x779118\nMOVEQ           R1, #0x5A ; 'Z'                                        ; +0xaa, 0x77911a\nLDR             R3, [R0]                                               ; +0xac, 0x77911c\nLDR.W           R3, [R3,#0x1C8]                                        ; +0xae, 0x77911e\nBLX             R3                                                     ; +0xb2, 0x779122\nB               loc_7790EC                                             ; +0xb4, 0x779124\nPOP             {R3-R7,PC}                                             ; +0xb6, 0x779126", "xrefs": ["EmotePickerPopup::textChanged @ 0x779128", "EmotePickerPopup::init @ 0x779312", "EmotePickerPopup::onPickEmote @ 0x7795e6"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}