	.file	"extr_fd.c_fdtable_resize.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fdtable_resize, @function
fdtable_resize:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	lea	r13d, 0[0+rbp*8]
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	DWORD PTR [rdi], esi
	setb	dil
	movzx	edi, dil
	call	assert@PLT
	mov	edi, r13d
	call	malloc@PLT
	test	rax, rax
	je	.L11
	xor	esi, esi
	mov	edx, r13d
	mov	rdi, rax
	mov	r12, rax
	call	memset@PLT
	mov	rsi, QWORD PTR 16[rbx]
	test	rsi, rsi
	je	.L4
	mov	eax, DWORD PTR [rbx]
	mov	rdi, r12
	lea	edx, 0[0+rax*8]
	call	memcpy@PLT
.L4:
	mov	edi, ebp
	call	BITS_SIZE@PLT
	mov	edi, eax
	call	malloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L13
	mov	edi, ebp
	call	BITS_SIZE@PLT
	xor	esi, esi
	mov	rdi, r13
	mov	edx, eax
	call	memset@PLT
	cmp	QWORD PTR 8[rbx], 0
	je	.L6
	mov	edi, DWORD PTR [rbx]
	call	BITS_SIZE@PLT
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, r13
	mov	edx, eax
	call	memcpy@PLT
.L6:
	mov	rdi, QWORD PTR 16[rbx]
	call	free@PLT
	mov	QWORD PTR 16[rbx], r12
	mov	rdi, QWORD PTR 8[rbx]
	call	free@PLT
	mov	QWORD PTR 8[rbx], r13
	xor	eax, eax
	mov	DWORD PTR [rbx], ebp
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, r12
	call	free@PLT
.L11:
	mov	eax, DWORD PTR _ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	fdtable_resize, .-fdtable_resize
	.comm	_ENOMEM,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_fd.c_fdtable_resize.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fdtable_resize, %function
fdtable_resize:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, [r0]
	lsl	r6, r1, #2
	cmp	r0, r1
	movcs	r0, #0
	movcc	r0, #1
	mov	r5, r1
	bl	assert
	mov	r0, r6
	bl	malloc
	subs	r7, r0, #0
	beq	.L14
	mov	r1, #0
	mov	r2, r6
	bl	memset
	ldr	r1, [r4, #8]
	cmp	r1, #0
	beq	.L4
	ldr	r2, [r4]
	mov	r0, r7
	lsl	r2, r2, #2
	bl	memcpy
.L4:
	mov	r0, r5
	bl	BITS_SIZE
	bl	malloc
	subs	r6, r0, #0
	beq	.L16
	mov	r0, r5
	bl	BITS_SIZE
	mov	r1, #0
	mov	r2, r0
	mov	r0, r6
	bl	memset
	ldr	r8, [r4, #4]
	cmp	r8, #0
	beq	.L6
	ldr	r0, [r4]
	bl	BITS_SIZE
	mov	r1, r8
	mov	r2, r0
	mov	r0, r6
	bl	memcpy
.L6:
	ldr	r0, [r4, #8]
	bl	free
	ldr	r0, [r4, #4]
	str	r7, [r4, #8]
	bl	free
	mov	r0, #0
	stm	r4, {r5, r6}
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	mov	r0, r7
	bl	free
.L14:
	ldr	r3, .L17
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	.align	2
.L17:
	.word	_ENOMEM
	.size	fdtable_resize, .-fdtable_resize
	.comm	_ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
