; ; CustomizeObjectLayer::determineStartValues from 0x840680 to 0x840794 (276 bytes) ; ; 2 xrefs: ; > CustomizeObjectLayer::init @ 0x8420fc ; > @ 0xbd978 ; ; 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 ; STP X29, X30, [SP,#var_30]! ; +0x0, 0x840680 MOV X29, SP ; +0x4, 0x840684 STP X19, X20, [SP,#0x30+var_20] ; +0x8, 0x840688 MOV X19, X0 ; +0xc, 0x84068c LDR X0, [X0,#0x298]; this ; +0x10, 0x840690 STR X21, [SP,#0x30+var_10] ; +0x14, 0x840694 CBZ X0, loc_8406E4 ; +0x18, 0x840698 MOV W1, #1; int ; +0x1c, 0x84069c BL _ZN10GameObject22getRelativeSpriteColorEi; GameObject::getRelativeSpriteColor(int) ; +0x20, 0x8406a0 CMP X0, XZR ; +0x24, 0x8406a4 LDR X0, [X19,#0x298]; this ; +0x28, 0x8406a8 CSET W2, NE ; +0x2c, 0x8406ac MOV W1, #2; int ; +0x30, 0x8406b0 STRB W2, [X19,#0x2D8] ; +0x34, 0x8406b4 BL _ZN10GameObject22getRelativeSpriteColorEi; GameObject::getRelativeSpriteColor(int) ; +0x38, 0x8406b8 CMP X0, XZR ; +0x3c, 0x8406bc LDR X1, [X19,#0x298] ; +0x40, 0x8406c0 CSET W0, NE ; +0x44, 0x8406c4 STRB W0, [X19,#0x2D9] ; +0x48, 0x8406c8 LDRB W0, [X1,#0x3EC] ; +0x4c, 0x8406cc STRB W0, [X19,#0x2DA] ; +0x50, 0x8406d0 LDP X19, X20, [SP,#0x30+var_20] ; +0x54, 0x8406d4 LDR X21, [SP,#0x30+var_10] ; +0x58, 0x8406d8 LDP X29, X30, [SP+0x30+var_30],#0x30 ; +0x5c, 0x8406dc RET ; +0x60, 0x8406e0 MOV W0, #1 ; +0x64, 0x8406e4 MOV W20, #0 ; +0x68, 0x8406e8 STRB W0, [X19,#0x2DA] ; +0x6c, 0x8406ec LDR X0, [X19,#0x2A0]; this ; +0x70, 0x8406f0 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x74, 0x8406f4 CMP W20, W0 ; +0x78, 0x8406f8 MOV W1, W20; unsigned int ; +0x7c, 0x8406fc B.CS loc_8406D4 ; +0x80, 0x840700 LDR X0, [X19,#0x2A0]; this ; +0x84, 0x840704 BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x88, 0x840708 MOV X21, X0 ; +0x8c, 0x84070c LDRB W2, [X19,#0x2D8] ; +0x90, 0x840710 MOV W1, #1 ; +0x94, 0x840714 CBZ W2, loc_840778 ; +0x98, 0x840718 LDRB W0, [X19,#0x2D9] ; +0x9c, 0x84071c CBNZ W0, loc_84073C ; +0xa0, 0x840720 MOV X0, X21; this ; +0xa4, 0x840724 MOV W1, #2; int ; +0xa8, 0x840728 BL _ZN10GameObject22getRelativeSpriteColorEi; GameObject::getRelativeSpriteColor(int) ; +0xac, 0x84072c CMP X0, XZR ; +0xb0, 0x840730 CSET W0, NE ; +0xb4, 0x840734 STRB W0, [X19,#0x2D9] ; +0xb8, 0x840738 LDRB W0, [X21,#0x3EC] ; +0xbc, 0x84073c ADD W20, W20, #1 ; +0xc0, 0x840740 CBNZ W0, loc_8406F0 ; +0xc4, 0x840744 LDR X0, [X19,#0x2A0]; this ; +0xc8, 0x840748 STRB WZR, [X19,#0x2DA] ; +0xcc, 0x84074c BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xd0, 0x840750 CMP W20, W0 ; +0xd4, 0x840754 MOV W1, W20; unsigned int ; +0xd8, 0x840758 B.CS loc_8406D4 ; +0xdc, 0x84075c LDR X0, [X19,#0x2A0]; this ; +0xe0, 0x840760 BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xe4, 0x840764 MOV X21, X0 ; +0xe8, 0x840768 LDRB W2, [X19,#0x2D8] ; +0xec, 0x84076c MOV W1, #1; int ; +0xf0, 0x840770 CBNZ W2, loc_84071C ; +0xf4, 0x840774 BL _ZN10GameObject22getRelativeSpriteColorEi; GameObject::getRelativeSpriteColor(int) ; +0xf8, 0x840778 CMP X0, XZR ; +0xfc, 0x84077c LDRB W1, [X19,#0x2D9] ; +0x100, 0x840780 CSET W0, NE ; +0x104, 0x840784 STRB W0, [X19,#0x2D8] ; +0x108, 0x840788 CBNZ W1, loc_84073C ; +0x10c, 0x84078c B loc_840724 ; +0x110, 0x840790