	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remote_fileio_close_target_fd
_remote_fileio_close_target_fd:         ## @remote_fileio_close_target_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
	testl	%ebx, %ebx
	js	LBB0_3
## %bb.1:
	movq	_remote_fio_data@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jle	LBB0_3
## %bb.2:
	movq	_FIO_FD_INVALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%rax), %rax
	movl	%ebx, %edx
	movl	%ecx, (%rax,%rdx,4)
LBB0_3:
	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_close_target_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_close_target_fd
_remote_fileio_close_target_fd:         ; @remote_fileio_close_target_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
	tbnz	w19, #31, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _remote_fio_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _remote_fio_data@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, w19
	b.le	LBB0_3
; %bb.2:
Lloh2:
	adrp	x9, _FIO_FD_INVALID@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FIO_FD_INVALID@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	x8, [x8, #8]
	str	w9, [x8, w19, uxtw #2]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.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_close_target_fd
.subsections_via_symbols
