	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zx2967_i2c_fill_tx_fifo
_zx2967_i2c_fill_tx_fifo:               ## @zx2967_i2c_fill_tx_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rsi
	movq	_I2C_FIFO_MAX@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_REG_DATA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	%rbx, %rdi
	cmpq	%rax, %rcx
	jbe	LBB0_3
## %bb.4:
	movq	%rax, %rcx
	callq	_zx2967_i2c_writesb
	movq	(%r14), %rax
	subq	%rax, (%rbx)
	movq	(%r14), %rax
	shlq	$2, %rax
	addq	8(%rbx), %rax
	jmp	LBB0_5
LBB0_1:
	movq	%rbx, %rdi
	callq	_DEV
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	callq	_zx2967_i2c_writesb
	movq	$0, (%rbx)
	xorl	%eax, %eax
LBB0_5:
	movq	%rax, 8(%rbx)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_barrier
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"residue is %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I2C_FIFO_MAX,8,3               ## @I2C_FIFO_MAX
	.comm	_REG_DATA,4,2                   ## @REG_DATA
	.no_dead_strip	_zx2967_i2c_fill_tx_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zx2967_i2c_fill_tx_fifo
_zx2967_i2c_fill_tx_fifo:               ; @zx2967_i2c_fill_tx_fifo
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x3, [x0]
	cbz	x3, LBB0_3
; %bb.1:
Lloh0:
	adrp	x20, _I2C_FIFO_MAX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _I2C_FIFO_MAX@GOTPAGEOFF]
	ldr	x1, [x19, #8]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _REG_DATA@GOTPAGE
Lloh3:
	ldr	x9, [x9, _REG_DATA@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x9]
	mov	x0, x19
	cmp	x3, x8
	b.ls	LBB0_4
; %bb.2:
	mov	x3, x8
	bl	_zx2967_i2c_writesb
	ldr	x8, [x20]
	ldp	x9, x10, [x19]
	sub	x8, x9, x8
	str	x8, [x19]
	ldr	x8, [x20]
	add	x8, x10, x8, lsl #2
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_DEV
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_dev_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	bl	_zx2967_i2c_writesb
	mov	x8, #0
	str	xzr, [x19]
LBB0_5:
	str	x8, [x19, #8]
	bl	_barrier
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"residue is %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I2C_FIFO_MAX,8,3               ; @I2C_FIFO_MAX
	.comm	_REG_DATA,4,2                   ; @REG_DATA
	.no_dead_strip	_zx2967_i2c_fill_tx_fifo
.subsections_via_symbols
