	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpt_set_infoframes
_cpt_set_infoframes:                    ## @cpt_set_infoframes
	.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	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_to_i915
	movl	12(%r13), %edi
	callq	_to_intel_crtc
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_enc_to_intel_hdmi
	movq	%rax, %r12
	movl	(%rbx), %edi
	callq	_TVIDEO_DIP_CTL
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_assert_hdmi_port_disabled
	movq	_VIDEO_DIP_SELECT_AVI@GOTPCREL(%rip), %rax
	movq	_VIDEO_DIP_FREQ_VSYNC@GOTPCREL(%rip), %rcx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	movq	_VIDEO_DIP_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_1
## %bb.3:
	movq	_VIDEO_DIP_ENABLE_AVI@GOTPCREL(%rip), %rcx
	orl	%ebx, %eax
	orl	(%rcx), %eax
	movq	_VIDEO_DIP_ENABLE_VENDOR@GOTPCREL(%rip), %rcx
	movq	_VIDEO_DIP_ENABLE_GAMUT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movq	_VIDEO_DIP_ENABLE_SPD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	movq	_VIDEO_DIP_ENABLE_GCP@GOTPCREL(%rip), %r12
	orl	(%r12), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_intel_hdmi_set_gcp_infoframe
	xorl	%esi, %esi
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r12), %esi
LBB0_5:
	orl	%ebx, %esi
	movl	%r15d, %edi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_POSTING_READ
	movq	_HDMI_INFOFRAME_TYPE_AVI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	8(%r13), %rcx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_intel_write_infoframe
	movq	_HDMI_INFOFRAME_TYPE_SPD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	4(%r13), %rcx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_intel_write_infoframe
	movq	_HDMI_INFOFRAME_TYPE_VENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r13, %rcx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_write_infoframe          ## TAILCALL
LBB0_1:
	testl	%ebx, %eax
	je	LBB0_6
## %bb.2:
	movq	_VIDEO_DIP_ENABLE_AVI@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_VIDEO_DIP_ENABLE_VENDOR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_VIDEO_DIP_ENABLE_GAMUT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_VIDEO_DIP_ENABLE_SPD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_VIDEO_DIP_ENABLE_GCP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	%eax, %ebx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	%r15d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_POSTING_READ                   ## TAILCALL
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEO_DIP_SELECT_AVI,4,2       ## @VIDEO_DIP_SELECT_AVI
	.comm	_VIDEO_DIP_FREQ_VSYNC,4,2       ## @VIDEO_DIP_FREQ_VSYNC
	.comm	_VIDEO_DIP_ENABLE,4,2           ## @VIDEO_DIP_ENABLE
	.comm	_VIDEO_DIP_ENABLE_AVI,4,2       ## @VIDEO_DIP_ENABLE_AVI
	.comm	_VIDEO_DIP_ENABLE_VENDOR,4,2    ## @VIDEO_DIP_ENABLE_VENDOR
	.comm	_VIDEO_DIP_ENABLE_GAMUT,4,2     ## @VIDEO_DIP_ENABLE_GAMUT
	.comm	_VIDEO_DIP_ENABLE_SPD,4,2       ## @VIDEO_DIP_ENABLE_SPD
	.comm	_VIDEO_DIP_ENABLE_GCP,4,2       ## @VIDEO_DIP_ENABLE_GCP
	.comm	_HDMI_INFOFRAME_TYPE_AVI,4,2    ## @HDMI_INFOFRAME_TYPE_AVI
	.comm	_HDMI_INFOFRAME_TYPE_SPD,4,2    ## @HDMI_INFOFRAME_TYPE_SPD
	.comm	_HDMI_INFOFRAME_TYPE_VENDOR,4,2 ## @HDMI_INFOFRAME_TYPE_VENDOR
	.no_dead_strip	_cpt_set_infoframes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpt_set_infoframes
_cpt_set_infoframes:                    ; @cpt_set_infoframes
	.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	x22, x3
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_to_i915
	ldr	w0, [x19, #12]
	bl	_to_intel_crtc
	mov	x21, x0
	mov	x0, x20
	bl	_enc_to_intel_hdmi
	mov	x24, x0
	ldr	w0, [x21]
	bl	_TVIDEO_DIP_CTL
	mov	x21, x0
	bl	_I915_READ
	mov	x25, x0
	mov	x0, x24
	bl	_assert_hdmi_port_disabled
Lloh0:
	adrp	x8, _VIDEO_DIP_SELECT_AVI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDEO_DIP_SELECT_AVI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VIDEO_DIP_FREQ_VSYNC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VIDEO_DIP_FREQ_VSYNC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w8, w25
	orr	w8, w8, w9
Lloh6:
	adrp	x9, _VIDEO_DIP_ENABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cbz	w23, LBB0_2
; %bb.1:
Lloh9:
	adrp	x10, _VIDEO_DIP_ENABLE_AVI@GOTPAGE
Lloh10:
	ldr	x10, [x10, _VIDEO_DIP_ENABLE_AVI@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w8, w8, w10
Lloh12:
	adrp	x9, _VIDEO_DIP_ENABLE_VENDOR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_VENDOR@GOTPAGEOFF]
Lloh14:
	adrp	x10, _VIDEO_DIP_ENABLE_GAMUT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _VIDEO_DIP_ENABLE_GAMUT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh18:
	adrp	x10, _VIDEO_DIP_ENABLE_SPD@GOTPAGE
Lloh19:
	ldr	x10, [x10, _VIDEO_DIP_ENABLE_SPD@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh21:
	adrp	x23, _VIDEO_DIP_ENABLE_GCP@GOTPAGE
Lloh22:
	ldr	x23, [x23, _VIDEO_DIP_ENABLE_GCP@GOTPAGEOFF]
	ldr	w10, [x23]
	orr	w9, w9, w10
	bic	w24, w8, w9
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_intel_hdmi_set_gcp_infoframe
	ldr	w8, [x23]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w1, w8, w24
	mov	x0, x21
	bl	_I915_WRITE
	mov	x0, x21
	bl	_POSTING_READ
Lloh23:
	adrp	x8, _HDMI_INFOFRAME_TYPE_AVI@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HDMI_INFOFRAME_TYPE_AVI@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	add	x3, x19, #8
	mov	x0, x20
	mov	x1, x19
	bl	_intel_write_infoframe
Lloh26:
	adrp	x8, _HDMI_INFOFRAME_TYPE_SPD@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HDMI_INFOFRAME_TYPE_SPD@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	add	x3, x19, #4
	mov	x0, x20
	mov	x1, x19
	bl	_intel_write_infoframe
Lloh29:
	adrp	x8, _HDMI_INFOFRAME_TYPE_VENDOR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HDMI_INFOFRAME_TYPE_VENDOR@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x3, 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_write_infoframe
LBB0_2:
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh32:
	adrp	x10, _VIDEO_DIP_ENABLE_AVI@GOTPAGE
Lloh33:
	ldr	x10, [x10, _VIDEO_DIP_ENABLE_AVI@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh35:
	adrp	x10, _VIDEO_DIP_ENABLE_VENDOR@GOTPAGE
Lloh36:
	ldr	x10, [x10, _VIDEO_DIP_ENABLE_VENDOR@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
Lloh38:
	adrp	x11, _VIDEO_DIP_ENABLE_GAMUT@GOTPAGE
Lloh39:
	ldr	x11, [x11, _VIDEO_DIP_ENABLE_GAMUT@GOTPAGEOFF]
	orr	w9, w9, w10
Lloh40:
	ldr	w10, [x11]
	orr	w9, w9, w10
Lloh41:
	adrp	x10, _VIDEO_DIP_ENABLE_SPD@GOTPAGE
Lloh42:
	ldr	x10, [x10, _VIDEO_DIP_ENABLE_SPD@GOTPAGEOFF]
Lloh43:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh44:
	adrp	x10, _VIDEO_DIP_ENABLE_GCP@GOTPAGE
Lloh45:
	ldr	x10, [x10, _VIDEO_DIP_ENABLE_GCP@GOTPAGEOFF]
Lloh46:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bic	w1, w8, w9
	mov	x0, x21
	bl	_I915_WRITE
	mov	x0, x21
	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	_POSTING_READ
LBB0_4:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEO_DIP_SELECT_AVI,4,2       ; @VIDEO_DIP_SELECT_AVI
	.comm	_VIDEO_DIP_FREQ_VSYNC,4,2       ; @VIDEO_DIP_FREQ_VSYNC
	.comm	_VIDEO_DIP_ENABLE,4,2           ; @VIDEO_DIP_ENABLE
	.comm	_VIDEO_DIP_ENABLE_AVI,4,2       ; @VIDEO_DIP_ENABLE_AVI
	.comm	_VIDEO_DIP_ENABLE_VENDOR,4,2    ; @VIDEO_DIP_ENABLE_VENDOR
	.comm	_VIDEO_DIP_ENABLE_GAMUT,4,2     ; @VIDEO_DIP_ENABLE_GAMUT
	.comm	_VIDEO_DIP_ENABLE_SPD,4,2       ; @VIDEO_DIP_ENABLE_SPD
	.comm	_VIDEO_DIP_ENABLE_GCP,4,2       ; @VIDEO_DIP_ENABLE_GCP
	.comm	_HDMI_INFOFRAME_TYPE_AVI,4,2    ; @HDMI_INFOFRAME_TYPE_AVI
	.comm	_HDMI_INFOFRAME_TYPE_SPD,4,2    ; @HDMI_INFOFRAME_TYPE_SPD
	.comm	_HDMI_INFOFRAME_TYPE_VENDOR,4,2 ; @HDMI_INFOFRAME_TYPE_VENDOR
	.no_dead_strip	_cpt_set_infoframes
.subsections_via_symbols
