	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_maxfds
_get_maxfds:                            ## @get_maxfds
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_RLIMIT_NOFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-8(%rbp), %rsi
	callq	_getrlimit
	movq	%rax, %rcx
	movl	$512, %eax                      ## imm = 0x200
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.1:
	movl	-8(%rbp), %ecx
	movq	_RLIM_INFINITY@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_3
## %bb.2:
	movl	%ecx, %edi
	shrl	$31, %edi
	addl	%ecx, %edi
	sarl	%edi
	movl	$512, %esi                      ## imm = 0x200
	callq	_MIN
LBB0_3:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RLIMIT_NOFILE,4,2              ## @RLIMIT_NOFILE
	.comm	_RLIM_INFINITY,4,2              ## @RLIM_INFINITY
	.no_dead_strip	_get_maxfds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_maxfds
_get_maxfds:                            ; @get_maxfds
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x8, _RLIMIT_NOFILE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RLIMIT_NOFILE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_getrlimit
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [sp, #8]
Lloh3:
	adrp	x9, _RLIM_INFINITY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RLIM_INFINITY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #512
	b	LBB0_4
LBB0_3:
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	mov	w1, #512
	bl	_MIN
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RLIMIT_NOFILE,4,2              ; @RLIMIT_NOFILE
	.comm	_RLIM_INFINITY,4,2              ; @RLIM_INFINITY
	.no_dead_strip	_get_maxfds
.subsections_via_symbols
