{"type": "func", "start": 9974724, "end": 9974936, "name": "CustomizeObjectLayer::hsvPopupClosed", "pseudocode": "// \n// CustomizeObjectLayer::hsvPopupClosed from 0x9833c4 to 0x983498 (212 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'CustomizeObjectLayer::hsvPopupClosed @ 0x98349c\n// > <???> @ 0xb0c50\n// > <???> @ 0x14719f8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:57:52 +0000\n// \n\n__int64 __fastcall CustomizeObjectLayer::hsvPopupClosed(GameObject **a1, __int64 a2, __int64 a3, __int64 a4)\n{\n  int v7; // w21\n  __int64 RelativeSpriteColor; // x0\n  __int64 v9; // x1\n  __int64 v10; // x2\n  int v11; // w3\n  CustomizeObjectLayer *v12; // x0\n  unsigned int v13; // w19\n  bool v14; // cf\n  GameObject *v15; // x0\n  __int64 v16; // x0\n\n  if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )\n    v7 = 1;\n  else\n    v7 = 2;\n  if ( a1[86] )\n  {\n    RelativeSpriteColor = GameObject::getRelativeSpriteColor(a1[86], v7);\n    if ( RelativeSpriteColor )\n    {\n      *(_QWORD *)(RelativeSpriteColor + 16) = a3;\n      *(_QWORD *)(RelativeSpriteColor + 24) = a4;\n    }\n  }\n  else\n  {\n    v13 = 0;\n    while ( 1 )\n    {\n      v14 = v13 >= (unsigned int)cocos2d::CCArray::count(a1[87]);\n      v9 = v13++;\n      if ( v14 )\n        break;\n      while ( 1 )\n      {\n        v15 = (GameObject *)cocos2d::CCArray::objectAtIndex(a1[87], v9);\n        v16 = GameObject::getRelativeSpriteColor(v15, v7);\n        if ( !v16 )\n          break;\n        *(_QWORD *)(v16 + 16) = a3;\n        *(_QWORD *)(v16 + 24) = a4;\n        v14 = v13 >= (unsigned int)cocos2d::CCArray::count(a1[87]);\n        v9 = v13++;\n        if ( v14 )\n        {\n          v12 = (CustomizeObjectLayer *)a1;\n          return CustomizeObjectLayer::updateHSVButtons(v12, v9, v10, v11);\n        }\n      }\n    }\n  }\n  v12 = (CustomizeObjectLayer *)a1;\n  return CustomizeObjectLayer::updateHSVButtons(v12, v9, v10, v11);\n}", "assembly": "; \n; CustomizeObjectLayer::hsvPopupClosed from 0x9833c4 to 0x983498 (212 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'CustomizeObjectLayer::hsvPopupClosed @ 0x98349c\n; > <???> @ 0xb0c50\n; > <???> @ 0x14719f8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:57:52 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x9833c4\nMOV             X29, SP                                                ; +0x4, 0x9833c8\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x8, 0x9833cc\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0xc, 0x9833d0\nSTR             X23, [SP,#0x40+var_10]                                 ; +0x10, 0x9833d4\nMOV             X20, X0                                                ; +0x14, 0x9833d8\nMOV             X0, X1                                                 ; +0x18, 0x9833dc\nMOV             X22, X2                                                ; +0x1c, 0x9833e0\nLDR             X1, [X1]                                               ; +0x20, 0x9833e4\nMOV             X23, X3                                                ; +0x24, 0x9833e8\nMOV             W21, #2                                                ; +0x28, 0x9833ec\nLDR             X1, [X1,#0x40]                                         ; +0x2c, 0x9833f0\nBLR             X1                                                     ; +0x30, 0x9833f4\nCMP             W0, #1                                                 ; +0x34, 0x9833f8\nLDR             X1, [X20,#0x2B0]                                       ; +0x38, 0x9833fc\nCSINC           W21, W21, WZR, NE                                      ; +0x3c, 0x983400\nCBZ             X1, loc_983434                                         ; +0x40, 0x983404\nMOV             X0, X1; this                                           ; +0x44, 0x983408\nMOV             W1, W21; int                                           ; +0x48, 0x98340c\nBL              _ZN10GameObject22getRelativeSpriteColorEi; GameObject::getRelativeSpriteColor(int) ; +0x4c, 0x983410\nCBZ             X0, loc_98341C                                         ; +0x50, 0x983414\nSTP             X22, X23, [X0,#0x10]                                   ; +0x54, 0x983418\nMOV             X0, X20; this                                          ; +0x58, 0x98341c\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x5c, 0x983420\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x60, 0x983424\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x64, 0x983428\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x68, 0x98342c\nB               _ZN20CustomizeObjectLayer16updateHSVButtonsEv; CustomizeObjectLayer::updateHSVButtons(void) ; +0x6c, 0x983430\nMOV             W19, #0                                                ; +0x70, 0x983434\nLDR             X0, [X20,#0x2B8]; this                                 ; +0x74, 0x983438\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x78, 0x98343c\nCMP             W19, W0                                                ; +0x7c, 0x983440\nMOV             W1, W19; unsigned int                                  ; +0x80, 0x983444\nADD             W19, W19, #1                                           ; +0x84, 0x983448\nB.CS            loc_98341C                                             ; +0x88, 0x98344c\nLDR             X0, [X20,#0x2B8]; this                                 ; +0x8c, 0x983450\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x90, 0x983454\nMOV             W1, W21; int                                           ; +0x94, 0x983458\nBL              _ZN10GameObject22getRelativeSpriteColorEi; GameObject::getRelativeSpriteColor(int) ; +0x98, 0x98345c\nCBZ             X0, loc_983438                                         ; +0x9c, 0x983460\nSTP             X22, X23, [X0,#0x10]                                   ; +0xa0, 0x983464\nLDR             X0, [X20,#0x2B8]; this                                 ; +0xa4, 0x983468\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xa8, 0x98346c\nCMP             W19, W0                                                ; +0xac, 0x983470\nMOV             W1, W19                                                ; +0xb0, 0x983474\nADD             W19, W19, #1                                           ; +0xb4, 0x983478\nB.CC            loc_983450                                             ; +0xb8, 0x98347c\nMOV             X0, X20; this                                          ; +0xbc, 0x983480\nLDR             X23, [SP,#0x40+var_10]                                 ; +0xc0, 0x983484\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xc4, 0x983488\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xc8, 0x98348c\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xcc, 0x983490\nB               _ZN20CustomizeObjectLayer16updateHSVButtonsEv; CustomizeObjectLayer::updateHSVButtons(void) ; +0xd0, 0x983494", "xrefs": ["`non-virtual thunk to'CustomizeObjectLayer::hsvPopupClosed @ 0x98349c", "<???> @ 0xb0c50", "<???> @ 0x14719f8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}