	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CDVD_lseek                     ## -- Begin function CDVD_lseek
	.p2align	4, 0x90
_CDVD_lseek:                            ## @CDVD_lseek
	.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
	cmpq	%rdi, 8(%rcx)
	je	LBB0_1
## %bb.2:
	cmpq	%rdi, 24(%rcx)
	je	LBB0_3
## %bb.4:
	cmpq	%rdi, 40(%rcx)
	je	LBB0_5
## %bb.6:
	cmpq	%rdi, 56(%rcx)
	je	LBB0_7
## %bb.8:
	cmpq	%rdi, 72(%rcx)
	je	LBB0_9
## %bb.10:
	cmpq	%rdi, 88(%rcx)
	je	LBB0_11
## %bb.12:
	cmpq	%rdi, 104(%rcx)
	je	LBB0_13
## %bb.14:
	cmpq	%rdi, 120(%rcx)
	je	LBB0_15
## %bb.16:
	cmpq	%rdi, 136(%rcx)
	je	LBB0_17
## %bb.18:
	cmpq	%rdi, 152(%rcx)
	je	LBB0_19
## %bb.20:
	cmpq	%rdi, 168(%rcx)
	je	LBB0_21
## %bb.22:
	cmpq	%rdi, 184(%rcx)
	je	LBB0_23
## %bb.24:
	cmpq	%rdi, 200(%rcx)
	je	LBB0_25
## %bb.26:
	cmpq	%rdi, 216(%rcx)
	je	LBB0_27
## %bb.28:
	cmpq	%rdi, 232(%rcx)
	je	LBB0_29
## %bb.30:
	movl	$-1, %eax
	cmpq	%rdi, 248(%rcx)
	jne	LBB0_42
## %bb.31:
	movl	$15, %edi
	jmp	LBB0_32
LBB0_1:
	xorl	%edi, %edi
	jmp	LBB0_32
LBB0_3:
	movl	$1, %edi
	jmp	LBB0_32
LBB0_5:
	movl	$2, %edi
	jmp	LBB0_32
LBB0_7:
	movl	$3, %edi
	jmp	LBB0_32
LBB0_9:
	movl	$4, %edi
	jmp	LBB0_32
LBB0_11:
	movl	$5, %edi
	jmp	LBB0_32
LBB0_13:
	movl	$6, %edi
	jmp	LBB0_32
LBB0_15:
	movl	$7, %edi
	jmp	LBB0_32
LBB0_17:
	movl	$8, %edi
	jmp	LBB0_32
LBB0_19:
	movl	$9, %edi
	jmp	LBB0_32
LBB0_21:
	movl	$10, %edi
	jmp	LBB0_32
LBB0_23:
	movl	$11, %edi
	jmp	LBB0_32
LBB0_25:
	movl	$12, %edi
	jmp	LBB0_32
LBB0_27:
	movl	$13, %edi
	jmp	LBB0_32
LBB0_29:
	movl	$14, %edi
LBB0_32:
	cmpl	$130, %edx
	je	LBB0_36
## %bb.33:
	cmpl	$129, %edx
	je	LBB0_37
## %bb.34:
	movl	$-1, %eax
	cmpl	$128, %edx
	jne	LBB0_42
## %bb.35:
	movq	%rdi, %rax
	shlq	$4, %rax
	jmp	LBB0_38
LBB0_36:
	movq	%rdi, %rax
	shlq	$4, %rax
	addl	(%rcx,%rax), %esi
	jmp	LBB0_38
LBB0_37:
	movq	%rdi, %rax
	shlq	$4, %rax
	addl	4(%rcx,%rax), %esi
LBB0_38:
	movl	%esi, (%rcx,%rax)
	shlq	$4, %rdi
	leaq	(%rcx,%rdi), %rdx
	testl	%esi, %esi
	jns	LBB0_40
## %bb.39:
	movl	$0, (%rdx)
	xorl	%esi, %esi
LBB0_40:
	movl	4(%rcx,%rdi), %ecx
	movl	%esi, %eax
	cmpl	%ecx, %esi
	jle	LBB0_42
## %bb.41:
	movl	%ecx, (%rdx)
	movl	%ecx, %eax
LBB0_42:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fd_table,8,3                   ## @fd_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CDVD_lseek                     ; -- Begin function CDVD_lseek
	.p2align	2
_CDVD_lseek:                            ; @CDVD_lseek
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _fd_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fd_table@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	cmp	x9, x0
	b.eq	LBB0_17
; %bb.1:
	ldr	x9, [x8, #24]
	cmp	x9, x0
	b.eq	LBB0_18
; %bb.2:
	ldr	x9, [x8, #40]
	cmp	x9, x0
	b.eq	LBB0_19
; %bb.3:
	ldr	x9, [x8, #56]
	cmp	x9, x0
	b.eq	LBB0_20
; %bb.4:
	ldr	x9, [x8, #72]
	cmp	x9, x0
	b.eq	LBB0_21
; %bb.5:
	ldr	x9, [x8, #88]
	cmp	x9, x0
	b.eq	LBB0_22
; %bb.6:
	ldr	x9, [x8, #104]
	cmp	x9, x0
	b.eq	LBB0_23
; %bb.7:
	ldr	x9, [x8, #120]
	cmp	x9, x0
	b.eq	LBB0_24
; %bb.8:
	ldr	x9, [x8, #136]
	cmp	x9, x0
	b.eq	LBB0_25
; %bb.9:
	ldr	x9, [x8, #152]
	cmp	x9, x0
	b.eq	LBB0_26
; %bb.10:
	ldr	x9, [x8, #168]
	cmp	x9, x0
	b.eq	LBB0_27
; %bb.11:
	ldr	x9, [x8, #184]
	cmp	x9, x0
	b.eq	LBB0_28
; %bb.12:
	ldr	x9, [x8, #200]
	cmp	x9, x0
	b.eq	LBB0_29
; %bb.13:
	ldr	x9, [x8, #216]
	cmp	x9, x0
	b.eq	LBB0_30
; %bb.14:
	ldr	x9, [x8, #232]
	cmp	x9, x0
	b.eq	LBB0_31
; %bb.15:
	ldr	x9, [x8, #248]
	cmp	x9, x0
	b.ne	LBB0_36
; %bb.16:
	mov	w9, #15
	b	LBB0_32
LBB0_17:
	mov	x9, #0
	b	LBB0_32
LBB0_18:
	mov	w9, #1
	b	LBB0_32
LBB0_19:
	mov	w9, #2
	b	LBB0_32
LBB0_20:
	mov	w9, #3
	b	LBB0_32
LBB0_21:
	mov	w9, #4
	b	LBB0_32
LBB0_22:
	mov	w9, #5
	b	LBB0_32
LBB0_23:
	mov	w9, #6
	b	LBB0_32
LBB0_24:
	mov	w9, #7
	b	LBB0_32
LBB0_25:
	mov	w9, #8
	b	LBB0_32
LBB0_26:
	mov	w9, #9
	b	LBB0_32
LBB0_27:
	mov	w9, #10
	b	LBB0_32
LBB0_28:
	mov	w9, #11
	b	LBB0_32
LBB0_29:
	mov	w9, #12
	b	LBB0_32
LBB0_30:
	mov	w9, #13
	b	LBB0_32
LBB0_31:
	mov	w9, #14
LBB0_32:
	cmp	w2, #130
	b.eq	LBB0_37
; %bb.33:
	cmp	w2, #129
	b.eq	LBB0_43
; %bb.34:
	cmp	w2, #128
	b.ne	LBB0_36
; %bb.35:
	lsl	x10, x9, #4
	b	LBB0_38
LBB0_36:
	mov	w0, #-1
	ret
LBB0_37:
	lsl	x10, x9, #4
	ldr	w11, [x8, x10]
	add	w1, w11, w1
LBB0_38:
	str	w1, [x8, x10]
	add	x8, x8, x9, lsl #4
	tbz	w1, #31, LBB0_40
LBB0_39:
	mov	w1, #0
	str	wzr, [x8]
LBB0_40:
	ldr	w9, [x8, #4]
	cmp	w1, w9
	b.le	LBB0_42
; %bb.41:
	str	w9, [x8]
	mov	x1, x9
LBB0_42:
	mov	x0, x1
	ret
LBB0_43:
	add	x10, x8, x9, lsl #4
	ldr	w11, [x10, #4]
	add	w1, w11, w1
	str	w1, [x10]
	add	x8, x8, x9, lsl #4
	tbz	w1, #31, LBB0_40
	b	LBB0_39
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_fd_table,8,3                   ; @fd_table
.subsections_via_symbols
