	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_combios_get_i2c_info_from_table
_radeon_combios_get_i2c_info_from_table: ## @radeon_combios_get_i2c_info_from_table
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	movq	_COMBIOS_I2C_INFO_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_combios_get_table_offset
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	leaq	2(%rax), %rdi
	callq	_RBIOS8
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	leaq	3(%r15), %r12
	movl	%eax, %eax
	leaq	(%rax,%rax,4), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_RBIOS8
	cmpl	$136, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$-5, %rbx
	addq	$5, %r12
	movq	%r13, %rax
	addq	%rbx, %rax
	jne	LBB0_4
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	subq	%rbx, %r15
	leaq	6(%r15), %rdi
	callq	_RBIOS8
	movl	%eax, %ebx
	addq	$7, %r15
	movq	%r15, %rdi
	callq	_RBIOS8
	movq	_DDC_MONID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	movl	$1, %ebx
	movl	%eax, %ecx
	shll	%cl, %ebx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_combios_setup_i2c_bus          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_COMBIOS_I2C_INFO_TABLE,4,2     ## @COMBIOS_I2C_INFO_TABLE
	.comm	_DDC_MONID,4,2                  ## @DDC_MONID
	.no_dead_strip	_radeon_combios_get_i2c_info_from_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_combios_get_i2c_info_from_table
_radeon_combios_get_i2c_info_from_table: ; @radeon_combios_get_i2c_info_from_table
	.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, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _COMBIOS_I2C_INFO_TABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMBIOS_I2C_INFO_TABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_combios_get_table_offset
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	add	x0, x0, #2
	bl	_RBIOS8
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w21, w0
	add	x20, x20, #7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	x0, x20, #4
	bl	_RBIOS8
	cmp	w0, #136
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #5
	subs	x21, x21, #1
	b.ne	LBB0_3
LBB0_5:
	mov	w0, #0
	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:
	sub	x0, x20, #1
	bl	_RBIOS8
	mov	x21, x0
	mov	x0, x20
	bl	_RBIOS8
Lloh3:
	adrp	x8, _DDC_MONID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DDC_MONID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w8, #1
	lsl	w2, w8, w21
	lsl	w3, w8, w0
	mov	x0, 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	_combios_setup_i2c_bus
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_COMBIOS_I2C_INFO_TABLE,4,2     ; @COMBIOS_I2C_INFO_TABLE
	.comm	_DDC_MONID,4,2                  ; @DDC_MONID
	.no_dead_strip	_radeon_combios_get_i2c_info_from_table
.subsections_via_symbols
