	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_sdvo_select_i2c_bus
_intel_sdvo_select_i2c_bus:             ## @intel_sdvo_select_i2c_bus
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	cmpq	$0, 8(%rsi)
	sete	%bl
	movq	(%rdi), %r12
	shlq	$4, %rbx
	cmpq	$0, 8(%r12,%rbx)
	je	LBB0_3
## %bb.1:
	movl	(%r12,%rbx), %edi
	callq	_intel_gmbus_is_port_valid
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	addq	%rbx, %r12
	jmp	LBB0_4
LBB0_3:
	movq	_GMBUS_PORT_DPB@GOTPCREL(%rip), %r12
LBB0_4:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_intel_gmbus_get_adapter
	movl	%eax, (%r14)
	movl	%eax, %edi
	movl	$1, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_gmbus_force_bit          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GMBUS_PORT_DPB,4,2             ## @GMBUS_PORT_DPB
	.no_dead_strip	_intel_sdvo_select_i2c_bus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_sdvo_select_i2c_bus
_intel_sdvo_select_i2c_bus:             ; @intel_sdvo_select_i2c_bus
	.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, x1
	mov	x20, x0
	ldr	x8, [x1, #8]
	cmp	x8, #0
	cset	w8, eq
	ldr	x9, [x0]
	add	x10, x9, w8, uxtw #4
	ldr	x10, [x10, #8]
	cbz	x10, LBB0_2
; %bb.1:
	add	x21, x9, x8, lsl #4
	ldr	w0, [x21]
	bl	_intel_gmbus_is_port_valid
	cbnz	x0, LBB0_3
LBB0_2:
Lloh0:
	adrp	x21, _GMBUS_PORT_DPB@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GMBUS_PORT_DPB@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_intel_gmbus_get_adapter
	str	w0, [x19]
	mov	w1, #1
	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	_intel_gmbus_force_bit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GMBUS_PORT_DPB,4,2             ; @GMBUS_PORT_DPB
	.no_dead_strip	_intel_sdvo_select_i2c_bus
.subsections_via_symbols
