{"type": "func", "start": 5108288, "end": 5108402, "name": "ColorSelectPopup::updateHSVValue", "pseudocode": "// \n// ColorSelectPopup::updateHSVValue from 0x4df240 to 0x4df2b2 (114 bytes)\n// \n// 1 xrefs:\n// > ColorSelectPopup::closeColorSelect @ 0x4df374\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\n_DWORD *__fastcall ColorSelectPopup::updateHSVValue(_DWORD *this)\n{\n  _DWORD *v1; // r4\n  unsigned int v2; // r5\n  _DWORD *v3; // r4\n  _DWORD *v4; // r5\n  int v5; // r1\n  int v6; // r2\n  int v7; // r3\n  _DWORD *v8; // r0\n  int v9; // r5\n  _DWORD *v10; // r4\n  int v11; // [sp+24h] [bp-10h]\n  int v12; // [sp+28h] [bp-Ch]\n  int v13; // [sp+2Ch] [bp-8h]\n\n  v1 = this;\n  v2 = *(this + 132);\n  if ( v2 )\n  {\n    v3 = this + 205;\n    v4 = (_DWORD *)(v2 + 1432);\n    this = (_DWORD *)*(this + 205);\n    v5 = v3[1];\n    v6 = v3[2];\n    v7 = v3[3];\nLABEL_8:\n    *v4 = this;\n    v4[1] = v5;\n    v4[2] = v6;\n    v4[3] = v7;\n    return this;\n  }\n  if ( !*(this + 133) )\n  {\n    v9 = *(this + 196);\n    if ( !v9 )\n      return this;\n    v10 = this + 205;\n    v4 = (_DWORD *)(v9 + 100);\n    this = (_DWORD *)*(this + 205);\n    v5 = v10[1];\n    v6 = v10[2];\n    v7 = v10[3];\n    goto LABEL_8;\n  }\n  while ( 1 )\n  {\n    this = (_DWORD *)cocos2d::CCArray::count((cocos2d::CCArray *)v1[133]);\n    if ( v2 >= (unsigned int)this )\n      break;\n    v8 = (_DWORD *)cocos2d::CCArray::objectAtIndex((cocos2d::CCArray *)v1[133], v2++);\n    v11 = v1[206];\n    v12 = v1[207];\n    v13 = v1[208];\n    v8[358] = v1[205];\n    v8[359] = v11;\n    v8[360] = v12;\n    v8[361] = v13;\n  }\n  return this;\n}", "assembly": "; \n; ColorSelectPopup::updateHSVValue from 0x4df240 to 0x4df2b2 (114 bytes)\n; \n; 1 xrefs:\n; > ColorSelectPopup::closeColorSelect @ 0x4df374\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            {R4-R7,LR}                                             ; +0x0, 0x4df240\nMOV             R4, R0                                                 ; +0x2, 0x4df242\nLDR.W           R5, [R0,#0x210]                                        ; +0x4, 0x4df244\nSUB             SP, SP, #0x34                                          ; +0x8, 0x4df248\nCBZ             R5, loc_4DF25E                                         ; +0xa, 0x4df24a\nADD.W           R4, R0, #0x334                                         ; +0xc, 0x4df24c\nADD.W           R5, R5, #0x598                                         ; +0x10, 0x4df250\nLDM.W           R4, {R0-R3}                                            ; +0x14, 0x4df254\nSTMEA.W         SP, {R0-R3}                                            ; +0x18, 0x4df258\nB               loc_4DF2AA                                             ; +0x1c, 0x4df25c\nLDR.W           R3, [R0,#0x214]                                        ; +0x1e, 0x4df25e\nCBZ             R3, loc_4DF294                                         ; +0x22, 0x4df262\nLDR.W           R0, [R4,#0x214]; this                                  ; +0x24, 0x4df264\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x28, 0x4df268\nCMP             R5, R0                                                 ; +0x2c, 0x4df26c\nBCS             loc_4DF2AE                                             ; +0x2e, 0x4df26e\nMOV             R1, R5; unsigned int                                   ; +0x30, 0x4df270\nLDR.W           R0, [R4,#0x214]; this                                  ; +0x32, 0x4df272\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x36, 0x4df276\nADD.W           R3, R4, #0x334                                         ; +0x3a, 0x4df27a\nADD             R6, SP, #0x34+var_14                                   ; +0x3e, 0x4df27e\nADDS            R5, #1                                                 ; +0x40, 0x4df280\nMOV             R7, R0                                                 ; +0x42, 0x4df282\nADD.W           R7, R7, #0x598                                         ; +0x44, 0x4df284\nLDM             R3, {R0-R3}                                            ; +0x48, 0x4df288\nSTM.W           R6, {R0-R3}                                            ; +0x4a, 0x4df28a\nSTM.W           R7, {R0-R3}                                            ; +0x4e, 0x4df28e\nB               loc_4DF264                                             ; +0x52, 0x4df292\nLDR.W           R5, [R0,#0x310]                                        ; +0x54, 0x4df294\nCBZ             R5, loc_4DF2AE                                         ; +0x58, 0x4df298\nADD.W           R4, R0, #0x334                                         ; +0x5a, 0x4df29a\nADDS            R5, #0x64 ; 'd'                                        ; +0x5e, 0x4df29e\nLDM.W           R4, {R0-R3}                                            ; +0x60, 0x4df2a0\nADD             R4, SP, #0x34+var_24                                   ; +0x64, 0x4df2a4\nSTM.W           R4, {R0-R3}                                            ; +0x66, 0x4df2a6\nSTM.W           R5, {R0-R3}                                            ; +0x6a, 0x4df2aa\nADD             SP, SP, #0x34 ; '4'                                    ; +0x6e, 0x4df2ae\nPOP             {R4-R7,PC}                                             ; +0x70, 0x4df2b0", "xrefs": ["ColorSelectPopup::closeColorSelect @ 0x4df374"], "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"}