	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hsw_set_infoframes
_hsw_set_infoframes:                    ## @hsw_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_to_intel_crtc
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_enc_to_intel_hdmi
	movq	%rax, %rbx
	movl	(%r12), %edi
	callq	_HSW_TVIDEO_DIP_CTL
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_assert_hdmi_port_disabled
	cmpl	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	_VIDEO_DIP_ENABLE_VSC_HSW@GOTPCREL(%rip), %rax
	movq	_VIDEO_DIP_ENABLE_GCP_HSW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_VIDEO_DIP_ENABLE_VS_HSW@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_VIDEO_DIP_ENABLE_GMP_HSW@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r12d
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_I915_WRITE
	movl	%r13d, %edi
	callq	_POSTING_READ
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_intel_hdmi_set_avi_infoframe
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_hdmi_set_spd_infoframe   ## TAILCALL
LBB0_1:
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_I915_WRITE
	movl	%r13d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_POSTING_READ                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEO_DIP_ENABLE_VSC_HSW,4,2   ## @VIDEO_DIP_ENABLE_VSC_HSW
	.comm	_VIDEO_DIP_ENABLE_GCP_HSW,4,2   ## @VIDEO_DIP_ENABLE_GCP_HSW
	.comm	_VIDEO_DIP_ENABLE_VS_HSW,4,2    ## @VIDEO_DIP_ENABLE_VS_HSW
	.comm	_VIDEO_DIP_ENABLE_GMP_HSW,4,2   ## @VIDEO_DIP_ENABLE_GMP_HSW
	.no_dead_strip	_hsw_set_infoframes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hsw_set_infoframes
_hsw_set_infoframes:                    ; @hsw_set_infoframes
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_to_intel_crtc
	mov	x21, x0
	mov	x0, x19
	bl	_enc_to_intel_hdmi
	mov	x23, x0
	ldr	w0, [x21]
	bl	_HSW_TVIDEO_DIP_CTL
	mov	x21, x0
	bl	_I915_READ
	mov	x22, x0
	mov	x0, x23
	bl	_assert_hdmi_port_disabled
	ldr	w8, [x23]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _VIDEO_DIP_ENABLE_VSC_HSW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDEO_DIP_ENABLE_VSC_HSW@GOTPAGEOFF]
Lloh2:
	adrp	x9, _VIDEO_DIP_ENABLE_GCP_HSW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_GCP_HSW@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _VIDEO_DIP_ENABLE_VS_HSW@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_VS_HSW@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _VIDEO_DIP_ENABLE_GMP_HSW@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_GMP_HSW@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w1, w22, w8
	mov	x0, x21
	bl	_I915_WRITE
	mov	x0, x21
	bl	_POSTING_READ
	mov	x0, x19
	mov	x1, x20
	bl	_intel_hdmi_set_avi_infoframe
	mov	x0, 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	_intel_hdmi_set_spd_infoframe
LBB0_2:
	mov	x0, x21
	mov	w1, #0
	bl	_I915_WRITE
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEO_DIP_ENABLE_VSC_HSW,4,2   ; @VIDEO_DIP_ENABLE_VSC_HSW
	.comm	_VIDEO_DIP_ENABLE_GCP_HSW,4,2   ; @VIDEO_DIP_ENABLE_GCP_HSW
	.comm	_VIDEO_DIP_ENABLE_VS_HSW,4,2    ; @VIDEO_DIP_ENABLE_VS_HSW
	.comm	_VIDEO_DIP_ENABLE_GMP_HSW,4,2   ; @VIDEO_DIP_ENABLE_GMP_HSW
	.no_dead_strip	_hsw_set_infoframes
.subsections_via_symbols
