	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intset_flush_buffered_values
_intset_flush_buffered_values:          ## @intset_flush_buffered_values
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movl	8(%rdi), %r13d
	movq	16(%rdi), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_intset_new_leaf_node
	movq	%rax, %r15
	movq	%rax, 32(%rbx)
	movq	%rax, 24(%rbx)
	movq	16(%rbx), %rax
	movq	%r15, (%rax)
	movl	$1, 12(%rbx)
LBB0_2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_MAX_VALUES_PER_LEAF_ITEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpl	(%rax), %r13d
	jge	LBB0_3
LBB0_7:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %eax
	movl	%eax, %edx
	subl	%r14d, %edx
	jle	LBB0_9
## %bb.8:
	movq	(%rbx), %rdi
	movslq	%r14d, %rax
	leaq	(%rdi,%rax,4), %rsi
	shll	$2, %edx
	callq	_memmove
	movl	8(%rbx), %eax
LBB0_9:
	subl	%r14d, %eax
	movl	%eax, 8(%rbx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%r14d, %r14d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rcx
	leaq	1(%rsi), %rdx
	movq	%rdx, (%r15)
	movl	%ebx, (%rcx,%rsi,8)
	movl	%eax, 4(%rcx,%rsi,8)
	addl	-52(%rbp), %r14d
	movl	%r13d, %eax
	subl	%r14d, %eax
	movq	_MAX_VALUES_PER_LEAF_ITEM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r14d, %r14
	movl	(%r12,%r14,4), %ebx
	incl	%r14d
	movslq	%r14d, %rax
	leaq	(%r12,%rax,4), %rdi
	leaq	-52(%rbp), %rsi
	movl	%ebx, %edx
	callq	_simple8b_encode
	movq	(%r15), %rsi
	movq	_MAX_LEAF_ITEMS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rsi
	jl	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	callq	_intset_new_leaf_node
	movq	%rax, %r12
	movq	%rax, 16(%r15)
	movq	16(%r13), %rax
	movq	%r12, (%rax)
	movq	%r13, %rdi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	$1, %esi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_intset_update_upper
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	(%r12), %rsi
	movq	%r12, %r15
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_VALUES_PER_LEAF_ITEM,4,2   ## @MAX_VALUES_PER_LEAF_ITEM
	.comm	_MAX_LEAF_ITEMS,8,3             ## @MAX_LEAF_ITEMS
	.no_dead_strip	_intset_flush_buffered_values
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intset_flush_buffered_values
_intset_flush_buffered_values:          ; @intset_flush_buffered_values
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x24, [x0]
	ldr	w25, [x0, #8]
	ldr	x8, [x0, #16]
	ldr	x20, [x8]
	cbnz	x20, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_intset_new_leaf_node
	mov	x20, x0
	stp	x0, x0, [x19, #24]
	ldr	x8, [x19, #16]
	str	x0, [x8]
	mov	w8, #1
	str	w8, [x19, #12]
LBB0_2:
Lloh0:
	adrp	x26, _MAX_VALUES_PER_LEAF_ITEM@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MAX_VALUES_PER_LEAF_ITEM@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w25, w8
	b.ge	LBB0_7
; %bb.3:
	mov	w22, #0
LBB0_4:
	ldr	w8, [x19, #8]
	subs	w9, w8, w22
	b.le	LBB0_6
; %bb.5:
	ldr	x0, [x19]
	add	x1, x0, w22, sxtw #2
	lsl	w2, w9, #2
	bl	_memmove
	ldr	w8, [x19, #8]
LBB0_6:
	sub	w8, w8, w22
	str	w8, [x19, #8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	mov	w22, #0
Lloh2:
	adrp	x27, _MAX_LEAF_ITEMS@GOTPAGE
Lloh3:
	ldr	x27, [x27, _MAX_LEAF_ITEMS@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x20, #8]
	add	x10, x8, #1
	str	x10, [x20]
	add	x8, x9, x8, lsl #3
	stp	w21, w22, [x8]
	ldr	w8, [sp, #12]
	add	w22, w28, w8
	sub	w8, w25, w22
	ldr	w9, [x26]
	cmp	w8, w9
	b.lt	LBB0_4
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x24, w22, sxtw #2]
	add	w28, w22, #1
	add	x0, x24, w28, sxtw #2
	add	x1, sp, #12
	mov	x2, x21
	bl	_simple8b_encode
	mov	x22, x0
	ldr	x8, [x20]
	ldr	x9, [x27]
	cmp	x8, x9
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	bl	_intset_new_leaf_node
	mov	x23, x0
	str	x0, [x20, #16]
	ldr	x8, [x19, #16]
	str	x0, [x8]
	mov	x0, x19
	mov	w1, #1
	mov	x2, x23
	mov	x3, x21
	bl	_intset_update_upper
	ldr	x8, [x23]
	mov	x20, x23
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_VALUES_PER_LEAF_ITEM,4,2   ; @MAX_VALUES_PER_LEAF_ITEM
	.comm	_MAX_LEAF_ITEMS,8,3             ; @MAX_LEAF_ITEMS
	.no_dead_strip	_intset_flush_buffered_values
.subsections_via_symbols
