	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_fi2c_check_bus_busy
_uniphier_fi2c_check_bus_busy:          ## @uniphier_fi2c_check_bus_busy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_i2c_get_adapdata
	movq	%rax, %rbx
	movq	_UNIPHIER_FI2C_SR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_UNIPHIER_FI2C_SR_DB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%rbx)
	cmpq	$4, %rax
	jl	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_uniphier_fi2c_recover
	movq	$0, (%rbx)
LBB0_3:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_4:
	movq	$0, (%rbx)
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNIPHIER_FI2C_SR,8,3           ## @UNIPHIER_FI2C_SR
	.comm	_UNIPHIER_FI2C_SR_DB,4,2        ## @UNIPHIER_FI2C_SR_DB
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_uniphier_fi2c_check_bus_busy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_fi2c_check_bus_busy
_uniphier_fi2c_check_bus_busy:          ; @uniphier_fi2c_check_bus_busy
	.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
	bl	_i2c_get_adapdata
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _UNIPHIER_FI2C_SR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UNIPHIER_FI2C_SR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh3:
	adrp	x8, _UNIPHIER_FI2C_SR_DB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UNIPHIER_FI2C_SR_DB@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x19]
	add	x9, x8, #1
	str	x9, [x19]
	cmp	x8, #4
	b.lt	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_uniphier_fi2c_recover
	str	xzr, [x19]
LBB0_3:
Lloh6:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #0
	str	xzr, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_UNIPHIER_FI2C_SR,8,3           ; @UNIPHIER_FI2C_SR
	.comm	_UNIPHIER_FI2C_SR_DB,4,2        ; @UNIPHIER_FI2C_SR_DB
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_uniphier_fi2c_check_bus_busy
.subsections_via_symbols
