	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_sigreturn                  ## -- Begin function sys_sigreturn
	.p2align	4, 0x90
_sys_sigreturn:                         ## @sys_sigreturn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	(%rsi), %edi
	leaq	-24(%rbp), %rsi
	movl	$8, %edx
	callq	_copyin
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_SSTATUS_SPP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -20(%rbp)
	je	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	leaq	-20(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_set_mcontext
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_set_fpcontext
	movq	_SIG_SETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_kern_sigprocmask
	movq	_EJUSTRETURN@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_SSTATUS_SPP,4,2                ## @SSTATUS_SPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SIG_SETMASK,4,2                ## @SIG_SETMASK
	.comm	_EJUSTRETURN,4,2                ## @EJUSTRETURN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_sigreturn                  ; -- Begin function sys_sigreturn
	.p2align	2
_sys_sigreturn:                         ; @sys_sigreturn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cbz	x1, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w0, [x1]
	add	x20, sp, #8
	add	x1, sp, #8
	mov	w2, #8
	bl	_copyin
	cbz	x0, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x9, _SSTATUS_SPP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SSTATUS_SPP@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_3
LBB0_7:
	orr	x20, x20, #0x4
	mov	x0, x19
	mov	x1, x20
	bl	_set_mcontext
	cbnz	w0, LBB0_4
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	bl	_set_fpcontext
Lloh7:
	adrp	x8, _SIG_SETMASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SIG_SETMASK@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	x3, #0
	mov	w4, #0
	bl	_kern_sigprocmask
Lloh10:
	adrp	x8, _EJUSTRETURN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EJUSTRETURN@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_SSTATUS_SPP,4,2                ; @SSTATUS_SPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SIG_SETMASK,4,2                ; @SIG_SETMASK
	.comm	_EJUSTRETURN,4,2                ; @EJUSTRETURN
.subsections_via_symbols
