	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_router_init           ## -- Begin function mlxsw_sp_router_init
	.p2align	4, 0x90
_mlxsw_sp_router_init:                  ## @mlxsw_sp_router_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, (%r14)
	movq	%r14, 32(%rax)
	movq	_mlxsw_sp_inetaddr_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_register_inetaddr_notifier
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_30
## %bb.3:
	movq	_mlxsw_sp_inet6addr_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r12, %r15
	addq	$4, %r15
	movl	%eax, 4(%r12)
	movq	%r15, %rdi
	callq	_register_inet6addr_notifier
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_29
## %bb.4:
	movq	(%r14), %rdi
	addq	$28, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, %rdi
	callq	___mlxsw_sp_router_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_28
## %bb.5:
	movq	%r14, %rdi
	callq	_mlxsw_sp_rifs_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.6:
	movq	%r14, %rdi
	callq	_mlxsw_sp_ipips_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_26
## %bb.7:
	movq	(%r14), %rdi
	addq	$8, %rdi
	movq	_mlxsw_sp_nexthop_ht_params@GOTPCREL(%rip), %rsi
	callq	_rhashtable_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.8:
	movq	(%r14), %rdi
	addq	$12, %rdi
	movq	_mlxsw_sp_nexthop_group_ht_params@GOTPCREL(%rip), %rsi
	callq	_rhashtable_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.9:
	movq	(%r14), %rdi
	addq	$24, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, %rdi
	callq	_mlxsw_sp_lpm_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_23
## %bb.10:
	movq	_mlxsw_sp_mr_tcam_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_mlxsw_sp_mr_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.11:
	movq	%r14, %rdi
	callq	_mlxsw_sp_vrs_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.12:
	movq	%r14, %rdi
	callq	_mlxsw_sp_neigh_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.13:
	movq	_mlxsw_sp_router_netevent_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rdi
	movl	%eax, 16(%rdi)
	addq	$16, %rdi
	callq	_register_netevent_notifier
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.14:
	movq	%r14, %rdi
	callq	_mlxsw_sp_mp_hash_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.15:
	movq	%r14, %rdi
	callq	_mlxsw_sp_dscp_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.16:
	movq	_mlxsw_sp_router_fib_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rdi
	movl	%eax, 20(%rdi)
	addq	$20, %rdi
	movq	_mlxsw_sp_router_fib_dump_flush@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_register_fib_notifier
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_17
LBB0_18:
	movq	(%r14), %rdi
	addq	$16, %rdi
	callq	_unregister_netevent_notifier
LBB0_19:
	movq	%r14, %rdi
	callq	_mlxsw_sp_neigh_fini
LBB0_20:
	movq	%r14, %rdi
	callq	_mlxsw_sp_vrs_fini
LBB0_21:
	movq	%r14, %rdi
	callq	_mlxsw_sp_mr_fini
LBB0_22:
	movq	%r14, %rdi
	callq	_mlxsw_sp_lpm_fini
LBB0_23:
	movq	(%r14), %rdi
	addq	$12, %rdi
	callq	_rhashtable_destroy
LBB0_24:
	movq	(%r14), %rdi
	addq	$8, %rdi
	callq	_rhashtable_destroy
LBB0_25:
	movq	%r14, %rdi
	callq	_mlxsw_sp_ipips_fini
LBB0_26:
	movq	%r14, %rdi
	callq	_mlxsw_sp_rifs_fini
LBB0_27:
	movq	%r14, %rdi
	callq	___mlxsw_sp_router_fini
LBB0_28:
	movq	%r15, %rdi
	callq	_unregister_inet6addr_notifier
LBB0_29:
	movq	%r12, %rdi
	callq	_unregister_inetaddr_notifier
LBB0_30:
	movq	(%r14), %rdi
	callq	_kfree
	jmp	LBB0_31
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_31:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	xorl	%ebx, %ebx
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mlxsw_sp_inetaddr_event,4,2    ## @mlxsw_sp_inetaddr_event
	.comm	_mlxsw_sp_inet6addr_event,4,2   ## @mlxsw_sp_inet6addr_event
	.comm	_mlxsw_sp_nexthop_ht_params,4,2 ## @mlxsw_sp_nexthop_ht_params
	.comm	_mlxsw_sp_nexthop_group_ht_params,4,2 ## @mlxsw_sp_nexthop_group_ht_params
	.comm	_mlxsw_sp_mr_tcam_ops,4,2       ## @mlxsw_sp_mr_tcam_ops
	.comm	_mlxsw_sp_router_netevent_event,4,2 ## @mlxsw_sp_router_netevent_event
	.comm	_mlxsw_sp_router_fib_event,4,2  ## @mlxsw_sp_router_fib_event
	.comm	_mlxsw_sp_router_fib_dump_flush,4,2 ## @mlxsw_sp_router_fib_dump_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_router_init           ; -- Begin function mlxsw_sp_router_init
	.p2align	2
_mlxsw_sp_router_init:                  ; @mlxsw_sp_router_init
	.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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_29
; %bb.1:
	mov	x20, x0
	str	x0, [x19]
	str	x19, [x0, #32]
Lloh3:
	adrp	x8, _mlxsw_sp_inetaddr_event@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mlxsw_sp_inetaddr_event@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0]
	bl	_register_inetaddr_notifier
	mov	x22, x0
	cbnz	w0, LBB0_28
; %bb.2:
Lloh6:
	adrp	x8, _mlxsw_sp_inet6addr_event@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mlxsw_sp_inet6addr_event@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	x21, x20
	str	w8, [x21, #4]!
	mov	x0, x21
	bl	_register_inet6addr_notifier
	mov	x22, x0
	cbnz	w0, LBB0_27
; %bb.3:
	ldr	x8, [x19]
	add	x0, x8, #28
	bl	_INIT_LIST_HEAD
	mov	x0, x19
	bl	___mlxsw_sp_router_init
	mov	x22, x0
	cbnz	w0, LBB0_26
; %bb.4:
	mov	x0, x19
	bl	_mlxsw_sp_rifs_init
	mov	x22, x0
	cbnz	w0, LBB0_25
; %bb.5:
	mov	x0, x19
	bl	_mlxsw_sp_ipips_init
	mov	x22, x0
	cbnz	w0, LBB0_24
; %bb.6:
	ldr	x8, [x19]
	add	x0, x8, #8
Lloh9:
	adrp	x1, _mlxsw_sp_nexthop_ht_params@GOTPAGE
Lloh10:
	ldr	x1, [x1, _mlxsw_sp_nexthop_ht_params@GOTPAGEOFF]
	bl	_rhashtable_init
	mov	x22, x0
	cbnz	w0, LBB0_23
; %bb.7:
	ldr	x8, [x19]
	add	x0, x8, #12
Lloh11:
	adrp	x1, _mlxsw_sp_nexthop_group_ht_params@GOTPAGE
Lloh12:
	ldr	x1, [x1, _mlxsw_sp_nexthop_group_ht_params@GOTPAGEOFF]
	bl	_rhashtable_init
	mov	x22, x0
	cbnz	w0, LBB0_22
; %bb.8:
	ldr	x8, [x19]
	add	x0, x8, #24
	bl	_INIT_LIST_HEAD
	mov	x0, x19
	bl	_mlxsw_sp_lpm_init
	mov	x22, x0
	cbnz	w0, LBB0_21
; %bb.9:
Lloh13:
	adrp	x1, _mlxsw_sp_mr_tcam_ops@GOTPAGE
Lloh14:
	ldr	x1, [x1, _mlxsw_sp_mr_tcam_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_mlxsw_sp_mr_init
	mov	x22, x0
	cbnz	w0, LBB0_20
; %bb.10:
	mov	x0, x19
	bl	_mlxsw_sp_vrs_init
	mov	x22, x0
	cbnz	w0, LBB0_19
; %bb.11:
	mov	x0, x19
	bl	_mlxsw_sp_neigh_init
	mov	x22, x0
	cbnz	w0, LBB0_18
; %bb.12:
Lloh15:
	adrp	x8, _mlxsw_sp_router_netevent_event@GOTPAGE
Lloh16:
	ldr	x8, [x8, _mlxsw_sp_router_netevent_event@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	x0, [x19]
	str	w8, [x0, #16]!
	bl	_register_netevent_notifier
	mov	x22, x0
	cbnz	w0, LBB0_17
; %bb.13:
	mov	x0, x19
	bl	_mlxsw_sp_mp_hash_init
	mov	x22, x0
	cbnz	w0, LBB0_16
; %bb.14:
	mov	x0, x19
	bl	_mlxsw_sp_dscp_init
	mov	x22, x0
	cbnz	w0, LBB0_16
; %bb.15:
Lloh18:
	adrp	x8, _mlxsw_sp_router_fib_event@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mlxsw_sp_router_fib_event@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	x0, [x19]
	str	w8, [x0, #20]!
Lloh21:
	adrp	x8, _mlxsw_sp_router_fib_dump_flush@GOTPAGE
Lloh22:
	ldr	x8, [x8, _mlxsw_sp_router_fib_dump_flush@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_register_fib_notifier
	mov	x22, x0
	cbz	w0, LBB0_30
LBB0_16:
	ldr	x8, [x19]
	add	x0, x8, #16
	bl	_unregister_netevent_notifier
LBB0_17:
	mov	x0, x19
	bl	_mlxsw_sp_neigh_fini
LBB0_18:
	mov	x0, x19
	bl	_mlxsw_sp_vrs_fini
LBB0_19:
	mov	x0, x19
	bl	_mlxsw_sp_mr_fini
LBB0_20:
	mov	x0, x19
	bl	_mlxsw_sp_lpm_fini
LBB0_21:
	ldr	x8, [x19]
	add	x0, x8, #12
	bl	_rhashtable_destroy
LBB0_22:
	ldr	x8, [x19]
	add	x0, x8, #8
	bl	_rhashtable_destroy
LBB0_23:
	mov	x0, x19
	bl	_mlxsw_sp_ipips_fini
LBB0_24:
	mov	x0, x19
	bl	_mlxsw_sp_rifs_fini
LBB0_25:
	mov	x0, x19
	bl	___mlxsw_sp_router_fini
LBB0_26:
	mov	x0, x21
	bl	_unregister_inet6addr_notifier
LBB0_27:
	mov	x0, x20
	bl	_unregister_inetaddr_notifier
LBB0_28:
	ldr	x0, [x19]
	bl	_kfree
	b	LBB0_30
LBB0_29:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_30:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mlxsw_sp_inetaddr_event,4,2    ; @mlxsw_sp_inetaddr_event
	.comm	_mlxsw_sp_inet6addr_event,4,2   ; @mlxsw_sp_inet6addr_event
	.comm	_mlxsw_sp_nexthop_ht_params,4,2 ; @mlxsw_sp_nexthop_ht_params
	.comm	_mlxsw_sp_nexthop_group_ht_params,4,2 ; @mlxsw_sp_nexthop_group_ht_params
	.comm	_mlxsw_sp_mr_tcam_ops,4,2       ; @mlxsw_sp_mr_tcam_ops
	.comm	_mlxsw_sp_router_netevent_event,4,2 ; @mlxsw_sp_router_netevent_event
	.comm	_mlxsw_sp_router_fib_event,4,2  ; @mlxsw_sp_router_fib_event
	.comm	_mlxsw_sp_router_fib_dump_flush,4,2 ; @mlxsw_sp_router_fib_dump_flush
.subsections_via_symbols
