	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_hw_i2c_xfer
_radeon_hw_i2c_xfer:                    ## @radeon_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_i2c_get_adapdata
	movq	8(%rax), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %edx
	addl	$-128, %edx
	cmpl	$43, %edx
	ja	LBB0_5
## %bb.1:
	xorl	%ecx, %ecx
	movabsq	$16495928148479, %rsi           ## imm = 0xF00C1F001FF
	btq	%rdx, %rsi
	jb	LBB0_6
## %bb.2:
	movabsq	$1083372986368, %rcx            ## imm = 0xFC3E0FE000
	btq	%rdx, %rcx
	jae	LBB0_3
LBB0_7:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_r100_hw_i2c_xfer               ## TAILCALL
LBB0_3:
	cmpl	$0, (%rax)
	jne	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_r500_hw_i2c_xfer               ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_6:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c: unhandled radeon chip\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_radeon_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 radeon_hw_i2c_xfer
_radeon_hw_i2c_xfer:                    ; @radeon_hw_i2c_xfer
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_i2c_get_adapdata
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #43
	b.hi	LBB0_8
; %bb.1:
	mov	w9, #1
	lsl	x9, x9, x8
	mov	x10, #511
	movk	x10, #49648, lsl #16
	movk	x10, #3840, lsl #32
	tst	x9, x10
	b.ne	LBB0_4
; %bb.2:
	mov	w9, #1
	lsl	x8, x9, x8
	mov	x9, #57344
	movk	x9, #15887, lsl #16
	movk	x9, #252, lsl #32
	tst	x8, x9
	b.eq	LBB0_6
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	b	_r100_hw_i2c_xfer
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
LBB0_6:
	ldr	w8, [x0]
	cbnz	w8, LBB0_3
; %bb.7:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	b	_r500_hw_i2c_xfer
LBB0_8:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c: unhandled radeon chip\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_radeon_hw_i2c_xfer
.subsections_via_symbols
