	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_mcontext                   ## -- Begin function get_mcontext
	.p2align	4, 0x90
_get_mcontext:                          ## @get_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %r13
	movq	8(%rdi), %r14
	movq	_curthread@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_PROC_LOCK
	movl	24(%r13), %edi
	callq	_sigonstack
	movl	%eax, 132(%rbx)
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_PROC_UNLOCK
	movl	96(%r13), %eax
	movl	%eax, 128(%rbx)
	movl	92(%r13), %eax
	movl	%eax, 124(%rbx)
	movups	76(%r13), %xmm0
	movups	%xmm0, 108(%rbx)
	movups	60(%r13), %xmm0
	movups	%xmm0, 92(%rbx)
	movdqu	44(%r13), %xmm0
	movdqu	%xmm0, 76(%rbx)
	movq	_GET_MC_CLEAR_RET@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_PSL_C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movd	%xmm0, %ecx
	andl	%eax, %ecx
	movl	%ecx, 76(%rbx)
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	LBB0_3
LBB0_2:
	movl	36(%r13), %ecx
	movl	40(%r13), %eax
LBB0_3:
	movl	%eax, 72(%rbx)
	movl	%ecx, 68(%rbx)
	movl	32(%r13), %eax
	movl	%eax, 64(%rbx)
	movups	16(%r13), %xmm0
	movups	%xmm0, 48(%rbx)
	movups	(%r13), %xmm0
	movups	%xmm0, 32(%rbx)
	movl	$136, (%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_get_fpcontext
	movq	%r14, %rdi
	callq	_update_pcb_bases
	movl	4(%r14), %eax
	movl	%eax, 28(%rbx)
	movl	(%r14), %eax
	movl	%eax, 24(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movl	4(%rbx), %edi
	movl	$4, %esi
	callq	_bzero
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curthread,8,3                  ## @curthread
	.comm	_GET_MC_CLEAR_RET,4,2           ## @GET_MC_CLEAR_RET
	.comm	_PSL_C,4,2                      ## @PSL_C
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_mcontext                   ; -- Begin function get_mcontext
	.p2align	2
_get_mcontext:                          ; @get_mcontext
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldp	x23, x20, [x0]
Lloh0:
	adrp	x24, _curthread@GOTPAGE
Lloh1:
	ldr	x24, [x24, _curthread@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w0, [x8]
	bl	_PROC_LOCK
	ldr	w0, [x23, #24]
	bl	_sigonstack
	str	w0, [x19, #132]
	ldr	x8, [x24]
	ldr	w0, [x8]
	bl	_PROC_UNLOCK
	ldur	d0, [x23, #92]
	stur	d0, [x19, #124]
	ldur	q0, [x23, #76]
	stur	q0, [x19, #108]
	ldur	q0, [x23, #60]
	stur	q0, [x19, #92]
	ldur	q0, [x23, #44]
	stur	q0, [x19, #76]
Lloh2:
	adrp	x8, _GET_MC_CLEAR_RET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GET_MC_CLEAR_RET@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _PSL_C@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PSL_C@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	fmov	w9, s0
	bic	w8, w9, w8
	str	w8, [x19, #76]
	movi.2d	v0, #0000000000000000
	b	LBB0_3
LBB0_2:
	ldur	d0, [x23, #36]
LBB0_3:
	stur	d0, [x19, #68]
	ldr	w8, [x23, #32]
	str	w8, [x19, #64]
	ldr	q0, [x23, #16]
	str	q0, [x19, #48]
	ldr	q0, [x23]
	str	q0, [x19, #32]
	mov	w8, #136
	str	w8, [x19]
	mov	x0, x21
	mov	x1, x19
	mov	x2, #0
	mov	w3, #0
	bl	_get_fpcontext
	mov	x0, x20
	bl	_update_pcb_bases
	ldr	d0, [x20]
	str	d0, [x19, #24]
	stp	xzr, xzr, [x19, #8]
	ldr	w0, [x19, #4]
	mov	w1, #4
	bl	_bzero
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.comm	_GET_MC_CLEAR_RET,4,2           ; @GET_MC_CLEAR_RET
	.comm	_PSL_C,4,2                      ; @PSL_C
.subsections_via_symbols
