	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g4x_set_infoframes
_g4x_set_infoframes:                    ## @g4x_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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r12
	leaq	4(%rdi), %rbx
	movl	4(%rdi), %edi
	callq	_to_i915
	movq	%rbx, %rdi
	callq	_enc_to_dig_port
	movq	%rax, %r14
	movq	_VIDEO_DIP_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_I915_READ
	movl	%eax, %ebx
	movl	(%r12), %edi
	callq	_VIDEO_DIP_PORT
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_assert_hdmi_port_disabled
	movq	_VIDEO_DIP_SELECT_AVI@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_VIDEO_DIP_FREQ_VSYNC@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.6:
	movq	_VIDEO_DIP_PORT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %esi
	andl	%ebx, %esi
	movq	_VIDEO_DIP_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%esi, %r13d
	je	LBB0_10
## %bb.7:
	testl	%ebx, %eax
	je	LBB0_9
## %bb.8:
	sarl	$29, %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_1:
	movq	_VIDEO_DIP_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %eax
	je	LBB0_11
## %bb.2:
	movq	_VIDEO_DIP_PORT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%ebx, %esi
	cmpl	%esi, %r13d
	jne	LBB0_3
## %bb.5:
	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_SPD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	%eax, %ebx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_I915_WRITE
	movl	%r14d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_POSTING_READ                   ## TAILCALL
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	notl	%ecx
	andl	%ecx, %ebx
	orl	%r13d, %ebx
LBB0_10:
	orl	%ebx, %eax
	movq	_VIDEO_DIP_ENABLE_AVI@GOTPCREL(%rip), %rcx
	movq	_VIDEO_DIP_ENABLE_VENDOR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	_VIDEO_DIP_ENABLE_SPD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_I915_WRITE
	movl	%ebx, %edi
	callq	_POSTING_READ
	movq	_HDMI_INFOFRAME_TYPE_AVI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	8(%rbx), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_intel_write_infoframe
	movq	_HDMI_INFOFRAME_TYPE_SPD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	4(%rbx), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_intel_write_infoframe
	movq	_HDMI_INFOFRAME_TYPE_VENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rcx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_write_infoframe          ## TAILCALL
LBB0_3:
	sarl	$29, %esi
	leaq	L_.str(%rip), %rdi
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEO_DIP_CTL,4,2              ## @VIDEO_DIP_CTL
	.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_PORT_MASK,4,2        ## @VIDEO_DIP_PORT_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"video DIP still enabled on port %c\n"

	.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_SPD,4,2       ## @VIDEO_DIP_ENABLE_SPD
L_.str.1:                               ## @.str.1
	.asciz	"video DIP already enabled on port %c\n"

	.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	_g4x_set_infoframes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g4x_set_infoframes
_g4x_set_infoframes:                    ; @g4x_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	x19, x2
	mov	x23, x1
	mov	x20, x0
	mov	x21, x0
	ldr	w0, [x21, #4]!
	bl	_to_i915
	mov	x0, x21
	bl	_enc_to_dig_port
	mov	x24, x0
Lloh0:
	adrp	x8, _VIDEO_DIP_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDEO_DIP_CTL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_I915_READ
	mov	x25, x0
	ldr	w0, [x20]
	bl	_VIDEO_DIP_PORT
	mov	x22, x0
	mov	x0, x24
	bl	_assert_hdmi_port_disabled
Lloh3:
	adrp	x8, _VIDEO_DIP_SELECT_AVI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIDEO_DIP_SELECT_AVI@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _VIDEO_DIP_FREQ_VSYNC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VIDEO_DIP_FREQ_VSYNC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w25
	orr	w8, w8, w9
	cbz	w23, LBB0_4
; %bb.1:
Lloh9:
	adrp	x9, _VIDEO_DIP_PORT_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VIDEO_DIP_PORT_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x9]
	and	w11, w10, w8
Lloh12:
	adrp	x9, _VIDEO_DIP_ENABLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w22, w11
	b.eq	LBB0_9
; %bb.2:
	tst	w9, w8
	b.eq	LBB0_8
; %bb.3:
	asr	w1, w11, #29
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_4:
Lloh17:
	adrp	x9, _VIDEO_DIP_ENABLE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
Lloh20:
	adrp	x10, _VIDEO_DIP_PORT_MASK@GOTPAGE
Lloh21:
	ldr	x10, [x10, _VIDEO_DIP_PORT_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	and	w10, w10, w8
	cmp	w22, w10
	b.ne	LBB0_10
; %bb.6:
Lloh23:
	adrp	x10, _VIDEO_DIP_ENABLE_AVI@GOTPAGE
Lloh24:
	ldr	x10, [x10, _VIDEO_DIP_ENABLE_AVI@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh26:
	adrp	x10, _VIDEO_DIP_ENABLE_VENDOR@GOTPAGE
Lloh27:
	ldr	x10, [x10, _VIDEO_DIP_ENABLE_VENDOR@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh29:
	adrp	x10, _VIDEO_DIP_ENABLE_SPD@GOTPAGE
Lloh30:
	ldr	x10, [x10, _VIDEO_DIP_ENABLE_SPD@GOTPAGEOFF]
Lloh31:
	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_7:
	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
LBB0_8:
	bic	w8, w8, w10
	orr	w8, w8, w22
LBB0_9:
	orr	w8, w9, w8
Lloh32:
	adrp	x9, _VIDEO_DIP_ENABLE_AVI@GOTPAGE
Lloh33:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_AVI@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
Lloh35:
	adrp	x10, _VIDEO_DIP_ENABLE_VENDOR@GOTPAGE
Lloh36:
	ldr	x10, [x10, _VIDEO_DIP_ENABLE_VENDOR@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh38:
	adrp	x10, _VIDEO_DIP_ENABLE_SPD@GOTPAGE
Lloh39:
	ldr	x10, [x10, _VIDEO_DIP_ENABLE_SPD@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bic	w1, w8, w9
	mov	x0, x21
	bl	_I915_WRITE
	mov	x0, x21
	bl	_POSTING_READ
Lloh41:
	adrp	x8, _HDMI_INFOFRAME_TYPE_AVI@GOTPAGE
Lloh42:
	ldr	x8, [x8, _HDMI_INFOFRAME_TYPE_AVI@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	add	x3, x19, #8
	mov	x0, x20
	mov	x1, x19
	bl	_intel_write_infoframe
Lloh44:
	adrp	x8, _HDMI_INFOFRAME_TYPE_SPD@GOTPAGE
Lloh45:
	ldr	x8, [x8, _HDMI_INFOFRAME_TYPE_SPD@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	add	x3, x19, #4
	mov	x0, x20
	mov	x1, x19
	bl	_intel_write_infoframe
Lloh47:
	adrp	x8, _HDMI_INFOFRAME_TYPE_VENDOR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _HDMI_INFOFRAME_TYPE_VENDOR@GOTPAGEOFF]
Lloh49:
	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_10:
	asr	w1, w10, #29
Lloh50:
	adrp	x0, l_.str@PAGE
Lloh51:
	add	x0, x0, l_.str@PAGEOFF
LBB0_11:
	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	_DRM_DEBUG_KMS
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.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
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEO_DIP_CTL,4,2              ; @VIDEO_DIP_CTL
	.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_PORT_MASK,4,2        ; @VIDEO_DIP_PORT_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"video DIP still enabled on port %c\n"

	.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_SPD,4,2       ; @VIDEO_DIP_ENABLE_SPD
l_.str.1:                               ; @.str.1
	.asciz	"video DIP already enabled on port %c\n"

	.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	_g4x_set_infoframes
.subsections_via_symbols
