	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibx_set_infoframes
_ibx_set_infoframes:                    ## @ibx_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, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_to_intel_crtc
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_enc_to_dig_port
	movq	%rax, %rbx
	leaq	4(%rax), %r14
	movl	(%r15), %edi
	callq	_TVIDEO_DIP_CTL
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_I915_READ
	movl	%eax, %r13d
	movq	%r14, %rdi
	callq	_assert_hdmi_port_disabled
	movq	_VIDEO_DIP_SELECT_AVI@GOTPCREL(%rip), %rax
	movq	_VIDEO_DIP_FREQ_VSYNC@GOTPCREL(%rip), %rcx
	orl	(%rax), %r13d
	orl	(%rcx), %r13d
	cmpl	$0, 4(%rbx)
	je	LBB0_1
## %bb.3:
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	jae	LBB0_11
## %bb.4:
	cltq
	leaq	l_switch.table.ibx_set_infoframes(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %ebx
	movq	_VIDEO_DIP_PORT_MASK@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, %ecx
	andl	%r13d, %ecx
	cmpl	%ecx, %ebx
	jne	LBB0_6
## %bb.5:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_1:
	movq	_VIDEO_DIP_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r13d, %eax
	je	LBB0_10
## %bb.2:
	notl	%eax
	andl	%eax, %r13d
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_I915_WRITE
	movl	%r15d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_POSTING_READ                   ## TAILCALL
LBB0_11:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BUG                            ## TAILCALL
LBB0_6:
	movq	_VIDEO_DIP_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%r13d, %ecx
	je	LBB0_8
## %bb.7:
	notl	%ecx
	andl	%ecx, %r13d
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_POSTING_READ
	movl	(%r14), %eax
LBB0_8:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	notl	%eax
	andl	%r13d, %eax
	orl	%ebx, %eax
	movl	%eax, %r13d
LBB0_9:
	movq	_VIDEO_DIP_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_VIDEO_DIP_ENABLE_VENDOR@GOTPCREL(%rip), %rax
	movq	_VIDEO_DIP_ENABLE_GAMUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_VIDEO_DIP_ENABLE_GCP@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	notl	%esi
	andl	%r13d, %esi
	movl	%r15d, %edi
	callq	_I915_WRITE
	movl	%r15d, %edi
	callq	_POSTING_READ
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_intel_hdmi_set_avi_infoframe
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_hdmi_set_spd_infoframe   ## TAILCALL
LBB0_10:
	addq	$8, %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_PORT_B,4,2           ## @VIDEO_DIP_PORT_B
	.comm	_VIDEO_DIP_PORT_C,4,2           ## @VIDEO_DIP_PORT_C
	.comm	_VIDEO_DIP_PORT_D,4,2           ## @VIDEO_DIP_PORT_D
	.comm	_VIDEO_DIP_PORT_MASK,4,2        ## @VIDEO_DIP_PORT_MASK
	.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_GCP,4,2       ## @VIDEO_DIP_ENABLE_GCP
	.no_dead_strip	_ibx_set_infoframes
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.ibx_set_infoframes
l_switch.table.ibx_set_infoframes:
	.quad	_VIDEO_DIP_PORT_D
	.quad	_VIDEO_DIP_PORT_C
	.quad	_VIDEO_DIP_PORT_B

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibx_set_infoframes
_ibx_set_infoframes:                    ; @ibx_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	x20, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_to_intel_crtc
	mov	x21, x0
	mov	x0, x19
	bl	_enc_to_dig_port
	mov	x23, x0
	add	x22, x0, #4
	ldr	w0, [x21]
	bl	_TVIDEO_DIP_CTL
	mov	x21, x0
	bl	_I915_READ
	mov	x24, x0
	mov	x0, x22
	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, w24
	orr	w22, w8, w9
	ldr	w8, [x23, #4]
	cbz	w8, LBB0_7
; %bb.1:
	ldr	w8, [x23]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_9
; %bb.2:
Lloh6:
	adrp	x9, l_switch.table.ibx_set_infoframes@PAGE
Lloh7:
	add	x9, x9, l_switch.table.ibx_set_infoframes@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
Lloh8:
	adrp	x25, _VIDEO_DIP_PORT_MASK@GOTPAGE
Lloh9:
	ldr	x25, [x25, _VIDEO_DIP_PORT_MASK@GOTPAGEOFF]
	ldr	w24, [x8]
	ldr	w8, [x25]
	and	w9, w8, w22
Lloh10:
	adrp	x23, _VIDEO_DIP_ENABLE@GOTPAGE
Lloh11:
	ldr	x23, [x23, _VIDEO_DIP_ENABLE@GOTPAGEOFF]
	cmp	w24, w9
	b.eq	LBB0_6
; %bb.3:
	ldr	w9, [x23]
	tst	w9, w22
	b.eq	LBB0_5
; %bb.4:
	bic	w22, w22, w9
	mov	x0, x21
	mov	x1, x22
	bl	_I915_WRITE
	mov	x0, x21
	bl	_POSTING_READ
	ldr	w8, [x25]
LBB0_5:
	bic	w8, w22, w8
	orr	w22, w8, w24
LBB0_6:
	ldr	w8, [x23]
	orr	w8, w8, w22
Lloh12:
	adrp	x9, _VIDEO_DIP_ENABLE_VENDOR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VIDEO_DIP_ENABLE_VENDOR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _VIDEO_DIP_ENABLE_GAMUT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _VIDEO_DIP_ENABLE_GAMUT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh18:
	adrp	x10, _VIDEO_DIP_ENABLE_GCP@GOTPAGE
Lloh19:
	ldr	x10, [x10, _VIDEO_DIP_ENABLE_GCP@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bic	w1, w8, w9
	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, #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_hdmi_set_spd_infoframe
LBB0_7:
Lloh21:
	adrp	x8, _VIDEO_DIP_ENABLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VIDEO_DIP_ENABLE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_10
; %bb.8:
	bic	w1, w22, w8
	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_9:
	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	_BUG
LBB0_10:
	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 AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.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_PORT_B,4,2           ; @VIDEO_DIP_PORT_B
	.comm	_VIDEO_DIP_PORT_C,4,2           ; @VIDEO_DIP_PORT_C
	.comm	_VIDEO_DIP_PORT_D,4,2           ; @VIDEO_DIP_PORT_D
	.comm	_VIDEO_DIP_PORT_MASK,4,2        ; @VIDEO_DIP_PORT_MASK
	.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_GCP,4,2       ; @VIDEO_DIP_ENABLE_GCP
	.no_dead_strip	_ibx_set_infoframes
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ibx_set_infoframes
l_switch.table.ibx_set_infoframes:
	.quad	_VIDEO_DIP_PORT_D
	.quad	_VIDEO_DIP_PORT_C
	.quad	_VIDEO_DIP_PORT_B

.subsections_via_symbols
