	.file	"extr_ocrdma_main.c_ocrdma_del_sgid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ocrdma_del_sgid, @function
ocrdma_del_sgid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r13, 4[rsp]
	mov	rdi, r13
	call	ocrdma_build_sgid_mac@PLT
	xor	esi, esi
	mov	rdi, r12
	call	spin_lock_irqsave@PLT
	cmp	DWORD PTR OCRDMA_MAX_SGID[rip], 1
	jle	.L2
	xor	eax, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	lea	edx, 1[rbx]
	cmp	DWORD PTR OCRDMA_MAX_SGID[rip], edx
	mov	rax, rbx
	jle	.L2
.L5:
	mov	rdi, QWORD PTR 8[r12]
	lea	rbx, 1[rax]
	mov	edx, 4
	mov	rsi, r13
	lea	rbp, 0[0+rbx*4]
	add	rdi, rbp
	call	memcmp@PLT
	test	eax, eax
	jne	.L3
	mov	rdi, QWORD PTR 8[r12]
	mov	edx, 4
	xor	esi, esi
	mov	r13d, 1
	add	rdi, rbp
	call	memset@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	xor	r13d, r13d
.L4:
	xor	esi, esi
	mov	rdi, r12
	call	spin_unlock_irqrestore@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ocrdma_del_sgid, .-ocrdma_del_sgid
	.comm	OCRDMA_MAX_SGID,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_ocrdma_main.c_ocrdma_del_sgid.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocrdma_del_sgid, %function
ocrdma_del_sgid:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r7, r0
	sub	sp, sp, #12
	ldr	ip, .L11
	mov	r0, sp
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	bl	ocrdma_build_sgid_mac
	mov	r0, r7
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r3, .L11+4
	ldr	r6, [r3]
	cmp	r6, #1
	ble	.L6
	ldr	r4, [r7, #4]
	mov	r5, #1
	add	r4, r4, #4
	b	.L4
.L3:
	add	r5, r5, #1
	cmp	r5, r6
	add	r4, r4, #4
	beq	.L6
.L4:
	mov	r2, #4
	mov	r1, sp
	mov	r0, r4
	bl	memcmp
	cmp	r0, #0
	bne	.L3
	strb	r0, [r4]
	strb	r0, [r4, #1]
	strb	r0, [r4, #2]
	strb	r0, [r4, #3]
	mov	r4, #1
	b	.L2
.L6:
	mov	r4, #0
.L2:
	mov	r0, r7
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	OCRDMA_MAX_SGID
	.size	ocrdma_del_sgid, .-ocrdma_del_sgid
	.comm	OCRDMA_MAX_SGID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
