	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_samples
_convert_samples:                       ## @convert_samples
	.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	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %edi
	movl	$16, %esi
	callq	_FFALIGN
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.1:
	movl	%r14d, %ecx
	shlq	$4, %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rdi), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,2), %r14
	movq	(%r12,%r15,2), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movslq	4(%rbx,%r13), %r12
	shlq	$2, %r12
	addq	8(%rbx,%r13), %r12
	movl	8(%rdi), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_FFALIGN
	movq	%r14, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	*-96(%rbp)                      ## 8-byte Folded Reload
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, 4(%rbx,%r13)
	addq	$4, %r15
	addq	$16, %r13
	cmpq	%r13, -104(%rbp)                ## 8-byte Folded Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rdi), %rbx
	leaq	(%rbx,%r13), %r14
	movl	(%rbx,%r13), %ecx
	cmpl	%eax, %ecx
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_generate_dither_noise
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testl	%eax, %eax
	jns	LBB0_6
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	subl	4(%rbx,%r13), %ecx
	cmpl	%eax, %ecx
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, 4(%rbx,%r13)
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdi), %rax
	movq	_AV_RESAMPLE_DITHER_TRIANGULAR_NS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,2), %rdx
	movq	(%r12,%r15,2), %rcx
	movq	%r14, %rsi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_quantize_triangular_ns
	jmp	LBB0_9
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_RESAMPLE_DITHER_TRIANGULAR_NS,8,3 ## @AV_RESAMPLE_DITHER_TRIANGULAR_NS
	.no_dead_strip	_convert_samples
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_samples
_convert_samples:                       ; @convert_samples
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	str	w4, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x4
	mov	w1, #16
	bl	_FFALIGN
	cmp	w24, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x23, x0
	mov	x27, #0
	mov	w8, w24
	lsl	x19, x8, #4
Lloh0:
	adrp	x25, _AV_RESAMPLE_DITHER_TRIANGULAR_NS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _AV_RESAMPLE_DITHER_TRIANGULAR_NS@GOTPAGEOFF]
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	str	x19, [sp]                       ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x19, [x22, #16]
	ldr	x24, [x21]
	mov	x23, x25
	ldr	x25, [x20]
	add	x8, x28, x27
	ldr	x9, [x8, #8]
	ldrsw	x8, [x8, #4]
	add	x26, x9, x8, lsl #2
	ldr	w1, [x22, #8]
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_FFALIGN
	mov	x3, x0
	mov	x0, x24
	mov	x1, x25
	mov	x25, x23
	mov	x2, x26
	blr	x19
	ldr	x19, [sp]                       ; 8-byte Folded Reload
	ldr	w23, [sp, #8]                   ; 4-byte Folded Reload
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x28, x27
	ldr	w9, [x8, #4]
	add	w9, w9, w23
	str	w9, [x8, #4]
	add	x20, x20, #8
	add	x21, x21, #8
	add	x27, x27, #16
	cmp	x19, x27
	b.eq	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x22, #24]
	add	x24, x28, x27
	ldr	w8, [x24]
	cmp	w8, w23
	b.ge	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x24
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_generate_dither_noise
	tbz	w0, #31, LBB0_8
	b	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x24, #4]
	sub	w8, w8, w9
	cmp	w8, w23
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [x24, #4]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x2, [x21]
	ldr	x3, [x20]
	mov	x0, x22
	mov	x1, x24
	ldr	w4, [sp, #12]                   ; 4-byte Folded Reload
	bl	_quantize_triangular_ns
	b	LBB0_3
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_RESAMPLE_DITHER_TRIANGULAR_NS,8,3 ; @AV_RESAMPLE_DITHER_TRIANGULAR_NS
	.no_dead_strip	_convert_samples
.subsections_via_symbols
