	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_acl_tcam_init         ## -- Begin function mlxsw_sp_acl_tcam_init
	.p2align	4, 0x90
_mlxsw_sp_acl_tcam_init:                ## @mlxsw_sp_acl_tcam_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	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	leaq	56(%rsi), %rdi
	callq	_mutex_init
	movq	_MLXSW_SP_ACL_TCAM_VREGION_REHASH_INTRVL_DFLT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r15)
	leaq	48(%r15), %rdi
	callq	_INIT_LIST_HEAD
	movl	(%r14), %edi
	movq	_ACL_MAX_TCAM_REGIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLXSW_CORE_RES_GET
	movq	%rax, %r12
	movl	(%r14), %edi
	movq	_ACL_MAX_REGIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLXSW_CORE_RES_GET
	movq	%rax, %rbx
	cmpq	%rax, %r12
	cmovlq	%r12, %rbx
	movq	%rbx, %rdi
	callq	_BITS_TO_LONGS
	movslq	%eax, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_kzalloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, 40(%r15)
	movl	(%r14), %edi
	movq	_ACL_MAX_GROUPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLXSW_CORE_RES_GET
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_BITS_TO_LONGS
	movslq	%eax, %rdi
	movl	(%r12), %esi
	callq	_kzalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rbx, 32(%r15)
	movl	(%r14), %edi
	movq	_ACL_MAX_GROUP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLXSW_CORE_RES_GET
	movq	%rax, 24(%r15)
	movl	16(%r15), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	*(%r13)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	callq	_kfree
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	(%r15), %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_5:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_SP_ACL_TCAM_VREGION_REHASH_INTRVL_DFLT,4,2 ## @MLXSW_SP_ACL_TCAM_VREGION_REHASH_INTRVL_DFLT
	.comm	_ACL_MAX_TCAM_REGIONS,4,2       ## @ACL_MAX_TCAM_REGIONS
	.comm	_ACL_MAX_REGIONS,4,2            ## @ACL_MAX_REGIONS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ACL_MAX_GROUPS,4,2             ## @ACL_MAX_GROUPS
	.comm	_ACL_MAX_GROUP_SIZE,4,2         ## @ACL_MAX_GROUP_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_acl_tcam_init         ; -- Begin function mlxsw_sp_acl_tcam_init
	.p2align	2
_mlxsw_sp_acl_tcam_init:                ; @mlxsw_sp_acl_tcam_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	x19, x1
	mov	x20, x0
	ldr	x22, [x0, #8]
	add	x0, x1, #56
	bl	_mutex_init
Lloh0:
	adrp	x8, _MLXSW_SP_ACL_TCAM_VREGION_REHASH_INTRVL_DFLT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXSW_SP_ACL_TCAM_VREGION_REHASH_INTRVL_DFLT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #52]
	add	x0, x19, #48
	bl	_INIT_LIST_HEAD
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _ACL_MAX_TCAM_REGIONS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACL_MAX_TCAM_REGIONS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_MLXSW_CORE_RES_GET
	mov	x21, x0
	ldr	w0, [x20]
Lloh6:
	adrp	x8, _ACL_MAX_REGIONS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACL_MAX_REGIONS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_MLXSW_CORE_RES_GET
	cmp	x21, x0
	csel	x21, x21, x0, lt
	mov	x0, x21
	bl	_BITS_TO_LONGS
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
Lloh9:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_kzalloc
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.1:
	str	x21, [x19, #40]
	ldr	w0, [x20]
Lloh11:
	adrp	x8, _ACL_MAX_GROUPS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ACL_MAX_GROUPS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_MLXSW_CORE_RES_GET
	mov	x21, x0
	bl	_BITS_TO_LONGS
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	ldr	w1, [x23]
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.2:
	str	x21, [x19, #32]
	ldr	w0, [x20]
Lloh14:
	adrp	x8, _ACL_MAX_GROUP_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ACL_MAX_GROUP_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_MLXSW_CORE_RES_GET
	str	x0, [x19, #24]
	ldr	x8, [x22]
	ldr	w1, [x19, #16]
	mov	x0, x20
	mov	x2, x19
	blr	x8
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.3:
	ldr	x0, [x19, #8]
	bl	_kfree
	b	LBB0_6
LBB0_4:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_7
LBB0_5:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	ldr	x0, [x19]
	bl	_kfree
LBB0_7:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_SP_ACL_TCAM_VREGION_REHASH_INTRVL_DFLT,4,2 ; @MLXSW_SP_ACL_TCAM_VREGION_REHASH_INTRVL_DFLT
	.comm	_ACL_MAX_TCAM_REGIONS,4,2       ; @ACL_MAX_TCAM_REGIONS
	.comm	_ACL_MAX_REGIONS,4,2            ; @ACL_MAX_REGIONS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ACL_MAX_GROUPS,4,2             ; @ACL_MAX_GROUPS
	.comm	_ACL_MAX_GROUP_SIZE,4,2         ; @ACL_MAX_GROUP_SIZE
.subsections_via_symbols
