	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_signal                         ## -- Begin function signal
	.p2align	4, 0x90
_signal:                                ## @signal
	.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	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_SIG_ERR@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	testl	%edi, %edi
	js	LBB0_7
## %bb.1:
	cmpq	%rsi, %rax
	je	LBB0_7
## %bb.2:
	movl	%edi, %ebx
	movq	__NSIG@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jle	LBB0_7
## %bb.3:
	movq	%rsi, -40(%rbp)
	leaq	-28(%rbp), %r14
	movq	%r14, %rdi
	callq	_sigemptyset
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_sigaddset
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	movq	_SA_RESTART@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	leaq	-40(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movl	%ebx, %edi
	callq	_sigaction
	testq	%rax, %rax
	js	LBB0_10
## %bb.6:
	movq	-56(%rbp), %rax
	jmp	LBB0_11
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%edx, (%rcx)
	jmp	LBB0_11
LBB0_10:
	movq	(%r15), %rax
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIG_ERR,8,3                    ## @SIG_ERR
	.comm	__NSIG,4,2                      ## @_NSIG
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_SA_RESTART,4,2                 ## @SA_RESTART
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_signal                         ; -- Begin function signal
	.p2align	2
_signal:                                ; @signal
	.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	x19, x0
Lloh0:
	adrp	x21, _SIG_ERR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SIG_ERR@GOTPAGEOFF]
	ldr	x0, [x21]
	tbnz	w19, #31, LBB0_6
; %bb.1:
Lloh2:
	adrp	x8, __NSIG@GOTPAGE
Lloh3:
	ldr	x8, [x8, __NSIG@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	x0, x1
	ccmp	w8, w19, #4, ne
	b.le	LBB0_6
; %bb.2:
	str	x1, [sp, #16]
	add	x8, sp, #16
	add	x20, x8, #12
	mov	x0, x20
	bl	_sigemptyset
	tbnz	w0, #31, LBB0_7
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_sigaddset
	tbnz	w0, #31, LBB0_7
; %bb.4:
Lloh5:
	adrp	x8, _SA_RESTART@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SA_RESTART@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	add	x1, sp, #16
	mov	x2, sp
	mov	x0, x19
	bl	_sigaction
	tbnz	x0, #63, LBB0_7
; %bb.5:
	ldr	x0, [sp]
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w8, w8
Lloh11:
	adrp	x9, _errno@GOTPAGE
Lloh12:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh13:
	str	w8, [x9]
	b	LBB0_8
LBB0_7:
	ldr	x0, [x21]
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SIG_ERR,8,3                    ; @SIG_ERR
	.comm	__NSIG,4,2                      ; @_NSIG
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_SA_RESTART,4,2                 ; @SA_RESTART
.subsections_via_symbols
