	.file	"extr_l2cap_core.c_l2cap_rx_state_wait_p.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"chan %p, control %p, skb %p, event %d"
	.text
	.p2align 4
	.type	l2cap_rx_state_wait_p, @function
l2cap_rx_state_wait_p:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r8d, ecx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, ecx
	mov	rcx, rdx
	mov	rdx, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	mov	rsi, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	BT_DBG@PLT
	mov	eax, DWORD PTR 4[r12]
	test	eax, eax
	jne	.L2
.L8:
	mov	eax, DWORD PTR EPROTO[rip]
	neg	eax
.L1:
	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
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR [r12]
	mov	rdi, rbp
	lea	r14, 32[rbp]
	call	l2cap_process_reqseq@PLT
	mov	rdi, r14
	call	skb_queue_empty@PLT
	test	eax, eax
	je	.L10
	mov	QWORD PTR 24[rbp], 0
.L5:
	mov	eax, DWORD PTR [r12]
	mov	QWORD PTR 8[rbp], 0
	mov	rdi, rbp
	mov	DWORD PTR 16[rbp], eax
	call	l2cap_finish_move@PLT
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR CONN_SEND_FBIT[rip]
	mov	rsi, rbp
	call	set_bit@PLT
	mov	rdi, rbp
	call	l2cap_send_i_or_rr_or_rnr@PLT
	cmp	DWORD PTR L2CAP_EV_RECV_IFRAME[rip], r13d
	je	.L8
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	ecx, r13d
	mov	rsi, r12
	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	l2cap_rx_state_recv@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, r14
	call	skb_peek@PLT
	mov	QWORD PTR 24[rbp], rax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	l2cap_rx_state_wait_p, .-l2cap_rx_state_wait_p
	.comm	L2CAP_EV_RECV_IFRAME,4,4
	.comm	EPROTO,4,4
	.comm	CONN_SEND_FBIT,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_rx_state_wait_p.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"chan %p, control %p, skb %p, event %d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	l2cap_rx_state_wait_p, %function
l2cap_rx_state_wait_p:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r7, r3
	mov	r5, r1
	sub	sp, sp, #12
	mov	r3, r2
	mov	r4, r0
	mov	r2, r1
	str	r7, [sp]
	mov	r1, r0
	ldr	r0, .L11
	bl	BT_DBG
	ldr	r3, [r5, #4]
	cmp	r3, #0
	bne	.L2
.L8:
	ldr	r3, .L11+4
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L1:
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r1, [r5]
	mov	r0, r4
	add	r6, r4, #16
	bl	l2cap_process_reqseq
	mov	r0, r6
	bl	skb_queue_empty
	cmp	r0, #0
	movne	r3, #0
	strne	r3, [r4, #12]
	beq	.L10
.L5:
	mov	r2, #0
	ldr	r3, [r5]
	mov	r0, r4
	stmib	r4, {r2, r3}
	bl	l2cap_finish_move
	subs	r6, r0, #0
	bne	.L1
	ldr	r3, .L11+8
	mov	r1, r4
	ldr	r0, [r3]
	bl	set_bit
	mov	r0, r4
	bl	l2cap_send_i_or_rr_or_rnr
	ldr	r3, .L11+12
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L8
	mov	r3, r7
	mov	r2, r6
	mov	r1, r5
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	l2cap_rx_state_recv
.L10:
	mov	r0, r6
	bl	skb_peek
	str	r0, [r4, #12]
	b	.L5
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	EPROTO
	.word	CONN_SEND_FBIT
	.word	L2CAP_EV_RECV_IFRAME
	.size	l2cap_rx_state_wait_p, .-l2cap_rx_state_wait_p
	.comm	L2CAP_EV_RECV_IFRAME,4,4
	.comm	EPROTO,4,4
	.comm	CONN_SEND_FBIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
