	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resample_expand
_resample_expand:                       ## @resample_expand
	.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, -64(%rbp)                 ## 4-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r14
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movl	%r8d, %r15d
	movq	%rdx, %r13
	movq	16(%r14), %rcx
	leal	1(%r15), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	xorl	%edx, %edx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r15d
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movw	%si, (%rcx)
	movw	%r15w, 2(%rcx)
	addq	$4, %rcx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	-68(%rbp), %edi                 ## 4-byte Reload
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	movl	%edi, %eax
	cmpq	%rax, %rdx
	jae	LBB0_23
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movl	(%r14), %r12d
	movq	%rdx, %rbx
	shlq	$5, %rbx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax,%rbx)
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movzwl	(%rcx), %esi
	movzwl	2(%rcx), %eax
	movl	$1, (%r13,%rbx)
	testl	%r15d, %r15d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%edi, -68(%rbp)                 ## 4-byte Spill
	jle	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r13,%rbx), %ecx
	movl	12(%r13,%rbx), %edx
	leal	15(%rdx), %r8d
	testl	%edx, %edx
	cmovnsl	%edx, %r8d
	sarl	$4, %r8d
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	movl	8(%r10,%rbx), %r9d
	movl	12(%r10,%rbx), %edi
	leal	15(%rdi), %edx
	testl	%edi, %edi
	cmovnsl	%edi, %edx
	sarl	$4, %edx
	leal	15(%rcx), %edi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edi
	sarl	$4, %edi
	movslq	%edi, %rdi
	addq	%rdi, %rdi
	addq	16(%r13,%rbx), %rdi
	leal	15(%r9), %ecx
	testl	%r9d, %r9d
	cmovnsl	%r9d, %ecx
	sarl	$4, %ecx
	movslq	%ecx, %rcx
	addq	%rcx, %rcx
	addq	16(%r10,%rbx), %rcx
	movq	_R_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r11d
	movl	%r11d, -72(%rbp)                ## 4-byte Spill
	notl	%r11d
	movslq	%edx, %rdx
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movslq	%r8d, %rbx
	movl	8(%r14), %r8d
	addq	%rbx, %rbx
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=2
	movw	%ax, (%rdi)
	addl	%r8d, %r12d
	decl	%r13d
	addq	%rbx, %rdi
	movl	%r15d, %eax
	cmpl	$1, %r13d
	jbe	LBB0_21
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%r11d, %r12d
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	andl	-72(%rbp), %r12d                ## 4-byte Folded Reload
	leal	-1(%r14), %edx
	testl	%r14d, %r14d
	jle	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=2
	movzwl	(%rcx), %r15d
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	leaq	(%rcx,%rsi,2), %rcx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_10 Depth=2
	movl	%eax, %r15d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	movl	%eax, %r15d
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=2
	movl	%eax, %esi
	movl	%edx, %r14d
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=2
	movswl	%si, %r10d
	movswl	%r15w, %eax
	subl	%r10d, %eax
	imull	%r12d, %eax
	movq	_BITS@GOTPCREL(%rip), %rdx
	movswl	(%rdx), %r9d
	cltd
	idivl	%r9d
	addl	%r10d, %eax
	cmpl	$32767, %eax                    ## imm = 0x7FFF
	jl	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	$32767, %eax                    ## imm = 0x7FFF
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=2
	cmpl	$-32767, %eax                   ## imm = 0x8001
	jge	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	$-32768, %eax                   ## imm = 0x8000
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 24(%r13,%rbx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%r13), %rdi
	addq	$8, %rdi
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %ecx
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_snd_pcm_area_silence
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%r14), %edi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, (%r13,%rbx)
	jmp	LBB0_22
LBB0_1:
	xorl	%r12d, %r12d
LBB0_23:
	movl	%r12d, (%r14)
	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_expand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resample_expand
_resample_expand:                       ; @resample_expand
	.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_17
; %bb.1:
	mov	x5, x4
	mov	x21, x2
	mov	x6, x1
	mov	x25, #0
	ldr	x22, [x7, #16]
	add	w9, w4, #1
	str	w9, [sp, #16]                   ; 4-byte Folded Spill
	mov	w24, #1
Lloh0:
	adrp	x28, _BITS@GOTPAGE
Lloh1:
	ldr	x28, [x28, _BITS@GOTPAGEOFF]
	mov	w20, #32767
	mov	w27, #-32768
	str	x2, [sp]                        ; 8-byte Folded Spill
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, x10
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	strh	w9, [x22]
	strh	w2, [x22, #2]
	add	x22, x22, #4
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, uxtw
	b.hs	LBB0_18
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	w23, [x7]
	lsl	x19, x25, #5
	ldr	w9, [x6, x19]
	cbz	w9, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrh	w10, [x22, #2]
	ldrh	w9, [x22]
	str	w24, [x21, x19]
	cmp	w5, #1
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x11, x21, x19
	ldp	w13, w12, [x11, #8]
	add	w14, w12, #15
	cmp	w12, #0
	csel	w12, w14, w12, lt
	asr	w17, w12, #4
	add	x12, x6, x19
	ldp	w15, w14, [x12, #8]
	add	w16, w14, #15
	cmp	w14, #0
	csel	w16, w16, w14, lt
	ldr	x11, [x11, #16]
	add	w14, w13, #15
	cmp	w13, #0
	csel	w13, w14, w13, lt
	asr	w13, w13, #4
	add	x11, x11, w13, sxtw #1
	ldr	x12, [x12, #16]
	add	w13, w15, #15
	cmp	w15, #0
	csel	w13, w13, w15, lt
	asr	w13, w13, #4
	add	x12, x12, w13, sxtw #1
Lloh2:
	adrp	x13, _R_MASK@GOTPAGE
Lloh3:
	ldr	x13, [x13, _R_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w13, [x13]
	mvn	w14, w13
	sbfx	x15, x16, #4, #28
	ldr	w16, [x7, #8]
	sbfiz	x17, x17, #1, #32
	ldp	w0, w1, [sp, #16]               ; 8-byte Folded Reload
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	mov	x2, x10
	mov	x10, x9
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	mov	x9, x10
	sxth	w10, w10
	sxth	w3, w2
	sub	w3, w3, w10
	mul	w3, w3, w23
	ldrsh	w4, [x28]
	sdiv	w3, w3, w4
	add	w10, w3, w10
	cmp	w10, w20
	csel	w10, w10, w20, lt
	cmn	w10, #8, lsl #12                ; =32768
	csel	w10, w10, w27, gt
	strh	w10, [x11]
	add	w23, w23, w16
	sub	w0, w0, #1
	add	x11, x11, x17
	mov	x10, x2
	cmp	w0, #1
	b.ls	LBB0_3
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	tst	w23, w14
	b.eq	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	and	w23, w13, w23
	subs	w1, w1, #1
	b.lt	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	ldrh	w2, [x12]
	add	x12, x12, x15, lsl #1
	b	LBB0_9
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=2
	mov	x2, x10
	b	LBB0_9
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x21, x25, lsl #5
	ldr	x10, [x9, #24]
	cbz	x10, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_5 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_16:                                ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [x21, x19]
	b	LBB0_4
LBB0_17:
	mov	w23, #0
LBB0_18:
	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_expand
.subsections_via_symbols
