	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generate_nibble
_generate_nibble:                       ## @generate_nibble
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r10
	movq	%rsi, %r14
                                        ## kill: def $edi killed $edi def $rdi
	movl	(%rdx), %r8d
	subl	%r8d, %edi
	movl	%edi, %ecx
	negl	%ecx
	cmovsl	%edi, %ecx
	shrl	$28, %edi
	andb	$8, %dil
	movq	_IMA_StepTable@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rsi), %rsi
	movl	(%rax,%rsi,4), %esi
	movl	%esi, %ebx
	shrl	$3, %ebx
	leal	4(%rdi), %eax
	xorl	%r9d, %r9d
	cmpl	%esi, %ecx
	movl	%esi, %edx
	cmovbl	%r9d, %edx
	movzbl	%dil, %edi
	movzbl	%al, %eax
	cmovbl	%edi, %eax
	addl	%edx, %ebx
	subl	%edx, %ecx
	movl	%esi, %edx
	shrl	%edx
	cmpl	%edx, %ecx
	cmovbl	%r9d, %edx
	leal	2(%rax), %edi
	movzbl	%dil, %edi
	cmovbl	%eax, %edi
	addl	%edx, %ebx
	subl	%edx, %ecx
	shrl	$2, %esi
	cmpl	%esi, %ecx
	setae	%r15b
	cmovbl	%r9d, %esi
	addl	%ebx, %esi
	orb	%dil, %r15b
	movl	%esi, %eax
	negl	%eax
	testb	$8, %dil
	cmovel	%esi, %eax
	addl	%r8d, %eax
	movl	%eax, (%r10)
	movq	%r10, %rdi
	callq	_clamp_sample
	movq	_IMA_IndexTable@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movzbl	%r15b, %ebx
	movl	(%rax,%rbx,8), %eax
	addl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_clamp_step_index
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMA_StepTable,8,3              ## @IMA_StepTable
	.comm	_IMA_IndexTable,8,3             ## @IMA_IndexTable
	.no_dead_strip	_generate_nibble
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generate_nibble
_generate_nibble:                       ; @generate_nibble
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w8, [x2]
	subs	w9, w0, w8
	cneg	w10, w9, mi
	lsr	w9, w9, #28
Lloh0:
	adrp	x11, _IMA_StepTable@GOTPAGE
Lloh1:
	ldr	x11, [x11, _IMA_StepTable@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	ldrsw	x12, [x1]
	ldr	w11, [x11, x12, lsl #2]
	and	w9, w9, #0x8
	orr	w12, w9, #0x4
	cmp	w10, w11
	csel	w13, wzr, w11, lo
	add	w14, w13, w11, lsr #3
	csel	w9, w9, w12, lo
	lsr	w12, w11, #1
	orr	w15, w9, #0x2
	sub	w10, w10, w13
	cmp	w10, w12
	csel	w12, wzr, w12, lo
	csel	w9, w9, w15, lo
	lsr	w11, w11, #2
	sub	w10, w10, w12
	cmp	w10, w11
	cset	w10, hs
	csel	w11, wzr, w11, lo
	add	w12, w14, w12
	add	w11, w12, w11
	orr	w20, w9, w10
	tst	w9, #0x8
	cneg	w9, w11, ne
	add	w8, w9, w8
	str	w8, [x2]
	mov	x0, x2
	bl	_clamp_sample
Lloh3:
	adrp	x8, _IMA_IndexTable@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IMA_IndexTable@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x8, w20, uxtw #3]
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	bl	_clamp_step_index
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IMA_StepTable,8,3              ; @IMA_StepTable
	.comm	_IMA_IndexTable,8,3             ; @IMA_IndexTable
	.no_dead_strip	_generate_nibble
.subsections_via_symbols
