; ; CreateGuidelinesLayer::onClearGuidelines from 0x308520 to 0x30858c (108 bytes) ; ; 0 xrefs: ; ; 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 {R4-R6,LR} ; +0x0, 0x308520 SUB SP, SP, #0x18 ; +0x2, 0x308522 LDR R6, =(__stack_chk_guard_ptr - 0x308530) ; +0x4, 0x308524 ADD R4, SP, #0x18+var_8 ; +0x6, 0x308526 LDR R1, =(aCrDeleteCTheCu - 0x308536); "Delete the current guidelin"... ; +0x8, 0x308528 MOV R5, R0 ; +0xa, 0x30852a ADD R6, PC; __stack_chk_guard_ptr ; +0xc, 0x30852c LDR R6, [R6]; __stack_chk_guard ; +0xe, 0x30852e ADD R2, SP, #0x18+var_C ; +0x10, 0x308530 ADD R1, PC; "Delete the current guidelin"... ; +0x12, 0x308532 MOV R0, R4; int ; +0x14, 0x308534 LDR R3, [R6] ; +0x16, 0x308536 STR R3, [SP,#0x18+var_4] ; +0x18, 0x308538 BL sub_776584 ; +0x1a, 0x30853a LDR R3, =(aYes - 0x30854C); "Yes" ; +0x1e, 0x30853e ADD.W R0, R5, #0x1F0 ; +0x20, 0x308540 LDR R1, =(aClearGuideline - 0x308552); "Clear Guidelines" ; +0x24, 0x308544 MOV R2, R4 ; +0x26, 0x308546 ADD R3, PC; "Yes" ; +0x28, 0x308548 STR R3, [SP,#0x18+var_18] ; +0x2a, 0x30854a LDR R3, =(aNo - 0x308554); "No" ; +0x2c, 0x30854c ADD R1, PC; "Clear Guidelines" ; +0x2e, 0x30854e ADD R3, PC; "No" ; +0x30, 0x308550 BL _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcSsS3_S3_; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*) ; +0x32, 0x308552 MOV R5, R0 ; +0x36, 0x308556 MOV R0, R4 ; +0x38, 0x308558 BL sub_774008 ; +0x3a, 0x30855a LDR R3, [R5] ; +0x3e, 0x30855e MOV R0, R5 ; +0x40, 0x308560 MOVS R1, #1 ; +0x42, 0x308562 LDR R3, [R3,#0x24] ; +0x44, 0x308564 BLX R3 ; +0x46, 0x308566 LDR R3, [R5] ; +0x48, 0x308568 MOV R0, R5 ; +0x4a, 0x30856a LDR.W R3, [R3,#0x284] ; +0x4c, 0x30856c BLX R3 ; +0x50, 0x308570 LDR R2, [SP,#0x18+var_4] ; +0x52, 0x308572 LDR R3, [R6] ; +0x54, 0x308574 CMP R2, R3 ; +0x56, 0x308576 BEQ loc_308588 ; +0x58, 0x308578 BLX __stack_chk_fail ; +0x5a, 0x30857a MOV R0, R4 ; +0x5e, 0x30857e BL sub_774008 ; +0x60, 0x308580 BL __cxa_end_cleanup ; +0x64, 0x308584 ADD SP, SP, #0x18 ; +0x68, 0x308588 POP {R4-R6,PC} ; +0x6a, 0x30858a