	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psb_intel_sdvo_lvds_init
_psb_intel_sdvo_lvds_init:              ## @psb_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	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	%r12d, %r12d
	je	LBB0_2
## %bb.3:
	cmpl	$1, %r12d
	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), %eax
	orl	%eax, 8(%r14)
	movl	%eax, (%rbx)
LBB0_6:
	movq	_INTEL_ANALOG_CLONE_BIT@GOTPCREL(%rip), %rax
	movq	_INTEL_SDVO_LVDS_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, (%r14)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_psb_intel_sdvo_connector_init
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_psb_intel_sdvo_create_enhance_property
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_psb_intel_sdvo_destroy
	xorl	%r15d, %r15d
LBB0_8:
	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	_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
	.comm	_INTEL_ANALOG_CLONE_BIT,4,2     ## @INTEL_ANALOG_CLONE_BIT
	.comm	_INTEL_SDVO_LVDS_CLONE_BIT,4,2  ## @INTEL_SDVO_LVDS_CLONE_BIT
	.no_dead_strip	_psb_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 psb_intel_sdvo_lvds_init
_psb_intel_sdvo_lvds_init:              ; @psb_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_8
; %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	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w9, w9, w8
	str	w9, [x19, #8]
	str	w8, [x21]
LBB0_6:
Lloh13:
	adrp	x8, _INTEL_ANALOG_CLONE_BIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INTEL_ANALOG_CLONE_BIT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	mov	w22, #1
	lsl	w8, w22, w8
Lloh16:
	adrp	x9, _INTEL_SDVO_LVDS_CLONE_BIT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _INTEL_SDVO_LVDS_CLONE_BIT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	lsl	w9, w22, w9
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x21
	mov	x1, x19
	bl	_psb_intel_sdvo_connector_init
	mov	x0, x19
	mov	x1, x21
	bl	_psb_intel_sdvo_create_enhance_property
	cbnz	w0, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_psb_intel_sdvo_destroy
LBB0_8:
	mov	w22, #0
LBB0_9:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.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
	.comm	_INTEL_ANALOG_CLONE_BIT,4,2     ; @INTEL_ANALOG_CLONE_BIT
	.comm	_INTEL_SDVO_LVDS_CLONE_BIT,4,2  ; @INTEL_SDVO_LVDS_CLONE_BIT
	.no_dead_strip	_psb_intel_sdvo_lvds_init
.subsections_via_symbols
