	.file	"extr_frontend.c_agp_remove_client.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	agp_remove_client
	.type	agp_remove_client, @function
agp_remove_client:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	agp_find_controller_for_client@PLT
	test	rax, rax
	je	.L15
	mov	esi, ebp
	mov	rdi, rax
	mov	rbx, rax
	call	agp_find_client_in_controller@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L15
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rdx, rdx
	je	.L5
	mov	QWORD PTR 8[rdx], rax
	test	rax, rax
	je	.L6
	mov	QWORD PTR [rax], rdx
.L6:
	sub	DWORD PTR [rbx], 1
	mov	rdi, rbp
	call	agp_remove_seg_from_client@PLT
	mov	rdi, rbp
	call	kfree@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	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
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	test	rax, rax
	je	.L7
	mov	QWORD PTR [rax], 0
.L7:
	mov	QWORD PTR 8[rbx], rax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	agp_remove_client, .-agp_remove_client
	.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_frontend.c_agp_remove_client.c"
	.text
	.align	2
	.global	agp_remove_client
	.syntax unified
	.arm
	.fpu softvfp
	.type	agp_remove_client, %function
agp_remove_client:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	agp_find_controller_for_client
	subs	r4, r0, #0
	beq	.L15
	mov	r1, r5
	bl	agp_find_client_in_controller
	subs	r5, r0, #0
	beq	.L15
	ldm	r5, {r2, r3}
	cmp	r2, #0
	beq	.L5
	cmp	r3, #0
	str	r3, [r2, #4]
	strne	r2, [r3]
.L6:
	ldr	r3, [r4]
	mov	r0, r5
	sub	r3, r3, #1
	str	r3, [r4]
	bl	agp_remove_seg_from_client
	mov	r0, r5
	bl	kfree
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r3, .L17
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	cmp	r3, #0
	strne	r2, [r3]
	str	r3, [r4, #4]
	b	.L6
.L18:
	.align	2
.L17:
	.word	EINVAL
	.size	agp_remove_client, .-agp_remove_client
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
