	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtalloc1_fib                   ## -- Begin function rtalloc1_fib
	.p2align	4, 0x90
_rtalloc1_fib:                          ## @rtalloc1_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_RTM_MISS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_rt_numfibs@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%ecx, (%rax)
	setg	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movl	(%r15), %esi
	movl	%r13d, %edi
	callq	_rt_tables_get_rnh
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r14
	movq	_RTF_RNH_LOCKED@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_RIB_RLOCK
LBB0_3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	*8(%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	_RNF_ROOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
LBB0_7:
	movq	_RTF_RNH_LOCKED@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_RIB_RUNLOCK
LBB0_9:
	movq	_V_rtstat@GOTPCREL(%rip), %rax
	incl	(%rax)
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.11:
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_bzero
	movq	-56(%rbp), %rax
	movq	_RTAX_DST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%r15, (%rax,%rcx,8)
	xorl	%ebx, %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%r13d, %r8d
	callq	_rt_missmsg_fib
	jmp	LBB0_12
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_5:
	movq	%rax, %rdi
	callq	_RNTORT
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_RT_LOCK
	movq	%rbx, %rdi
	callq	_RT_ADDREF
	movq	_RTF_RNH_LOCKED@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_12
## %bb.6:
	movq	%r14, %rdi
	callq	_RIB_RUNLOCK
LBB0_12:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RIB_RLOCK_TRACKER,4,2          ## @RIB_RLOCK_TRACKER
	.comm	_RTM_MISS,4,2                   ## @RTM_MISS
	.comm	_rt_numfibs,4,2                 ## @rt_numfibs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rtalloc1_fib: bad fibnum"

	.comm	_RTF_RNH_LOCKED,4,2             ## @RTF_RNH_LOCKED
	.comm	_RNF_ROOT,4,2                   ## @RNF_ROOT
	.comm	_V_rtstat,4,2                   ## @V_rtstat
	.comm	_RTAX_DST,8,3                   ## @RTAX_DST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtalloc1_fib                   ; -- Begin function rtalloc1_fib
	.p2align	2
_rtalloc1_fib:                          ; @rtalloc1_fib
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _RTM_MISS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTM_MISS@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _rt_numfibs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rt_numfibs@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w3
	cset	w0, gt
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rt_tables_get_rnh
	cbz	x0, LBB0_7
; %bb.1:
	mov	x24, x0
Lloh8:
	adrp	x25, _RTF_RNH_LOCKED@GOTPAGE
Lloh9:
	ldr	x25, [x25, _RTF_RNH_LOCKED@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w22
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x24
	bl	_RIB_RLOCK
LBB0_3:
	ldr	x8, [x24, #8]
	mov	x0, x21
	mov	x1, x24
	blr	x8
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w8, [x0]
Lloh10:
	adrp	x9, _RNF_ROOT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RNF_ROOT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_5:
	ldr	w8, [x25]
	tst	w8, w22
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x24
	bl	_RIB_RUNLOCK
LBB0_7:
Lloh13:
	adrp	x8, _V_rtstat@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V_rtstat@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	cbz	w23, LBB0_9
; %bb.8:
	add	x0, sp, #8
	mov	w1, #8
	bl	_bzero
	ldr	x8, [sp, #8]
Lloh15:
	adrp	x9, _RTAX_DST@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RTAX_DST@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	str	x21, [x8, x9, lsl #3]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	mov	x4, x19
	bl	_rt_missmsg_fib
LBB0_9:
	mov	x19, #0
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	bl	_RNTORT
	mov	x19, x0
	bl	_RT_LOCK
	mov	x0, x19
	bl	_RT_ADDREF
	ldr	w8, [x25]
	tst	w8, w22
	b.ne	LBB0_10
; %bb.12:
	mov	x0, x24
	bl	_RIB_RUNLOCK
	b	LBB0_10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RIB_RLOCK_TRACKER,4,2          ; @RIB_RLOCK_TRACKER
	.comm	_RTM_MISS,4,2                   ; @RTM_MISS
	.comm	_rt_numfibs,4,2                 ; @rt_numfibs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rtalloc1_fib: bad fibnum"

	.comm	_RTF_RNH_LOCKED,4,2             ; @RTF_RNH_LOCKED
	.comm	_RNF_ROOT,4,2                   ; @RNF_ROOT
	.comm	_V_rtstat,4,2                   ; @V_rtstat
	.comm	_RTAX_DST,8,3                   ; @RTAX_DST
.subsections_via_symbols
