	.file	"extr_netlink.c_nfc_genl_stop_poll.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nfc_genl_stop_poll, @function
nfc_genl_stop_poll:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 8[rsi]
	mov	rdx, QWORD PTR NFC_ATTR_DEVICE_INDEX[rip]
	mov	edi, DWORD PTR [rax+rdx*4]
	test	edi, edi
	jne	.L2
.L9:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rbx, rsi
	call	nla_get_u32@PLT
	mov	edi, eax
	call	nfc_get_device@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	mov	rbp, rax
	neg	r12d
	test	rax, rax
	je	.L1
	lea	r12, 16[rax]
	mov	rdi, r12
	call	device_lock@PLT
	mov	eax, DWORD PTR 20[rbp]
	mov	rdi, r12
	test	eax, eax
	je	.L11
	call	device_unlock@PLT
	lea	r13, 8[rbp]
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR 0[rbp], rax
	je	.L6
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
.L7:
	mov	rdi, r13
	call	mutex_unlock@PLT
	mov	rdi, rbp
	call	nfc_put_device@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rbp
	call	nfc_stop_poll@PLT
	mov	QWORD PTR 0[rbp], 0
	mov	r12d, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	call	device_unlock@PLT
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	nfc_genl_stop_poll, .-nfc_genl_stop_poll
	.comm	NFC_ATTR_DEVICE_INDEX,8,8
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,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_netlink.c_nfc_genl_stop_poll.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nfc_genl_stop_poll, %function
nfc_genl_stop_poll:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L13
	ldr	r3, [r1, #4]
	ldr	r2, [r2]
	push	{r4, r5, r6, lr}
	ldr	r0, [r3, r2, lsl #2]
	cmp	r0, #0
	bne	.L2
.L9:
	ldr	r3, .L13+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	mov	r4, r1
	bl	nla_get_u32
	bl	nfc_get_device
	subs	r5, r0, #0
	beq	.L11
	add	r6, r5, #8
	mov	r0, r6
	bl	device_lock
	ldr	r3, [r5, #12]
	mov	r0, r6
	cmp	r3, #0
	beq	.L12
	add	r6, r5, #4
	bl	device_unlock
	mov	r0, r6
	bl	mutex_lock
	ldr	r3, [r4]
	ldr	r2, [r5]
	cmp	r2, r3
	beq	.L6
	ldr	r3, .L13+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L7:
	mov	r0, r6
	bl	mutex_unlock
	mov	r0, r5
	bl	nfc_put_device
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L6:
	mov	r0, r5
	bl	nfc_stop_poll
	mov	r3, #0
	mov	r4, r0
	str	r3, [r5]
	b	.L7
.L11:
	ldr	r3, .L13+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L12:
	bl	device_unlock
	b	.L9
.L14:
	.align	2
.L13:
	.word	NFC_ATTR_DEVICE_INDEX
	.word	EINVAL
	.word	EBUSY
	.word	ENODEV
	.size	nfc_genl_stop_poll, .-nfc_genl_stop_poll
	.comm	NFC_ATTR_DEVICE_INDEX,4,4
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
