	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_speex_resampler_set_rate_frac  ## -- Begin function speex_resampler_set_rate_frac
	.p2align	4, 0x90
_speex_resampler_set_rate_frac:         ## @speex_resampler_set_rate_frac
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	cmpq	%rcx, (%rdi)
	jne	LBB0_4
## %bb.1:
	cmpq	%r8, 8(%r15)
	jne	LBB0_4
## %bb.2:
	cmpq	%rsi, 16(%r15)
	jne	LBB0_4
## %bb.3:
	cmpq	%rdx, 24(%r15)
	je	LBB0_35
LBB0_4:
	movq	24(%r15), %r14
	movq	%rcx, (%r15)
	movq	%r8, 8(%r15)
	movq	%rsi, 16(%r15)
	movq	%rdx, 24(%r15)
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_IMIN
	cmpq	$2, %rax
	jge	LBB0_5
LBB0_17:
	testq	%r14, %r14
	jle	LBB0_33
## %bb.18:
	cmpq	$0, 32(%r15)
	jle	LBB0_33
## %bb.19:
	movq	40(%r15), %rcx
	xorl	%esi, %esi
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%rsi
	cmpq	32(%r15), %rsi
	jge	LBB0_33
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	imulq	(%rcx,%rsi,8), %rax
	movq	%rax, %rdx
	orq	%r14, %rdx
	shrq	$32, %rdx
	je	LBB0_21
## %bb.29:                              ##   in Loop: Header=BB0_20 Depth=1
	cqto
	idivq	%r14
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_20 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r14d
                                        ## kill: def $eax killed $eax def $rax
LBB0_30:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%rax, (%rcx,%rsi,8)
	movq	24(%r15), %rdx
	cmpq	%rdx, %rax
	jl	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_20 Depth=1
	decq	%rdx
	movq	%rdx, (%rcx,%rsi,8)
	jmp	LBB0_32
LBB0_33:
	cmpq	$0, 48(%r15)
	je	LBB0_35
## %bb.34:
	movq	%r15, %rdi
	callq	_update_filter
LBB0_35:
	movq	_RESAMPLER_ERR_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	$2, %ebx
	jmp	LBB0_6
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rcx, %rsi
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	1(%rbx), %r12
	callq	_IMIN
	cmpq	%rax, %rbx
	movq	%r12, %rbx
	jge	LBB0_17
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	16(%r15), %rdi
	movq	%rdi, %rax
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rdi, %rax
	cqto
	idivq	%rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	24(%r15), %rcx
	movq	%rcx, %rsi
	testq	%rdx, %rdx
	je	LBB0_11
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_11 Depth=2
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %rcx
	testq	%rdx, %rdx
	jne	LBB0_16
LBB0_11:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, %rax
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	%rcx, %rax
	cqto
	idivq	%rbx
	movq	%rax, %rsi
	testq	%rdx, %rdx
	je	LBB0_22
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=2
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $edx killed $edx def $rdx
	movl	%eax, %esi
	testq	%rdx, %rdx
	jne	LBB0_15
LBB0_22:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	%rdi, %rax
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	%rdi, %rax
	cqto
	idivq	%rbx
	movq	%rax, %rdi
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_11 Depth=2
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%ebx
	movl	%eax, %edi
LBB0_25:                                ##   in Loop: Header=BB0_11 Depth=2
	movq	%rdi, 16(%r15)
	movq	%rsi, 24(%r15)
	movq	%rdi, %rax
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	%rdi, %rax
	cqto
	idivq	%rbx
	movq	%rsi, %rcx
	testq	%rdx, %rdx
	je	LBB0_11
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_RESAMPLER_ERR_SUCCESS,4,2      ## @RESAMPLER_ERR_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_speex_resampler_set_rate_frac  ; -- Begin function speex_resampler_set_rate_frac
	.p2align	2
_speex_resampler_set_rate_frac:         ; @speex_resampler_set_rate_frac
	.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]
	cmp	x8, x3
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	cmp	x8, x4
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x19, #16]
	cmp	x8, x1
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19, #24]
	cmp	x8, x2
	b.eq	LBB0_13
LBB0_4:
	ldr	x20, [x19, #24]
	stp	x3, x4, [x19]
	stp	x1, x2, [x19, #16]
	mov	x0, x1
	mov	x1, x2
	bl	_IMIN
	cmp	x0, #1
	b.gt	LBB0_14
LBB0_5:
	cmp	x20, #1
	b.lt	LBB0_11
; %bb.6:
	ldr	x8, [x19, #32]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.7:
	mov	x8, #0
	ldr	x9, [x19, #40]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x8, #1
	ldr	x10, [x19, #32]
	cmp	x8, x10
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x10, x8, #3
	ldr	x11, [x9, x10]
	ldr	x12, [x19, #24]
	mul	x11, x12, x11
	sdiv	x11, x11, x20
	str	x11, [x9, x10]
	ldr	x10, [x19, #24]
	cmp	x11, x10
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	x10, x10, #1
	str	x10, [x9, x8, lsl #3]
	b	LBB0_8
LBB0_11:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_update_filter
LBB0_13:
Lloh0:
	adrp	x8, _RESAMPLER_ERR_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RESAMPLER_ERR_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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
LBB0_14:
	mov	w21, #2
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x1, x8
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x22, x21, #1
	bl	_IMIN
	cmp	x21, x0
	mov	x21, x22
	b.ge	LBB0_5
LBB0_17:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	ldp	x0, x8, [x19, #16]
	sdiv	x9, x0, x21
	msub	x9, x9, x21, x0
	cbnz	x9, LBB0_15
LBB0_18:                                ;   Parent Loop BB0_17 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sdiv	x1, x8, x21
	msub	x9, x1, x21, x8
	cbnz	x9, LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	sdiv	x0, x0, x21
	stp	x0, x1, [x19, #16]
	sdiv	x8, x0, x21
	msub	x9, x8, x21, x0
	mov	x8, x1
	cbz	x9, LBB0_18
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RESAMPLER_ERR_SUCCESS,4,2      ; @RESAMPLER_ERR_SUCCESS
.subsections_via_symbols
