	.file	"extr_fd.c_fdtable_new.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	fdtable_new
	.type	fdtable_new, @function
fdtable_new:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	mov	edi, 32
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	malloc@PLT
	test	rax, rax
	je	.L6
	mov	DWORD PTR [rax], 1
	mov	r12, rax
	lea	rdi, 4[rax]
	mov	QWORD PTR 24[rax], 0
	mov	QWORD PTR 16[rax], 0
	mov	QWORD PTR 8[rax], 0
	call	lock_init@PLT
	mov	esi, ebp
	mov	rdi, r12
	call	fdtable_resize@PLT
	mov	ebp, eax
	test	eax, eax
	js	.L7
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR _ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	ERR_PTR@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, r12
	call	free@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	edi, ebp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	ERR_PTR@PLT
	.cfi_endproc
.LFE0:
	.size	fdtable_new, .-fdtable_new
	.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_new.c"
	.text
	.align	2
	.global	fdtable_new
	.syntax unified
	.arm
	.fpu softvfp
	.type	fdtable_new, %function
fdtable_new:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r0, #20
	bl	malloc
	subs	r4, r0, #0
	beq	.L6
	mov	r3, #0
	mov	r2, #1
	str	r3, [r4, #16]
	str	r2, [r4]
	str	r3, [r4, #12]
	str	r3, [r4, #8]
	add	r0, r4, #4
	bl	lock_init
	mov	r1, r5
	mov	r0, r4
	bl	fdtable_resize
	subs	r5, r0, #0
	mov	r0, r4
	popge	{r4, r5, r6, pc}
	bl	free
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	ERR_PTR
.L6:
	ldr	r3, .L7
	pop	{r4, r5, r6, lr}
	ldr	r0, [r3]
	b	ERR_PTR
.L8:
	.align	2
.L7:
	.word	_ENOMEM
	.size	fdtable_new, .-fdtable_new
	.comm	_ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
