	.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
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_tofile
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rdx
	leaq	_f_seek.modenames(%rip), %rcx
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_luaL_checkoption
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_luaL_optlong
	movslq	%r15d, %rcx
	leaq	_f_seek.mode(%rip), %rdx
	movl	(%rdx,%rcx,4), %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_fseek
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pushresult                     ## TAILCALL
LBB0_1:
	movq	%r14, %rdi
	callq	_ftell
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_lua_pushinteger
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @f_seek.mode
_f_seek.mode:
	.long	128                             ## 0x80
	.long	130                             ## 0x82
	.long	129                             ## 0x81

	.section	__DATA,__const
	.p2align	4                               ## @f_seek.modenames
_f_seek.modenames:
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set"

L_.str.1:                               ## @.str.1
	.asciz	"cur"

L_.str.2:                               ## @.str.2
	.asciz	"end"

	.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_tofile
	mov	x20, x0
Lloh0:
	adrp	x2, l_.str.1@PAGE
Lloh1:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh2:
	adrp	x3, _f_seek.modenames@PAGE
Lloh3:
	add	x3, x3, _f_seek.modenames@PAGEOFF
	mov	x0, x19
	mov	w1, #2
	bl	_luaL_checkoption
	mov	x21, x0
	mov	x0, x19
	mov	w1, #3
	mov	w2, #0
	bl	_luaL_optlong
	mov	x1, x0
Lloh4:
	adrp	x8, _f_seek.mode@PAGE
Lloh5:
	add	x8, x8, _f_seek.mode@PAGEOFF
	ldr	w2, [x8, w21, sxtw #2]
	mov	x0, x20
	bl	_fseek
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	mov	x2, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pushresult
LBB0_2:
	mov	x0, x20
	bl	_ftell
	mov	x1, x0
	mov	x0, x19
	bl	_lua_pushinteger
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @f_seek.mode
_f_seek.mode:
	.long	128                             ; 0x80
	.long	130                             ; 0x82
	.long	129                             ; 0x81

	.section	__DATA,__const
	.p2align	3                               ; @f_seek.modenames
_f_seek.modenames:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set"

l_.str.1:                               ; @.str.1
	.asciz	"cur"

l_.str.2:                               ; @.str.2
	.asciz	"end"

	.no_dead_strip	_f_seek
.subsections_via_symbols
