	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpi2c_imx_txfifo_empty
_lpi2c_imx_txfifo_empty:                ## @lpi2c_imx_txfifo_empty
	.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
	movq	%rdi, %r15
	movq	_jiffies@GOTPCREL(%rip), %r13
	movq	(%r13), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_LPI2C_MFSR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	movl	%eax, %r12d
	movq	_LPI2C_MSR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	movq	_MSR_NDF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rbx
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msecs_to_jiffies
	leaq	(%rax,%r14), %rsi
	movq	%rbx, %rdi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_schedule
	testb	%r12b, %r12b
	jne	LBB0_1
	jmp	LBB0_6
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %r14
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	_ETIMEDOUT@GOTPCREL(%rip), %r14
LBB0_5:
	movq	%r15, %rdi
	callq	_dev_dbg
	xorl	%ebx, %ebx
	subl	(%r14), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_LPI2C_MFSR,8,3                 ## @LPI2C_MFSR
	.comm	_LPI2C_MSR,8,3                  ## @LPI2C_MSR
	.comm	_MSR_NDF,4,2                    ## @MSR_NDF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NDF detected\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"txfifo empty timeout\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_lpi2c_imx_txfifo_empty
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpi2c_imx_txfifo_empty
_lpi2c_imx_txfifo_empty:                ; @lpi2c_imx_txfifo_empty
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x24, _jiffies@GOTPAGE
Lloh1:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
	ldr	x25, [x24]
Lloh2:
	adrp	x26, _LPI2C_MFSR@GOTPAGE
Lloh3:
	ldr	x26, [x26, _LPI2C_MFSR@GOTPAGEOFF]
Lloh4:
	adrp	x27, _LPI2C_MSR@GOTPAGE
Lloh5:
	ldr	x27, [x27, _LPI2C_MSR@GOTPAGEOFF]
Lloh6:
	adrp	x28, _MSR_NDF@GOTPAGE
Lloh7:
	ldr	x28, [x28, _MSR_NDF@GOTPAGEOFF]
Lloh8:
	adrp	x23, _EIO@GOTPAGE
Lloh9:
	ldr	x23, [x23, _EIO@GOTPAGEOFF]
Lloh10:
	adrp	x20, l_.str@PAGE
Lloh11:
	add	x20, x20, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x26]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	x9, [x27]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x28]
	tst	w8, w0
	b.ne	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x22, [x24]
	mov	w0, #500
	bl	_msecs_to_jiffies
	add	x1, x0, x25
	mov	x0, x22
	bl	_time_after
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	and	w21, w21, #0xff
	bl	_schedule
	cbnz	w21, LBB0_1
; %bb.4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh12:
	adrp	x20, l_.str.1@PAGE
Lloh13:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh14:
	adrp	x23, _ETIMEDOUT@GOTPAGE
Lloh15:
	ldr	x23, [x23, _ETIMEDOUT@GOTPAGEOFF]
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_dev_dbg
	ldr	w8, [x23]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_LPI2C_MFSR,8,3                 ; @LPI2C_MFSR
	.comm	_LPI2C_MSR,8,3                  ; @LPI2C_MSR
	.comm	_MSR_NDF,4,2                    ; @MSR_NDF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NDF detected\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"txfifo empty timeout\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_lpi2c_imx_txfifo_empty
.subsections_via_symbols
