	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_mcontext                   ## -- Begin function set_mcontext
	.p2align	4, 0x90
_set_mcontext:                          ## @set_mcontext
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	20(%rsi), %edi
	callq	_TSTATE_SECURE
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	__MC_VERSION_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	$-1, %rax
	shlq	%cl, %rax
	notq	%rax
	andq	(%rbx), %rax
	movq	__MC_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	(%r14), %r15
	movq	8(%r14), %r12
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_flushw
	movq	48(%rbx), %rax
	movl	4(%rax), %ecx
	movq	40(%r12), %rdx
	movl	%ecx, 4(%rdx)
	movl	8(%rax), %ecx
	movl	%ecx, 8(%rdx)
	movl	12(%rax), %ecx
	movl	%ecx, 12(%rdx)
	movl	16(%rax), %ecx
	movl	%ecx, 16(%rdx)
	movl	20(%rax), %ecx
	movl	%ecx, 20(%rdx)
	movl	24(%rax), %eax
	movl	%eax, 24(%rdx)
	movq	40(%rbx), %rax
	movl	(%rax), %ecx
	movq	32(%r12), %rdx
	movl	%ecx, (%rdx)
	movl	4(%rax), %ecx
	movl	%ecx, 4(%rdx)
	movl	8(%rax), %ecx
	movl	%ecx, 8(%rdx)
	movl	12(%rax), %ecx
	movl	%ecx, 12(%rdx)
	movl	16(%rax), %ecx
	movl	%ecx, 16(%rdx)
	movl	20(%rax), %ecx
	movl	%ecx, 20(%rdx)
	movl	24(%rax), %ecx
	movl	%ecx, 24(%rdx)
	movl	28(%rax), %eax
	movl	%eax, 28(%rdx)
	movl	8(%rbx), %eax
	movl	%eax, (%r12)
	movl	36(%rbx), %ecx
	movl	%ecx, 24(%r12)
	movl	32(%rbx), %ecx
	movl	%ecx, 20(%r12)
	movups	16(%rbx), %xmm0
	movups	%xmm0, 4(%r12)
	movq	_FPRS_FEF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movl	$0, (%r12)
	movl	12(%rbx), %edi
	movl	4(%r15), %esi
	movl	$4, %edx
	callq	_bcopy
	movq	_PCB_FEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	jmp	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__MC_VERSION_BITS,8,3           ## @_MC_VERSION_BITS
	.comm	__MC_VERSION,8,3                ## @_MC_VERSION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FPRS_FEF,4,2                   ## @FPRS_FEF
	.comm	_PCB_FEF,4,2                    ## @PCB_FEF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_mcontext                   ; -- Begin function set_mcontext
	.p2align	2
_set_mcontext:                          ; @set_mcontext
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #20]
	bl	_TSTATE_SECURE
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, __MC_VERSION_BITS@GOTPAGE
Lloh1:
	ldr	x9, [x9, __MC_VERSION_BITS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	x10, #-1
	lsl	x9, x10, x9
	bic	x8, x8, x9
Lloh3:
	adrp	x9, __MC_VERSION@GOTPAGE
Lloh4:
	ldr	x9, [x9, __MC_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldp	x20, x21, [x20]
	bl	_flushw
	ldp	x9, x8, [x19, #40]
	ldr	w10, [x8, #4]
	ldp	x12, x11, [x21, #32]
	str	w10, [x11, #4]
	ldr	w10, [x8, #8]
	str	w10, [x11, #8]
	ldr	w10, [x8, #12]
	str	w10, [x11, #12]
	ldr	w10, [x8, #16]
	str	w10, [x11, #16]
	ldr	w10, [x8, #20]
	str	w10, [x11, #20]
	ldr	w8, [x8, #24]
	str	w8, [x11, #24]
	ldr	w8, [x9]
	str	w8, [x12]
	ldr	w8, [x9, #4]
	str	w8, [x12, #4]
	ldr	w8, [x9, #8]
	str	w8, [x12, #8]
	ldr	w8, [x9, #12]
	str	w8, [x12, #12]
	ldr	w8, [x9, #16]
	str	w8, [x12, #16]
	ldr	w8, [x9, #20]
	str	w8, [x12, #20]
	ldr	w8, [x9, #24]
	str	w8, [x12, #24]
	ldr	w8, [x9, #28]
	str	w8, [x12, #28]
	ldr	w8, [x19, #8]
	str	w8, [x21]
	ldr	d0, [x19, #32]
	stur	d0, [x21, #20]
	ldr	q0, [x19, #16]
	stur	q0, [x21, #4]
Lloh6:
	adrp	x9, _FPRS_FEF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FPRS_FEF@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	str	wzr, [x21]
	ldr	w0, [x19, #12]
	ldr	w1, [x20, #4]
	mov	w2, #4
	bl	_bcopy
	mov	w0, #0
Lloh9:
	adrp	x8, _PCB_FEF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCB_FEF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	__MC_VERSION_BITS,8,3           ; @_MC_VERSION_BITS
	.comm	__MC_VERSION,8,3                ; @_MC_VERSION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FPRS_FEF,4,2                   ; @FPRS_FEF
	.comm	_PCB_FEF,4,2                    ; @PCB_FEF
.subsections_via_symbols
