{"type": "func", "start": 6180584, "end": 6180684, "name": "ConfigureHSVWidget::updateColorPreview", "pseudocode": "// \n// ConfigureHSVWidget::updateColorPreview from 0x5e4ee8 to 0x5e4f4c (100 bytes)\n// \n// 2 xrefs:\n// > ConfigureHSVWidget::sliderChanged @ 0x5e559c\n// > ConfigureHSVWidget::onResetHSV @ 0x5e56b2\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:54:19 +0000\n// \n\nint __fastcall ConfigureHSVWidget::updateColorPreview(int this)\n{\n  int v1; // r4\n  int v2; // r0\n  char v3; // r3\n  int v4; // r0\n  _BYTE v5[4]; // [sp+8h] [bp-Ch] BYREF\n\n  v1 = this;\n  if ( *(_BYTE *)(this + 336) )\n  {\n    if ( *(_DWORD *)(this + 332) )\n    {\n      v2 = GameToolbox::transformColor(\n             (unsigned __int8 *)(this + 324),\n             *(float *)(this + 292),\n             *(float *)(this + 296),\n             *(float *)(this + 300),\n             *(_DWORD *)(this + 304));\n      v3 = BYTE1(v2);\n      v5[0] = v2;\n      v5[2] = BYTE2(v2);\n      v4 = *(_DWORD *)(v1 + 332);\n      v5[1] = v3;\n      return (*(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v4 + 480))(v4, v5);\n    }\n  }\n  return this;\n}", "assembly": "; \n; ConfigureHSVWidget::updateColorPreview from 0x5e4ee8 to 0x5e4f4c (100 bytes)\n; \n; 2 xrefs:\n; > ConfigureHSVWidget::sliderChanged @ 0x5e559c\n; > ConfigureHSVWidget::onResetHSV @ 0x5e56b2\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:54:19 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x5E4EF0)                ; +0x0, 0x5e4ee8\nPUSH            {R4,R5,LR}                                             ; +0x2, 0x5e4eea\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x5e4eec\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x5e4eee\nSUB             SP, SP, #0x14                                          ; +0x8, 0x5e4ef0\nMOV             R4, R0                                                 ; +0xa, 0x5e4ef2\nLDR             R2, [R3]                                               ; +0xc, 0x5e4ef4\nMOV             R5, R3                                                 ; +0xe, 0x5e4ef6\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x10, 0x5e4ef8\nLDRB.W          R2, [R0,#0x150]                                        ; +0x12, 0x5e4efa\nCBZ             R2, loc_5E4F3C                                         ; +0x16, 0x5e4efe\nLDR.W           R3, [R0,#0x14C]                                        ; +0x18, 0x5e4f00\nCBZ             R3, loc_5E4F3C                                         ; +0x1c, 0x5e4f04\nLDR.W           R3, [R0,#0x130]                                        ; +0x1e, 0x5e4f06\nSTR             R3, [SP,#0x14+var_14]                                  ; +0x22, 0x5e4f0a\nADD.W           R3, R0, #0x124                                         ; +0x24, 0x5e4f0c\nADD.W           R0, R0, #0x144                                         ; +0x28, 0x5e4f10\nLDM             R3, {R1-R3}                                            ; +0x2c, 0x5e4f14\nBL              _ZN11GameToolbox14transformColorERKN7cocos2d10_ccColor3BENS0_11_ccHSVValueE; GameToolbox::transformColor(cocos2d::_ccColor3B const&,cocos2d::_ccHSVValue) ; +0x2e, 0x5e4f16\nADD             R1, SP, #0x14+var_C                                    ; +0x32, 0x5e4f1a\nUBFX.W          R3, R0, #8, #8                                         ; +0x34, 0x5e4f1c\nSTRB.W          R0, [SP,#0x14+var_C]                                   ; +0x38, 0x5e4f20\nUBFX.W          R0, R0, #0x10, #8                                      ; +0x3c, 0x5e4f24\nSTRB.W          R0, [SP,#0x14+var_A]                                   ; +0x40, 0x5e4f28\nLDR.W           R0, [R4,#0x14C]                                        ; +0x44, 0x5e4f2c\nSTRB.W          R3, [SP,#0x14+var_B]                                   ; +0x48, 0x5e4f30\nLDR             R3, [R0]                                               ; +0x4c, 0x5e4f34\nLDR.W           R3, [R3,#0x1E0]                                        ; +0x4e, 0x5e4f36\nBLX             R3                                                     ; +0x52, 0x5e4f3a\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x54, 0x5e4f3c\nLDR             R3, [R5]                                               ; +0x56, 0x5e4f3e\nCMP             R2, R3                                                 ; +0x58, 0x5e4f40\nBEQ             loc_5E4F48                                             ; +0x5a, 0x5e4f42\nBLX             __stack_chk_fail                                       ; +0x5c, 0x5e4f44\nADD             SP, SP, #0x14                                          ; +0x60, 0x5e4f48\nPOP             {R4,R5,PC}                                             ; +0x62, 0x5e4f4a", "xrefs": ["ConfigureHSVWidget::sliderChanged @ 0x5e559c", "ConfigureHSVWidget::onResetHSV @ 0x5e56b2"], "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"}