	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdtable_new                    ## -- Begin function fdtable_new
	.p2align	4, 0x90
_fdtable_new:                           ## @fdtable_new
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movl	$32, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	$1, (%rax)
	movq	%rax, %rdi
	addq	$4, %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movq	$0, 24(%rax)
	callq	_lock_init
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_fdtable_resize
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	__ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_4
LBB0_3:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_free
LBB0_4:
	movl	%r14d, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__ENOMEM,4,2                    ## @_ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdtable_new                    ; -- Begin function fdtable_new
	.p2align	2
_fdtable_new:                           ; @fdtable_new
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	mov	w0, #32
	bl	_malloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	w8, #1
	str	w8, [x0], #4
	stp	xzr, xzr, [x19, #16]
	str	xzr, [x19, #8]
	bl	_lock_init
	mov	x0, x19
	mov	x1, x20
	bl	_fdtable_resize
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh0:
	adrp	x8, __ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, __ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	b	LBB0_5
LBB0_4:
	mov	x20, x0
	mov	x0, x19
	bl	_free
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	__ENOMEM,4,2                    ; @_ENOMEM
.subsections_via_symbols
