	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r100_hw_i2c_xfer
_r100_hw_i2c_xfer:                      ## @r100_hw_i2c_xfer
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	callq	_i2c_get_adapdata
	movq	%rax, %r15
	movq	16(%rax), %rax
	movq	(%rax), %rbx
	leaq	4(%rbx), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	leaq	8(%rbx), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_radeon_get_i2c_prescale
	movq	_RADEON_I2C_PRESCALE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_RADEON_I2C_DRIVE_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_RADEON_I2C_START@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_RADEON_I2C_STOP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_RADEON_I2C_GO@GOTPCREL(%rip), %r13
	orl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_RADEON_BIOS_6_SCRATCH@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_RREG32
	movl	(%r14), %edi
	movq	_ATOM_S6_HW_I2C_BUSY_STATE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, %esi
	callq	_WREG32
LBB0_2:
	cmpq	$0, 8(%r15)
	je	LBB0_11
## %bb.3:
	movq	_RADEON_I2C_CNTL_0@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_RADEON_I2C_CNTL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_RADEON_I2C_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
LBB0_4:
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	cmpl	$1, %r15d
	jne	LBB0_38
LBB0_6:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	jne	LBB0_40
## %bb.7:
	movq	_RADEON_I2C_DONE@GOTPCREL(%rip), %r14
	movq	_RADEON_I2C_NACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r14), %esi
	movq	_RADEON_I2C_HALT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_RADEON_I2C_SOFT_RST@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%r12d, %edi
	callq	_WREG32
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	addl	%eax, %eax
	movzbl	%al, %esi
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_WREG32
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_WREG32
	movq	_RADEON_I2C_DATA_COUNT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_RADEON_I2C_ADDR_COUNT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	btsl	%eax, %edx
	movq	_RADEON_I2C_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_RADEON_I2C_TIME_LIMIT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$48, %esi
	shll	%cl, %esi
	orl	%edx, %esi
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_WREG32
	movl	%r12d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movl	$32, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_udelay
	movl	%r12d, %edi
	callq	_RREG32
	testl	%eax, (%r13)
	je	LBB0_9
## %bb.34:                              ##   in Loop: Header=BB0_8 Depth=1
	decl	%ebx
	jne	LBB0_8
## %bb.35:
	movl	$1, %r15d
	jmp	LBB0_36
LBB0_11:
	movq	_RADEON_DVI_I2C_CNTL_0@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_RADEON_DVI_I2C_CNTL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	$-132, %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	addl	(%rcx), %eax
	cmpl	$17, %eax
	ja	LBB0_33
## %bb.12:
	movq	_RADEON_DVI_I2C_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_28:
	movl	(%r15), %eax
	cmpl	$130, %eax
	je	LBB0_31
## %bb.29:
	cmpl	$129, %eax
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_32
## %bb.30:
	cmpl	$128, %eax
	jne	LBB0_14
	jmp	LBB0_19
LBB0_13:
	cmpl	$130, (%r15)
	je	LBB0_4
	jmp	LBB0_14
LBB0_9:
	movl	%r12d, %edi
	callq	_RREG32
	movl	$1, %r15d
	testl	%eax, (%r14)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_37
## %bb.10:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_59
LBB0_23:
	movl	(%r15), %eax
	cmpl	$128, %eax
	je	LBB0_31
## %bb.24:
	cmpl	$131, %eax
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_32
## %bb.25:
	cmpl	$130, %eax
	je	LBB0_19
LBB0_14:
	leaq	L_.str(%rip), %rdi
LBB0_15:
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_36:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_59
LBB0_31:
	movq	_R200_SEL_DDC2@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_32:
	movq	_R200_SEL_DDC3@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_26:
	movl	(%r15), %eax
	cmpl	$130, %eax
	je	LBB0_21
## %bb.27:
	cmpl	$128, %eax
	jmp	LBB0_18
LBB0_37:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG
	movq	_RADEON_I2C_ABORT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_WREG32
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_59
LBB0_16:
	movl	(%r15), %eax
	cmpl	$129, %eax
	je	LBB0_21
## %bb.17:
	cmpl	$130, %eax
LBB0_18:
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	jne	LBB0_14
LBB0_19:
	movq	_R200_SEL_DDC1@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %edi
	callq	_R200_DVI_I2C_PIN_SEL
	orl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	cmpl	$1, %r15d
	je	LBB0_6
LBB0_38:
	jl	LBB0_39
LBB0_40:
	movl	%r15d, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_57:                                ##   in Loop: Header=BB0_41 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	incq	%rax
	cmpq	-96(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_58
LBB0_41:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_43 Depth 2
                                        ##       Child Loop BB0_46 Depth 3
                                        ##       Child Loop BB0_52 Depth 3
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	(%rax,%rax,2), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, (%rcx,%rax,8)
	jle	LBB0_57
## %bb.42:                              ##   in Loop: Header=BB0_41 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %r15
	xorl	%r14d, %r14d
	jmp	LBB0_43
	.p2align	4, 0x90
LBB0_47:                                ##   in Loop: Header=BB0_43 Depth=2
	movl	%r12d, %edi
	callq	_RREG32
	movl	%eax, %ebx
	movq	_RADEON_I2C_DONE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_48
LBB0_55:                                ##   in Loop: Header=BB0_43 Depth=2
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	callq	_RREG32
	movzbl	%al, %eax
	movq	16(%r15), %rcx
	movl	%eax, (%rcx,%r14,4)
LBB0_56:                                ##   in Loop: Header=BB0_43 Depth=2
	incq	%r14
	movslq	(%r15), %rax
	cmpq	%rax, %r14
	jge	LBB0_57
LBB0_43:                                ##   Parent Loop BB0_41 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_46 Depth 3
                                        ##       Child Loop BB0_52 Depth 3
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	8(%r15), %ebx
	movq	_RADEON_I2C_NACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RADEON_I2C_DONE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_RADEON_I2C_HALT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_RADEON_I2C_SOFT_RST@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%r12d, %edi
	callq	_WREG32
	movl	4(%r15), %eax
	addl	%eax, %eax
	movzbl	%al, %esi
	testl	%ebx, %ebx
	je	LBB0_50
## %bb.44:                              ##   in Loop: Header=BB0_43 Depth=2
	orl	$1, %esi
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	callq	_WREG32
	movq	_RADEON_I2C_DATA_COUNT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_RADEON_I2C_ADDR_COUNT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	btsl	%eax, %edx
	movq	_RADEON_I2C_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_RADEON_I2C_TIME_LIMIT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$48, %esi
	shll	%cl, %esi
	orl	%edx, %esi
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_WREG32
	movq	_RADEON_I2C_RECEIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	-44(%rbp), %esi                 ## 4-byte Folded Reload
	movl	%r12d, %edi
	callq	_WREG32
	movl	$32, %ebx
	.p2align	4, 0x90
LBB0_46:                                ##   Parent Loop BB0_41 Depth=1
                                        ##     Parent Loop BB0_43 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	$10, %edi
	callq	_udelay
	movl	%r12d, %edi
	callq	_RREG32
	testl	%eax, (%r13)
	je	LBB0_47
## %bb.45:                              ##   in Loop: Header=BB0_46 Depth=3
	decl	%ebx
	jne	LBB0_46
	jmp	LBB0_55
	.p2align	4, 0x90
LBB0_50:                                ##   in Loop: Header=BB0_43 Depth=2
	movl	-72(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_WREG32
	movq	16(%r15), %rax
	movl	(%rax,%r14,4), %esi
	movl	%ebx, %edi
	callq	_WREG32
	movq	_RADEON_I2C_DATA_COUNT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_RADEON_I2C_ADDR_COUNT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	btsl	%eax, %edx
	movq	_RADEON_I2C_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_RADEON_I2C_TIME_LIMIT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$48, %esi
	shll	%cl, %esi
	orl	%edx, %esi
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_WREG32
	movl	%r12d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movl	$32, %ebx
	.p2align	4, 0x90
LBB0_52:                                ##   Parent Loop BB0_41 Depth=1
                                        ##     Parent Loop BB0_43 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	$10, %edi
	callq	_udelay
	movl	%r12d, %edi
	callq	_RREG32
	testl	%eax, (%r13)
	je	LBB0_53
## %bb.51:                              ##   in Loop: Header=BB0_52 Depth=3
	decl	%ebx
	jne	LBB0_52
	jmp	LBB0_56
LBB0_53:                                ##   in Loop: Header=BB0_43 Depth=2
	movl	%r12d, %edi
	callq	_RREG32
	movl	%eax, %ebx
	movq	_RADEON_I2C_DONE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_56
## %bb.54:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_49
LBB0_48:
	leaq	L_.str.3(%rip), %rdi
LBB0_49:
	movl	%ebx, %esi
	callq	_DRM_DEBUG
	movq	_RADEON_I2C_ABORT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_WREG32
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_39:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_59:
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_WREG32
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	callq	_WREG32
	movq	_RADEON_I2C_DONE@GOTPCREL(%rip), %rax
	movq	_RADEON_I2C_NACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_RADEON_I2C_HALT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_RADEON_I2C_SOFT_RST@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	%r12d, %edi
	callq	_WREG32
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 16(%rax)
	je	LBB0_61
## %bb.60:
	movq	_RADEON_BIOS_6_SCRATCH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_RREG32
	movq	_ATOM_S6_HW_I2C_BUSY_STATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edi
	callq	_WREG32
LBB0_61:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_58:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_59
LBB0_21:
	movq	_R200_SEL_DDC3@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %edi
	callq	_R200_DVI_I2C_PIN_SEL
	orl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_4
LBB0_33:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_28
	.long	L0_0_set_28
	.long	L0_0_set_28
	.long	L0_0_set_23
	.long	L0_0_set_23
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_28
	.long	L0_0_set_28
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_28
	.long	L0_0_set_28
	.long	L0_0_set_26
	.long	L0_0_set_26
	.long	L0_0_set_16
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_RADEON_I2C_PRESCALE_SHIFT,4,2  ## @RADEON_I2C_PRESCALE_SHIFT
	.comm	_RADEON_I2C_DRIVE_EN,4,2        ## @RADEON_I2C_DRIVE_EN
	.comm	_RADEON_I2C_START,4,2           ## @RADEON_I2C_START
	.comm	_RADEON_I2C_STOP,4,2            ## @RADEON_I2C_STOP
	.comm	_RADEON_I2C_GO,4,2              ## @RADEON_I2C_GO
	.comm	_RADEON_BIOS_6_SCRATCH,4,2      ## @RADEON_BIOS_6_SCRATCH
	.comm	_ATOM_S6_HW_I2C_BUSY_STATE,4,2  ## @ATOM_S6_HW_I2C_BUSY_STATE
	.comm	_RADEON_I2C_CNTL_0,4,2          ## @RADEON_I2C_CNTL_0
	.comm	_RADEON_I2C_CNTL_1,4,2          ## @RADEON_I2C_CNTL_1
	.comm	_RADEON_I2C_DATA,4,2            ## @RADEON_I2C_DATA
	.comm	_RADEON_DVI_I2C_CNTL_0,4,2      ## @RADEON_DVI_I2C_CNTL_0
	.comm	_RADEON_DVI_I2C_CNTL_1,4,2      ## @RADEON_DVI_I2C_CNTL_1
	.comm	_RADEON_DVI_I2C_DATA,4,2        ## @RADEON_DVI_I2C_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gpio not supported with hw i2c\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_R200_SEL_DDC1,4,2              ## @R200_SEL_DDC1
	.comm	_R200_SEL_DDC3,4,2              ## @R200_SEL_DDC3
	.comm	_R200_SEL_DDC2,4,2              ## @R200_SEL_DDC2
L_.str.1:                               ## @.str.1
	.asciz	"unsupported asic\n"

	.comm	_RADEON_I2C_DONE,4,2            ## @RADEON_I2C_DONE
	.comm	_RADEON_I2C_NACK,4,2            ## @RADEON_I2C_NACK
	.comm	_RADEON_I2C_HALT,4,2            ## @RADEON_I2C_HALT
	.comm	_RADEON_I2C_SOFT_RST,4,2        ## @RADEON_I2C_SOFT_RST
	.comm	_RADEON_I2C_DATA_COUNT_SHIFT,4,2 ## @RADEON_I2C_DATA_COUNT_SHIFT
	.comm	_RADEON_I2C_ADDR_COUNT_SHIFT,4,2 ## @RADEON_I2C_ADDR_COUNT_SHIFT
	.comm	_RADEON_I2C_EN,4,2              ## @RADEON_I2C_EN
	.comm	_RADEON_I2C_TIME_LIMIT_SHIFT,4,2 ## @RADEON_I2C_TIME_LIMIT_SHIFT
L_.str.2:                               ## @.str.2
	.asciz	"i2c write error 0x%08x\n"

	.comm	_RADEON_I2C_ABORT,4,2           ## @RADEON_I2C_ABORT
	.comm	_EIO,4,2                        ## @EIO
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_RADEON_I2C_RECEIVE,4,2         ## @RADEON_I2C_RECEIVE
L_.str.3:                               ## @.str.3
	.asciz	"i2c read error 0x%08x\n"

	.no_dead_strip	_r100_hw_i2c_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r100_hw_i2c_xfer
_r100_hw_i2c_xfer:                      ; @r100_hw_i2c_xfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x2
	str	x1, [sp, #40]                   ; 8-byte Folded Spill
	bl	_i2c_get_adapdata
	mov	x28, x0
	ldr	x8, [x0, #16]
	ldr	x23, [x8]
	add	x20, x23, #4
	mov	x0, x20
	bl	_mutex_lock
	add	x21, x23, #8
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x23
	bl	_radeon_get_i2c_prescale
Lloh0:
	adrp	x8, _RADEON_I2C_PRESCALE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADEON_I2C_PRESCALE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w0, w8
Lloh3:
	adrp	x9, _RADEON_I2C_DRIVE_EN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RADEON_I2C_DRIVE_EN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh6:
	adrp	x9, _RADEON_I2C_START@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RADEON_I2C_START@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _RADEON_I2C_STOP@GOTPAGE
Lloh10:
	ldr	x10, [x10, _RADEON_I2C_STOP@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh11:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh12:
	adrp	x26, _RADEON_I2C_GO@GOTPAGE
Lloh13:
	ldr	x26, [x26, _RADEON_I2C_GO@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w8, w8, w9
	str	w8, [sp, #56]                   ; 4-byte Folded Spill
	ldr	x8, [x23, #16]
Lloh14:
	adrp	x24, _RADEON_BIOS_6_SCRATCH@GOTPAGE
Lloh15:
	ldr	x24, [x24, _RADEON_BIOS_6_SCRATCH@GOTPAGEOFF]
Lloh16:
	adrp	x19, _ATOM_S6_HW_I2C_BUSY_STATE@GOTPAGE
Lloh17:
	ldr	x19, [x19, _ATOM_S6_HW_I2C_BUSY_STATE@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x24]
	bl	_RREG32
	ldr	w8, [x24]
	ldr	w9, [x19]
	orr	w1, w9, w0
	mov	x0, x8
	bl	_WREG32
LBB0_2:
	ldr	x8, [x28, #8]
	cbz	x8, LBB0_5
; %bb.3:
Lloh18:
	adrp	x8, _RADEON_I2C_CNTL_0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RADEON_I2C_CNTL_0@GOTPAGEOFF]
Lloh20:
	ldr	w22, [x8]
Lloh21:
	adrp	x8, _RADEON_I2C_CNTL_1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RADEON_I2C_CNTL_1@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
Lloh24:
	adrp	x8, _RADEON_I2C_DATA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RADEON_I2C_DATA@GOTPAGEOFF]
Lloh26:
	ldr	w27, [x8]
	cmp	w25, #1
	b.eq	LBB0_11
LBB0_4:
	b.ge	LBB0_12
	b	LBB0_49
LBB0_5:
Lloh27:
	adrp	x8, _RADEON_DVI_I2C_CNTL_0@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RADEON_DVI_I2C_CNTL_0@GOTPAGEOFF]
Lloh29:
	ldr	w22, [x8]
Lloh30:
	adrp	x8, _RADEON_DVI_I2C_CNTL_1@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RADEON_DVI_I2C_CNTL_1@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
	ldr	w8, [x23]
	sub	w8, w8, #132
	cmp	w8, #17
	b.hi	LBB0_43
; %bb.6:
Lloh33:
	adrp	x9, _RADEON_DVI_I2C_DATA@GOTPAGE
Lloh34:
	ldr	x9, [x9, _RADEON_DVI_I2C_DATA@GOTPAGEOFF]
Lloh35:
	ldr	w27, [x9]
Lloh36:
	adrp	x9, lJTI0_0@PAGE
Lloh37:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrh	w11, [x9, x8, lsl #1]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	ldr	w8, [x28]
	cmp	w8, #130
	b.eq	LBB0_38
; %bb.8:
	cmp	w8, #129
	b.ne	LBB0_40
	b	LBB0_52
LBB0_9:
	ldr	w8, [x28]
	cmp	w8, #130
	b.ne	LBB0_46
; %bb.10:
	cmp	w25, #1
	b.ne	LBB0_4
LBB0_11:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
	cbz	w8, LBB0_30
LBB0_12:
	stp	x23, x21, [sp, #8]              ; 16-byte Folded Spill
	mov	x9, #0
	mov	w24, #1
	str	w25, [sp, #4]                   ; 4-byte Folded Spill
	mov	w8, w25
	stp	x20, x8, [sp, #24]              ; 16-byte Folded Spill
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	add	x9, x9, #1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	cmp	x9, x8
	b.eq	LBB0_35
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
                                        ;       Child Loop BB0_21 Depth 3
                                        ;       Child Loop BB0_24 Depth 3
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	x9, [sp, #48]                   ; 8-byte Folded Spill
	mov	w10, #24
	madd	x23, x9, x10, x8
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x25, #0
	ldp	x8, x9, [sp, #40]               ; 16-byte Folded Reload
	mov	w10, #24
	madd	x8, x9, x10, x8
	add	x20, x8, #8
	add	x21, x8, #4
	add	x19, x8, #16
	b	LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_19 Depth=2
	mov	x0, x22
	bl	_RREG32
Lloh38:
	adrp	x8, _RADEON_I2C_DONE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _RADEON_I2C_DONE@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_28
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=2
	mov	x0, x27
	bl	_RREG32
	and	w8, w0, #0xff
	ldr	x9, [x19]
	str	w8, [x9, x25, lsl #2]
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	add	x25, x25, #1
	ldrsw	x8, [x23]
	cmp	x25, x8
	b.ge	LBB0_13
LBB0_19:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_21 Depth 3
                                        ;       Child Loop BB0_24 Depth 3
	ldr	w8, [x20]
Lloh41:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh42:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	and	w28, w9, w8
Lloh44:
	adrp	x8, _RADEON_I2C_DONE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _RADEON_I2C_DONE@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
Lloh47:
	adrp	x9, _RADEON_I2C_NACK@GOTPAGE
Lloh48:
	ldr	x9, [x9, _RADEON_I2C_NACK@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh50:
	adrp	x9, _RADEON_I2C_HALT@GOTPAGE
Lloh51:
	ldr	x9, [x9, _RADEON_I2C_HALT@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh53:
	adrp	x9, _RADEON_I2C_SOFT_RST@GOTPAGE
Lloh54:
	ldr	x9, [x9, _RADEON_I2C_SOFT_RST@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x22
	bl	_WREG32
	ldr	w8, [x21]
	ubfiz	w1, w8, #1, #7
	cbz	w28, LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	orr	w1, w1, #0x1
	mov	x0, x27
	bl	_WREG32
Lloh56:
	adrp	x8, _RADEON_I2C_DATA_COUNT_SHIFT@GOTPAGE
Lloh57:
	ldr	x8, [x8, _RADEON_I2C_DATA_COUNT_SHIFT@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	lsl	w8, w24, w8
Lloh59:
	adrp	x9, _RADEON_I2C_ADDR_COUNT_SHIFT@GOTPAGE
Lloh60:
	ldr	x9, [x9, _RADEON_I2C_ADDR_COUNT_SHIFT@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	lsl	w9, w24, w9
	orr	w8, w9, w8
Lloh62:
	adrp	x9, _RADEON_I2C_EN@GOTPAGE
Lloh63:
	ldr	x9, [x9, _RADEON_I2C_EN@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh65:
	adrp	x9, _RADEON_I2C_TIME_LIMIT_SHIFT@GOTPAGE
Lloh66:
	ldr	x9, [x9, _RADEON_I2C_TIME_LIMIT_SHIFT@GOTPAGEOFF]
Lloh67:
	ldr	w9, [x9]
	mov	w10, #48
	lsl	w9, w10, w9
	orr	w1, w8, w9
	ldr	w0, [sp, #60]                   ; 4-byte Folded Reload
	bl	_WREG32
Lloh68:
	adrp	x8, _RADEON_I2C_RECEIVE@GOTPAGE
Lloh69:
	ldr	x8, [x8, _RADEON_I2C_RECEIVE@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
	ldr	w9, [sp, #56]                   ; 4-byte Folded Reload
	orr	w1, w8, w9
	mov	x0, x22
	bl	_WREG32
	mov	w28, #32
LBB0_21:                                ;   Parent Loop BB0_14 Depth=1
                                        ;     Parent Loop BB0_19 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	w0, #10
	bl	_udelay
	mov	x0, x22
	bl	_RREG32
	ldr	w8, [x26]
	tst	w8, w0
	b.eq	LBB0_16
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=3
	subs	w28, w28, #1
	b.ne	LBB0_21
	b	LBB0_17
LBB0_23:                                ;   in Loop: Header=BB0_19 Depth=2
	mov	x0, x27
	bl	_WREG32
	ldr	x8, [x19]
	ldr	w1, [x8, x25, lsl #2]
	mov	x0, x27
	bl	_WREG32
Lloh71:
	adrp	x8, _RADEON_I2C_DATA_COUNT_SHIFT@GOTPAGE
Lloh72:
	ldr	x8, [x8, _RADEON_I2C_DATA_COUNT_SHIFT@GOTPAGEOFF]
Lloh73:
	ldr	w8, [x8]
	lsl	w8, w24, w8
Lloh74:
	adrp	x9, _RADEON_I2C_ADDR_COUNT_SHIFT@GOTPAGE
Lloh75:
	ldr	x9, [x9, _RADEON_I2C_ADDR_COUNT_SHIFT@GOTPAGEOFF]
Lloh76:
	ldr	w9, [x9]
	lsl	w9, w24, w9
	orr	w8, w9, w8
Lloh77:
	adrp	x9, _RADEON_I2C_EN@GOTPAGE
Lloh78:
	ldr	x9, [x9, _RADEON_I2C_EN@GOTPAGEOFF]
Lloh79:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh80:
	adrp	x9, _RADEON_I2C_TIME_LIMIT_SHIFT@GOTPAGE
Lloh81:
	ldr	x9, [x9, _RADEON_I2C_TIME_LIMIT_SHIFT@GOTPAGEOFF]
Lloh82:
	ldr	w9, [x9]
	mov	w10, #48
	lsl	w9, w10, w9
	orr	w1, w8, w9
	ldr	w0, [sp, #60]                   ; 4-byte Folded Reload
	bl	_WREG32
	mov	x0, x22
	ldr	w1, [sp, #56]                   ; 4-byte Folded Reload
	bl	_WREG32
	mov	w28, #32
LBB0_24:                                ;   Parent Loop BB0_14 Depth=1
                                        ;     Parent Loop BB0_19 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	w0, #10
	bl	_udelay
	mov	x0, x22
	bl	_RREG32
	ldr	w8, [x26]
	tst	w8, w0
	b.eq	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=3
	subs	w28, w28, #1
	b.ne	LBB0_24
	b	LBB0_18
LBB0_26:                                ;   in Loop: Header=BB0_19 Depth=2
	mov	x0, x22
	bl	_RREG32
Lloh83:
	adrp	x8, _RADEON_I2C_DONE@GOTPAGE
Lloh84:
	ldr	x8, [x8, _RADEON_I2C_DONE@GOTPAGEOFF]
Lloh85:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_18
; %bb.27:
	mov	x28, x0
Lloh86:
	adrp	x0, l_.str.2@PAGE
Lloh87:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_29
LBB0_28:
	mov	x28, x0
Lloh88:
	adrp	x0, l_.str.3@PAGE
Lloh89:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_29:
	mov	x1, x28
	bl	_DRM_DEBUG
Lloh90:
	adrp	x8, _RADEON_I2C_ABORT@GOTPAGE
Lloh91:
	ldr	x8, [x8, _RADEON_I2C_ABORT@GOTPAGEOFF]
Lloh92:
	ldr	w8, [x8]
	orr	w1, w8, w28
	mov	x0, x22
	bl	_WREG32
Lloh93:
	adrp	x8, _EIO@GOTPAGE
Lloh94:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh95:
	ldr	w8, [x8]
	neg	w25, w8
	ldp	x21, x20, [sp, #16]             ; 16-byte Folded Reload
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
Lloh96:
	adrp	x24, _RADEON_BIOS_6_SCRATCH@GOTPAGE
Lloh97:
	ldr	x24, [x24, _RADEON_BIOS_6_SCRATCH@GOTPAGEOFF]
	b	LBB0_49
LBB0_30:
Lloh98:
	adrp	x8, _RADEON_I2C_DONE@GOTPAGE
Lloh99:
	ldr	x8, [x8, _RADEON_I2C_DONE@GOTPAGEOFF]
Lloh100:
	ldr	w8, [x8]
Lloh101:
	adrp	x9, _RADEON_I2C_NACK@GOTPAGE
Lloh102:
	ldr	x9, [x9, _RADEON_I2C_NACK@GOTPAGEOFF]
Lloh103:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh104:
	adrp	x9, _RADEON_I2C_HALT@GOTPAGE
Lloh105:
	ldr	x9, [x9, _RADEON_I2C_HALT@GOTPAGEOFF]
Lloh106:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh107:
	adrp	x9, _RADEON_I2C_SOFT_RST@GOTPAGE
Lloh108:
	ldr	x9, [x9, _RADEON_I2C_SOFT_RST@GOTPAGEOFF]
Lloh109:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x22
	bl	_WREG32
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w8, [x8, #4]
	ubfiz	w1, w8, #1, #7
	mov	x0, x27
	bl	_WREG32
	mov	x0, x27
	mov	w1, #0
	bl	_WREG32
Lloh110:
	adrp	x8, _RADEON_I2C_DATA_COUNT_SHIFT@GOTPAGE
Lloh111:
	ldr	x8, [x8, _RADEON_I2C_DATA_COUNT_SHIFT@GOTPAGEOFF]
Lloh112:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
Lloh113:
	adrp	x10, _RADEON_I2C_ADDR_COUNT_SHIFT@GOTPAGE
Lloh114:
	ldr	x10, [x10, _RADEON_I2C_ADDR_COUNT_SHIFT@GOTPAGEOFF]
Lloh115:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
Lloh116:
	adrp	x9, _RADEON_I2C_EN@GOTPAGE
Lloh117:
	ldr	x9, [x9, _RADEON_I2C_EN@GOTPAGEOFF]
Lloh118:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh119:
	adrp	x9, _RADEON_I2C_TIME_LIMIT_SHIFT@GOTPAGE
Lloh120:
	ldr	x9, [x9, _RADEON_I2C_TIME_LIMIT_SHIFT@GOTPAGEOFF]
Lloh121:
	ldr	w9, [x9]
	mov	w10, #48
	lsl	w9, w10, w9
	orr	w1, w8, w9
	ldr	w0, [sp, #60]                   ; 4-byte Folded Reload
	bl	_WREG32
	mov	x0, x22
	ldr	w1, [sp, #56]                   ; 4-byte Folded Reload
	bl	_WREG32
	mov	w19, #32
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_udelay
	mov	x0, x22
	bl	_RREG32
	ldr	w8, [x26]
	tst	w8, w0
	b.eq	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	subs	w19, w19, #1
	b.ne	LBB0_31
	b	LBB0_34
LBB0_33:
	mov	x0, x22
	bl	_RREG32
Lloh122:
	adrp	x8, _RADEON_I2C_DONE@GOTPAGE
Lloh123:
	ldr	x8, [x8, _RADEON_I2C_DONE@GOTPAGEOFF]
Lloh124:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_42
LBB0_34:
	mov	w25, #1
	b	LBB0_49
LBB0_35:
	ldp	x21, x20, [sp, #16]             ; 16-byte Folded Reload
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
Lloh125:
	adrp	x24, _RADEON_BIOS_6_SCRATCH@GOTPAGE
Lloh126:
	ldr	x24, [x24, _RADEON_BIOS_6_SCRATCH@GOTPAGEOFF]
	ldr	w25, [sp, #4]                   ; 4-byte Folded Reload
	b	LBB0_49
LBB0_36:
	ldr	w8, [x28]
	cmp	w8, #128
	b.eq	LBB0_38
; %bb.37:
	cmp	w8, #131
	b.ne	LBB0_45
	b	LBB0_52
LBB0_38:
Lloh127:
	adrp	x8, _R200_SEL_DDC2@GOTPAGE
Lloh128:
	ldr	x8, [x8, _R200_SEL_DDC2@GOTPAGEOFF]
	b	LBB0_53
LBB0_39:
	ldr	w8, [x28]
	cmp	w8, #130
	b.eq	LBB0_52
LBB0_40:
	cmp	w8, #128
	b.ne	LBB0_46
LBB0_41:
Lloh129:
	adrp	x8, _R200_SEL_DDC1@GOTPAGE
Lloh130:
	ldr	x8, [x8, _R200_SEL_DDC1@GOTPAGEOFF]
	b	LBB0_53
LBB0_42:
	mov	x25, x0
Lloh131:
	adrp	x0, l_.str.2@PAGE
Lloh132:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x25
	bl	_DRM_DEBUG
Lloh133:
	adrp	x8, _RADEON_I2C_ABORT@GOTPAGE
Lloh134:
	ldr	x8, [x8, _RADEON_I2C_ABORT@GOTPAGEOFF]
Lloh135:
	ldr	w8, [x8]
	orr	w1, w8, w25
	mov	x0, x22
	bl	_WREG32
Lloh136:
	adrp	x8, _EIO@GOTPAGE
Lloh137:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_48
LBB0_43:
Lloh138:
	adrp	x0, l_.str.1@PAGE
Lloh139:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_47
LBB0_44:
	ldr	w8, [x28]
	cmp	w8, #129
	b.eq	LBB0_52
LBB0_45:
	cmp	w8, #130
	b.eq	LBB0_41
LBB0_46:
Lloh140:
	adrp	x0, l_.str@PAGE
Lloh141:
	add	x0, x0, l_.str@PAGEOFF
LBB0_47:
	bl	_DRM_ERROR
Lloh142:
	adrp	x8, _EINVAL@GOTPAGE
Lloh143:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_48:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_49:
	mov	x0, x22
	mov	w1, #0
	bl	_WREG32
	ldr	w0, [sp, #60]                   ; 4-byte Folded Reload
	mov	w1, #0
	bl	_WREG32
Lloh144:
	adrp	x8, _RADEON_I2C_DONE@GOTPAGE
Lloh145:
	ldr	x8, [x8, _RADEON_I2C_DONE@GOTPAGEOFF]
Lloh146:
	ldr	w8, [x8]
Lloh147:
	adrp	x9, _RADEON_I2C_NACK@GOTPAGE
Lloh148:
	ldr	x9, [x9, _RADEON_I2C_NACK@GOTPAGEOFF]
Lloh149:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh150:
	adrp	x9, _RADEON_I2C_HALT@GOTPAGE
Lloh151:
	ldr	x9, [x9, _RADEON_I2C_HALT@GOTPAGEOFF]
Lloh152:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh153:
	adrp	x9, _RADEON_I2C_SOFT_RST@GOTPAGE
Lloh154:
	ldr	x9, [x9, _RADEON_I2C_SOFT_RST@GOTPAGEOFF]
Lloh155:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x22
	bl	_WREG32
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_51
; %bb.50:
	ldr	w0, [x24]
	bl	_RREG32
Lloh156:
	adrp	x8, _ATOM_S6_HW_I2C_BUSY_STATE@GOTPAGE
Lloh157:
	ldr	x8, [x8, _ATOM_S6_HW_I2C_BUSY_STATE@GOTPAGEOFF]
Lloh158:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w0, [x24]
	bl	_WREG32
LBB0_51:
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x25
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_52:
Lloh159:
	adrp	x8, _R200_SEL_DDC3@GOTPAGE
Lloh160:
	ldr	x8, [x8, _R200_SEL_DDC3@GOTPAGEOFF]
LBB0_53:
	ldr	w0, [x8]
	bl	_R200_DVI_I2C_PIN_SEL
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	orr	w8, w0, w8
	str	w8, [sp, #56]                   ; 4-byte Folded Spill
	cmp	w25, #1
	b.ne	LBB0_4
	b	LBB0_11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGot	Lloh125, Lloh126
	.loh AdrpLdrGot	Lloh127, Lloh128
	.loh AdrpLdrGot	Lloh129, Lloh130
	.loh AdrpLdrGot	Lloh136, Lloh137
	.loh AdrpLdrGotLdr	Lloh133, Lloh134, Lloh135
	.loh AdrpAdd	Lloh131, Lloh132
	.loh AdrpAdd	Lloh138, Lloh139
	.loh AdrpAdd	Lloh140, Lloh141
	.loh AdrpLdrGot	Lloh142, Lloh143
	.loh AdrpLdrGotLdr	Lloh153, Lloh154, Lloh155
	.loh AdrpLdrGotLdr	Lloh150, Lloh151, Lloh152
	.loh AdrpLdrGotLdr	Lloh147, Lloh148, Lloh149
	.loh AdrpLdrGotLdr	Lloh144, Lloh145, Lloh146
	.loh AdrpLdrGotLdr	Lloh156, Lloh157, Lloh158
	.loh AdrpLdrGot	Lloh159, Lloh160
	.cfi_endproc
	.section	__TEXT,__const
	.p2align	1
lJTI0_0:
	.short	(LBB0_7-LBB0_7)>>2
	.short	(LBB0_7-LBB0_7)>>2
	.short	(LBB0_7-LBB0_7)>>2
	.short	(LBB0_36-LBB0_7)>>2
	.short	(LBB0_36-LBB0_7)>>2
	.short	(LBB0_9-LBB0_7)>>2
	.short	(LBB0_9-LBB0_7)>>2
	.short	(LBB0_7-LBB0_7)>>2
	.short	(LBB0_7-LBB0_7)>>2
	.short	(LBB0_9-LBB0_7)>>2
	.short	(LBB0_9-LBB0_7)>>2
	.short	(LBB0_9-LBB0_7)>>2
	.short	(LBB0_7-LBB0_7)>>2
	.short	(LBB0_7-LBB0_7)>>2
	.short	(LBB0_39-LBB0_7)>>2
	.short	(LBB0_39-LBB0_7)>>2
	.short	(LBB0_44-LBB0_7)>>2
	.short	(LBB0_9-LBB0_7)>>2
                                        ; -- End function
	.comm	_RADEON_I2C_PRESCALE_SHIFT,4,2  ; @RADEON_I2C_PRESCALE_SHIFT
	.comm	_RADEON_I2C_DRIVE_EN,4,2        ; @RADEON_I2C_DRIVE_EN
	.comm	_RADEON_I2C_START,4,2           ; @RADEON_I2C_START
	.comm	_RADEON_I2C_STOP,4,2            ; @RADEON_I2C_STOP
	.comm	_RADEON_I2C_GO,4,2              ; @RADEON_I2C_GO
	.comm	_RADEON_BIOS_6_SCRATCH,4,2      ; @RADEON_BIOS_6_SCRATCH
	.comm	_ATOM_S6_HW_I2C_BUSY_STATE,4,2  ; @ATOM_S6_HW_I2C_BUSY_STATE
	.comm	_RADEON_I2C_CNTL_0,4,2          ; @RADEON_I2C_CNTL_0
	.comm	_RADEON_I2C_CNTL_1,4,2          ; @RADEON_I2C_CNTL_1
	.comm	_RADEON_I2C_DATA,4,2            ; @RADEON_I2C_DATA
	.comm	_RADEON_DVI_I2C_CNTL_0,4,2      ; @RADEON_DVI_I2C_CNTL_0
	.comm	_RADEON_DVI_I2C_CNTL_1,4,2      ; @RADEON_DVI_I2C_CNTL_1
	.comm	_RADEON_DVI_I2C_DATA,4,2        ; @RADEON_DVI_I2C_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gpio not supported with hw i2c\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_R200_SEL_DDC1,4,2              ; @R200_SEL_DDC1
	.comm	_R200_SEL_DDC3,4,2              ; @R200_SEL_DDC3
	.comm	_R200_SEL_DDC2,4,2              ; @R200_SEL_DDC2
l_.str.1:                               ; @.str.1
	.asciz	"unsupported asic\n"

	.comm	_RADEON_I2C_DONE,4,2            ; @RADEON_I2C_DONE
	.comm	_RADEON_I2C_NACK,4,2            ; @RADEON_I2C_NACK
	.comm	_RADEON_I2C_HALT,4,2            ; @RADEON_I2C_HALT
	.comm	_RADEON_I2C_SOFT_RST,4,2        ; @RADEON_I2C_SOFT_RST
	.comm	_RADEON_I2C_DATA_COUNT_SHIFT,4,2 ; @RADEON_I2C_DATA_COUNT_SHIFT
	.comm	_RADEON_I2C_ADDR_COUNT_SHIFT,4,2 ; @RADEON_I2C_ADDR_COUNT_SHIFT
	.comm	_RADEON_I2C_EN,4,2              ; @RADEON_I2C_EN
	.comm	_RADEON_I2C_TIME_LIMIT_SHIFT,4,2 ; @RADEON_I2C_TIME_LIMIT_SHIFT
l_.str.2:                               ; @.str.2
	.asciz	"i2c write error 0x%08x\n"

	.comm	_RADEON_I2C_ABORT,4,2           ; @RADEON_I2C_ABORT
	.comm	_EIO,4,2                        ; @EIO
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_RADEON_I2C_RECEIVE,4,2         ; @RADEON_I2C_RECEIVE
l_.str.3:                               ; @.str.3
	.asciz	"i2c read error 0x%08x\n"

	.no_dead_strip	_r100_hw_i2c_xfer
.subsections_via_symbols
