	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_rt_sigsuspend              ## -- Begin function sys_rt_sigsuspend
	.p2align	4, 0x90
_sys_rt_sigsuspend:                     ## @sys_rt_sigsuspend
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$8, %esi
	jne	LBB0_1
## %bb.2:
	callq	_user_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	__EFAULT@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_1:
	movq	__EINVAL@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_STRACE
	movq	_current@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	8(%rax), %rdi
	callq	_lock
	callq	_sigmask_set_temp_unlocked
	movq	__EINTR@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	8(%rdi), %rsi
	addq	$16, %rdi
	xorl	%edx, %edx
	callq	_wait_for
	cmpq	(%rbx), %rax
	jne	LBB0_5
## %bb.6:
	movq	(%r14), %rax
	movq	8(%rax), %rdi
	callq	_unlock
	movq	(%r14), %rax
	movq	(%rax), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_STRACE
LBB0_7:
	movq	(%rbx), %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__EINVAL,8,3                    ## @_EINVAL
	.comm	__EFAULT,8,3                    ## @_EFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sigsuspend(0x%llx) = ...\n"

	.comm	_current,8,3                    ## @current
	.comm	__EINTR,8,3                     ## @_EINTR
L_.str.1:                               ## @.str.1
	.asciz	"%d done sigsuspend"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_rt_sigsuspend              ; -- Begin function sys_rt_sigsuspend
	.p2align	2
_sys_rt_sigsuspend:                     ; @sys_rt_sigsuspend
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w1, #8
	b.ne	LBB0_3
; %bb.1:
	bl	_user_get
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, __EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, __EFAULT@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:
Lloh2:
	adrp	x8, __EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, __EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_STRACE
Lloh6:
	adrp	x19, _current@GOTPAGE
Lloh7:
	ldr	x19, [x19, _current@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	bl	_lock
	bl	_sigmask_set_temp_unlocked
Lloh8:
	adrp	x20, __EINTR@GOTPAGE
Lloh9:
	ldr	x20, [x20, __EINTR@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x0, x8, #16
	ldr	x1, [x8, #8]
	mov	x2, #0
	bl	_wait_for
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.6:
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	bl	_unlock
	ldr	x8, [x19]
	ldr	x1, [x8]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_STRACE
Lloh12:
	adrp	x8, __EINTR@GOTPAGE
Lloh13:
	ldr	x8, [x8, __EINTR@GOTPAGEOFF]
LBB0_7:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	__EINVAL,8,3                    ; @_EINVAL
	.comm	__EFAULT,8,3                    ; @_EFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sigsuspend(0x%llx) = ...\n"

	.comm	_current,8,3                    ; @current
	.comm	__EINTR,8,3                     ; @_EINTR
l_.str.1:                               ; @.str.1
	.asciz	"%d done sigsuspend"

.subsections_via_symbols
