	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nsim_dev_resources_register
_nsim_dev_resources_register:           ## @nsim_dev_resources_register
	.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
	movq	%rdi, %r15
	movl	$1, -56(%rbp)
	movq	_DEVLINK_RESOURCE_UNIT_ENTRY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	$-1, -48(%rbp)
	callq	_nsim_devlink_net
	movq	%rax, %r14
	movq	_NSIM_RESOURCE_IPV4@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	_DEVLINK_RESOURCE_ID_PARENT_TOP@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %r9
	movq	%r15, %rdi
	movq	$-1, %rdx
	callq	_devlink_resource_register
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_13
LBB0_2:
	movq	_NSIM_RESOURCE_IPV4_FIB@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_nsim_fib_get_val
	movl	(%rbx), %ecx
	movl	(%r12), %r8d
	leaq	L_.str.2(%rip), %rsi
	leaq	-56(%rbp), %r9
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_devlink_resource_register
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_13
LBB0_4:
	movq	_NSIM_RESOURCE_IPV4_FIB_RULES@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_nsim_fib_get_val
	movl	(%rbx), %ecx
	movl	(%r12), %r8d
	leaq	L_.str.4(%rip), %rsi
	leaq	-56(%rbp), %r9
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_devlink_resource_register
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_13
LBB0_6:
	movq	_NSIM_RESOURCE_IPV6@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movl	(%r13), %r8d
	leaq	L_.str.6(%rip), %rsi
	leaq	-56(%rbp), %r9
	movq	%r15, %rdi
	movq	$-1, %rdx
	callq	_devlink_resource_register
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_13
LBB0_8:
	movq	_NSIM_RESOURCE_IPV6_FIB@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_nsim_fib_get_val
	movl	(%r13), %ecx
	movl	(%r12), %r8d
	leaq	L_.str.2(%rip), %rsi
	leaq	-56(%rbp), %r9
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_devlink_resource_register
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_13
LBB0_10:
	movq	_NSIM_RESOURCE_IPV6_FIB_RULES@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_nsim_fib_get_val
	movl	(%rbx), %ecx
	movl	(%r12), %r8d
	leaq	L_.str.4(%rip), %rsi
	leaq	-56(%rbp), %r9
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_devlink_resource_register
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.9(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_13
LBB0_12:
	movq	_NSIM_RESOURCE_IPV4_FIB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_nsim_dev_ipv4_fib_resource_occ_get@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_devlink_resource_occ_get_register
	movq	_NSIM_RESOURCE_IPV4_FIB_RULES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_nsim_dev_ipv4_fib_rules_res_occ_get@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_devlink_resource_occ_get_register
	movl	(%r13), %esi
	movq	_nsim_dev_ipv6_fib_resource_occ_get@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_devlink_resource_occ_get_register
	movq	_NSIM_RESOURCE_IPV6_FIB_RULES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_nsim_dev_ipv6_fib_rules_res_occ_get@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_devlink_resource_occ_get_register
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEVLINK_RESOURCE_UNIT_ENTRY,4,2 ## @DEVLINK_RESOURCE_UNIT_ENTRY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IPv4"

	.comm	_NSIM_RESOURCE_IPV4,4,2         ## @NSIM_RESOURCE_IPV4
	.comm	_DEVLINK_RESOURCE_ID_PARENT_TOP,4,2 ## @DEVLINK_RESOURCE_ID_PARENT_TOP
L_.str.1:                               ## @.str.1
	.asciz	"Failed to register IPv4 top resource\n"

	.comm	_NSIM_RESOURCE_IPV4_FIB,4,2     ## @NSIM_RESOURCE_IPV4_FIB
L_.str.2:                               ## @.str.2
	.asciz	"fib"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to register IPv4 FIB resource\n"

	.comm	_NSIM_RESOURCE_IPV4_FIB_RULES,4,2 ## @NSIM_RESOURCE_IPV4_FIB_RULES
L_.str.4:                               ## @.str.4
	.asciz	"fib-rules"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to register IPv4 FIB rules resource\n"

L_.str.6:                               ## @.str.6
	.asciz	"IPv6"

	.comm	_NSIM_RESOURCE_IPV6,4,2         ## @NSIM_RESOURCE_IPV6
L_.str.7:                               ## @.str.7
	.asciz	"Failed to register IPv6 top resource\n"

	.comm	_NSIM_RESOURCE_IPV6_FIB,4,2     ## @NSIM_RESOURCE_IPV6_FIB
L_.str.8:                               ## @.str.8
	.asciz	"Failed to register IPv6 FIB resource\n"

	.comm	_NSIM_RESOURCE_IPV6_FIB_RULES,4,2 ## @NSIM_RESOURCE_IPV6_FIB_RULES
L_.str.9:                               ## @.str.9
	.asciz	"Failed to register IPv6 FIB rules resource\n"

	.comm	_nsim_dev_ipv4_fib_resource_occ_get,4,2 ## @nsim_dev_ipv4_fib_resource_occ_get
	.comm	_nsim_dev_ipv4_fib_rules_res_occ_get,4,2 ## @nsim_dev_ipv4_fib_rules_res_occ_get
	.comm	_nsim_dev_ipv6_fib_resource_occ_get,4,2 ## @nsim_dev_ipv6_fib_resource_occ_get
	.comm	_nsim_dev_ipv6_fib_rules_res_occ_get,4,2 ## @nsim_dev_ipv6_fib_rules_res_occ_get
	.no_dead_strip	_nsim_dev_resources_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nsim_dev_resources_register
_nsim_dev_resources_register:           ; @nsim_dev_resources_register
	.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, x0
Lloh0:
	adrp	x8, _DEVLINK_RESOURCE_UNIT_ENTRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEVLINK_RESOURCE_UNIT_ENTRY@GOTPAGEOFF]
	mov	w9, #1
Lloh2:
	ldr	w8, [x8]
	stp	w9, w8, [sp]
	mov	x8, #-1
	str	x8, [sp, #8]
	bl	_nsim_devlink_net
	mov	x20, x0
Lloh3:
	adrp	x25, _NSIM_RESOURCE_IPV4@GOTPAGE
Lloh4:
	ldr	x25, [x25, _NSIM_RESOURCE_IPV4@GOTPAGEOFF]
	ldr	w3, [x25]
Lloh5:
	adrp	x24, _DEVLINK_RESOURCE_ID_PARENT_TOP@GOTPAGE
Lloh6:
	ldr	x24, [x24, _DEVLINK_RESOURCE_ID_PARENT_TOP@GOTPAGEOFF]
	ldr	w4, [x24]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x5, sp
	mov	x0, x19
	mov	x2, #-1
	bl	_devlink_resource_register
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_13
LBB0_2:
Lloh11:
	adrp	x22, _NSIM_RESOURCE_IPV4_FIB@GOTPAGE
Lloh12:
	ldr	x22, [x22, _NSIM_RESOURCE_IPV4_FIB@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #1
	bl	_nsim_fib_get_val
	mov	x2, x0
	ldr	w3, [x22]
	ldr	w4, [x25]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x5, sp
	mov	x0, x19
	bl	_devlink_resource_register
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
	b	LBB0_13
LBB0_4:
Lloh17:
	adrp	x23, _NSIM_RESOURCE_IPV4_FIB_RULES@GOTPAGE
Lloh18:
	ldr	x23, [x23, _NSIM_RESOURCE_IPV4_FIB_RULES@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #1
	bl	_nsim_fib_get_val
	mov	x2, x0
	ldr	w3, [x23]
	ldr	w4, [x25]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x5, sp
	mov	x0, x19
	bl	_devlink_resource_register
	cbz	w0, LBB0_6
; %bb.5:
	mov	x21, x0
Lloh21:
	adrp	x0, l_.str.5@PAGE
Lloh22:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_err
	b	LBB0_13
LBB0_6:
Lloh23:
	adrp	x25, _NSIM_RESOURCE_IPV6@GOTPAGE
Lloh24:
	ldr	x25, [x25, _NSIM_RESOURCE_IPV6@GOTPAGEOFF]
	ldr	w3, [x25]
	ldr	w4, [x24]
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x5, sp
	mov	x0, x19
	mov	x2, #-1
	bl	_devlink_resource_register
	cbz	w0, LBB0_8
; %bb.7:
	mov	x21, x0
Lloh27:
	adrp	x0, l_.str.7@PAGE
Lloh28:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_pr_err
	b	LBB0_13
LBB0_8:
Lloh29:
	adrp	x24, _NSIM_RESOURCE_IPV6_FIB@GOTPAGE
Lloh30:
	ldr	x24, [x24, _NSIM_RESOURCE_IPV6_FIB@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	mov	w2, #1
	bl	_nsim_fib_get_val
	mov	x2, x0
	ldr	w3, [x24]
	ldr	w4, [x25]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x5, sp
	mov	x0, x19
	bl	_devlink_resource_register
	cbz	w0, LBB0_10
; %bb.9:
	mov	x21, x0
Lloh33:
	adrp	x0, l_.str.8@PAGE
Lloh34:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_pr_err
	b	LBB0_13
LBB0_10:
Lloh35:
	adrp	x26, _NSIM_RESOURCE_IPV6_FIB_RULES@GOTPAGE
Lloh36:
	ldr	x26, [x26, _NSIM_RESOURCE_IPV6_FIB_RULES@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x20
	mov	w2, #1
	bl	_nsim_fib_get_val
	mov	x2, x0
	ldr	w3, [x26]
	ldr	w4, [x25]
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x5, sp
	mov	x0, x19
	bl	_devlink_resource_register
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.11:
Lloh39:
	adrp	x0, l_.str.9@PAGE
Lloh40:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_pr_err
	b	LBB0_13
LBB0_12:
	ldr	w1, [x22]
Lloh41:
	adrp	x8, _nsim_dev_ipv4_fib_resource_occ_get@GOTPAGE
Lloh42:
	ldr	x8, [x8, _nsim_dev_ipv4_fib_resource_occ_get@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_devlink_resource_occ_get_register
	ldr	w1, [x23]
Lloh44:
	adrp	x8, _nsim_dev_ipv4_fib_rules_res_occ_get@GOTPAGE
Lloh45:
	ldr	x8, [x8, _nsim_dev_ipv4_fib_rules_res_occ_get@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_devlink_resource_occ_get_register
	ldr	w1, [x24]
Lloh47:
	adrp	x8, _nsim_dev_ipv6_fib_resource_occ_get@GOTPAGE
Lloh48:
	ldr	x8, [x8, _nsim_dev_ipv6_fib_resource_occ_get@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_devlink_resource_occ_get_register
	ldr	w1, [x26]
Lloh50:
	adrp	x8, _nsim_dev_ipv6_fib_rules_res_occ_get@GOTPAGE
Lloh51:
	ldr	x8, [x8, _nsim_dev_ipv6_fib_rules_res_occ_get@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_devlink_resource_occ_get_register
LBB0_13:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_DEVLINK_RESOURCE_UNIT_ENTRY,4,2 ; @DEVLINK_RESOURCE_UNIT_ENTRY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IPv4"

	.comm	_NSIM_RESOURCE_IPV4,4,2         ; @NSIM_RESOURCE_IPV4
	.comm	_DEVLINK_RESOURCE_ID_PARENT_TOP,4,2 ; @DEVLINK_RESOURCE_ID_PARENT_TOP
l_.str.1:                               ; @.str.1
	.asciz	"Failed to register IPv4 top resource\n"

	.comm	_NSIM_RESOURCE_IPV4_FIB,4,2     ; @NSIM_RESOURCE_IPV4_FIB
l_.str.2:                               ; @.str.2
	.asciz	"fib"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to register IPv4 FIB resource\n"

	.comm	_NSIM_RESOURCE_IPV4_FIB_RULES,4,2 ; @NSIM_RESOURCE_IPV4_FIB_RULES
l_.str.4:                               ; @.str.4
	.asciz	"fib-rules"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to register IPv4 FIB rules resource\n"

l_.str.6:                               ; @.str.6
	.asciz	"IPv6"

	.comm	_NSIM_RESOURCE_IPV6,4,2         ; @NSIM_RESOURCE_IPV6
l_.str.7:                               ; @.str.7
	.asciz	"Failed to register IPv6 top resource\n"

	.comm	_NSIM_RESOURCE_IPV6_FIB,4,2     ; @NSIM_RESOURCE_IPV6_FIB
l_.str.8:                               ; @.str.8
	.asciz	"Failed to register IPv6 FIB resource\n"

	.comm	_NSIM_RESOURCE_IPV6_FIB_RULES,4,2 ; @NSIM_RESOURCE_IPV6_FIB_RULES
l_.str.9:                               ; @.str.9
	.asciz	"Failed to register IPv6 FIB rules resource\n"

	.comm	_nsim_dev_ipv4_fib_resource_occ_get,4,2 ; @nsim_dev_ipv4_fib_resource_occ_get
	.comm	_nsim_dev_ipv4_fib_rules_res_occ_get,4,2 ; @nsim_dev_ipv4_fib_rules_res_occ_get
	.comm	_nsim_dev_ipv6_fib_resource_occ_get,4,2 ; @nsim_dev_ipv6_fib_resource_occ_get
	.comm	_nsim_dev_ipv6_fib_rules_res_occ_get,4,2 ; @nsim_dev_ipv6_fib_rules_res_occ_get
	.no_dead_strip	_nsim_dev_resources_register
.subsections_via_symbols
