	.file	"extr_resource_tracker.c_qp_free_res.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qp_free_res, @function
qp_free_res:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	DWORD PTR 12[rsp], r8d
	cmp	edx, 128
	je	.L2
	cmp	edx, 129
	je	.L3
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	lea	r12, 12[rsp]
	mov	rdi, r12
	call	get_param_l@PLT
	mov	rdi, r12
	and	eax, 8388607
	mov	r14d, eax
	call	get_param_h@PLT
	xor	r9d, r9d
	mov	edx, r14d
	mov	esi, r13d
	mov	r8d, DWORD PTR RES_QP[rip]
	mov	ecx, eax
	mov	rdi, rbp
	mov	r15d, eax
	call	rem_res_range@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	edx, r15d
	mov	esi, r14d
	mov	rdi, rbp
	call	__mlx4_qp_release_range@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rdi, 12[rsp]
	call	get_param_l@PLT
	xor	r9d, r9d
	xor	r8d, r8d
	mov	esi, r13d
	and	eax, 8388607
	mov	ecx, DWORD PTR RES_QP_RESERVED[rip]
	mov	rdi, rbp
	mov	edx, eax
	mov	r14d, eax
	call	qp_res_start_move_to@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	esi, r14d
	mov	rdi, rbp
	call	fw_reserved@PLT
	test	eax, eax
	je	.L13
.L6:
	mov	edx, DWORD PTR RES_QP[rip]
	mov	ecx, r14d
	mov	esi, r13d
	mov	rdi, rbp
	call	res_end_move@PLT
	mov	edx, r14d
	mov	esi, r13d
	mov	rdi, rbp
	call	valid_reserved@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	r8d, DWORD PTR RES_QP[rip]
	xor	r9d, r9d
	mov	edx, r14d
	mov	esi, r13d
	mov	ecx, 1
	mov	rdi, rbp
	call	rem_res_range@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, r14d
	mov	rdi, rbp
	call	__mlx4_qp_free_icm@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	qp_free_res, .-qp_free_res
	.comm	RES_QP_RESERVED,4,4
	.comm	RES_QP,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_resource_tracker.c_qp_free_res.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qp_free_res, %function
qp_free_res:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r2, #128
	mov	r5, r0
	mov	r6, r1
	sub	sp, sp, #8
	beq	.L2
	cmp	r2, #129
	beq	.L3
	ldr	r3, .L14
	ldr	r0, [r3]
	rsb	r4, r0, #0
.L1:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	add	r0, sp, #32
	bl	get_param_l
	mov	r8, r0
	add	r0, sp, #32
	bl	get_param_h
	mov	r7, r0
	mov	r0, #0
	ldr	r3, .L14+4
	bic	r8, r8, #-16777216
	ldr	ip, [r3]
	bic	r8, r8, #8388608
	str	r0, [sp, #4]
	mov	r1, r6
	mov	r2, r8
	mov	r3, r7
	mov	r0, r5
	str	ip, [sp]
	bl	rem_res_range
	subs	r4, r0, #0
	bne	.L1
	mov	r2, r7
	mov	r1, r8
	mov	r0, r5
	bl	__mlx4_qp_release_range
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	add	r0, sp, #32
	bl	get_param_l
	mov	r3, #0
	ldr	r1, .L14+8
	bic	r7, r0, #-16777216
	str	r3, [sp, #4]
	str	r3, [sp]
	bic	r7, r7, #8388608
	ldr	r3, [r1]
	mov	r2, r7
	mov	r1, r6
	mov	r0, r5
	bl	qp_res_start_move_to
	subs	r4, r0, #0
	bne	.L1
	mov	r1, r7
	mov	r0, r5
	bl	fw_reserved
	cmp	r0, #0
	beq	.L13
.L6:
	ldr	r8, .L14+4
	mov	r3, r7
	mov	r1, r6
	ldr	r2, [r8]
	mov	r0, r5
	bl	res_end_move
	mov	r2, r7
	mov	r1, r6
	mov	r0, r5
	bl	valid_reserved
	subs	r4, r0, #0
	beq	.L1
	mov	r3, #0
	ldr	r1, [r8]
	mov	r2, r7
	str	r1, [sp]
	str	r3, [sp, #4]
	mov	r1, r6
	mov	r0, r5
	mov	r3, #1
	bl	rem_res_range
	mov	r4, r0
	b	.L1
.L13:
	mov	r1, r7
	mov	r0, r5
	bl	__mlx4_qp_free_icm
	b	.L6
.L15:
	.align	2
.L14:
	.word	EINVAL
	.word	RES_QP
	.word	RES_QP_RESERVED
	.size	qp_free_res, .-qp_free_res
	.comm	RES_QP_RESERVED,4,4
	.comm	RES_QP,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
