	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_m3_pcm_setup2
_snd_m3_pcm_setup2:                     ## @snd_m3_pcm_setup2
	.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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpl	$0, (%rsi)
	jne	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	_DP_SHIFT_COUNT@GOTPCREL(%rip), %r12
	movb	(%r12), %cl
	sarl	%cl, %edx
	movq	%r14, %rdi
	callq	_snd_m3_add_list
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	8(%rbx), %rax
	movl	4(%rax), %esi
	movl	4(%rbx), %edx
	movb	(%r12), %cl
	sarl	%cl, %edx
	movq	%r14, %rdi
	callq	_snd_m3_add_list
	movq	16(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	8(%rbx), %rax
	movl	8(%rax), %esi
	movl	4(%rbx), %edx
	movb	(%r12), %cl
	sarl	%cl, %edx
	movq	%r14, %rdi
	callq	_snd_m3_add_list
	movq	16(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movl	$1, (%rbx)
LBB0_2:
	movq	_MEMTYPE_INTERNAL_DATA@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movslq	4(%rbx), %rax
	movq	_SRC3_DIRECTION_OFFSET@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	leaq	(%rax,%rcx), %rdx
	incq	%rdx
	xorl	%ecx, %ecx
	cmpl	$2, (%r15)
	setne	%cl
	movq	%r14, %rdi
	callq	_snd_m3_assp_write
	movl	(%r12), %r12d
	movslq	4(%rbx), %rax
	movq	(%r13), %rcx
	leaq	(%rax,%rcx), %r13
	addq	$2, %r13
	movl	8(%r15), %edi
	callq	_snd_pcm_format_width
	xorl	%ecx, %ecx
	cmpl	$16, %eax
	setne	%cl
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%r13, %rdx
	callq	_snd_m3_assp_write
	movl	4(%r15), %eax
	shll	$15, %eax
	leal	71999(%rax), %edx
	xorl	%ecx, %ecx
	cmpl	$95999, %edx                    ## imm = 0x176FF
	jb	LBB0_4
## %bb.3:
	orl	$24000, %eax                    ## imm = 0x5DC0
	cltq
	imulq	$91625969, %rax, %rax           ## imm = 0x57619F1
	movq	%rax, %rcx
	sarq	$42, %rcx
	shrq	$63, %rax
	addl	%eax, %ecx
	decl	%ecx
LBB0_4:
	movq	_MEMTYPE_INTERNAL_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movslq	4(%rbx), %rdx
	movq	_CDATA_FREQUENCY@GOTPCREL(%rip), %rax
	addq	(%rax), %rdx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_m3_assp_write              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_SHIFT_COUNT,4,2             ## @DP_SHIFT_COUNT
	.comm	_MEMTYPE_INTERNAL_DATA,4,2      ## @MEMTYPE_INTERNAL_DATA
	.comm	_SRC3_DIRECTION_OFFSET,8,3      ## @SRC3_DIRECTION_OFFSET
	.comm	_CDATA_FREQUENCY,8,3            ## @CDATA_FREQUENCY
	.no_dead_strip	_snd_m3_pcm_setup2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_m3_pcm_setup2
_snd_m3_pcm_setup2:                     ; @snd_m3_pcm_setup2
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	ldr	w8, [x20, #4]
Lloh0:
	adrp	x22, _DP_SHIFT_COUNT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DP_SHIFT_COUNT@GOTPAGEOFF]
	ldr	w9, [x22]
	asr	w2, w8, w9
	mov	x0, x19
	bl	_snd_m3_add_list
	ldr	x8, [x20, #16]
	str	x0, [x8]
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #4]
	ldr	w8, [x20, #4]
	ldr	w9, [x22]
	asr	w2, w8, w9
	mov	x0, x19
	bl	_snd_m3_add_list
	ldr	x8, [x20, #16]
	str	x0, [x8, #8]
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #8]
	ldr	w8, [x20, #4]
	ldr	w9, [x22]
	asr	w2, w8, w9
	mov	x0, x19
	bl	_snd_m3_add_list
	ldr	x8, [x20, #16]
	str	x0, [x8, #16]
	mov	w8, #1
	str	w8, [x20]
LBB0_2:
Lloh2:
	adrp	x24, _MEMTYPE_INTERNAL_DATA@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MEMTYPE_INTERNAL_DATA@GOTPAGEOFF]
	ldr	w1, [x24]
	ldrsw	x8, [x20, #4]
Lloh4:
	adrp	x23, _SRC3_DIRECTION_OFFSET@GOTPAGE
Lloh5:
	ldr	x23, [x23, _SRC3_DIRECTION_OFFSET@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x8, x8, x9
	add	x2, x8, #1
	ldr	w8, [x21]
	cmp	w8, #2
	cset	w3, ne
	mov	x0, x19
	bl	_snd_m3_assp_write
	ldr	w22, [x24]
	ldrsw	x8, [x20, #4]
	ldr	x9, [x23]
	add	x8, x8, x9
	add	x23, x8, #2
	ldr	w0, [x21, #8]
	bl	_snd_pcm_format_width
	cmp	w0, #16
	cset	w3, ne
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_snd_m3_assp_write
	ldr	w8, [x21, #4]
	lsl	w8, w8, #15
	add	w9, w8, #17, lsl #12            ; =69632
	add	w9, w9, #2367
	mov	w10, #30463
	movk	w10, #1, lsl #16
	mov	w11, #24000
	orr	w8, w8, w11
	mov	w11, #6641
	movk	w11, #1398, lsl #16
	smull	x8, w8, w11
	lsr	x11, x8, #63
	asr	x8, x8, #42
	add	w8, w8, w11
	sub	w8, w8, #1
	cmp	w9, w10
	csel	w3, wzr, w8, lo
	ldr	w1, [x24]
	ldrsw	x8, [x20, #4]
Lloh6:
	adrp	x9, _CDATA_FREQUENCY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CDATA_FREQUENCY@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x2, x9, x8
	mov	x0, x19
	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
	b	_snd_m3_assp_write
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_SHIFT_COUNT,4,2             ; @DP_SHIFT_COUNT
	.comm	_MEMTYPE_INTERNAL_DATA,4,2      ; @MEMTYPE_INTERNAL_DATA
	.comm	_SRC3_DIRECTION_OFFSET,8,3      ; @SRC3_DIRECTION_OFFSET
	.comm	_CDATA_FREQUENCY,8,3            ; @CDATA_FREQUENCY
	.no_dead_strip	_snd_m3_pcm_setup2
.subsections_via_symbols
