{"type": "func", "start": 5760332, "end": 5760448, "name": "CustomizeObjectLayer::hsvPopupClosed", "pseudocode": "// \n// CustomizeObjectLayer::hsvPopupClosed from 0x57e54c to 0x57e5c0 (116 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CustomizeObjectLayer::hsvPopupClosed @ 0x57e5c4\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:52:51 +0000\n// \n\nint __fastcall CustomizeObjectLayer::hsvPopupClosed(GameObject **a1, int a2, int a3, int a4, int a5, int a6)\n{\n  bool v7; // zf\n  GameObject *v8; // r0\n  int v9; // r7\n  _DWORD *RelativeSpriteColor; // r0\n  unsigned int i; // r4\n  GameObject *v12; // r0\n  _DWORD *v13; // r0\n\n  v7 = (*(int (__fastcall **)(int))(*(_DWORD *)a2 + 32))(a2) == 1;\n  v8 = a1[133];\n  if ( v7 )\n    v9 = 1;\n  else\n    v9 = 2;\n  if ( v8 )\n  {\n    RelativeSpriteColor = (_DWORD *)GameObject::getRelativeSpriteColor(v8, v9);\n    if ( RelativeSpriteColor )\n    {\n      RelativeSpriteColor[4] = a3;\n      RelativeSpriteColor[5] = a4;\n      RelativeSpriteColor[6] = a5;\n      RelativeSpriteColor[7] = a6;\n    }\n  }\n  else\n  {\n    for ( i = 0; i < cocos2d::CCArray::count(a1[134]); ++i )\n    {\n      v12 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1[134], i);\n      v13 = (_DWORD *)GameObject::getRelativeSpriteColor(v12, v9);\n      if ( v13 )\n      {\n        v13[4] = a3;\n        v13[5] = a4;\n        v13[6] = a5;\n        v13[7] = a6;\n      }\n    }\n  }\n  return CustomizeObjectLayer::updateHSVButtons((CustomizeObjectLayer *)a1);\n}", "assembly": "; \n; CustomizeObjectLayer::hsvPopupClosed from 0x57e54c to 0x57e5c0 (116 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CustomizeObjectLayer::hsvPopupClosed @ 0x57e5c4\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:52:51 +0000\n; \nSUB             SP, SP, #8                                             ; +0x0, 0x57e54c\nPUSH            {R3-R7,LR}                                             ; +0x2, 0x57e54e\nMOV             R6, R0                                                 ; +0x4, 0x57e550\nADD             R0, SP, #0x20+var_8                                    ; +0x6, 0x57e552\nSTM.W           R0, {R2,R3}                                            ; +0x8, 0x57e554\nMOV             R0, R1                                                 ; +0xc, 0x57e558\nLDR             R3, [R1]                                               ; +0xe, 0x57e55a\nLDR             R3, [R3,#0x20]                                         ; +0x10, 0x57e55c\nBLX             R3                                                     ; +0x12, 0x57e55e\nCMP             R0, #1                                                 ; +0x14, 0x57e560\nLDR.W           R0, [R6,#0x214]; this                                  ; +0x16, 0x57e562\nITE EQ                                                                 ; +0x1a, 0x57e566\nMOVEQ           R7, #1                                                 ; +0x1c, 0x57e568\nMOVNE           R7, #2                                                 ; +0x1e, 0x57e56a\nCBZ             R0, loc_57E584                                         ; +0x20, 0x57e56c\nMOV             R1, R7; int                                            ; +0x22, 0x57e56e\nBL              _ZN10GameObject22getRelativeSpriteColorEi; GameObject::getRelativeSpriteColor(int) ; +0x24, 0x57e570\nCBZ             R0, loc_57E5B4                                         ; +0x28, 0x57e574\nADD             R3, SP, #0x20+var_8                                    ; +0x2a, 0x57e576\nADD.W           R4, R0, #0x10                                          ; +0x2c, 0x57e578\nLDM             R3, {R0-R3}                                            ; +0x30, 0x57e57c\nSTM.W           R4, {R0-R3}                                            ; +0x32, 0x57e57e\nB               loc_57E5B4                                             ; +0x36, 0x57e582\nMOV             R4, R0                                                 ; +0x38, 0x57e584\nLDR.W           R0, [R6,#0x218]; this                                  ; +0x3a, 0x57e586\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x3e, 0x57e58a\nCMP             R4, R0                                                 ; +0x42, 0x57e58e\nBCS             loc_57E5B4                                             ; +0x44, 0x57e590\nMOV             R1, R4; unsigned int                                   ; +0x46, 0x57e592\nLDR.W           R0, [R6,#0x218]; this                                  ; +0x48, 0x57e594\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x4c, 0x57e598\nMOV             R1, R7; int                                            ; +0x50, 0x57e59c\nBL              _ZN10GameObject22getRelativeSpriteColorEi; GameObject::getRelativeSpriteColor(int) ; +0x52, 0x57e59e\nCBZ             R0, loc_57E5B0                                         ; +0x56, 0x57e5a2\nADD             R3, SP, #0x20+var_8                                    ; +0x58, 0x57e5a4\nADD.W           R5, R0, #0x10                                          ; +0x5a, 0x57e5a6\nLDM             R3, {R0-R3}                                            ; +0x5e, 0x57e5aa\nSTM.W           R5, {R0-R3}                                            ; +0x60, 0x57e5ac\nADDS            R4, #1                                                 ; +0x64, 0x57e5b0\nB               loc_57E586                                             ; +0x66, 0x57e5b2\nMOV             R0, R6; this                                           ; +0x68, 0x57e5b4\nPOP.W           {R3-R7,LR}                                             ; +0x6a, 0x57e5b6\nADD             SP, SP, #8                                             ; +0x6e, 0x57e5ba\nB.W             _ZN20CustomizeObjectLayer16updateHSVButtonsEv; CustomizeObjectLayer::updateHSVButtons(void) ; +0x70, 0x57e5bc", "xrefs": ["`non-virtual thunk to'CustomizeObjectLayer::hsvPopupClosed @ 0x57e5c4"], "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"}