{"type": "func", "start": 5106798, "end": 5106870, "name": "ColorSelectPopup::onTintGround", "pseudocode": "// \n// ColorSelectPopup::onTintGround from 0x4dec6e to 0x4decb6 (72 bytes)\n// \n// 0 xrefs:\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:50:59 +0000\n// \n\nunsigned int __fastcall ColorSelectPopup::onTintGround(unsigned int this, cocos2d::CCObject *a2)\n{\n  unsigned int v2; // r5\n  unsigned int v3; // r4\n  char v4; // r3\n  int v5; // r0\n\n  v2 = this;\n  v3 = *(_DWORD *)(this + 528);\n  v4 = *(_BYTE *)(this + 793) ^ 1;\n  *(_BYTE *)(this + 793) = v4;\n  if ( v3 )\n  {\n    *(_BYTE *)(v3 + 1304) = v4;\n  }\n  else if ( *(_DWORD *)(this + 532) )\n  {\n    while ( 1 )\n    {\n      this = cocos2d::CCArray::count(*(cocos2d::CCArray **)(v2 + 532));\n      if ( v3 >= this )\n        break;\n      v5 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v2 + 532), v3++);\n      *(_BYTE *)(v5 + 1304) = *(_BYTE *)(v2 + 793);\n    }\n  }\n  return this;\n}", "assembly": "; \n; ColorSelectPopup::onTintGround from 0x4dec6e to 0x4decb6 (72 bytes)\n; \n; 0 xrefs:\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:50:59 +0000\n; \nPUSH            {R3-R5,LR}                                             ; +0x0, 0x4dec6e\nMOV             R5, R0                                                 ; +0x2, 0x4dec70\nLDR.W           R4, [R0,#0x210]                                        ; +0x4, 0x4dec72\nLDRB.W          R3, [R0,#0x319]                                        ; +0x8, 0x4dec76\nEOR.W           R3, R3, #1                                             ; +0xc, 0x4dec7a\nSTRB.W          R3, [R0,#0x319]                                        ; +0x10, 0x4dec7e\nCBZ             R4, loc_4DEC8A                                         ; +0x14, 0x4dec82\nSTRB.W          R3, [R4,#0x518]                                        ; +0x16, 0x4dec84\nPOP             {R3-R5,PC}                                             ; +0x1a, 0x4dec88\nLDR.W           R3, [R0,#0x214]                                        ; +0x1c, 0x4dec8a\nCBNZ            R3, loc_4DEC92                                         ; +0x20, 0x4dec8e\nPOP             {R3-R5,PC}                                             ; +0x22, 0x4dec90\nLDR.W           R0, [R5,#0x214]; this                                  ; +0x24, 0x4dec92\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x28, 0x4dec96\nCMP             R4, R0                                                 ; +0x2c, 0x4dec9a\nBCS             locret_4DECB4                                          ; +0x2e, 0x4dec9c\nMOV             R1, R4; unsigned int                                   ; +0x30, 0x4dec9e\nLDR.W           R0, [R5,#0x214]; this                                  ; +0x32, 0x4deca0\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x36, 0x4deca4\nLDRB.W          R3, [R5,#0x319]                                        ; +0x3a, 0x4deca8\nADDS            R4, #1                                                 ; +0x3e, 0x4decac\nSTRB.W          R3, [R0,#0x518]                                        ; +0x40, 0x4decae\nB               loc_4DEC92                                             ; +0x44, 0x4decb2\nPOP             {R3-R5,PC}                                             ; +0x46, 0x4decb4", "xrefs": [], "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"}