	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtalloc_mpath_fib              ## -- Begin function rtalloc_mpath_fib
	.p2align	4, 0x90
_rtalloc_mpath_fib:                     ## @rtalloc_mpath_fib
	.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
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	movq	_RTF_UP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.3:
	callq	_RT_LINK_IS_UP
	testq	%rax, %rax
	jne	LBB0_8
LBB0_4:
	leaq	8(%rbx), %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	callq	_rtalloc1_fib
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %rdi
	callq	_rn_mpath_next
	movq	(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movl	%r14d, %esi
	callq	_rt_mpath_selectrte
	movq	(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	%rax, %r14
	cmpq	%rax, %rdi
	je	LBB0_11
## %bb.10:
	callq	_RTFREE_LOCKED
	movq	%r14, (%rbx)
	movq	%r14, %rdi
	callq	_RT_LOCK
	movq	(%rbx), %rdi
	callq	_RT_ADDREF
	movq	(%rbx), %r14
LBB0_11:
	movq	%r14, %rdi
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_UNLOCK                      ## TAILCALL
LBB0_7:
	callq	_RT_UNLOCK
	movq	$0, (%rbx)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTF_UP,4,2                     ## @RTF_UP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtalloc_mpath_fib              ; -- Begin function rtalloc_mpath_fib
	.p2align	2
_rtalloc_mpath_fib:                     ; @rtalloc_mpath_fib
	.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, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _RTF_UP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RTF_UP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	bl	_RT_LINK_IS_UP
	cbnz	x0, LBB0_12
LBB0_4:
	add	x0, x19, #8
	mov	w1, #1
	mov	w2, #0
	mov	x3, x21
	bl	_rtalloc1_fib
	str	x0, [x19]
	cbz	x0, LBB0_12
; %bb.5:
	bl	_rn_mpath_next
	mov	x8, x0
	ldr	x0, [x19]
	cbz	x8, LBB0_10
; %bb.6:
	mov	x1, x20
	bl	_rt_mpath_selectrte
	mov	x20, x0
	ldr	x0, [x19]
	cbz	x20, LBB0_11
; %bb.7:
	cmp	x0, x20
	b.eq	LBB0_9
; %bb.8:
	bl	_RTFREE_LOCKED
	str	x20, [x19]
	mov	x0, x20
	bl	_RT_LOCK
	ldr	x0, [x19]
	bl	_RT_ADDREF
	ldr	x20, [x19]
LBB0_9:
	mov	x0, x20
LBB0_10:
	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
	b	_RT_UNLOCK
LBB0_11:
	bl	_RT_UNLOCK
	str	xzr, [x19]
LBB0_12:
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RTF_UP,4,2                     ; @RTF_UP
.subsections_via_symbols
