	.file	"extr_pmap.c_pmap_flush.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Uninterruptible processor(s): CPU bitmap: 0x%llx, NMIPI acks: 0x%lx, now: 0x%lx, deadline: %llu"
	.text
	.p2align 4
	.globl	pmap_flush
	.type	pmap_flush, @function
pmap_flush:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rbp, QWORD PTR FALSE[rip]
	call	mp_disable_preemption@PLT
	xor	eax, eax
	call	cpu_number@PLT
	mov	edi, DWORD PTR PMAP__FLUSH_DELAYED_TLBS[rip]
	mov	ebx, DWORD PTR [r14]
	mov	r13d, ebp
	mov	DWORD PTR [rsp], eax
	call	PMAP_CODE@PLT
	or	eax, DWORD PTR DBG_FUNC_START[rip]
	mov	edx, ebx
	xor	esi, esi
	mov	edi, eax
	xor	eax, eax
	call	PMAP_TRACE_CONSTANT@PLT
	mov	ecx, DWORD PTR real_ncpus[rip]
	test	ecx, ecx
	je	.L2
	test	ebx, ebx
	je	.L2
	mov	r15d, 1
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L9:
	test	ebx, r15d
	jne	.L63
	add	ebp, 1
	add	r15d, r15d
	cmp	ebp, DWORD PTR real_ncpus[rip]
	jb	.L9
.L8:
	test	r13d, r13d
	jne	.L64
.L10:
	test	r12d, r12d
	jne	.L65
.L11:
	mov	edi, DWORD PTR PMAP__FLUSH_DELAYED_TLBS[rip]
	call	PMAP_CODE@PLT
	or	eax, DWORD PTR DBG_FUNC_END[rip]
	mov	ecx, r13d
	xor	esi, esi
	mov	edi, eax
	mov	edx, r12d
	xor	eax, eax
	call	PMAP_TRACE_CONSTANT@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	jmp	mp_enable_preemption@PLT
	.p2align 4,,10
	.p2align 3
.L63:
	.cfi_restore_state
	mov	eax, r15d
	mov	edi, ebp
	not	eax
	and	ebx, eax
	call	cpu_is_running@PLT
	test	eax, eax
	je	.L4
	mov	edi, ebp
	test	DWORD PTR 4[r14], r15d
	je	.L5
	call	cpu_datap@PLT
	mov	rdx, QWORD PTR TRUE[rip]
	mov	QWORD PTR 16[rax], rdx
	xor	eax, eax
	call	mfence@PLT
	cmp	DWORD PTR [rsp], ebp
	je	.L66
.L7:
	mov	edi, ebp
	call	CPU_CR3_IS_ACTIVE@PLT
	test	rax, rax
	jne	.L67
.L4:
	add	ebp, 1
	add	r15d, r15d
	cmp	DWORD PTR real_ncpus[rip], ebp
	jbe	.L8
	test	ebx, ebx
	jne	.L9
	test	r13d, r13d
	je	.L10
.L64:
	mov	edi, DWORD PTR [rsp]
	call	cpu_datap@PLT
	mov	rsi, QWORD PTR FALSE[rip]
	cmp	QWORD PTR [rax], rsi
	je	.L10
.L23:
	xor	eax, eax
	call	process_pmap_updates@PLT
	test	r12d, r12d
	je	.L11
	.p2align 4,,10
	.p2align 3
.L65:
	xor	eax, eax
	mov	r15d, r12d
	call	mach_absolute_time@PLT
	mov	r8, rax
	mov	rax, QWORD PTR TLBTimeOut[rip]
	test	rax, rax
	cmove	rax, QWORD PTR LockTimeOut[rip]
	add	rax, r8
	mov	QWORD PTR [rsp], rax
	mov	eax, DWORD PTR FALSE[rip]
	mov	DWORD PTR 12[rsp], eax
.L13:
	mov	eax, DWORD PTR real_ncpus[rip]
	mov	ebp, 1
	xor	r14d, r14d
	test	eax, eax
	jne	.L18
	jmp	.L68
	.p2align 4,,10
	.p2align 3
.L14:
	test	r15d, r15d
	je	.L11
	add	r14d, 1
	add	ebp, ebp
	cmp	DWORD PTR real_ncpus[rip], r14d
	jbe	.L19
.L18:
	test	r15d, ebp
	je	.L14
	mov	edi, r14d
	call	cpu_is_running@PLT
	test	eax, eax
	jne	.L15
.L17:
	mov	eax, ebp
	not	eax
	and	r15d, eax
.L16:
	xor	eax, eax
	call	cpu_pause@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L5:
	call	cpu_datap@PLT
	mov	rdx, QWORD PTR TRUE[rip]
	mov	QWORD PTR 8[rax], rdx
	xor	eax, eax
	call	mfence@PLT
	cmp	DWORD PTR [rsp], ebp
	jne	.L7
.L66:
	mov	r13d, DWORD PTR TRUE[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L67:
	mov	edx, DWORD PTR ASYNC[rip]
	mov	esi, DWORD PTR MP_TLB_FLUSH[rip]
	mov	edi, ebp
	or	r12d, r15d
	call	i386_signal_cpu@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, r14d
	call	cpu_datap@PLT
	mov	rcx, QWORD PTR FALSE[rip]
	cmp	QWORD PTR [rax], rcx
	je	.L17
	mov	edi, r14d
	call	CPU_CR3_IS_ACTIVE@PLT
	test	rax, rax
	je	.L17
	jmp	.L16
.L68:
	test	r15d, r15d
	je	.L11
	.p2align 4,,10
	.p2align 3
.L19:
	xor	eax, eax
	call	mach_absolute_time@PLT
	cmp	rax, QWORD PTR [rsp]
	jle	.L13
	xor	eax, eax
	call	machine_timeout_suspended@PLT
	test	rax, rax
	jne	.L13
	cmp	QWORD PTR TLBTimeOut[rip], 0
	jne	.L21
	mov	edx, DWORD PTR 12[rsp]
	test	edx, edx
	jne	.L13
	mov	edi, DWORD PTR PMAP__FLUSH_TLBS_TO[rip]
	call	PMAP_CODE@PLT
	mov	ecx, r15d
	mov	edx, ebx
	xor	esi, esi
	mov	edi, eax
	xor	eax, eax
	call	PMAP_TRACE_CONSTANT@PLT
	mov	eax, DWORD PTR TRUE[rip]
	mov	DWORD PTR 12[rsp], eax
	jmp	.L13
.L2:
	test	ebp, ebp
	je	.L11
	mov	edi, DWORD PTR [rsp]
	call	cpu_datap@PLT
	mov	rsi, QWORD PTR FALSE[rip]
	cmp	QWORD PTR [rax], rsi
	je	.L11
	jmp	.L23
.L21:
	mov	esi, DWORD PTR TLB_FLUSH_TIMEOUT[rip]
	mov	r14, QWORD PTR NMIPI_acks[rip]
	mov	edi, r15d
	call	NMIPI_panic@PLT
	mov	r8, QWORD PTR [rsp]
	mov	rdx, r14
	mov	esi, r15d
	mov	rcx, QWORD PTR NMIPI_acks[rip]
	lea	rdi, .LC0[rip]
	call	panic@PLT
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	pmap_flush, .-pmap_flush
	.comm	real_ncpus,4,4
	.comm	TRUE,8,8
	.comm	TLB_FLUSH_TIMEOUT,4,4
	.comm	TLBTimeOut,8,8
	.comm	PMAP__FLUSH_TLBS_TO,4,4
	.comm	PMAP__FLUSH_DELAYED_TLBS,4,4
	.comm	NMIPI_acks,8,8
	.comm	MP_TLB_FLUSH,4,4
	.comm	LockTimeOut,8,8
	.comm	FALSE,8,8
	.comm	DBG_FUNC_START,4,4
	.comm	DBG_FUNC_END,4,4
	.comm	ASYNC,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_pmap.c_pmap_flush.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Uninterruptible processor(s): CPU bitmap: 0x%llx, N"
	.ascii	"MIPI acks: 0x%lx, now: 0x%lx, deadline: %llu\000"
	.text
	.align	2
	.global	pmap_flush
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmap_flush, %function
pmap_flush:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r8, .L74
	sub	sp, sp, #20
	ldr	r3, [r8]
	mov	r7, r0
	str	r3, [sp, #8]
	bl	mp_disable_preemption
	bl	cpu_number
	ldr	r3, .L74+4
	str	r0, [sp, #12]
	ldr	r0, [r3]
	ldr	r6, [r7]
	bl	PMAP_CODE
	ldr	r3, .L74+8
	ldr	r4, .L74+12
	ldr	r3, [r3]
	mov	r2, r6
	orr	r0, r0, r3
	mov	r1, #0
	bl	PMAP_TRACE_CONSTANT
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L2
	cmp	r6, #0
	beq	.L2
	mov	r10, #0
	mov	fp, #1
	mov	r5, r10
	ldr	r9, .L74+16
.L9:
	tst	r6, fp
	bne	.L68
	ldr	r3, [r4]
	add	r5, r5, #1
	cmp	r5, r3
	lsl	fp, fp, #1
	bcc	.L9
.L8:
	ldr	r3, [sp, #8]
	cmp	r3, #0
	bne	.L69
.L10:
	cmp	r10, #0
	bne	.L70
.L11:
	ldr	r3, .L74+4
	ldr	r0, [r3]
	bl	PMAP_CODE
	ldr	r2, .L74+20
	ldr	r3, [sp, #8]
	ldr	r1, [r2]
	mov	r2, r10
	orr	r0, r0, r1
	mov	r1, #0
	bl	PMAP_TRACE_CONSTANT
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	mp_enable_preemption
.L68:
	mov	r0, r5
	bl	cpu_is_running
	cmp	r0, #0
	bic	r6, r6, fp
	beq	.L4
	ldr	r3, [r7, #4]
	mov	r0, r5
	tst	fp, r3
	beq	.L5
	bl	cpu_datap
	ldr	r3, [r9]
	str	r3, [r0, #8]
	bl	mfence
	ldr	r3, [sp, #12]
	cmp	r3, r5
	beq	.L71
.L7:
	mov	r0, r5
	bl	CPU_CR3_IS_ACTIVE
	cmp	r0, #0
	bne	.L72
.L4:
	ldr	r3, [r4]
	add	r5, r5, #1
	cmp	r3, r5
	lsl	fp, fp, #1
	bls	.L8
	cmp	r6, #0
	bne	.L9
	ldr	r3, [sp, #8]
	cmp	r3, #0
	beq	.L10
.L69:
	ldr	r0, [sp, #12]
	bl	cpu_datap
	ldr	r3, [r8]
	ldr	r2, [r0]
	cmp	r2, r3
	beq	.L10
.L23:
	bl	process_pmap_updates
	cmp	r10, #0
	beq	.L11
.L70:
	bl	mach_absolute_time
	mov	r5, r10
	ldr	r3, .L74+24
	ldr	r7, [r3]
	cmp	r7, #0
	ldreq	r3, .L74+28
	ldreq	r7, [r3]
	ldr	r3, [r8]
	add	r7, r0, r7
	str	r3, [sp, #12]
.L13:
	ldr	r3, [r4]
	cmp	r3, #0
	movne	fp, #1
	movne	r9, #0
	bne	.L18
	b	.L73
.L14:
	cmp	r5, #0
	add	r9, r9, #1
	beq	.L11
	ldr	r3, [r4]
	lsl	fp, fp, #1
	cmp	r3, r9
	bls	.L19
.L18:
	tst	r5, fp
	beq	.L14
	mov	r0, r9
	bl	cpu_is_running
	cmp	r0, #0
	bne	.L15
.L17:
	bic	r5, r5, fp
.L16:
	bl	cpu_pause
	b	.L14
.L5:
	bl	cpu_datap
	ldr	r3, [r9]
	str	r3, [r0, #4]
	bl	mfence
	ldr	r3, [sp, #12]
	cmp	r3, r5
	bne	.L7
.L71:
	ldr	r3, [r9]
	str	r3, [sp, #8]
	b	.L4
.L72:
	ldr	r3, .L74+32
	mov	r0, r5
	ldr	r2, [r3]
	ldr	r3, .L74+36
	orr	r10, r10, fp
	ldr	r1, [r3]
	bl	i386_signal_cpu
	b	.L4
.L15:
	mov	r0, r9
	bl	cpu_datap
	ldr	r3, [r8]
	ldr	r2, [r0]
	cmp	r2, r3
	beq	.L17
	mov	r0, r9
	bl	CPU_CR3_IS_ACTIVE
	cmp	r0, #0
	beq	.L17
	b	.L16
.L73:
	cmp	r5, #0
	beq	.L11
.L19:
	bl	mach_absolute_time
	cmp	r0, r7
	ble	.L13
	bl	machine_timeout_suspended
	cmp	r0, #0
	bne	.L13
	ldr	r3, .L74+24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L21
	ldr	r3, [sp, #12]
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L74+40
	ldr	r0, [r3]
	bl	PMAP_CODE
	mov	r3, r5
	mov	r2, r6
	ldr	r1, [sp, #12]
	bl	PMAP_TRACE_CONSTANT
	ldr	r3, .L74+16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	b	.L13
.L2:
	ldr	r3, [sp, #8]
	cmp	r3, #0
	ldreq	r10, [sp, #8]
	beq	.L11
	ldr	r0, [sp, #12]
	bl	cpu_datap
	ldr	r3, [r8]
	ldr	r2, [r0]
	mov	r10, #0
	cmp	r2, r3
	beq	.L11
	b	.L23
.L21:
	ldr	fp, .L74+44
	ldr	r3, .L74+48
	ldr	r9, [fp]
	ldr	r1, [r3]
	mov	r0, r5
	bl	NMIPI_panic
	str	r7, [sp]
	mov	r2, r9
	mov	r1, r5
	ldr	r3, [fp]
	ldr	r0, .L74+52
	bl	panic
	b	.L13
.L75:
	.align	2
.L74:
	.word	FALSE
	.word	PMAP__FLUSH_DELAYED_TLBS
	.word	DBG_FUNC_START
	.word	real_ncpus
	.word	TRUE
	.word	DBG_FUNC_END
	.word	TLBTimeOut
	.word	LockTimeOut
	.word	ASYNC
	.word	MP_TLB_FLUSH
	.word	PMAP__FLUSH_TLBS_TO
	.word	NMIPI_acks
	.word	TLB_FLUSH_TIMEOUT
	.word	.LC0
	.size	pmap_flush, .-pmap_flush
	.comm	real_ncpus,4,4
	.comm	TRUE,4,4
	.comm	TLB_FLUSH_TIMEOUT,4,4
	.comm	TLBTimeOut,4,4
	.comm	PMAP__FLUSH_TLBS_TO,4,4
	.comm	PMAP__FLUSH_DELAYED_TLBS,4,4
	.comm	NMIPI_acks,4,4
	.comm	MP_TLB_FLUSH,4,4
	.comm	LockTimeOut,4,4
	.comm	FALSE,4,4
	.comm	DBG_FUNC_START,4,4
	.comm	DBG_FUNC_END,4,4
	.comm	ASYNC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
