	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_acl_tcam_vgroup_add
_mlxsw_sp_acl_tcam_vgroup_add:          ## @mlxsw_sp_acl_tcam_vgroup_add
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movl	16(%rbp), %eax
	movq	%rcx, 32(%rdx)
	movl	%r8d, (%rdx)
	movl	%eax, 4(%rdx)
	testq	%r9, %r9
	je	LBB0_2
## %bb.1:
	movl	$1, 8(%rbx)
	leaq	24(%rbx), %rdi
	movq	%r9, %rsi
	movl	$4, %edx
	callq	_memcpy
LBB0_2:
	leaq	20(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	12(%rbx), %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mlxsw_sp_acl_tcam_group_add
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	addq	$16, %rbx
	movq	_mlxsw_sp_acl_tcam_vchunk_ht_params@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_rhashtable_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_mlxsw_sp_acl_tcam_group_del
	jmp	LBB0_6
LBB0_4:
	xorl	%r15d, %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mlxsw_sp_acl_tcam_vchunk_ht_params,4,2 ## @mlxsw_sp_acl_tcam_vchunk_ht_params
	.no_dead_strip	_mlxsw_sp_acl_tcam_vgroup_add
.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_vgroup_add
_mlxsw_sp_acl_tcam_vgroup_add:          ; @mlxsw_sp_acl_tcam_vgroup_add
	.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, x2
	mov	x20, x1
	str	x3, [x2, #32]
	stp	w4, w6, [x2]
	cbz	x5, LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x19, #8]
	add	x0, x19, #24
	mov	x1, x5
	mov	w2, #4
	bl	_memcpy
LBB0_2:
	add	x0, x19, #20
	bl	_INIT_LIST_HEAD
	add	x21, x19, #12
	mov	x0, x20
	mov	x1, x21
	bl	_mlxsw_sp_acl_tcam_group_add
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.3:
	add	x0, x19, #16
Lloh0:
	adrp	x1, _mlxsw_sp_acl_tcam_vchunk_ht_params@GOTPAGE
Lloh1:
	ldr	x1, [x1, _mlxsw_sp_acl_tcam_vchunk_ht_params@GOTPAGEOFF]
	bl	_rhashtable_init
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_mlxsw_sp_acl_tcam_group_del
LBB0_5:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mlxsw_sp_acl_tcam_vchunk_ht_params,4,2 ; @mlxsw_sp_acl_tcam_vchunk_ht_params
	.no_dead_strip	_mlxsw_sp_acl_tcam_vgroup_add
.subsections_via_symbols
