	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intset_update_upper
_intset_update_upper:                   ## @intset_update_upper
	.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
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %r13
	movslq	%esi, %rbx
	movq	_MAX_INTERNAL_ITEMS@GOTPCREL(%rip), %r12
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setg	%dil
	callq	_Assert
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r13), %r12
	movq	%r12, %rcx
	movq	_MAX_TREE_LEVELS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	movl	(%r13), %eax
	movq	16(%r13), %rcx
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%eax
	movl	%eax, (%r13)
	cmpq	$0, (%rcx)
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r12), %rax
	jmp	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rax), %r14
	movq	%r13, %rdi
	callq	_intset_new_internal_node
	movl	%ebx, (%rax)
	movq	16(%rax), %rcx
	movq	%r14, (%rcx)
	movq	8(%rax), %rcx
	movq	%r12, (%rcx)
	movl	$1, 4(%rax)
	movq	%rax, 16(%r13)
	movq	8(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	_MAX_INTERNAL_ITEMS@GOTPCREL(%rip), %r12
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movslq	4(%rax), %rcx
	cmpl	(%r12), %ecx
	jl	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_intset_new_internal_node
	movl	%ebx, (%rax)
	movq	16(%rax), %rcx
	movq	%r14, (%rcx)
	movq	8(%rax), %rcx
	movq	%r15, (%rcx)
	movl	$1, 4(%rax)
	movq	8(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movq	%rax, %r15
	jmp	LBB0_1
LBB0_9:
	movq	16(%rax), %rdx
	movq	%r14, (%rdx,%rcx,8)
	movq	8(%rax), %rdx
	movq	%r15, (%rdx,%rcx,8)
	incl	%ecx
	movl	%ecx, 4(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TREE_LEVELS,4,2            ## @MAX_TREE_LEVELS
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not expand integer set, maximum number of levels reached"

	.comm	_MAX_INTERNAL_ITEMS,4,2         ## @MAX_INTERNAL_ITEMS
	.no_dead_strip	_intset_update_upper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intset_update_upper
_intset_update_upper:                   ; @intset_update_upper
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x3
	mov	x20, x2
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x21, x0
	sxtw	x23, w1
Lloh0:
	adrp	x24, _MAX_INTERNAL_ITEMS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MAX_INTERNAL_ITEMS@GOTPAGEOFF]
	mov	w25, #1
Lloh2:
	adrp	x26, _MAX_TREE_LEVELS@GOTPAGE
Lloh3:
	ldr	x26, [x26, _MAX_TREE_LEVELS@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x23, #0
	cset	w0, gt
	bl	_Assert
	ldrsw	x8, [x21]
	cmp	x23, x8
	b.lt	LBB0_8
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x28, [x21, #16]
	ldr	w10, [x26]
	mov	x9, x28
	cmp	w8, w10
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh6:
	adrp	x8, _ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_elog
	ldr	w8, [x21]
	ldr	x9, [x21, #16]
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	w8, w8, #1
	str	w8, [x21]
	ldr	x8, [x9]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x28, #16]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x28]
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x27, [x8]
	mov	x0, x21
	bl	_intset_new_internal_node
	ldr	x8, [x0, #16]
	str	x27, [x8]
	ldr	x8, [x0, #8]
	str	x28, [x8]
	stp	w23, w25, [x0]
	str	x0, [x21, #16]
	ldr	x8, [x21, #8]
	str	x0, [x8, x23, lsl #3]
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x23, lsl #3]
	ldrsw	x9, [x8, #4]
	ldr	w10, [x24]
	cmp	w9, w10
	b.lt	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_intset_new_internal_node
	ldr	x8, [x0, #16]
	str	x19, [x8]
	ldr	x8, [x0, #8]
	str	x20, [x8]
	stp	w23, w25, [x0]
	ldr	x8, [x21, #8]
	str	x0, [x8, x23, lsl #3]
	add	x23, x23, #1
	mov	x20, x0
	b	LBB0_1
LBB0_10:
	ldr	x10, [x8, #16]
	lsl	x11, x9, #3
	str	x19, [x10, x11]
	ldr	x10, [x8, #8]
	str	x20, [x10, x11]
	add	w9, w9, #1
	str	w9, [x8, #4]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TREE_LEVELS,4,2            ; @MAX_TREE_LEVELS
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not expand integer set, maximum number of levels reached"

	.comm	_MAX_INTERNAL_ITEMS,4,2         ; @MAX_INTERNAL_ITEMS
	.no_dead_strip	_intset_update_upper
.subsections_via_symbols
