	.file	"extr_resource_tracker.c_mlx4_init_quotas.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mlx4_init_quotas
	.type	mlx4_init_quotas, @function
mlx4_init_quotas:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	mlx4_priv@PLT
	mov	rdi, rbx
	mov	rbp, rax
	call	mlx4_is_slave@PLT
	test	rax, rax
	je	.L6
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rbx
	call	mlx4_is_mfunc@PLT
	test	eax, eax
	je	.L7
	mov	rdi, rbx
	call	mlx4_master_func_num@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	rcx, QWORD PTR RES_QP[rip]
	cdqe
	mov	rcx, QWORD PTR [rdx+rcx*8]
	mov	rcx, QWORD PTR [rcx+rax*8]
	mov	QWORD PTR 32[rbx], rcx
	mov	rcx, QWORD PTR RES_CQ[rip]
	mov	rcx, QWORD PTR [rdx+rcx*8]
	mov	rcx, QWORD PTR [rcx+rax*8]
	mov	QWORD PTR 24[rbx], rcx
	mov	rcx, QWORD PTR RES_SRQ[rip]
	mov	rcx, QWORD PTR [rdx+rcx*8]
	mov	rcx, QWORD PTR [rcx+rax*8]
	mov	QWORD PTR 16[rbx], rcx
	mov	rcx, QWORD PTR RES_MTT[rip]
	mov	rcx, QWORD PTR [rdx+rcx*8]
	mov	rcx, QWORD PTR [rcx+rax*8]
	mov	QWORD PTR 8[rbx], rcx
	mov	rcx, QWORD PTR RES_MPT[rip]
	mov	rdx, QWORD PTR [rdx+rcx*8]
	mov	rax, QWORD PTR [rdx+rax*8]
	mov	QWORD PTR [rbx], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbx
	mov	rbp, QWORD PTR 112[rbx]
	sub	rbp, QWORD PTR 104[rbx]
	call	mlx4_num_reserved_sqps@PLT
	sub	rbp, rax
	mov	rax, QWORD PTR 96[rbx]
	sub	rax, QWORD PTR 88[rbx]
	mov	QWORD PTR 24[rbx], rax
	mov	rax, QWORD PTR 80[rbx]
	sub	rax, QWORD PTR 72[rbx]
	mov	QWORD PTR 32[rbx], rbp
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR 64[rbx]
	sub	rax, QWORD PTR 56[rbx]
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR 48[rbx]
	sub	rax, QWORD PTR 40[rbx]
	mov	QWORD PTR [rbx], rax
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mlx4_init_quotas, .-mlx4_init_quotas
	.comm	RES_SRQ,8,8
	.comm	RES_QP,8,8
	.comm	RES_MTT,8,8
	.comm	RES_MPT,8,8
	.comm	RES_CQ,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_resource_tracker.c_mlx4_init_quotas.c"
	.text
	.align	2
	.global	mlx4_init_quotas
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_init_quotas, %function
mlx4_init_quotas:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	mlx4_priv
	mov	r5, r0
	mov	r0, r4
	bl	mlx4_is_slave
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	mov	r0, r4
	bl	mlx4_is_mfunc
	cmp	r0, #0
	beq	.L6
	mov	r0, r4
	bl	mlx4_master_func_num
	ldr	r2, .L7
	ldr	r3, [r5]
	ldr	r1, [r2]
	ldr	r2, .L7+4
	ldr	r1, [r3, r1, lsl #2]
	ldr	r2, [r2]
	ldr	ip, [r1, r0, lsl #2]
	ldr	r1, .L7+8
	ldr	r2, [r3, r2, lsl #2]
	ldr	r1, [r1]
	str	ip, [r4, #16]
	ldr	ip, [r2, r0, lsl #2]
	ldr	r2, .L7+12
	ldr	r1, [r3, r1, lsl #2]
	ldr	r2, [r2]
	str	ip, [r4, #12]
	ldr	ip, [r1, r0, lsl #2]
	ldr	r1, .L7+16
	ldr	r2, [r3, r2, lsl #2]
	ldr	r1, [r1]
	str	ip, [r4, #8]
	ldr	r2, [r2, r0, lsl #2]
	ldr	r3, [r3, r1, lsl #2]
	str	r2, [r4, #4]
	ldr	r3, [r3, r0, lsl #2]
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r3, [r4, #52]
	ldr	r5, [r4, #56]
	mov	r0, r4
	sub	r5, r5, r3
	bl	mlx4_num_reserved_sqps
	ldr	r2, [r4, #48]
	ldr	ip, [r4, #44]
	ldr	r3, [r4, #40]
	sub	r5, r5, r0
	ldr	r1, [r4, #36]
	sub	r0, r2, ip
	ldr	ip, [r4, #28]
	ldr	r2, [r4, #32]
	sub	r1, r3, r1
	sub	r2, r2, ip
	ldr	r3, [r4, #24]
	ldr	ip, [r4, #20]
	str	r5, [r4, #16]
	sub	r3, r3, ip
	str	r0, [r4, #12]
	str	r1, [r4, #8]
	str	r2, [r4, #4]
	str	r3, [r4]
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	RES_QP
	.word	RES_CQ
	.word	RES_SRQ
	.word	RES_MTT
	.word	RES_MPT
	.size	mlx4_init_quotas, .-mlx4_init_quotas
	.comm	RES_SRQ,4,4
	.comm	RES_QP,4,4
	.comm	RES_MTT,4,4
	.comm	RES_MPT,4,4
	.comm	RES_CQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
