	.file	"extr_fman_port.c_fman_port_remove_congestion_grps.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	fman_port_remove_congestion_grps
	.type	fman_port_remove_congestion_grps, @function
fman_port_remove_congestion_grps:
.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, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR [rdi]
	cmp	eax, 129
	jle	.L17
	cmp	eax, 130
	jne	.L4
	cmp	DWORD PTR 4[rdi], 4
	jne	.L4
	mov	rax, QWORD PTR 8[rdi]
	mov	rbp, QWORD PTR [rax]
.L15:
	xor	ebx, ebx
.L7:
	movsx	rbx, ebx
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR [r12+rbx*4]
	test	eax, eax
	je	.L10
	lea	r13, 0[rbp+rbx*4]
	mov	rdi, r13
	call	ioread32be@PLT
	mov	edi, DWORD PTR [r12+rbx*4]
	mov	rsi, r13
	not	edi
	and	edi, eax
	call	iowrite32be@PLT
.L10:
	sub	rbx, 1
	test	ebx, ebx
	jns	.L11
	xor	eax, eax
.L1:
	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
.L17:
	.cfi_restore_state
	cmp	eax, 127
	jg	.L18
.L4:
	mov	eax, DWORD PTR EINVAL[rip]
	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
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rdi]
	cmp	DWORD PTR 4[rdi], 4
	mov	ebx, DWORD PTR FMAN_PORT_CG_MAP_NUM[rip]
	mov	rbp, QWORD PTR 8[rax]
	je	.L15
	sub	ebx, 1
	jns	.L7
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	fman_port_remove_congestion_grps, .-fman_port_remove_congestion_grps
	.comm	FMAN_PORT_CG_MAP_NUM,4,4
	.comm	EINVAL,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_fman_port.c_fman_port_remove_congestion_grps.c"
	.text
	.align	2
	.global	fman_port_remove_congestion_grps
	.syntax unified
	.arm
	.fpu softvfp
	.type	fman_port_remove_congestion_grps, %function
fman_port_remove_congestion_grps:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #129
	ble	.L19
	cmp	r3, #130
	bne	.L4
	ldr	r3, [r0, #4]
	cmp	r3, #4
	bne	.L4
	mov	r4, #0
	ldr	r3, [r0, #8]
	ldr	r7, [r3]
.L7:
	add	r5, r4, #1
	add	r5, r1, r5, lsl #2
.L11:
	ldr	r3, [r5, #-4]!
	add	r6, r7, r4, lsl #2
	cmp	r3, #0
	sub	r4, r4, #1
	beq	.L10
	mov	r0, r6
	bl	ioread32be
	ldr	r3, [r5]
	mov	r1, r6
	bic	r0, r0, r3
	bl	iowrite32be
.L10:
	cmn	r4, #1
	bne	.L11
.L12:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	cmp	r3, #127
	bgt	.L20
.L4:
	ldr	r3, .L22
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	ldr	r2, [r0, #4]
	ldr	r3, .L22+4
	cmp	r2, #4
	ldr	r4, [r3]
	ldr	r3, [r0, #8]
	beq	.L21
	subs	r4, r4, #1
	ldr	r7, [r3, #4]
	bpl	.L7
	b	.L12
.L21:
	mov	r4, #0
	ldr	r7, [r3, #4]
	b	.L7
.L23:
	.align	2
.L22:
	.word	EINVAL
	.word	FMAN_PORT_CG_MAP_NUM
	.size	fman_port_remove_congestion_grps, .-fman_port_remove_congestion_grps
	.comm	FMAN_PORT_CG_MAP_NUM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
