	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mem_putunlocked
_mem_putunlocked:                       ## @mem_putunlocked
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rdx, %rdi
	callq	_quantize
	movq	%rax, %r15
	movq	(%rbx), %rax
	cmpq	%r14, %rax
	je	LBB0_2
## %bb.1:
	cmpq	%rax, %r15
	jae	LBB0_2
## %bb.3:
	movq	32(%rbx), %rax
	movq	(%rax,%r15,8), %rcx
	movq	%rcx, (%r12)
	movq	%r12, (%rax,%r15,8)
	movq	24(%rbx), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax,%r14,8)
	setne	%dil
	callq	_INSIST
	movq	24(%rbx), %rax
	decl	(%rax,%r14,8)
	incl	4(%rax,%r15,8)
	addq	$16, %rbx
	movq	%rbx, %r12
	movq	%r15, %r14
	jmp	LBB0_4
LBB0_2:
	movl	40(%rbx), %edi
	movq	%r12, %rsi
	callq	*48(%rbx)
	movq	(%rbx), %rax
	movq	24(%rbx), %rcx
	xorl	%edi, %edi
	cmpl	$0, (%rcx,%rax,8)
	setne	%dil
	callq	_INSIST
	movq	(%rbx), %rax
	movq	24(%rbx), %rcx
	decl	(%rcx,%rax,8)
	leaq	8(%rbx), %r12
	xorl	%edi, %edi
	cmpq	%r14, 8(%rbx)
	setae	%dil
	callq	_INSIST
	subq	%r14, 16(%rbx)
LBB0_4:
	subq	%r14, (%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mem_putunlocked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mem_putunlocked
_mem_putunlocked:                       ; @mem_putunlocked
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x2
	bl	_quantize
	ldr	x8, [x19]
	cmp	x8, x20
	ccmp	x0, x8, #2, ne
	b.lo	LBB0_2
; %bb.1:
	ldr	x8, [x19, #48]
	ldr	w0, [x19, #40]
	mov	x1, x22
	blr	x8
	ldr	x8, [x19, #24]
	ldr	x9, [x19]
	lsl	x9, x9, #3
	ldr	w8, [x8, x9]
	cmp	w8, #0
	cset	w0, ne
	bl	_INSIST
	ldr	x8, [x19, #24]
	ldr	x9, [x19]
	lsl	x9, x9, #3
	ldr	w10, [x8, x9]
	sub	w10, w10, #1
	str	w10, [x8, x9]
	mov	x22, x19
	ldr	x8, [x22, #8]!
	cmp	x8, x20
	cset	w0, hs
	bl	_INSIST
	ldr	x8, [x19, #16]
	sub	x8, x8, x20
	str	x8, [x19, #16]
	b	LBB0_3
LBB0_2:
	mov	x21, x0
	ldr	x8, [x19, #32]
	lsl	x23, x0, #3
	ldr	x9, [x8, x23]
	str	x9, [x22]
	str	x22, [x8, x23]
	ldr	x8, [x19, #24]
	lsl	x20, x20, #3
	ldr	w8, [x8, x20]
	cmp	w8, #0
	cset	w0, ne
	bl	_INSIST
	ldr	x8, [x19, #24]
	ldr	w9, [x8, x20]
	sub	w9, w9, #1
	str	w9, [x8, x20]
	add	x8, x8, x23
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
	add	x22, x19, #16
	mov	x20, x21
LBB0_3:
	ldr	x8, [x22]
	sub	x8, x8, x20
	str	x8, [x22]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mem_putunlocked
.subsections_via_symbols
