	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdv_output_init
_cdv_output_init:                       ## @cdv_output_init
	.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	%rdi, %rbx
	movq	(%rdi), %r14
	callq	_drm_mode_create_scaling_mode_property
	movq	%rbx, %rdi
	callq	_cdv_disable_vga
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_cdv_intel_crt_init
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_cdv_intel_lvds_init
	movq	_SDVOB@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_REG_READ
	movq	_SDVO_DETECTED@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.1:
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_cdv_hdmi_init
	movq	_DP_B@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_REG_READ
	movq	_DP_DETECTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_cdv_intel_dp_init
LBB0_3:
	movq	_SDVOC@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_REG_READ
	testl	%eax, (%r15)
	je	LBB0_6
## %bb.4:
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_cdv_hdmi_init
	movq	_DP_C@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_REG_READ
	movq	_DP_DETECTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_cdv_intel_dp_init
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDVOB,4,2                      ## @SDVOB
	.comm	_SDVO_DETECTED,4,2              ## @SDVO_DETECTED
	.comm	_DP_B,4,2                       ## @DP_B
	.comm	_DP_DETECTED,4,2                ## @DP_DETECTED
	.comm	_SDVOC,4,2                      ## @SDVOC
	.comm	_DP_C,4,2                       ## @DP_C
	.no_dead_strip	_cdv_output_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdv_output_init
_cdv_output_init:                       ; @cdv_output_init
	.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	x20, x0
	ldr	x19, [x0]
	bl	_drm_mode_create_scaling_mode_property
	mov	x0, x20
	bl	_cdv_disable_vga
	mov	x0, x20
	mov	x1, x19
	bl	_cdv_intel_crt_init
	mov	x0, x20
	mov	x1, x19
	bl	_cdv_intel_lvds_init
Lloh0:
	adrp	x23, _SDVOB@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SDVOB@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_REG_READ
Lloh2:
	adrp	x22, _SDVO_DETECTED@GOTPAGE
Lloh3:
	ldr	x22, [x22, _SDVO_DETECTED@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh4:
	adrp	x21, _DP_DETECTED@GOTPAGE
Lloh5:
	ldr	x21, [x21, _DP_DETECTED@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x19
	bl	_cdv_hdmi_init
Lloh6:
	adrp	x23, _DP_B@GOTPAGE
Lloh7:
	ldr	x23, [x23, _DP_B@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_REG_READ
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x19
	bl	_cdv_intel_dp_init
LBB0_3:
Lloh8:
	adrp	x23, _SDVOC@GOTPAGE
Lloh9:
	ldr	x23, [x23, _SDVOC@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_REG_READ
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.4:
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x19
	bl	_cdv_hdmi_init
Lloh10:
	adrp	x22, _DP_C@GOTPAGE
Lloh11:
	ldr	x22, [x22, _DP_C@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_REG_READ
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_cdv_intel_dp_init
LBB0_6:
	mov	w0, #0
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SDVOB,4,2                      ; @SDVOB
	.comm	_SDVO_DETECTED,4,2              ; @SDVO_DETECTED
	.comm	_DP_B,4,2                       ; @DP_B
	.comm	_DP_DETECTED,4,2                ; @DP_DETECTED
	.comm	_SDVOC,4,2                      ; @SDVOC
	.comm	_DP_C,4,2                       ; @DP_C
	.no_dead_strip	_cdv_output_init
.subsections_via_symbols
