	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sst25l_erase_sector
_sst25l_erase_sector:                   ## @sst25l_erase_sector
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	$1, %esi
	callq	_sst25l_write_enable
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_SST25L_CMD_SECTOR_ERASE@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -20(%rbp)
	movl	%ebx, %eax
	shrl	$16, %eax
	movb	%al, -19(%rbp)
	movb	%bh, -18(%rbp)
	movb	%bl, -17(%rbp)
	movl	(%r14), %edi
	leaq	-20(%rbp), %rsi
	movl	$4, %edx
	callq	_spi_write
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	_sst25l_wait_till_ready
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_sst25l_write_enable
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SST25L_CMD_SECTOR_ERASE,1,0    ## @SST25L_CMD_SECTOR_ERASE
	.no_dead_strip	_sst25l_erase_sector
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sst25l_erase_sector
_sst25l_erase_sector:                   ; @sst25l_erase_sector
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	mov	w1, #1
	bl	_sst25l_write_enable
	cbnz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _SST25L_CMD_SECTOR_ERASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SST25L_CMD_SECTOR_ERASE@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #12]
	lsr	w8, w20, #16
	strb	w8, [sp, #13]
	lsr	w8, w20, #8
	strb	w8, [sp, #14]
	strb	w20, [sp, #15]
	ldr	w0, [x19]
	add	x1, sp, #12
	mov	w2, #4
	bl	_spi_write
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_sst25l_wait_till_ready
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	bl	_sst25l_write_enable
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SST25L_CMD_SECTOR_ERASE,1,0    ; @SST25L_CMD_SECTOR_ERASE
	.no_dead_strip	_sst25l_erase_sector
.subsections_via_symbols
