	.file	"extr_queue.c_queue_initialise.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	queue_initialise
	.type	queue_initialise, @function
queue_initialise:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	add	rdi, 16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	lea	r12, 8[r13]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	ebp, DWORD PTR NR_QE[rip]
	call	spin_lock_init@PLT
	lea	rdi, 12[r13]
	call	INIT_LIST_HEAD@PLT
	mov	rdi, r12
	call	INIT_LIST_HEAD@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, ebp
	sal	edi, 4
	call	kmalloc@PLT
	mov	QWORD PTR 0[r13], rax
	mov	rbx, rax
	test	rax, rax
	je	.L2
	test	ebp, ebp
	je	.L2
	sub	ebp, 1
	add	rbp, 1
	sal	rbp, 4
	add	rbp, rax
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, DWORD PTR QUEUE_MAGIC_FREE[rip]
	mov	rdi, rbx
	call	SET_MAGIC@PLT
	mov	QWORD PTR 8[rbx], 0
	mov	rdi, rbx
	mov	rsi, r12
	add	rbx, 16
	call	list_add@PLT
	cmp	rbx, rbp
	jne	.L3
	mov	rbx, QWORD PTR 0[r13]
.L2:
	xor	eax, eax
	test	rbx, rbx
	setne	al
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	queue_initialise, .-queue_initialise
	.comm	QUEUE_MAGIC_FREE,4,4
	.comm	NR_QE,4,4
	.comm	GFP_KERNEL,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_queue.c_queue_initialise.c"
	.text
	.align	2
	.global	queue_initialise
	.syntax unified
	.arm
	.fpu softvfp
	.type	queue_initialise, %function
queue_initialise:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	ldr	r3, .L13
	add	r0, r0, #12
	ldr	r5, [r3]
	add	r6, r7, #4
	bl	spin_lock_init
	add	r0, r7, #8
	bl	INIT_LIST_HEAD
	mov	r0, r6
	bl	INIT_LIST_HEAD
	ldr	r3, .L13+4
	lsl	r0, r5, #3
	ldr	r1, [r3]
	bl	kmalloc
	subs	r4, r0, #0
	str	r0, [r7]
	beq	.L2
	cmp	r5, #0
	beq	.L2
	mov	r9, #0
	ldr	r8, .L13+8
.L3:
	mov	r0, r4
	ldr	r1, [r8]
	bl	SET_MAGIC
	mov	r0, r4
	str	r9, [r4, #4]
	mov	r1, r6
	bl	list_add
	subs	r5, r5, #1
	add	r4, r4, #8
	bne	.L3
	ldr	r4, [r7]
.L2:
	subs	r0, r4, #0
	movne	r0, #1
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	.align	2
.L13:
	.word	NR_QE
	.word	GFP_KERNEL
	.word	QUEUE_MAGIC_FREE
	.size	queue_initialise, .-queue_initialise
	.comm	QUEUE_MAGIC_FREE,4,4
	.comm	NR_QE,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
