	.file	"extr_core.c_rfcomm_dlc_accept.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"dlc %p"
	.text
	.p2align 4
	.globl	rfcomm_dlc_accept
	.type	rfcomm_dlc_accept, @function
rfcomm_dlc_accept:
.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	rax, QWORD PTR 8[rdi]
	lea	rdi, .LC0[rip]
	mov	rax, QWORD PTR [rax]
	mov	rbp, QWORD PTR [rax]
	call	BT_DBG@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	rdi, QWORD PTR 8[rbx]
	call	rfcomm_send_ua@PLT
	mov	rdi, rbx
	call	rfcomm_dlc_clear_timer@PLT
	mov	rdi, rbx
	call	rfcomm_dlc_lock@PLT
	mov	eax, DWORD PTR BT_CONNECTED[rip]
	xor	esi, esi
	mov	rdi, rbx
	mov	DWORD PTR 32[rbx], eax
	call	[QWORD PTR 24[rbx]]
	mov	rdi, rbx
	call	rfcomm_dlc_unlock@PLT
	cmp	QWORD PTR 16[rbx], 0
	jne	.L5
.L2:
	mov	edx, DWORD PTR 4[rbx]
	mov	rdi, QWORD PTR 8[rbx]
	mov	esi, 1
	mov	ecx, DWORD PTR [rbx]
	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
	jmp	rfcomm_send_msc@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, rbp
	call	l2cap_pi@PLT
	xor	esi, esi
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax]
	call	hci_conn_switch_role@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	rfcomm_dlc_accept, .-rfcomm_dlc_accept
	.comm	BT_CONNECTED,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_core.c_rfcomm_dlc_accept.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dlc %p\000"
	.text
	.align	2
	.global	rfcomm_dlc_accept
	.syntax unified
	.arm
	.fpu softvfp
	.type	rfcomm_dlc_accept, %function
rfcomm_dlc_accept:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, [r0, #8]
	mov	r1, r0
	ldr	r3, [r3]
	ldr	r0, .L9
	ldr	r5, [r3]
	bl	BT_DBG
	ldr	r1, [r4, #4]
	ldr	r0, [r4, #8]
	bl	rfcomm_send_ua
	mov	r0, r4
	bl	rfcomm_dlc_clear_timer
	mov	r0, r4
	bl	rfcomm_dlc_lock
	ldr	r2, .L9+4
	ldr	r3, [r4, #16]
	ldr	r2, [r2]
	mov	r1, #0
	str	r2, [r4, #20]
	mov	r0, r4
	blx	r3
	mov	r0, r4
	bl	rfcomm_dlc_unlock
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L8
.L2:
	ldr	r3, [r4]
	ldr	r2, [r4, #4]
	ldr	r0, [r4, #8]
	mov	r1, #1
	pop	{r4, r5, r6, lr}
	b	rfcomm_send_msc
.L8:
	mov	r0, r5
	bl	l2cap_pi
	ldr	r3, [r0]
	mov	r1, #0
	ldr	r0, [r3]
	bl	hci_conn_switch_role
	b	.L2
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	BT_CONNECTED
	.size	rfcomm_dlc_accept, .-rfcomm_dlc_accept
	.comm	BT_CONNECTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
