	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___thr_sigsuspend               ## -- Begin function __thr_sigsuspend
	.p2align	4, 0x90
___thr_sigsuspend:                      ## @__thr_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	__get_curthread
	movq	%rax, %rbx
	movl	(%rax), %r15d
	movl	$1, (%rax)
	movq	%rax, %rdi
	callq	__thr_cancel_enter
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	callq	_thr_remove_thr_signals
	movl	%eax, %edi
	callq	___sys_sigsuspend
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	__thr_cancel_leave
	movl	%r15d, (%rbx)
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	$0, 8(%rbx)
	movl	-28(%rbp), %edi
	callq	_SIGEMPTYSET
	movl	-28(%rbp), %edi
	movq	_SIGCANCEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SIGADDSET
	movq	_SIG_UNBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-28(%rbp), %rsi
	xorl	%edx, %edx
	callq	___sys_sigprocmask
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGCANCEL,4,2                  ## @SIGCANCEL
	.comm	_SIG_UNBLOCK,4,2                ## @SIG_UNBLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___thr_sigsuspend               ; -- Begin function __thr_sigsuspend
	.p2align	2
___thr_sigsuspend:                      ; @__thr_sigsuspend
	.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	x19, x0
	bl	__get_curthread
	mov	x20, x0
	ldr	w21, [x0]
	mov	w8, #1
	str	w8, [x0]
	bl	__thr_cancel_enter
	add	x1, sp, #12
	mov	x0, x19
	bl	_thr_remove_thr_signals
	bl	___sys_sigsuspend
	mov	x19, x0
	mov	x0, x20
	mov	w1, #1
	bl	__thr_cancel_leave
	str	w21, [x20]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	str	xzr, [x20, #8]
	ldr	w0, [sp, #12]
	bl	_SIGEMPTYSET
	ldr	w0, [sp, #12]
Lloh0:
	adrp	x8, _SIGCANCEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGCANCEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_SIGADDSET
Lloh3:
	adrp	x8, _SIG_UNBLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIG_UNBLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, sp, #12
	mov	x2, #0
	bl	___sys_sigprocmask
LBB0_2:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGCANCEL,4,2                  ; @SIGCANCEL
	.comm	_SIG_UNBLOCK,4,2                ; @SIG_UNBLOCK
.subsections_via_symbols
