; ; CustomizeObjectLayer::getActiveMode from 0x461ad4 to 0x461b60 (140 bytes) ; ; 7 xrefs: ; > CustomizeObjectLayer::onLiveEdit @ 0x461b66 ; > CustomizeObjectLayer::onEditColor @ 0x461b92 ; > CustomizeObjectLayer::updateColorSprite @ 0x461bd4 ; > CustomizeObjectLayer::onSelectColor @ 0x461ffc ; > CustomizeObjectLayer::updateCurrentSelection @ 0x4620d4 ; > CustomizeObjectLayer::onPaste @ 0x46213a ; > CustomizeObjectLayer::onSelectMode @ 0x46235e ; ; 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 ; PUSH {R3-R7,LR} ; +0x0, 0x461ad4 MOV R7, R0 ; +0x2, 0x461ad6 LDR.W R0, [R0,#0x200]; this ; +0x4, 0x461ad8 MOV R6, R1 ; +0x8, 0x461adc CBZ R0, loc_461AFC ; +0xa, 0x461ade LDR.W R1, [R7,#0x21C]; int ; +0xc, 0x461ae0 BL _ZN10GameObject22getRelativeSpriteColorEi; GameObject::getRelativeSpriteColor(int) ; +0x10, 0x461ae4 CBNZ R0, loc_461AEE ; +0x14, 0x461ae8 MOVS R4, #0 ; +0x16, 0x461aea B loc_461B5C ; +0x18, 0x461aec LDR R3, [R0,#4] ; +0x1a, 0x461aee LDR R4, [R0] ; +0x1c, 0x461af0 CMP R3, R4 ; +0x1e, 0x461af2 BEQ loc_461B56 ; +0x20, 0x461af4 CBNZ R4, loc_461B5C ; +0x22, 0x461af6 MOV R4, R3 ; +0x24, 0x461af8 B loc_461B56 ; +0x26, 0x461afa EOR.W R6, R1, #1 ; +0x28, 0x461afc MOV R5, R0 ; +0x2c, 0x461b00 MOV.W R4, #0xFFFFFFFF ; +0x2e, 0x461b02 LDR.W R0, [R7,#0x204]; this ; +0x32, 0x461b06 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x36, 0x461b0a CMP R5, R0 ; +0x3a, 0x461b0e BCS loc_461B52 ; +0x3c, 0x461b10 MOV R1, R5; unsigned int ; +0x3e, 0x461b12 LDR.W R0, [R7,#0x204]; this ; +0x40, 0x461b14 BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x44, 0x461b18 LDR.W R1, [R7,#0x21C]; int ; +0x48, 0x461b1c BL _ZN10GameObject22getRelativeSpriteColorEi; GameObject::getRelativeSpriteColor(int) ; +0x4c, 0x461b20 CBZ R0, loc_461B46 ; +0x50, 0x461b24 LDR R2, [R0,#4] ; +0x52, 0x461b26 LDR R3, [R0] ; +0x54, 0x461b28 CMP R2, R3 ; +0x56, 0x461b2a BEQ loc_461B34 ; +0x58, 0x461b2c CMP R3, #0 ; +0x5a, 0x461b2e IT EQ ; +0x5c, 0x461b30 MOVEQ R3, R2 ; +0x5e, 0x461b32 CBZ R6, loc_461B3C ; +0x60, 0x461b34 SUBS R1, R3, R2 ; +0x62, 0x461b36 NEGS R6, R1 ; +0x64, 0x461b38 ADCS R6, R1 ; +0x66, 0x461b3a ADDS R2, R4, #1 ; +0x68, 0x461b3c BEQ loc_461B48 ; +0x6a, 0x461b3e CMP R4, R3 ; +0x6c, 0x461b40 BEQ loc_461B48 ; +0x6e, 0x461b42 B loc_461B4E ; +0x70, 0x461b44 MOV R3, R4 ; +0x72, 0x461b46 ADDS R5, #1 ; +0x74, 0x461b48 MOV R4, R3 ; +0x76, 0x461b4a B loc_461B06 ; +0x78, 0x461b4c MOV.W R4, #0xFFFFFFFF ; +0x7a, 0x461b4e CBZ R6, loc_461B5C ; +0x7e, 0x461b52 B loc_461AEA ; +0x80, 0x461b54 CMP R6, #0 ; +0x82, 0x461b56 IT EQ ; +0x84, 0x461b58 MOVEQ R4, #0 ; +0x86, 0x461b5a MOV R0, R4 ; +0x88, 0x461b5c POP {R3-R7,PC} ; +0x8a, 0x461b5e