	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_hdmi_set_avi_infoframe
_vc4_hdmi_set_avi_infoframe:            ## @vc4_hdmi_set_avi_infoframe
	.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	%rdi, %r13
	callq	_to_vc4_hdmi_encoder
	movq	%rax, %r15
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rbx
	movq	(%rbx), %rsi
	movq	(%rsi), %r12
	movq	(%rax), %r14
	leaq	-56(%rbp), %rdi
	movq	%r14, %rdx
	callq	_drm_hdmi_avi_infoframe_from_display_mode
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	(%rbx), %rsi
	cmpq	$0, (%r15)
	jne	LBB0_3
## %bb.4:
	movq	_HDMI_QUANTIZATION_RANGE_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_6
LBB0_3:
	movq	_HDMI_QUANTIZATION_RANGE_LIMITED@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ecx
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_drm_hdmi_avi_infoframe_quant_range
	movl	12(%r12), %eax
	movl	%eax, -44(%rbp)
	movl	8(%r12), %eax
	movl	%eax, -48(%rbp)
	movl	4(%r12), %eax
	movl	%eax, -52(%rbp)
	movl	(%r12), %eax
	movl	%eax, -56(%rbp)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_vc4_hdmi_write_infoframe
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't fill AVI infoframe\n"

	.comm	_HDMI_QUANTIZATION_RANGE_LIMITED,4,2 ## @HDMI_QUANTIZATION_RANGE_LIMITED
	.comm	_HDMI_QUANTIZATION_RANGE_FULL,4,2 ## @HDMI_QUANTIZATION_RANGE_FULL
	.no_dead_strip	_vc4_hdmi_set_avi_infoframe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_hdmi_set_avi_infoframe
_vc4_hdmi_set_avi_infoframe:            ; @vc4_hdmi_set_avi_infoframe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	bl	_to_vc4_hdmi_encoder
	mov	x21, x0
	ldp	x9, x8, [x19]
	ldr	x8, [x8]
	ldr	x23, [x8]
	ldr	x1, [x23]
	ldr	x22, [x1]
	ldr	x20, [x9]
	mov	x0, sp
	mov	x2, x20
	bl	_drm_hdmi_avi_infoframe_from_display_mode
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x1, [x23]
Lloh0:
	adrp	x8, _HDMI_QUANTIZATION_RANGE_LIMITED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI_QUANTIZATION_RANGE_LIMITED@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh2:
	adrp	x10, _HDMI_QUANTIZATION_RANGE_FULL@GOTPAGE
Lloh3:
	ldr	x10, [x10, _HDMI_QUANTIZATION_RANGE_FULL@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w3, [x8]
	mov	x0, sp
	mov	x2, x20
	bl	_drm_hdmi_avi_infoframe_quant_range
	ldr	w8, [x22, #12]
	str	w8, [sp, #12]
	ldr	w8, [x22, #8]
	str	w8, [sp, #8]
	ldr	w8, [x22, #4]
	str	w8, [sp, #4]
	ldr	w8, [x22]
	str	w8, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_vc4_hdmi_write_infoframe
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_3:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't fill AVI infoframe\n"

	.comm	_HDMI_QUANTIZATION_RANGE_LIMITED,4,2 ; @HDMI_QUANTIZATION_RANGE_LIMITED
	.comm	_HDMI_QUANTIZATION_RANGE_FULL,4,2 ; @HDMI_QUANTIZATION_RANGE_FULL
	.no_dead_strip	_vc4_hdmi_set_avi_infoframe
.subsections_via_symbols
