	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function resampler_nearest_process
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_resampler_nearest_process:             ## @resampler_nearest_process
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	24(%rsi), %r8
	movslq	(%rsi), %rax
	movq	%r8, %rdx
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	32(%rsi), %rcx
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	divsd	8(%rsi), %xmm0
	leaq	(%rcx,%rax,4), %r9
	cvtsd2ss	%xmm0, %xmm0
	movl	(%rdi), %eax
	movq	%r8, %rdx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%eax
	movl	%eax, (%rdi)
	addq	$4, %rcx
	cmpq	%r9, %rcx
	je	LBB0_5
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	cmpl	$2, %eax
	jl	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rcx), %eax
	movl	%eax, (%rdx)
	addq	$4, %rdx
	xorps	%xmm1, %xmm1
	cvtsi2ssl	(%rdi), %xmm1
	subss	%xmm0, %xmm1
	cvttss2si	%xmm1, %eax
	movl	%eax, (%rdi)
	cmpl	$1, %eax
	jg	LBB0_3
	jmp	LBB0_4
LBB0_5:
	subq	%r8, %rdx
	shrq	$2, %rdx
	movl	%edx, 16(%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_resampler_nearest_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resampler_nearest_process
_resampler_nearest_process:             ; @resampler_nearest_process
	.cfi_startproc
; %bb.0:
	ldrsw	x10, [x1]
	ldr	x8, [x1, #24]
	cbz	w10, LBB0_5
; %bb.1:
	ldr	x9, [x1, #32]
	add	x10, x9, x10, lsl #2
	ldr	d0, [x1, #8]
	fmov	d1, #1.00000000
	fdiv	d0, d1, d0
	fcvt	s0, d0
	ldr	w12, [x0]
	mov	x11, x8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w12, w12, #1
	str	w12, [x0]
	add	x9, x9, #4
	cmp	x9, x10
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	cmp	w12, #2
	b.lt	LBB0_2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x9]
	str	w12, [x11], #4
	ldr	s1, [x0]
	scvtf	s1, s1
	fsub	s1, s1, s0
	fcvtzs	w12, s1
	str	w12, [x0]
	cmp	w12, #1
	b.gt	LBB0_4
	b	LBB0_2
LBB0_5:
	mov	x11, x8
LBB0_6:
	sub	x8, x11, x8
	lsr	x8, x8, #2
	str	w8, [x1, #16]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_resampler_nearest_process
.subsections_via_symbols
