	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __dupDescriptor
___dupDescriptor:                       ## @__dupDescriptor
	.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, %r14d
	movl	%edi, %ebx
	movq	__SC_OPEN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
                                        ## kill: def $eax killed $eax def $rax
	subl	%ebx, %eax
	addl	$2, %eax
	movl	$2004, %esi                     ## imm = 0x7D4
	subl	%ebx, %esi
	cmpl	$2, %eax
	cmovgel	%eax, %esi
	movq	_backup_fd@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	movl	%r14d, %edi
	callq	_dup2
	xorl	%ecx, %ecx
	cmpl	$-1, %eax
	setne	%cl
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__SC_OPEN_MAX,4,2               ## @_SC_OPEN_MAX
	.comm	_backup_fd,4,2                  ## @backup_fd
	.no_dead_strip	___dupDescriptor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __dupDescriptor
___dupDescriptor:                       ; @__dupDescriptor
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, __SC_OPEN_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, __SC_OPEN_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_sysconf
	sub	w8, w0, w20
	add	w8, w8, #2
	mov	w9, #2004
	sub	w9, w9, w20
	cmp	w8, #2
	csel	w1, w9, w8, lt
Lloh3:
	adrp	x8, _backup_fd@GOTPAGE
Lloh4:
	ldr	x8, [x8, _backup_fd@GOTPAGEOFF]
Lloh5:
	str	w1, [x8]
	mov	x0, x19
	bl	_dup2
	cmn	w0, #1
	cset	w0, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	__SC_OPEN_MAX,4,2               ; @_SC_OPEN_MAX
	.comm	_backup_fd,4,2                  ; @backup_fd
	.no_dead_strip	___dupDescriptor
.subsections_via_symbols
