	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_sdvo_tv_init
_intel_sdvo_tv_init:                    ## @intel_sdvo_tv_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
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_intel_sdvo_connector_alloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	_DRM_MODE_ENCODER_TVDAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_DRM_MODE_CONNECTOR_SVIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	orl	%r12d, (%r14)
	movl	%r12d, (%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_intel_sdvo_connector_init
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_intel_sdvo_tv_create_property
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_intel_sdvo_create_enhance_property
	movl	$1, %r15d
	testl	%eax, %eax
	jne	LBB0_6
LBB0_5:
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_intel_connector_destroy
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_6:
	movl	%r15d, %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 TV type %d\n"

	.comm	_DRM_MODE_ENCODER_TVDAC,4,2     ## @DRM_MODE_ENCODER_TVDAC
	.comm	_DRM_MODE_CONNECTOR_SVIDEO,4,2  ## @DRM_MODE_CONNECTOR_SVIDEO
	.no_dead_strip	_intel_sdvo_tv_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_tv_init
_intel_sdvo_tv_init:                    ; @intel_sdvo_tv_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_8
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x8, _DRM_MODE_CONNECTOR_SVIDEO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRM_MODE_CONNECTOR_SVIDEO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	x22, x0
	str	w8, [x22, #4]!
Lloh5:
	adrp	x8, _DRM_MODE_ENCODER_TVDAC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TVDAC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w9, w9, w21
	stp	w9, w8, [x19]
	str	w21, [x0]
	mov	x1, x19
	bl	_intel_sdvo_connector_init
	tbnz	x0, #63, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_intel_sdvo_tv_create_property
	cbz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_intel_sdvo_create_enhance_property
	cbz	w0, LBB0_6
; %bb.4:
	mov	w0, #1
	b	LBB0_8
LBB0_5:
	mov	x0, x20
	bl	_kfree
	b	LBB0_7
LBB0_6:
	mov	x0, x22
	bl	_intel_connector_destroy
LBB0_7:
	mov	w0, #0
LBB0_8:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"initialising TV type %d\n"

	.comm	_DRM_MODE_ENCODER_TVDAC,4,2     ; @DRM_MODE_ENCODER_TVDAC
	.comm	_DRM_MODE_CONNECTOR_SVIDEO,4,2  ; @DRM_MODE_CONNECTOR_SVIDEO
	.no_dead_strip	_intel_sdvo_tv_init
.subsections_via_symbols
