	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psb_intel_sdvo_dvi_init
_psb_intel_sdvo_dvi_init:               ## @psb_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %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_11
LBB0_3:
	movq	_SDVO_OUTPUT_TMDS0@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
	movl	%eax, 4(%r14)
LBB0_7:
	movq	_DRM_MODE_ENCODER_TMDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_DRM_MODE_CONNECTOR_DVID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_psb_intel_sdvo_is_hdmi_connector
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_DRM_MODE_CONNECTOR_HDMIA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	$1, (%rbx)
LBB0_9:
	movq	_INTEL_SDVO_NON_TV_CLONE_BIT@GOTPCREL(%rip), %rax
	movq	_INTEL_ANALOG_CLONE_BIT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movb	(%rax), %al
	movl	$1, %r15d
	btsl	%eax, %edx
	movl	%edx, 4(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_psb_intel_sdvo_connector_init
	cmpl	$0, (%rbx)
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_psb_intel_sdvo_add_hdmi_properties
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	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_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
	.comm	_INTEL_SDVO_NON_TV_CLONE_BIT,4,2 ## @INTEL_SDVO_NON_TV_CLONE_BIT
	.comm	_INTEL_ANALOG_CLONE_BIT,4,2     ## @INTEL_ANALOG_CLONE_BIT
	.no_dead_strip	_psb_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 psb_intel_sdvo_dvi_init
_psb_intel_sdvo_dvi_init:               ; @psb_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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	cbz	w21, LBB0_5
; %bb.2:
	cmp	w21, #1
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _SDVO_OUTPUT_TMDS1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDVO_OUTPUT_TMDS1@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	mov	w21, #0
	b	LBB0_11
LBB0_5:
Lloh5:
	adrp	x8, _SDVO_OUTPUT_TMDS0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SDVO_OUTPUT_TMDS0@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w9, w9, w8
	str	w9, [x19, #12]
	str	w8, [x20, #4]
LBB0_7:
Lloh7:
	adrp	x8, _DRM_MODE_ENCODER_TMDS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TMDS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh10:
	adrp	x8, _DRM_MODE_CONNECTOR_DVID@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_DVID@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x19
	mov	x1, x21
	bl	_psb_intel_sdvo_is_hdmi_connector
	cbz	x0, LBB0_9
; %bb.8:
Lloh13:
	adrp	x8, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_HDMIA@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	w8, #1
	str	w8, [x19]
LBB0_9:
Lloh16:
	adrp	x8, _INTEL_SDVO_NON_TV_CLONE_BIT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _INTEL_SDVO_NON_TV_CLONE_BIT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	mov	w21, #1
	lsl	w8, w21, w8
Lloh19:
	adrp	x9, _INTEL_ANALOG_CLONE_BIT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _INTEL_ANALOG_CLONE_BIT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	lsl	w9, w21, w9
	orr	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_psb_intel_sdvo_connector_init
	ldr	w8, [x19]
	cbz	w8, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_psb_intel_sdvo_add_hdmi_properties
	mov	w21, #1
LBB0_11:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.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_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
	.comm	_INTEL_SDVO_NON_TV_CLONE_BIT,4,2 ; @INTEL_SDVO_NON_TV_CLONE_BIT
	.comm	_INTEL_ANALOG_CLONE_BIT,4,2     ; @INTEL_ANALOG_CLONE_BIT
	.no_dead_strip	_psb_intel_sdvo_dvi_init
.subsections_via_symbols
