	.file	"extr_core.c_st21nfca_hci_complete_target_discovered.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	st21nfca_hci_complete_target_discovered, @function
st21nfca_hci_complete_target_discovered:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r8, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, 1
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	xor	edi, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rsi, QWORD PTR ST21NFCA_RF_READER_F_GATE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rsp], 0
	cmp	rsi, r8
	je	.L16
.L2:
	call	kfree_skb@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 24
	.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
.L16:
	.cfi_restore_state
	mov	rbx, rdx
	mov	r13, rsp
	mov	edx, DWORD PTR ST21NFCA_RF_READER_F_NFCID2[rip]
	mov	rdi, rbp
	mov	rcx, r13
	call	nfc_hci_get_param@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	r12d, eax
	test	eax, eax
	js	.L2
	mov	rdx, QWORD PTR [rdi]
	cmp	rdx, QWORD PTR NFC_SENSF_RES_MAXSIZE[rip]
	jg	.L14
	test	rdx, rdx
	jle	.L5
	mov	esi, DWORD PTR 8[rdi]
	mov	rdi, QWORD PTR [rbx]
	call	memcpy@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	rax, QWORD PTR [rdi]
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR [rbx]
	cmp	DWORD PTR [rax], 1
	je	.L18
.L6:
	mov	rax, QWORD PTR NFC_PROTO_FELICA_MASK[rip]
	mov	QWORD PTR 24[rbx], rax
.L7:
	mov	rax, QWORD PTR ST21NFCA_RF_READER_F_GATE[rip]
	mov	r12d, 1
	mov	QWORD PTR 16[rbx], rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r12d, DWORD PTR EPROTO[rip]
	neg	r12d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L18:
	cmp	DWORD PTR 4[rax], 254
	jne	.L6
.L13:
	mov	rax, QWORD PTR NFC_PROTO_NFC_DEP_MASK[rip]
	mov	QWORD PTR 24[rbx], rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	call	kfree_skb@PLT
	mov	edx, DWORD PTR ST21NFCA_RF_READER_F_NFCID1[rip]
	mov	rdi, rbp
	mov	rcx, r13
	mov	rsi, QWORD PTR ST21NFCA_RF_READER_F_GATE[rip]
	mov	QWORD PTR [rsp], 0
	call	nfc_hci_get_param@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	r12d, eax
	test	eax, eax
	js	.L2
	mov	rdx, QWORD PTR [rdi]
	cmp	rdx, QWORD PTR NFC_NFCID1_MAXSIZE[rip]
	jg	.L14
	mov	esi, DWORD PTR 8[rdi]
	mov	rdi, QWORD PTR [rbx]
	call	memcpy@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	rax, QWORD PTR [rdi]
	mov	QWORD PTR 8[rbx], rax
	jmp	.L13
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	st21nfca_hci_complete_target_discovered, .-st21nfca_hci_complete_target_discovered
	.comm	ST21NFCA_RF_READER_F_NFCID2,4,4
	.comm	ST21NFCA_RF_READER_F_NFCID1,4,4
	.comm	ST21NFCA_RF_READER_F_GATE,8,8
	.comm	NFC_SENSF_RES_MAXSIZE,8,8
	.comm	NFC_PROTO_NFC_DEP_MASK,8,8
	.comm	NFC_PROTO_FELICA_MASK,8,8
	.comm	NFC_NFCID1_MAXSIZE,8,8
	.comm	EPROTO,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_core.c_st21nfca_hci_complete_target_discovered.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	st21nfca_hci_complete_target_discovered, %function
st21nfca_hci_complete_target_discovered:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, #0
	ldr	r7, .L18
	mov	r4, r2
	ldr	r3, [r7]
	ldr	r2, .L18+4
	sub	sp, sp, #8
	cmp	r3, r1
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	movne	r0, r8
	movne	r5, #1
	str	r8, [sp]
	beq	.L15
.L2:
	bl	kfree_skb
	ldr	r3, .L18+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	ldr	r3, .L18+8
	mov	r6, r0
	ldr	r2, [r3]
	mov	r3, sp
	bl	nfc_hci_get_param
	subs	r5, r0, #0
	ldr	r0, [sp]
	blt	.L2
	ldr	r3, .L18+12
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L13
	cmp	r2, #0
	ble	.L5
	ldr	r1, [r0, #4]
	ldr	r0, [r4]
	bl	memcpy
	ldr	r3, [r4]
	ldr	r0, [sp]
	ldr	r1, [r3]
	ldr	r2, [r0]
	cmp	r1, #1
	str	r2, [r4, #4]
	beq	.L17
.L6:
	ldr	r3, .L18+16
	ldr	r3, [r3]
	str	r3, [r4, #12]
.L7:
	ldr	r3, [r7]
	mov	r5, #1
	str	r3, [r4, #8]
	b	.L2
.L13:
	ldr	r3, .L18+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L2
.L17:
	ldr	r3, [r3, #4]
	cmp	r3, #254
	bne	.L6
	ldr	r3, .L18+24
	ldr	r3, [r3]
	str	r3, [r4, #12]
	b	.L7
.L5:
	bl	kfree_skb
	ldr	r2, .L18+28
	mov	r3, sp
	mov	r0, r6
	ldr	r2, [r2]
	ldr	r1, [r7]
	str	r8, [sp]
	bl	nfc_hci_get_param
	subs	r5, r0, #0
	ldr	r0, [sp]
	blt	.L2
	ldr	r3, .L18+32
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L13
	ldr	r1, [r0, #4]
	ldr	r0, [r4]
	bl	memcpy
	ldr	r0, [sp]
	ldr	r3, .L18+24
	ldr	r2, [r0]
	ldr	r3, [r3]
	str	r2, [r4, #4]
	str	r3, [r4, #12]
	b	.L7
.L16:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	ST21NFCA_RF_READER_F_GATE
	.word	.LC0
	.word	ST21NFCA_RF_READER_F_NFCID2
	.word	NFC_SENSF_RES_MAXSIZE
	.word	NFC_PROTO_FELICA_MASK
	.word	EPROTO
	.word	NFC_PROTO_NFC_DEP_MASK
	.word	ST21NFCA_RF_READER_F_NFCID1
	.word	NFC_NFCID1_MAXSIZE
	.size	st21nfca_hci_complete_target_discovered, .-st21nfca_hci_complete_target_discovered
	.comm	ST21NFCA_RF_READER_F_NFCID2,4,4
	.comm	ST21NFCA_RF_READER_F_NFCID1,4,4
	.comm	ST21NFCA_RF_READER_F_GATE,4,4
	.comm	NFC_SENSF_RES_MAXSIZE,4,4
	.comm	NFC_PROTO_NFC_DEP_MASK,4,4
	.comm	NFC_PROTO_FELICA_MASK,4,4
	.comm	NFC_NFCID1_MAXSIZE,4,4
	.comm	EPROTO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
