	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rack_alloc_limit
_rack_alloc_limit:                      ## @rack_alloc_limit
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	_rack_tcp_map_split_limit@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jle	LBB0_7
## %bb.2:
	cmpq	$0, (%r14)
	jne	LBB0_7
## %bb.3:
	cmpq	%rax, 16(%r14)
	jge	LBB0_4
LBB0_7:
	movq	%r14, %rdi
	callq	_rack_alloc
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.8:
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rbx, (%rax)
	incq	16(%r14)
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_rack_split_limited@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_counter_u64_add
	cmpl	$0, 8(%r14)
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_6:
	movl	$1, 8(%r14)
	movq	_rack_alloc_limited_conns@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_counter_u64_add
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_rack_tcp_map_split_limit,8,3   ## @rack_tcp_map_split_limit
	.comm	_rack_split_limited,4,2         ## @rack_split_limited
	.comm	_rack_alloc_limited_conns,4,2   ## @rack_alloc_limited_conns
	.no_dead_strip	_rack_alloc_limit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rack_alloc_limit
_rack_alloc_limit:                      ; @rack_alloc_limit
	.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	x20, x1
	mov	x19, x0
	cbz	x1, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _rack_tcp_map_split_limit@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rack_tcp_map_split_limit@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.2:
	ldr	x9, [x19]
	cbnz	x9, LBB0_4
; %bb.3:
	ldr	x9, [x19, #16]
	cmp	x9, x8
	b.ge	LBB0_8
LBB0_4:
	mov	x0, x19
	bl	_rack_alloc
	cbz	x20, LBB0_7
; %bb.5:
	cbz	x0, LBB0_7
; %bb.6:
	str	x20, [x0]
	ldr	x8, [x19, #16]
	add	x8, x8, #1
	str	x8, [x19, #16]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh3:
	adrp	x8, _rack_split_limited@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rack_split_limited@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w20, #1
	mov	w1, #1
	bl	_counter_u64_add
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_10
; %bb.9:
	mov	x0, #0
	b	LBB0_7
LBB0_10:
	str	w20, [x19, #8]
Lloh6:
	adrp	x8, _rack_alloc_limited_conns@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rack_alloc_limited_conns@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_counter_u64_add
	mov	x0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_rack_tcp_map_split_limit,8,3   ; @rack_tcp_map_split_limit
	.comm	_rack_split_limited,4,2         ; @rack_split_limited
	.comm	_rack_alloc_limited_conns,4,2   ; @rack_alloc_limited_conns
	.no_dead_strip	_rack_alloc_limit
.subsections_via_symbols
