	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_i2c_master_xfer_one
_uniphier_i2c_master_xfer_one:          ## @uniphier_i2c_master_xfer_one
	.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
	movl	%edx, %r15d
	movq	%rsi, %rax
	movq	%rdi, %r14
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	12(%rsi), %esi
	movl	4(%rax), %ecx
	movl	8(%rax), %edx
	testl	%edi, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_uniphier_i2c_rx
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	callq	_uniphier_i2c_tx
LBB0_3:
	movl	%eax, %ebx
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_9
## %bb.4:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.5:
	cmpl	%eax, %ebx
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_uniphier_i2c_stop
	testl	%ebx, %ebx
	movl	%ebx, %r15d
	cmovel	%eax, %r15d
	testl	%eax, %eax
	cmovel	%ebx, %r15d
	je	LBB0_9
LBB0_8:
	movq	%r14, %rdi
	callq	_i2c_recover_bus
	movl	%r15d, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%ebx, %r15d
	cmpl	%eax, %ebx
	je	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_uniphier_i2c_master_xfer_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_i2c_master_xfer_one
_uniphier_i2c_master_xfer_one:          ; @uniphier_i2c_master_xfer_one
	.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	x21, x2
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w1, [x1, #12]
	ldp	w3, w2, [x8, #4]
	ldr	w10, [x8]
	tst	w9, w10
	b.eq	LBB0_2
; %bb.1:
	bl	_uniphier_i2c_rx
	b	LBB0_3
LBB0_2:
	bl	_uniphier_i2c_tx
LBB0_3:
	mov	x20, x0
Lloh3:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_10
; %bb.4:
Lloh6:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w8, w8
	cbz	w21, LBB0_8
; %bb.5:
	cmp	w20, w8
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_uniphier_i2c_stop
	cmp	w20, #0
	ccmp	w0, #0, #4, eq
	csel	w8, w0, w20, ne
	cbz	w0, LBB0_10
; %bb.7:
	mov	x20, x8
	b	LBB0_9
LBB0_8:
	cmp	w20, w8
	b.ne	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_i2c_recover_bus
LBB0_10:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_uniphier_i2c_master_xfer_one
.subsections_via_symbols
