	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_f_prealloc                     ## -- Begin function f_prealloc
	.p2align	4, 0x90
_f_prealloc:                            ## @f_prealloc
	.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
	xorl	%eax, %eax
	callq	_getdtablesize
                                        ## kill: def $eax killed $eax def $rax
	movq	_FOPEN_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	negl	%ecx
	leal	(%rax,%rcx), %edi
	addl	$20, %edi
	movq	___sglue@GOTPCREL(%rip), %rax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	subl	8(%rax), %edi
	testl	%edi, %edi
	jle	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	callq	_moreglue
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_STDIO_THREAD_LOCK
	movq	_lastglue@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	_SET_GLUE_PTR
	movq	%rbx, (%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_STDIO_THREAD_UNLOCK            ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FOPEN_MAX,4,2                  ## @FOPEN_MAX
	.comm	___sglue,16,3                   ## @__sglue
	.comm	_lastglue,8,3                   ## @lastglue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_f_prealloc                     ; -- Begin function f_prealloc
	.p2align	2
_f_prealloc:                            ; @f_prealloc
	.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
	bl	_getdtablesize
Lloh0:
	adrp	x8, _FOPEN_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FOPEN_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w0, w8
	add	w0, w8, #20
Lloh3:
	adrp	x8, ___sglue@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___sglue@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8, #8]
	sub	w0, w0, w9
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x8]
	cbnz	x8, LBB0_1
; %bb.3:
	bl	_moreglue
	cbz	x0, LBB0_5
; %bb.4:
	mov	x19, x0
	bl	_STDIO_THREAD_LOCK
Lloh5:
	adrp	x20, _lastglue@GOTPAGE
Lloh6:
	ldr	x20, [x20, _lastglue@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x0, [x8]
	mov	x1, x19
	bl	_SET_GLUE_PTR
	str	x19, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_STDIO_THREAD_UNLOCK
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FOPEN_MAX,4,2                  ; @FOPEN_MAX
	.comm	___sglue,16,3                   ; @__sglue
	.comm	_lastglue,8,3                   ; @lastglue
.subsections_via_symbols
