	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function f_install_start
_f_install_start:                       ## @f_install_start
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_assert
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movq	_RLIMIT_NOFILE_@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rlimit
	movl	(%r15), %ecx
	cmpl	%ecx, %eax
	cmovbl	%eax, %ecx
	cmpl	%ebx, %ecx
	jbe	LBB0_4
## %bb.1:
	movq	8(%r15), %rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpl	%ebx, %ecx
	ja	LBB0_2
LBB0_4:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_fdtable_expand
	testl	%eax, %eax
	cltq
	cmovsq	%rax, %rbx
LBB0_5:
	testq	%rbx, %rbx
	js	LBB0_7
## %bb.6:
	movq	8(%r15), %rax
	movq	%r14, (%rax,%rbx,8)
	movl	4(%r15), %esi
	movq	%rbx, %rdi
	callq	_bit_clear
	jmp	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_fd_close
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_RLIMIT_NOFILE_,4,2             ## @RLIMIT_NOFILE_
	.no_dead_strip	_f_install_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function f_install_start
_f_install_start:                       ; @f_install_start
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
	lsr	x8, x1, #63
	eor	w0, w8, #0x1
	bl	_assert
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x20, [x8]
Lloh3:
	adrp	x8, _RLIMIT_NOFILE_@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RLIMIT_NOFILE_@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_rlimit
	ldr	w8, [x20]
	cmp	w0, w8
	csel	w8, w0, w8, lo
	cmp	w8, w21
	b.ls	LBB0_5
; %bb.1:
	mov	x9, #0
	ldr	x10, [x20, #8]
	add	x10, x10, x21, lsl #3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x9, lsl #3]
	cbz	x11, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	add	w11, w21, w9
	cmp	w8, w11
	b.hi	LBB0_2
; %bb.4:
	add	x21, x21, x9
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	bl	_fdtable_expand
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	w0, #0
	csel	x21, x8, x21, lt
	tbnz	x21, #63, LBB0_8
LBB0_6:
	ldr	x8, [x20, #8]
	str	x19, [x8, x21, lsl #3]
	ldr	w1, [x20, #4]
	mov	x0, x21
	bl	_bit_clear
	b	LBB0_9
LBB0_7:
	add	x21, x21, x9
	tbz	x21, #63, LBB0_6
LBB0_8:
	mov	x0, x19
	bl	_fd_close
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_RLIMIT_NOFILE_,4,2             ; @RLIMIT_NOFILE_
	.no_dead_strip	_f_install_start
.subsections_via_symbols
