	.file	"extr_host.c_host_processors.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	host_processors
	.type	host_processors, @function
host_processors:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR HOST_PRIV_NULL[rip], rdi
	je	.L19
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	rax, realhost[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	cmp	rdi, rax
	sete	dil
	movzx	edi, dil
	call	assert@PLT
	mov	r15d, DWORD PTR processor_count[rip]
	xor	edi, edi
	test	r15d, r15d
	setne	dil
	call	assert@PLT
	lea	edi, 0[0+r15*8]
	call	kalloc@PLT
	mov	rbx, rax
	mov	eax, DWORD PTR KERN_RESOURCE_SHORTAGE[rip]
	test	rbx, rbx
	je	.L1
	mov	r12, QWORD PTR processor_list[rip]
	mov	QWORD PTR [rbx], r12
	cmp	r15d, 1
	ja	.L20
	mov	DWORD PTR [r14], r15d
	mov	QWORD PTR 0[r13], rbx
	test	r15d, r15d
	je	.L8
.L7:
	lea	eax, -1[r15]
	lea	rbp, 8[rbx+rax*8]
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, QWORD PTR [rbx]
	add	rbx, 8
	call	convert_processor_to_port@PLT
	cdqe
	mov	QWORD PTR -8[rbx], rax
	cmp	rbx, rbp
	jne	.L9
.L8:
	mov	eax, DWORD PTR KERN_SUCCESS[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	lea	rdi, processor_list_lock[rip]
	lea	rbp, 8[rbx]
	call	simple_lock@PLT
	lea	eax, -2[r15]
	lea	rax, 16[rbx+rax*8]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r12, QWORD PTR [r12]
	add	rbp, 8
	mov	QWORD PTR -8[rbp], r12
	cmp	rbp, rax
	jne	.L6
	lea	rdi, processor_list_lock[rip]
	call	simple_unlock@PLT
	mov	DWORD PTR [r14], r15d
	mov	QWORD PTR 0[r13], rbx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	mov	eax, DWORD PTR KERN_INVALID_ARGUMENT[rip]
	ret
	.cfi_endproc
.LFE0:
	.size	host_processors, .-host_processors
	.comm	realhost,4,4
	.comm	processor_list_lock,4,4
	.comm	processor_list,8,8
	.comm	processor_count,4,4
	.comm	KERN_SUCCESS,4,4
	.comm	KERN_RESOURCE_SHORTAGE,4,4
	.comm	KERN_INVALID_ARGUMENT,4,4
	.comm	HOST_PRIV_NULL,8,8
	.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_host.c_host_processors.c"
	.text
	.align	2
	.global	host_processors
	.syntax unified
	.arm
	.fpu softvfp
	.type	host_processors, %function
host_processors:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L22
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L19
	ldr	r3, .L22+4
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	sub	r0, r0, r3
	clz	r0, r0
	lsr	r0, r0, #5
	mov	r8, r1
	mov	r9, r2
	bl	assert
	ldr	r3, .L22+8
	ldr	r7, [r3]
	subs	r0, r7, #0
	movne	r0, #1
	lsl	r5, r7, #2
	bl	assert
	mov	r0, r5
	bl	kalloc
	subs	r4, r0, #0
	beq	.L20
	ldr	r3, .L22+12
	cmp	r7, #1
	ldr	r6, [r3]
	str	r6, [r4]
	bhi	.L21
	cmp	r7, #0
	str	r7, [r9]
	str	r4, [r8]
	beq	.L8
.L7:
	sub	r5, r5, #4
	add	r5, r4, r5
	sub	r4, r4, #4
.L9:
	ldr	r0, [r4, #4]!
	bl	convert_processor_to_port
	cmp	r4, r5
	str	r0, [r4]
	bne	.L9
.L8:
	ldr	r3, .L22+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	ldr	r0, .L22+20
	bl	simple_lock
	mov	r3, #1
	add	r2, r4, #4
.L6:
	ldr	r6, [r6]
	add	r3, r3, #1
	cmp	r7, r3
	str	r6, [r2], #4
	bne	.L6
	ldr	r0, .L22+20
	bl	simple_unlock
	str	r7, [r9]
	str	r4, [r8]
	b	.L7
.L19:
	ldr	r3, .L22+24
	ldr	r0, [r3]
	bx	lr
.L20:
	ldr	r3, .L22+28
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L23:
	.align	2
.L22:
	.word	HOST_PRIV_NULL
	.word	realhost
	.word	processor_count
	.word	processor_list
	.word	KERN_SUCCESS
	.word	processor_list_lock
	.word	KERN_INVALID_ARGUMENT
	.word	KERN_RESOURCE_SHORTAGE
	.size	host_processors, .-host_processors
	.comm	realhost,4,4
	.comm	processor_list_lock,4,4
	.comm	processor_list,4,4
	.comm	processor_count,4,4
	.comm	KERN_SUCCESS,4,4
	.comm	KERN_RESOURCE_SHORTAGE,4,4
	.comm	KERN_INVALID_ARGUMENT,4,4
	.comm	HOST_PRIV_NULL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
