	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flush_i2c_fifo
_flush_i2c_fifo:                        ## @flush_i2c_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
	movq	%rdi, %r14
	movq	_I2C_CR_FTX@GOTPCREL(%rip), %rax
	movq	_I2C_CR_FRX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_I2C_CR@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	xorl	%r15d, %r15d
	movq	_jiffies@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r15d
	cmpl	$10, %r15d
	je	LBB0_7
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	(%r12), %rdi
	movq	16(%r14), %rbx
	addq	%rdi, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rsi
	callq	_time_after
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	(%r13), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	_I2C_CR_FRX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_I2C_CR_FTX@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	(%r12), %rdi
	jmp	LBB0_2
LBB0_4:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	$10, %edx
	callq	_dev_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_CR_FTX,4,2                 ## @I2C_CR_FTX
	.comm	_I2C_CR_FRX,4,2                 ## @I2C_CR_FRX
	.comm	_I2C_CR,8,3                     ## @I2C_CR
	.comm	_jiffies,8,3                    ## @jiffies
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"flushing operation timed out giving up after %d attempts"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_LOOP_ATTEMPTS,4,2              ## @LOOP_ATTEMPTS
	.no_dead_strip	_flush_i2c_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flush_i2c_fifo
_flush_i2c_fifo:                        ; @flush_i2c_fifo
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _I2C_CR_FTX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _I2C_CR_FTX@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _I2C_CR_FRX@GOTPAGE
Lloh3:
	ldr	x22, [x22, _I2C_CR_FRX@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w0, w9, w8
	ldr	x8, [x19, #8]
Lloh4:
	adrp	x23, _I2C_CR@GOTPAGE
Lloh5:
	ldr	x23, [x23, _I2C_CR@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x1, x9, x8
	bl	_writel
	mov	w24, #0
Lloh6:
	adrp	x25, _jiffies@GOTPAGE
Lloh7:
	ldr	x25, [x25, _jiffies@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w24, w24, #1
	cmp	w24, #10
	b.eq	LBB0_8
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	ldr	x0, [x25]
	ldr	x8, [x19, #16]
	add	x20, x8, x0
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x1, x20
	bl	_time_after
	cbnz	w0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=2
	ldr	x0, [x25]
	b	LBB0_3
LBB0_6:
	mov	w0, #0
LBB0_7:
	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_8:
	ldr	x0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #10
	bl	_dev_err
Lloh10:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_CR_FTX,4,2                 ; @I2C_CR_FTX
	.comm	_I2C_CR_FRX,4,2                 ; @I2C_CR_FRX
	.comm	_I2C_CR,8,3                     ; @I2C_CR
	.comm	_jiffies,8,3                    ; @jiffies
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"flushing operation timed out giving up after %d attempts"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_LOOP_ATTEMPTS,4,2              ; @LOOP_ATTEMPTS
	.no_dead_strip	_flush_i2c_fifo
.subsections_via_symbols
