	.file	"extr_spectrum_acl_tcam.c_mlxsw_sp_acl_tcam_vgroup_use_patterns.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mlxsw_sp_acl_tcam_vgroup_use_patterns, @function
mlxsw_sp_acl_tcam_vgroup_use_patterns:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR 24[rdi], 0
	jne	.L2
	mov	eax, DWORD PTR [rdi]
	xor	ebx, ebx
	test	eax, eax
	jg	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	add	rbx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jle	.L4
.L3:
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, r12
	lea	rax, [rax+rbx*8]
	mov	esi, DWORD PTR 4[rax]
	mov	edx, DWORD PTR [rax]
	call	mlxsw_afk_element_usage_fill@PLT
	mov	rsi, r12
	mov	rdi, r13
	call	mlxsw_afk_element_usage_subset@PLT
	test	rax, rax
	je	.L11
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rsi, r13
	mov	rdi, r12
	mov	edx, 4
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	memcpy@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rsi, 16[rdi]
	mov	edx, 4
	mov	rdi, r12
	call	memcpy@PLT
	mov	rdi, r13
	mov	rsi, r12
	call	mlxsw_afk_element_usage_subset@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	WARN_ON@PLT
	.cfi_endproc
.LFE0:
	.size	mlxsw_sp_acl_tcam_vgroup_use_patterns, .-mlxsw_sp_acl_tcam_vgroup_use_patterns
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_spectrum_acl_tcam.c_mlxsw_sp_acl_tcam_vgroup_use_patterns.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlxsw_sp_acl_tcam_vgroup_use_patterns, %function
mlxsw_sp_acl_tcam_vgroup_use_patterns:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r0, #12]
	mov	r5, r0
	cmp	r4, #0
	mov	r7, r1
	mov	r6, r2
	bne	.L2
	ldr	r3, [r0]
	cmp	r3, #0
	ble	.L4
.L3:
	ldr	r3, [r5, #4]
	mov	r0, r6
	add	r2, r3, r4, lsl #3
	ldr	r1, [r2, #4]
	ldr	r2, [r3, r4, lsl #3]
	bl	mlxsw_afk_element_usage_fill
	mov	r1, r6
	mov	r0, r7
	bl	mlxsw_afk_element_usage_subset
	cmp	r0, #0
	add	r4, r4, #1
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r5]
	cmp	r3, r4
	bgt	.L3
.L4:
	mov	r1, r7
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r2, #4
	b	memcpy
.L2:
	add	r1, r0, #8
	mov	r2, #4
	mov	r0, r6
	bl	memcpy
	mov	r1, r6
	mov	r0, r7
	bl	mlxsw_afk_element_usage_subset
	pop	{r4, r5, r6, r7, r8, lr}
	clz	r0, r0
	lsr	r0, r0, #5
	b	WARN_ON
	.size	mlxsw_sp_acl_tcam_vgroup_use_patterns, .-mlxsw_sp_acl_tcam_vgroup_use_patterns
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
