	.file	"extr_l2cap_core.c_l2cap_seq_list_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	l2cap_seq_list_init, @function
l2cap_seq_list_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	mov	edi, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	roundup_pow_of_two@PLT
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 4
	mov	rdi, rax
	mov	rbp, rax
	call	kmalloc_array@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	je	.L11
	mov	rcx, QWORD PTR L2CAP_SEQ_LIST_CLEAR[rip]
	lea	rdx, -1[rbp]
	mov	QWORD PTR [rbx], rdx
	mov	QWORD PTR 24[rbx], rcx
	mov	QWORD PTR 16[rbx], rcx
	test	rbp, rbp
	je	.L4
	xor	edx, edx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR 8[rbx]
	mov	rcx, QWORD PTR L2CAP_SEQ_LIST_CLEAR[rip]
.L5:
	mov	QWORD PTR [rax+rdx*8], rcx
	add	rdx, 1
	cmp	rbp, rdx
	jne	.L12
.L4:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	l2cap_seq_list_init, .-l2cap_seq_list_init
	.comm	L2CAP_SEQ_LIST_CLEAR,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_seq_list_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	l2cap_seq_list_init, %function
l2cap_seq_list_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r0, r1
	bl	roundup_pow_of_two
	ldr	r3, .L14
	mov	r1, #4
	ldr	r2, [r3]
	mov	r5, r0
	bl	kmalloc_array
	cmp	r0, #0
	str	r0, [r4, #4]
	beq	.L12
	ldr	r1, .L14+4
	sub	r3, r5, #1
	ldr	r2, [r1]
	cmp	r5, #0
	str	r2, [r4, #12]
	str	r2, [r4, #8]
	str	r3, [r4]
	beq	.L4
	mov	r3, #0
	b	.L5
.L13:
	ldr	r0, [r4, #4]
	ldr	r2, [r1]
.L5:
	str	r2, [r0, r3, lsl #2]
	add	r3, r3, #1
	cmp	r5, r3
	bne	.L13
.L4:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L14+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L15:
	.align	2
.L14:
	.word	GFP_KERNEL
	.word	L2CAP_SEQ_LIST_CLEAR
	.word	ENOMEM
	.size	l2cap_seq_list_init, .-l2cap_seq_list_init
	.comm	L2CAP_SEQ_LIST_CLEAR,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
