	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_sdvo_lvds_init
_intel_sdvo_lvds_init:                  ## @intel_sdvo_lvds_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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	xorl	%eax, %eax
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	movq	_DRM_MODE_ENCODER_LVDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_DRM_MODE_CONNECTOR_LVDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.3:
	cmpl	$1, %r15d
	jne	LBB0_6
## %bb.4:
	movq	_SDVO_OUTPUT_LVDS1@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_SDVO_OUTPUT_LVDS0@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ecx
	orl	%ecx, (%r14)
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_intel_sdvo_connector_init
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_intel_sdvo_create_enhance_property
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_8
## %bb.7:
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_intel_sdvo_destroy
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DRM_MODE_ENCODER_LVDS,4,2      ## @DRM_MODE_ENCODER_LVDS
	.comm	_DRM_MODE_CONNECTOR_LVDS,4,2    ## @DRM_MODE_CONNECTOR_LVDS
	.comm	_SDVO_OUTPUT_LVDS0,4,2          ## @SDVO_OUTPUT_LVDS0
	.comm	_SDVO_OUTPUT_LVDS1,4,2          ## @SDVO_OUTPUT_LVDS1
	.no_dead_strip	_intel_sdvo_lvds_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_lvds_init
_intel_sdvo_lvds_init:                  ; @intel_sdvo_lvds_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	x22, 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_9
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _DRM_MODE_CONNECTOR_LVDS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_LVDS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x20, x0
	str	w8, [x20, #4]!
Lloh6:
	adrp	x8, _DRM_MODE_ENCODER_LVDS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_MODE_ENCODER_LVDS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	cbz	w22, LBB0_4
; %bb.2:
	cmp	w22, #1
	b.ne	LBB0_6
; %bb.3:
Lloh9:
	adrp	x8, _SDVO_OUTPUT_LVDS1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SDVO_OUTPUT_LVDS1@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _SDVO_OUTPUT_LVDS0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SDVO_OUTPUT_LVDS0@GOTPAGEOFF]
LBB0_5:
	ldr	w9, [x8]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
	ldr	w8, [x8]
	str	w8, [x21]
LBB0_6:
	mov	x0, x21
	mov	x1, x19
	bl	_intel_sdvo_connector_init
	mov	x0, x19
	mov	x1, x21
	bl	_intel_sdvo_create_enhance_property
	cbz	w0, LBB0_8
; %bb.7:
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_intel_sdvo_destroy
	mov	w0, #0
LBB0_9:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DRM_MODE_ENCODER_LVDS,4,2      ; @DRM_MODE_ENCODER_LVDS
	.comm	_DRM_MODE_CONNECTOR_LVDS,4,2    ; @DRM_MODE_CONNECTOR_LVDS
	.comm	_SDVO_OUTPUT_LVDS0,4,2          ; @SDVO_OUTPUT_LVDS0
	.comm	_SDVO_OUTPUT_LVDS1,4,2          ; @SDVO_OUTPUT_LVDS1
	.no_dead_strip	_intel_sdvo_lvds_init
.subsections_via_symbols
