	.file	"extr_cvmx-app-hotplug.c_cvmx_app_hotplug_call_add_cores_callback.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"\nERROR: Failed to get hotplug info for app at index=%d\n"
	.text
	.p2align 4
	.globl	cvmx_app_hotplug_call_add_cores_callback
	.type	cvmx_app_hotplug_call_add_cores_callback, @function
cvmx_app_hotplug_call_add_cores_callback:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	cvmx_app_hotplug_get_info_at_index@PLT
	test	rax, rax
	je	.L2
	mov	rbp, rax
	mov	eax, DWORD PTR CVMX_MAX_CORES[rip]
	xor	ebx, ebx
	test	eax, eax
	jg	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	add	ebx, 1
	cmp	DWORD PTR CVMX_MAX_CORES[rip], ebx
	jle	.L4
.L3:
	mov	rax, QWORD PTR 0[rbp]
	bt	rax, rbx
	jnc	.L6
	mov	edi, ebx
	add	ebx, 1
	call	CVMX_CIU_MBOX_SETX@PLT
	mov	esi, 4
	mov	edi, eax
	call	cvmx_write_csr@PLT
	cmp	DWORD PTR CVMX_MAX_CORES[rip], ebx
	jg	.L3
.L4:
	xor	eax, eax
.L1:
	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
.L2:
	.cfi_restore_state
	mov	esi, r12d
	lea	rdi, .LC0[rip]
	call	printf@PLT
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	cvmx_app_hotplug_call_add_cores_callback, .-cvmx_app_hotplug_call_add_cores_callback
	.comm	CVMX_MAX_CORES,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_cvmx-app-hotplug.c_cvmx_app_hotplug_call_add_cores_callback.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012ERROR: Failed to get hotplug info for app at in"
	.ascii	"dex=%d\012\000"
	.text
	.align	2
	.global	cvmx_app_hotplug_call_add_cores_callback
	.syntax unified
	.arm
	.fpu softvfp
	.type	cvmx_app_hotplug_call_add_cores_callback, %function
cvmx_app_hotplug_call_add_cores_callback:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	bl	cvmx_app_hotplug_get_info_at_index
	subs	r5, r0, #0
	beq	.L2
	ldr	r8, .L14
	ldr	r3, [r8]
	cmp	r3, #0
	movgt	r4, #0
	movgt	r9, r4
	bgt	.L3
	b	.L4
.L6:
	ldr	r3, [r8]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L4
.L3:
	mov	r7, r9
	ldr	r3, [r5]
	ldr	r2, [r5, #4]
	rsb	r1, r4, #32
	lsr	r3, r3, r4
	orr	r3, r3, r2, lsl r1
	sub	r1, r4, #32
	orr	r3, r3, r2, lsr r1
	and	r6, r3, #1
	orrs	r3, r6, r7
	beq	.L6
	mov	r0, r4
	bl	CVMX_CIU_MBOX_SETX
	mov	r1, #4
	bl	cvmx_write_csr
	ldr	r3, [r8]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L3
.L4:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r1, r4
	ldr	r0, .L14+4
	bl	printf
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	.align	2
.L14:
	.word	CVMX_MAX_CORES
	.word	.LC0
	.size	cvmx_app_hotplug_call_add_cores_callback, .-cvmx_app_hotplug_call_add_cores_callback
	.comm	CVMX_MAX_CORES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
