	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_enable_hdmi
_intel_enable_hdmi:                     ## @intel_enable_hdmi
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	callq	_enc_to_intel_hdmi
	movq	%rax, %r14
	movq	_SDVO_ENABLE@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	cmpq	$0, 8(%rax)
	je	LBB0_2
## %bb.1:
	movq	_SDVO_AUDIO_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_2:
	orl	(%rcx), %r13d
	movl	(%r14), %edi
	callq	_I915_READ
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_HAS_PCH_IBX
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.5:
	callq	_to_intel_crtc
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_4:
	movl	$-1, %eax
LBB0_6:
	movq	_PIPE_B@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpl	(%rdx), %eax
	jne	LBB0_8
## %bb.7:
	movq	_SDVO_PIPE_B_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_8:
	orl	%ecx, %r13d
LBB0_9:
	movq	%r15, %rdi
	callq	_HAS_PCH_SPLIT
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	(%r14), %edi
	movq	_SDVO_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%r12d, %esi
	callq	_I915_WRITE
	movl	(%r14), %edi
	callq	_POSTING_READ
LBB0_11:
	orl	%r12d, %r13d
	movl	(%r14), %edi
	movl	%r13d, %esi
	callq	_I915_WRITE
	movl	(%r14), %edi
	callq	_POSTING_READ
	movq	%r15, %rdi
	callq	_HAS_PCH_SPLIT
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movl	(%r14), %edi
	movl	%r13d, %esi
	callq	_I915_WRITE
	movl	(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_POSTING_READ                   ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDVO_ENABLE,4,2                ## @SDVO_ENABLE
	.comm	_SDVO_AUDIO_ENABLE,4,2          ## @SDVO_AUDIO_ENABLE
	.comm	_PIPE_B,4,2                     ## @PIPE_B
	.comm	_SDVO_PIPE_B_SELECT,4,2         ## @SDVO_PIPE_B_SELECT
	.no_dead_strip	_intel_enable_hdmi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_enable_hdmi
_intel_enable_hdmi:                     ; @intel_enable_hdmi
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x0
	ldr	x20, [x0, #8]
	bl	_enc_to_intel_hdmi
	mov	x19, x0
Lloh0:
	adrp	x24, _SDVO_ENABLE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SDVO_ENABLE@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x9, _SDVO_AUDIO_ENABLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SDVO_AUDIO_ENABLE@GOTPAGEOFF]
	ldr	x10, [x0, #8]
Lloh4:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w23, w9, w8
	ldr	w0, [x0]
	bl	_I915_READ
	mov	x21, x0
	mov	x0, x20
	bl	_HAS_PCH_IBX
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x0, [x22]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_to_intel_crtc
	ldr	w8, [x0]
	b	LBB0_4
LBB0_3:
	mov	w8, #-1
LBB0_4:
Lloh5:
	adrp	x9, _PIPE_B@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PIPE_B@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _SDVO_PIPE_B_SELECT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SDVO_PIPE_B_SELECT@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w8, w9
	csel	w8, w10, wzr, eq
	orr	w23, w8, w23
LBB0_5:
	mov	x0, x20
	bl	_HAS_PCH_SPLIT
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x19]
	ldr	w8, [x24]
	bic	w1, w21, w8
	bl	_I915_WRITE
	ldr	w0, [x19]
	bl	_POSTING_READ
LBB0_7:
	orr	w21, w23, w21
	ldr	w0, [x19]
	mov	x1, x21
	bl	_I915_WRITE
	ldr	w0, [x19]
	bl	_POSTING_READ
	mov	x0, x20
	bl	_HAS_PCH_SPLIT
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w0, [x19]
	mov	x1, x21
	bl	_I915_WRITE
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_POSTING_READ
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SDVO_ENABLE,4,2                ; @SDVO_ENABLE
	.comm	_SDVO_AUDIO_ENABLE,4,2          ; @SDVO_AUDIO_ENABLE
	.comm	_PIPE_B,4,2                     ; @PIPE_B
	.comm	_SDVO_PIPE_B_SELECT,4,2         ; @SDVO_PIPE_B_SELECT
	.no_dead_strip	_intel_enable_hdmi
.subsections_via_symbols
