	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpi2c_imx_write_txfifo
_lpi2c_imx_write_txfifo:                ## @lpi2c_imx_write_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, %r14
	movq	_LPI2C_MFSR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	40(%r14), %rdi
	callq	_readl
	movzbl	%al, %ebx
	cmpl	(%r14), %ebx
	jae	LBB0_4
## %bb.1:
	movq	_LPI2C_MTDR@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	cmpq	16(%r14), %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r14), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%r14)
	movl	(%rcx,%rax,4), %edi
	movq	(%r15), %rsi
	addq	40(%r14), %rsi
	callq	_writel
	incl	%ebx
	cmpl	(%r14), %ebx
	jb	LBB0_2
LBB0_4:
	movq	8(%r14), %rax
	cmpq	16(%r14), %rax
	jge	LBB0_6
## %bb.5:
	movq	_MIER_TDIE@GOTPCREL(%rip), %rax
	movq	_MIER_NDIE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lpi2c_imx_intctrl              ## TAILCALL
LBB0_6:
	addq	$32, %r14
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_complete                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LPI2C_MFSR,8,3                 ## @LPI2C_MFSR
	.comm	_LPI2C_MTDR,8,3                 ## @LPI2C_MTDR
	.comm	_MIER_TDIE,4,2                  ## @MIER_TDIE
	.comm	_MIER_NDIE,4,2                  ## @MIER_NDIE
	.no_dead_strip	_lpi2c_imx_write_txfifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpi2c_imx_write_txfifo
_lpi2c_imx_write_txfifo:                ; @lpi2c_imx_write_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
	ldr	x8, [x0, #40]
Lloh0:
	adrp	x9, _LPI2C_MFSR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LPI2C_MFSR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	and	w20, w0, #0xff
	ldr	w8, [x19]
	cmp	w20, w8
	b.hs	LBB0_4
; %bb.1:
Lloh3:
	adrp	x21, _LPI2C_MTDR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _LPI2C_MTDR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x19, #24]
	add	x10, x8, #1
	str	x10, [x19, #8]
	ldr	w0, [x9, x8, lsl #2]
	ldr	x8, [x19, #40]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lo	LBB0_2
LBB0_4:
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.5:
Lloh5:
	adrp	x8, _MIER_TDIE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MIER_TDIE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _MIER_NDIE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MIER_NDIE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	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
	b	_lpi2c_imx_intctrl
LBB0_6:
	add	x0, x19, #32
	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
	b	_complete
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LPI2C_MFSR,8,3                 ; @LPI2C_MFSR
	.comm	_LPI2C_MTDR,8,3                 ; @LPI2C_MTDR
	.comm	_MIER_TDIE,4,2                  ; @MIER_TDIE
	.comm	_MIER_NDIE,4,2                  ; @MIER_NDIE
	.no_dead_strip	_lpi2c_imx_write_txfifo
.subsections_via_symbols
