	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function radeon_combios_i2c_init
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	160                             ## 0xa0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_radeon_combios_i2c_init
	.p2align	4, 0x90
_radeon_combios_i2c_init:               ## @radeon_combios_i2c_init
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	16(%rdi), %r14
	movq	_DDC_DVI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_combios_setup_i2c_bus
	movq	%rax, -64(%rbp)
	movq	%rdx, -56(%rbp)
	leaq	L_.str(%rip), %rdx
	leaq	-64(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_radeon_i2c_create
	movq	8(%r12), %rcx
	movq	%rax, (%rcx)
	movq	_DDC_VGA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_combios_setup_i2c_bus
	movq	%rax, -64(%rbp)
	movq	%rdx, -56(%rbp)
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_radeon_i2c_create
	movq	8(%r12), %rcx
	movq	%rax, 8(%rcx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,1,160]
	movaps	%xmm0, -64(%rbp)
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_radeon_i2c_create
	movq	8(%r12), %rcx
	movq	%rax, 16(%rcx)
	movq	(%r12), %rbx
	movq	_CHIP_R300@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	cmpq	%r15, %rbx
	je	LBB0_11
## %bb.1:
	movq	_CHIP_R350@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_11
## %bb.2:
	movq	_CHIP_RS300@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_5
## %bb.3:
	movq	_CHIP_RS400@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_5
## %bb.4:
	movq	_CHIP_RS480@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_5
## %bb.7:
	movq	_CHIP_R200@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_DDC_MONID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_combios_setup_i2c_bus
	movq	%rax, -64(%rbp)
	movq	%rdx, -56(%rbp)
	leaq	L_.str.3(%rip), %rdx
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_radeon_i2c_create
	movq	8(%r12), %rcx
	movq	%rax, 24(%rcx)
	cmpq	%r13, %rbx
	je	LBB0_11
## %bb.8:
	cmpq	%r15, %rbx
	jge	LBB0_11
## %bb.9:
	movq	_DDC_CRT2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_combios_setup_i2c_bus
	movq	%rax, -64(%rbp)
	movq	%rdx, -56(%rbp)
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_10
LBB0_5:
	movq	_DDC_CRT2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_combios_setup_i2c_bus
	movq	%rax, -64(%rbp)
	movq	%rdx, -56(%rbp)
	leaq	L_.str.3(%rip), %rdx
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_radeon_i2c_create
	movq	8(%r12), %rcx
	movq	%rax, 24(%rcx)
	movq	%r12, %rdi
	callq	_radeon_combios_get_i2c_info_from_table
	movq	%rax, -64(%rbp)
	movq	%rdx, -56(%rbp)
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	leaq	L_.str.4(%rip), %rdx
LBB0_10:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_radeon_i2c_create
	movq	8(%r12), %rcx
	movq	%rax, 32(%rcx)
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DDC_DVI,4,2                    ## @DDC_DVI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DVI_DDC"

	.comm	_DDC_VGA,4,2                    ## @DDC_VGA
L_.str.1:                               ## @.str.1
	.asciz	"VGA_DDC"

L_.str.2:                               ## @.str.2
	.asciz	"MM_I2C"

	.comm	_CHIP_R300,8,3                  ## @CHIP_R300
	.comm	_CHIP_R350,8,3                  ## @CHIP_R350
	.comm	_CHIP_RS300,8,3                 ## @CHIP_RS300
	.comm	_CHIP_RS400,8,3                 ## @CHIP_RS400
	.comm	_CHIP_RS480,8,3                 ## @CHIP_RS480
	.comm	_DDC_CRT2,4,2                   ## @DDC_CRT2
L_.str.3:                               ## @.str.3
	.asciz	"MONID"

L_.str.4:                               ## @.str.4
	.asciz	"GPIOPAD_MASK"

	.comm	_CHIP_R200,8,3                  ## @CHIP_R200
	.comm	_DDC_MONID,4,2                  ## @DDC_MONID
L_.str.5:                               ## @.str.5
	.asciz	"CRT2_DDC"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function radeon_combios_i2c_init
lCPI0_0:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	160                             ; 0xa0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_radeon_combios_i2c_init
	.p2align	2
_radeon_combios_i2c_init:               ; @radeon_combios_i2c_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	ldr	x20, [x0, #16]
Lloh0:
	adrp	x8, _DDC_DVI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DDC_DVI@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_combios_setup_i2c_bus
	stp	x0, x1, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, sp
	mov	x0, x20
	bl	_radeon_i2c_create
	ldr	x8, [x19, #8]
	str	x0, [x8]
Lloh5:
	adrp	x8, _DDC_VGA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DDC_VGA@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_combios_setup_i2c_bus
	stp	x0, x1, [sp]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, sp
	mov	x0, x20
	bl	_radeon_i2c_create
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
Lloh10:
	adrp	x8, lCPI0_0@PAGE
Lloh11:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp]
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, sp
	mov	x0, x20
	bl	_radeon_i2c_create
	ldr	x8, [x19, #8]
	str	x0, [x8, #16]
	ldr	x21, [x19]
Lloh14:
	adrp	x8, _CHIP_R300@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CHIP_R300@GOTPAGEOFF]
Lloh16:
	ldr	x22, [x8]
	cmp	x21, x22
	b.eq	LBB0_11
; %bb.1:
Lloh17:
	adrp	x8, _CHIP_R350@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CHIP_R350@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x21, x8
	b.eq	LBB0_11
; %bb.2:
Lloh20:
	adrp	x8, _CHIP_RS300@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CHIP_RS300@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x21, x8
	b.eq	LBB0_8
; %bb.3:
Lloh23:
	adrp	x8, _CHIP_RS400@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CHIP_RS400@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x21, x8
	b.eq	LBB0_8
; %bb.4:
Lloh26:
	adrp	x8, _CHIP_RS480@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CHIP_RS480@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x21, x8
	b.eq	LBB0_8
; %bb.5:
Lloh29:
	adrp	x8, _CHIP_R200@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CHIP_R200@GOTPAGEOFF]
Lloh31:
	ldr	x23, [x8]
Lloh32:
	adrp	x8, _DDC_MONID@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DDC_MONID@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_combios_setup_i2c_bus
	stp	x0, x1, [sp]
Lloh35:
	adrp	x2, l_.str.3@PAGE
Lloh36:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x1, sp
	mov	x0, x20
	bl	_radeon_i2c_create
	ldr	x8, [x19, #8]
	str	x0, [x8, #24]
	cmp	x21, x23
	b.eq	LBB0_11
; %bb.6:
	cmp	x21, x22
	b.ge	LBB0_11
; %bb.7:
Lloh37:
	adrp	x8, _DDC_CRT2@GOTPAGE
Lloh38:
	ldr	x8, [x8, _DDC_CRT2@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_combios_setup_i2c_bus
	stp	x0, x1, [sp]
Lloh40:
	adrp	x2, l_.str.5@PAGE
Lloh41:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh42:
	adrp	x8, _DDC_CRT2@GOTPAGE
Lloh43:
	ldr	x8, [x8, _DDC_CRT2@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_combios_setup_i2c_bus
	stp	x0, x1, [sp]
Lloh45:
	adrp	x2, l_.str.3@PAGE
Lloh46:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x1, sp
	mov	x0, x20
	bl	_radeon_i2c_create
	ldr	x8, [x19, #8]
	str	x0, [x8, #24]
	mov	x0, x19
	bl	_radeon_combios_get_i2c_info_from_table
	stp	x0, x1, [sp]
	cbz	w0, LBB0_11
; %bb.9:
Lloh47:
	adrp	x2, l_.str.4@PAGE
Lloh48:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_10:
	mov	x1, sp
	mov	x0, x20
	bl	_radeon_i2c_create
	ldr	x8, [x19, #8]
	str	x0, [x8, #32]
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_DDC_DVI,4,2                    ; @DDC_DVI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DVI_DDC"

	.comm	_DDC_VGA,4,2                    ; @DDC_VGA
l_.str.1:                               ; @.str.1
	.asciz	"VGA_DDC"

l_.str.2:                               ; @.str.2
	.asciz	"MM_I2C"

	.comm	_CHIP_R300,8,3                  ; @CHIP_R300
	.comm	_CHIP_R350,8,3                  ; @CHIP_R350
	.comm	_CHIP_RS300,8,3                 ; @CHIP_RS300
	.comm	_CHIP_RS400,8,3                 ; @CHIP_RS400
	.comm	_CHIP_RS480,8,3                 ; @CHIP_RS480
	.comm	_DDC_CRT2,4,2                   ; @DDC_CRT2
l_.str.3:                               ; @.str.3
	.asciz	"MONID"

l_.str.4:                               ; @.str.4
	.asciz	"GPIOPAD_MASK"

	.comm	_CHIP_R200,8,3                  ; @CHIP_R200
	.comm	_DDC_MONID,4,2                  ; @DDC_MONID
l_.str.5:                               ; @.str.5
	.asciz	"CRT2_DDC"

.subsections_via_symbols
