	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_audio_resample              ## -- Begin function ff_audio_resample
	.p2align	4, 0x90
_ff_audio_resample:                     ## @ff_audio_resample
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	$0, -52(%rbp)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	xorl	%r15d, %r15d
	cmpq	$0, (%r13)
	jne	LBB0_3
## %bb.1:
	cmpl	$1, 8(%r13)
	jne	LBB0_3
## %bb.2:
	xorl	%r15d, %r15d
	cmpq	$0, 16(%r13)
	sete	%r15b
LBB0_3:
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.4:
	movl	(%rbx), %r8d
	movq	48(%r13), %rdi
	movl	(%rdi), %esi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	callq	_ff_audio_data_combine
	testl	%eax, %eax
	jns	LBB0_7
## %bb.5:
	movl	%eax, %r12d
	jmp	LBB0_48
LBB0_6:
	movq	48(%r13), %rax
	movl	(%rax), %eax
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	24(%r13), %eax
	jle	LBB0_47
LBB0_7:
	leaq	48(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, 28(%r13)
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.21:
	testq	%rbx, %rbx
	jne	LBB0_37
	jmp	LBB0_22
LBB0_8:
	movq	56(%r13), %rax
	movl	(%rax), %edi
	callq	_av_get_bytes_per_sample
	movl	%eax, %r15d
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.10:
	movq	48(%r13), %rcx
	movl	32(%r13), %eax
	leal	(%rax,%rax), %edx
	xorl	%r12d, %r12d
	cmpl	%edx, (%rcx)
	jge	LBB0_11
	jmp	LBB0_48
LBB0_9:
	movl	32(%r13), %eax
LBB0_11:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_20
## %bb.12:
	movslq	%r15d, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	xorl	%r12d, %r12d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r12
	movslq	%eax, %rdx
	cmpq	%rdx, %r12
	jge	LBB0_20
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	cmpl	$0, 4(%rcx)
	jle	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rbx
	imulq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	xorl	%r14d, %r14d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=2
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=2
	incq	%r14
	movq	48(%r13), %rcx
	movslq	4(%rcx), %rdx
	movl	32(%r13), %eax
	cmpq	%rdx, %r14
	jge	LBB0_19
LBB0_15:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	%eax, %eax
	subl	%r12d, %eax
	movq	16(%rcx), %rdx
	movq	(%rdx,%r14,8), %rsi
	leaq	(%rsi,%rbx), %rdi
	cmpl	%eax, (%rcx)
	jle	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	imull	%r15d, %eax
	cltq
	addq	%rax, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	jmp	LBB0_18
LBB0_20:
	movl	$1, 28(%r13)
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	jne	LBB0_37
LBB0_22:
	cmpl	$0, 36(%r13)
	jne	LBB0_37
## %bb.23:
	movq	56(%r13), %rax
	movl	(%rax), %edi
	callq	_av_get_bytes_per_sample
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	48(%r13), %r15
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_FFMAX
	addl	32(%r13), %eax
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ff_audio_data_realloc
	testl	%eax, %eax
	js	LBB0_26
## %bb.24:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movl	32(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_25
## %bb.27:
	movslq	-44(%rbp), %r15                 ## 4-byte Folded Reload
	movslq	-72(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_28 Depth=1
	movl	32(%r13), %ecx
LBB0_35:                                ##   in Loop: Header=BB0_28 Depth=1
	incq	%r14
	movslq	%ecx, %rdx
	cmpq	%rdx, %r14
	jge	LBB0_36
LBB0_28:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_30 Depth 2
	cmpl	$0, 4(%rax)
	jle	LBB0_35
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	leaq	(%r14,%r15), %rbx
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	imulq	%rdx, %rbx
	movl	%r14d, %ecx
	notl	%ecx
	addl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
                                        ## kill: def $edx killed $edx killed $rdx
	imull	%ecx, %edx
	movslq	%edx, %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_30 Depth=2
	xorl	%esi, %esi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_memset
LBB0_33:                                ##   in Loop: Header=BB0_30 Depth=2
	incq	%r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	4(%rax), %rcx
	cmpq	%rcx, %r12
	jge	LBB0_34
LBB0_30:                                ##   Parent Loop BB0_28 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rax), %rax
	movq	(%rax,%r12,8), %rsi
	leaq	(%rsi,%rbx), %rdi
	cmpq	%r15, %r14
	jge	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=2
	addq	-88(%rbp), %rsi                 ## 8-byte Folded Reload
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	jmp	LBB0_33
LBB0_26:
	movq	56(%r13), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_25:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
LBB0_36:
	addl	%ecx, (%rax)
	movl	%ecx, 24(%r13)
	movl	$1, 36(%r13)
	movq	-80(%rbp), %r14                 ## 8-byte Reload
LBB0_37:
	xorl	%r12d, %r12d
	cmpl	$0, 32(%r14)
	je	LBB0_38
LBB0_41:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movl	4(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_44
## %bb.42:
	xorl	%ebx, %ebx
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rcx
	movq	(%rcx,%rbx,8), %rsi
	movq	16(%rdi), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movl	(%rdi), %r8d
	movl	8(%r14), %r9d
	incq	%rbx
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpq	%rcx, %rbx
	sete	%al
	movq	%r13, %rdi
	leaq	-52(%rbp), %rcx
	pushq	%r15
	pushq	%rax
	callq	_resample
	addq	$16, %rsp
	movl	%eax, %r12d
	movq	48(%r13), %rdi
	movslq	4(%rdi), %rax
	cmpq	%rax, %rbx
	jl	LBB0_43
LBB0_44:
	testl	%r12d, %r12d
	js	LBB0_45
## %bb.46:
	movl	-52(%rbp), %esi
	callq	_ff_audio_data_drain
	movl	40(%r13), %edi
	subl	-52(%rbp), %edi
	xorl	%esi, %esi
	callq	_FFMAX
	movl	%eax, 40(%r13)
	movq	48(%r13), %rax
	movq	56(%r13), %rdi
	movq	_AV_LOG_TRACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %ebx
	subq	$8, %rsp
	leaq	L_.str.3(%rip), %rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%r12d, %r9d
	xorl	%eax, %eax
	pushq	%rbx
	callq	_av_log
	addq	$16, %rsp
	movl	%r12d, (%r14)
LBB0_47:
	xorl	%r12d, %r12d
	jmp	LBB0_48
LBB0_38:
	cmpq	$0, 24(%r14)
	je	LBB0_41
## %bb.39:
	movq	48(%r13), %rax
	movl	(%rax), %r8d
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	$0
	callq	_resample
	addq	$16, %rsp
	movl	%eax, %r12d
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ff_audio_data_realloc
	testl	%eax, %eax
	jns	LBB0_41
## %bb.40:
	movl	%eax, %r15d
	movq	56(%r13), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movl	%r15d, %r12d
	jmp	LBB0_48
LBB0_45:
	movq	56(%r13), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
LBB0_48:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reallocating resampling buffer\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_INT_MAX,4,2                    ## @INT_MAX
L_.str.1:                               ## @.str.1
	.asciz	"error reallocating output\n"

L_.str.2:                               ## @.str.2
	.asciz	"error during resampling\n"

	.comm	_AV_LOG_TRACE,4,2               ## @AV_LOG_TRACE
L_.str.3:                               ## @.str.3
	.asciz	"resampled %d in + %d leftover to %d out + %d leftover\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_audio_resample              ; -- Begin function ff_audio_resample
	.p2align	2
_ff_audio_resample:                     ; @ff_audio_resample
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x24, x2
	mov	x19, x1
	mov	x20, x0
	str	wzr, [sp, #60]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	w23, #0
	ldr	x8, [x20]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x20, #16]
	cmp	x8, #0
	cset	w23, eq
LBB0_3:
	cbz	x24, LBB0_7
LBB0_4:
	ldr	w22, [x24]
	mov	x26, x20
	ldr	x0, [x26, #48]!
	ldr	w28, [x0]
	mov	x1, x28
	mov	x2, x24
	mov	w3, #0
	mov	x4, x22
	bl	_ff_audio_data_combine
	tbz	w0, #31, LBB0_8
; %bb.5:
	mov	x25, x0
	b	LBB0_51
LBB0_6:
	mov	w23, #0
	cbnz	x24, LBB0_4
LBB0_7:
	mov	w22, #0
	mov	x26, x20
	ldr	x8, [x26, #48]!
	ldr	w28, [x8]
	ldur	w8, [x26, #-24]
	cmp	w28, w8
	b.le	LBB0_12
LBB0_8:
	ldr	w8, [x20, #28]
	cbz	w8, LBB0_10
; %bb.9:
	cbnz	x24, LBB0_25
	b	LBB0_24
LBB0_10:
	ldr	x8, [x20, #56]
	ldr	w0, [x8]
	bl	_av_get_bytes_per_sample
	mov	x25, x0
	cbz	x24, LBB0_13
; %bb.11:
	ldr	x8, [x20, #48]
	ldr	w9, [x8]
	ldr	w8, [x20, #32]
	cmp	w9, w8, lsl #1
	b.ge	LBB0_14
	b	LBB0_32
LBB0_12:
	mov	x25, x22
	b	LBB0_51
LBB0_13:
	ldr	w8, [x20, #32]
LBB0_14:
	str	x28, [sp, #48]                  ; 8-byte Folded Spill
	str	x22, [sp, #32]                  ; 8-byte Folded Spill
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.15:
	mov	x27, #0
	sxtw	x28, w25
	ldr	x9, [x26]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x27, x27, #1
	cmp	x27, w8, sxtw
	b.ge	LBB0_23
LBB0_17:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	ldr	w10, [x9, #4]
	cmp	w10, #1
	b.lt	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x21, #0
	mul	x22, x27, x28
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=2
	mov	w1, #0
	mov	x2, x25
	bl	_memset
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=2
	add	x21, x21, #1
	ldr	x9, [x20, #48]
	ldrsw	x10, [x9, #4]
	ldr	w8, [x20, #32]
	cmp	x21, x10
	b.ge	LBB0_16
LBB0_21:                                ;   Parent Loop BB0_17 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x9]
	lsl	w11, w8, #1
	ldr	x8, [x9, #16]
	ldr	x8, [x8, x21, lsl #3]
	add	x0, x8, x22
	sub	w9, w11, w27
	cmp	w10, w9
	b.le	LBB0_19
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	mul	w9, w9, w25
	add	x1, x8, w9, sxtw
	mov	x2, x25
	bl	_memcpy
	b	LBB0_20
LBB0_23:
	mov	w8, #1
	str	w8, [x20, #28]
	ldr	x22, [sp, #32]                  ; 8-byte Folded Reload
	ldr	x28, [sp, #48]                  ; 8-byte Folded Reload
	cbnz	x24, LBB0_25
LBB0_24:
	ldr	w8, [x20, #36]
	cbz	w8, LBB0_34
LBB0_25:
	ldr	w8, [x19, #32]
	cbz	w8, LBB0_48
LBB0_26:
	mov	w25, #0
LBB0_27:
	ldr	x0, [x26]
	ldr	w8, [x0, #4]
	cmp	w8, #1
	b.lt	LBB0_30
; %bb.28:
	mov	x21, #0
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	lsl	x10, x21, #3
	ldr	x1, [x9, x10]
	ldr	x9, [x0, #16]
	ldr	x2, [x9, x10]
	ldr	w4, [x0]
	ldr	w5, [x19, #8]
	add	x21, x21, #1
	cmp	x21, w8, uxtw
	cset	w6, eq
	add	x3, sp, #60
	mov	x0, x20
	mov	x7, x23
	bl	_resample
	mov	x25, x0
	ldr	x0, [x20, #48]
	ldrsw	x8, [x0, #4]
	cmp	x21, x8
	b.lt	LBB0_29
LBB0_30:
	tbnz	w25, #31, LBB0_33
; %bb.31:
	ldr	w1, [sp, #60]
	bl	_ff_audio_data_drain
	ldr	w8, [x20, #40]
	ldr	w9, [sp, #60]
	sub	w0, w8, w9
	mov	w1, #0
	bl	_FFMAX
	str	w0, [x20, #40]
Lloh3:
	adrp	x8, _AV_LOG_TRACE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_TRACE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldp	x8, x0, [x20, #48]
	ldr	w8, [x8]
	stp	x25, x8, [sp, #16]
	mov	x8, x28
	stp	x22, x8, [sp]
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_av_log
	str	w25, [x19]
LBB0_32:
	mov	w25, #0
	b	LBB0_51
LBB0_33:
	ldr	x0, [x20, #56]
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
	b	LBB0_51
LBB0_34:
	ldr	x8, [x20, #56]
	ldr	w0, [x8]
	bl	_av_get_bytes_per_sample
	mov	x24, x0
	ldr	x25, [x20, #48]
	mov	x0, x22
	mov	x1, x28
	bl	_FFMAX
	ldr	w8, [x20, #32]
	add	w1, w8, w0
	mov	x0, x25
	bl	_ff_audio_data_realloc
	tbnz	w0, #31, LBB0_45
; %bb.35:
	str	x22, [sp, #32]                  ; 8-byte Folded Spill
	ldr	w9, [x20, #32]
	cmp	w9, #0
	b.le	LBB0_46
; %bb.36:
	mov	x25, #0
	sxtw	x27, w28
	sxtw	x8, w24
	stp	x8, x28, [sp, #40]              ; 16-byte Folded Spill
	ldr	x8, [x26]
	b	LBB0_39
LBB0_37:                                ;   in Loop: Header=BB0_39 Depth=1
	ldr	w9, [x20, #32]
	ldr	x28, [sp, #48]                  ; 8-byte Folded Reload
LBB0_38:                                ;   in Loop: Header=BB0_39 Depth=1
	add	x25, x25, #1
	cmp	x25, w9, sxtw
	b.ge	LBB0_47
LBB0_39:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_43 Depth 2
	ldr	w10, [x8, #4]
	cmp	w10, #1
	b.lt	LBB0_38
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=1
	mov	x21, #0
	add	x9, x25, x27
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	mul	x22, x9, x10
	mvn	w9, w25
	add	w9, w28, w9
	mul	w9, w9, w24
	sxtw	x28, w9
	b	LBB0_43
LBB0_41:                                ;   in Loop: Header=BB0_43 Depth=2
	mov	w1, #0
	mov	x2, x24
	bl	_memset
LBB0_42:                                ;   in Loop: Header=BB0_43 Depth=2
	add	x21, x21, #1
	ldr	x8, [x26]
	ldrsw	x9, [x8, #4]
	cmp	x21, x9
	b.ge	LBB0_37
LBB0_43:                                ;   Parent Loop BB0_39 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x8, #16]
	ldr	x8, [x8, x21, lsl #3]
	add	x0, x8, x22
	cmp	x25, x27
	b.ge	LBB0_41
; %bb.44:                               ;   in Loop: Header=BB0_43 Depth=2
	add	x1, x8, x28
	mov	x2, x24
	bl	_memcpy
	b	LBB0_42
LBB0_45:
	ldr	x0, [x20, #56]
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_AVERROR
LBB0_46:
	ldr	x8, [x26]
LBB0_47:
	ldr	w10, [x8]
	add	w10, w10, w9
	str	w10, [x8]
	str	w9, [x20, #24]
	mov	w8, #1
	str	w8, [x20, #36]
	ldr	x22, [sp, #32]                  ; 8-byte Folded Reload
	ldr	w8, [x19, #32]
	cbnz	w8, LBB0_26
LBB0_48:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_26
; %bb.49:
	ldr	x8, [x20, #48]
	ldr	w4, [x8]
Lloh21:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh23:
	ldr	w5, [x8]
	mov	x0, x20
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	mov	w6, #0
	mov	x7, x23
	bl	_resample
	mov	x25, x0
	mov	x0, x19
	mov	x1, x25
	bl	_ff_audio_data_realloc
	tbz	w0, #31, LBB0_27
; %bb.50:
	mov	x24, x0
	ldr	x0, [x20, #56]
Lloh24:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str.1@PAGE
Lloh28:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
	mov	x25, x24
LBB0_51:
	mov	x0, x25
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reallocating resampling buffer\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INT_MAX,4,2                    ; @INT_MAX
l_.str.1:                               ; @.str.1
	.asciz	"error reallocating output\n"

l_.str.2:                               ; @.str.2
	.asciz	"error during resampling\n"

	.comm	_AV_LOG_TRACE,4,2               ; @AV_LOG_TRACE
l_.str.3:                               ; @.str.3
	.asciz	"resampled %d in + %d leftover to %d out + %d leftover\n"

.subsections_via_symbols
