	.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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	callq	_rwindow_save
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_PROC_LOCK
	movq	_SIGILL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sigexit
LBB0_2:
	movq	_KTR_SIG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_CTR2
	movl	(%r14), %edi
	leaq	-40(%rbp), %rsi
	movl	$16, %edx
	callq	_copyin
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	callq	_CTR1
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_4:
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_set_mcontext
	testl	%eax, %eax
	je	LBB0_5
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_SIG_SETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_kern_sigprocmask
	movl	(%r15), %edi
	movl	-28(%rbp), %ecx
	movl	-36(%rbp), %r9d
	movl	-32(%rbp), %r8d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	callq	_CTR4
	movq	_EJUSTRETURN@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGILL,4,2                     ## @SIGILL
	.comm	_KTR_SIG,4,2                    ## @KTR_SIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sigreturn: td=%p ucp=%p"

L_.str.1:                               ## @.str.1
	.asciz	"sigreturn: efault td=%p"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_SIG_SETMASK,4,2                ## @SIG_SETMASK
L_.str.2:                               ## @.str.2
	.asciz	"sigreturn: return td=%p pc=%#lx sp=%#lx tstate=%#lx"

	.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, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
	bl	_rwindow_save
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_PROC_LOCK
Lloh0:
	adrp	x8, _SIGILL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGILL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sigexit
LBB0_2:
Lloh3:
	adrp	x21, _KTR_SIG@GOTPAGE
Lloh4:
	ldr	x21, [x21, _KTR_SIG@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w3, [x20]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_CTR2
	ldr	w0, [x20]
	mov	x20, sp
	mov	x1, sp
	mov	w2, #16
	bl	_copyin
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x21]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_CTR1
Lloh9:
	adrp	x8, _EFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_5:
	orr	x1, x20, #0x4
	mov	x0, x19
	bl	_set_mcontext
	cbz	w0, LBB0_7
LBB0_6:
	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
	add	sp, sp, #64
	ret
LBB0_7:
Lloh11:
	adrp	x8, _SIG_SETMASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIG_SETMASK@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	mov	x3, #0
	mov	w4, #0
	bl	_kern_sigprocmask
	ldr	w0, [x21]
	ldp	w4, w3, [sp, #8]
	ldr	w5, [sp, #4]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_CTR4
Lloh16:
	adrp	x8, _EJUSTRETURN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EJUSTRETURN@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGILL,4,2                     ; @SIGILL
	.comm	_KTR_SIG,4,2                    ; @KTR_SIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sigreturn: td=%p ucp=%p"

l_.str.1:                               ; @.str.1
	.asciz	"sigreturn: efault td=%p"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_SIG_SETMASK,4,2                ; @SIG_SETMASK
l_.str.2:                               ; @.str.2
	.asciz	"sigreturn: return td=%p pc=%#lx sp=%#lx tstate=%#lx"

	.comm	_EJUSTRETURN,4,2                ; @EJUSTRETURN
.subsections_via_symbols
