	.file	"extr_regcomp.c_allocset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	allocset, @function
allocset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rcx, QWORD PTR 8[rdi]
	mov	r13d, DWORD PTR [rdi]
	mov	ebx, DWORD PTR 20[rcx]
	movsx	r14, DWORD PTR 16[rcx]
	lea	eax, 1[rbx]
	mov	DWORD PTR 20[rcx], eax
	cmp	ebx, r13d
	jl	.L2
	mov	rsi, QWORD PTR CHAR_BIT[rip]
	movsx	rdx, DWORD PTR SIZE_MAX[rip]
	add	r13d, esi
	mov	rax, rdx
	mov	DWORD PTR [rdi], r13d
	movsx	r13, r13d
	movabs	rdi, -3689348814741910323
	mul	rdi
	shr	rdx, 5
	cmp	rdx, r13
	jb	.L3
	xor	edx, edx
	mov	rax, r13
	xor	edi, edi
	div	rsi
	test	rdx, rdx
	sete	dil
	call	assert@PLT
	xor	edx, edx
	mov	rax, r13
	lea	rsi, 0[r13+r13*4]
	div	QWORD PTR CHAR_BIT[rip]
	sal	rsi, 3
	imul	rax, r14
	mov	rbp, rax
	mov	rax, QWORD PTR 8[r12]
	mov	rdi, QWORD PTR 8[rax]
	call	realloc@PLT
	test	rax, rax
	je	.L20
	mov	rdx, QWORD PTR 8[r12]
	mov	rsi, rbp
	mov	QWORD PTR 8[rdx], rax
	mov	rdi, QWORD PTR [rdx]
	call	realloc@PLT
	mov	r9, rax
	mov	rax, QWORD PTR 8[r12]
	test	r9, r9
	je	.L21
	mov	QWORD PTR [rax], r9
	test	ebx, ebx
	jle	.L9
	mov	rcx, QWORD PTR 8[rax]
	mov	r8, QWORD PTR CHAR_BIT[rip]
	lea	edi, -1[rbx]
	xor	esi, esi
	add	rcx, 32
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, rsi
	xor	edx, edx
	add	rcx, 40
	div	r8
	imul	rax, r14
	lea	rax, [rax+rax*4]
	lea	rax, [r9+rax*8]
	mov	QWORD PTR -40[rcx], rax
	mov	rax, rsi
	add	rsi, 1
	cmp	rax, rdi
	jne	.L8
.L9:
	sub	rbp, r14
	mov	rdx, r14
	xor	esi, esi
	lea	rdi, [r9+rbp]
	call	memset@PLT
	mov	rcx, QWORD PTR 8[r12]
.L2:
	mov	rdi, QWORD PTR 8[rcx]
	test	rdi, rdi
	je	.L5
	mov	rsi, QWORD PTR [rcx]
	test	rsi, rsi
	je	.L5
	movsx	rax, ebx
	lea	rdx, [rax+rax*4]
	lea	r8, [rdi+rdx*8]
	xor	edx, edx
	div	QWORD PTR CHAR_BIT[rip]
	mov	QWORD PTR 24[r8], 0
	mov	QWORD PTR 16[r8], 0
	mov	QWORD PTR 8[r8], 0
	imul	rax, r14
	mov	ecx, edx
	lea	rax, [rax+rax*4]
	lea	rax, [rsi+rax*8]
	mov	QWORD PTR 32[r8], rax
	mov	eax, 1
	sal	eax, cl
	mov	DWORD PTR [r8], eax
	mov	rax, r8
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[r12]
	mov	rdi, QWORD PTR 8[rax]
.L5:
	call	free@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	QWORD PTR 8[rax], 0
	mov	rdi, QWORD PTR [rax]
	call	free@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	edi, DWORD PTR REG_ESPACE[rip]
	mov	QWORD PTR [rax], 0
	call	SETERROR@PLT
	xor	r8d, r8d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rax, r8
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rcx]
	jmp	.L5
.L21:
	mov	rdi, QWORD PTR 8[rax]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	allocset, .-allocset
	.comm	SIZE_MAX,4,4
	.comm	REG_ESPACE,4,4
	.comm	CHAR_BIT,8,8
	.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_regcomp.c_allocset.c"
	.text
	.global	__aeabi_uidivmod
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	allocset, %function
allocset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0, #4]
	ldr	r4, [r0]
	ldr	r5, [r3, #12]
	mov	r6, r0
	add	r2, r5, #1
	cmp	r5, r4
	ldr	r7, [r3, #8]
	str	r2, [r3, #12]
	blt	.L2
	ldr	r2, .L20
	ldr	r1, .L20+4
	ldr	r2, [r2]
	ldr	r10, .L20+8
	umull	r0, r2, r1, r2
	ldr	r1, [r10]
	add	r4, r4, r1
	cmp	r4, r2, lsr #4
	str	r4, [r6]
	bhi	.L3
	mov	r0, r4
	bl	__aeabi_uidivmod
	clz	r0, r1
	lsr	r0, r0, #5
	bl	assert
	ldr	r1, [r10]
	mov	r0, r4
	bl	__aeabi_uidiv
	ldr	r3, [r6, #4]
	add	r4, r4, r4, lsl #2
	mov	r9, r0
	lsl	r1, r4, #2
	ldr	r0, [r3, #4]
	bl	realloc
	cmp	r0, #0
	mul	r9, r7, r9
	ldr	r3, [r6, #4]
	beq	.L3
	str	r0, [r3, #4]
	mov	r1, r9
	ldr	r0, [r3]
	bl	realloc
	subs	r8, r0, #0
	ldr	r3, [r6, #4]
	beq	.L3
	cmp	r5, #0
	str	r8, [r3]
	ble	.L9
	mov	r4, #0
	ldr	r10, [r10]
	ldr	fp, [r3, #4]
.L8:
	mov	r0, r4
	mov	r1, r10
	bl	__aeabi_uidiv
	mul	r3, r7, r0
	add	r4, r4, #1
	add	r3, r3, r3, lsl #2
	add	r3, r8, r3, lsl #2
	cmp	r5, r4
	str	r3, [fp, #16]
	add	fp, fp, #20
	bne	.L8
.L9:
	sub	r0, r9, r7
	mov	r2, r7
	mov	r1, #0
	add	r0, r8, r0
	bl	memset
	ldr	r3, [r6, #4]
.L2:
	ldr	r8, [r3, #4]
	cmp	r8, #0
	beq	.L5
	ldr	r9, [r3]
	cmp	r9, #0
	beq	.L5
	ldr	r3, .L20+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	__aeabi_uidivmod
	mov	r2, #1
	mov	r3, #0
	mul	r7, r0, r7
	add	r4, r5, r5, lsl #2
	add	r7, r7, r7, lsl #2
	lsl	r5, r4, #2
	add	r7, r9, r7, lsl #2
	add	r4, r8, r4, lsl #2
	lsl	r2, r2, r1
	str	r7, [r4, #16]
	mov	r0, r4
	str	r2, [r8, r5]
	str	r3, [r4, #12]
	str	r3, [r4, #8]
	str	r3, [r4, #4]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r8, [r3, #4]
.L5:
	mov	r5, #0
	mov	r4, r5
	mov	r0, r8
	bl	free
	ldr	r3, [r6, #4]
	str	r5, [r3, #4]
	ldr	r0, [r3]
	bl	free
	ldr	r2, [r6, #4]
	ldr	r3, .L20+12
	str	r5, [r2]
	ldr	r0, [r3]
	bl	SETERROR
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	.align	2
.L20:
	.word	SIZE_MAX
	.word	-858993459
	.word	CHAR_BIT
	.word	REG_ESPACE
	.size	allocset, .-allocset
	.comm	SIZE_MAX,4,4
	.comm	REG_ESPACE,4,4
	.comm	CHAR_BIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
