	.file	"extr_integerset.c_intset_update_upper.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"could not expand integer set, maximum number of levels reached"
	.text
	.p2align 4
	.type	intset_update_upper, @function
intset_update_upper:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movsx	rbp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rbp
	sal	rbp, 3
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rax, QWORD PTR 8[r15]
	lea	r13, 8[rbp]
	mov	rax, QWORD PTR [rax+rbp]
	mov	edx, DWORD PTR 4[rax]
	cmp	DWORD PTR MAX_INTERNAL_ITEMS[rip], edx
	jg	.L13
.L7:
	mov	rdi, r15
	call	intset_new_internal_node@PLT
	mov	rdx, QWORD PTR 16[rax]
	mov	DWORD PTR [rax], ebx
	add	ebx, 1
	mov	QWORD PTR [rdx], r14
	mov	rdx, QWORD PTR 8[rax]
	mov	QWORD PTR [rdx], r12
	mov	rdx, QWORD PTR 8[r15]
	mov	r12, rax
	mov	DWORD PTR 4[rax], 1
	mov	QWORD PTR [rdx+rbp], rax
	mov	rbp, r13
.L8:
	xor	edi, edi
	test	ebx, ebx
	setg	dil
	call	Assert@PLT
	mov	eax, DWORD PTR [r15]
	cmp	eax, ebx
	jg	.L14
	mov	r13, QWORD PTR 16[r15]
	cmp	eax, DWORD PTR MAX_TREE_LEVELS[rip]
	mov	rdx, r13
	je	.L15
.L4:
	add	eax, 1
	cmp	QWORD PTR [rdx], 0
	mov	DWORD PTR [r15], eax
	jne	.L5
	mov	rax, QWORD PTR 0[r13]
	mov	rcx, QWORD PTR [rax]
.L6:
	mov	rdi, r15
	mov	QWORD PTR 8[rsp], rcx
	call	intset_new_internal_node@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	rdx, QWORD PTR 16[rax]
	mov	DWORD PTR [rax], ebx
	mov	QWORD PTR [rdx], rcx
	mov	rdx, QWORD PTR 8[rax]
	mov	QWORD PTR [rdx], r13
	mov	rdx, QWORD PTR 8[r15]
	lea	r13, 8[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	QWORD PTR 16[r15], rax
	mov	QWORD PTR [rdx+rbp], rax
	mov	edx, 1
	cmp	DWORD PTR MAX_INTERNAL_ITEMS[rip], edx
	jle	.L7
.L13:
	mov	rsi, QWORD PTR 16[rax]
	movsx	rcx, edx
	add	edx, 1
	mov	QWORD PTR [rsi+rcx*8], r14
	mov	rsi, QWORD PTR 8[rax]
	mov	QWORD PTR [rsi+rcx*8], r12
	mov	DWORD PTR 4[rax], edx
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[r13]
	mov	rcx, QWORD PTR [rax]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR ERROR[rip]
	lea	rsi, .LC0[rip]
	call	elog@PLT
	mov	eax, DWORD PTR [r15]
	mov	rdx, QWORD PTR 16[r15]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	intset_update_upper, .-intset_update_upper
	.comm	MAX_TREE_LEVELS,4,4
	.comm	MAX_INTERNAL_ITEMS,4,4
	.comm	ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_integerset.c_intset_update_upper.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"could not expand integer set, maximum number of lev"
	.ascii	"els reached\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intset_update_upper, %function
intset_update_upper:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	r4, r1
	mov	r7, r2
	mov	r8, r3
	ldr	r9, .L16
	ldr	r10, .L16+4
	sub	sp, sp, #12
	b	.L8
.L14:
	ldr	r3, [r5, #4]
	ldr	r0, [r3, r4, lsl #2]
	ldr	r3, [r9]
	ldr	r1, [r0, #4]
	cmp	r3, r1
	bgt	.L13
.L7:
	mov	r0, r5
	bl	intset_new_internal_node
	ldr	r3, [r0, #12]
	str	r4, [r0]
	str	r8, [r3]
	ldr	r1, [r0, #8]
	mov	r2, #1
	ldr	r3, [r5, #4]
	str	r7, [r1]
	mov	r7, r0
	str	r2, [r0, #4]
	add	r4, r4, r2
	str	r0, [r3, r6]
.L8:
	cmp	r4, #0
	movle	r0, #0
	movgt	r0, #1
	bl	Assert
	ldr	r3, [r5]
	lsl	r6, r4, #2
	cmp	r3, r4
	bgt	.L14
	ldr	r2, [r10]
	ldr	fp, [r5, #8]
	cmp	r3, r2
	movne	r2, fp
	beq	.L15
.L4:
	ldr	r2, [r2]
	add	r3, r3, #1
	cmp	r2, #0
	str	r3, [r5]
	ldreq	r3, [fp]
	ldrne	r3, [fp, #12]
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [sp, #4]
	bl	intset_new_internal_node
	mov	r2, #1
	mov	r1, r2
	ldr	ip, [r0, #12]
	ldr	r3, [sp, #4]
	str	r4, [r0]
	str	r3, [ip]
	ldr	r3, [r5, #4]
	ldr	ip, [r0, #8]
	str	fp, [ip]
	str	r2, [r0, #4]
	str	r0, [r5, #8]
	str	r0, [r3, r6]
	ldr	r3, [r9]
	cmp	r3, r1
	ble	.L7
.L13:
	ldr	r2, [r0, #12]
	add	r3, r1, #1
	str	r8, [r2, r1, lsl #2]
	ldr	r2, [r0, #8]
	str	r7, [r2, r1, lsl #2]
	str	r3, [r0, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r3, .L16+8
	ldr	r1, .L16+12
	ldr	r0, [r3]
	bl	elog
	ldr	r3, [r5]
	ldr	r2, [r5, #8]
	b	.L4
.L17:
	.align	2
.L16:
	.word	MAX_INTERNAL_ITEMS
	.word	MAX_TREE_LEVELS
	.word	ERROR
	.word	.LC0
	.size	intset_update_upper, .-intset_update_upper
	.comm	MAX_TREE_LEVELS,4,4
	.comm	MAX_INTERNAL_ITEMS,4,4
	.comm	ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
