	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atihdmi_playback_pcm_prepare
_atihdmi_playback_pcm_prepare:          ## @atihdmi_playback_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	(%rsi), %rdi
	xorl	%esi, %esi
	callq	_get_cvt
	movq	%rax, %r15
	movq	(%r12), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	%r12, %r8
	callq	_simple_playback_pcm_prepare
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movl	(%r15), %esi
	movq	_AC_VERB_SET_CVT_CHAN_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	-1(%r14), %r8d
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_snd_hda_codec_write
	testl	%r14d, %r14d
	movl	$0, %eax
	jle	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	_AC_VERB_SET_HDMI_CHAN_SLOT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %r8d
	orl	%r12d, %r8d
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_snd_hda_codec_write
	incl	%r12d
	addl	$16, %ebx
	cmpl	%r12d, %r14d
	jne	LBB0_3
## %bb.4:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_VERB_SET_CVT_CHAN_COUNT,4,2 ## @AC_VERB_SET_CVT_CHAN_COUNT
	.comm	_AC_VERB_SET_HDMI_CHAN_SLOT,4,2 ## @AC_VERB_SET_HDMI_CHAN_SLOT
	.no_dead_strip	_atihdmi_playback_pcm_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atihdmi_playback_pcm_prepare
_atihdmi_playback_pcm_prepare:          ; @atihdmi_playback_pcm_prepare
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x24, x0
	ldr	x0, [x1]
	mov	w1, #0
	bl	_get_cvt
	mov	x20, x0
	ldr	x8, [x21]
	ldr	w25, [x8]
	mov	x0, x24
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_simple_playback_pcm_prepare
	tbnz	w0, #31, LBB0_5
; %bb.1:
	ldr	w1, [x20]
Lloh0:
	adrp	x8, _AC_VERB_SET_CVT_CHAN_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC_VERB_SET_CVT_CHAN_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	subs	w4, w25, #1
	mov	x0, x19
	mov	w2, #0
	bl	_snd_hda_codec_write
	cmp	w25, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w21, #0
	mov	w22, #0
Lloh3:
	adrp	x23, _AC_VERB_SET_HDMI_CHAN_SLOT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _AC_VERB_SET_HDMI_CHAN_SLOT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	ldr	w3, [x23]
	orr	w4, w21, w22
	mov	x0, x19
	mov	w2, #0
	bl	_snd_hda_codec_write
	add	w22, w22, #1
	add	w21, w21, #16
	cmp	w25, w22
	b.ne	LBB0_3
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_VERB_SET_CVT_CHAN_COUNT,4,2 ; @AC_VERB_SET_CVT_CHAN_COUNT
	.comm	_AC_VERB_SET_HDMI_CHAN_SLOT,4,2 ; @AC_VERB_SET_HDMI_CHAN_SLOT
	.no_dead_strip	_atihdmi_playback_pcm_prepare
.subsections_via_symbols
