; ; CreateGuidelinesLayer::onClearGuidelines from 0x5bf970 to 0x5bfaa8 (312 bytes) ; ; 3 xrefs: ; > @ 0x65be0 ; > CreateGuidelinesLayer::init @ 0x5c0ed8 ; > @ 0x122b488 ; ; 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_50]! ; +0x0, 0x5bf970 ADRP X1, #aCrDeleteCTheCu@PAGE; "Delete the current guidelin"... ; +0x4, 0x5bf974 MOV X29, SP ; +0x8, 0x5bf978 STP X19, X20, [SP,#0x50+var_40] ; +0xc, 0x5bf97c ADRP X19, #__stack_chk_guard_ptr@PAGE ; +0x10, 0x5bf980 ADD X20, X29, #0x50+var_10 ; +0x14, 0x5bf984 STR X21, [SP,#0x50+var_30] ; +0x18, 0x5bf988 ADD X1, X1, #aCrDeleteCTheCu@PAGEOFF; "Delete the current guidelin"... ; +0x1c, 0x5bf98c MOV X21, X0 ; +0x20, 0x5bf990 ADD X2, X29, #0x50+var_20 ; +0x24, 0x5bf994 LDR X3, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x28, 0x5bf998 MOV X0, X20; int ; +0x2c, 0x5bf99c LDR X3, [X3] ; +0x30, 0x5bf9a0 STR X3, [X29,#0x50+var_8] ; +0x34, 0x5bf9a4 BL sub_D153B8 ; +0x38, 0x5bf9a8 ADRP X1, #aClearGuideline@PAGE; "Clear Guidelines" ; +0x3c, 0x5bf9ac ADRP X3, #aNo@PAGE; "No" ; +0x40, 0x5bf9b0 ADRP X4, #aYes@PAGE; "Yes" ; +0x44, 0x5bf9b4 ADD X0, X21, #0x278 ; +0x48, 0x5bf9b8 ADD X1, X1, #aClearGuideline@PAGEOFF; "Clear Guidelines" ; +0x4c, 0x5bf9bc MOV X2, X20 ; +0x50, 0x5bf9c0 ADD X3, X3, #aNo@PAGEOFF; "No" ; +0x54, 0x5bf9c4 ADD X4, X4, #aYes@PAGEOFF; "Yes" ; +0x58, 0x5bf9c8 BL _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcSsS3_S3_; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*) ; +0x5c, 0x5bf9cc ADRP X1, #off_122EFE8@PAGE ; +0x60, 0x5bf9d0 LDR X2, [X29,#0x50+var_10] ; +0x64, 0x5bf9d4 MOV X20, X0 ; +0x68, 0x5bf9d8 SUB X0, X2, #0x18; p ; +0x6c, 0x5bf9dc LDR X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0 ; +0x70, 0x5bf9e0 CMP X0, X1 ; +0x74, 0x5bf9e4 B.NE loc_5BFA34 ; +0x78, 0x5bf9e8 LDR X2, [X20] ; +0x7c, 0x5bf9ec MOV X0, X20 ; +0x80, 0x5bf9f0 MOV W1, #1 ; +0x84, 0x5bf9f4 LDR X2, [X2,#0x48] ; +0x88, 0x5bf9f8 BLR X2 ; +0x8c, 0x5bf9fc LDR X1, [X20] ; +0x90, 0x5bfa00 MOV X0, X20 ; +0x94, 0x5bfa04 LDR X1, [X1,#0x508] ; +0x98, 0x5bfa08 BLR X1 ; +0x9c, 0x5bfa0c LDR X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xa0, 0x5bfa10 LDR X1, [X29,#0x50+var_8] ; +0xa4, 0x5bfa14 LDR X0, [X19] ; +0xa8, 0x5bfa18 CMP X1, X0 ; +0xac, 0x5bfa1c B.NE loc_5BFA78 ; +0xb0, 0x5bfa20 LDP X19, X20, [SP,#0x50+var_40] ; +0xb4, 0x5bfa24 LDR X21, [SP,#0x50+var_30] ; +0xb8, 0x5bfa28 LDP X29, X30, [SP+0x50+var_50],#0x50 ; +0xbc, 0x5bfa2c RET ; +0xc0, 0x5bfa30 ADRP X1, #pthread_create_ptr_0@PAGE ; +0xc4, 0x5bfa34 LDR X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xc8, 0x5bfa38 CBZ X1, loc_5BFA68 ; +0xcc, 0x5bfa3c SUB X2, X2, #8 ; +0xd0, 0x5bfa40 LDAXR W1, [X2] ; +0xd4, 0x5bfa44 SUB W3, W1, #1 ; +0xd8, 0x5bfa48 STLXR W4, W3, [X2] ; +0xdc, 0x5bfa4c CBNZ W4, loc_5BFA44 ; +0xe0, 0x5bfa50 CMP W1, WZR ; +0xe4, 0x5bfa54 B.GT loc_5BF9EC ; +0xe8, 0x5bfa58 ADD X1, X29, #0x50+var_18 ; +0xec, 0x5bfa5c BL j__ZdlPv; operator delete(void *) ; +0xf0, 0x5bfa60 B loc_5BF9EC ; +0xf4, 0x5bfa64 LDUR W1, [X2,#-8] ; +0xf8, 0x5bfa68 SUB W3, W1, #1 ; +0xfc, 0x5bfa6c STUR W3, [X2,#-8] ; +0x100, 0x5bfa70 B loc_5BFA54 ; +0x104, 0x5bfa74 BL .__stack_chk_fail ; +0x108, 0x5bfa78 ADRP X1, #off_122EFE8@PAGE ; +0x10c, 0x5bfa7c MOV X19, X0 ; +0x110, 0x5bfa80 LDR X0, [X29,#0x50+var_10] ; +0x114, 0x5bfa84 LDR X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0 ; +0x118, 0x5bfa88 SUB X0, X0, #0x18 ; +0x11c, 0x5bfa8c CMP X0, X1 ; +0x120, 0x5bfa90 B.EQ loc_5BFAA0 ; +0x124, 0x5bfa94 ADD X1, X29, #0x50+var_18 ; +0x128, 0x5bfa98 BL sub_4DB3D0 ; +0x12c, 0x5bfa9c MOV X0, X19 ; +0x130, 0x5bfaa0 BL _Unwind_Resume ; +0x134, 0x5bfaa4