	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsim_dev_reload_up
_nsim_dev_reload_up:                    ## @nsim_dev_reload_up
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NSIM_RESOURCE_IPV4_FIB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_NSIM_RESOURCE_IPV4_FIB_RULES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	_NSIM_RESOURCE_IPV6_FIB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_NSIM_RESOURCE_IPV6_FIB_RULES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	callq	_nsim_devlink_net
	movq	%rax, %r15
	leaq	-64(%rbp), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%r14d, %r14d
	leaq	-68(%rbp), %r12
	leaq	-64(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r14
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-64(%rbp,%r14,4), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_devlink_resource_size_get
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-64(%rbp,%r14,4), %esi
	movl	-68(%rbp), %edx
	movq	%r15, %rdi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_nsim_fib_set_max
	testl	%eax, %eax
	je	LBB0_4
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	callq	_nsim_devlink_param_load_driverinit_values
	xorl	%eax, %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NSIM_RESOURCE_IPV4_FIB,4,2     ## @NSIM_RESOURCE_IPV4_FIB
	.comm	_NSIM_RESOURCE_IPV4_FIB_RULES,4,2 ## @NSIM_RESOURCE_IPV4_FIB_RULES
	.comm	_NSIM_RESOURCE_IPV6_FIB,4,2     ## @NSIM_RESOURCE_IPV6_FIB
	.comm	_NSIM_RESOURCE_IPV6_FIB_RULES,4,2 ## @NSIM_RESOURCE_IPV6_FIB_RULES
	.no_dead_strip	_nsim_dev_reload_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nsim_dev_reload_up
_nsim_dev_reload_up:                    ; @nsim_dev_reload_up
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _NSIM_RESOURCE_IPV4_FIB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NSIM_RESOURCE_IPV4_FIB@GOTPAGEOFF]
Lloh5:
	adrp	x9, _NSIM_RESOURCE_IPV4_FIB_RULES@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NSIM_RESOURCE_IPV4_FIB_RULES@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
Lloh9:
	adrp	x8, _NSIM_RESOURCE_IPV6_FIB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NSIM_RESOURCE_IPV6_FIB@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _NSIM_RESOURCE_IPV6_FIB_RULES@GOTPAGE
Lloh13:
	ldr	x9, [x9, _NSIM_RESOURCE_IPV6_FIB_RULES@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
	bl	_nsim_devlink_net
	mov	x21, x0
	add	x22, sp, #8
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x23, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22, x23, lsl #2]
	add	x2, sp, #4
	mov	x0, x19
	bl	_devlink_resource_size_get
	cbnz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x22, x23, lsl #2]
	ldr	w2, [sp, #4]
	mov	x0, x21
	mov	x3, x20
	bl	_nsim_fib_set_max
	cbz	w0, LBB0_2
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_nsim_devlink_param_load_driverinit_values
	mov	w0, #0
LBB0_6:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	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
	add	sp, sp, #96
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NSIM_RESOURCE_IPV4_FIB,4,2     ; @NSIM_RESOURCE_IPV4_FIB
	.comm	_NSIM_RESOURCE_IPV4_FIB_RULES,4,2 ; @NSIM_RESOURCE_IPV4_FIB_RULES
	.comm	_NSIM_RESOURCE_IPV6_FIB,4,2     ; @NSIM_RESOURCE_IPV6_FIB
	.comm	_NSIM_RESOURCE_IPV6_FIB_RULES,4,2 ; @NSIM_RESOURCE_IPV6_FIB_RULES
	.no_dead_strip	_nsim_dev_reload_up
.subsections_via_symbols
