	.file	"extr_l2cap_core.c_l2cap_tx_state_wait_f.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"chan %p, control %p, skbs %p, event %d"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Enter LOCAL_BUSY"
.LC2:
	.string	"Exit LOCAL_BUSY"
.LC3:
	.string	"recv fbit tx_state 0x2.2%x"
	.text
	.p2align 4
	.type	l2cap_tx_state_wait_f, @function
l2cap_tx_state_wait_f:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r8d, ecx
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, ecx
	mov	rcx, rdx
	mov	rdx, rsi
	add	ebx, -128
	mov	rsi, rdi
	lea	rdi, .LC0[rip]
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	BT_DBG@PLT
	cmp	ebx, 6
	ja	.L1
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rbx*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L1-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR 4[rbp]
	test	eax, eax
	je	.L16
	cmp	eax, DWORD PTR 0[rbp]
	jle	.L17
.L16:
	mov	esi, 1
	mov	rdi, rbp
	call	l2cap_send_rr_or_rnr@PLT
	mov	rdi, rbp
	call	__set_monitor_timer@PLT
	add	DWORD PTR 0[rbp], 1
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	QWORD PTR 32[rbp], 0
	je	.L28
.L10:
	lea	rsi, 28[rbp]
	mov	rdi, r13
	call	skb_queue_splice_tail_init@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, DWORD PTR 12[r12]
	mov	rdi, rbp
	call	l2cap_process_reqseq@PLT
.L13:
	mov	edx, DWORD PTR 8[r12]
	test	edx, edx
	je	.L1
	mov	rdi, rbp
	call	__clear_monitor_timer@PLT
	mov	eax, DWORD PTR 12[rbp]
	test	eax, eax
	jg	.L29
.L15:
	mov	esi, DWORD PTR L2CAP_TX_STATE_XMIT[rip]
	mov	DWORD PTR 0[rbp], 0
	lea	rdi, .LC3[rip]
	xor	eax, eax
	mov	DWORD PTR 8[rbp], esi
	call	BT_DBG@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	test	r12, r12
	je	.L1
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	BT_DBG@PLT
	mov	edi, DWORD PTR CONN_LOCAL_BUSY[rip]
	lea	rsi, 20[rbp]
	call	set_bit@PLT
	mov	eax, DWORD PTR L2CAP_RX_STATE_SREJ_SENT[rip]
	cmp	DWORD PTR 24[rbp], eax
	je	.L30
.L11:
	mov	rdi, rbp
	call	l2cap_send_ack@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	lea	r12, 20[rbp]
	call	BT_DBG@PLT
	mov	edi, DWORD PTR CONN_LOCAL_BUSY[rip]
	mov	rsi, r12
	call	clear_bit@PLT
	mov	edi, DWORD PTR CONN_RNR_SENT[rip]
	mov	rsi, r12
	call	test_bit@PLT
	test	eax, eax
	je	.L1
	mov	r12, rsp
	mov	edx, 20
	xor	esi, esi
	mov	rdi, r12
	call	memset@PLT
	mov	eax, DWORD PTR L2CAP_SUPER_RR[rip]
	mov	rsi, r12
	mov	rdi, rbp
	mov	DWORD PTR 16[rsp], eax
	movabs	rax, 4294967297
	mov	QWORD PTR [rsp], rax
	mov	eax, DWORD PTR 16[rbp]
	mov	DWORD PTR 12[rsp], eax
	call	l2cap_send_sframe@PLT
	mov	DWORD PTR 0[rbp], 1
	mov	rdi, rbp
	call	__set_monitor_timer@PLT
	mov	eax, DWORD PTR L2CAP_TX_STATE_WAIT_F[rip]
	mov	DWORD PTR 8[rbp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L29:
	mov	rdi, rbp
	call	__set_retrans_timer@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L17:
	mov	esi, DWORD PTR ECONNABORTED[rip]
	mov	rdi, rbp
	call	l2cap_send_disconn_req@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rdi, rbp
	call	l2cap_abort_rx_srej_sent@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, r13
	call	skb_peek@PLT
	mov	QWORD PTR 32[rbp], rax
	jmp	.L10
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	l2cap_tx_state_wait_f, .-l2cap_tx_state_wait_f
	.comm	L2CAP_TX_STATE_XMIT,4,4
	.comm	L2CAP_TX_STATE_WAIT_F,4,4
	.comm	L2CAP_SUPER_RR,4,4
	.comm	L2CAP_RX_STATE_SREJ_SENT,4,4
	.comm	ECONNABORTED,4,4
	.comm	CONN_RNR_SENT,4,4
	.comm	CONN_LOCAL_BUSY,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_tx_state_wait_f.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"chan %p, control %p, skbs %p, event %d\000"
	.align	2
.LC1:
	.ascii	"Enter LOCAL_BUSY\000"
	.align	2
.LC2:
	.ascii	"Exit LOCAL_BUSY\000"
	.align	2
.LC3:
	.ascii	"recv fbit tx_state 0x2.2%x\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	l2cap_tx_state_wait_f, %function
l2cap_tx_state_wait_f:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r3
	sub	sp, sp, #36
	ldr	ip, .L34
	str	r4, [sp]
	mov	r3, r2
	mov	r5, r0
	mov	r6, r1
	mov	r7, r2
	sub	r4, r4, #128
	mov	r2, r1
	mov	r1, r0
	ldr	r0, .L34+4
	ldr	ip, [ip]
	str	ip, [sp, #28]
	mov	ip,#0
	bl	BT_DBG
	cmp	r4, #6
	ldrls	pc, [pc, r4, asl #2]
	b	.L1
.L4:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L1
	.word	.L3
.L7:
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L16
	ldr	r2, [r5]
	cmp	r3, r2
	ble	.L17
.L16:
	mov	r1, #1
	mov	r0, r5
	bl	l2cap_send_rr_or_rnr
	mov	r0, r5
	bl	__set_monitor_timer
	ldr	r3, [r5]
	add	r3, r3, #1
	str	r3, [r5]
.L1:
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L3:
	ldr	r3, [r5, #32]
	cmp	r3, #0
	beq	.L31
.L10:
	mov	r0, r7
	add	r1, r5, #28
	bl	skb_queue_splice_tail_init
	b	.L1
.L9:
	mov	r0, r5
	ldr	r1, [r6, #12]
	bl	l2cap_process_reqseq
.L13:
	ldr	r3, [r6, #8]
	cmp	r3, #0
	beq	.L1
	mov	r0, r5
	bl	__clear_monitor_timer
	ldr	r3, [r5, #12]
	cmp	r3, #0
	bgt	.L32
.L15:
	mov	r2, #0
	ldr	r3, .L34+8
	str	r2, [r5]
	ldr	r1, [r3]
	ldr	r0, .L34+12
	str	r1, [r5, #8]
	bl	BT_DBG
	b	.L1
.L8:
	cmp	r6, #0
	beq	.L1
	b	.L13
.L6:
	ldr	r0, .L34+16
	bl	BT_DBG
	ldr	r3, .L34+20
	add	r1, r5, #20
	ldr	r0, [r3]
	bl	set_bit
	ldr	r3, .L34+24
	ldr	r2, [r5, #24]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L33
.L11:
	mov	r0, r5
	bl	l2cap_send_ack
	b	.L1
.L5:
	ldr	r0, .L34+28
	bl	BT_DBG
	ldr	r3, .L34+20
	add	r4, r5, #20
	mov	r1, r4
	ldr	r0, [r3]
	bl	clear_bit
	ldr	r3, .L34+32
	mov	r1, r4
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	beq	.L1
	mov	r2, #0
	mov	r4, #1
	ldr	r1, .L34+36
	ldr	r3, [r5, #16]
	ldr	r0, [r1]
	add	r1, sp, #8
	str	r0, [sp, #24]
	mov	r0, r5
	str	r3, [sp, #20]
	str	r2, [sp, #16]
	str	r4, [sp, #8]
	str	r4, [sp, #12]
	bl	l2cap_send_sframe
	mov	r0, r5
	str	r4, [r5]
	bl	__set_monitor_timer
	ldr	r3, .L34+40
	ldr	r3, [r3]
	str	r3, [r5, #8]
	b	.L1
.L32:
	mov	r0, r5
	bl	__set_retrans_timer
	b	.L15
.L17:
	ldr	r3, .L34+44
	mov	r0, r5
	ldr	r1, [r3]
	bl	l2cap_send_disconn_req
	b	.L1
.L33:
	mov	r0, r5
	bl	l2cap_abort_rx_srej_sent
	b	.L11
.L31:
	mov	r0, r7
	bl	skb_peek
	str	r0, [r5, #32]
	b	.L10
.L30:
	bl	__stack_chk_fail
.L35:
	.align	2
.L34:
	.word	.LC4
	.word	.LC0
	.word	L2CAP_TX_STATE_XMIT
	.word	.LC3
	.word	.LC1
	.word	CONN_LOCAL_BUSY
	.word	L2CAP_RX_STATE_SREJ_SENT
	.word	.LC2
	.word	CONN_RNR_SENT
	.word	L2CAP_SUPER_RR
	.word	L2CAP_TX_STATE_WAIT_F
	.word	ECONNABORTED
	.size	l2cap_tx_state_wait_f, .-l2cap_tx_state_wait_f
	.comm	L2CAP_TX_STATE_XMIT,4,4
	.comm	L2CAP_TX_STATE_WAIT_F,4,4
	.comm	L2CAP_SUPER_RR,4,4
	.comm	L2CAP_RX_STATE_SREJ_SENT,4,4
	.comm	ECONNABORTED,4,4
	.comm	CONN_RNR_SENT,4,4
	.comm	CONN_LOCAL_BUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
