	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function f_seek
_f_seek:                                ## @f_seek
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$-1, %eax
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	andl	$3, %edx
	movl	(%rdi), %edi
	leal	-1638(%rdi), %ecx
	cmpl	$3, %ecx
	ja	LBB0_9
## %bb.2:
	movq	_file@GOTPCREL(%rip), %rdi
	movq	(%rdi), %r8
	movl	%ecx, %edi
	shlq	$4, %rdi
	movq	(%r8,%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.3:
	xorl	%eax, %eax
	cmpl	$2, %edx
	je	LBB0_11
## %bb.4:
	cmpl	$1, %edx
	je	LBB0_13
## %bb.5:
	testl	%edx, %edx
	jne	LBB0_10
## %bb.6:
	cmpq	%rsi, %rcx
	jle	LBB0_16
## %bb.7:
	leaq	(%r8,%rdi), %rcx
	addq	$8, %rcx
	testq	%rsi, %rsi
	js	LBB0_20
## %bb.8:
	movq	%rsi, (%rcx)
	popq	%rbp
	retq
LBB0_9:
                                        ## kill: def $edi killed $edi killed $rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_lseek
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	js	LBB0_23
LBB0_10:
	popq	%rbp
	retq
LBB0_11:
	testq	%rsi, %rsi
	js	LBB0_18
LBB0_16:
	movq	%rcx, 8(%r8,%rdi)
	jmp	LBB0_23
LBB0_13:
	leaq	(%r8,%rdi), %rdx
	addq	$8, %rdx
	addq	8(%r8,%rdi), %rsi
	cmpq	%rcx, %rsi
	jge	LBB0_17
## %bb.14:
	testq	%rsi, %rsi
	js	LBB0_22
## %bb.15:
	movq	%rsi, (%rdx)
	popq	%rbp
	retq
LBB0_17:
	movq	%rcx, (%rdx)
	jmp	LBB0_23
LBB0_18:
	addq	%rsi, %rcx
	leaq	8(%r8,%rdi), %rdx
	js	LBB0_22
## %bb.19:
	movq	%rcx, (%rdx)
	popq	%rbp
	retq
LBB0_22:
	movq	$0, (%rdx)
	jmp	LBB0_23
LBB0_20:
	movq	$0, (%rcx)
LBB0_23:
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_file,8,3                       ## @file
	.no_dead_strip	_f_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function f_seek
_f_seek:                                ; @f_seek
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x0, LBB0_20
; %bb.1:
	and	w2, w2, #0x3
	ldr	w0, [x0]
	sub	w8, w0, #1638
	cmp	w8, #3
	b.hi	LBB0_9
; %bb.2:
Lloh0:
	adrp	x9, _file@GOTPAGE
Lloh1:
	ldr	x9, [x9, _file@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x9]
	lsl	x9, x8, #4
	ldr	x9, [x10, x9]
	cbz	x9, LBB0_20
; %bb.3:
	cmp	w2, #2
	b.eq	LBB0_11
; %bb.4:
	cmp	w2, #1
	b.eq	LBB0_13
; %bb.5:
	cbnz	w2, LBB0_10
; %bb.6:
	cmp	x9, x1
	b.le	LBB0_12
; %bb.7:
	add	x8, x10, x8, lsl #4
	add	x8, x8, #8
	tbnz	x1, #63, LBB0_19
; %bb.8:
	mov	w0, #0
	str	x1, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_9:
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_lseek
	tbnz	w0, #31, LBB0_20
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_11:
	tbnz	x1, #63, LBB0_17
LBB0_12:
	add	x8, x10, x8, lsl #4
	str	x9, [x8, #8]
	b	LBB0_20
LBB0_13:
	add	x8, x10, x8, lsl #4
	ldr	x10, [x8, #8]!
	add	x10, x10, x1
	cmp	x10, x9
	b.ge	LBB0_16
; %bb.14:
	tbnz	x10, #63, LBB0_19
; %bb.15:
	mov	w0, #0
	str	x10, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_16:
	str	x9, [x8]
	b	LBB0_20
LBB0_17:
	add	x9, x9, x1
	add	x8, x10, x8, lsl #4
	add	x8, x8, #8
	tbnz	x9, #63, LBB0_19
; %bb.18:
	mov	w0, #0
	str	x9, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_19:
	str	xzr, [x8]
LBB0_20:
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_file,8,3                       ; @file
	.no_dead_strip	_f_seek
.subsections_via_symbols
