	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_pcm_param
_get_pcm_param:                         ## @get_pcm_param
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	%rsi, (%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r14
	movq	%rbx, %rdi
	callq	_get_wcaps
	movq	_AC_WCAP_FORMAT_OVRD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_AC_PAR_PCM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_snd_hda_param_read
	movl	%eax, %edx
	incl	%edx
	cmpl	$1, %edx
	ja	LBB0_4
LBB0_3:
	movq	(%rbx), %rsi
	movq	_AC_PAR_PCM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_snd_hda_param_read
	movl	%eax, %edx
	incl	%edx
LBB0_4:
	xorl	%ecx, %ecx
	cmpl	$2, %edx
	cmovael	%eax, %ecx
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_WCAP_FORMAT_OVRD,4,2        ## @AC_WCAP_FORMAT_OVRD
	.comm	_AC_PAR_PCM,4,2                 ## @AC_PAR_PCM
	.no_dead_strip	_get_pcm_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_pcm_param
_get_pcm_param:                         ; @get_pcm_param
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _AC_PAR_PCM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AC_PAR_PCM@GOTPAGEOFF]
	cmp	x8, x1
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x0, x19
	bl	_get_wcaps
Lloh2:
	adrp	x8, _AC_WCAP_FORMAT_OVRD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AC_WCAP_FORMAT_OVRD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_snd_hda_param_read
	add	w8, w0, #1
	cmp	w8, #1
	b.hi	LBB0_4
LBB0_3:
	ldr	x1, [x19]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_snd_hda_param_read
	add	w8, w0, #1
LBB0_4:
	cmp	w8, #2
	csel	w0, wzr, w0, lo
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_WCAP_FORMAT_OVRD,4,2        ; @AC_WCAP_FORMAT_OVRD
	.comm	_AC_PAR_PCM,4,2                 ; @AC_PAR_PCM
	.no_dead_strip	_get_pcm_param
.subsections_via_symbols
