	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_kona_i2c_write_fifo_single
_bcm_kona_i2c_write_fifo_single:        ## @bcm_kona_i2c_write_fifo_single
	.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
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_I2C_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	leaq	16(%r14), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_reinit_completion
	movq	_IER_FIFO_INT_EN_MASK@GOTPCREL(%rip), %rax
	movq	_IER_NOACK_EN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_IER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	movl	20(%r14), %edi
	callq	_disable_irq
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.1:
	movl	%r13d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%r15,4), %edi
	movq	_DAT_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writel
	incq	%r15
	cmpq	%r15, %r13
	jne	LBB0_2
LBB0_3:
	movl	20(%r14), %edi
	callq	_enable_irq
	movq	_FIFO_STATUS_OFFSET@GOTPCREL(%rip), %r12
	movq	_FIFO_STATUS_TXFIFO_EMPTY_MASK@GOTPCREL(%rip), %r13
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_wait_for_completion_timeout
	movq	%rax, %rbx
	movq	(%r12), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, (%r13)
	je	LBB0_4
LBB0_6:
	movq	_IER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_writel
	movq	_CS_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_readl
	movq	_CS_ACK_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_8
## %bb.7:
	testq	%rbx, %rbx
	jne	LBB0_9
LBB0_8:
	testl	%eax, %eax
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmovneq	%rax, %rsi
	movl	(%r14), %edi
	callq	_dev_err
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_TIMEOUT,4,2                ## @I2C_TIMEOUT
	.comm	_IER_FIFO_INT_EN_MASK,4,2       ## @IER_FIFO_INT_EN_MASK
	.comm	_IER_NOACK_EN_MASK,4,2          ## @IER_NOACK_EN_MASK
	.comm	_IER_OFFSET,8,3                 ## @IER_OFFSET
	.comm	_DAT_OFFSET,8,3                 ## @DAT_OFFSET
	.comm	_FIFO_STATUS_OFFSET,8,3         ## @FIFO_STATUS_OFFSET
	.comm	_FIFO_STATUS_TXFIFO_EMPTY_MASK,4,2 ## @FIFO_STATUS_TXFIFO_EMPTY_MASK
	.comm	_CS_OFFSET,8,3                  ## @CS_OFFSET
	.comm	_CS_ACK_MASK,4,2                ## @CS_ACK_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected NAK\n"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
L_.str.1:                               ## @.str.1
	.asciz	"completion timed out\n"

	.no_dead_strip	_bcm_kona_i2c_write_fifo_single
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_kona_i2c_write_fifo_single
_bcm_kona_i2c_write_fifo_single:        ; @bcm_kona_i2c_write_fifo_single
	.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	x23, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _I2C_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x20, x0
	add	x21, x19, #16
	mov	x0, x21
	bl	_reinit_completion
Lloh3:
	adrp	x8, _IER_FIFO_INT_EN_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IER_FIFO_INT_EN_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _IER_NOACK_EN_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IER_NOACK_EN_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x24, _IER_OFFSET@GOTPAGE
Lloh10:
	ldr	x24, [x24, _IER_OFFSET@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x19, #20]
	bl	_disable_irq
	cbz	w23, LBB0_3
; %bb.1:
	mov	w23, w23
Lloh11:
	adrp	x25, _DAT_OFFSET@GOTPAGE
Lloh12:
	ldr	x25, [x25, _DAT_OFFSET@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22], #4
	ldr	x8, [x19, #8]
	ldr	x9, [x25]
	add	x1, x9, x8
	bl	_writel
	subs	x23, x23, #1
	b.ne	LBB0_2
LBB0_3:
	ldr	w0, [x19, #20]
	bl	_enable_irq
Lloh13:
	adrp	x22, _FIFO_STATUS_OFFSET@GOTPAGE
Lloh14:
	ldr	x22, [x22, _FIFO_STATUS_OFFSET@GOTPAGEOFF]
Lloh15:
	adrp	x23, _FIFO_STATUS_TXFIFO_EMPTY_MASK@GOTPAGE
Lloh16:
	ldr	x23, [x23, _FIFO_STATUS_TXFIFO_EMPTY_MASK@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_wait_for_completion_timeout
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	cbz	x20, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_4
LBB0_6:
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #8]
Lloh17:
	adrp	x9, _CS_OFFSET@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CS_OFFSET@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x8, x0
	mov	w0, #0
Lloh20:
	adrp	x9, _CS_ACK_MASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CS_ACK_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	x20, #0, #4, eq
	b.ne	LBB0_8
; %bb.7:
Lloh23:
	adrp	x9, l_.str.1@PAGE
Lloh24:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh25:
	adrp	x10, l_.str@PAGE
Lloh26:
	add	x10, x10, l_.str@PAGEOFF
	cmp	w8, #0
	csel	x1, x10, x9, ne
	ldr	w0, [x19]
	bl	_dev_err
Lloh27:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_TIMEOUT,4,2                ; @I2C_TIMEOUT
	.comm	_IER_FIFO_INT_EN_MASK,4,2       ; @IER_FIFO_INT_EN_MASK
	.comm	_IER_NOACK_EN_MASK,4,2          ; @IER_NOACK_EN_MASK
	.comm	_IER_OFFSET,8,3                 ; @IER_OFFSET
	.comm	_DAT_OFFSET,8,3                 ; @DAT_OFFSET
	.comm	_FIFO_STATUS_OFFSET,8,3         ; @FIFO_STATUS_OFFSET
	.comm	_FIFO_STATUS_TXFIFO_EMPTY_MASK,4,2 ; @FIFO_STATUS_TXFIFO_EMPTY_MASK
	.comm	_CS_OFFSET,8,3                  ; @CS_OFFSET
	.comm	_CS_ACK_MASK,4,2                ; @CS_ACK_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected NAK\n"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
l_.str.1:                               ; @.str.1
	.asciz	"completion timed out\n"

	.no_dead_strip	_bcm_kona_i2c_write_fifo_single
.subsections_via_symbols
