	.file	"extr_spectrum_acl.c_mlxsw_sp_acl_rule_create.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mlxsw_sp_acl_rule_create
	.type	mlxsw_sp_acl_rule_create, @function
mlxsw_sp_acl_rule_create:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r12, QWORD PTR [rsi]
	mov	rbx, rdx
	call	mlxsw_sp_acl_ruleset_ref_inc@PLT
	mov	rdi, QWORD PTR [r12]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	add	rdi, 24
	call	kzalloc@PLT
	test	rax, rax
	je	.L7
	mov	QWORD PTR [rax], rbx
	mov	edi, DWORD PTR 0[r13]
	mov	rsi, r14
	mov	r12, rax
	mov	QWORD PTR 16[rax], rbp
	call	mlxsw_sp_acl_rulei_create@PLT
	mov	DWORD PTR 8[r12], eax
	mov	edi, eax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L8
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	r14d, DWORD PTR ENOMEM[rip]
	neg	r14d
.L3:
	mov	rdi, r13
	mov	rsi, rbp
	call	mlxsw_sp_acl_ruleset_ref_dec@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edi, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	ERR_PTR@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[r12]
	call	PTR_ERR@PLT
	mov	rdi, r12
	mov	r14d, eax
	call	kfree@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	mlxsw_sp_acl_rule_create, .-mlxsw_sp_acl_rule_create
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.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.c_mlxsw_sp_acl_rule_create.c"
	.text
	.align	2
	.global	mlxsw_sp_acl_rule_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlxsw_sp_acl_rule_create, %function
mlxsw_sp_acl_rule_create:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r1]
	mov	r6, r0
	mov	r0, r1
	mov	r5, r1
	mov	r8, r2
	mov	r7, r3
	bl	mlxsw_sp_acl_ruleset_ref_inc
	ldr	r0, [r4]
	ldr	r3, .L9
	add	r0, r0, #12
	ldr	r1, [r3]
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L7
	mov	r1, r7
	ldr	r0, [r6]
	str	r8, [r4]
	str	r5, [r4, #8]
	bl	mlxsw_sp_acl_rulei_create
	str	r0, [r4, #4]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L8
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r3, .L9+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L3:
	mov	r1, r5
	mov	r0, r6
	bl	mlxsw_sp_acl_ruleset_ref_dec
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	ERR_PTR
.L8:
	ldr	r0, [r4, #4]
	bl	PTR_ERR
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	kfree
	b	.L3
.L10:
	.align	2
.L9:
	.word	GFP_KERNEL
	.word	ENOMEM
	.size	mlxsw_sp_acl_rule_create, .-mlxsw_sp_acl_rule_create
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
