	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zx2967_i2c_flush_fifos
_zx2967_i2c_flush_fifos:                ## @zx2967_i2c_flush_fifos
	.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
	cmpq	$0, (%rdi)
	movq	_I2C_RFIFO_RESET@GOTPCREL(%rip), %rax
	cmoveq	_I2C_WFIFO_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_REG_RDCONF@GOTPCREL(%rip), %rax
	cmoveq	_REG_WRCONF@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %esi
	callq	_zx2967_i2c_readl
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_zx2967_i2c_writel              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_RDCONF,4,2                 ## @REG_RDCONF
	.comm	_I2C_RFIFO_RESET,4,2            ## @I2C_RFIFO_RESET
	.comm	_REG_WRCONF,4,2                 ## @REG_WRCONF
	.comm	_I2C_WFIFO_RESET,4,2            ## @I2C_WFIFO_RESET
	.no_dead_strip	_zx2967_i2c_flush_fifos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zx2967_i2c_flush_fifos
_zx2967_i2c_flush_fifos:                ; @zx2967_i2c_flush_fifos
	.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
Lloh0:
	adrp	x8, _I2C_WFIFO_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_WFIFO_RESET@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh2:
	adrp	x10, _I2C_RFIFO_RESET@GOTPAGE
Lloh3:
	ldr	x10, [x10, _I2C_RFIFO_RESET@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x8, x10, eq
	ldr	w21, [x8]
Lloh4:
	adrp	x8, _REG_WRCONF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _REG_WRCONF@GOTPAGEOFF]
Lloh6:
	adrp	x9, _REG_RDCONF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _REG_RDCONF@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w20, [x8]
	mov	x1, x20
	bl	_zx2967_i2c_readl
	orr	w1, w0, w21
	mov	x0, x19
	mov	x2, x20
	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	_zx2967_i2c_writel
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_RDCONF,4,2                 ; @REG_RDCONF
	.comm	_I2C_RFIFO_RESET,4,2            ; @I2C_RFIFO_RESET
	.comm	_REG_WRCONF,4,2                 ; @REG_WRCONF
	.comm	_I2C_WFIFO_RESET,4,2            ; @I2C_WFIFO_RESET
	.no_dead_strip	_zx2967_i2c_flush_fifos
.subsections_via_symbols
