	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gkc_insert_value               ## -- Begin function gkc_insert_value
	.p2align	4, 0x90
_gkc_insert_value:                      ## @gkc_insert_value
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movq	%rdi, %r15
	callq	_gkc_alloc
	movq	%rax, %r13
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, (%r13)
	movl	$1, 8(%r13)
	leaq	16(%r13), %r14
	movq	%r14, %rdi
	callq	_list_init
	incl	(%r15)
	leaq	8(%r15), %r12
	movq	%r12, %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_1
## %bb.11:
	movq	%r12, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_list_add                       ## TAILCALL
LBB0_1:
	movq	(%r12), %rbx
	movq	%rbx, %rdi
	callq	_list_to_tuple
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	ucomisd	(%r13), %xmm0
	jbe	LBB0_2
## %bb.12:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_list_add
	jmp	LBB0_9
LBB0_2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rbx
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	cmpq	%r12, %rdi
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_list_to_tuple
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_list_to_tuple
	movsd	(%r13), %xmm0                   ## xmm0 = mem[0],zero
	ucomisd	(%rax), %xmm0
	jb	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movsd	(%r14), %xmm1                   ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_7
## %bb.6:
	movl	8(%rax), %ecx
	movl	12(%rax), %eax
	addl	%ecx, %eax
	decl	%eax
	movl	%eax, 12(%r13)
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add
	jmp	LBB0_9
LBB0_8:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
LBB0_9:
	movl	(%r15), %eax
	movl	4(%r15), %ecx
	addl	%ecx, %ecx
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	LBB0_10
## %bb.13:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gkc_compress                   ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gkc_insert_value               ; -- Begin function gkc_insert_value
	.p2align	2
_gkc_insert_value:                      ; @gkc_insert_value
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 b8, -72
	.cfi_offset b9, -80
	fmov	d8, d0
	mov	x19, x0
	bl	_gkc_alloc
	mov	x20, x0
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	d8, [x20]
	mov	w8, #1
	str	w8, [x20, #8]
	add	x21, x20, #16
	mov	x0, x21
	bl	_list_init
	ldr	w8, [x19]
	add	w8, w8, #1
	mov	x22, x19
	str	w8, [x22], #8
	mov	x0, x22
	bl	_list_empty
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	b	_list_add
LBB0_2:
	ldr	x23, [x22]
	mov	x0, x23
	bl	_list_to_tuple
	ldr	d0, [x0]
	ldr	d1, [x20]
	fcmp	d0, d1
	b.le	LBB0_6
; %bb.3:
	mov	x0, x22
LBB0_4:
	mov	x1, x21
	bl	_list_add
	b	LBB0_11
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x23, [x23]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	cmp	x0, x22
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_list_to_tuple
	mov	x24, x0
	mov	x0, x23
	bl	_list_to_tuple
	ldr	d1, [x0]
	ldr	d0, [x20]
	fcmp	d1, d0
	b.hi	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	d1, [x24]
	fcmp	d0, d1
	b.pl	LBB0_5
; %bb.9:
	ldp	w8, w9, [x0, #8]
	add	w8, w8, w9
	sub	w8, w8, #1
	str	w8, [x20, #12]
	mov	x0, x23
	b	LBB0_4
LBB0_10:
	mov	x0, x22
	mov	x1, x21
	bl	_list_add_tail
LBB0_11:
	ldp	w8, w9, [x19]
	lsl	w9, w9, #1
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	cbz	w8, LBB0_13
; %bb.12:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	b	_gkc_compress
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
