	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function sample_1d_nearest_mipmap_nearest
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
LCPI0_1:
	.long	0x3effffde                      ## float 0.499998987
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_sample_1d_nearest_mipmap_nearest:      ## @sample_1d_nearest_mipmap_nearest
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%r8, %r9
	movq	%rcx, %r8
	movq	%rdx, %rcx
	movq	%rsi, %rdx
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm2
	movq	(%rdi), %rax
	jae	LBB0_1
## %bb.2:
	movq	(%rax), %r10
	addss	LCPI0_1(%rip), %xmm1
	cvttss2si	%xmm1, %rsi
	movq	(%r10), %r10
	cmpq	%rsi, %r10
	cmovlq	%r10, %rsi
	jmp	LBB0_3
LBB0_1:
	xorl	%esi, %esi
LBB0_3:
	movq	(%rax,%rsi,8), %rsi
	popq	%rbp
	jmp	_sample_1d_nearest              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sample_1d_nearest_mipmap_nearest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sample_1d_nearest_mipmap_nearest
_sample_1d_nearest_mipmap_nearest:      ; @sample_1d_nearest_mipmap_nearest
	.cfi_startproc
; %bb.0:
	mov	x5, x4
	mov	x4, x3
	mov	x3, x2
	mov	x2, x1
	ldr	x8, [x0]
	fmov	s2, #0.50000000
	fcmp	s1, s2
	b.ls	LBB0_2
; %bb.1:
	ldr	x9, [x8]
	ldr	x9, [x9]
	mov	w10, #65502
	movk	w10, #16127, lsl #16
	fmov	s2, w10
	fadd	s1, s1, s2
	fcvtzs	x10, s1
	cmp	x9, x10
	csel	x9, x9, x10, lt
	ldr	x1, [x8, x9, lsl #3]
	b	_sample_1d_nearest
LBB0_2:
	ldr	x1, [x8, xzr, lsl #3]
	b	_sample_1d_nearest
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sample_1d_nearest_mipmap_nearest
.subsections_via_symbols
