{"type": "func", "start": 5107560, "end": 5107694, "name": "ColorSelectPopup::updateColorValue", "pseudocode": "// \n// ColorSelectPopup::updateColorValue from 0x4def68 to 0x4defee (134 bytes)\n// \n// 1 xrefs:\n// > ColorSelectPopup::colorValueChanged @ 0x4e1d62\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::updateColorValue(unsigned int this)\n{\n  unsigned int v1; // r4\n  _BYTE *v2; // r3\n  char v3; // r1\n  char v4; // r2\n  unsigned int v5; // r5\n  _BYTE *v6; // r0\n  char v7; // r2\n  char v8; // r3\n  _BYTE *v9; // r3\n  char v10; // r1\n  char v11; // r2\n\n  v1 = this;\n  if ( !*(_BYTE *)(this + 804) )\n  {\n    v2 = *(_BYTE **)(this + 528);\n    if ( v2 )\n    {\n      this = *(unsigned __int8 *)(this + 760);\n      v3 = *(_BYTE *)(v1 + 761);\n      v4 = *(_BYTE *)(v1 + 762);\n      v2[1268] = this;\n      v2[1269] = v3;\n      v2[1270] = v4;\n    }\n    else if ( *(_DWORD *)(this + 532) )\n    {\n      v5 = *(_DWORD *)(this + 528);\n      while ( 1 )\n      {\n        this = cocos2d::CCArray::count(*(cocos2d::CCArray **)(v1 + 532));\n        if ( v5 >= this )\n          break;\n        v6 = (_BYTE *)cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(v1 + 532), v5);\n        v7 = *(_BYTE *)(v1 + 761);\n        ++v5;\n        v8 = *(_BYTE *)(v1 + 762);\n        v6[1268] = *(_BYTE *)(v1 + 760);\n        v6[1269] = v7;\n        v6[1270] = v8;\n      }\n    }\n    else\n    {\n      v9 = *(_BYTE **)(this + 784);\n      if ( v9 )\n      {\n        this = *(unsigned __int8 *)(this + 760);\n        v10 = *(_BYTE *)(v1 + 761);\n        v11 = *(_BYTE *)(v1 + 762);\n        v9[68] = this;\n        v9[69] = v10;\n        v9[70] = v11;\n      }\n    }\n  }\n  return this;\n}", "assembly": "; \n; ColorSelectPopup::updateColorValue from 0x4def68 to 0x4defee (134 bytes)\n; \n; 1 xrefs:\n; > ColorSelectPopup::colorValueChanged @ 0x4e1d62\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, 0x4def68\nMOV             R4, R0                                                 ; +0x2, 0x4def6a\nLDRB.W          R3, [R0,#0x324]                                        ; +0x4, 0x4def6c\nCBNZ            R3, locret_4DEFEC                                      ; +0x8, 0x4def70\nLDR.W           R3, [R0,#0x210]                                        ; +0xa, 0x4def72\nCBZ             R3, loc_4DEF92                                         ; +0xe, 0x4def76\nLDRB.W          R0, [R0,#0x2F8]                                        ; +0x10, 0x4def78\nLDRB.W          R1, [R4,#0x2F9]                                        ; +0x14, 0x4def7c\nLDRB.W          R2, [R4,#0x2FA]                                        ; +0x18, 0x4def80\nSTRB.W          R0, [R3,#0x4F4]                                        ; +0x1c, 0x4def84\nSTRB.W          R1, [R3,#0x4F5]                                        ; +0x20, 0x4def88\nSTRB.W          R2, [R3,#0x4F6]                                        ; +0x24, 0x4def8c\nPOP             {R3-R5,PC}                                             ; +0x28, 0x4def90\nLDR.W           R2, [R0,#0x214]                                        ; +0x2a, 0x4def92\nCBZ             R2, loc_4DEFCE                                         ; +0x2e, 0x4def96\nMOV             R5, R3                                                 ; +0x30, 0x4def98\nLDR.W           R0, [R4,#0x214]; this                                  ; +0x32, 0x4def9a\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x36, 0x4def9e\nCMP             R5, R0                                                 ; +0x3a, 0x4defa2\nBCS             locret_4DEFCC                                          ; +0x3c, 0x4defa4\nMOV             R1, R5; unsigned int                                   ; +0x3e, 0x4defa6\nLDR.W           R0, [R4,#0x214]; this                                  ; +0x40, 0x4defa8\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x44, 0x4defac\nLDRB.W          R1, [R4,#0x2F8]                                        ; +0x48, 0x4defb0\nLDRB.W          R2, [R4,#0x2F9]                                        ; +0x4c, 0x4defb4\nADDS            R5, #1                                                 ; +0x50, 0x4defb8\nLDRB.W          R3, [R4,#0x2FA]                                        ; +0x52, 0x4defba\nSTRB.W          R1, [R0,#0x4F4]                                        ; +0x56, 0x4defbe\nSTRB.W          R2, [R0,#0x4F5]                                        ; +0x5a, 0x4defc2\nSTRB.W          R3, [R0,#0x4F6]                                        ; +0x5e, 0x4defc6\nB               loc_4DEF9A                                             ; +0x62, 0x4defca\nPOP             {R3-R5,PC}                                             ; +0x64, 0x4defcc\nLDR.W           R3, [R0,#0x310]                                        ; +0x66, 0x4defce\nCBZ             R3, locret_4DEFEC                                      ; +0x6a, 0x4defd2\nLDRB.W          R0, [R0,#0x2F8]                                        ; +0x6c, 0x4defd4\nLDRB.W          R1, [R4,#0x2F9]                                        ; +0x70, 0x4defd8\nLDRB.W          R2, [R4,#0x2FA]                                        ; +0x74, 0x4defdc\nSTRB.W          R0, [R3,#0x44]                                         ; +0x78, 0x4defe0\nSTRB.W          R1, [R3,#0x45]                                         ; +0x7c, 0x4defe4\nSTRB.W          R2, [R3,#0x46]                                         ; +0x80, 0x4defe8\nPOP             {R3-R5,PC}                                             ; +0x84, 0x4defec", "xrefs": ["ColorSelectPopup::colorValueChanged @ 0x4e1d62"], "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"}