	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_avi_infoframe_config
_hdmi_avi_infoframe_config:             ## @hdmi_avi_infoframe_config
	.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, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	8(%rdi), %rbx
	movq	_AVI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_HDMI_INFOFRAME_SIZE
	movl	%eax, %r12d
	movq	%rsp, %r13
	movl	%eax, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_DRIVER
	movl	4(%r14), %esi
	leaq	-64(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_drm_hdmi_avi_infoframe_from_display_mode
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%r14), %eax
	movl	%eax, -56(%rbp)
	movq	_HDMI_QUANTIZATION_RANGE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_HDMI_COLORIMETRY_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	shll	$2, %r12d
	leaq	-64(%rbp), %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_hdmi_avi_infoframe_pack
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_hdmi_infoframe_write_infopack
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
LBB0_4:
	movl	%ebx, %esi
	callq	_DRM_ERROR
LBB0_6:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AVI,4,2                        ## @AVI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to setup AVI infoframe: %d\n"

	.comm	_HDMI_QUANTIZATION_RANGE_DEFAULT,4,2 ## @HDMI_QUANTIZATION_RANGE_DEFAULT
	.comm	_HDMI_COLORIMETRY_NONE,4,2      ## @HDMI_COLORIMETRY_NONE
L_.str.2:                               ## @.str.2
	.asciz	"failed to pack AVI infoframe: %d\n"

	.no_dead_strip	_hdmi_avi_infoframe_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_avi_infoframe_config
_hdmi_avi_infoframe_config:             ; @hdmi_avi_infoframe_config
	.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
	sub	sp, sp, #32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x22, x0, #8
Lloh3:
	adrp	x8, _AVI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVI@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_HDMI_INFOFRAME_SIZE
	mov	x21, x0
	mov	x23, sp
	mov	w8, w0
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_DRIVER
	ldr	w1, [x19, #4]
	sub	x0, x29, #72
	mov	x2, x22
	bl	_drm_hdmi_avi_infoframe_from_display_mode
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w8, [x19]
	stur	w8, [x29, #-64]
Lloh10:
	adrp	x8, _HDMI_QUANTIZATION_RANGE_DEFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HDMI_QUANTIZATION_RANGE_DEFAULT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _HDMI_COLORIMETRY_NONE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _HDMI_COLORIMETRY_NONE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x29, #-72]
	lsl	w2, w21, #2
	sub	x0, x29, #72
	mov	x1, x20
	bl	_hdmi_avi_infoframe_pack
	mov	x22, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_hdmi_infoframe_write_infopack
	mov	w22, #0
	b	LBB0_6
LBB0_3:
	mov	x22, x0
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_5:
	mov	x1, x22
	bl	_DRM_ERROR
LBB0_6:
	mov	sp, x23
	ldur	x8, [x29, #-56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x22
	sub	sp, x29, #48
	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
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AVI,4,2                        ; @AVI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to setup AVI infoframe: %d\n"

	.comm	_HDMI_QUANTIZATION_RANGE_DEFAULT,4,2 ; @HDMI_QUANTIZATION_RANGE_DEFAULT
	.comm	_HDMI_COLORIMETRY_NONE,4,2      ; @HDMI_COLORIMETRY_NONE
l_.str.2:                               ; @.str.2
	.asciz	"failed to pack AVI infoframe: %d\n"

	.no_dead_strip	_hdmi_avi_infoframe_config
.subsections_via_symbols
