	.file	"extr_frontend.c_agp_release.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"priv=%p"
	.text
	.p2align 4
	.type	agp_release, @function
agp_release:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdi, agp_fe[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR [rsi]
	call	mutex_lock@PLT
	lea	rdi, .LC0[rip]
	mov	rsi, rbp
	lea	r12, 4[rbp]
	call	DBG@PLT
	mov	edi, DWORD PTR AGP_FF_IS_CONTROLLER[rip]
	mov	rsi, r12
	call	test_bit@PLT
	test	rax, rax
	jne	.L15
.L3:
	mov	edi, DWORD PTR AGP_FF_IS_CLIENT[rip]
	mov	rsi, r12
	call	test_bit@PLT
	test	rax, rax
	jne	.L16
.L6:
	mov	rdi, rbp
	call	agp_remove_file_private@PLT
	mov	rdi, rbp
	call	kfree@PLT
	mov	QWORD PTR [rbx], 0
	lea	rdi, agp_fe[rip]
	call	mutex_unlock@PLT
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[rbp]
	call	agp_find_controller_by_pid@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L3
	cmp	QWORD PTR agp_fe[rip+8], rax
	je	.L17
.L5:
	call	agp_remove_controller@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR 0[rbp]
	call	agp_remove_client@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rsi, rbp
	mov	QWORD PTR 8[rsp], rax
	call	agp_controller_release_current@PLT
	mov	rdi, QWORD PTR 8[rsp]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	agp_release, .-agp_release
	.comm	agp_fe,16,16
	.comm	AGP_FF_IS_CONTROLLER,4,4
	.comm	AGP_FF_IS_CLIENT,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_frontend.c_agp_release.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"priv=%p\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	agp_release, %function
agp_release:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L18
	ldr	r4, [r1]
	mov	r0, r7
	mov	r5, r1
	bl	mutex_lock
	mov	r1, r4
	ldr	r0, .L18+4
	bl	DBG
	ldr	r3, .L18+8
	add	r6, r4, #4
	mov	r1, r6
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	bne	.L15
.L3:
	ldr	r3, .L18+12
	mov	r1, r6
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	bne	.L16
.L6:
	mov	r6, #0
	mov	r0, r4
	bl	agp_remove_file_private
	mov	r0, r4
	bl	kfree
	str	r6, [r5]
	ldr	r0, .L18
	bl	mutex_unlock
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	ldr	r0, [r4]
	bl	agp_find_controller_by_pid
	subs	r8, r0, #0
	beq	.L3
	ldr	r3, [r7, #4]
	cmp	r3, r8
	beq	.L17
.L5:
	mov	r0, r8
	bl	agp_remove_controller
	b	.L3
.L16:
	ldr	r0, [r4]
	bl	agp_remove_client
	b	.L6
.L17:
	mov	r1, r4
	bl	agp_controller_release_current
	b	.L5
.L19:
	.align	2
.L18:
	.word	agp_fe
	.word	.LC0
	.word	AGP_FF_IS_CONTROLLER
	.word	AGP_FF_IS_CLIENT
	.size	agp_release, .-agp_release
	.comm	agp_fe,8,4
	.comm	AGP_FF_IS_CONTROLLER,4,4
	.comm	AGP_FF_IS_CLIENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
