	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resample_shrink
_resample_shrink:                       ## @resample_shrink
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %r9d
	testl	%r9d, %r9d
	je	LBB0_1
## %bb.2:
	movq	16(%r13), %rcx
	xorl	%edi, %edi
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movw	%si, (%rcx)
	movw	%bx, 2(%rcx)
	addq	$4, %rcx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdi
	movl	%r9d, %eax
	cmpq	%rax, %rdi
	jae	LBB0_21
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movl	(%r13), %r12d
	movq	%rdi, %r14
	shlq	$5, %r14
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax,%r14)
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movzwl	(%rcx), %esi
	movzwl	2(%rcx), %ebx
	movl	$1, (%rdx,%r14)
	testl	%r8d, %r8d
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	jle	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	12(%rdx,%r14), %ecx
	leal	15(%rcx), %r15d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r15d
	movl	8(%rdx,%r14), %ecx
	sarl	$4, %r15d
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	movl	12(%r9,%r14), %esi
	leal	15(%rsi), %eax
	testl	%esi, %esi
	cmovnsl	%esi, %eax
	sarl	$4, %eax
	leal	15(%rcx), %esi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %esi
	movl	8(%r9,%r14), %ecx
	sarl	$4, %esi
	movslq	%esi, %rdi
	addq	%rdi, %rdi
	addq	16(%rdx,%r14), %rdi
	leal	15(%rcx), %esi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %esi
	sarl	$4, %esi
	movslq	%esi, %rcx
	addq	%rcx, %rcx
	addq	16(%r9,%r14), %rcx
	cltq
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	_R_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	%r10d, %r11d
	notl	%r11d
	movslq	%r15d, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	%r8d, %r14d
	movl	8(%r13), %r13d
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=2
	movw	%ax, (%rdi)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	leaq	(%rdi,%rax,2), %rdi
	decl	%r14d
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=2
	addl	%r13d, %r12d
	decl	%r15d
	testl	%r14d, %r14d
	jle	LBB0_19
LBB0_9:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %esi
	testl	%r15d, %r15d
	jle	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	movzwl	(%rcx), %ebx
	movq	-120(%rbp), %rax                ## 8-byte Reload
	leaq	(%rcx,%rax,2), %rcx
	testl	%r11d, %r12d
	jne	LBB0_13
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=2
	movl	%esi, %ebx
	testl	%r11d, %r12d
	je	LBB0_18
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	andl	%r10d, %r12d
	movswl	%si, %r9d
	movswl	%bx, %eax
	subl	%r9d, %eax
	imull	%r12d, %eax
	movq	_BITS@GOTPCREL(%rip), %rdx
	movswl	(%rdx), %r8d
	cltd
	idivl	%r8d
	addl	%r9d, %eax
	cmpl	$32767, %eax                    ## imm = 0x7FFF
	jl	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	$32767, %eax                    ## imm = 0x7FFF
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=2
	cmpl	$-32767, %eax                   ## imm = 0x8001
	jge	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	$-32768, %eax                   ## imm = 0x8000
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 24(%rdx,%r14)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%r14), %rdi
	addq	$8, %rdi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	%r8d, %r15d
	movq	%rcx, %r13
	movl	(%rbx), %ecx
	xorl	%esi, %esi
	movl	%r8d, %edx
	callq	_snd_pcm_area_silence
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movl	%r15d, %r8d
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	4(%rbx), %r9d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, (%rdx,%r14)
	jmp	LBB0_20
LBB0_1:
	xorl	%r12d, %r12d
LBB0_21:
	movl	%r12d, (%r13)
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R_MASK,4,2                     ## @R_MASK
	.comm	_BITS,2,1                       ## @BITS
	.no_dead_strip	_resample_shrink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resample_shrink
_resample_shrink:                       ; @resample_shrink
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w3, [sp, #20]                   ; 4-byte Folded Spill
	ldr	x7, [x0, #8]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_15
; %bb.1:
	mov	x5, x4
	mov	x21, x2
	mov	x6, x1
	mov	x25, #0
	ldr	x22, [x7, #16]
	mov	w24, #1
	mov	w28, #32767
Lloh0:
	adrp	x27, _BITS@GOTPAGE
Lloh1:
	ldr	x27, [x27, _BITS@GOTPAGEOFF]
	mov	w20, #-32768
	str	x2, [sp]                        ; 8-byte Folded Spill
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	strh	w11, [x22]
	strh	w9, [x22, #2]
	add	x22, x22, #4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, uxtw
	b.hs	LBB0_16
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w23, [x7]
	lsl	x19, x25, #5
	ldr	w9, [x6, x19]
	cbz	w9, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrh	w9, [x22, #2]
	ldrh	w11, [x22]
	str	w24, [x21, x19]
	cmp	w5, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x21, x19
	ldp	w12, w11, [x10, #8]
	add	w13, w11, #15
	cmp	w11, #0
	csel	w11, w13, w11, lt
	add	x13, x6, x19
	ldp	w15, w14, [x13, #8]
	add	w16, w14, #15
	cmp	w14, #0
	csel	w14, w16, w14, lt
	ldr	x10, [x10, #16]
	add	w16, w12, #15
	cmp	w12, #0
	csel	w12, w16, w12, lt
	asr	w12, w12, #4
	add	x10, x10, w12, sxtw #1
	ldr	x12, [x13, #16]
	add	w13, w15, #15
	cmp	w15, #0
	csel	w13, w13, w15, lt
	asr	w13, w13, #4
	add	x12, x12, w13, sxtw #1
	sbfx	x13, x14, #4, #28
Lloh2:
	adrp	x14, _R_MASK@GOTPAGE
Lloh3:
	ldr	x14, [x14, _R_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w14, [x14]
	mvn	w15, w14
	sbfx	x16, x11, #4, #28
	ldr	w17, [x7, #8]
	mov	x0, x5
	ldr	w1, [sp, #20]                   ; 4-byte Folded Reload
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	w23, w23, w17
	cmp	w0, #0
	b.le	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x11, x9
	subs	w1, w1, #1
	b.lt	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldrh	w9, [x12]
	add	x12, x12, x13, lsl #1
	tst	w23, w15
	b.ne	LBB0_11
	b	LBB0_7
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x9, x11
	tst	w23, w15
	b.eq	LBB0_7
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
	and	w23, w14, w23
	sxth	w2, w11
	sxth	w3, w9
	sub	w3, w3, w2
	mul	w3, w23, w3
	ldrsh	w4, [x27]
	sdiv	w3, w3, w4
	add	w2, w3, w2
	cmp	w2, w28
	csel	w2, w2, w28, lt
	cmn	w2, #8, lsl #12                 ; =32768
	csel	w2, w2, w20, gt
	strh	w2, [x10]
	add	x10, x10, x16, lsl #1
	sub	w0, w0, #1
	b	LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x21, x25, lsl #5
	ldr	x10, [x9, #24]
	cbz	x10, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x9, #8
	ldr	w3, [x26]
	mov	w1, #0
	mov	x2, x5
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
	mov	x22, x5
	mov	x24, x6
	mov	x21, x7
	bl	_snd_pcm_area_silence
	mov	x7, x21
	ldr	x21, [sp]                       ; 8-byte Folded Reload
	mov	x6, x24
	mov	w24, #1
	mov	x5, x22
	ldr	x22, [sp, #24]                  ; 8-byte Folded Reload
	ldr	w8, [x26, #4]
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [x21, x19]
	b	LBB0_3
LBB0_15:
	mov	w23, #0
LBB0_16:
	str	w23, [x7]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_R_MASK,4,2                     ; @R_MASK
	.comm	_BITS,2,1                       ; @BITS
	.no_dead_strip	_resample_shrink
.subsections_via_symbols
