	.file	"extr_l2cap_core.c_l2cap_segment_le_sdu.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"chan %p, msg %p, len %zu"
	.text
	.p2align 4
	.type	l2cap_segment_le_sdu, @function
l2cap_segment_le_sdu:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	mov	rsi, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	lea	rdi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	BT_DBG@PLT
	mov	rbx, QWORD PTR [r12]
	sub	rbx, QWORD PTR L2CAP_SDULEN_SIZE[rip]
	test	rbp, rbp
	je	.L6
	mov	r15, rbp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	call	__skb_queue_tail@PLT
	sub	rbp, rbx
	test	r15, r15
	je	.L4
	add	rbx, QWORD PTR L2CAP_SDULEN_SIZE[rip]
.L4:
	xor	r15d, r15d
	test	rbp, rbp
	je	.L6
.L5:
	cmp	rbx, rbp
	mov	rsi, r13
	mov	rcx, r15
	mov	rdi, r12
	cmova	rbx, rbp
	mov	rdx, rbx
	call	l2cap_create_le_flowctl_pdu@PLT
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], rax
	call	IS_ERR@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, r14
	test	rax, rax
	je	.L3
	call	__skb_queue_purge@PLT
	mov	rsi, QWORD PTR 8[rsp]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	mov	rdi, rsi
	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
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	add	rsp, 24
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	.cfi_endproc
.LFE0:
	.size	l2cap_segment_le_sdu, .-l2cap_segment_le_sdu
	.comm	L2CAP_SDULEN_SIZE,8,8
	.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_segment_le_sdu.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"chan %p, msg %p, len %zu\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	l2cap_segment_le_sdu, %function
l2cap_segment_le_sdu:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	mov	r5, r3
	ldr	r10, .L16
	mov	r8, r1
	mov	r1, r0
	ldr	r0, .L16+4
	mov	r9, r2
	bl	BT_DBG
	ldr	r4, [r7]
	ldr	r2, [r10]
	cmp	r5, #0
	sub	r4, r4, r2
	beq	.L6
	mov	fp, r5
	b	.L5
.L3:
	mov	r1, r6
	mov	r0, r8
	bl	__skb_queue_tail
	cmp	fp, #0
	ldrne	r3, [r10]
	sub	r5, r5, r4
	addne	r4, r4, r3
	cmp	r5, #0
	mov	fp, #0
	beq	.L6
.L5:
	cmp	r4, r5
	movcs	r4, r5
	mov	r3, fp
	mov	r2, r4
	mov	r1, r9
	mov	r0, r7
	bl	l2cap_create_le_flowctl_pdu
	mov	r6, r0
	bl	IS_ERR
	cmp	r0, #0
	beq	.L3
	mov	r0, r8
	bl	__skb_queue_purge
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	PTR_ERR
.L6:
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	.align	2
.L16:
	.word	L2CAP_SDULEN_SIZE
	.word	.LC0
	.size	l2cap_segment_le_sdu, .-l2cap_segment_le_sdu
	.comm	L2CAP_SDULEN_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
