	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sf1_read
_sf1_read:                              ## @sf1_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	leal	-5(%rbx), %eax
	cmpl	$-5, %eax
	ja	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movl	%edx, %r12d
	movq	%rdi, %r15
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_A_SF_OP@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_t3_read_reg
	movq	_F_BUSY@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	je	LBB0_5
## %bb.4:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_V_CONT
	movl	%eax, %r12d
	decl	%ebx
	movl	%ebx, %edi
	callq	_V_BYTECNT
	orl	%eax, %r12d
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	callq	_t3_write_reg
	movl	(%r13), %esi
	movl	(%r14), %edx
	movq	_SF_ATTEMPTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	movl	$10, %r9d
	callq	_t3_wait_op_done
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_A_SF_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t3_read_reg
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_A_SF_OP,4,2                    ## @A_SF_OP
	.comm	_F_BUSY,4,2                     ## @F_BUSY
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_SF_ATTEMPTS,4,2                ## @SF_ATTEMPTS
	.comm	_A_SF_DATA,4,2                  ## @A_SF_DATA
	.no_dead_strip	_sf1_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sf1_read
_sf1_read:                              ; @sf1_read
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	w8, w1, #5
	cmn	w8, #5
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
Lloh2:
	adrp	x24, _A_SF_OP@GOTPAGE
Lloh3:
	ldr	x24, [x24, _A_SF_OP@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_t3_read_reg
Lloh4:
	adrp	x25, _F_BUSY@GOTPAGE
Lloh5:
	ldr	x25, [x25, _F_BUSY@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w23, [x24]
	mov	x0, x22
	bl	_V_CONT
	mov	x22, x0
	sub	w0, w21, #1
	bl	_V_BYTECNT
	orr	w2, w0, w22
	mov	x0, x20
	mov	x1, x23
	bl	_t3_write_reg
	ldr	w1, [x24]
	ldr	w2, [x25]
Lloh8:
	adrp	x8, _SF_ATTEMPTS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SF_ATTEMPTS@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	mov	x0, x20
	mov	w3, #0
	mov	w5, #10
	bl	_t3_wait_op_done
	cbnz	w0, LBB0_5
; %bb.7:
Lloh11:
	adrp	x8, _A_SF_DATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _A_SF_DATA@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t3_read_reg
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_A_SF_OP,4,2                    ; @A_SF_OP
	.comm	_F_BUSY,4,2                     ; @F_BUSY
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_SF_ATTEMPTS,4,2                ; @SF_ATTEMPTS
	.comm	_A_SF_DATA,4,2                  ; @A_SF_DATA
	.no_dead_strip	_sf1_read
.subsections_via_symbols
