	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function findReusableFd
_findReusableFd:                        ## @findReusableFd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	leaq	-32(%rbp), %rsi
	callq	_osStat
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	xorl	%eax, %eax
	callq	_unixEnterMutex
	movq	_inodeList@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	movq	-32(%rbp), %rcx
	movq	-24(%rbp), %rdx
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_14
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, 16(%rax)
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rdx, 24(%rax)
	jne	LBB0_3
## %bb.6:
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.7:
	cmpl	%r14d, (%rbx)
	je	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rax
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%r14d, (%rbx)
	jne	LBB0_8
## %bb.10:
	addq	$8, %rax
LBB0_11:
	movq	8(%rbx), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_14
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	xorl	%eax, %eax
	callq	_unixLeaveMutex
LBB0_15:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_inodeList,8,3                  ## @inodeList
	.no_dead_strip	_findReusableFd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function findReusableFd
_findReusableFd:                        ; @findReusableFd
	.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
	mov	x19, x1
	mov	x1, sp
	bl	_osStat
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_15
LBB0_2:
	bl	_unixEnterMutex
Lloh0:
	adrp	x8, _inodeList@GOTPAGE
Lloh1:
	ldr	x8, [x8, _inodeList@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.3:
	ldp	x9, x10, [sp]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8, #16]
	cmp	x11, x9
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x11, [x8, #24]
	cmp	x11, x10
	b.ne	LBB0_4
; %bb.7:
	ldr	x20, [x8]
	cbz	x20, LBB0_14
; %bb.8:
	ldr	w9, [x20]
	cmp	w9, w19
	b.eq	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x20
	ldr	x20, [x20, #8]
	cbz	x20, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w9, [x20]
	cmp	w9, w19
	b.ne	LBB0_9
; %bb.11:
	add	x8, x8, #8
LBB0_12:
	ldr	x9, [x20, #8]
	str	x9, [x8]
	b	LBB0_14
LBB0_13:
	mov	x20, #0
LBB0_14:
	bl	_unixLeaveMutex
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_inodeList,8,3                  ; @inodeList
	.no_dead_strip	_findReusableFd
.subsections_via_symbols
