	.file	"extr_vfio_ap_ops.c_vfio_ap_free_aqic_resources.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vfio_ap_free_aqic_resources, @function
vfio_ap_free_aqic_resources:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rax, QWORD PTR VFIO_AP_ISC_INVALID[rip]
	mov	rbx, rdi
	mov	rsi, QWORD PTR [rdi]
	cmp	rsi, rax
	je	.L2
	mov	rdx, QWORD PTR 16[rdi]
	test	rdx, rdx
	je	.L3
	mov	edi, DWORD PTR 4[rdx]
	call	kvm_s390_gisc_unregister@PLT
.L2:
	cmp	QWORD PTR 8[rbx], 0
	je	.L13
	mov	rax, QWORD PTR 16[rbx]
	test	rax, rax
	je	.L13
	mov	edi, DWORD PTR [rax]
	call	mdev_dev@PLT
	lea	rsi, 8[rbx]
	mov	edx, 1
	mov	edi, eax
	call	vfio_unpin_pages@PLT
.L13:
	mov	rax, QWORD PTR VFIO_AP_ISC_INVALID[rip]
.L3:
	mov	QWORD PTR 8[rbx], 0
	mov	QWORD PTR [rbx], rax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	vfio_ap_free_aqic_resources, .-vfio_ap_free_aqic_resources
	.comm	VFIO_AP_ISC_INVALID,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_vfio_ap_ops.c_vfio_ap_free_aqic_resources.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vfio_ap_free_aqic_resources, %function
vfio_ap_free_aqic_resources:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L15
	ldr	r1, [r0]
	ldr	r3, [r5]
	mov	r4, r0
	cmp	r1, r3
	beq	.L2
	ldr	r2, [r0, #8]
	cmp	r2, #0
	beq	.L3
	ldr	r0, [r2, #4]
	bl	kvm_s390_gisc_unregister
.L2:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L13
	ldr	r0, [r3]
	bl	mdev_dev
	mov	r2, #1
	add	r1, r4, #4
	bl	vfio_unpin_pages
.L13:
	ldr	r3, [r5]
.L3:
	mov	r2, #0
	str	r3, [r4]
	str	r2, [r4, #4]
	pop	{r4, r5, r6, pc}
.L16:
	.align	2
.L15:
	.word	VFIO_AP_ISC_INVALID
	.size	vfio_ap_free_aqic_resources, .-vfio_ap_free_aqic_resources
	.comm	VFIO_AP_ISC_INVALID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
