	.file	"extr_cmf.c_alloc_cmb.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	alloc_cmb, @function
alloc_cmb:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	mov	edi, 16
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	call	kzalloc@PLT
	test	rax, rax
	je	.L13
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 4
	mov	rbp, rax
	call	kzalloc@PLT
	mov	QWORD PTR 8[rbp], rax
	test	rax, rax
	je	.L15
	mov	DWORD PTR 0[rbp], 4
	lea	rdi, cmb_area[rip+4]
	call	spin_lock@PLT
	cmp	QWORD PTR cmb_area[rip+8], 0
	je	.L16
.L5:
	mov	rdi, r12
	mov	rsi, rbp
	call	alloc_cmb_single@PLT
	mov	r12d, eax
.L8:
	lea	rdi, cmb_area[rip+4]
	call	spin_unlock@PLT
	test	r12d, r12d
	jne	.L17
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, rbp
	call	kfree@PLT
.L13:
	mov	r12d, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbp]
	call	kfree@PLT
	mov	rdi, rbp
	call	kfree@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	eax, DWORD PTR cmb_area[rip]
	lea	rdi, cmb_area[rip+16]
	lea	r13d, 0[0+rax*4]
	call	list_empty@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	WARN_ON@PLT
	lea	rdi, cmb_area[rip+4]
	call	spin_unlock@PLT
	mov	edi, r13d
	call	get_order@PLT
	mov	edi, DWORD PTR GFP_KERNEL[rip]
	or	edi, DWORD PTR GFP_DMA[rip]
	mov	esi, eax
	call	__get_free_pages@PLT
	lea	rdi, cmb_area[rip+4]
	mov	r14, rax
	call	spin_lock@PLT
	cmp	QWORD PTR cmb_area[rip+8], 0
	je	.L6
	mov	edi, r13d
	call	get_order@PLT
	mov	rdi, r14
	mov	esi, eax
	call	free_pages@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	test	r14, r14
	jne	.L7
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	xor	esi, esi
	mov	rdi, r14
	mov	edx, r13d
	call	memset@PLT
	mov	esi, DWORD PTR CMF_ON[rip]
	mov	rdi, r14
	mov	QWORD PTR cmb_area[rip+8], r14
	call	cmf_activate@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	alloc_cmb, .-alloc_cmb
	.comm	cmb_area,24,16
	.comm	GFP_KERNEL,4,4
	.comm	GFP_DMA,4,4
	.comm	ENOMEM,4,4
	.comm	CMF_ON,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_cmf.c_alloc_cmb.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_cmb, %function
alloc_cmb:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, .L18
	mov	r6, r0
	ldr	r1, [r7]
	mov	r0, #8
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L13
	mov	r0, #4
	ldr	r1, [r7]
	bl	kzalloc
	cmp	r0, #0
	str	r0, [r4, #4]
	beq	.L15
	mov	r3, #4
	ldr	r5, .L18+4
	str	r3, [r4]
	mov	r0, r5
	sub	r8, r5, #4
	bl	spin_lock
	ldr	r3, [r8, #8]
	cmp	r3, #0
	beq	.L16
.L5:
	mov	r0, r6
	mov	r1, r4
	bl	alloc_cmb_single
	mov	r5, r0
.L8:
	ldr	r0, .L18+4
	bl	spin_unlock
	cmp	r5, #0
	bne	.L17
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	mov	r0, r4
	bl	kfree
.L13:
	ldr	r3, .L18+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	ldr	r0, [r4, #4]
	bl	kfree
	mov	r0, r4
	bl	kfree
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	add	r0, r5, #8
	ldr	r9, [r5, #-4]
	bl	list_empty
	clz	r0, r0
	lsr	r0, r0, #5
	bl	WARN_ON
	mov	r0, r5
	bl	spin_unlock
	ldr	r3, .L18+12
	ldr	r7, [r7]
	ldr	r3, [r3]
	lsl	r9, r9, #2
	mov	r0, r9
	orr	r7, r7, r3
	bl	get_order
	mov	r1, r0
	mov	r0, r7
	bl	__get_free_pages
	mov	r3, r0
	mov	r0, r5
	mov	r5, r3
	bl	spin_lock
	ldr	r1, [r8, #8]
	cmp	r1, #0
	beq	.L6
	mov	r0, r9
	bl	get_order
	mov	r1, r0
	mov	r0, r5
	bl	free_pages
	b	.L5
.L6:
	cmp	r5, #0
	ldreq	r3, .L18+8
	ldreq	r5, [r3]
	rsbeq	r5, r5, #0
	beq	.L8
.L7:
	mov	r2, r9
	mov	r0, r5
	bl	memset
	ldr	r3, .L18+16
	mov	r0, r5
	ldr	r1, [r3]
	str	r5, [r8, #8]
	bl	cmf_activate
	b	.L5
.L19:
	.align	2
.L18:
	.word	GFP_KERNEL
	.word	cmb_area+4
	.word	ENOMEM
	.word	GFP_DMA
	.word	CMF_ON
	.size	alloc_cmb, .-alloc_cmb
	.comm	cmb_area,16,4
	.comm	GFP_KERNEL,4,4
	.comm	GFP_DMA,4,4
	.comm	ENOMEM,4,4
	.comm	CMF_ON,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
