	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ali_convert_rate
_snd_ali_convert_rate:                  ## @snd_ali_convert_rate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$4001, %edi                     ## imm = 0xFA1
	movl	$4000, %edx                     ## imm = 0xFA0
	cmovael	%edi, %edx
	cmpl	$48000, %edx                    ## imm = 0xBB80
	movl	$48000, %ecx                    ## imm = 0xBB80
	cmovbl	%edx, %ecx
	movzwl	%cx, %eax
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$44100, %eax                    ## imm = 0xAC44
	je	LBB0_7
## %bb.2:
	cmpl	$8000, %eax                     ## imm = 0x1F40
	jne	LBB0_8
## %bb.3:
	movl	$24576, %eax                    ## imm = 0x6000
LBB0_13:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_4:
	cmpl	$44100, %eax                    ## imm = 0xAC44
	je	LBB0_10
## %bb.5:
	cmpl	$8000, %eax                     ## imm = 0x1F40
	jne	LBB0_11
## %bb.6:
	movl	$683, %eax                      ## imm = 0x2AB
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_7:
	movl	$4458, %eax                     ## imm = 0x116A
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_8:
	movl	$4096, %eax                     ## imm = 0x1000
	cmpl	$47999, %edx                    ## imm = 0xBB7F
	ja	LBB0_13
## %bb.9:
	movl	$196608000, %eax                ## imm = 0xBB80000
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_10:
	movl	$3763, %eax                     ## imm = 0xEB3
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_11:
	movl	$4096, %eax                     ## imm = 0x1000
	cmpl	$47999, %edx                    ## imm = 0xBB7F
	ja	LBB0_13
## %bb.12:
	movl	%ecx, %eax
	shll	$12, %eax
	addl	%ecx, %eax
	imulq	$91625969, %rax, %rax           ## imm = 0x57619F1
	shrq	$42, %rax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_ali_convert_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ali_convert_rate
_snd_ali_convert_rate:                  ; @snd_ali_convert_rate
	.cfi_startproc
; %bb.0:
	mov	w8, #4000
	cmp	w0, #4000
	csel	w9, w0, w8, hi
	mov	w8, #48000
	cmp	w9, w8
	csel	w8, w9, w8, lo
	and	w10, w8, #0xffff
	mov	w11, #44100
	cmp	w10, w11
	cbz	w1, LBB0_4
; %bb.1:
	b.eq	LBB0_7
; %bb.2:
	mov	w11, #8000
	cmp	w10, w11
	b.ne	LBB0_8
; %bb.3:
	mov	w0, #24576
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_4:
	b.eq	LBB0_10
; %bb.5:
	mov	w11, #8000
	cmp	w10, w11
	b.ne	LBB0_11
; %bb.6:
	mov	w0, #683
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_7:
	mov	w0, #4458
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_8:
	lsr	w9, w9, #7
	cmp	w9, #374
	b.hi	LBB0_12
; %bb.9:
	mov	w9, #196608000
	udiv	w0, w9, w8
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_10:
	mov	w0, #3763
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_11:
	lsr	w9, w9, #7
	cmp	w9, #374
	b.ls	LBB0_13
LBB0_12:
	mov	w0, #4096
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_13:
	add	w8, w8, w8, lsl #12
	mov	w9, #6641
	movk	w9, #1398, lsl #16
	umull	x8, w8, w9
	lsr	x0, x8, #42
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_ali_convert_rate
.subsections_via_symbols
