	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_sdvo_dvi_init
_intel_sdvo_dvi_init:                   ## @intel_sdvo_dvi_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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	addq	$12, %rdi
	callq	_to_intel_encoder
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.4:
	cmpl	$1, %r15d
	jne	LBB0_7
## %bb.5:
	movq	_SDVO_OUTPUT_TMDS1@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_3:
	movq	_SDVO_OUTPUT_TMDS0@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ecx
	orl	%ecx, (%rbx)
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_7:
	movq	%rbx, %rdi
	callq	_intel_sdvo_get_hotplug_support
	movl	(%r14), %ecx
	testl	%eax, %ecx
	je	LBB0_9
## %bb.8:
	movq	_DRM_CONNECTOR_POLL_HPD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	orl	%ecx, 4(%rbx)
	movq	_intel_sdvo_enable_hotplug@GOTPCREL(%rip), %rax
	movq	%rax, (%r12)
	movq	%r12, %rdi
	callq	_intel_sdvo_enable_hotplug
	jmp	LBB0_10
LBB0_9:
	movq	_DRM_CONNECTOR_POLL_CONNECT@GOTPCREL(%rip), %rax
	movq	_DRM_CONNECTOR_POLL_DISCONNECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 4(%r14)
LBB0_10:
	movq	_DRM_MODE_ENCODER_TMDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_DRM_MODE_CONNECTOR_DVID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_intel_sdvo_is_hdmi_connector
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_DRM_MODE_CONNECTOR_HDMIA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	$1, 8(%rbx)
LBB0_12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_intel_sdvo_connector_init
	movl	$1, %r15d
	cmpl	$0, 8(%rbx)
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_intel_sdvo_add_hdmi_properties
LBB0_14:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_SDVO_OUTPUT_TMDS0,4,2          ## @SDVO_OUTPUT_TMDS0
	.comm	_SDVO_OUTPUT_TMDS1,4,2          ## @SDVO_OUTPUT_TMDS1
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ## @DRM_CONNECTOR_POLL_HPD
	.comm	_DRM_CONNECTOR_POLL_CONNECT,4,2 ## @DRM_CONNECTOR_POLL_CONNECT
	.comm	_DRM_CONNECTOR_POLL_DISCONNECT,4,2 ## @DRM_CONNECTOR_POLL_DISCONNECT
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ## @DRM_MODE_ENCODER_TMDS
	.comm	_DRM_MODE_CONNECTOR_DVID,4,2    ## @DRM_MODE_CONNECTOR_DVID
	.comm	_DRM_MODE_CONNECTOR_HDMIA,4,2   ## @DRM_MODE_CONNECTOR_HDMIA
	.no_dead_strip	_intel_sdvo_dvi_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_sdvo_dvi_init
_intel_sdvo_dvi_init:                   ; @intel_sdvo_dvi_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
	add	x0, x0, #12
	bl	_to_intel_encoder
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kzalloc
	cbz	x0, LBB0_14
; %bb.1:
	mov	x20, x0
	cbz	w21, LBB0_4
; %bb.2:
	cmp	w21, #1
	b.ne	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _SDVO_OUTPUT_TMDS1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDVO_OUTPUT_TMDS1@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _SDVO_OUTPUT_TMDS0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SDVO_OUTPUT_TMDS0@GOTPAGEOFF]
LBB0_5:
	ldr	w9, [x8]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_6:
	mov	x0, x19
	bl	_intel_sdvo_get_hotplug_support
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.7:
Lloh7:
	adrp	x9, _DRM_CONNECTOR_POLL_HPD@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DRM_CONNECTOR_POLL_HPD@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	str	w9, [x20, #4]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
Lloh10:
	adrp	x8, _intel_sdvo_enable_hotplug@GOTPAGE
Lloh11:
	ldr	x8, [x8, _intel_sdvo_enable_hotplug@GOTPAGEOFF]
	str	x8, [x22]
	mov	x0, x22
	bl	_intel_sdvo_enable_hotplug
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _DRM_CONNECTOR_POLL_CONNECT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DRM_CONNECTOR_POLL_CONNECT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _DRM_CONNECTOR_POLL_DISCONNECT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DRM_CONNECTOR_POLL_DISCONNECT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20, #4]
LBB0_9:
Lloh18:
	adrp	x8, _DRM_MODE_ENCODER_TMDS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TMDS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #12]
Lloh21:
	adrp	x8, _DRM_MODE_CONNECTOR_DVID@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_DVID@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_intel_sdvo_is_hdmi_connector
	cbz	x0, LBB0_11
; %bb.10:
Lloh24:
	adrp	x8, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	bl	_intel_sdvo_connector_init
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_13
; %bb.12:
	mov	x0, x19
	mov	x1, x20
	bl	_intel_sdvo_add_hdmi_properties
LBB0_13:
	mov	w0, #1
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_SDVO_OUTPUT_TMDS0,4,2          ; @SDVO_OUTPUT_TMDS0
	.comm	_SDVO_OUTPUT_TMDS1,4,2          ; @SDVO_OUTPUT_TMDS1
	.comm	_DRM_CONNECTOR_POLL_HPD,4,2     ; @DRM_CONNECTOR_POLL_HPD
	.comm	_DRM_CONNECTOR_POLL_CONNECT,4,2 ; @DRM_CONNECTOR_POLL_CONNECT
	.comm	_DRM_CONNECTOR_POLL_DISCONNECT,4,2 ; @DRM_CONNECTOR_POLL_DISCONNECT
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ; @DRM_MODE_ENCODER_TMDS
	.comm	_DRM_MODE_CONNECTOR_DVID,4,2    ; @DRM_MODE_CONNECTOR_DVID
	.comm	_DRM_MODE_CONNECTOR_HDMIA,4,2   ; @DRM_MODE_CONNECTOR_HDMIA
	.no_dead_strip	_intel_sdvo_dvi_init
.subsections_via_symbols
