	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stfsm_prepare_erasesec_seq
_stfsm_prepare_erasesec_seq:            ## @stfsm_prepare_erasesec_seq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	(%rdi), %rax
	movq	_FLASH_FLAG_32BIT_ADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	andl	(%rax), %ecx
	setne	%dl
	leal	8(,%rdx,8), %edi
	callq	_ADR_CFG_CYCLES_ADD1
	movl	%eax, %ebx
	movq	_ADR_CFG_PADS_1_ADD1@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	$16, %edi
	callq	_ADR_CFG_CYCLES_ADD2
	orl	%ebx, %eax
	movq	_ADR_CFG_PADS_1_ADD2@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_ADR_CFG_CSDEASSERT_ADD2@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLASH_FLAG_32BIT_ADDR,4,2      ## @FLASH_FLAG_32BIT_ADDR
	.comm	_ADR_CFG_PADS_1_ADD1,4,2        ## @ADR_CFG_PADS_1_ADD1
	.comm	_ADR_CFG_PADS_1_ADD2,4,2        ## @ADR_CFG_PADS_1_ADD2
	.comm	_ADR_CFG_CSDEASSERT_ADD2,4,2    ## @ADR_CFG_CSDEASSERT_ADD2
	.no_dead_strip	_stfsm_prepare_erasesec_seq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stfsm_prepare_erasesec_seq
_stfsm_prepare_erasesec_seq:            ; @stfsm_prepare_erasesec_seq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _FLASH_FLAG_32BIT_ADDR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FLASH_FLAG_32BIT_ADDR@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #16
	mov	w9, #8
	csel	w0, w9, w8, eq
	bl	_ADR_CFG_CYCLES_ADD1
Lloh3:
	adrp	x8, _ADR_CFG_PADS_1_ADD1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADR_CFG_PADS_1_ADD1@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w20, w8, w0
	mov	w0, #16
	bl	_ADR_CFG_CYCLES_ADD2
	orr	w8, w20, w0
Lloh6:
	adrp	x9, _ADR_CFG_PADS_1_ADD2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ADR_CFG_PADS_1_ADD2@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _ADR_CFG_CSDEASSERT_ADD2@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ADR_CFG_CSDEASSERT_ADD2@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FLASH_FLAG_32BIT_ADDR,4,2      ; @FLASH_FLAG_32BIT_ADDR
	.comm	_ADR_CFG_PADS_1_ADD1,4,2        ; @ADR_CFG_PADS_1_ADD1
	.comm	_ADR_CFG_PADS_1_ADD2,4,2        ; @ADR_CFG_PADS_1_ADD2
	.comm	_ADR_CFG_CSDEASSERT_ADD2,4,2    ; @ADR_CFG_CSDEASSERT_ADD2
	.no_dead_strip	_stfsm_prepare_erasesec_seq
.subsections_via_symbols
