	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_ddi_get_encoder_port
_intel_ddi_get_encoder_port:            ## @intel_ddi_get_encoder_port
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %esi
	movq	_INTEL_OUTPUT_DISPLAYPORT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	je	LBB0_7
## %bb.1:
	movq	_INTEL_OUTPUT_EDP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	je	LBB0_7
## %bb.2:
	movq	_INTEL_OUTPUT_HDMI@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	je	LBB0_7
## %bb.3:
	movq	_INTEL_OUTPUT_UNKNOWN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	je	LBB0_7
## %bb.4:
	movq	_INTEL_OUTPUT_ANALOG@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_8
## %bb.5:
	movq	_PORT_E@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	addq	$4, %rdi
	callq	_enc_to_dig_port
LBB0_6:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	xorl	%eax, %eax
	callq	_BUG
                                        ## implicit-def: $eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_OUTPUT_DISPLAYPORT,4,2   ## @INTEL_OUTPUT_DISPLAYPORT
	.comm	_INTEL_OUTPUT_EDP,4,2           ## @INTEL_OUTPUT_EDP
	.comm	_INTEL_OUTPUT_HDMI,4,2          ## @INTEL_OUTPUT_HDMI
	.comm	_INTEL_OUTPUT_UNKNOWN,4,2       ## @INTEL_OUTPUT_UNKNOWN
	.comm	_INTEL_OUTPUT_ANALOG,4,2        ## @INTEL_OUTPUT_ANALOG
	.comm	_PORT_E,4,2                     ## @PORT_E
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid DDI encoder type %d\n"

	.no_dead_strip	_intel_ddi_get_encoder_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_ddi_get_encoder_port
_intel_ddi_get_encoder_port:            ; @intel_ddi_get_encoder_port
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w1, [x0]
Lloh0:
	adrp	x8, _INTEL_OUTPUT_DISPLAYPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTEL_OUTPUT_DISPLAYPORT@GOTPAGEOFF]
Lloh2:
	adrp	x9, _INTEL_OUTPUT_EDP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _INTEL_OUTPUT_EDP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _INTEL_OUTPUT_HDMI@GOTPAGE
Lloh7:
	ldr	x10, [x10, _INTEL_OUTPUT_HDMI@GOTPAGEOFF]
Lloh8:
	adrp	x11, _INTEL_OUTPUT_UNKNOWN@GOTPAGE
Lloh9:
	ldr	x11, [x11, _INTEL_OUTPUT_UNKNOWN@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	ldr	w11, [x11]
	cmp	w1, w8
	ccmp	w1, w9, #4, ne
	ccmp	w1, w10, #4, ne
	ccmp	w1, w11, #4, ne
	b.ne	LBB0_2
; %bb.1:
	add	x0, x0, #4
	bl	_enc_to_dig_port
	ldr	w0, [x0]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh12:
	adrp	x8, _INTEL_OUTPUT_ANALOG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INTEL_OUTPUT_ANALOG@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _PORT_E@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PORT_E@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	bl	_BUG
                                        ; implicit-def: $w0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_OUTPUT_DISPLAYPORT,4,2   ; @INTEL_OUTPUT_DISPLAYPORT
	.comm	_INTEL_OUTPUT_EDP,4,2           ; @INTEL_OUTPUT_EDP
	.comm	_INTEL_OUTPUT_HDMI,4,2          ; @INTEL_OUTPUT_HDMI
	.comm	_INTEL_OUTPUT_UNKNOWN,4,2       ; @INTEL_OUTPUT_UNKNOWN
	.comm	_INTEL_OUTPUT_ANALOG,4,2        ; @INTEL_OUTPUT_ANALOG
	.comm	_PORT_E,4,2                     ; @PORT_E
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid DDI encoder type %d\n"

	.no_dead_strip	_intel_ddi_get_encoder_port
.subsections_via_symbols
