	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sanitize_aux_ch
_sanitize_aux_ch:                       ## @sanitize_aux_ch
	.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
	movl	%esi, %r12d
	movq	(%rdi), %r13
	movl	%esi, %ebx
	shlq	$4, %rbx
	movq	8(%r13,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rdi, %r15
	callq	_get_port_by_aux_ch
	movl	%eax, %r14d
	movq	_PORT_NONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_3
## %bb.2:
	addq	%r13, %rbx
	addq	$8, %rbx
	movl	%r12d, %edi
	callq	_port_name
	movl	%eax, %r13d
	movq	(%rbx), %r12
	movl	%r14d, %edi
	callq	_port_name
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_port_name
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_DRM_DEBUG_KMS
	movq	(%r15), %rax
	movl	%r14d, %ecx
	shlq	$4, %rcx
	movl	$0, (%rax,%rcx)
	movq	$0, 8(%rax,%rcx)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_NONE,4,2                  ## @PORT_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port %c trying to use the same AUX CH (0x%x) as port %c, disabling port %c DP support\n"

	.no_dead_strip	_sanitize_aux_ch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sanitize_aux_ch
_sanitize_aux_ch:                       ; @sanitize_aux_ch
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	ldr	x8, [x0]
	add	x22, x8, w1, uxtw #4
	ldr	x1, [x22, #8]!
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_get_port_by_aux_ch
Lloh0:
	adrp	x8, _PORT_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PORT_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x20, x0
	mov	x0, x21
	bl	_port_name
	mov	x21, x0
	ldr	x22, [x22]
	mov	x0, x20
	bl	_port_name
	mov	x23, x0
	mov	x0, x20
	bl	_port_name
	mov	x4, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_DRM_DEBUG_KMS
	ldr	x8, [x19]
	add	x8, x8, w20, uxtw #4
	str	wzr, [x8]
	str	xzr, [x8, #8]
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_NONE,4,2                  ; @PORT_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port %c trying to use the same AUX CH (0x%x) as port %c, disabling port %c DP support\n"

	.no_dead_strip	_sanitize_aux_ch
.subsections_via_symbols
