	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_acl_tcam_vregion_create
_mlxsw_sp_acl_tcam_vregion_create:      ## @mlxsw_sp_acl_tcam_vregion_create
	.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	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %edi
	callq	_mlxsw_sp_acl_afk
	movq	%rax, %r14
	movq	8(%r12), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	leaq	52(%rax), %rdi
	callq	_INIT_LIST_HEAD
	leaq	48(%rbx), %rdi
	callq	_mutex_init
	movq	%r13, 40(%rbx)
	movq	%r15, 32(%rbx)
	movq	%r12, 24(%rbx)
	movl	$1, (%rbx)
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_mlxsw_afk_key_info_get
	movl	%eax, 4(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	4(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_2
LBB0_5:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_mlxsw_sp_acl_tcam_region_create
	movl	%eax, 8(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	8(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_13
LBB0_7:
	movq	%r13, %r14
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_mlxsw_sp_acl_tcam_vgroup_vregion_attach
	testl	%eax, %eax
	je	LBB0_8
## %bb.12:
	movl	%eax, %r13d
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	callq	_mlxsw_sp_acl_tcam_region_destroy
LBB0_13:
	movl	4(%rbx), %edi
	callq	_mlxsw_afk_key_info_put
LBB0_14:
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r13d, %edi
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_8:
	cmpq	$0, (%r12)
	je	LBB0_11
## %bb.9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.10:
	leaq	16(%rbx), %rdi
	movq	_mlxsw_sp_acl_tcam_vregion_rehash_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	%rbx, %rdi
	callq	_mlxsw_sp_acl_tcam_vregion_rehash_work_schedule
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	addq	$12, %rdi
	leaq	4(%r14), %rsi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_11:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mlxsw_sp_acl_tcam_vregion_rehash_work,4,2 ## @mlxsw_sp_acl_tcam_vregion_rehash_work
	.no_dead_strip	_mlxsw_sp_acl_tcam_vregion_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_acl_tcam_vregion_create
_mlxsw_sp_acl_tcam_vregion_create:      ; @mlxsw_sp_acl_tcam_vregion_create
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x24, x3
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x26, [x0, #8]
	ldr	w0, [x0]
	bl	_mlxsw_sp_acl_afk
	mov	x25, x0
	ldr	x20, [x22, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x0, x0, #52
	bl	_INIT_LIST_HEAD
	add	x0, x19, #48
	bl	_mutex_init
	stp	x21, x20, [x19, #32]
	str	x22, [x19, #24]
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x25
	mov	x1, x24
	bl	_mlxsw_afk_key_info_get
	str	w0, [x19, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x19, #4]
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_9
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_4:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, #0
	bl	_mlxsw_sp_acl_tcam_region_create
	str	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #8]
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_8
LBB0_6:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	mov	x3, x23
	bl	_mlxsw_sp_acl_tcam_vgroup_vregion_attach
	cbz	w0, LBB0_11
; %bb.7:
	mov	x23, x0
	ldr	w1, [x19, #8]
	mov	x0, x21
	bl	_mlxsw_sp_acl_tcam_region_destroy
LBB0_8:
	ldr	w0, [x19, #4]
	bl	_mlxsw_afk_key_info_put
LBB0_9:
	mov	x0, x19
	bl	_kfree
	mov	x0, x23
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_11:
	ldr	x8, [x22]
	cbz	x8, LBB0_14
; %bb.12:
	ldr	x8, [x26]
	cbz	x8, LBB0_14
; %bb.13:
	add	x0, x19, #16
Lloh6:
	adrp	x8, _mlxsw_sp_acl_tcam_vregion_rehash_work@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mlxsw_sp_acl_tcam_vregion_rehash_work@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	mov	x0, x19
	bl	_mlxsw_sp_acl_tcam_vregion_rehash_work_schedule
	mov	x0, x20
	bl	_mutex_lock
	add	x0, x19, #12
	add	x1, x20, #4
	bl	_list_add_tail
	mov	x0, x20
	bl	_mutex_unlock
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mlxsw_sp_acl_tcam_vregion_rehash_work,4,2 ; @mlxsw_sp_acl_tcam_vregion_rehash_work
	.no_dead_strip	_mlxsw_sp_acl_tcam_vregion_create
.subsections_via_symbols
