	.file	"extr_l2cap_core.c_l2cap_send_cmd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"code 0x%2.2x"
	.text
	.p2align 4
	.type	l2cap_send_cmd, @function
l2cap_send_cmd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edx
	mov	edx, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	esi, r12d
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	call	l2cap_build_cmd@PLT
	mov	esi, r12d
	lea	rdi, .LC0[rip]
	mov	rbp, rax
	call	BT_DBG@PLT
	test	rbp, rbp
	je	.L1
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 8[rax]
	call	lmp_no_flush_capable@PLT
	test	rax, rax
	je	.L8
.L3:
	mov	r12d, DWORD PTR ACL_START_NO_FLUSH[rip]
.L5:
	mov	rdi, rbp
	call	bt_cb@PLT
	mov	edx, DWORD PTR BT_POWER_FORCE_ACTIVE_ON[rip]
	mov	edi, DWORD PTR [rbx]
	mov	rsi, rbp
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR HCI_PRIO_MAX[rip]
	mov	edx, r12d
	mov	DWORD PTR 0[rbp], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	hci_send_acl@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbx]
	mov	r12d, DWORD PTR ACL_START[rip]
	mov	rsi, QWORD PTR LE_LINK[rip]
	cmp	QWORD PTR [rax], rsi
	jne	.L5
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	l2cap_send_cmd, .-l2cap_send_cmd
	.comm	LE_LINK,8,8
	.comm	HCI_PRIO_MAX,4,4
	.comm	BT_POWER_FORCE_ACTIVE_ON,4,4
	.comm	ACL_START_NO_FLUSH,4,4
	.comm	ACL_START,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_core.c_l2cap_send_cmd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"code 0x%2.2x\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	l2cap_send_cmd, %function
l2cap_send_cmd:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r2
	sub	sp, sp, #8
	ldr	ip, [sp, #24]
	mov	r2, r1
	str	ip, [sp]
	mov	r1, r5
	mov	r6, r0
	bl	l2cap_build_cmd
	mov	r4, r0
	mov	r1, r5
	ldr	r0, .L9
	bl	BT_DBG
	cmp	r4, #0
	beq	.L1
	ldr	r3, [r6, #4]
	ldr	r0, [r3, #4]
	bl	lmp_no_flush_capable
	cmp	r0, #0
	beq	.L8
.L3:
	ldr	r3, .L9+4
	ldr	r5, [r3]
.L5:
	mov	r0, r4
	bl	bt_cb
	ldr	r3, .L9+8
	mov	r2, r5
	ldr	r1, [r3]
	ldr	r3, .L9+12
	str	r1, [r0]
	mov	r1, r4
	ldr	r3, [r3]
	ldr	r0, [r6]
	str	r3, [r4]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	hci_send_acl
.L8:
	ldr	r2, [r6, #4]
	ldr	r3, .L9+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L3
	ldr	r3, .L9+20
	ldr	r5, [r3]
	b	.L5
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	ACL_START_NO_FLUSH
	.word	BT_POWER_FORCE_ACTIVE_ON
	.word	HCI_PRIO_MAX
	.word	LE_LINK
	.word	ACL_START
	.size	l2cap_send_cmd, .-l2cap_send_cmd
	.comm	LE_LINK,4,4
	.comm	HCI_PRIO_MAX,4,4
	.comm	BT_POWER_FORCE_ACTIVE_ON,4,4
	.comm	ACL_START_NO_FLUSH,4,4
	.comm	ACL_START,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
