	.file	"extr_cpu_common.c_cpu_signal_internal.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cpu_signal_internal, @function
cpu_signal_internal:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rdi, QWORD PTR FALSE[rip]
	mov	QWORD PTR [rsp], rdx
	mov	QWORD PTR 8[rsp], rcx
	call	ml_set_interrupts_enabled@PLT
	mov	r14, rax
	xor	eax, eax
	call	getCpuDatap@PLT
	mov	r12, rax
	test	r13, r13
	jne	.L29
.L2:
	cmp	r12, r15
	mov	ebx, 0
	cmovne	ebx, DWORD PTR SIGPdisabled[rip]
	cmp	DWORD PTR SIGPxcall[rip], ebp
	je	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR [r15]
	test	ebx, ebx
	je	.L10
	mov	eax, ebx
	and	eax, edi
	cmp	eax, DWORD PTR SIGPdisabled[rip]
	je	.L27
.L10:
	mov	esi, ebp
	mov	rdx, r15
	or	esi, edi
	call	OSCompareAndSwap@PLT
	test	rax, rax
	je	.L4
.L13:
	mov	edi, DWORD PTR DSB_ISH[rip]
	call	__builtin_arm_dsb@PLT
	mov	eax, DWORD PTR [r15]
	test	DWORD PTR SIGPdisabled[rip], eax
	je	.L30
.L11:
	mov	rdi, r14
	call	ml_set_interrupts_enabled@PLT
	mov	eax, DWORD PTR KERN_SUCCESS[rip]
	add	rsp, 24
	.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
.L31:
	.cfi_restore_state
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR SIGPxcall[rip], eax
	je	.L8
	mov	rdi, r12
	call	cpu_handle_xcall@PLT
.L8:
	mov	edx, DWORD PTR SIGPdisabled[rip]
	mov	eax, DWORD PTR [r15]
	mov	ecx, edx
	and	ecx, eax
	cmp	edx, ecx
	je	.L27
	mov	edi, DWORD PTR SIGPxcall[rip]
	mov	esi, eax
	mov	rdx, r15
	or	esi, edi
	not	edi
	and	edi, eax
	call	OSCompareAndSwap@PLT
	test	rax, rax
	je	.L31
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 24[r15], rax
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR 16[r15], rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L30:
	mov	ebp, DWORD PTR 8[r15]
	xor	eax, eax
	test	r13, r13
	je	.L12
	call	getCpuDatap@PLT
	mov	esi, ebp
	mov	edi, DWORD PTR 8[rax]
	call	PE_cpu_signal_deferred@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdi, r14
	call	ml_set_interrupts_enabled@PLT
	mov	eax, DWORD PTR KERN_FAILURE[rip]
	add	rsp, 24
	.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
.L29:
	.cfi_restore_state
	xor	edi, edi
	cmp	DWORD PTR SIGPnop[rip], ebp
	sete	dil
	call	assert@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	call	getCpuDatap@PLT
	mov	esi, ebp
	mov	edi, DWORD PTR 8[rax]
	call	PE_cpu_signal@PLT
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	cpu_signal_internal, .-cpu_signal_internal
	.comm	SIGPxcall,4,4
	.comm	SIGPnop,4,4
	.comm	SIGPdisabled,4,4
	.comm	KERN_SUCCESS,4,4
	.comm	KERN_FAILURE,4,4
	.comm	FALSE,8,8
	.comm	DSB_ISH,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_cpu_common.c_cpu_signal_internal.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cpu_signal_internal, %function
cpu_signal_internal:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, .L32
	sub	sp, sp, #12
	mov	r10, r0
	ldr	r0, [ip]
	str	r3, [sp, #4]
	mov	r5, r1
	mov	fp, r2
	bl	ml_set_interrupts_enabled
	mov	r8, r0
	bl	getCpuDatap
	ldr	r3, [sp, #48]
	mov	r7, r0
	cmp	r3, #0
	bne	.L29
.L2:
	ldr	r9, .L32+4
	cmp	r7, r10
	ldrne	r6, .L32+8
	ldr	r1, [r9]
	moveq	r4, #0
	ldrne	r4, [r6]
	ldreq	r6, .L32+8
	cmp	r1, r5
	beq	.L8
.L4:
	cmp	r4, #0
	ldr	r0, [r10]
	beq	.L10
	ldr	r3, [r6]
	and	r1, r4, r0
	cmp	r1, r3
	beq	.L27
.L10:
	mov	r2, r10
	orr	r1, r5, r0
	bl	OSCompareAndSwap
	cmp	r0, #0
	beq	.L4
.L13:
	ldr	r3, .L32+12
	ldr	r0, [r3]
	bl	__builtin_arm_dsb
	ldr	r3, [r6]
	ldr	r1, [r10]
	tst	r1, r3
	beq	.L30
.L11:
	mov	r0, r8
	bl	ml_set_interrupts_enabled
	ldr	r3, .L32+16
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L31:
	ldr	r0, [r7]
	ldr	r1, [r9]
	tst	r0, r1
	beq	.L8
	mov	r0, r7
	bl	cpu_handle_xcall
.L8:
	ldr	r0, [r10]
	ldr	r1, [r6]
	bics	r3, r1, r0
	beq	.L27
	ldr	ip, [r9]
	mov	r2, r10
	orr	r1, ip, r0
	bic	r0, r0, ip
	bl	OSCompareAndSwap
	cmp	r0, #0
	beq	.L31
	ldr	r3, [sp, #4]
	str	fp, [r10, #20]
	str	r3, [r10, #16]
	b	.L13
.L30:
	ldr	r3, [sp, #48]
	cmp	r3, #0
	beq	.L12
	bl	getCpuDatap
	ldr	r1, [r10, #8]
	ldr	r0, [r0, #8]
	bl	PE_cpu_signal_deferred
	b	.L11
.L27:
	mov	r0, r8
	bl	ml_set_interrupts_enabled
	ldr	r3, .L32+20
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L29:
	ldr	r3, .L32+24
	ldr	r0, [r3]
	sub	r0, r0, r5
	clz	r0, r0
	lsr	r0, r0, #5
	bl	assert
	b	.L2
.L12:
	bl	getCpuDatap
	ldr	r1, [r10, #8]
	ldr	r0, [r0, #8]
	bl	PE_cpu_signal
	b	.L11
.L33:
	.align	2
.L32:
	.word	FALSE
	.word	SIGPxcall
	.word	SIGPdisabled
	.word	DSB_ISH
	.word	KERN_SUCCESS
	.word	KERN_FAILURE
	.word	SIGPnop
	.size	cpu_signal_internal, .-cpu_signal_internal
	.comm	SIGPxcall,4,4
	.comm	SIGPnop,4,4
	.comm	SIGPdisabled,4,4
	.comm	KERN_SUCCESS,4,4
	.comm	KERN_FAILURE,4,4
	.comm	FALSE,4,4
	.comm	DSB_ISH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
