	.file	"extr_freebsd32_machdep.c_freebsd32_setcontext.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	freebsd32_setcontext
	.type	freebsd32_setcontext, @function
freebsd32_setcontext:
.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
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rdi, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L11
	mov	r12, rsp
	mov	edx, DWORD PTR UC32_COPY_SIZE[rip]
	mov	rsi, r12
	call	copyin@PLT
	test	eax, eax
	je	.L12
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L13
	add	rsp, 24
	.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
.L11:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	test	eax, eax
	jne	.L1
.L3:
	mov	eax, DWORD PTR EJUSTRETURN[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rsi, 4[rsp]
	mov	rdi, rbp
	call	set_mcontext32@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR SIG_SETMASK[rip]
	xor	r8d, r8d
	xor	ecx, ecx
	mov	rdx, r12
	mov	rdi, rbp
	call	kern_sigprocmask@PLT
	jmp	.L3
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	freebsd32_setcontext, .-freebsd32_setcontext
	.comm	UC32_COPY_SIZE,4,4
	.comm	SIG_SETMASK,4,4
	.comm	EJUSTRETURN,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_freebsd32_machdep.c_freebsd32_setcontext.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	freebsd32_setcontext
	.syntax unified
	.arm
	.fpu softvfp
	.type	freebsd32_setcontext, %function
freebsd32_setcontext:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, [r1]
	ldr	r2, .L14
	sub	sp, sp, #24
	cmp	r3, #0
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	beq	.L11
	ldr	r2, .L14+4
	mov	r4, r0
	ldr	r2, [r2]
	mov	r0, r3
	add	r1, sp, #12
	bl	copyin
	cmp	r0, #0
	beq	.L12
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #24
	@ sp needed
	pop	{r4, pc}
.L11:
	ldr	r3, .L14+8
	ldr	r0, [r3]
	cmp	r0, #0
	bne	.L1
.L3:
	ldr	r3, .L14+12
	ldr	r0, [r3]
	b	.L1
.L12:
	mov	r0, r4
	add	r1, sp, #16
	bl	set_mcontext32
	cmp	r0, #0
	bne	.L1
	ldr	r1, .L14+16
	str	r0, [sp]
	mov	r3, r0
	ldr	r1, [r1]
	mov	r0, r4
	add	r2, sp, #12
	bl	kern_sigprocmask
	b	.L3
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	UC32_COPY_SIZE
	.word	EINVAL
	.word	EJUSTRETURN
	.word	SIG_SETMASK
	.size	freebsd32_setcontext, .-freebsd32_setcontext
	.comm	UC32_COPY_SIZE,4,4
	.comm	SIG_SETMASK,4,4
	.comm	EJUSTRETURN,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
