	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_zone_need
_calc_zone_need:                        ## @calc_zone_need
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, -40(%rbp)
	movq	%rsi, -32(%rbp)
	callq	_dname_is_root
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	addq	$4, %rbx
	jmp	LBB0_5
LBB0_2:
	xorl	%edi, %edi
	cmpq	$2, %rbx
	setae	%dil
	callq	_log_assert
	leaq	-40(%rbp), %rdi
	leaq	-32(%rbp), %rsi
	callq	_dname_remove_label
	movq	-32(%rbp), %rax
	addq	%rax, %rbx
	addq	$8, %rbx
	movq	-40(%rbp), %rdi
	callq	_dname_is_root
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	leaq	-40(%rbp), %r14
	leaq	-32(%rbp), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpq	$2, -32(%rbp)
	setae	%dil
	callq	_log_assert
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dname_remove_label
	movq	-32(%rbp), %rax
	addq	%rax, %rbx
	addq	$4, %rbx
	movq	-40(%rbp), %rdi
	callq	_dname_is_root
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_calc_zone_need
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_zone_need
_calc_zone_need:                        ; @calc_zone_need
	.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
	stp	x1, x0, [sp]
	bl	_dname_is_root
	cbz	w0, LBB0_3
; %bb.1:
	add	x19, x19, #4
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
	cmp	x19, #1
	cset	w0, hi
	bl	_log_assert
	add	x0, sp, #8
	mov	x1, sp
	bl	_dname_remove_label
	ldr	x8, [sp]
	add	x8, x19, x8
	add	x19, x8, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	bl	_dname_is_root
	cbnz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp]
	cmp	x8, #1
	cset	w0, hi
	bl	_log_assert
	add	x0, sp, #8
	mov	x1, sp
	bl	_dname_remove_label
	ldr	x8, [sp]
	add	x8, x19, x8
	add	x19, x8, #4
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_calc_zone_need
.subsections_via_symbols
