	.file	"extr_psci_checker.c_alloc_init_cpu_groups.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	alloc_init_cpu_groups, @function
alloc_init_cpu_groups:
.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
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rdi, 12[rsp]
	call	alloc_cpumask_var@PLT
	test	eax, eax
	jne	.L2
.L10:
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	edi, DWORD PTR nb_available_cpus[rip]
	mov	esi, 8
	call	kcalloc@PLT
	mov	QWORD PTR 16[rsp], rax
	test	rax, rax
	je	.L10
	mov	rsi, QWORD PTR cpu_online_mask[rip]
	mov	edi, DWORD PTR 12[rsp]
	xor	ebx, ebx
	call	cpumask_copy@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	call	cpumask_any@PLT
	lea	r14, 0[0+rbx*4]
	add	rbx, 1
	mov	edi, eax
	call	topology_core_cpumask@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	r12, rax
	add	rdi, r14
	call	alloc_cpumask_var@PLT
	test	eax, eax
	je	.L13
	mov	rax, QWORD PTR 16[rsp]
	mov	rsi, r12
	mov	edi, DWORD PTR [rax+r14]
	call	cpumask_copy@PLT
	mov	edi, DWORD PTR 12[rsp]
	mov	rdx, r12
	mov	esi, edi
	call	cpumask_andnot@PLT
.L5:
	mov	edi, DWORD PTR 12[rsp]
	mov	r13d, ebx
	call	cpumask_empty@PLT
	mov	edi, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L7
	call	free_cpumask_var@PLT
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR 0[rbp], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rsi, 16[rsp]
	mov	edi, r13d
	call	free_cpu_groups@PLT
	jmp	.L10
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	alloc_init_cpu_groups, .-alloc_init_cpu_groups
	.comm	nb_available_cpus,4,4
	.comm	cpu_online_mask,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_psci_checker.c_alloc_init_cpu_groups.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc_init_cpu_groups, %function
alloc_init_cpu_groups:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r6, .L14
	sub	sp, sp, #20
	ldr	r3, .L14+4
	mov	r7, r0
	ldr	r1, [r6]
	add	r0, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	alloc_cpumask_var
	cmp	r0, #0
	bne	.L2
.L10:
	ldr	r3, .L14+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r3, .L14+12
	mov	r1, #4
	ldr	r2, [r6]
	ldr	r0, [r3]
	bl	kcalloc
	cmp	r0, #0
	str	r0, [sp, #8]
	beq	.L10
	ldr	r3, .L14+16
	ldr	r0, [sp, #4]
	ldr	r1, [r3]
	bl	cpumask_copy
	mov	r4, #0
	b	.L5
.L7:
	bl	cpumask_any
	bl	topology_core_cpumask
	mov	r5, r0
	ldr	r0, [sp, #8]
	ldr	r1, [r6]
	add	r0, r0, r4, lsl #2
	bl	alloc_cpumask_var
	cmp	r0, #0
	lsl	r3, r4, #2
	beq	.L13
	ldr	r2, [sp, #8]
	mov	r1, r5
	ldr	r0, [r2, r3]
	bl	cpumask_copy
	ldr	r1, [sp, #4]
	mov	r2, r5
	mov	r0, r1
	add	r4, r4, #1
	bl	cpumask_andnot
.L5:
	ldr	r0, [sp, #4]
	bl	cpumask_empty
	cmp	r0, #0
	ldr	r0, [sp, #4]
	beq	.L7
	bl	free_cpumask_var
	ldr	r3, [sp, #8]
	str	r3, [r7]
	b	.L1
.L13:
	mov	r0, r4
	add	r1, sp, #8
	bl	free_cpu_groups
	b	.L10
.L12:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	GFP_KERNEL
	.word	.LC0
	.word	ENOMEM
	.word	nb_available_cpus
	.word	cpu_online_mask
	.size	alloc_init_cpu_groups, .-alloc_init_cpu_groups
	.comm	nb_available_cpus,4,4
	.comm	cpu_online_mask,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
