	.file	"extr_qm_portal_fqr.c_QM_PORTAL_Free.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	QM_PORTAL_Free
	.type	QM_PORTAL_Free, @function
QM_PORTAL_Free:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L18
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	rdi, QWORD PTR [rdi]
	call	ASSERT_COND@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR 40[rbp]
	xor	esi, esi
	mov	rdx, QWORD PTR 32[rax]
	call	QmSetPortalHandle@PLT
	mov	rdi, rbp
	call	qman_destroy_portal@PLT
	mov	rdi, QWORD PTR 24[rbp]
	test	rdi, rdi
	je	.L3
	call	XX_Free@PLT
.L3:
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 16[rax]
	test	rdi, rdi
	jne	.L19
	mov	rdi, QWORD PTR 8[rbp]
	test	rdi, rdi
	je	.L5
.L20:
	call	XX_Free@PLT
.L5:
	mov	rdi, QWORD PTR 0[rbp]
	call	XX_Free@PLT
	mov	rdi, rbp
	call	XX_Free@PLT
	mov	eax, DWORD PTR E_OK[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	call	XX_FreeSpinlock@PLT
	mov	rdi, QWORD PTR 8[rbp]
	test	rdi, rdi
	jne	.L20
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_def_cfa_offset 8
	.cfi_restore 6
	mov	edi, DWORD PTR E_INVALID_HANDLE[rip]
	jmp	ERROR_CODE@PLT
	.cfi_endproc
.LFE0:
	.size	QM_PORTAL_Free, .-QM_PORTAL_Free
	.comm	E_OK,4,4
	.comm	E_INVALID_HANDLE,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_qm_portal_fqr.c_QM_PORTAL_Free.c"
	.text
	.align	2
	.global	QM_PORTAL_Free
	.syntax unified
	.arm
	.fpu softvfp
	.type	QM_PORTAL_Free, %function
QM_PORTAL_Free:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	subs	r4, r0, #0
	beq	.L17
	ldr	r0, [r4]
	bl	ASSERT_COND
	ldr	r3, [r4]
	mov	r1, #0
	ldr	r2, [r3, #16]
	ldr	r0, [r4, #20]
	bl	QmSetPortalHandle
	mov	r0, r4
	bl	qman_destroy_portal
	ldr	r0, [r4, #12]
	cmp	r0, #0
	beq	.L3
	bl	XX_Free
.L3:
	ldr	r3, [r4]
	ldr	r0, [r3, #8]
	cmp	r0, #0
	bne	.L18
	ldr	r0, [r4, #4]
	cmp	r0, #0
	beq	.L5
.L19:
	bl	XX_Free
.L5:
	ldr	r0, [r4]
	bl	XX_Free
	mov	r0, r4
	bl	XX_Free
	ldr	r3, .L20
	ldr	r0, [r3]
	pop	{r4, pc}
.L18:
	bl	XX_FreeSpinlock
	ldr	r0, [r4, #4]
	cmp	r0, #0
	bne	.L19
	b	.L5
.L17:
	ldr	r3, .L20+4
	pop	{r4, lr}
	ldr	r0, [r3]
	b	ERROR_CODE
.L21:
	.align	2
.L20:
	.word	E_OK
	.word	E_INVALID_HANDLE
	.size	QM_PORTAL_Free, .-QM_PORTAL_Free
	.comm	E_OK,4,4
	.comm	E_INVALID_HANDLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
