	.file	"extr_machdep.c_set_mcontext.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	set_mcontext
	.type	set_mcontext, @function
set_mcontext:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	edi, DWORD PTR 20[rsi]
	mov	rbx, rsi
	call	TSTATE_SECURE@PLT
	test	eax, eax
	je	.L2
	mov	rcx, QWORD PTR _MC_VERSION_BITS[rip]
	mov	eax, 1
	sal	rax, cl
	sub	rax, 1
	and	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR _MC_VERSION[rip]
	je	.L3
.L2:
	mov	eax, DWORD PTR EINVAL[rip]
.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
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	xor	eax, eax
	mov	r12, QWORD PTR 8[rbp]
	mov	rbp, QWORD PTR 0[rbp]
	call	flushw@PLT
	mov	rdx, QWORD PTR 48[rbx]
	mov	rax, QWORD PTR 40[r12]
	mov	ecx, DWORD PTR 4[rdx]
	mov	DWORD PTR 4[rax], ecx
	mov	ecx, DWORD PTR 8[rdx]
	mov	DWORD PTR 8[rax], ecx
	mov	ecx, DWORD PTR 12[rdx]
	mov	DWORD PTR 12[rax], ecx
	mov	ecx, DWORD PTR 16[rdx]
	mov	DWORD PTR 16[rax], ecx
	mov	ecx, DWORD PTR 20[rdx]
	mov	DWORD PTR 20[rax], ecx
	mov	edx, DWORD PTR 24[rdx]
	mov	DWORD PTR 24[rax], edx
	mov	rdx, QWORD PTR 40[rbx]
	mov	rax, QWORD PTR 32[r12]
	mov	ecx, DWORD PTR [rdx]
	mov	DWORD PTR [rax], ecx
	mov	ecx, DWORD PTR 4[rdx]
	mov	DWORD PTR 4[rax], ecx
	mov	ecx, DWORD PTR 8[rdx]
	mov	DWORD PTR 8[rax], ecx
	mov	ecx, DWORD PTR 12[rdx]
	mov	DWORD PTR 12[rax], ecx
	mov	ecx, DWORD PTR 16[rdx]
	mov	DWORD PTR 16[rax], ecx
	mov	ecx, DWORD PTR 20[rdx]
	mov	DWORD PTR 20[rax], ecx
	mov	ecx, DWORD PTR 24[rdx]
	mov	DWORD PTR 24[rax], ecx
	mov	edx, DWORD PTR 28[rdx]
	mov	DWORD PTR 28[rax], edx
	mov	eax, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR 36[rbx]
	mov	DWORD PTR [r12], eax
	mov	DWORD PTR 24[r12], edx
	mov	edx, DWORD PTR 32[rbx]
	mov	DWORD PTR 20[r12], edx
	mov	edx, DWORD PTR 28[rbx]
	mov	DWORD PTR 16[r12], edx
	mov	edx, DWORD PTR 24[rbx]
	mov	DWORD PTR 12[r12], edx
	mov	edx, DWORD PTR 20[rbx]
	mov	DWORD PTR 8[r12], edx
	mov	edx, DWORD PTR 16[rbx]
	mov	DWORD PTR 4[r12], edx
	and	eax, DWORD PTR FPRS_FEF[rip]
	je	.L1
	mov	DWORD PTR [r12], 0
	mov	esi, DWORD PTR 4[rbp]
	mov	edx, 4
	mov	edi, DWORD PTR 12[rbx]
	call	bcopy@PLT
	mov	eax, DWORD PTR PCB_FEF[rip]
	or	DWORD PTR 0[rbp], eax
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	set_mcontext, .-set_mcontext
	.comm	_MC_VERSION_BITS,8,8
	.comm	_MC_VERSION,8,8
	.comm	PCB_FEF,4,4
	.comm	FPRS_FEF,4,4
	.comm	EINVAL,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_machdep.c_set_mcontext.c"
	.text
	.align	2
	.global	set_mcontext
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_mcontext, %function
set_mcontext:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, [r1, #16]
	mov	r4, r1
	bl	TSTATE_SECURE
	cmp	r0, #0
	beq	.L2
	mvn	r0, #0
	ldr	r3, .L13
	ldr	r2, .L13+4
	ldr	r1, [r3]
	ldr	r3, [r4]
	ldr	r2, [r2]
	bic	r3, r3, r0, lsl r1
	cmp	r3, r2
	beq	.L3
.L2:
	ldr	r3, .L13+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldm	r5, {r5, r6}
	bl	flushw
	ldr	r2, [r4, #40]
	ldr	r3, [r6, #32]
	ldr	r0, [r2, #4]
	ldr	r1, [r4, #36]
	str	r0, [r3, #4]
	ldr	r0, [r2, #8]
	str	r0, [r3, #8]
	ldr	r0, [r2, #12]
	str	r0, [r3, #12]
	ldr	r0, [r2, #16]
	str	r0, [r3, #16]
	ldr	r0, [r2, #20]
	str	r0, [r3, #20]
	ldr	r0, [r2, #24]
	ldr	r2, [r6, #28]
	str	r0, [r3, #24]
	ldr	r3, [r1]
	ldr	r0, .L13+12
	str	r3, [r2]
	ldr	r3, [r1, #4]
	str	r3, [r2, #4]
	ldr	r3, [r1, #8]
	str	r3, [r2, #8]
	ldr	r3, [r1, #12]
	str	r3, [r2, #12]
	ldr	r3, [r1, #16]
	str	r3, [r2, #16]
	ldr	r3, [r1, #20]
	str	r3, [r2, #20]
	ldr	r3, [r1, #24]
	str	r3, [r2, #24]
	ldr	r3, [r1, #28]
	str	r3, [r2, #28]
	ldr	r3, [r4, #4]
	ldr	r0, [r0]
	ldr	r1, [r4, #32]
	ldr	r2, [r4, #28]
	ands	r0, r3, r0
	str	r3, [r6]
	ldr	r3, [r4, #24]
	str	r1, [r6, #24]
	ldr	r1, [r4, #20]
	str	r2, [r6, #20]
	ldr	r2, [r4, #16]
	str	r3, [r6, #16]
	ldr	r3, [r4, #12]
	str	r1, [r6, #12]
	str	r2, [r6, #8]
	str	r3, [r6, #4]
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r7, #0
	ldr	r0, [r4, #8]
	mov	r2, #4
	ldr	r1, [r5, #4]
	str	r7, [r6]
	bl	bcopy
	ldr	r2, .L13+16
	ldr	r3, [r5]
	ldr	r2, [r2]
	mov	r0, r7
	orr	r3, r3, r2
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	_MC_VERSION_BITS
	.word	_MC_VERSION
	.word	EINVAL
	.word	FPRS_FEF
	.word	PCB_FEF
	.size	set_mcontext, .-set_mcontext
	.comm	_MC_VERSION_BITS,4,4
	.comm	_MC_VERSION,4,4
	.comm	PCB_FEF,4,4
	.comm	FPRS_FEF,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
