	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpt_enable_hdmi
_cpt_enable_hdmi:                       ## @cpt_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_to_i915
	movl	16(%r13), %edi
	callq	_to_intel_crtc
	movq	%rax, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_enc_to_intel_hdmi
	movq	%rax, %r15
	movl	(%r14), %r12d
	movl	(%rax), %edi
	callq	_I915_READ
	movl	%eax, %r14d
	movq	_SDVO_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	xorl	%eax, %eax
	cmpq	$0, 8(%r13)
	je	LBB0_2
## %bb.1:
	movq	_HDMI_AUDIO_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	orl	%eax, %r14d
	cmpl	$25, (%r13)
	jl	LBB0_4
## %bb.3:
	movl	%r12d, %edi
	callq	_TRANS_CHICKEN1
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_TRANS_CHICKEN1
	movl	%eax, %edi
	callq	_I915_READ
	movq	_TRANS_CHICKEN1_HDMIUNIT_GC_DISABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_I915_WRITE
	movq	_SDVO_COLOR_FORMAT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r14d
	movq	_SDVO_COLOR_FORMAT_8bpc@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_4:
	movl	(%r15), %edi
	movl	%r14d, %esi
	callq	_I915_WRITE
	movl	(%r15), %edi
	callq	_POSTING_READ
	cmpl	$25, (%r13)
	jl	LBB0_6
## %bb.5:
	movq	_SDVO_COLOR_FORMAT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r14d
	movq	_HDMI_COLOR_FORMAT_12bpc@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	(%r15), %edi
	movl	%r14d, %esi
	callq	_I915_WRITE
	movl	(%r15), %edi
	callq	_POSTING_READ
	movl	%r12d, %edi
	callq	_TRANS_CHICKEN1
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_TRANS_CHICKEN1
	movl	%eax, %edi
	callq	_I915_READ
	movq	_TRANS_CHICKEN1_HDMIUNIT_GC_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edi
	callq	_I915_WRITE
LBB0_6:
	cmpq	$0, 8(%r13)
	je	LBB0_7
## %bb.8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_enable_hdmi_audio        ## TAILCALL
LBB0_7:
	addq	$24, %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	_HDMI_AUDIO_ENABLE,4,2          ## @HDMI_AUDIO_ENABLE
	.comm	_TRANS_CHICKEN1_HDMIUNIT_GC_DISABLE,4,2 ## @TRANS_CHICKEN1_HDMIUNIT_GC_DISABLE
	.comm	_SDVO_COLOR_FORMAT_MASK,4,2     ## @SDVO_COLOR_FORMAT_MASK
	.comm	_SDVO_COLOR_FORMAT_8bpc,4,2     ## @SDVO_COLOR_FORMAT_8bpc
	.comm	_HDMI_COLOR_FORMAT_12bpc,4,2    ## @HDMI_COLOR_FORMAT_12bpc
	.no_dead_strip	_cpt_enable_hdmi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpt_enable_hdmi
_cpt_enable_hdmi:                       ; @cpt_enable_hdmi
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x0, [x0]
	bl	_to_i915
	ldr	w0, [x20, #16]
	bl	_to_intel_crtc
	mov	x22, x0
	mov	x0, x21
	bl	_enc_to_intel_hdmi
	mov	x23, x0
	ldr	w22, [x22]
	ldr	w0, [x0]
	bl	_I915_READ
Lloh0:
	adrp	x8, _SDVO_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDVO_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w8, w8, w0
	ldr	x9, [x20, #8]
Lloh3:
	adrp	x10, _HDMI_AUDIO_ENABLE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HDMI_AUDIO_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w24, w8, w9
	ldr	w8, [x20]
	cmp	w8, #25
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_TRANS_CHICKEN1
	mov	x25, x0
	mov	x0, x22
	bl	_TRANS_CHICKEN1
	bl	_I915_READ
Lloh6:
	adrp	x8, _TRANS_CHICKEN1_HDMIUNIT_GC_DISABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRANS_CHICKEN1_HDMIUNIT_GC_DISABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x25
	bl	_I915_WRITE
Lloh9:
	adrp	x8, _SDVO_COLOR_FORMAT_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SDVO_COLOR_FORMAT_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bic	w8, w24, w8
Lloh12:
	adrp	x9, _SDVO_COLOR_FORMAT_8bpc@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SDVO_COLOR_FORMAT_8bpc@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w24, w8, w9
LBB0_2:
	ldr	w0, [x23]
	mov	x1, x24
	bl	_I915_WRITE
	ldr	w0, [x23]
	bl	_POSTING_READ
	ldr	w8, [x20]
	cmp	w8, #25
	b.lt	LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _SDVO_COLOR_FORMAT_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SDVO_COLOR_FORMAT_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	bic	w8, w24, w8
Lloh18:
	adrp	x9, _HDMI_COLOR_FORMAT_12bpc@GOTPAGE
Lloh19:
	ldr	x9, [x9, _HDMI_COLOR_FORMAT_12bpc@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w1, w8, w9
	ldr	w0, [x23]
	bl	_I915_WRITE
	ldr	w0, [x23]
	bl	_POSTING_READ
	mov	x0, x22
	bl	_TRANS_CHICKEN1
	mov	x23, x0
	mov	x0, x22
	bl	_TRANS_CHICKEN1
	bl	_I915_READ
Lloh21:
	adrp	x8, _TRANS_CHICKEN1_HDMIUNIT_GC_DISABLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TRANS_CHICKEN1_HDMIUNIT_GC_DISABLE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	bic	w1, w0, w8
	mov	x0, x23
	bl	_I915_WRITE
LBB0_4:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_intel_enable_hdmi_audio
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SDVO_ENABLE,4,2                ; @SDVO_ENABLE
	.comm	_HDMI_AUDIO_ENABLE,4,2          ; @HDMI_AUDIO_ENABLE
	.comm	_TRANS_CHICKEN1_HDMIUNIT_GC_DISABLE,4,2 ; @TRANS_CHICKEN1_HDMIUNIT_GC_DISABLE
	.comm	_SDVO_COLOR_FORMAT_MASK,4,2     ; @SDVO_COLOR_FORMAT_MASK
	.comm	_SDVO_COLOR_FORMAT_8bpc,4,2     ; @SDVO_COLOR_FORMAT_8bpc
	.comm	_HDMI_COLOR_FORMAT_12bpc,4,2    ; @HDMI_COLOR_FORMAT_12bpc
	.no_dead_strip	_cpt_enable_hdmi
.subsections_via_symbols
