	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdtable_expand
_fdtable_expand:                        ## @fdtable_expand
	.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	%esi, %ebx
	movq	%rdi, %r14
	incl	%ebx
	movq	_RLIMIT_NOFILE_@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rlimit
	cmpl	%eax, %ebx
	jbe	LBB0_2
## %bb.1:
	movq	__EMFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	cmpl	%ebx, (%r14)
	jae	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fdtable_resize                 ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RLIMIT_NOFILE_,4,2             ## @RLIMIT_NOFILE_
	.comm	__EMFILE,4,2                    ## @_EMFILE
	.no_dead_strip	_fdtable_expand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdtable_expand
_fdtable_expand:                        ; @fdtable_expand
	.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	x19, x0
	add	w20, w1, #1
Lloh0:
	adrp	x8, _RLIMIT_NOFILE_@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RLIMIT_NOFILE_@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_rlimit
	cmp	w20, w0
	b.ls	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, __EMFILE@GOTPAGE
Lloh4:
	ldr	x8, [x8, __EMFILE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_2:
	ldr	w8, [x19]
	cmp	w8, w20
	b.hs	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fdtable_resize
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RLIMIT_NOFILE_,4,2             ; @RLIMIT_NOFILE_
	.comm	__EMFILE,4,2                    ; @_EMFILE
	.no_dead_strip	_fdtable_expand
.subsections_via_symbols
