	.file	"extr_ctrl.c_nfp_abm_ctrl_prio_map_update.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"setting DSCP -> VQ map failed with error %d\n"
	.text
	.p2align 4
	.globl	nfp_abm_ctrl_prio_map_update
	.type	nfp_abm_ctrl_prio_map_update, @function
nfp_abm_ctrl_prio_map_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR [rdi]
	mov	r13, QWORD PTR 8[rdi]
	mov	r12d, DWORD PTR NFP_NET_CFG_MBOX_CMD_PCI_DSCP_PRIOMAP_SET[rip]
	mov	esi, DWORD PTR [rax]
	mov	rdi, r13
	call	nfp_net_mbox_lock@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L11
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rax, QWORD PTR [r14]
	mov	rsi, QWORD PTR NFP_NET_ABM_MBOX_DATALEN[rip]
	mov	rdi, r13
	add	rsi, QWORD PTR 0[r13]
	mov	edx, DWORD PTR [rax]
	call	nn_writeq@PLT
	mov	rax, QWORD PTR [r14]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L3
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, ebx
	mov	rsi, QWORD PTR NFP_NET_ABM_MBOX_DATA[rip]
	add	rsi, QWORD PTR 0[r13]
	mov	rdi, r13
	shr	eax, 2
	mov	edx, DWORD PTR 0[rbp+rax*4]
	mov	eax, ebx
	add	ebx, 4
	add	rsi, rax
	call	nn_writel@PLT
	mov	rax, QWORD PTR [r14]
	cmp	DWORD PTR [rax], ebx
	ja	.L4
.L3:
	mov	esi, r12d
	mov	rdi, r13
	call	nfp_net_mbox_reconfig_and_unlock@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L1
	mov	rax, QWORD PTR [r14]
	mov	edx, r15d
	lea	rsi, .LC0[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	edi, DWORD PTR [rax]
	call	nfp_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	nfp_abm_ctrl_prio_map_update, .-nfp_abm_ctrl_prio_map_update
	.comm	NFP_NET_CFG_MBOX_CMD_PCI_DSCP_PRIOMAP_SET,4,4
	.comm	NFP_NET_ABM_MBOX_DATALEN,8,8
	.comm	NFP_NET_ABM_MBOX_DATA,8,8
	.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_ctrl.c_nfp_abm_ctrl_prio_map_update.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"setting DSCP -> VQ map failed with error %d\012\000"
	.text
	.align	2
	.global	nfp_abm_ctrl_prio_map_update
	.syntax unified
	.arm
	.fpu softvfp
	.type	nfp_abm_ctrl_prio_map_update, %function
nfp_abm_ctrl_prio_map_update:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L15
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldm	r0, {r2, r6}
	mov	r7, r0
	mov	r5, r1
	mov	r0, r6
	ldr	r1, [r2]
	ldr	r8, [r3]
	bl	nfp_net_mbox_lock
	subs	r4, r0, #0
	beq	.L14
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	ldr	r3, .L15+4
	ldr	r1, [r6]
	ldr	r2, [r3]
	ldr	r3, [r7]
	add	r1, r1, r2
	mov	r0, r6
	ldr	r2, [r3]
	bl	nn_writeq
	ldr	r3, [r7]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	ldr	r9, .L15+8
	sub	r5, r5, #4
.L4:
	ldr	r3, [r9]
	ldr	r1, [r6]
	mov	r0, r6
	add	r1, r1, r3
	add	r1, r1, r4
	ldr	r2, [r5, #4]!
	bl	nn_writel
	ldr	r3, [r7]
	add	r4, r4, #4
	ldr	r3, [r3]
	cmp	r3, r4
	bhi	.L4
.L3:
	mov	r1, r8
	mov	r0, r6
	bl	nfp_net_mbox_reconfig_and_unlock
	subs	r4, r0, #0
	beq	.L1
	ldr	r3, [r7]
	mov	r2, r4
	ldr	r3, [r3, #4]
	ldr	r1, .L15+12
	ldr	r0, [r3]
	bl	nfp_err
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	.align	2
.L15:
	.word	NFP_NET_CFG_MBOX_CMD_PCI_DSCP_PRIOMAP_SET
	.word	NFP_NET_ABM_MBOX_DATALEN
	.word	NFP_NET_ABM_MBOX_DATA
	.word	.LC0
	.size	nfp_abm_ctrl_prio_map_update, .-nfp_abm_ctrl_prio_map_update
	.comm	NFP_NET_CFG_MBOX_CMD_PCI_DSCP_PRIOMAP_SET,4,4
	.comm	NFP_NET_ABM_MBOX_DATALEN,4,4
	.comm	NFP_NET_ABM_MBOX_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
