	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_rt_sigprocmask             ## -- Begin function sys_rt_sigprocmask
	.p2align	4, 0x90
_sys_rt_sigprocmask:                    ## @sys_rt_sigprocmask
	.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
	cmpl	$8, %ecx
	jne	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movl	%edi, %r14d
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_user_get
	testq	%rax, %rax
	jne	LBB0_4
LBB0_5:
	movq	_SIG_BLOCK_@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_10
LBB0_1:
	movq	__EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_15
LBB0_7:
	movq	_SIG_UNBLOCK_@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
LBB0_9:
	movq	_SIG_SETMASK_@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rsi
	cmoveq	%rax, %rsi
LBB0_10:
	leaq	L_.str(%rip), %rdi
	movq	$-1, %rdx
	movq	%r15, %rcx
	movl	$8, %r8d
	callq	_STRACE
	testq	%r15, %r15
	je	LBB0_12
## %bb.11:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax), %esi
	movq	%r15, %rdi
	callq	_user_put
	testq	%rax, %rax
	je	LBB0_12
LBB0_4:
	movq	__EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_15
LBB0_12:
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.13:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_lock
	movl	%r14d, %edi
	callq	_do_sigprocmask
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_unlock
	testl	%ebx, %ebx
	js	LBB0_15
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__EINVAL,4,2                    ## @_EINVAL
	.comm	__EFAULT,4,2                    ## @_EFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rt_sigprocmask(%s, %#llx, %#x, %d)"

	.comm	_SIG_BLOCK_,4,2                 ## @SIG_BLOCK_
L_.str.1:                               ## @.str.1
	.asciz	"SIG_BLOCK"

	.comm	_SIG_UNBLOCK_,4,2               ## @SIG_UNBLOCK_
L_.str.2:                               ## @.str.2
	.asciz	"SIG_UNBLOCK"

	.comm	_SIG_SETMASK_,4,2               ## @SIG_SETMASK_
L_.str.3:                               ## @.str.3
	.asciz	"SIG_SETMASK"

L_.str.4:                               ## @.str.4
	.asciz	"??"

	.comm	_current,8,3                    ## @current
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_rt_sigprocmask             ; -- Begin function sys_rt_sigprocmask
	.p2align	2
_sys_rt_sigprocmask:                    ; @sys_rt_sigprocmask
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cmp	w3, #8
	b.ne	LBB0_5
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	cbz	x1, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_user_get
	cbnz	x0, LBB0_11
LBB0_3:
Lloh0:
	adrp	x8, _SIG_BLOCK_@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIG_BLOCK_@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_6
; %bb.4:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_5:
Lloh5:
	adrp	x8, __EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, __EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	b	LBB0_15
LBB0_6:
Lloh8:
	adrp	x8, _SIG_UNBLOCK_@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIG_UNBLOCK_@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_8
; %bb.7:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x8, _SIG_SETMASK_@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SIG_SETMASK_@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, l_.str.4@PAGE
Lloh17:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh18:
	adrp	x10, l_.str.3@PAGE
Lloh19:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	w8, w19
	csel	x1, x10, x9, eq
LBB0_9:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, #-1
	mov	x3, x21
	mov	w4, #8
	bl	_STRACE
Lloh22:
	adrp	x22, _current@GOTPAGE
Lloh23:
	ldr	x22, [x22, _current@GOTPAGEOFF]
	cbz	x21, LBB0_12
; %bb.10:
	ldr	x8, [x22]
	ldr	w1, [x8, #8]
	mov	x0, x21
	bl	_user_put
	cbz	x0, LBB0_12
LBB0_11:
Lloh24:
	adrp	x8, __EFAULT@GOTPAGE
Lloh25:
	ldr	x8, [x8, __EFAULT@GOTPAGEOFF]
Lloh26:
	ldr	w19, [x8]
	b	LBB0_15
LBB0_12:
	cbz	x20, LBB0_14
; %bb.13:
	ldr	x8, [x22]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_lock
	mov	x0, x19
	bl	_do_sigprocmask
	mov	x19, x0
	mov	x0, x20
	bl	_unlock
	tbnz	w19, #31, LBB0_15
LBB0_14:
	mov	w19, #0
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	__EINVAL,4,2                    ; @_EINVAL
	.comm	__EFAULT,4,2                    ; @_EFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rt_sigprocmask(%s, %#llx, %#x, %d)"

	.comm	_SIG_BLOCK_,4,2                 ; @SIG_BLOCK_
l_.str.1:                               ; @.str.1
	.asciz	"SIG_BLOCK"

	.comm	_SIG_UNBLOCK_,4,2               ; @SIG_UNBLOCK_
l_.str.2:                               ; @.str.2
	.asciz	"SIG_UNBLOCK"

	.comm	_SIG_SETMASK_,4,2               ; @SIG_SETMASK_
l_.str.3:                               ; @.str.3
	.asciz	"SIG_SETMASK"

l_.str.4:                               ; @.str.4
	.asciz	"??"

	.comm	_current,8,3                    ; @current
.subsections_via_symbols
