	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spi_fill_txfifo
_spi_fill_txfifo:                       ## @spi_fill_txfifo
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_5
## %bb.1:
	movq	16(%rbx), %rdx
	movq	_FIFO_SIZE@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rdx
	jge	LBB0_5
## %bb.2:
	movq	_ECSPI_TXDATA@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	32(%rbx), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, (%rbx)
	movl	(%rcx,%rax,4), %edx
	movq	%rbx, %rdi
	callq	_WR4
	movq	16(%rbx), %rdx
	incq	%rdx
	movq	%rdx, 16(%rbx)
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	(%r14), %rdx
	jl	LBB0_3
LBB0_5:
	cmpq	%rcx, %rax
	jne	LBB0_7
## %bb.6:
	movq	_INTREG_TDREN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	24(%rbx), %eax
	movq	_INTREG_TEEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 24(%rbx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIFO_SIZE,8,3                  ## @FIFO_SIZE
	.comm	_ECSPI_TXDATA,4,2               ## @ECSPI_TXDATA
	.comm	_INTREG_TDREN,4,2               ## @INTREG_TDREN
	.comm	_INTREG_TEEN,4,2                ## @INTREG_TEEN
	.no_dead_strip	_spi_fill_txfifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spi_fill_txfifo
_spi_fill_txfifo:                       ; @spi_fill_txfifo
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldp	x8, x9, [x0]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.1:
	ldr	x10, [x19, #16]
Lloh0:
	adrp	x20, _FIFO_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FIFO_SIZE@GOTPAGEOFF]
	ldr	x11, [x20]
	cmp	x10, x11
	b.ge	LBB0_5
; %bb.2:
Lloh2:
	adrp	x21, _ECSPI_TXDATA@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ECSPI_TXDATA@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	ldr	x9, [x19, #32]
	add	x10, x8, #1
	str	x10, [x19]
	ldr	w2, [x9, x8, lsl #2]
	mov	x0, x19
	bl	_WR4
	ldp	x9, x8, [x19, #8]
	add	x10, x8, #1
	str	x10, [x19, #16]
	ldr	x8, [x19]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x20]
	cmp	x10, x11
	b.lt	LBB0_3
LBB0_5:
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	w8, [x19, #24]
Lloh4:
	adrp	x9, _INTREG_TDREN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _INTREG_TDREN@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh7:
	adrp	x9, _INTREG_TEEN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _INTREG_TEEN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #24]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FIFO_SIZE,8,3                  ; @FIFO_SIZE
	.comm	_ECSPI_TXDATA,4,2               ; @ECSPI_TXDATA
	.comm	_INTREG_TDREN,4,2               ; @INTREG_TDREN
	.comm	_INTREG_TEEN,4,2                ; @INTREG_TEEN
	.no_dead_strip	_spi_fill_txfifo
.subsections_via_symbols
