	.file	"extr_drm_memory.c_drm_core_ioremapfree.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	drm_core_ioremapfree
	.type	drm_core_ioremapfree, @function
drm_core_ioremapfree:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR 8[rdi]
	test	edx, edx
	je	.L9
	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
	mov	eax, DWORD PTR 12[rdi]
	test	eax, eax
	jne	.L13
	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
.L13:
	.cfi_restore_state
	mov	rdi, rsi
	mov	rbp, rsi
	call	drm_core_has_AGP@PLT
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR 8[rbx]
	test	rax, rax
	je	.L4
	cmp	QWORD PTR [rax], 0
	je	.L4
	mov	rax, QWORD PTR _DRM_AGP[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L14
.L4:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	iounmap@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	mov	edi, DWORD PTR 8[rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	iounmap@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	vunmap@PLT
	.cfi_endproc
.LFE0:
	.size	drm_core_ioremapfree, .-drm_core_ioremapfree
	.comm	_DRM_AGP,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_drm_memory.c_drm_core_ioremapfree.c"
	.text
	.align	2
	.global	drm_core_ioremapfree
	.syntax unified
	.arm
	.fpu softvfp
	.type	drm_core_ioremapfree, %function
drm_core_ioremapfree:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	cmp	r3, #0
	bxeq	lr
	ldr	r3, [r0, #8]
	push	{r4, r5, r6, lr}
	cmp	r3, #0
	mov	r4, r0
	popeq	{r4, r5, r6, pc}
	mov	r0, r1
	mov	r5, r1
	bl	drm_core_has_AGP
	cmp	r0, #0
	beq	.L3
	ldr	r3, [r5]
	ldr	r0, [r4, #4]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L23
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L22
.L4:
	pop	{r4, r5, r6, lr}
	b	iounmap
.L3:
	ldr	r0, [r4, #4]
	pop	{r4, r5, r6, lr}
	b	iounmap
.L22:
	pop	{r4, r5, r6, lr}
	b	vunmap
.L24:
	.align	2
.L23:
	.word	_DRM_AGP
	.size	drm_core_ioremapfree, .-drm_core_ioremapfree
	.comm	_DRM_AGP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
