; ; CustomizeObjectLayer::onSelectMode from 0x462214 to 0x46236e (346 bytes) ; ; 1 xrefs: ; > CustomizeObjectLayer::init @ 0x463b96 ; ; 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 ; LDR R3, [R1] ; +0x0, 0x462214 PUSH {R4,LR} ; +0x2, 0x462216 MOV R4, R0 ; +0x4, 0x462218 LDR R3, [R3,#0x20] ; +0x6, 0x46221a MOV R0, R1 ; +0x8, 0x46221c BLX R3 ; +0xa, 0x46221e CMP R0, #1 ; +0xc, 0x462220 MOV R3, R0 ; +0xe, 0x462222 STR.W R0, [R4,#0x21C] ; +0x10, 0x462224 LDR.W R0, [R4,#0x23C] ; +0x14, 0x462228 BNE loc_46223A ; +0x18, 0x46222c LDR R3, [R0] ; +0x1a, 0x46222e LDR R1, =(aBaseColor - 0x46223A); "Base Color" ; +0x1c, 0x462230 LDR.W R3, [R3,#0x1C8] ; +0x1e, 0x462232 ADD R1, PC; "Base Color" ; +0x22, 0x462236 B loc_46224E ; +0x24, 0x462238 CMP R3, #2 ; +0x26, 0x46223a LDR R3, [R0] ; +0x28, 0x46223c LDR.W R3, [R3,#0x1C8] ; +0x2a, 0x46223e BNE loc_46224A ; +0x2e, 0x462242 LDR R1, =(aDetailColor - 0x46224A); "Detail Color" ; +0x30, 0x462244 ADD R1, PC; "Detail Color" ; +0x32, 0x462246 B loc_46224E ; +0x34, 0x462248 LDR R1, =(aInsertText - 0x462250); "Insert Text" ; +0x36, 0x46224a ADD R1, PC; "Insert Text" ; +0x38, 0x46224c BLX R3 ; +0x3a, 0x46224e LDR.W R0, [R4,#0x228] ; +0x3c, 0x462250 LDR R3, [R0] ; +0x40, 0x462254 LDR.W R3, [R3,#0x210] ; +0x42, 0x462256 BLX R3 ; +0x46, 0x46225a LDR.W R3, [R4,#0x21C] ; +0x48, 0x46225c CMP R3, #1 ; +0x4c, 0x462260 BEQ loc_46226A ; +0x4e, 0x462262 LDR R1, =(aGjButton04Png - 0x46226A); "GJ_button_04.png" ; +0x50, 0x462264 ADD R1, PC; "GJ_button_04.png" ; +0x52, 0x462266 B loc_46226E ; +0x54, 0x462268 LDR R1, =(aGjButton03Png - 0x462270); "GJ_button_03.png" ; +0x56, 0x46226a ADD R1, PC; "GJ_button_03.png" ; +0x58, 0x46226c BL _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x5a, 0x46226e LDR.W R0, [R4,#0x22C] ; +0x5e, 0x462272 LDR R3, [R0] ; +0x62, 0x462276 LDR.W R3, [R3,#0x210] ; +0x64, 0x462278 BLX R3 ; +0x68, 0x46227c LDR.W R3, [R4,#0x21C] ; +0x6a, 0x46227e CMP R3, #2 ; +0x6e, 0x462282 BEQ loc_46228C ; +0x70, 0x462284 LDR R1, =(aGjButton04Png - 0x46228C); "GJ_button_04.png" ; +0x72, 0x462286 ADD R1, PC; "GJ_button_04.png" ; +0x74, 0x462288 B loc_462290 ; +0x76, 0x46228a LDR R1, =(aGjButton03Png - 0x462292); "GJ_button_03.png" ; +0x78, 0x46228c ADD R1, PC; "GJ_button_03.png" ; +0x7a, 0x46228e BL _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x7c, 0x462290 LDR.W R0, [R4,#0x230] ; +0x80, 0x462294 CBZ R0, loc_4622B8 ; +0x84, 0x462298 LDR R3, [R0] ; +0x86, 0x46229a LDR.W R3, [R3,#0x210] ; +0x88, 0x46229c BLX R3 ; +0x8c, 0x4622a0 LDR.W R3, [R4,#0x21C] ; +0x8e, 0x4622a2 CMP R3, #3 ; +0x92, 0x4622a6 BEQ loc_4622B0 ; +0x94, 0x4622a8 LDR R1, =(aGjButton04Png - 0x4622B0); "GJ_button_04.png" ; +0x96, 0x4622aa ADD R1, PC; "GJ_button_04.png" ; +0x98, 0x4622ac B loc_4622B4 ; +0x9a, 0x4622ae LDR R1, =(aGjButton03Png - 0x4622B6); "GJ_button_03.png" ; +0x9c, 0x4622b0 ADD R1, PC; "GJ_button_03.png" ; +0x9e, 0x4622b2 BL _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0xa0, 0x4622b4 MOV R0, R4; this ; +0xa4, 0x4622b8 BL _ZN20CustomizeObjectLayer13toggleVisibleEv; CustomizeObjectLayer::toggleVisible(void) ; +0xa6, 0x4622ba LDR.W R0, [R4,#0x234] ; +0xaa, 0x4622be LDR.W R1, [R4,#0x21C] ; +0xae, 0x4622c2 LDR R3, [R0] ; +0xb2, 0x4622c6 SUBS R2, R1, #1 ; +0xb4, 0x4622c8 NEGS R1, R2 ; +0xb6, 0x4622ca ADCS R1, R2 ; +0xb8, 0x4622cc LDR.W R3, [R3,#0xA4] ; +0xba, 0x4622ce BLX R3 ; +0xbe, 0x4622d2 LDR.W R0, [R4,#0x234] ; +0xc0, 0x4622d4 LDR.W R1, [R4,#0x21C] ; +0xc4, 0x4622d8 LDR R3, [R0] ; +0xc8, 0x4622dc ADD.W LR, R1, #0xFFFFFFFF ; +0xca, 0x4622de RSBS.W R1, LR, #0 ; +0xce, 0x4622e2 ADC.W R1, R1, LR ; +0xd2, 0x4622e6 LDR.W R3, [R3,#0x208] ; +0xd6, 0x4622ea BLX R3 ; +0xda, 0x4622ee LDR.W R0, [R4,#0x238] ; +0xdc, 0x4622f0 LDR.W R1, [R4,#0x21C] ; +0xe0, 0x4622f4 LDR R3, [R0] ; +0xe4, 0x4622f8 SUB.W R12, R1, #2 ; +0xe6, 0x4622fa RSBS.W R1, R12, #0 ; +0xea, 0x4622fe ADC.W R1, R1, R12 ; +0xee, 0x462302 LDR.W R3, [R3,#0xA4] ; +0xf2, 0x462306 BLX R3 ; +0xf6, 0x46230a LDR.W R0, [R4,#0x238] ; +0xf8, 0x46230c LDR.W R1, [R4,#0x21C] ; +0xfc, 0x462310 LDR R3, [R0] ; +0x100, 0x462314 SUBS R2, R1, #2 ; +0x102, 0x462316 NEGS R1, R2 ; +0x104, 0x462318 ADCS R1, R2 ; +0x106, 0x46231a LDR.W R3, [R3,#0x208] ; +0x108, 0x46231c BLX R3 ; +0x10c, 0x462320 LDR.W R0, [R4,#0x274] ; +0x10e, 0x462322 LDR.W R1, [R4,#0x21C] ; +0x112, 0x462326 LDR R3, [R0] ; +0x116, 0x46232a SUBS R1, #3 ; +0x118, 0x46232c IT NE ; +0x11a, 0x46232e MOVNE R1, #1 ; +0x11c, 0x462330 LDR.W R3, [R3,#0xA4] ; +0x11e, 0x462332 BLX R3 ; +0x122, 0x462336 LDR.W R0, [R4,#0x274] ; +0x124, 0x462338 LDR.W R1, [R4,#0x21C] ; +0x128, 0x46233c LDR R3, [R0] ; +0x12c, 0x462340 SUBS R1, #3 ; +0x12e, 0x462342 IT NE ; +0x130, 0x462344 MOVNE R1, #1 ; +0x132, 0x462346 LDR.W R3, [R3,#0x208] ; +0x134, 0x462348 BLX R3 ; +0x138, 0x46234c MOV R0, R4; this ; +0x13a, 0x46234e BL _ZN20CustomizeObjectLayer16updateHSVButtonsEv; CustomizeObjectLayer::updateHSVButtons(void) ; +0x13c, 0x462350 MOV R0, R4; this ; +0x140, 0x462354 BL _ZN20CustomizeObjectLayer17updateColorSpriteEv; CustomizeObjectLayer::updateColorSprite(void) ; +0x142, 0x462356 MOV R0, R4; this ; +0x146, 0x46235a MOVS R1, #1; bool ; +0x148, 0x46235c BL _ZN20CustomizeObjectLayer13getActiveModeEb; CustomizeObjectLayer::getActiveMode(bool) ; +0x14a, 0x46235e MOV R1, R0; GJSpecialColorSelect * ; +0x14e, 0x462362 MOV R0, R4; this ; +0x150, 0x462364 POP.W {R4,LR} ; +0x152, 0x462366 B.W _ZN20CustomizeObjectLayer18updateChannelLabelEi; CustomizeObjectLayer::updateChannelLabel(int) ; +0x156, 0x46236a