	.file	"extr_l2cap.c_lp_disconnect_ind.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"lp_disconnect_ind: Find a pcb with a matching Bluetooth address\n"
	.align 8
.LC1:
	.string	"lp_disconnect_ind: Notify application\n"
	.text
	.p2align 4
	.globl	lp_disconnect_ind
	.type	lp_disconnect_ind, @function
lp_disconnect_ind:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, esi
	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
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, QWORD PTR l2cap_active_pcbs[rip]
	test	rbx, rbx
	je	.L2
	lea	r13, .LC0[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	test	rbx, rbx
	je	.L2
.L4:
	mov	rbp, rbx
	mov	rdi, r13
	mov	rbx, QWORD PTR 8[rbx]
	call	LOG@PLT
	lea	rdi, 4[rbp]
	mov	rsi, r12
	call	bd_addr_cmp@PLT
	test	rax, rax
	je	.L3
	mov	eax, DWORD PTR L2CAP_CLOSED[rip]
	lea	rdi, .LC1[rip]
	mov	DWORD PTR 0[rbp], eax
	call	LOG@PLT
	mov	esi, DWORD PTR ERR_OK[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	L2CA_ACTION_DISCONN_IND@PLT
	test	rbx, rbx
	jne	.L4
.L2:
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	esi, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rdi, r12
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	l2cap_disconnect_bb_cb@PLT
	.cfi_endproc
.LFE0:
	.size	lp_disconnect_ind, .-lp_disconnect_ind
	.comm	l2cap_active_pcbs,8,8
	.comm	L2CAP_CLOSED,4,4
	.comm	ERR_OK,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_l2cap.c_lp_disconnect_ind.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"lp_disconnect_ind: Find a pcb with a matching Bluet"
	.ascii	"ooth address\012\000"
	.align	2
.LC1:
	.ascii	"lp_disconnect_ind: Notify application\012\000"
	.text
	.align	2
	.global	lp_disconnect_ind
	.syntax unified
	.arm
	.fpu softvfp
	.type	lp_disconnect_ind, %function
lp_disconnect_ind:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L14
	mov	r6, r0
	ldr	r4, [r3]
	mov	r8, r1
	cmp	r4, #0
	beq	.L2
	ldr	r7, .L14+4
	ldr	fp, .L14+8
	ldr	r10, .L14+12
	ldr	r9, .L14+16
	b	.L4
.L3:
	cmp	r4, #0
	beq	.L2
.L4:
	mov	r5, r4
	mov	r0, r7
	ldr	r4, [r4, #8]
	bl	LOG
	mov	r1, r6
	add	r0, r5, #4
	bl	bd_addr_cmp
	cmp	r0, #0
	beq	.L3
	ldr	r3, [fp]
	mov	r0, r10
	str	r3, [r5]
	bl	LOG
	mov	r0, r5
	mov	r2, #0
	ldr	r1, [r9]
	bl	L2CA_ACTION_DISCONN_IND
	cmp	r4, #0
	bne	.L4
.L2:
	mov	r1, r8
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	l2cap_disconnect_bb_cb
.L15:
	.align	2
.L14:
	.word	l2cap_active_pcbs
	.word	.LC0
	.word	L2CAP_CLOSED
	.word	.LC1
	.word	ERR_OK
	.size	lp_disconnect_ind, .-lp_disconnect_ind
	.comm	l2cap_active_pcbs,4,4
	.comm	L2CAP_CLOSED,4,4
	.comm	ERR_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
