; ; EditorUI::updateEditColorButton from 0x1003f52fc to 0x1003f5480 (388 bytes) ; ; 3 xrefs: ; > EditorUI::onEditColor @ 0x1003e4880 ; > EditorUI::toggleEditObjectButton @ 0x1003e6354 ; > EditorUI::colorSelectClosed @ 0x1003f5d04 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; SUB SP, SP, #0x50 ; +0x0, 0x1003f52fc STP X22, X21, [SP,#0x40+var_20] ; +0x4, 0x1003f5300 STP X20, X19, [SP,#0x40+var_10] ; +0x8, 0x1003f5304 STP X29, X30, [SP,#0x40+var_s0] ; +0xc, 0x1003f5308 ADD X29, SP, #0x40 ; +0x10, 0x1003f530c MOV X19, X0 ; +0x14, 0x1003f5310 LDR X8, [X0,#0x520] ; +0x18, 0x1003f5314 CBZ X8, loc_1003F5330 ; +0x1c, 0x1003f5318 ADD X20, X19, #0x3D8 ; +0x20, 0x1003f531c LDR X0, [X19,#0x3D8] ; +0x24, 0x1003f5320 MOV W8, #1 ; +0x28, 0x1003f5324 STRB W8, [X0,#0x198] ; +0x2c, 0x1003f5328 B loc_1003F5354 ; +0x30, 0x1003f532c LDR X0, [X19,#0x328] ; +0x34, 0x1003f5330 BL sub_10024A36C ; +0x38, 0x1003f5334 MOV X8, X0 ; +0x3c, 0x1003f5338 CMP W0, #0 ; +0x40, 0x1003f533c CSET W9, NE ; +0x44, 0x1003f5340 ADD X20, X19, #0x3D8 ; +0x48, 0x1003f5344 LDR X0, [X19,#0x3D8] ; +0x4c, 0x1003f5348 STRB W9, [X0,#0x198] ; +0x50, 0x1003f534c CBZ W8, loc_1003F5424 ; +0x54, 0x1003f5350 ADRL X1, word_100647392 ; +0x58, 0x1003f5354 MOV W21, #1 ; +0x60, 0x1003f535c LDR X8, [X0] ; +0x64, 0x1003f5360 LDR X8, [X8,#0x3B0] ; +0x68, 0x1003f5364 BLR X8 ; +0x6c, 0x1003f5368 LDR X0, [X20] ; +0x70, 0x1003f536c LDR X8, [X0] ; +0x74, 0x1003f5370 LDR X2, [X8,#0x380] ; +0x78, 0x1003f5374 TBZ W21, #0, loc_1003F540C ; +0x7c, 0x1003f5378 MOV W1, #0xFF ; +0x80, 0x1003f537c BLR X2 ; +0x84, 0x1003f5380 LDR X8, [X19,#0x548] ; +0x88, 0x1003f5384 CBNZ X8, loc_1003F53C0 ; +0x8c, 0x1003f5388 STP XZR, XZR, [SP,#0x40+var_30] ; +0x90, 0x1003f538c STR XZR, [SP,#0x40+var_38] ; +0x94, 0x1003f5390 ADD X1, SP, #0x40+var_28 ; +0x98, 0x1003f5394 ADD X2, SP, #0x40+var_30 ; +0x9c, 0x1003f5398 ADD X3, SP, #0x40+var_38 ; +0xa0, 0x1003f539c MOV X0, X19 ; +0xa4, 0x1003f53a0 BL EditorUI__getEditColorTargets ; +0xa8, 0x1003f53a4 LDR X8, [SP,#0x40+var_28] ; +0xac, 0x1003f53a8 CBNZ X8, loc_1003F5434 ; +0xb0, 0x1003f53ac LDR X8, [SP,#0x40+var_30] ; +0xb4, 0x1003f53b0 CBNZ X8, loc_1003F5434 ; +0xb8, 0x1003f53b4 LDR X8, [SP,#0x40+var_38] ; +0xbc, 0x1003f53b8 CBNZ X8, loc_1003F5434 ; +0xc0, 0x1003f53bc LDR X0, [X20] ; +0xc4, 0x1003f53c0 LDR X8, [X0] ; +0xc8, 0x1003f53c4 LDR X8, [X8,#0x420] ; +0xcc, 0x1003f53c8 BLR X8 ; +0xd0, 0x1003f53cc MOV X19, X0 ; +0xd4, 0x1003f53d0 BL cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache ; +0xd8, 0x1003f53d4 ADRL X1, aGjHsvbtn001Png; "GJ_hsvBtn_001.png" ; +0xdc, 0x1003f53d8 BL cocos2d__CCSpriteFrameCache__spriteFrameByName ; +0xe4, 0x1003f53e0 MOV X1, X0 ; +0xe8, 0x1003f53e4 LDR X8, [X19] ; +0xec, 0x1003f53e8 LDR X8, [X8,#0x478] ; +0xf0, 0x1003f53ec MOV X0, X19 ; +0xf4, 0x1003f53f0 BLR X8 ; +0xf8, 0x1003f53f4 LDR X0, [X20] ; +0xfc, 0x1003f53f8 LDR X8, [X0] ; +0x100, 0x1003f53fc LDR X2, [X8,#0x48] ; +0x104, 0x1003f5400 MOV W1, #1 ; +0x108, 0x1003f5404 B loc_1003F5410 ; +0x10c, 0x1003f5408 MOV W1, #0xAF ; +0x110, 0x1003f540c LDP X29, X30, [SP,#0x40+var_s0] ; +0x114, 0x1003f5410 LDP X20, X19, [SP,#0x40+var_10] ; +0x118, 0x1003f5414 LDP X22, X21, [SP,#0x40+var_20] ; +0x11c, 0x1003f5418 ADD SP, SP, #0x50 ; 'P' ; +0x120, 0x1003f541c BR X2 ; +0x124, 0x1003f5420 MOV W21, #0 ; +0x128, 0x1003f5424 ADRL X1, word_100647395 ; +0x12c, 0x1003f5428 B loc_1003F5360 ; +0x134, 0x1003f5430 LDR X0, [X20] ; +0x138, 0x1003f5434 LDR X8, [X0] ; +0x13c, 0x1003f5438 LDR X8, [X8,#0x420] ; +0x140, 0x1003f543c BLR X8 ; +0x144, 0x1003f5440 MOV X19, X0 ; +0x148, 0x1003f5444 BL cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache ; +0x14c, 0x1003f5448 ADRL X1, aGjEdithsvbtn20; "GJ_editHSVBtn2_001.png" ; +0x150, 0x1003f544c BL cocos2d__CCSpriteFrameCache__spriteFrameByName ; +0x158, 0x1003f5454 MOV X1, X0 ; +0x15c, 0x1003f5458 LDR X8, [X19] ; +0x160, 0x1003f545c LDR X8, [X8,#0x478] ; +0x164, 0x1003f5460 MOV X0, X19 ; +0x168, 0x1003f5464 BLR X8 ; +0x16c, 0x1003f5468 LDR X0, [X20] ; +0x170, 0x1003f546c LDR X8, [X0] ; +0x174, 0x1003f5470 LDR X2, [X8,#0x48] ; +0x178, 0x1003f5474 MOV W1, #0 ; +0x17c, 0x1003f5478 B loc_1003F5410 ; +0x180, 0x1003f547c