	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_acl_init              ## -- Begin function mlxsw_sp_acl_init
	.p2align	4, 0x90
_mlxsw_sp_acl_init:                     ## @mlxsw_sp_acl_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_mlxsw_sp_acl_tcam_priv_size
	movslq	%eax, %rdi
	addq	$40, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, 8(%r12)
	movq	%r12, 32(%rax)
	movl	4(%r12), %edi
	movq	_ACL_FLEX_KEYS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLXSW_CORE_RES_GET
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_mlxsw_afk_create
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	4(%r14), %r15
	movq	_mlxsw_sp_acl_ruleset_ht_params@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_rhashtable_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movq	%r12, %rdi
	callq	_mlxsw_sp_fid_dummy_get
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_7:
	movq	%r13, 24(%r14)
	leaq	20(%r14), %rdi
	callq	_INIT_LIST_HEAD
	leaq	16(%r14), %rsi
	movq	%r12, %rdi
	callq	_mlxsw_sp_acl_tcam_init
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_mlxsw_sp_fid_put
LBB0_10:
	movq	%r15, %rdi
	callq	_rhashtable_destroy
LBB0_11:
	movl	(%r14), %edi
	callq	_mlxsw_afk_destroy
LBB0_12:
	movq	%r14, %rdi
	callq	_kfree
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %r15
	addq	$8, %r15
	movq	_mlxsw_sp_acl_rule_activity_update_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_INIT_DELAYED_WORK
	movq	_MLXSW_SP_ACL_RULE_ACTIVITY_UPDATE_PERIOD_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mlxsw_core_schedule_dw
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ACL_FLEX_KEYS,4,2              ## @ACL_FLEX_KEYS
	.comm	_mlxsw_sp_acl_ruleset_ht_params,4,2 ## @mlxsw_sp_acl_ruleset_ht_params
	.comm	_mlxsw_sp_acl_rule_activity_update_work,4,2 ## @mlxsw_sp_acl_rule_activity_update_work
	.comm	_MLXSW_SP_ACL_RULE_ACTIVITY_UPDATE_PERIOD_MS,4,2 ## @MLXSW_SP_ACL_RULE_ACTIVITY_UPDATE_PERIOD_MS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_acl_init              ; -- Begin function mlxsw_sp_acl_init
	.p2align	2
_mlxsw_sp_acl_init:                     ; @mlxsw_sp_acl_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	bl	_mlxsw_sp_acl_tcam_priv_size
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x0, x8, #40
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	str	x0, [x20, #8]
	str	x20, [x0, #32]
	ldr	w0, [x20, #4]
Lloh3:
	adrp	x8, _ACL_FLEX_KEYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACL_FLEX_KEYS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_MLXSW_CORE_RES_GET
	ldr	w1, [x20]
	bl	_mlxsw_afk_create
	str	w0, [x19]
	cbz	w0, LBB0_6
; %bb.2:
	add	x21, x19, #4
Lloh6:
	adrp	x1, _mlxsw_sp_acl_ruleset_ht_params@GOTPAGE
Lloh7:
	ldr	x1, [x1, _mlxsw_sp_acl_ruleset_ht_params@GOTPAGEOFF]
	mov	x0, x21
	bl	_rhashtable_init
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.3:
	mov	x0, x20
	bl	_mlxsw_sp_fid_dummy_get
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x23
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_9
LBB0_5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_6:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_11
LBB0_7:
	str	x23, [x19, #24]
	add	x0, x19, #20
	bl	_INIT_LIST_HEAD
	add	x1, x19, #16
	mov	x0, x20
	bl	_mlxsw_sp_acl_tcam_init
	mov	x22, x0
	cbz	w0, LBB0_13
; %bb.8:
	mov	x0, x23
	bl	_mlxsw_sp_fid_put
LBB0_9:
	mov	x0, x21
	bl	_rhashtable_destroy
LBB0_10:
	ldr	w0, [x19]
	bl	_mlxsw_afk_destroy
LBB0_11:
	mov	x0, x19
	bl	_kfree
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	add	x20, x19, #8
Lloh14:
	adrp	x8, _mlxsw_sp_acl_rule_activity_update_work@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mlxsw_sp_acl_rule_activity_update_work@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_INIT_DELAYED_WORK
Lloh17:
	adrp	x8, _MLXSW_SP_ACL_RULE_ACTIVITY_UPDATE_PERIOD_MS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MLXSW_SP_ACL_RULE_ACTIVITY_UPDATE_PERIOD_MS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	mov	x0, x20
	mov	w1, #0
	bl	_mlxsw_core_schedule_dw
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ACL_FLEX_KEYS,4,2              ; @ACL_FLEX_KEYS
	.comm	_mlxsw_sp_acl_ruleset_ht_params,4,2 ; @mlxsw_sp_acl_ruleset_ht_params
	.comm	_mlxsw_sp_acl_rule_activity_update_work,4,2 ; @mlxsw_sp_acl_rule_activity_update_work
	.comm	_MLXSW_SP_ACL_RULE_ACTIVITY_UPDATE_PERIOD_MS,4,2 ; @MLXSW_SP_ACL_RULE_ACTIVITY_UPDATE_PERIOD_MS
.subsections_via_symbols
