	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_sdvo_analog_init
_intel_sdvo_analog_init:                ## @intel_sdvo_analog_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, %r14
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_intel_sdvo_connector_alloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r12
	movq	_DRM_CONNECTOR_POLL_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_DRM_MODE_ENCODER_DAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_DRM_MODE_CONNECTOR_VGA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.3:
	cmpl	$1, %r15d
	jne	LBB0_6
## %bb.4:
	movq	_SDVO_OUTPUT_RGB1@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_SDVO_OUTPUT_RGB0@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ecx
	orl	%ecx, (%r14)
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_6:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_intel_sdvo_connector_init
	movl	$1, %ebx
	testq	%rax, %rax
	jns	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_kfree
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"initialising analog device %d\n"

	.comm	_DRM_CONNECTOR_POLL_CONNECT,4,2 ## @DRM_CONNECTOR_POLL_CONNECT
	.comm	_DRM_MODE_ENCODER_DAC,4,2       ## @DRM_MODE_ENCODER_DAC
	.comm	_DRM_MODE_CONNECTOR_VGA,4,2     ## @DRM_MODE_CONNECTOR_VGA
	.comm	_SDVO_OUTPUT_RGB0,4,2           ## @SDVO_OUTPUT_RGB0
	.comm	_SDVO_OUTPUT_RGB1,4,2           ## @SDVO_OUTPUT_RGB1
	.no_dead_strip	_intel_sdvo_analog_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_analog_init
_intel_sdvo_analog_init:                ; @intel_sdvo_analog_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	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	bl	_intel_sdvo_connector_alloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x8, _DRM_CONNECTOR_POLL_CONNECT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRM_CONNECTOR_POLL_CONNECT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _DRM_MODE_ENCODER_DAC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DRM_MODE_ENCODER_DAC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [x19, #4]
Lloh8:
	adrp	x9, _DRM_MODE_CONNECTOR_VGA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_VGA@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w8, w9, [x0, #4]
	cbz	w21, LBB0_4
; %bb.2:
	cmp	w21, #1
	b.ne	LBB0_6
; %bb.3:
Lloh11:
	adrp	x8, _SDVO_OUTPUT_RGB1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SDVO_OUTPUT_RGB1@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, _SDVO_OUTPUT_RGB0@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SDVO_OUTPUT_RGB0@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, x20
	mov	x1, x19
	bl	_intel_sdvo_connector_init
	tbnz	x0, #63, LBB0_8
; %bb.7:
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_kfree
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"initialising analog device %d\n"

	.comm	_DRM_CONNECTOR_POLL_CONNECT,4,2 ; @DRM_CONNECTOR_POLL_CONNECT
	.comm	_DRM_MODE_ENCODER_DAC,4,2       ; @DRM_MODE_ENCODER_DAC
	.comm	_DRM_MODE_CONNECTOR_VGA,4,2     ; @DRM_MODE_CONNECTOR_VGA
	.comm	_SDVO_OUTPUT_RGB0,4,2           ; @SDVO_OUTPUT_RGB0
	.comm	_SDVO_OUTPUT_RGB1,4,2           ; @SDVO_OUTPUT_RGB1
	.no_dead_strip	_intel_sdvo_analog_init
.subsections_via_symbols
