	.file	"extr_fw_qos.c_mlx4_ALLOCATE_VPP_get.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mlx4_ALLOCATE_VPP_get
	.type	mlx4_ALLOCATE_VPP_get, @function
mlx4_ALLOCATE_VPP_get:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	mlx4_alloc_cmd_mailbox@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L8
	mov	eax, DWORD PTR MLX4_CMD_NATIVE[rip]
	mov	r14, QWORD PTR 8[rbp]
	mov	rcx, r15
	xor	esi, esi
	mov	r9d, DWORD PTR MLX4_CMD_ALLOCATE_VPP[rip]
	mov	r8d, DWORD PTR MLX4_ALLOCATE_VPP_QUERY[rip]
	mov	rdi, r13
	push	rax
	.cfi_def_cfa_offset 72
	mov	eax, DWORD PTR MLX4_CMD_TIME_CLASS_A[rip]
	push	rax
	.cfi_def_cfa_offset 80
	mov	edx, DWORD PTR 0[rbp]
	call	mlx4_cmd_box@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	mov	r15d, eax
	test	eax, eax
	je	.L9
.L3:
	mov	rsi, rbp
	mov	rdi, r13
	call	mlx4_free_cmd_mailbox@PLT
	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
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[r14]
	call	be32_to_cpu@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR MLX4_NUM_UP[rip]
	test	eax, eax
	jle	.L3
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR [r14]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	be32_to_cpu@PLT
	mov	QWORD PTR [r12+rbx*8], rax
	add	rbx, 1
	cmp	DWORD PTR MLX4_NUM_UP[rip], ebx
	jg	.L4
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	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
	jmp	PTR_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	mlx4_ALLOCATE_VPP_get, .-mlx4_ALLOCATE_VPP_get
	.comm	MLX4_NUM_UP,4,4
	.comm	MLX4_CMD_TIME_CLASS_A,4,4
	.comm	MLX4_CMD_NATIVE,4,4
	.comm	MLX4_CMD_ALLOCATE_VPP,4,4
	.comm	MLX4_ALLOCATE_VPP_QUERY,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_fw_qos.c_mlx4_ALLOCATE_VPP_get.c"
	.text
	.align	2
	.global	mlx4_ALLOCATE_VPP_get
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_ALLOCATE_VPP_get, %function
mlx4_ALLOCATE_VPP_get:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	sub	sp, sp, #16
	mov	r8, r1
	mov	r4, r2
	mov	r5, r3
	mov	r7, r0
	bl	mlx4_alloc_cmd_mailbox
	mov	r6, r0
	bl	IS_ERR
	subs	r1, r0, #0
	bne	.L8
	ldr	r0, .L10
	ldr	r2, .L10+4
	ldr	lr, [r0]
	ldr	r3, .L10+8
	ldr	r0, .L10+12
	ldr	r9, [r2]
	ldr	ip, [r3]
	ldr	r0, [r0]
	ldr	r2, [r6]
	mov	r3, r8
	ldr	r8, [r6, #4]
	stm	sp, {r0, ip, lr}
	str	r9, [sp, #12]
	mov	r0, r7
	bl	mlx4_cmd_box
	subs	r9, r0, #0
	beq	.L9
.L3:
	mov	r1, r6
	mov	r0, r7
	bl	mlx4_free_cmd_mailbox
	mov	r0, r9
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	ldr	r0, [r8, #4]
	bl	be32_to_cpu
	ldr	r10, .L10+16
	str	r0, [r4]
	ldr	r3, [r10]
	cmp	r3, #0
	ble	.L3
	mov	r4, r9
	sub	r5, r5, #4
.L4:
	ldr	r3, [r8]
	ldr	r0, [r3, r4, lsl #2]
	bl	be32_to_cpu
	ldr	r3, [r10]
	add	r4, r4, #1
	cmp	r3, r4
	str	r0, [r5, #4]!
	bgt	.L4
	b	.L3
.L8:
	mov	r0, r6
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	PTR_ERR
.L11:
	.align	2
.L10:
	.word	MLX4_CMD_TIME_CLASS_A
	.word	MLX4_CMD_NATIVE
	.word	MLX4_CMD_ALLOCATE_VPP
	.word	MLX4_ALLOCATE_VPP_QUERY
	.word	MLX4_NUM_UP
	.size	mlx4_ALLOCATE_VPP_get, .-mlx4_ALLOCATE_VPP_get
	.comm	MLX4_NUM_UP,4,4
	.comm	MLX4_CMD_TIME_CLASS_A,4,4
	.comm	MLX4_CMD_NATIVE,4,4
	.comm	MLX4_CMD_ALLOCATE_VPP,4,4
	.comm	MLX4_ALLOCATE_VPP_QUERY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
