	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sigstring_to_signum
_sigstring_to_signum:                   ## @sigstring_to_signum
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_is_number
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_atoi
	movq	_NSIG@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	$-1, %r12d
	cmovll	%eax, %r12d
	movl	$-1, %ecx
	testl	%eax, %eax
	cmovsl	%ecx, %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	$3, %edx
	callq	_strncasecmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%al
	movq	_sys_nsig@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	movl	$-1, %r12d
	cmpl	$2, %r15d
	jl	LBB0_10
## %bb.5:
	movb	%al, %cl
	leaq	(%rcx,%rcx,2), %rax
	addq	%rax, %r14
	movq	_sys_signame@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	$1, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:
	movl	%ebx, %r12d
	jmp	LBB0_10
LBB0_3:
	xorl	%r12d, %r12d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_NSIG,4,2                       ## @NSIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EXIT"

L_.str.1:                               ## @.str.1
	.asciz	"SIG"

	.comm	_sys_nsig,4,2                   ## @sys_nsig
	.comm	_sys_signame,8,3                ## @sys_signame
	.no_dead_strip	_sigstring_to_signum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sigstring_to_signum
_sigstring_to_signum:                   ; @sigstring_to_signum
	.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
	mov	x19, x0
	bl	_is_number
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_atoi
Lloh0:
	adrp	x8, _NSIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NSIG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	mov	w8, #-1
	ccmp	w0, w8, #4, lt
	csinv	w19, w0, wzr, gt
	b	LBB0_10
LBB0_2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcasecmp
	cbz	x0, LBB0_9
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w20, #3
	mov	x0, x19
	mov	w2, #3
	bl	_strncasecmp
	cmp	x0, #0
	csel	x8, x20, xzr, eq
Lloh7:
	adrp	x9, _sys_nsig@GOTPAGE
Lloh8:
	ldr	x9, [x9, _sys_nsig@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x9]
	cmp	w21, #2
	b.lt	LBB0_8
; %bb.4:
	add	x20, x19, x8
Lloh10:
	adrp	x8, _sys_signame@GOTPAGE
Lloh11:
	ldr	x8, [x8, _sys_signame@GOTPAGEOFF]
Lloh12:
	ldr	x22, [x8]
	mov	w19, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x19, x19, #1
	cmp	x21, x19
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22, x19, lsl #3]
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x20
	bl	_strcasecmp
	cbnz	x0, LBB0_5
	b	LBB0_10
LBB0_8:
	mov	w19, #-1
	b	LBB0_10
LBB0_9:
	mov	w19, #0
LBB0_10:
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_NSIG,4,2                       ; @NSIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EXIT"

l_.str.1:                               ; @.str.1
	.asciz	"SIG"

	.comm	_sys_nsig,4,2                   ; @sys_nsig
	.comm	_sys_signame,8,3                ; @sys_signame
	.no_dead_strip	_sigstring_to_signum
.subsections_via_symbols
