{"type": "func", "start": 4593944, "end": 4594060, "name": "CustomizeObjectLayer::hsvPopupClosed", "pseudocode": "// \n// CustomizeObjectLayer::hsvPopupClosed from 0x461918 to 0x46198c (116 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CustomizeObjectLayer::hsvPopupClosed @ 0x461990\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 CustomizeObjectLayer::hsvPopupClosed(CustomizeObjectLayer *a1, HSVWidgetPopup *a2, cocos2d::ccHSVValue a3)\n{\n  bool v4; // zf\n  GameObject *m_targetObject; // r0\n  int v6; // r7\n  GJSpriteColor *RelativeSpriteColor; // r0\n  unsigned int i; // r4\n  GameObject *v9; // r0\n  GJSpriteColor *v10; // r0\n\n  v4 = a2->getTag(a2) == 1;\n  m_targetObject = a1->m_targetObject;\n  if ( v4 )\n    v6 = 1;\n  else\n    v6 = 2;\n  if ( m_targetObject )\n  {\n    RelativeSpriteColor = GameObject::getRelativeSpriteColor(m_targetObject, v6);\n    if ( RelativeSpriteColor )\n      RelativeSpriteColor->m_hsv = a3;\n  }\n  else\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(a1->m_targetObjects); ++i )\n    {\n      v9 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1->m_targetObjects, i);\n      v10 = GameObject::getRelativeSpriteColor(v9, v6);\n      if ( v10 )\n        v10->m_hsv = a3;\n    }\n  }\n  CustomizeObjectLayer::updateHSVButtons(a1);\n}", "assembly": "; \n; CustomizeObjectLayer::hsvPopupClosed from 0x461918 to 0x46198c (116 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CustomizeObjectLayer::hsvPopupClosed @ 0x461990\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\nSUB             SP, SP, #8                                             ; +0x0, 0x461918\nPUSH            {R3-R7,LR}                                             ; +0x2, 0x46191a\nMOV             R6, R0                                                 ; +0x4, 0x46191c\nADD             R0, SP, #0x20+var_8                                    ; +0x6, 0x46191e\nSTM.W           R0, {R2,R3}                                            ; +0x8, 0x461920\nMOV             R0, R1                                                 ; +0xc, 0x461924\nLDR             R3, [R1]                                               ; +0xe, 0x461926\nLDR             R3, [R3,#0x20]                                         ; +0x10, 0x461928\nBLX             R3                                                     ; +0x12, 0x46192a\nCMP             R0, #1                                                 ; +0x14, 0x46192c\nLDR.W           R0, [R6,#0x200]; this                                  ; +0x16, 0x46192e\nITE EQ                                                                 ; +0x1a, 0x461932\nMOVEQ           R7, #1                                                 ; +0x1c, 0x461934\nMOVNE           R7, #2                                                 ; +0x1e, 0x461936\nCBZ             R0, loc_461950                                         ; +0x20, 0x461938\nMOV             R1, R7; int                                            ; +0x22, 0x46193a\nBL              _ZN10GameObject22getRelativeSpriteColorEi; GameObject::getRelativeSpriteColor(int) ; +0x24, 0x46193c\nCBZ             R0, loc_461980                                         ; +0x28, 0x461940\nADD             R3, SP, #0x20+var_8                                    ; +0x2a, 0x461942\nADD.W           R4, R0, #0x10                                          ; +0x2c, 0x461944\nLDM             R3, {R0-R3}                                            ; +0x30, 0x461948\nSTM.W           R4, {R0-R3}                                            ; +0x32, 0x46194a\nB               loc_461980                                             ; +0x36, 0x46194e\nMOV             R4, R0                                                 ; +0x38, 0x461950\nLDR.W           R0, [R6,#0x204]; this                                  ; +0x3a, 0x461952\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x3e, 0x461956\nCMP             R4, R0                                                 ; +0x42, 0x46195a\nBCS             loc_461980                                             ; +0x44, 0x46195c\nMOV             R1, R4; unsigned int                                   ; +0x46, 0x46195e\nLDR.W           R0, [R6,#0x204]; this                                  ; +0x48, 0x461960\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x4c, 0x461964\nMOV             R1, R7; int                                            ; +0x50, 0x461968\nBL              _ZN10GameObject22getRelativeSpriteColorEi; GameObject::getRelativeSpriteColor(int) ; +0x52, 0x46196a\nCBZ             R0, loc_46197C                                         ; +0x56, 0x46196e\nADD             R3, SP, #0x20+var_8                                    ; +0x58, 0x461970\nADD.W           R5, R0, #0x10                                          ; +0x5a, 0x461972\nLDM             R3, {R0-R3}                                            ; +0x5e, 0x461976\nSTM.W           R5, {R0-R3}                                            ; +0x60, 0x461978\nADDS            R4, #1                                                 ; +0x64, 0x46197c\nB               loc_461952                                             ; +0x66, 0x46197e\nMOV             R0, R6; this                                           ; +0x68, 0x461980\nPOP.W           {R3-R7,LR}                                             ; +0x6a, 0x461982\nADD             SP, SP, #8                                             ; +0x6e, 0x461986\nB.W             _ZN20CustomizeObjectLayer16updateHSVButtonsEv; CustomizeObjectLayer::updateHSVButtons(void) ; +0x70, 0x461988", "xrefs": ["`non-virtual thunk to'CustomizeObjectLayer::hsvPopupClosed @ 0x461990"], "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"}