	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_i2c_xfer_byte
_uniphier_i2c_xfer_byte:                ## @uniphier_i2c_xfer_byte
	.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	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_i2c_get_adapdata
	movq	%rax, %r15
	leaq	8(%rax), %r13
	movq	%r13, %rdi
	callq	_reinit_completion
	movq	_UNIPHIER_I2C_DTRM_IRQEN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_UNIPHIER_I2C_DTRM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	movl	%ebx, %edi
	callq	_writel
	movl	4(%r12), %esi
	movq	%r13, %rdi
	callq	_wait_for_completion_timeout
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	movq	_UNIPHIER_I2C_DREC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r15), %rdi
	callq	_readl
	movl	%eax, %ecx
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movl	%ecx, (%r14)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNIPHIER_I2C_DTRM_IRQEN,4,2    ## @UNIPHIER_I2C_DTRM_IRQEN
	.comm	_UNIPHIER_I2C_DTRM,8,3          ## @UNIPHIER_I2C_DTRM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"transaction timeout\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_UNIPHIER_I2C_DREC,8,3          ## @UNIPHIER_I2C_DREC
	.no_dead_strip	_uniphier_i2c_xfer_byte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_i2c_xfer_byte
_uniphier_i2c_xfer_byte:                ; @uniphier_i2c_xfer_byte
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_i2c_get_adapdata
	mov	x21, x0
	add	x23, x0, #8
	mov	x0, x23
	bl	_reinit_completion
Lloh0:
	adrp	x8, _UNIPHIER_I2C_DTRM_IRQEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UNIPHIER_I2C_DTRM_IRQEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w0, w8, w22
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _UNIPHIER_I2C_DTRM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _UNIPHIER_I2C_DTRM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w1, [x20, #4]
	mov	x0, x23
	bl	_wait_for_completion_timeout
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh8:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
	ldr	x8, [x21]
Lloh11:
	adrp	x9, _UNIPHIER_I2C_DREC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _UNIPHIER_I2C_DREC@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	cbz	x19, LBB0_4
; %bb.3:
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_UNIPHIER_I2C_DTRM_IRQEN,4,2    ; @UNIPHIER_I2C_DTRM_IRQEN
	.comm	_UNIPHIER_I2C_DTRM,8,3          ; @UNIPHIER_I2C_DTRM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"transaction timeout\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_UNIPHIER_I2C_DREC,8,3          ; @UNIPHIER_I2C_DREC
	.no_dead_strip	_uniphier_i2c_xfer_byte
.subsections_via_symbols
