	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_sdvo_output_setup
_intel_sdvo_output_setup:               ## @intel_sdvo_output_setup
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_SDVO_OUTPUT_TMDS0@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_intel_sdvo_dvi_init
	testl	%eax, %eax
	je	LBB0_27
LBB0_2:
	movq	_SDVO_TMDS_MASK@GOTPCREL(%rip), %rax
	movl	%r15d, %r12d
	notl	%r12d
	testl	%r12d, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_intel_sdvo_dvi_init
	testl	%eax, %eax
	je	LBB0_26
LBB0_4:
	movq	_SDVO_OUTPUT_SVID0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r15d, %esi
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_intel_sdvo_tv_init
	testl	%eax, %eax
	je	LBB0_26
LBB0_6:
	movq	_SDVO_OUTPUT_CVBS0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r15d, %esi
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_intel_sdvo_tv_init
	testl	%eax, %eax
	je	LBB0_26
LBB0_8:
	movq	_SDVO_OUTPUT_YPRPB0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r15d, %esi
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_intel_sdvo_tv_init
	testl	%eax, %eax
	je	LBB0_26
LBB0_10:
	movq	_SDVO_OUTPUT_RGB0@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_12
## %bb.11:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_intel_sdvo_analog_init
	testl	%eax, %eax
	je	LBB0_27
LBB0_12:
	movq	_SDVO_RGB_MASK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_intel_sdvo_analog_init
	testl	%eax, %eax
	je	LBB0_26
LBB0_14:
	movq	_SDVO_OUTPUT_LVDS0@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_16
## %bb.15:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_intel_sdvo_lvds_init
	testl	%eax, %eax
	je	LBB0_27
LBB0_16:
	movq	_SDVO_LVDS_MASK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_intel_sdvo_lvds_init
	testl	%eax, %eax
	je	LBB0_26
LBB0_18:
	movq	_SDVO_OUTPUT_MASK@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_25
## %bb.19:
	movl	$7, (%r14)
	movl	$1, %ebx
	jmp	LBB0_27
LBB0_25:
	movq	$0, 8(%r14)
	leaq	4(%r14), %rsi
	leaq	-34(%rbp), %rdi
	movl	$2, %edx
	callq	_memcpy
	movq	%r14, %rdi
	callq	_SDVO_NAME
	movzbl	-34(%rbp), %edx
	movzbl	-33(%rbp), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_DEBUG_KMS
LBB0_26:
	xorl	%ebx, %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDVO_OUTPUT_TMDS0,4,2          ## @SDVO_OUTPUT_TMDS0
	.comm	_SDVO_TMDS_MASK,4,2             ## @SDVO_TMDS_MASK
	.comm	_SDVO_OUTPUT_SVID0,4,2          ## @SDVO_OUTPUT_SVID0
	.comm	_SDVO_OUTPUT_CVBS0,4,2          ## @SDVO_OUTPUT_CVBS0
	.comm	_SDVO_OUTPUT_YPRPB0,4,2         ## @SDVO_OUTPUT_YPRPB0
	.comm	_SDVO_OUTPUT_RGB0,4,2           ## @SDVO_OUTPUT_RGB0
	.comm	_SDVO_RGB_MASK,4,2              ## @SDVO_RGB_MASK
	.comm	_SDVO_OUTPUT_LVDS0,4,2          ## @SDVO_OUTPUT_LVDS0
	.comm	_SDVO_LVDS_MASK,4,2             ## @SDVO_LVDS_MASK
	.comm	_SDVO_OUTPUT_MASK,4,2           ## @SDVO_OUTPUT_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Unknown SDVO output type (0x%02x%02x)\n"

	.no_dead_strip	_intel_sdvo_output_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_sdvo_output_setup
_intel_sdvo_output_setup:               ; @intel_sdvo_output_setup
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SDVO_OUTPUT_TMDS0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDVO_OUTPUT_TMDS0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_intel_sdvo_dvi_init
	cbz	w0, LBB0_21
LBB0_2:
Lloh3:
	adrp	x8, _SDVO_TMDS_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDVO_TMDS_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	bics	wzr, w8, w20
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	bl	_intel_sdvo_dvi_init
	cbz	w0, LBB0_21
LBB0_4:
Lloh6:
	adrp	x8, _SDVO_OUTPUT_SVID0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDVO_OUTPUT_SVID0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	tst	w1, w20
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_intel_sdvo_tv_init
	cbz	w0, LBB0_21
LBB0_6:
Lloh9:
	adrp	x8, _SDVO_OUTPUT_CVBS0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SDVO_OUTPUT_CVBS0@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	tst	w1, w20
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_intel_sdvo_tv_init
	cbz	w0, LBB0_21
LBB0_8:
Lloh12:
	adrp	x8, _SDVO_OUTPUT_YPRPB0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SDVO_OUTPUT_YPRPB0@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	tst	w1, w20
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_intel_sdvo_tv_init
	cbz	w0, LBB0_21
LBB0_10:
Lloh15:
	adrp	x8, _SDVO_OUTPUT_RGB0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SDVO_OUTPUT_RGB0@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	mov	w1, #0
	bl	_intel_sdvo_analog_init
	cbz	w0, LBB0_21
LBB0_12:
Lloh18:
	adrp	x8, _SDVO_RGB_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SDVO_RGB_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	bics	wzr, w8, w20
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x19
	mov	w1, #1
	bl	_intel_sdvo_analog_init
	cbz	w0, LBB0_21
LBB0_14:
Lloh21:
	adrp	x8, _SDVO_OUTPUT_LVDS0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SDVO_OUTPUT_LVDS0@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x19
	mov	w1, #0
	bl	_intel_sdvo_lvds_init
	cbz	w0, LBB0_21
LBB0_16:
Lloh24:
	adrp	x8, _SDVO_LVDS_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SDVO_LVDS_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	bics	wzr, w8, w20
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x19
	mov	w1, #1
	bl	_intel_sdvo_lvds_init
	cbz	w0, LBB0_21
LBB0_18:
Lloh27:
	adrp	x8, _SDVO_OUTPUT_MASK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SDVO_OUTPUT_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_20
; %bb.19:
	mov	w8, #7
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_21
LBB0_20:
	str	xzr, [x19, #8]
	add	x1, x19, #4
	add	x0, sp, #14
	mov	w2, #2
	bl	_memcpy
	mov	x0, x19
	bl	_SDVO_NAME
	mov	x1, x0
	ldrb	w2, [sp, #14]
	ldrb	w3, [sp, #15]
Lloh30:
	adrp	x0, l_.str@PAGE
Lloh31:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w0, #0
LBB0_21:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_SDVO_OUTPUT_TMDS0,4,2          ; @SDVO_OUTPUT_TMDS0
	.comm	_SDVO_TMDS_MASK,4,2             ; @SDVO_TMDS_MASK
	.comm	_SDVO_OUTPUT_SVID0,4,2          ; @SDVO_OUTPUT_SVID0
	.comm	_SDVO_OUTPUT_CVBS0,4,2          ; @SDVO_OUTPUT_CVBS0
	.comm	_SDVO_OUTPUT_YPRPB0,4,2         ; @SDVO_OUTPUT_YPRPB0
	.comm	_SDVO_OUTPUT_RGB0,4,2           ; @SDVO_OUTPUT_RGB0
	.comm	_SDVO_RGB_MASK,4,2              ; @SDVO_RGB_MASK
	.comm	_SDVO_OUTPUT_LVDS0,4,2          ; @SDVO_OUTPUT_LVDS0
	.comm	_SDVO_LVDS_MASK,4,2             ; @SDVO_LVDS_MASK
	.comm	_SDVO_OUTPUT_MASK,4,2           ; @SDVO_OUTPUT_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Unknown SDVO output type (0x%02x%02x)\n"

	.no_dead_strip	_intel_sdvo_output_setup
.subsections_via_symbols
