	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvhdmi_8ch_7x_pcm_prepare
_nvhdmi_8ch_7x_pcm_prepare:             ## @nvhdmi_8ch_7x_pcm_prepare
	.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	%r8, %r14
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	16(%rsi), %r12
	movq	%rsi, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_get_cvt
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_snd_hda_spdif_out_of_nid
	movq	%rax, %r13
	movq	(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.1:
	movl	(%r13), %eax
	movq	_AC_DIG1_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_3
## %bb.2:
	movq	_nvhdmi_master_con_nid_7x@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_AC_VERB_SET_DIGI_CONVERT_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%edx
	andl	%edx, %eax
	movzbl	%al, %r8d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_snd_hda_codec_write
LBB0_3:
	movq	_nvhdmi_master_con_nid_7x@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_AC_VERB_SET_CHANNEL_STREAMID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	shll	$4, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	%r15d, %r8d
	callq	_snd_hda_codec_write
	movl	(%r14), %esi
	movq	_AC_VERB_SET_STREAM_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_snd_hda_codec_write
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.4:
	movl	(%r13), %eax
	movq	_AC_DIG1_ENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movl	(%r14), %esi
	movq	_AC_VERB_SET_DIGI_CONVERT_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movzbl	%al, %r8d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_snd_hda_codec_write
	movl	(%r14), %esi
	movq	_AC_VERB_SET_DIGI_CONVERT_2@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$2, %r8d
	callq	_snd_hda_codec_write
LBB0_6:
	movq	_nvhdmi_con_nids_7x@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$2, %r12
	cmpq	$8, %r12
	je	LBB0_14
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$2, -44(%rbp)                   ## 4-byte Folded Reload
	movl	%r12d, %r14d
	movl	$0, %eax
	cmovel	%eax, %r14d
	cmpq	$0, 8(%rbx)
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %eax
	movq	_AC_DIG1_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rcx
	movl	(%rcx,%r12,2), %esi
	movq	_AC_VERB_SET_DIGI_CONVERT_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%edx
	andl	%edx, %eax
	movzbl	%al, %r8d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_snd_hda_codec_write
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rax
	movl	(%rax,%r12,2), %esi
	movq	_AC_VERB_SET_CHANNEL_STREAMID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	-52(%rbp), %r14d                ## 4-byte Folded Reload
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	%r14d, %r8d
	callq	_snd_hda_codec_write
	movq	(%r15), %rax
	movl	(%rax,%r12,2), %esi
	movq	_AC_VERB_SET_STREAM_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_snd_hda_codec_write
	cmpq	$0, 8(%rbx)
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r13), %eax
	movq	_AC_DIG1_ENABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rcx
	movl	(%rcx,%r12,2), %esi
	movq	_AC_VERB_SET_DIGI_CONVERT_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movzbl	%al, %r8d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_snd_hda_codec_write
	movq	(%r15), %rax
	movl	(%rax,%r12,2), %esi
	movq	_AC_VERB_SET_DIGI_CONVERT_2@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$2, %r8d
	callq	_snd_hda_codec_write
	jmp	LBB0_13
LBB0_14:
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_nvhdmi_8ch_7x_set_info_frame_parameters
	movq	%rbx, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_DIG1_ENABLE,4,2             ## @AC_DIG1_ENABLE
	.comm	_nvhdmi_master_con_nid_7x,4,2   ## @nvhdmi_master_con_nid_7x
	.comm	_AC_VERB_SET_DIGI_CONVERT_1,4,2 ## @AC_VERB_SET_DIGI_CONVERT_1
	.comm	_AC_VERB_SET_CHANNEL_STREAMID,4,2 ## @AC_VERB_SET_CHANNEL_STREAMID
	.comm	_AC_VERB_SET_STREAM_FORMAT,4,2  ## @AC_VERB_SET_STREAM_FORMAT
	.comm	_AC_VERB_SET_DIGI_CONVERT_2,4,2 ## @AC_VERB_SET_DIGI_CONVERT_2
	.comm	_nvhdmi_con_nids_7x,8,3         ## @nvhdmi_con_nids_7x
	.no_dead_strip	_nvhdmi_8ch_7x_pcm_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvhdmi_8ch_7x_pcm_prepare
_nvhdmi_8ch_7x_pcm_prepare:             ; @nvhdmi_8ch_7x_pcm_prepare
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x4
	mov	x20, x3
	mov	x23, x2
	mov	x19, x1
	ldr	x22, [x1, #16]
	mov	x0, x1
	bl	_mutex_lock
	mov	x0, x22
	mov	w1, #0
	bl	_get_cvt
	ldr	w1, [x0]
	mov	x0, x19
	bl	_snd_hda_spdif_out_of_nid
	mov	x22, x0
	ldr	x8, [x21]
	ldr	w21, [x8]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x25, _nvhdmi_master_con_nid_7x@GOTPAGE
Lloh1:
	ldr	x25, [x25, _nvhdmi_master_con_nid_7x@GOTPAGEOFF]
Lloh2:
	adrp	x24, _AC_DIG1_ENABLE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _AC_DIG1_ENABLE@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x22]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w1, [x25]
Lloh4:
	adrp	x10, _AC_VERB_SET_DIGI_CONVERT_1@GOTPAGE
Lloh5:
	ldr	x10, [x10, _AC_VERB_SET_DIGI_CONVERT_1@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x10]
	bic	w8, w8, w9
	and	w4, w8, #0xff
	mov	x0, x19
	mov	w2, #0
	bl	_snd_hda_codec_write
LBB0_3:
	ldr	w1, [x25]
Lloh7:
	adrp	x8, _AC_VERB_SET_CHANNEL_STREAMID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AC_VERB_SET_CHANNEL_STREAMID@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	lsl	w23, w23, #4
	mov	x0, x19
	mov	w2, #0
	mov	x4, x23
	bl	_snd_hda_codec_write
	ldr	w1, [x25]
Lloh10:
	adrp	x8, _AC_VERB_SET_STREAM_FORMAT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AC_VERB_SET_STREAM_FORMAT@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	x4, x20
	bl	_snd_hda_codec_write
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	w8, [x22]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w1, [x25]
Lloh13:
	adrp	x9, _AC_VERB_SET_DIGI_CONVERT_1@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AC_VERB_SET_DIGI_CONVERT_1@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x9]
	and	w4, w8, #0xff
	mov	x0, x19
	mov	w2, #0
	bl	_snd_hda_codec_write
	ldr	w1, [x25]
Lloh16:
	adrp	x8, _AC_VERB_SET_DIGI_CONVERT_2@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AC_VERB_SET_DIGI_CONVERT_2@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w4, #2
	bl	_snd_hda_codec_write
LBB0_6:
	mov	x28, #0
	mov	x25, #0
Lloh19:
	adrp	x26, _nvhdmi_con_nids_7x@GOTPAGE
Lloh20:
	ldr	x26, [x26, _nvhdmi_con_nids_7x@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x25, x25, #2
	add	x28, x28, #4
	cmp	x25, #8
	b.eq	LBB0_14
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w21, #2
	csel	w27, wzr, w25, eq
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x10, [x26]
	ldr	w1, [x10, x28]
Lloh21:
	adrp	x10, _AC_VERB_SET_DIGI_CONVERT_1@GOTPAGE
Lloh22:
	ldr	x10, [x10, _AC_VERB_SET_DIGI_CONVERT_1@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x10]
	bic	w8, w8, w9
	and	w4, w8, #0xff
	mov	x0, x19
	mov	w2, #0
	bl	_snd_hda_codec_write
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x26]
	ldr	w1, [x8, x28]
Lloh24:
	adrp	x8, _AC_VERB_SET_CHANNEL_STREAMID@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AC_VERB_SET_CHANNEL_STREAMID@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	orr	w4, w27, w23
	mov	x0, x19
	mov	w2, #0
	bl	_snd_hda_codec_write
	ldr	x8, [x26]
	ldr	w1, [x8, x28]
Lloh27:
	adrp	x8, _AC_VERB_SET_STREAM_FORMAT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AC_VERB_SET_STREAM_FORMAT@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	x4, x20
	bl	_snd_hda_codec_write
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x26]
	ldr	w1, [x9, x28]
Lloh30:
	adrp	x9, _AC_VERB_SET_DIGI_CONVERT_1@GOTPAGE
Lloh31:
	ldr	x9, [x9, _AC_VERB_SET_DIGI_CONVERT_1@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x9]
	and	w4, w8, #0xff
	mov	x0, x19
	mov	w2, #0
	bl	_snd_hda_codec_write
	ldr	x8, [x26]
	ldr	w1, [x8, x28]
Lloh33:
	adrp	x8, _AC_VERB_SET_DIGI_CONVERT_2@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AC_VERB_SET_DIGI_CONVERT_2@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w4, #2
	bl	_snd_hda_codec_write
	b	LBB0_7
LBB0_14:
	mov	x0, x19
	mov	x1, x21
	bl	_nvhdmi_8ch_7x_set_info_frame_parameters
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_DIG1_ENABLE,4,2             ; @AC_DIG1_ENABLE
	.comm	_nvhdmi_master_con_nid_7x,4,2   ; @nvhdmi_master_con_nid_7x
	.comm	_AC_VERB_SET_DIGI_CONVERT_1,4,2 ; @AC_VERB_SET_DIGI_CONVERT_1
	.comm	_AC_VERB_SET_CHANNEL_STREAMID,4,2 ; @AC_VERB_SET_CHANNEL_STREAMID
	.comm	_AC_VERB_SET_STREAM_FORMAT,4,2  ; @AC_VERB_SET_STREAM_FORMAT
	.comm	_AC_VERB_SET_DIGI_CONVERT_2,4,2 ; @AC_VERB_SET_DIGI_CONVERT_2
	.comm	_nvhdmi_con_nids_7x,8,3         ; @nvhdmi_con_nids_7x
	.no_dead_strip	_nvhdmi_8ch_7x_pcm_prepare
.subsections_via_symbols
