{"type": "func", "start": 4048690, "end": 4048804, "name": "ColorSelectPopup::updateHSVValue", "pseudocode": "// \n// ColorSelectPopup::updateHSVValue from 0x3dc732 to 0x3dc7a4 (114 bytes)\n// \n// 1 xrefs:\n// > ColorSelectPopup::closeColorSelect @ 0x3dc866\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 ColorSelectPopup::updateHSVValue(ColorSelectPopup *a1)\n{\n  EffectGameObject *m_gameObject; // r5\n  cocos2d::ccHSVValue *p_m_hsv; // r4\n  float *p_h; // r5\n  float h; // r0\n  float s; // r1\n  float v; // r2\n  int v8; // r3\n  int v9; // r0\n  ColorAction *m_colorAction; // r5\n  cocos2d::ccHSVValue *v11; // r4\n  float v12; // [sp+24h] [bp-10h]\n  float v13; // [sp+28h] [bp-Ch]\n  int v14; // [sp+2Ch] [bp-8h]\n\n  m_gameObject = a1->m_gameObject;\n  if ( m_gameObject )\n  {\n    p_m_hsv = &a1->m_hsv;\n    p_h = &m_gameObject->m_hsvValue.h;\n    h = a1->m_hsv.h;\n    s = p_m_hsv->s;\n    v = p_m_hsv->v;\n    v8 = *(_DWORD *)&p_m_hsv->absoluteSaturation;\nLABEL_8:\n    *p_h = h;\n    p_h[1] = s;\n    p_h[2] = v;\n    *((_DWORD *)p_h + 3) = v8;\n    return;\n  }\n  if ( !a1->m_gameObjects )\n  {\n    m_colorAction = a1->m_colorAction;\n    if ( !m_colorAction )\n      return;\n    v11 = &a1->m_hsv;\n    p_h = &m_colorAction->m_copyHSV.h;\n    h = a1->m_hsv.h;\n    s = v11->s;\n    v = v11->v;\n    v8 = *(_DWORD *)&v11->absoluteSaturation;\n    goto LABEL_8;\n  }\n  while ( (unsigned int)m_gameObject < cocos2d::CCArray::count(a1->m_gameObjects) )\n  {\n    v9 = cocos2d::CCArray::objectAtIndex(a1->m_gameObjects, (unsigned int)m_gameObject);\n    m_gameObject = (EffectGameObject *)((char *)m_gameObject + 1);\n    v12 = a1->m_hsv.s;\n    v13 = a1->m_hsv.v;\n    v14 = *(_DWORD *)&a1->m_hsv.absoluteSaturation;\n    *(float *)(v9 + 1424) = a1->m_hsv.h;\n    *(float *)(v9 + 1428) = v12;\n    *(float *)(v9 + 1432) = v13;\n    *(_DWORD *)(v9 + 1436) = v14;\n  }\n}", "assembly": "; \n; ColorSelectPopup::updateHSVValue from 0x3dc732 to 0x3dc7a4 (114 bytes)\n; \n; 1 xrefs:\n; > ColorSelectPopup::closeColorSelect @ 0x3dc866\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            {R4-R7,LR}                                             ; +0x0, 0x3dc732\nMOV             R4, R0                                                 ; +0x2, 0x3dc734\nLDR.W           R5, [R0,#0x1FC]                                        ; +0x4, 0x3dc736\nSUB             SP, SP, #0x34                                          ; +0x8, 0x3dc73a\nCBZ             R5, loc_3DC750                                         ; +0xa, 0x3dc73c\nADD.W           R4, R0, #0x314                                         ; +0xc, 0x3dc73e\nADD.W           R5, R5, #0x590                                         ; +0x10, 0x3dc742\nLDM.W           R4, {R0-R3}                                            ; +0x14, 0x3dc746\nSTMEA.W         SP, {R0-R3}                                            ; +0x18, 0x3dc74a\nB               loc_3DC79C                                             ; +0x1c, 0x3dc74e\nLDR.W           R3, [R0,#0x200]                                        ; +0x1e, 0x3dc750\nCBZ             R3, loc_3DC786                                         ; +0x22, 0x3dc754\nLDR.W           R0, [R4,#0x200]; this                                  ; +0x24, 0x3dc756\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x28, 0x3dc75a\nCMP             R5, R0                                                 ; +0x2c, 0x3dc75e\nBCS             loc_3DC7A0                                             ; +0x2e, 0x3dc760\nMOV             R1, R5; unsigned int                                   ; +0x30, 0x3dc762\nLDR.W           R0, [R4,#0x200]; this                                  ; +0x32, 0x3dc764\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x36, 0x3dc768\nADD.W           R3, R4, #0x314                                         ; +0x3a, 0x3dc76c\nADD             R6, SP, #0x34+var_14                                   ; +0x3e, 0x3dc770\nADDS            R5, #1                                                 ; +0x40, 0x3dc772\nMOV             R7, R0                                                 ; +0x42, 0x3dc774\nADD.W           R7, R7, #0x590                                         ; +0x44, 0x3dc776\nLDM             R3, {R0-R3}                                            ; +0x48, 0x3dc77a\nSTM.W           R6, {R0-R3}                                            ; +0x4a, 0x3dc77c\nSTM.W           R7, {R0-R3}                                            ; +0x4e, 0x3dc780\nB               loc_3DC756                                             ; +0x52, 0x3dc784\nLDR.W           R5, [R0,#0x2F0]                                        ; +0x54, 0x3dc786\nCBZ             R5, loc_3DC7A0                                         ; +0x58, 0x3dc78a\nADD.W           R4, R0, #0x314                                         ; +0x5a, 0x3dc78c\nADDS            R5, #0x64 ; 'd'                                        ; +0x5e, 0x3dc790\nLDM.W           R4, {R0-R3}                                            ; +0x60, 0x3dc792\nADD             R4, SP, #0x34+var_24                                   ; +0x64, 0x3dc796\nSTM.W           R4, {R0-R3}                                            ; +0x66, 0x3dc798\nSTM.W           R5, {R0-R3}                                            ; +0x6a, 0x3dc79c\nADD             SP, SP, #0x34 ; '4'                                    ; +0x6e, 0x3dc7a0\nPOP             {R4-R7,PC}                                             ; +0x70, 0x3dc7a2", "xrefs": ["ColorSelectPopup::closeColorSelect @ 0x3dc866"], "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"}