	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remote_fileio_next_free_fd
_remote_fileio_next_free_fd:            ## @remote_fileio_next_free_fd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_remote_fio_data@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.1:
	movq	8(%rax), %rdx
	movq	_FIO_FD_INVALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rdx,%rax,8)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_2
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_remote_fileio_resize_fd_map    ## TAILCALL
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_remote_fio_data,16,3           ## @remote_fio_data
	.comm	_FIO_FD_INVALID,8,3             ## @FIO_FD_INVALID
	.no_dead_strip	_remote_fileio_next_free_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_next_free_fd
_remote_fileio_next_free_fd:            ; @remote_fileio_next_free_fd
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _remote_fio_data@GOTPAGE
Lloh1:
	ldr	x9, [x9, _remote_fio_data@GOTPAGEOFF]
	ldr	w8, [x9]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x0, #0
	ldr	x9, [x9, #8]
Lloh2:
	adrp	x10, _FIO_FD_INVALID@GOTPAGE
Lloh3:
	ldr	x10, [x10, _FIO_FD_INVALID@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x0, lsl #3]
	cmp	x11, x10
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x0, #1
	cmp	x8, x0
	b.ne	LBB0_2
LBB0_4:
	b	_remote_fileio_resize_fd_map
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	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,8,3             ; @FIO_FD_INVALID
	.no_dead_strip	_remote_fileio_next_free_fd
.subsections_via_symbols
