	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remote_fileio_map_fd
_remote_fileio_map_fd:                  ## @remote_fileio_map_fd
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_remote_fileio_init_fd_map
	movq	_remote_fio_data@GOTPCREL(%rip), %rax
	movslq	%ebx, %rcx
	leaq	(,%rcx,4), %rdx
	addq	8(%rax), %rdx
	cmpl	%ecx, (%rax)
	movq	_FIO_FD_INVALID@GOTPCREL(%rip), %rax
	cmovleq	%rax, %rdx
	testl	%ecx, %ecx
	cmovsq	%rax, %rdx
	movl	(%rdx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_remote_fio_data,16,3           ## @remote_fio_data
	.comm	_FIO_FD_INVALID,4,2             ## @FIO_FD_INVALID
	.no_dead_strip	_remote_fileio_map_fd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remote_fileio_map_fd
_remote_fileio_map_fd:                  ; @remote_fileio_map_fd
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_remote_fileio_init_fd_map
Lloh0:
	adrp	x8, _remote_fio_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _remote_fio_data@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, w19
	mov	w9, #-1
	ccmp	w19, w9, #4, gt
	ldr	x8, [x8, #8]
	add	x8, x8, w19, sxtw #2
Lloh2:
	adrp	x9, _FIO_FD_INVALID@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FIO_FD_INVALID@GOTPAGEOFF]
	csel	x8, x8, x9, gt
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_remote_fio_data,16,3           ; @remote_fio_data
	.comm	_FIO_FD_INVALID,4,2             ; @FIO_FD_INVALID
	.no_dead_strip	_remote_fileio_map_fd
.subsections_via_symbols
