	.file	"extr_l2cap_core.c_l2cap_send_srej.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"chan %p, txseq %u"
	.text
	.p2align 4
	.type	l2cap_send_srej, @function
l2cap_send_srej:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rdx, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	mov	rsi, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	lea	rdi, .LC0[rip]
	lea	r13, 12[rbx]
	lea	r15, 8[rbx]
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	r14, rsp
	call	BT_DBG@PLT
	mov	edx, 24
	xor	esi, esi
	mov	rdi, r14
	call	memset@PLT
	mov	eax, DWORD PTR L2CAP_SUPER_SREJ[rip]
	mov	rbp, QWORD PTR [rbx]
	mov	DWORD PTR [rsp], 1
	mov	DWORD PTR 16[rsp], eax
	cmp	r12, rbp
	jne	.L4
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, rbp
	mov	rdi, rbx
	call	__next_seq@PLT
	mov	rbp, rax
	cmp	r12, rax
	je	.L5
.L4:
	mov	rsi, rbp
	mov	rdi, r13
	call	l2cap_ertm_seq_in_queue@PLT
	test	eax, eax
	jne	.L3
	mov	rsi, r14
	mov	rdi, rbx
	mov	QWORD PTR 8[rsp], rbp
	call	l2cap_send_sframe@PLT
	mov	rsi, rbp
	mov	rdi, r15
	call	l2cap_seq_list_append@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, r12
	mov	rdi, rbx
	call	__next_seq@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	l2cap_send_srej, .-l2cap_send_srej
	.comm	L2CAP_SUPER_SREJ,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_srej.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"chan %p, txseq %u\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	l2cap_send_srej, %function
l2cap_send_srej:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r5, r0
	ldr	r3, .L12
	sub	sp, sp, #16
	mov	r1, r0
	mov	r2, r6
	ldr	r0, .L12+4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	BT_DBG
	mov	r2, #0
	mov	r3, #1
	ldr	r1, .L12+8
	ldr	r4, [r5]
	ldr	r1, [r1]
	cmp	r6, r4
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	addne	r7, r5, #8
	addne	r8, r5, #4
	bne	.L4
	b	.L5
.L3:
	mov	r1, r4
	mov	r0, r5
	bl	__next_seq
	cmp	r6, r0
	mov	r4, r0
	beq	.L5
.L4:
	mov	r1, r4
	mov	r0, r7
	bl	l2cap_ertm_seq_in_queue
	cmp	r0, #0
	bne	.L3
	mov	r1, sp
	mov	r0, r5
	str	r4, [sp, #4]
	bl	l2cap_send_sframe
	mov	r1, r4
	mov	r0, r8
	bl	l2cap_seq_list_append
	b	.L3
.L5:
	mov	r1, r6
	mov	r0, r5
	bl	__next_seq
	ldr	r3, .L12
	str	r0, [r5]
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	.LC0
	.word	L2CAP_SUPER_SREJ
	.size	l2cap_send_srej, .-l2cap_send_srej
	.comm	L2CAP_SUPER_SREJ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
