	.file	"extr_llcp_core.c_nfc_llcp_recv_disc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Connection termination"
	.text
	.p2align 4
	.type	nfc_llcp_recv_disc, @function
nfc_llcp_recv_disc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	mov	rdi, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	nfc_llcp_dsap@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	nfc_llcp_ssap@PLT
	mov	r13, rax
	mov	rax, r12
	or	rax, r13
	je	.L8
	mov	rdx, r13
	mov	rsi, r12
	mov	rdi, r14
	call	nfc_llcp_sock_get@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L9
	mov	rdi, rax
	call	lock_sock@PLT
	mov	rdi, rbp
	call	nfc_llcp_socket_purge@PLT
	mov	rax, QWORD PTR 0[rbp]
	cmp	rax, QWORD PTR LLCP_CLOSED[rip]
	je	.L10
	cmp	QWORD PTR LLCP_CONNECTED[rip], rax
	je	.L11
.L5:
	mov	ecx, DWORD PTR LLCP_DM_DISC[rip]
	mov	rdx, r13
	mov	rsi, r12
	mov	rdi, r14
	call	nfc_llcp_send_dm@PLT
	mov	rdi, rbp
	call	release_sock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	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
	jmp	nfc_llcp_sock_put@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	pr_debug@PLT
	mov	edi, DWORD PTR [r14]
	add	rsp, 8
	.cfi_remember_state
	.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
	jmp	nfc_dep_link_down@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR [r14]
	call	nfc_put_device@PLT
	mov	rax, QWORD PTR LLCP_CLOSED[rip]
	mov	rdi, rbp
	mov	QWORD PTR 0[rbp], rax
	call	[QWORD PTR 8[rbp]]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbp
	call	release_sock@PLT
	mov	rdi, rbp
	call	nfc_llcp_sock_put@PLT
	mov	rax, QWORD PTR 0[rbp]
	cmp	QWORD PTR LLCP_CONNECTED[rip], rax
	jne	.L5
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	mov	ecx, DWORD PTR LLCP_DM_NOCONN[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdx, r13
	mov	rsi, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rdi, r14
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	nfc_llcp_send_dm@PLT
	.cfi_endproc
.LFE0:
	.size	nfc_llcp_recv_disc, .-nfc_llcp_recv_disc
	.comm	LLCP_DM_NOCONN,4,4
	.comm	LLCP_DM_DISC,4,4
	.comm	LLCP_CONNECTED,8,8
	.comm	LLCP_CLOSED,8,8
	.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_llcp_core.c_nfc_llcp_recv_disc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Connection termination\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nfc_llcp_recv_disc, %function
nfc_llcp_recv_disc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	mov	r0, r1
	mov	r4, r1
	bl	nfc_llcp_dsap
	mov	r6, r0
	mov	r0, r4
	bl	nfc_llcp_ssap
	orrs	r3, r6, r0
	beq	.L8
	mov	r2, r0
	mov	r5, r0
	mov	r1, r6
	mov	r0, r7
	bl	nfc_llcp_sock_get
	subs	r4, r0, #0
	beq	.L9
	ldr	r8, .L12
	bl	lock_sock
	mov	r0, r4
	bl	nfc_llcp_socket_purge
	ldr	r2, [r8]
	ldr	r3, [r4]
	cmp	r3, r2
	beq	.L10
	ldr	r2, .L12+4
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L11
.L5:
	ldr	r3, .L12+8
	mov	r2, r5
	mov	r1, r6
	mov	r0, r7
	ldr	r3, [r3]
	bl	nfc_llcp_send_dm
	mov	r0, r4
	bl	release_sock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	nfc_llcp_sock_put
.L8:
	ldr	r0, .L12+12
	bl	pr_debug
	ldr	r0, [r7]
	pop	{r4, r5, r6, r7, r8, lr}
	b	nfc_dep_link_down
.L11:
	ldr	r0, [r7]
	bl	nfc_put_device
	ldr	r2, [r8]
	mov	r0, r4
	ldr	r3, [r4, #4]
	str	r2, [r4]
	blx	r3
	b	.L5
.L10:
	mov	r0, r4
	bl	release_sock
	mov	r0, r4
	bl	nfc_llcp_sock_put
	ldr	r2, .L12+4
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r2, r3
	bne	.L5
	b	.L11
.L9:
	ldr	r3, .L12+16
	mov	r2, r5
	mov	r1, r6
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	b	nfc_llcp_send_dm
.L13:
	.align	2
.L12:
	.word	LLCP_CLOSED
	.word	LLCP_CONNECTED
	.word	LLCP_DM_DISC
	.word	.LC0
	.word	LLCP_DM_NOCONN
	.size	nfc_llcp_recv_disc, .-nfc_llcp_recv_disc
	.comm	LLCP_DM_NOCONN,4,4
	.comm	LLCP_DM_DISC,4,4
	.comm	LLCP_CONNECTED,4,4
	.comm	LLCP_CLOSED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
