	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce_v6_0_audio_set_avi_infoframe
_dce_v6_0_audio_set_avi_infoframe:      ## @dce_v6_0_audio_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	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_to_amdgpu_encoder
	movq	(%rax), %r13
	movq	%rbx, %rdi
	callq	_amdgpu_get_connector_for_encoder
	movq	%rax, %r12
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_HDMI_INFOFRAME_HEADER_SIZE@GOTPCREL(%rip), %rax
	movq	_HDMI_AVI_INFOFRAME_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	addl	(%rax), %ebx
	leaq	(,%rbx,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	-56(%rbp), %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_drm_hdmi_avi_infoframe_from_display_mode
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	shll	$2, %ebx
	leaq	-56(%rbp), %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_hdmi_avi_infoframe_pack
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movq	_mmAFMT_AVI_INFO0@GOTPCREL(%rip), %rax
	movq	(%r13), %rcx
	movq	(%rcx), %rdi
	addq	(%rax), %rdi
	movl	16(%r15), %eax
	movl	20(%r15), %ecx
	shll	$8, %eax
	orl	12(%r15), %eax
	shll	$16, %ecx
	movl	24(%r15), %esi
	shll	$24, %esi
	orl	%ecx, %esi
	orl	%eax, %esi
	callq	_WREG32
	movq	_mmAFMT_AVI_INFO1@GOTPCREL(%rip), %rax
	movq	(%r13), %rcx
	movq	(%rcx), %rdi
	addq	(%rax), %rdi
	movl	32(%r15), %eax
	movl	36(%r15), %ecx
	shll	$8, %eax
	orl	28(%r15), %eax
	shll	$16, %ecx
	movl	40(%r15), %esi
	shll	$24, %esi
	orl	%ecx, %esi
	orl	%eax, %esi
	callq	_WREG32
	movq	_mmAFMT_AVI_INFO2@GOTPCREL(%rip), %rax
	movq	(%r13), %rcx
	movq	(%rcx), %rdi
	addq	(%rax), %rdi
	movl	48(%r15), %eax
	movl	52(%r15), %ecx
	shll	$8, %eax
	orl	44(%r15), %eax
	shll	$16, %ecx
	movl	56(%r15), %esi
	shll	$24, %esi
	orl	%ecx, %esi
	orl	%eax, %esi
	callq	_WREG32
	movq	_mmAFMT_AVI_INFO3@GOTPCREL(%rip), %rax
	movq	(%r13), %rcx
	movq	(%rcx), %rdi
	addq	(%rax), %rdi
	movl	4(%r15), %esi
	movl	64(%r15), %eax
	shll	$8, %eax
	orl	60(%r15), %eax
	shll	$24, %esi
	orl	%eax, %esi
	callq	_WREG32
	movq	_mmHDMI_INFOFRAME_CONTROL1@GOTPCREL(%rip), %rbx
	movq	(%r13), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_RREG32
	movq	_HDMI_INFOFRAME_CONTROL1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_HDMI_AUDIO_INFO_LINE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$2, %ecx
	callq	_REG_SET_FIELD
	movq	(%r13), %rcx
	movq	(%rcx), %rdi
	addq	(%rbx), %rdi
	movl	%eax, %esi
	callq	_WREG32
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	movq	%rax, %rsi
	callq	_DRM_ERROR
LBB0_6:
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	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	_HDMI_INFOFRAME_HEADER_SIZE,4,2 ## @HDMI_INFOFRAME_HEADER_SIZE
	.comm	_HDMI_AVI_INFOFRAME_SIZE,4,2    ## @HDMI_AVI_INFOFRAME_SIZE
	.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"

	.comm	_mmAFMT_AVI_INFO0,8,3           ## @mmAFMT_AVI_INFO0
	.comm	_mmAFMT_AVI_INFO1,8,3           ## @mmAFMT_AVI_INFO1
	.comm	_mmAFMT_AVI_INFO2,8,3           ## @mmAFMT_AVI_INFO2
	.comm	_mmAFMT_AVI_INFO3,8,3           ## @mmAFMT_AVI_INFO3
	.comm	_mmHDMI_INFOFRAME_CONTROL1,8,3  ## @mmHDMI_INFOFRAME_CONTROL1
	.comm	_HDMI_INFOFRAME_CONTROL1,4,2    ## @HDMI_INFOFRAME_CONTROL1
	.comm	_HDMI_AUDIO_INFO_LINE,4,2       ## @HDMI_AUDIO_INFO_LINE
	.no_dead_strip	_dce_v6_0_audio_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 dce_v6_0_audio_set_avi_infoframe
_dce_v6_0_audio_set_avi_infoframe:      ; @dce_v6_0_audio_set_avi_infoframe
	.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, #16
	mov	x20, 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, #-56]
	bl	_to_amdgpu_encoder
	ldr	x22, [x0]
	mov	x0, x19
	bl	_amdgpu_get_connector_for_encoder
	mov	x1, x0
	mov	x21, sp
Lloh3:
	adrp	x8, _HDMI_INFOFRAME_HEADER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDMI_INFOFRAME_HEADER_SIZE@GOTPAGEOFF]
Lloh5:
	adrp	x9, _HDMI_AVI_INFOFRAME_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HDMI_AVI_INFOFRAME_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	add	w23, w9, w8
	lsl	x9, x23, #2
	add	x8, x9, #15
	and	x8, x8, #0x7fffffff0
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x19, x9, x8
	mov	sp, x19
	sub	x0, x29, #64
	mov	x2, x20
	bl	_drm_hdmi_avi_infoframe_from_display_mode
	tbnz	x0, #63, LBB0_3
; %bb.1:
	lsl	w2, w23, #2
	sub	x0, x29, #64
	mov	x1, x19
	bl	_hdmi_avi_infoframe_pack
	tbnz	x0, #63, LBB0_4
; %bb.2:
Lloh11:
	adrp	x8, _mmAFMT_AVI_INFO0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mmAFMT_AVI_INFO0@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x9, [x22]
	ldr	x9, [x9]
	add	x0, x9, x8
	ldp	w8, w9, [x19, #12]
	orr	w8, w8, w9, lsl #8
	ldp	w9, w10, [x19, #20]
	orr	w8, w8, w9, lsl #16
	orr	w1, w8, w10, lsl #24
	bl	_WREG32
Lloh14:
	adrp	x8, _mmAFMT_AVI_INFO1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mmAFMT_AVI_INFO1@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x9, [x22]
	ldr	x9, [x9]
	add	x0, x9, x8
	ldp	w8, w9, [x19, #28]
	orr	w8, w8, w9, lsl #8
	ldp	w9, w10, [x19, #36]
	orr	w8, w8, w9, lsl #16
	orr	w1, w8, w10, lsl #24
	bl	_WREG32
Lloh17:
	adrp	x8, _mmAFMT_AVI_INFO2@GOTPAGE
Lloh18:
	ldr	x8, [x8, _mmAFMT_AVI_INFO2@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x9, [x22]
	ldr	x9, [x9]
	add	x0, x9, x8
	ldp	w8, w9, [x19, #44]
	orr	w8, w8, w9, lsl #8
	ldp	w9, w10, [x19, #52]
	orr	w8, w8, w9, lsl #16
	orr	w1, w8, w10, lsl #24
	bl	_WREG32
Lloh20:
	adrp	x8, _mmAFMT_AVI_INFO3@GOTPAGE
Lloh21:
	ldr	x8, [x8, _mmAFMT_AVI_INFO3@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	x9, [x22]
	ldr	x9, [x9]
	add	x0, x9, x8
	ldp	w8, w9, [x19, #60]
	orr	w8, w8, w9, lsl #8
	ldr	w9, [x19, #4]
	orr	w1, w8, w9, lsl #24
	bl	_WREG32
Lloh23:
	adrp	x19, _mmHDMI_INFOFRAME_CONTROL1@GOTPAGE
Lloh24:
	ldr	x19, [x19, _mmHDMI_INFOFRAME_CONTROL1@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x22]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_RREG32
Lloh25:
	adrp	x8, _HDMI_INFOFRAME_CONTROL1@GOTPAGE
Lloh26:
	ldr	x8, [x8, _HDMI_INFOFRAME_CONTROL1@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _HDMI_AUDIO_INFO_LINE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HDMI_AUDIO_INFO_LINE@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	w3, #2
	bl	_REG_SET_FIELD
	mov	x1, x0
	ldr	x8, [x19]
	ldr	x9, [x22]
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_WREG32
	b	LBB0_6
LBB0_3:
	mov	x1, x0
Lloh31:
	adrp	x0, l_.str@PAGE
Lloh32:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	mov	x1, x0
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_DRM_ERROR
LBB0_6:
	mov	sp, x21
	ldur	x8, [x29, #-56]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	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 AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_INFOFRAME_HEADER_SIZE,4,2 ; @HDMI_INFOFRAME_HEADER_SIZE
	.comm	_HDMI_AVI_INFOFRAME_SIZE,4,2    ; @HDMI_AVI_INFOFRAME_SIZE
	.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"

	.comm	_mmAFMT_AVI_INFO0,8,3           ; @mmAFMT_AVI_INFO0
	.comm	_mmAFMT_AVI_INFO1,8,3           ; @mmAFMT_AVI_INFO1
	.comm	_mmAFMT_AVI_INFO2,8,3           ; @mmAFMT_AVI_INFO2
	.comm	_mmAFMT_AVI_INFO3,8,3           ; @mmAFMT_AVI_INFO3
	.comm	_mmHDMI_INFOFRAME_CONTROL1,8,3  ; @mmHDMI_INFOFRAME_CONTROL1
	.comm	_HDMI_INFOFRAME_CONTROL1,4,2    ; @HDMI_INFOFRAME_CONTROL1
	.comm	_HDMI_AUDIO_INFO_LINE,4,2       ; @HDMI_AUDIO_INFO_LINE
	.no_dead_strip	_dce_v6_0_audio_set_avi_infoframe
.subsections_via_symbols
