	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stfsm_read_fifo
_stfsm_read_fifo:                       ## @stfsm_read_fifo
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	testb	$3, %r14b
	setne	%al
	testb	$3, %r15b
	setne	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_BUG_ON
	cmpl	$4, %r15d
	jb	LBB0_5
## %bb.1:
	sarl	$2, %r15d
	movq	_SPI_FAST_SEQ_DATA_REG@GOTPCREL(%rip), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	callq	_udelay
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_stfsm_fifo_available
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_min
	movl	%eax, %r12d
	movq	(%r13), %rdi
	addq	(%rbx), %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_readsl
	movslq	%r12d, %rax
	leaq	(%r14,%rax,4), %r14
	subl	%r12d, %r15d
	jne	LBB0_3
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reading %d bytes from FIFO\n"

	.comm	_SPI_FAST_SEQ_DATA_REG,8,3      ## @SPI_FAST_SEQ_DATA_REG
	.no_dead_strip	_stfsm_read_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stfsm_read_fifo
_stfsm_read_fifo:                       ; @stfsm_read_fifo
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	tst	x19, #0x3
	cset	w8, ne
	tst	w21, #0x3
	cset	w9, ne
	orr	w0, w8, w9
	bl	_BUG_ON
	cmp	w21, #4
	b.lo	LBB0_5
; %bb.1:
	asr	w21, w21, #2
Lloh2:
	adrp	x23, _SPI_FAST_SEQ_DATA_REG@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SPI_FAST_SEQ_DATA_REG@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	bl	_udelay
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_stfsm_fifo_available
	cbz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x21
	bl	_min
	mov	x22, x0
	sub	w21, w21, w0
	ldr	x8, [x20]
	ldr	x9, [x23]
	add	x0, x9, x8
	mov	x1, x19
	mov	x2, x22
	bl	_readsl
	add	x19, x19, w22, sxtw #2
	cbnz	w21, LBB0_3
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reading %d bytes from FIFO\n"

	.comm	_SPI_FAST_SEQ_DATA_REG,8,3      ; @SPI_FAST_SEQ_DATA_REG
	.no_dead_strip	_stfsm_read_fifo
.subsections_via_symbols
