	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_acl_tcam_vchunk_create
_mlxsw_sp_acl_tcam_vchunk_create:       ## @mlxsw_sp_acl_tcam_vchunk_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MLXSW_SP_ACL_TCAM_CATCHALL_PRIO@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	%rcx, %r12
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r13
	leaq	40(%rax), %rdi
	callq	_INIT_LIST_HEAD
	movl	%ebx, (%r13)
	movq	%r15, 32(%r13)
	movl	$1, 4(%r13)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movq	%r12, %rcx
	callq	_mlxsw_sp_acl_tcam_vregion_get
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_3
LBB0_8:
	movq	%r12, 24(%r13)
	leaq	8(%r13), %rsi
	movq	_mlxsw_sp_acl_tcam_vchunk_ht_params@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_rhashtable_insert_fast
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	24(%r13), %rax
	movl	8(%rax), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_mlxsw_sp_acl_tcam_chunk_create
	movq	%rax, 16(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	%r12, %rdi
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	callq	_mutex_unlock
	movq	16(%r13), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_mlxsw_sp_acl_tcam_vchunk_ht_params@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_rhashtable_remove_fast
LBB0_11:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mlxsw_sp_acl_tcam_vregion_put
LBB0_12:
	movq	%r13, %rdi
	callq	_kfree
	movl	%ebx, %edi
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_13:
	callq	_mlxsw_sp_acl_tcam_rehash_ctx_vregion_changed
	movq	%r13, %rdi
	addq	$12, %rdi
	movq	%r12, %rsi
	addq	$4, %rsi
	callq	_list_add_tail
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%r13, %rax
	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_CATCHALL_PRIO,4,2 ## @MLXSW_SP_ACL_TCAM_CATCHALL_PRIO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mlxsw_sp_acl_tcam_vchunk_ht_params,4,2 ## @mlxsw_sp_acl_tcam_vchunk_ht_params
	.no_dead_strip	_mlxsw_sp_acl_tcam_vchunk_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_vchunk_create
_mlxsw_sp_acl_tcam_vchunk_create:       ; @mlxsw_sp_acl_tcam_vchunk_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
Lloh0:
	adrp	x8, _MLXSW_SP_ACL_TCAM_CATCHALL_PRIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXSW_SP_ACL_TCAM_CATCHALL_PRIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x19, x0
	add	x0, x0, #40
	bl	_INIT_LIST_HEAD
	str	x21, [x19, #32]
	mov	w8, #1
	stp	w23, w8, [x19]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	bl	_mlxsw_sp_acl_tcam_vregion_get
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x24, x0
	b	LBB0_11
LBB0_5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_7:
	str	x22, [x19, #24]
	add	x23, x19, #8
Lloh10:
	adrp	x25, _mlxsw_sp_acl_tcam_vchunk_ht_params@GOTPAGE
Lloh11:
	ldr	x25, [x25, _mlxsw_sp_acl_tcam_vchunk_ht_params@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x21
	mov	x1, x23
	bl	_rhashtable_insert_fast
	mov	x24, x0
	cbnz	w0, LBB0_10
; %bb.8:
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x19, #24]
	ldr	w2, [x8, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_mlxsw_sp_acl_tcam_chunk_create
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.9:
	mov	x0, x22
	bl	_mutex_unlock
	ldr	x0, [x19, #16]
	bl	_PTR_ERR
	mov	x24, x0
	ldr	w2, [x25]
	mov	x0, x21
	mov	x1, x23
	bl	_rhashtable_remove_fast
LBB0_10:
	mov	x0, x20
	mov	x1, x22
	bl	_mlxsw_sp_acl_tcam_vregion_put
LBB0_11:
	mov	x0, x19
	bl	_kfree
	mov	x0, x24
LBB0_12:
	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_13:
	mov	x0, x22
	bl	_mlxsw_sp_acl_tcam_rehash_ctx_vregion_changed
	add	x0, x19, #12
	add	x1, x22, #4
	bl	_list_add_tail
	mov	x0, x22
	bl	_mutex_unlock
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_SP_ACL_TCAM_CATCHALL_PRIO,4,2 ; @MLXSW_SP_ACL_TCAM_CATCHALL_PRIO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mlxsw_sp_acl_tcam_vchunk_ht_params,4,2 ; @mlxsw_sp_acl_tcam_vchunk_ht_params
	.no_dead_strip	_mlxsw_sp_acl_tcam_vchunk_create
.subsections_via_symbols
