	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ArcClose                       ## -- Begin function ArcClose
	.p2align	4, 0x90
_ArcClose:                              ## @ArcClose
	.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
	movq	_MAX_FDS@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jbe	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_FileData@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	leaq	(%rdi,%rdi,2), %rcx
	movq	16(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	_ESUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	(%r14), %rcx
	shlq	$3, %rbx
	leaq	(%rbx,%rbx,2), %rdx
	movq	$0, 16(%rcx,%rdx)
	movq	(%r14), %rcx
	movq	$0, 8(%rcx,%rdx)
	movq	(%r14), %rcx
	movl	$-1, (%rcx,%rdx)
	jmp	LBB0_5
LBB0_2:
	movq	_EBADF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_FDS,8,3                    ## @MAX_FDS
	.comm	_FileData,8,3                   ## @FileData
	.comm	_EBADF,8,3                      ## @EBADF
	.comm	_ESUCCESS,8,3                   ## @ESUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ArcClose                       ; -- Begin function ArcClose
	.p2align	2
_ArcClose:                              ; @ArcClose
	.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
Lloh0:
	adrp	x8, _MAX_FDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_FDS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ls	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x20, _FileData@GOTPAGE
Lloh4:
	ldr	x20, [x20, _FileData@GOTPAGEOFF]
	ldr	x8, [x20]
	mov	w9, #24
	madd	x8, x0, x9, x8
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
Lloh5:
	adrp	x8, _ESUCCESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ESUCCESS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x20]
	add	x9, x19, x19, lsl #1
	lsl	x9, x9, #3
	add	x8, x8, x9
	str	xzr, [x8, #16]
	ldr	x8, [x20]
	add	x8, x8, x9
	str	xzr, [x8, #8]
	ldr	x8, [x20]
	mov	w10, #-1
	str	w10, [x8, x9]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _EBADF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_FDS,8,3                    ; @MAX_FDS
	.comm	_FileData,8,3                   ; @FileData
	.comm	_EBADF,8,3                      ; @EBADF
	.comm	_ESUCCESS,8,3                   ; @ESUCCESS
.subsections_via_symbols
