	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_hdmi_setup_avi_infoframe
_tegra_hdmi_setup_avi_infoframe:        ## @tegra_hdmi_setup_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	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	leaq	4(%rdi), %rsi
	leaq	-104(%rbp), %rdi
	callq	_drm_hdmi_avi_infoframe_from_display_mode
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	leaq	-104(%rbp), %rdi
	leaq	-96(%rbp), %rsi
	movl	$68, %edx
	callq	_hdmi_avi_infoframe_pack
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	leaq	-96(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_tegra_hdmi_write_infopack
	jmp	LBB0_6
LBB0_1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%rax, %rdx
	callq	_dev_err
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$104, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to setup AVI infoframe: %zd\n"

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

	.no_dead_strip	_tegra_hdmi_setup_avi_infoframe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_hdmi_setup_avi_infoframe
_tegra_hdmi_setup_avi_infoframe:        ; @tegra_hdmi_setup_avi_infoframe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	add	x1, x0, #4
	mov	x0, sp
	bl	_drm_hdmi_avi_infoframe_from_display_mode
	tbnz	x0, #63, LBB0_3
; %bb.1:
	mov	x0, sp
	add	x1, sp, #4
	mov	w2, #68
	bl	_hdmi_avi_infoframe_pack
	mov	x2, x0
	tbnz	x0, #63, LBB0_4
; %bb.2:
	add	x1, sp, #4
	mov	x0, x19
	bl	_tegra_hdmi_write_infopack
	b	LBB0_6
LBB0_3:
	mov	x2, x0
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	bl	_dev_err
LBB0_6:
	ldur	x8, [x29, #-24]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to setup AVI infoframe: %zd\n"

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

	.no_dead_strip	_tegra_hdmi_setup_avi_infoframe
.subsections_via_symbols
