	.file	"extr_microread.c_microread_event_received.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Microread received event 0x%x to gate 0x%x\n"
	.section	.text.unlikely,"ax",@progbits
.LCOLDB1:
	.text
.LHOTB1:
	.p2align 4
	.type	microread_event_received, @function
microread_event_received:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	lea	rdi, .LC0[rip]
	mov	r14, QWORD PTR [rax+rsi*8]
	mov	rsi, rbx
	add	rbx, -128
	mov	rdx, r14
	call	pr_info@PLT
	cmp	rbx, 6
	ja	.L15
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rbx*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	xor	r13d, r13d
	call	kfree_skb@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR 0[rbp]
	test	esi, esi
	jle	.L12
	mov	rdx, QWORD PTR 8[rbp]
	movsx	rax, esi
	mov	eax, DWORD PTR -4[rdx+rax*4]
	test	eax, eax
	jne	.L13
	sub	esi, 1
	mov	rdi, rbp
	call	skb_trim@PLT
	mov	edi, DWORD PTR [r12]
	mov	rsi, rbp
	call	nfc_tm_data_received@PLT
	mov	r13d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, rbp
	call	kfree_skb@PLT
	mov	edx, DWORD PTR MICROREAD_PAR_P2P_TARGET_MODE[rip]
	mov	rcx, rsp
	mov	esi, DWORD PTR MICROREAD_GATE_ID_P2P_TARGET[rip]
	mov	r8d, 1
	mov	rdi, r12
	mov	QWORD PTR [rsp], 255
	call	nfc_hci_set_param@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	mov	edx, DWORD PTR MICROREAD_EVT_MREAD_DISCOVERY_STOP[rip]
	xor	r8d, r8d
	xor	ecx, ecx
	mov	rsi, r14
	mov	rdi, r12
	call	nfc_hci_send_event@PLT
	mov	r13d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR 0[rbp]
	test	esi, esi
	jle	.L12
	mov	rdx, QWORD PTR 8[rbp]
	movsx	rax, esi
	mov	edx, DWORD PTR -4[rdx+rax*4]
	test	edx, edx
	jne	.L13
	sub	esi, 1
	mov	rdi, rbp
	call	skb_trim@PLT
	mov	edi, DWORD PTR [r12]
	mov	rsi, rbp
	call	nfc_tm_data_received@PLT
	mov	r13d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, rbp
	mov	rsi, r14
	mov	rdi, r12
	xor	r13d, r13d
	call	microread_target_discovered@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR [r12]
	mov	rcx, QWORD PTR 8[rbp]
	mov	r8d, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR NFC_COMM_PASSIVE[rip]
	mov	esi, DWORD PTR NFC_PROTO_NFC_DEP_MASK[rip]
	call	nfc_tm_activated@PLT
	mov	rdi, rbp
	mov	r13d, eax
	call	kfree_skb@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, rbp
	call	kfree_skb@PLT
	mov	r13d, DWORD PTR EIO[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, rbp
	call	kfree_skb@PLT
	mov	r13d, DWORD PTR EPROTO[rip]
	neg	r13d
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	microread_event_received.cold, @function
microread_event_received.cold:
.LFSB0:
.L15:
	.cfi_def_cfa_offset 64
	.cfi_offset 3, -48
	.cfi_offset 6, -40
	.cfi_offset 12, -32
	.cfi_offset 13, -24
	.cfi_offset 14, -16
	mov	r13d, 1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.text
	.size	microread_event_received, .-microread_event_received
	.section	.text.unlikely
	.size	microread_event_received.cold, .-microread_event_received.cold
.LCOLDE1:
	.text
.LHOTE1:
	.comm	NFC_PROTO_NFC_DEP_MASK,4,4
	.comm	NFC_COMM_PASSIVE,4,4
	.comm	MICROREAD_PAR_P2P_TARGET_MODE,4,4
	.comm	MICROREAD_GATE_ID_P2P_TARGET,4,4
	.comm	MICROREAD_EVT_MREAD_DISCOVERY_STOP,4,4
	.comm	EPROTO,4,4
	.comm	EIO,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_microread.c_microread_event_received.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Microread received event 0x%x to gate 0x%x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	microread_event_received, %function
microread_event_received:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r0
	mov	r0, r1
	mov	r4, r2
	ldr	r2, [r6, #4]
	mov	r5, r3
	ldr	r7, [r2, r0, lsl #2]
	ldr	r3, .L22
	mov	r1, r4
	sub	sp, sp, #20
	mov	r2, r7
	ldr	r0, .L22+4
	sub	r4, r4, #128
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	pr_info
	cmp	r4, #6
	ldrls	pc, [pc, r4, asl #2]
	b	.L15
.L4:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L5
	.word	.L7
.L7:
	ldr	r1, [r5]
	cmp	r1, #0
	ble	.L19
	ldr	r3, [r5, #4]
	sub	r2, r1, #-1073741823
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L20
	sub	r1, r1, #1
	mov	r0, r5
	bl	skb_trim
	mov	r1, r5
	ldr	r0, [r6]
	bl	nfc_tm_data_received
	mov	r4, r0
	b	.L1
.L5:
	mov	r0, r5
	bl	kfree_skb
	mov	r4, #0
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	mov	r0, r5
	bl	kfree_skb
	mov	r1, #1
	mov	ip, #255
	ldr	r3, .L22+8
	ldr	r2, .L22+12
	str	r1, [sp]
	ldr	r1, [r3]
	mov	r0, r6
	ldr	r2, [r2]
	add	r3, sp, #8
	str	ip, [sp, #8]
	bl	nfc_hci_set_param
	subs	r4, r0, #0
	bne	.L1
	ldr	r2, .L22+16
	str	r4, [sp]
	mov	r3, r4
	mov	r1, r7
	mov	r0, r6
	ldr	r2, [r2]
	bl	nfc_hci_send_event
	mov	r4, r0
	b	.L1
.L6:
	mov	r2, r5
	mov	r1, r7
	mov	r0, r6
	bl	microread_target_discovered
	mov	r4, #0
	b	.L1
.L8:
	ldr	r3, [r5]
	ldr	r2, .L22+20
	ldr	r1, .L22+24
	ldr	r0, [r6]
	ldr	r2, [r2]
	ldr	r1, [r1]
	str	r3, [sp]
	ldr	r3, [r5, #4]
	bl	nfc_tm_activated
	mov	r4, r0
	mov	r0, r5
	bl	kfree_skb
	b	.L1
.L20:
	mov	r0, r5
	bl	kfree_skb
	ldr	r3, .L22+28
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L19:
	mov	r0, r5
	bl	kfree_skb
	ldr	r3, .L22+32
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L21:
	bl	__stack_chk_fail
.L15:
	mov	r4, #1
	b	.L1
.L23:
	.align	2
.L22:
	.word	.LC1
	.word	.LC0
	.word	MICROREAD_GATE_ID_P2P_TARGET
	.word	MICROREAD_PAR_P2P_TARGET_MODE
	.word	MICROREAD_EVT_MREAD_DISCOVERY_STOP
	.word	NFC_COMM_PASSIVE
	.word	NFC_PROTO_NFC_DEP_MASK
	.word	EIO
	.word	EPROTO
	.size	microread_event_received, .-microread_event_received
	.comm	NFC_PROTO_NFC_DEP_MASK,4,4
	.comm	NFC_COMM_PASSIVE,4,4
	.comm	MICROREAD_PAR_P2P_TARGET_MODE,4,4
	.comm	MICROREAD_GATE_ID_P2P_TARGET,4,4
	.comm	MICROREAD_EVT_MREAD_DISCOVERY_STOP,4,4
	.comm	EPROTO,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
