	.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, %rbx
	movq	%rdi, %r14
	movq	_KTR_SIG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	(%rsi), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_CTR2
	movl	(%rbx), %edi
	leaq	-48(%rbp), %rsi
	movl	$24, %edx
	callq	_copyin
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_CTR1
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_2:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_set_mcontext
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_SIG_SETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_kern_sigprocmask
	movl	(%r15), %edi
	movl	-40(%rbp), %ecx
	movq	-48(%rbp), %rax
	movl	4(%rax), %r8d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	callq	_CTR3
	movq	_EJUSTRETURN@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.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=%#x sp=%#x"

	.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, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x21, _KTR_SIG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _KTR_SIG@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w3, [x1]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_CTR2
	ldr	w0, [x20]
	add	x1, sp, #8
	mov	w2, #24
	bl	_copyin
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x21]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_CTR1
Lloh6:
	adrp	x8, _EFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_3:
	add	x20, sp, #8
	add	x1, sp, #8
	mov	x0, x19
	bl	_set_mcontext
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
Lloh8:
	adrp	x8, _SIG_SETMASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIG_SETMASK@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, x20, #16
	mov	x0, x19
	mov	x3, #0
	mov	w4, #0
	bl	_kern_sigprocmask
	ldr	w0, [x21]
	ldr	w3, [sp, #16]
	ldr	x8, [sp, #8]
	ldr	w4, [x8, #4]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_CTR3
Lloh13:
	adrp	x8, _EJUSTRETURN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EJUSTRETURN@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.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=%#x sp=%#x"

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