	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remote_fileio_func_lseek
_remote_fileio_func_lseek:              ## @remote_fileio_func_lseek
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, -32(%rbp)
	leaq	-32(%rbp), %rdi
	leaq	-24(%rbp), %rsi
	callq	_remote_fileio_extract_int
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	xorl	%eax, %eax
	callq	_remote_fileio_ioerror
	jmp	LBB0_15
LBB0_2:
	movl	-24(%rbp), %edi
	callq	_remote_fileio_map_fd
	movl	%eax, %ebx
	movq	_FIO_FD_INVALID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_remote_fileio_badfd
	jmp	LBB0_15
LBB0_4:
	movq	_FIO_FD_CONSOLE_IN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_6
## %bb.5:
	movq	_FIO_FD_CONSOLE_OUT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_6
## %bb.8:
	leaq	-32(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_remote_fileio_extract_long
	testq	%rax, %rax
	jne	LBB0_1
## %bb.9:
	movq	-48(%rbp), %r14
	leaq	-32(%rbp), %rdi
	leaq	-24(%rbp), %rsi
	callq	_remote_fileio_extract_int
	testq	%rax, %rax
	jne	LBB0_1
## %bb.10:
	movq	-24(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	callq	_remote_fileio_seek_flag_to_host
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_FILEIO_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_FILEIO_ESPIPE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	movl	$-1, %edi
	callq	_remote_fileio_reply
LBB0_15:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	movq	_remote_fio_no_longjmp@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	-36(%rbp), %edx
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_lseek
	cmpq	$-1, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %rdi
	callq	_remote_fileio_return_success
	jmp	LBB0_15
LBB0_13:
	movl	$-1, %edi
	callq	_remote_fileio_return_errno
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_FIO_FD_INVALID,4,2             ## @FIO_FD_INVALID
	.comm	_FIO_FD_CONSOLE_IN,4,2          ## @FIO_FD_CONSOLE_IN
	.comm	_FIO_FD_CONSOLE_OUT,4,2         ## @FIO_FD_CONSOLE_OUT
	.comm	_FILEIO_ESPIPE,4,2              ## @FILEIO_ESPIPE
	.comm	_FILEIO_EINVAL,4,2              ## @FILEIO_EINVAL
	.comm	_remote_fio_no_longjmp,4,2      ## @remote_fio_no_longjmp
	.no_dead_strip	_remote_fileio_func_lseek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remote_fileio_func_lseek
_remote_fileio_func_lseek:              ; @remote_fileio_func_lseek
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	x0, [sp, #24]
	add	x0, sp, #24
	add	x1, sp, #16
	bl	_remote_fileio_extract_int
	cbz	x0, LBB0_2
LBB0_1:
	bl	_remote_fileio_ioerror
	b	LBB0_7
LBB0_2:
	ldr	w0, [sp, #16]
	bl	_remote_fileio_map_fd
Lloh0:
	adrp	x8, _FIO_FD_INVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FIO_FD_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
	bl	_remote_fileio_badfd
	b	LBB0_7
LBB0_4:
	mov	x19, x0
Lloh3:
	adrp	x8, _FIO_FD_CONSOLE_IN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FIO_FD_CONSOLE_IN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _FIO_FD_CONSOLE_OUT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FIO_FD_CONSOLE_OUT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_8
; %bb.5:
Lloh9:
	adrp	x8, _FILEIO_ESPIPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FILEIO_ESPIPE@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	mov	w0, #-1
	bl	_remote_fileio_reply
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	add	x0, sp, #24
	add	x1, sp, #8
	bl	_remote_fileio_extract_long
	cbnz	x0, LBB0_1
; %bb.9:
	ldr	x20, [sp, #8]
	add	x0, sp, #24
	add	x1, sp, #16
	bl	_remote_fileio_extract_int
	cbnz	x0, LBB0_1
; %bb.10:
	ldr	x0, [sp, #16]
	add	x1, sp, #4
	bl	_remote_fileio_seek_flag_to_host
	cbz	x0, LBB0_12
; %bb.11:
Lloh11:
	adrp	x8, _FILEIO_EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FILEIO_EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_12:
Lloh13:
	adrp	x8, _remote_fio_no_longjmp@GOTPAGE
Lloh14:
	ldr	x8, [x8, _remote_fio_no_longjmp@GOTPAGEOFF]
	mov	w9, #1
Lloh15:
	str	w9, [x8]
	ldr	w2, [sp, #4]
	mov	x0, x19
	mov	x1, x20
	bl	_lseek
	cmn	x0, #1
	b.eq	LBB0_14
; %bb.13:
	bl	_remote_fileio_return_success
	b	LBB0_7
LBB0_14:
	mov	w0, #-1
	bl	_remote_fileio_return_errno
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_FIO_FD_INVALID,4,2             ; @FIO_FD_INVALID
	.comm	_FIO_FD_CONSOLE_IN,4,2          ; @FIO_FD_CONSOLE_IN
	.comm	_FIO_FD_CONSOLE_OUT,4,2         ; @FIO_FD_CONSOLE_OUT
	.comm	_FILEIO_ESPIPE,4,2              ; @FILEIO_ESPIPE
	.comm	_FILEIO_EINVAL,4,2              ; @FILEIO_EINVAL
	.comm	_remote_fio_no_longjmp,4,2      ; @remote_fio_no_longjmp
	.no_dead_strip	_remote_fileio_func_lseek
.subsections_via_symbols
