	.file	"extr_l2cap_core.c_l2cap_move_done.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"chan %p"
	.text
	.p2align 4
	.type	l2cap_move_done, @function
l2cap_move_done:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rsi, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	ebp, DWORD PTR [rdi]
	lea	rdi, .LC0[rip]
	call	BT_DBG@PLT
	mov	eax, DWORD PTR L2CAP_MOVE_STABLE[rip]
	mov	DWORD PTR 20[rbx], eax
	mov	eax, DWORD PTR L2CAP_MOVE_ROLE_NONE[rip]
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR L2CAP_MODE_ERTM[rip]
	cmp	QWORD PTR 8[rbx], rax
	jne	.L1
	cmp	ebp, 128
	je	.L3
	cmp	ebp, 129
	je	.L6
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	ecx, DWORD PTR L2CAP_EV_EXPLICIT_POLL[rip]
	mov	rdi, rbx
	xor	edx, edx
	xor	esi, esi
	call	l2cap_tx@PLT
	mov	eax, DWORD PTR L2CAP_RX_STATE_WAIT_F[rip]
	mov	DWORD PTR 16[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR L2CAP_RX_STATE_WAIT_P[rip]
	mov	DWORD PTR 16[rbx], eax
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	l2cap_move_done, .-l2cap_move_done
	.comm	L2CAP_RX_STATE_WAIT_P,4,4
	.comm	L2CAP_RX_STATE_WAIT_F,4,4
	.comm	L2CAP_MOVE_STABLE,4,4
	.comm	L2CAP_MOVE_ROLE_NONE,4,4
	.comm	L2CAP_MODE_ERTM,8,8
	.comm	L2CAP_EV_EXPLICIT_POLL,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_move_done.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"chan %p\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	l2cap_move_done, %function
l2cap_move_done:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, .L6
	mov	r1, r4
	ldr	r5, [r4]
	bl	BT_DBG
	ldr	r1, .L6+4
	ldr	r2, .L6+8
	ldr	r3, .L6+12
	ldr	r1, [r1]
	ldr	r0, [r4, #4]
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r0, r1
	str	r2, [r4, #12]
	str	r3, [r4]
	popne	{r4, r5, r6, pc}
	cmp	r5, #128
	beq	.L3
	cmp	r5, #129
	popne	{r4, r5, r6, pc}
	mov	r2, #0
	ldr	r3, .L6+16
	mov	r1, r2
	ldr	r3, [r3]
	mov	r0, r4
	bl	l2cap_tx
	ldr	r3, .L6+20
	ldr	r3, [r3]
	str	r3, [r4, #8]
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r3, .L6+24
	ldr	r3, [r3]
	str	r3, [r4, #8]
	pop	{r4, r5, r6, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	L2CAP_MODE_ERTM
	.word	L2CAP_MOVE_STABLE
	.word	L2CAP_MOVE_ROLE_NONE
	.word	L2CAP_EV_EXPLICIT_POLL
	.word	L2CAP_RX_STATE_WAIT_F
	.word	L2CAP_RX_STATE_WAIT_P
	.size	l2cap_move_done, .-l2cap_move_done
	.comm	L2CAP_RX_STATE_WAIT_P,4,4
	.comm	L2CAP_RX_STATE_WAIT_F,4,4
	.comm	L2CAP_MOVE_STABLE,4,4
	.comm	L2CAP_MOVE_ROLE_NONE,4,4
	.comm	L2CAP_MODE_ERTM,4,4
	.comm	L2CAP_EV_EXPLICIT_POLL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
