	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CDVD_close                     ## -- Begin function CDVD_close
	.p2align	4, 0x90
_CDVD_close:                            ## @CDVD_close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_fd_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	cmpq	%rdi, (%rcx)
	je	LBB0_31
## %bb.1:
	cmpq	%rdi, 8(%rcx)
	je	LBB0_2
## %bb.3:
	cmpq	%rdi, 16(%rcx)
	je	LBB0_4
## %bb.5:
	cmpq	%rdi, 24(%rcx)
	je	LBB0_6
## %bb.7:
	cmpq	%rdi, 32(%rcx)
	je	LBB0_8
## %bb.9:
	cmpq	%rdi, 40(%rcx)
	je	LBB0_10
## %bb.11:
	cmpq	%rdi, 48(%rcx)
	je	LBB0_12
## %bb.13:
	cmpq	%rdi, 56(%rcx)
	je	LBB0_14
## %bb.15:
	cmpq	%rdi, 64(%rcx)
	je	LBB0_16
## %bb.17:
	cmpq	%rdi, 72(%rcx)
	je	LBB0_18
## %bb.19:
	cmpq	%rdi, 80(%rcx)
	je	LBB0_20
## %bb.21:
	cmpq	%rdi, 88(%rcx)
	je	LBB0_22
## %bb.23:
	cmpq	%rdi, 96(%rcx)
	je	LBB0_24
## %bb.25:
	cmpq	%rdi, 104(%rcx)
	je	LBB0_26
## %bb.27:
	cmpq	%rdi, 112(%rcx)
	je	LBB0_28
## %bb.29:
	movl	$-1, %eax
	cmpq	%rdi, 120(%rcx)
	jne	LBB0_32
## %bb.30:
	movl	$15, %eax
	jmp	LBB0_31
LBB0_2:
	movl	$1, %eax
	jmp	LBB0_31
LBB0_4:
	movl	$2, %eax
	jmp	LBB0_31
LBB0_6:
	movl	$3, %eax
	jmp	LBB0_31
LBB0_8:
	movl	$4, %eax
	jmp	LBB0_31
LBB0_10:
	movl	$5, %eax
	jmp	LBB0_31
LBB0_12:
	movl	$6, %eax
	jmp	LBB0_31
LBB0_14:
	movl	$7, %eax
	jmp	LBB0_31
LBB0_16:
	movl	$8, %eax
	jmp	LBB0_31
LBB0_18:
	movl	$9, %eax
	jmp	LBB0_31
LBB0_20:
	movl	$10, %eax
	jmp	LBB0_31
LBB0_22:
	movl	$11, %eax
	jmp	LBB0_31
LBB0_24:
	movl	$12, %eax
	jmp	LBB0_31
LBB0_26:
	movl	$13, %eax
	jmp	LBB0_31
LBB0_28:
	movl	$14, %eax
LBB0_31:
	movq	_fd_used@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, (%rcx,%rax,8)
	movq	_files_open@GOTPCREL(%rip), %rax
	decl	(%rax)
	xorl	%eax, %eax
LBB0_32:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fd_table,8,3                   ## @fd_table
	.comm	_fd_used,8,3                    ## @fd_used
	.comm	_files_open,4,2                 ## @files_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CDVD_close                     ; -- Begin function CDVD_close
	.p2align	2
_CDVD_close:                            ; @CDVD_close
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _fd_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fd_table@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x8]
	cmp	x9, x0
	b.eq	LBB0_17
; %bb.1:
	ldr	x9, [x8, #8]
	cmp	x9, x0
	b.eq	LBB0_18
; %bb.2:
	ldr	x9, [x8, #16]
	cmp	x9, x0
	b.eq	LBB0_19
; %bb.3:
	ldr	x9, [x8, #24]
	cmp	x9, x0
	b.eq	LBB0_20
; %bb.4:
	ldr	x9, [x8, #32]
	cmp	x9, x0
	b.eq	LBB0_21
; %bb.5:
	ldr	x9, [x8, #40]
	cmp	x9, x0
	b.eq	LBB0_22
; %bb.6:
	ldr	x9, [x8, #48]
	cmp	x9, x0
	b.eq	LBB0_23
; %bb.7:
	ldr	x9, [x8, #56]
	cmp	x9, x0
	b.eq	LBB0_24
; %bb.8:
	ldr	x9, [x8, #64]
	cmp	x9, x0
	b.eq	LBB0_25
; %bb.9:
	ldr	x9, [x8, #72]
	cmp	x9, x0
	b.eq	LBB0_26
; %bb.10:
	ldr	x9, [x8, #80]
	cmp	x9, x0
	b.eq	LBB0_27
; %bb.11:
	ldr	x9, [x8, #88]
	cmp	x9, x0
	b.eq	LBB0_28
; %bb.12:
	ldr	x9, [x8, #96]
	cmp	x9, x0
	b.eq	LBB0_29
; %bb.13:
	ldr	x9, [x8, #104]
	cmp	x9, x0
	b.eq	LBB0_30
; %bb.14:
	ldr	x9, [x8, #112]
	cmp	x9, x0
	b.eq	LBB0_31
; %bb.15:
	ldr	x8, [x8, #120]
	cmp	x8, x0
	b.eq	LBB0_32
; %bb.16:
	mov	w0, #-1
	ret
LBB0_17:
	mov	x8, #0
	b	LBB0_33
LBB0_18:
	mov	w8, #1
	b	LBB0_33
LBB0_19:
	mov	w8, #2
	b	LBB0_33
LBB0_20:
	mov	w8, #3
	b	LBB0_33
LBB0_21:
	mov	w8, #4
	b	LBB0_33
LBB0_22:
	mov	w8, #5
	b	LBB0_33
LBB0_23:
	mov	w8, #6
	b	LBB0_33
LBB0_24:
	mov	w8, #7
	b	LBB0_33
LBB0_25:
	mov	w8, #8
	b	LBB0_33
LBB0_26:
	mov	w8, #9
	b	LBB0_33
LBB0_27:
	mov	w8, #10
	b	LBB0_33
LBB0_28:
	mov	w8, #11
	b	LBB0_33
LBB0_29:
	mov	w8, #12
	b	LBB0_33
LBB0_30:
	mov	w8, #13
	b	LBB0_33
LBB0_31:
	mov	w8, #14
	b	LBB0_33
LBB0_32:
	mov	w8, #15
LBB0_33:
	mov	w0, #0
Lloh3:
	adrp	x9, _fd_used@GOTPAGE
Lloh4:
	ldr	x9, [x9, _fd_used@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	str	xzr, [x9, x8, lsl #3]
Lloh6:
	adrp	x8, _files_open@GOTPAGE
Lloh7:
	ldr	x8, [x8, _files_open@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_fd_table,8,3                   ; @fd_table
	.comm	_fd_used,8,3                    ; @fd_used
	.comm	_files_open,4,2                 ; @files_open
.subsections_via_symbols
