	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mrb_io_sysseek                 ## -- Begin function mrb_io_sysseek
	.p2align	4, 0x90
_mrb_io_sysseek:                        ## @mrb_io_sysseek
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	$-1, -24(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdx
	leaq	-24(%rbp), %rcx
	callq	_mrb_get_args
	cmpq	$0, -24(%rbp)
	jns	LBB0_2
## %bb.1:
	movq	$0, -24(%rbp)
LBB0_2:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_io_get_open_fptr
	movl	(%rax), %edi
	movl	-32(%rbp), %esi
	movl	-24(%rbp), %edx
	callq	_lseek
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_mrb_sys_fail
LBB0_4:
	movq	_MRB_INT_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jle	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_mrb_float_value
	jmp	LBB0_7
LBB0_6:
	movl	%ebx, %edi
	callq	_mrb_fixnum_value
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i|i"

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

	.comm	_MRB_INT_MAX,4,2                ## @MRB_INT_MAX
	.comm	_E_IO_ERROR,4,2                 ## @E_IO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mrb_io_sysseek                 ; -- Begin function mrb_io_sysseek
	.p2align	2
_mrb_io_sysseek:                        ; @mrb_io_sysseek
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x8, #-1
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x3, sp
	bl	_mrb_get_args
	ldr	x8, [sp]
	tbz	x8, #63, LBB0_2
; %bb.1:
	str	xzr, [sp]
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_io_get_open_fptr
	ldr	w0, [x0]
	ldr	w1, [sp, #8]
	ldr	w2, [sp]
	bl	_lseek
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mrb_sys_fail
LBB0_4:
Lloh4:
	adrp	x8, _MRB_INT_MAX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MRB_INT_MAX@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w20, w8
	b.le	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_mrb_float_value
	b	LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_mrb_fixnum_value
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i|i"

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

	.comm	_MRB_INT_MAX,4,2                ; @MRB_INT_MAX
	.comm	_E_IO_ERROR,4,2                 ; @E_IO_ERROR
.subsections_via_symbols
