	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_kona_i2c_read_fifo_single
_bcm_kona_i2c_read_fifo_single:         ## @bcm_kona_i2c_read_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_I2C_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	12(%r15), %r13
	movq	%r13, %rdi
	callq	_reinit_completion
	movq	_IER_READ_COMPLETE_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	callq	_writel
	movq	_RXFCR_NACK_EN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r12d
	movq	_RXFCR_READ_COUNT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	shll	%cl, %ebx
	orl	%r12d, %ebx
	movq	_RXFCR_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_wait_for_completion_timeout
	movq	%rax, %r13
	movq	_IER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_writel
	testq	%r13, %r13
	je	LBB0_6
## %bb.1:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	%eax, %ebx
	movq	_RXFIFORDOUT_OFFSET@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	(%r15), %rdi
	callq	_readl
	movl	%eax, (%r14,%r12,4)
	incq	%r12
	cmpl	%r12d, %ebx
	jne	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_6:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %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_READ_COMPLETE_INT_MASK,4,2 ## @IER_READ_COMPLETE_INT_MASK
	.comm	_IER_OFFSET,8,3                 ## @IER_OFFSET
	.comm	_RXFCR_NACK_EN_SHIFT,4,2        ## @RXFCR_NACK_EN_SHIFT
	.comm	_RXFCR_READ_COUNT_SHIFT,4,2     ## @RXFCR_READ_COUNT_SHIFT
	.comm	_RXFCR_OFFSET,8,3               ## @RXFCR_OFFSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RX FIFO time out\n"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_RXFIFORDOUT_OFFSET,8,3         ## @RXFIFORDOUT_OFFSET
	.no_dead_strip	_bcm_kona_i2c_read_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_read_fifo_single
_bcm_kona_i2c_read_fifo_single:         ; @bcm_kona_i2c_read_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	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _I2C_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x23, x0
	add	x24, x20, #12
	mov	x0, x24
	bl	_reinit_completion
Lloh3:
	adrp	x8, _IER_READ_COMPLETE_INT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IER_READ_COMPLETE_INT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x8, [x20]
Lloh6:
	adrp	x25, _IER_OFFSET@GOTPAGE
Lloh7:
	ldr	x25, [x25, _IER_OFFSET@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x1, x9, x8
	bl	_writel
Lloh8:
	adrp	x8, _RXFCR_NACK_EN_SHIFT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RXFCR_NACK_EN_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	w8, w22, w8
Lloh11:
	adrp	x9, _RXFCR_READ_COUNT_SHIFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RXFCR_READ_COUNT_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	lsl	w9, w19, w9
	orr	w0, w9, w8
	ldr	x8, [x20]
Lloh14:
	adrp	x9, _RXFCR_OFFSET@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RXFCR_OFFSET@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x24
	mov	x1, x23
	bl	_wait_for_completion_timeout
	mov	x22, x0
	ldr	x8, [x20]
	ldr	x9, [x25]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	cbz	x22, LBB0_5
; %bb.1:
	cbz	w19, LBB0_4
; %bb.2:
Lloh17:
	adrp	x22, _RXFIFORDOUT_OFFSET@GOTPAGE
Lloh18:
	ldr	x22, [x22, _RXFIFORDOUT_OFFSET@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	str	w0, [x21], #4
	subs	w19, w19, #1
	b.ne	LBB0_3
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	w0, [x20, #8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh21:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_TIMEOUT,4,2                ; @I2C_TIMEOUT
	.comm	_IER_READ_COMPLETE_INT_MASK,4,2 ; @IER_READ_COMPLETE_INT_MASK
	.comm	_IER_OFFSET,8,3                 ; @IER_OFFSET
	.comm	_RXFCR_NACK_EN_SHIFT,4,2        ; @RXFCR_NACK_EN_SHIFT
	.comm	_RXFCR_READ_COUNT_SHIFT,4,2     ; @RXFCR_READ_COUNT_SHIFT
	.comm	_RXFCR_OFFSET,8,3               ; @RXFCR_OFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RX FIFO time out\n"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_RXFIFORDOUT_OFFSET,8,3         ; @RXFIFORDOUT_OFFSET
	.no_dead_strip	_bcm_kona_i2c_read_fifo_single
.subsections_via_symbols
