	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zx_hdmi_config_video_avi
_zx_hdmi_config_video_avi:              ## @zx_hdmi_config_video_avi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rdx
	movq	%rdi, %r14
	leaq	4(%rdi), %rsi
	leaq	-24(%rbp), %rdi
	callq	_drm_hdmi_avi_infoframe_from_display_mode
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_DRM_DEV_ERROR
	jmp	LBB0_3
LBB0_2:
	movq	_HDMI_COLORSPACE_YUV444@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	_FSEL_AVI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rsi
	movq	%r14, %rdi
	callq	_zx_hdmi_infoframe_trans
	movl	%eax, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get avi infoframe: %d\n"

	.comm	_HDMI_COLORSPACE_YUV444,4,2     ## @HDMI_COLORSPACE_YUV444
	.comm	_FSEL_AVI,4,2                   ## @FSEL_AVI
	.no_dead_strip	_zx_hdmi_config_video_avi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zx_hdmi_config_video_avi
_zx_hdmi_config_video_avi:              ; @zx_hdmi_config_video_avi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x2, x1
	mov	x19, x0
	add	x1, x0, #4
	add	x0, sp, #8
	bl	_drm_hdmi_avi_infoframe_from_display_mode
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_DRM_DEV_ERROR
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _HDMI_COLORSPACE_YUV444@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HDMI_COLORSPACE_YUV444@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh5:
	adrp	x8, _FSEL_AVI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FSEL_AVI@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_zx_hdmi_infoframe_trans
	mov	x20, x0
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get avi infoframe: %d\n"

	.comm	_HDMI_COLORSPACE_YUV444,4,2     ; @HDMI_COLORSPACE_YUV444
	.comm	_FSEL_AVI,4,2                   ; @FSEL_AVI
	.no_dead_strip	_zx_hdmi_config_video_avi
.subsections_via_symbols
