	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resample
_resample:                              ## @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
	movl	%r9d, %ebx
	movl	%r8d, -76(%rbp)                 ## 4-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movl	8(%rdi), %ecx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	12(%rdi), %r12d
	movl	%ecx, %eax
	cltd
	idivl	%r12d
	movl	%eax, %r11d
	movl	%edx, %r9d
	testq	%rsi, %rsi
	sete	%al
	testq	%r15, %r15
	setne	%dl
	xorb	%al, %dl
	je	LBB0_28
## %bb.1:
	movl	16(%rbp), %eax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r13d
	movl	4(%rax), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	16(%rax), %r14d
	cmpl	$0, 24(%rbp)
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	je	LBB0_2
## %bb.12:
	movl	%ebx, %edi
	movq	%rsi, %rbx
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r11d, -92(%rbp)                ## 4-byte Spill
	movl	%r13d, %eax
	notl	%eax
	addl	-76(%rbp), %eax                 ## 4-byte Folded Reload
	imull	%eax, %r12d
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %esi
	callq	_FFMIN
	movl	%eax, %r15d
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.14:
	testl	%r15d, %r15d
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	$0, %r10d
	jle	LBB0_18
## %bb.15:
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	xorl	%r14d, %r14d
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*48(%rax)
	incl	%r14d
	cmpl	%r14d, %r15d
	jne	LBB0_16
## %bb.17:
	movl	%r15d, %r10d
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_18
LBB0_28:
	movq	_EINVAL@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_2:
	xorl	%r10d, %r10d
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.3:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movb	%r8b, %cl
	addl	%ecx, %r13d
	subl	%edi, -44(%rbp)                 ## 4-byte Folded Spill
	cmpl	%r10d, %ebx
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movzbl	20(%rdx), %ecx
	movl	%r13d, %eax
	shrl	%cl, %eax
	addl	24(%rdx), %eax
	cmpl	-76(%rbp), %eax                 ## 4-byte Folded Reload
	jg	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%r10d, %edx
	movq	%r15, %rcx
	movl	%r13d, %r8d
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movl	%r13d, %r15d
	movl	%r10d, %r13d
	movl	%r11d, %r14d
	callq	*40(%r12)
	movl	%r14d, %r11d
	movl	%r13d, %r10d
	movl	%r15d, %r13d
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	movl	12(%r12), %r12d
	movq	-104(%rbp), %rsi                ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%r9d, %eax
	addl	%r11d, %r13d
	xorl	%ecx, %ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	%r12d, %eax
	setge	%r8b
	movl	%r12d, %edi
	movl	$0, %eax
	cmovll	%eax, %edi
	incl	%r10d
	cmpl	%r14d, %r10d
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	28(%rax), %eax
	cltd
	idivl	%r12d
	movl	%eax, %r11d
	movl	%edx, %r9d
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_13:
	movl	%r15d, %r10d
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
LBB0_18:
	movl	%r9d, %eax
	imull	%r10d, %eax
	addl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	cltd
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	idivl	12(%rcx)
	movl	-92(%rbp), %r11d                ## 4-byte Reload
	movl	%r11d, %ecx
	imull	%r10d, %ecx
	addl	%r13d, %ecx
	movl	%eax, %r13d
	addl	%ecx, %r13d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	testq	%rsi, %rsi
	je	LBB0_21
LBB0_20:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movb	20(%rax), %cl
	movl	%r13d, %eax
	shrl	%cl, %eax
	movl	%eax, (%rsi)
LBB0_21:
	cmpl	$0, -96(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_27
## %bb.22:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	andl	32(%rax), %r13d
	testl	%r14d, %r14d
	je	LBB0_23
## %bb.25:
	subl	%r10d, %r14d
	jg	LBB0_24
## %bb.26:
	movq	_AVERROR_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	jmp	LBB0_27
LBB0_23:
	xorl	%r14d, %r14d
LBB0_24:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 4(%rax)
	movl	%r13d, (%rax)
	imull	12(%rax), %r11d
	addl	%r9d, %r11d
	movl	%r11d, 8(%rax)
	movl	%r14d, 16(%rax)
LBB0_27:
	movl	%r10d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%ebx, %r10d
LBB0_11:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	jne	LBB0_20
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AVERROR_BUG,4,2                ## @AVERROR_BUG
	.no_dead_strip	_resample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resample
_resample:                              ; @resample
	.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
	cmp	x1, #0
	cset	w8, eq
	cmp	x2, #0
	cset	w9, ne
	eor	w8, w8, w9
	tbz	w8, #0, LBB0_6
; %bb.1:
	mov	x27, x4
	mov	x26, x2
	mov	x25, x1
	mov	x19, x0
	ldp	w21, w28, [x0]
	ldp	w9, w8, [x0, #8]
	sdiv	w20, w9, w8
	msub	w12, w20, w8, w9
	ldr	w13, [x0, #16]
	cbz	w7, LBB0_7
; %bb.2:
	mov	x22, x13
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	str	w12, [sp, #4]                   ; 4-byte Folded Spill
	str	w6, [sp, #20]                   ; 4-byte Folded Spill
	mvn	w10, w21
	add	w10, w10, w27
	mul	w8, w8, w10
	udiv	w1, w8, w9
	mov	x0, x5
	bl	_FFMIN
	mov	x24, x0
	cbz	x25, LBB0_16
; %bb.3:
	cmp	w24, #1
	b.lt	LBB0_15
; %bb.4:
	mov	w27, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	mov	x0, x25
	mov	x1, x27
	mov	x2, x26
	blr	x8
	add	w27, w27, #1
	cmp	w24, w27
	b.ne	LBB0_5
	b	LBB0_16
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_7:
	cmp	w5, #1
	b.lt	LBB0_26
; %bb.8:
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	str	w6, [sp, #20]                   ; 4-byte Folded Spill
	mov	w24, #0
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	cmp	w5, w24
	b.eq	LBB0_27
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldp	w9, w10, [x19, #20]
	lsr	w9, w21, w9
	add	w9, w9, w10
	cmp	w9, w27
	b.gt	LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cbz	x25, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19, #40]
	mov	x0, x19
	mov	x1, x25
	mov	x2, x24
	mov	x3, x26
	mov	x4, x21
	mov	x23, x5
	mov	x5, x28
	mov	x22, x12
	mov	x19, x24
	mov	x24, x25
	mov	x25, x21
	mov	x21, x28
	mov	x28, x20
	mov	x20, x13
	blr	x8
	mov	x5, x23
	mov	x13, x20
	mov	x20, x28
	mov	x28, x21
	mov	x21, x25
	mov	x25, x24
	mov	x24, x19
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
	mov	x12, x22
	ldr	w8, [x19, #12]
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	add	w9, w20, w21
	add	w10, w12, w28
	cmp	w10, w8
	cinc	w21, w9, ge
	csel	w9, wzr, w8, lt
	sub	w28, w10, w9
	add	w24, w24, #1
	cmp	w24, w13
	b.ne	LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w13, #0
	ldr	w9, [x19, #28]
	sdiv	w20, w9, w8
	msub	w12, w20, w8, w9
	b	LBB0_9
LBB0_15:
	mov	w24, #0
LBB0_16:
	ldr	w12, [sp, #4]                   ; 4-byte Folded Reload
	mov	x13, x22
	madd	w8, w24, w20, w21
	madd	w9, w24, w12, w28
	ldr	w10, [x19, #12]
	sdiv	w11, w9, w10
	add	w21, w8, w11
	msub	w28, w11, w10, w9
LBB0_17:
	ldr	w6, [sp, #20]                   ; 4-byte Folded Reload
	ldr	x3, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x3, LBB0_19
LBB0_18:
	ldr	w8, [x19, #20]
	lsr	w8, w21, w8
	str	w8, [x3]
LBB0_19:
	cbz	w6, LBB0_25
; %bb.20:
	ldr	w8, [x19, #32]
	cbz	w13, LBB0_23
; %bb.21:
	sub	w9, w13, w24
	cmp	w9, #0
	b.gt	LBB0_24
; %bb.22:
Lloh3:
	adrp	x8, _AVERROR_BUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_BUG@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	b	LBB0_25
LBB0_23:
	mov	w9, #0
LBB0_24:
	and	w8, w8, w21
	stp	w8, w28, [x19]
	ldr	w8, [x19, #12]
	madd	w8, w8, w20, w12
	str	w8, [x19, #8]
	str	w9, [x19, #16]
LBB0_25:
	mov	x0, x24
	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
LBB0_26:
	mov	w24, #0
	cbnz	x3, LBB0_18
	b	LBB0_19
LBB0_27:
	mov	x24, x5
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AVERROR_BUG,4,2                ; @AVERROR_BUG
	.no_dead_strip	_resample
.subsections_via_symbols
