	.file	"extr_tracing_map.c_tracing_map_array_alloc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tracing_map_array_alloc
	.type	tracing_map_array_alloc, @function
tracing_map_array_alloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edi
	mov	edi, 32
	call	kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	edi, ebp
	call	roundup_pow_of_two@PLT
	lea	edi, -1[rax]
	call	fls@PLT
	mov	edx, 1
	mov	rcx, rax
	mov	DWORD PTR [r12], eax
	mov	eax, DWORD PTR PAGE_SIZE[rip]
	sal	edx, cl
	mov	ecx, edx
	cdq
	idiv	ecx
	mov	DWORD PTR 4[r12], eax
	mov	edi, eax
	cmp	eax, ebx
	ja	.L3
	mov	eax, ebx
	xor	edx, edx
	div	edi
	mov	DWORD PTR 8[r12], eax
.L4:
	call	fls@PLT
	mov	edx, 1
	mov	edi, DWORD PTR 8[r12]
	mov	esi, 8
	lea	rcx, -1[rax]
	sal	edx, cl
	mov	DWORD PTR 12[r12], ecx
	sub	edx, 1
	mov	DWORD PTR 16[r12], edx
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	call	kcalloc@PLT
	mov	QWORD PTR 24[r12], rax
	test	rax, rax
	je	.L5
	mov	eax, DWORD PTR 8[r12]
	test	eax, eax
	je	.L1
	xor	ebx, ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	add	ebx, 1
	cmp	DWORD PTR 8[r12], ebx
	jbe	.L1
.L6:
	mov	edi, DWORD PTR GFP_KERNEL[rip]
	call	get_zeroed_page@PLT
	mov	rdx, QWORD PTR 24[r12]
	mov	r8, rax
	mov	eax, ebx
	mov	QWORD PTR [rdx+rax*8], r8
	mov	rdx, QWORD PTR 24[r12]
	cmp	QWORD PTR [rdx+rax*8], 0
	jne	.L16
.L5:
	mov	rdi, r12
	xor	r12d, r12d
	call	tracing_map_array_free@PLT
.L1:
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	DWORD PTR 8[r12], 1
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	tracing_map_array_alloc, .-tracing_map_array_alloc
	.comm	PAGE_SIZE,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_tracing_map.c_tracing_map_array_alloc.c"
	.text
	.global	__aeabi_idiv
	.global	__aeabi_uidiv
	.align	2
	.global	tracing_map_array_alloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	tracing_map_array_alloc, %function
tracing_map_array_alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L24
	mov	r7, r0
	mov	r4, r1
	mov	r0, #24
	ldr	r1, [r6]
	bl	kzalloc
	subs	r5, r0, #0
	beq	.L1
	mov	r0, r4
	bl	roundup_pow_of_two
	sub	r0, r0, #1
	bl	fls
	mov	r8, #1
	ldr	r3, .L24+4
	str	r0, [r5]
	lsl	r1, r8, r0
	ldr	r0, [r3]
	bl	__aeabi_idiv
	cmp	r0, r7
	mov	r4, r0
	str	r0, [r5, #4]
	strhi	r8, [r5, #8]
	bls	.L22
.L4:
	mov	r0, r4
	bl	fls
	mvn	r3, #0
	add	r0, r0, r3
	mvn	r3, r3, lsl r0
	str	r0, [r5, #12]
	mov	r1, #4
	ldr	r2, [r6]
	ldr	r0, [r5, #8]
	str	r3, [r5, #16]
	bl	kcalloc
	cmp	r0, #0
	str	r0, [r5, #20]
	beq	.L5
	ldr	r3, [r5, #8]
	cmp	r3, #0
	beq	.L1
	mov	r4, #0
	b	.L6
.L23:
	ldr	r3, [r5, #8]
	cmp	r3, r4
	bls	.L1
.L6:
	ldr	r0, [r6]
	bl	get_zeroed_page
	ldr	r3, [r5, #20]
	str	r0, [r3, r4, lsl #2]
	ldr	r3, [r5, #20]
	ldr	r3, [r3, r4, lsl #2]
	add	r4, r4, #1
	cmp	r3, #0
	bne	.L23
.L5:
	mov	r0, r5
	bl	tracing_map_array_free
	mov	r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	mov	r0, r7
	mov	r1, r4
	bl	__aeabi_uidiv
	str	r0, [r5, #8]
	b	.L4
.L25:
	.align	2
.L24:
	.word	GFP_KERNEL
	.word	PAGE_SIZE
	.size	tracing_map_array_alloc, .-tracing_map_array_alloc
	.comm	PAGE_SIZE,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
