	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function FreeDesc
_FreeDesc:                              ## @FreeDesc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_6
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movl	4(%rbx), %edi
	callq	_close
	jmp	LBB0_7
LBB0_6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_3:
	movl	12(%rbx), %edi
	callq	_pclose
	jmp	LBB0_7
LBB0_2:
	movl	12(%rbx), %edi
	callq	_fclose
	jmp	LBB0_7
LBB0_4:
	movl	8(%rbx), %edi
	callq	_closedir
LBB0_7:
	movq	_numAllocatedDescs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	decq	%rdx
	movq	%rdx, (%rcx)
	movq	_allocatedDescs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rdx
	movups	(%rcx,%rdx), %xmm0
	movups	%xmm0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AllocateDesc kind not recognized"

	.comm	_numAllocatedDescs,8,3          ## @numAllocatedDescs
	.comm	_allocatedDescs,8,3             ## @allocatedDescs
	.no_dead_strip	_FreeDesc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function FreeDesc
_FreeDesc:                              ; @FreeDesc
	.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
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w0, [x19, #4]
	bl	_close
	b	LBB0_7
LBB0_3:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	ldr	w0, [x19, #12]
	bl	_pclose
	b	LBB0_7
LBB0_5:
	ldr	w0, [x19, #12]
	bl	_fclose
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19, #8]
	bl	_closedir
LBB0_7:
Lloh7:
	adrp	x8, _numAllocatedDescs@GOTPAGE
Lloh8:
	ldr	x8, [x8, _numAllocatedDescs@GOTPAGEOFF]
	ldr	x9, [x8]
	sub	x9, x9, #1
Lloh9:
	adrp	x10, _allocatedDescs@GOTPAGE
Lloh10:
	ldr	x10, [x10, _allocatedDescs@GOTPAGEOFF]
	str	x9, [x8]
Lloh11:
	ldr	x8, [x10]
	ldr	q0, [x8, x9, lsl #4]
	str	q0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AllocateDesc kind not recognized"

	.comm	_numAllocatedDescs,8,3          ; @numAllocatedDescs
	.comm	_allocatedDescs,8,3             ; @allocatedDescs
	.no_dead_strip	_FreeDesc
.subsections_via_symbols
