	.file	"extr_l2cap.c_lp_connect_cfm.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"lp_connect_cfm: No resources available\n"
	.align 8
.LC1:
	.string	"lp_connect_cfm: Connection falied\n"
	.align 8
.LC2:
	.string	"lp_connect_cfm: Silently discard\n"
	.text
	.p2align 4
	.globl	lp_connect_cfm
	.type	lp_connect_cfm, @function
lp_connect_cfm:
.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
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, QWORD PTR l2cap_active_pcbs[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	test	rbp, rbp
	je	.L2
	mov	rbx, rdi
	mov	r13d, esi
	mov	r14, rdx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rbp, QWORD PTR 24[rbp]
	test	rbp, rbp
	je	.L2
.L4:
	lea	r12, 4[rbp]
	mov	rsi, rbx
	mov	rdi, r12
	call	bd_addr_cmp@PLT
	test	rax, rax
	je	.L20
	cmp	QWORD PTR ERR_OK[rip], r14
	lea	rdi, .LC1[rip]
	je	.L21
.L18:
	call	ERROR@PLT
	xor	ecx, ecx
.L17:
	mov	esi, DWORD PTR L2CAP_CONN_REF_RES[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	xor	edx, edx
	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	L2CA_ACTION_CONN_CFM@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	rdi, .LC2[rip]
	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	LOG@PLT
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	edx, DWORD PTR PBUF_RAM[rip]
	mov	esi, DWORD PTR L2CAP_CONN_REQ_SIZE[rip]
	mov	DWORD PTR 16[rbp], r13d
	mov	edi, DWORD PTR PBUF_RAW[rip]
	call	btpbuf_alloc@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L5
	mov	edi, DWORD PTR 12[rbp]
	mov	r13, QWORD PTR [rax]
	call	htole16@PLT
	mov	DWORD PTR 0[r13], eax
	mov	edi, DWORD PTR 8[rbp]
	mov	r13, QWORD PTR [rbx]
	call	htole16@PLT
	mov	rcx, r12
	xor	edx, edx
	mov	r8, rbx
	mov	DWORD PTR 4[r13], eax
	mov	esi, DWORD PTR L2CAP_CONN_REQ[rip]
	mov	rdi, rbp
	call	l2cap_signal@PLT
	cmp	QWORD PTR ERR_OK[rip], rax
	mov	rcx, rax
	jne	.L17
	mov	eax, DWORD PTR W4_L2CAP_CONNECT_RSP[rip]
	mov	DWORD PTR 0[rbp], eax
	pop	rbx
	.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
	ret
.L5:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	jmp	.L18
	.cfi_endproc
.LFE0:
	.size	lp_connect_cfm, .-lp_connect_cfm
	.comm	l2cap_active_pcbs,8,8
	.comm	W4_L2CAP_CONNECT_RSP,4,4
	.comm	PBUF_RAW,4,4
	.comm	PBUF_RAM,4,4
	.comm	L2CAP_CONN_REQ_SIZE,4,4
	.comm	L2CAP_CONN_REQ,4,4
	.comm	L2CAP_CONN_REF_RES,4,4
	.comm	ERR_OK,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_l2cap.c_lp_connect_cfm.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"lp_connect_cfm: No resources available\012\000"
	.align	2
.LC1:
	.ascii	"lp_connect_cfm: Connection falied\012\000"
	.align	2
.LC2:
	.ascii	"lp_connect_cfm: Silently discard\012\000"
	.text
	.align	2
	.global	lp_connect_cfm
	.syntax unified
	.arm
	.fpu softvfp
	.type	lp_connect_cfm, %function
lp_connect_cfm:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L21
	sub	sp, sp, #8
	ldr	r4, [r3]
	cmp	r4, #0
	beq	.L2
	mov	r6, r0
	mov	r8, r1
	mov	r7, r2
	b	.L4
.L19:
	ldr	r4, [r4, #20]
	cmp	r4, #0
	beq	.L2
.L4:
	add	r5, r4, #4
	mov	r0, r5
	mov	r1, r6
	bl	bd_addr_cmp
	cmp	r0, #0
	beq	.L19
	ldr	r6, .L21+4
	ldr	r3, [r6]
	cmp	r3, r7
	beq	.L20
	ldr	r0, .L21+8
	bl	ERROR
	ldr	r3, .L21+12
	mov	r0, r4
	ldr	r1, [r3]
	mov	r3, #0
	mov	r2, r3
.L17:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	L2CA_ACTION_CONN_CFM
.L2:
	ldr	r0, .L21+16
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	LOG
.L20:
	ldr	r3, .L21+20
	ldr	r2, .L21+24
	ldr	r1, .L21+28
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, [r3]
	str	r8, [r4, #16]
	bl	btpbuf_alloc
	subs	r7, r0, #0
	beq	.L5
	ldr	r0, [r4, #12]
	ldr	r8, [r7]
	bl	htole16
	str	r0, [r8]
	ldr	r0, [r4, #8]
	ldr	r8, [r7]
	bl	htole16
	ldr	r2, .L21+32
	str	r0, [r8, #4]
	str	r7, [sp]
	ldr	r1, [r2]
	mov	r3, r5
	mov	r2, #0
	mov	r0, r4
	bl	l2cap_signal
	ldr	r2, [r6]
	cmp	r2, r0
	bne	.L6
	ldr	r3, .L21+36
	ldr	r3, [r3]
	str	r3, [r4]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r0, .L21+40
	bl	ERROR
	ldr	r3, .L21+12
	mov	r2, r7
	ldr	r1, [r3]
	mov	r0, r4
	mov	r3, #0
	b	.L17
.L6:
	ldr	r2, .L21+12
	mov	r3, r0
	ldr	r1, [r2]
	mov	r0, r4
	mov	r2, #0
	b	.L17
.L22:
	.align	2
.L21:
	.word	l2cap_active_pcbs
	.word	ERR_OK
	.word	.LC1
	.word	L2CAP_CONN_REF_RES
	.word	.LC2
	.word	PBUF_RAW
	.word	PBUF_RAM
	.word	L2CAP_CONN_REQ_SIZE
	.word	L2CAP_CONN_REQ
	.word	W4_L2CAP_CONNECT_RSP
	.word	.LC0
	.size	lp_connect_cfm, .-lp_connect_cfm
	.comm	l2cap_active_pcbs,4,4
	.comm	W4_L2CAP_CONNECT_RSP,4,4
	.comm	PBUF_RAW,4,4
	.comm	PBUF_RAM,4,4
	.comm	L2CAP_CONN_REQ_SIZE,4,4
	.comm	L2CAP_CONN_REQ,4,4
	.comm	L2CAP_CONN_REF_RES,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
