	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_router_select_ddc_port  ## -- Begin function radeon_router_select_ddc_port
	.p2align	4, 0x90
_radeon_router_select_ddc_port:         ## @radeon_router_select_ddc_port
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, 12(%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %esi
	leaq	-20(%rbp), %r14
	movl	$3, %edx
	movq	%r14, %rcx
	callq	_radeon_i2c_get_byte
	movl	8(%rbx), %ecx
	notl	%ecx
	andl	-20(%rbp), %ecx
	movl	%ecx, -20(%rbp)
	movl	(%rbx), %esi
	movl	16(%rbx), %edi
	movl	$3, %edx
	callq	_radeon_i2c_put_byte
	movl	(%rbx), %esi
	movl	16(%rbx), %edi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	_radeon_i2c_get_byte
	movl	8(%rbx), %ecx
	notl	%ecx
	andl	-20(%rbp), %ecx
	orl	4(%rbx), %ecx
	movl	%ecx, -20(%rbp)
	movl	(%rbx), %esi
	movl	16(%rbx), %edi
	movl	$1, %edx
	callq	_radeon_i2c_put_byte
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_router_select_ddc_port  ; -- Begin function radeon_router_select_ddc_port
	.p2align	2
_radeon_router_select_ddc_port:         ; @radeon_router_select_ddc_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #16]
	cbz	w0, LBB0_3
; %bb.2:
	ldr	w1, [x19]
	add	x3, sp, #12
	mov	w2, #3
	bl	_radeon_i2c_get_byte
	ldr	w8, [x19, #8]
	ldr	w9, [sp, #12]
	bic	w3, w9, w8
	str	w3, [sp, #12]
	ldr	w0, [x19, #16]
	ldr	w1, [x19]
	mov	w2, #3
	bl	_radeon_i2c_put_byte
	ldr	w0, [x19, #16]
	ldr	w1, [x19]
	add	x3, sp, #12
	mov	w2, #1
	bl	_radeon_i2c_get_byte
	ldr	w8, [x19, #8]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	ldp	w1, w9, [x19]
	orr	w3, w9, w8
	str	w3, [sp, #12]
	ldr	w0, [x19, #16]
	mov	w2, #1
	bl	_radeon_i2c_put_byte
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
