	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remote_fileio_func_gettimeofday
_remote_fileio_func_gettimeofday:       ## @remote_fileio_func_gettimeofday
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)
	leaq	-48(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_remote_fileio_extract_long
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	-40(%rbp), %rbx
	leaq	-48(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_remote_fileio_extract_long
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	xorl	%eax, %eax
	callq	_remote_fileio_ioerror
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpq	$0, -40(%rbp)
	je	LBB0_5
## %bb.4:
	movq	_FILEIO_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-1, %edi
	callq	_remote_fileio_reply
	jmp	LBB0_10
LBB0_5:
	movq	_remote_fio_no_longjmp@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	leaq	-32(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %r14d
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	leaq	-32(%rbp), %rdi
	leaq	-56(%rbp), %r15
	movq	%r15, %rsi
	callq	_remote_fileio_to_fio_timeval
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_remote_fileio_write_bytes
	cmpl	$4, %eax
	jne	LBB0_6
LBB0_9:
	movl	%r14d, %edi
	callq	_remote_fileio_return_success
	jmp	LBB0_10
LBB0_6:
	movl	$-1, %edi
	callq	_remote_fileio_return_errno
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_FILEIO_EINVAL,4,2              ## @FILEIO_EINVAL
	.comm	_remote_fio_no_longjmp,4,2      ## @remote_fio_no_longjmp
	.no_dead_strip	_remote_fileio_func_gettimeofday
.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_gettimeofday
_remote_fileio_func_gettimeofday:       ; @remote_fileio_func_gettimeofday
	.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_long
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x19, [sp, #16]
	add	x0, sp, #24
	add	x1, sp, #16
	bl	_remote_fileio_extract_long
	cbz	x0, LBB0_4
LBB0_2:
	bl	_remote_fileio_ioerror
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _FILEIO_EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FILEIO_EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #-1
	bl	_remote_fileio_reply
	b	LBB0_3
LBB0_6:
Lloh3:
	adrp	x8, _remote_fio_no_longjmp@GOTPAGE
Lloh4:
	ldr	x8, [x8, _remote_fio_no_longjmp@GOTPAGEOFF]
	mov	w9, #1
Lloh5:
	str	w9, [x8]
	add	x0, sp, #8
	mov	x1, #0
	bl	_gettimeofday
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.7:
	mov	x20, x0
	cbz	x19, LBB0_9
; %bb.8:
	add	x0, sp, #8
	mov	x1, sp
	bl	_remote_fileio_to_fio_timeval
	mov	x1, sp
	mov	x0, x19
	mov	w2, #4
	bl	_remote_fileio_write_bytes
	cmp	w0, #4
	b.ne	LBB0_10
LBB0_9:
	mov	x0, x20
	bl	_remote_fileio_return_success
	b	LBB0_3
LBB0_10:
	mov	w0, #-1
LBB0_11:
	bl	_remote_fileio_return_errno
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FILEIO_EINVAL,4,2              ; @FILEIO_EINVAL
	.comm	_remote_fio_no_longjmp,4,2      ; @remote_fio_no_longjmp
	.no_dead_strip	_remote_fileio_func_gettimeofday
.subsections_via_symbols
