	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remote_fileio_func_system
_remote_fileio_func_system:             ## @remote_fileio_func_system
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, -24(%rbp)
	movq	_remote_fio_system_call_allowed@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.1:
	leaq	-24(%rbp), %rdi
	leaq	-16(%rbp), %rsi
	leaq	-12(%rbp), %rdx
	callq	_remote_fileio_extract_ptr_w_len
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movl	-12(%rbp), %edi
	callq	_alloca
	movq	%rax, %rbx
	movl	-16(%rbp), %edi
	movl	-12(%rbp), %edx
	movq	%rax, %rsi
	callq	_remote_read_bytes
	cmpl	-12(%rbp), %eax
	jne	LBB0_2
## %bb.4:
	movq	_remote_fio_no_longjmp@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	%rbx, %rdi
	callq	_system
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %edi
	callq	_WEXITSTATUS
	movl	%eax, %edi
	callq	_remote_fileio_return_success
	jmp	LBB0_7
LBB0_2:
	xorl	%eax, %eax
	callq	_remote_fileio_ioerror
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	movq	_FILEIO_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-1, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_remote_fileio_reply            ## TAILCALL
LBB0_5:
	movl	$-1, %edi
	callq	_remote_fileio_return_errno
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_remote_fio_system_call_allowed,4,2 ## @remote_fio_system_call_allowed
	.comm	_FILEIO_EPERM,4,2               ## @FILEIO_EPERM
	.comm	_remote_fio_no_longjmp,4,2      ## @remote_fio_no_longjmp
	.no_dead_strip	_remote_fileio_func_system
.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_system
_remote_fileio_func_system:             ; @remote_fileio_func_system
	.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
	str	x0, [sp, #8]
Lloh0:
	adrp	x8, _remote_fio_system_call_allowed@GOTPAGE
Lloh1:
	ldr	x8, [x8, _remote_fio_system_call_allowed@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.1:
	add	x0, sp, #8
	add	x1, sp, #4
	mov	x2, sp
	bl	_remote_fileio_extract_ptr_w_len
	cbnz	x0, LBB0_5
; %bb.2:
	ldr	w0, [sp]
	bl	_alloca
	mov	x19, x0
	ldp	w2, w0, [sp]
	mov	x1, x19
	bl	_remote_read_bytes
	ldr	w8, [sp]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _remote_fio_no_longjmp@GOTPAGE
Lloh4:
	ldr	x8, [x8, _remote_fio_no_longjmp@GOTPAGEOFF]
	mov	w9, #1
Lloh5:
	str	w9, [x8]
	mov	x0, x19
	bl	_system
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.4:
	bl	_WEXITSTATUS
	bl	_remote_fileio_return_success
	b	LBB0_6
LBB0_5:
	bl	_remote_fileio_ioerror
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
Lloh6:
	adrp	x8, _FILEIO_EPERM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FILEIO_EPERM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #-1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_remote_fileio_reply
LBB0_8:
	bl	_remote_fileio_return_errno
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_remote_fio_system_call_allowed,4,2 ; @remote_fio_system_call_allowed
	.comm	_FILEIO_EPERM,4,2               ; @FILEIO_EPERM
	.comm	_remote_fio_no_longjmp,4,2      ; @remote_fio_no_longjmp
	.no_dead_strip	_remote_fileio_func_system
.subsections_via_symbols
