	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setsignal                      ## -- Begin function setsignal
	.p2align	4, 0x90
_setsignal:                             ## @setsignal
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	_SIG_DFL@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, -48(%rbp)
	movq	_trap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %r12
	movq	(%rax,%r12,8), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpb	$0, (%rax)
	setne	%bl
	addb	%bl, %bl
	orb	$-128, %bl
	jmp	LBB0_7
LBB0_2:
	cmpl	$133, %r15d
	je	LBB0_6
## %bb.3:
	cmpl	$134, %r15d
	je	LBB0_5
## %bb.4:
	movb	$-127, %bl
	cmpl	$135, %r15d
	jne	LBB0_7
LBB0_5:
	movb	$-126, %bl
	jmp	LBB0_7
LBB0_6:
	movq	_rootshell@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	setne	%al
	movq	_iflag@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	setne	%bl
	andb	%al, %bl
	xorb	$-127, %bl
LBB0_7:
	movq	_sigmode@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movb	(%r13,%r12), %al
	testb	%al, %al
	jne	LBB0_18
## %bb.8:
	leaq	-48(%rbp), %rsi
	movl	%r15d, %edi
	callq	_getsigaction
	testl	%eax, %eax
	je	LBB0_28
## %bb.9:
	movq	-48(%rbp), %rax
	movq	_SIG_IGN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.10:
	movq	_mflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.11:
	movb	$-128, %al
	cmpl	$132, %r15d
	je	LBB0_17
## %bb.12:
	cmpl	$131, %r15d
	je	LBB0_17
## %bb.13:
	movq	_SIGTTIN@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	je	LBB0_17
LBB0_14:
	movq	_S_HARD_IGN@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_S_RESET@GOTPCREL(%rip), %rax
LBB0_16:
	movb	(%rax), %al
LBB0_17:
	movb	%al, (%r13,%r12)
LBB0_18:
	movq	_S_HARD_IGN@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	je	LBB0_28
## %bb.19:
	cmpb	$-128, %bl
	je	LBB0_24
## %bb.20:
	cmpb	$-126, %bl
	je	LBB0_23
## %bb.21:
	cmpb	$-127, %bl
	jne	LBB0_27
## %bb.22:
	movq	(%r14), %rax
	jmp	LBB0_26
LBB0_24:
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_23:
	movq	_onsig@GOTPCREL(%rip), %rax
LBB0_25:
	movq	(%rax), %rax
LBB0_26:
	movq	%rax, -48(%rbp)
LBB0_27:
	movb	%bl, (%r13,%r12)
	movq	-48(%rbp), %rax
	movq	%rax, -56(%rbp)
	movq	$0, -64(%rbp)
	leaq	-72(%rbp), %r14
	movq	%r14, %rdi
	callq	_sigemptyset
	movl	%r15d, %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_sigaction
LBB0_28:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIG_DFL,8,3                    ## @SIG_DFL
	.comm	_trap,8,3                       ## @trap
	.comm	_rootshell,4,2                  ## @rootshell
	.comm	_iflag,4,2                      ## @iflag
	.comm	_sigmode,8,3                    ## @sigmode
	.comm	_SIG_IGN,8,3                    ## @SIG_IGN
	.comm	_mflag,8,3                      ## @mflag
	.comm	_SIGTTIN,4,2                    ## @SIGTTIN
	.comm	_S_HARD_IGN,1,0                 ## @S_HARD_IGN
	.comm	_S_RESET,1,0                    ## @S_RESET
	.comm	_onsig,8,3                      ## @onsig
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setsignal                      ; -- Begin function setsignal
	.p2align	2
_setsignal:                             ; @setsignal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x21, _SIG_DFL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SIG_DFL@GOTPAGEOFF]
	ldr	x8, [x21]
	str	x8, [sp, #24]
Lloh2:
	adrp	x8, _trap@GOTPAGE
Lloh3:
	ldr	x8, [x8, _trap@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	sxtw	x20, w19
	ldr	x8, [x8, w0, sxtw #3]
	cbz	x8, LBB0_2
; %bb.1:
	ldrb	w8, [x8]
	mov	w9, #130
	mov	w10, #128
	cmp	w8, #0
	csel	w22, w10, w9, eq
	b	LBB0_5
LBB0_2:
	cmp	w19, #133
	b.eq	LBB0_4
; %bb.3:
	mov	w8, #129
	mov	w9, #130
	mov	w10, #130
	cmp	w19, #135
	csel	w8, w8, w10, ne
	cmp	w19, #134
	csel	w22, w9, w8, eq
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _rootshell@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rootshell@GOTPAGEOFF]
Lloh7:
	adrp	x9, _iflag@GOTPAGE
Lloh8:
	ldr	x9, [x9, _iflag@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	cmp	w9, #0
	ccmp	w8, #0, #4, ne
	mov	w8, #128
	cinc	w22, w8, eq
LBB0_5:
Lloh11:
	adrp	x8, _sigmode@GOTPAGE
Lloh12:
	ldr	x8, [x8, _sigmode@GOTPAGEOFF]
Lloh13:
	ldr	x23, [x8]
	ldrb	w8, [x23, x20]
	cbnz	w8, LBB0_16
; %bb.6:
	add	x1, sp, #24
	mov	x0, x19
	bl	_getsigaction
	cbz	w0, LBB0_26
; %bb.7:
	ldr	x8, [sp, #24]
Lloh14:
	adrp	x9, _SIG_IGN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SIG_IGN@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.8:
Lloh17:
	adrp	x8, _mflag@GOTPAGE
Lloh18:
	ldr	x8, [x8, _mflag@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.9:
	mov	w8, #128
	cmp	w19, #132
	b.eq	LBB0_15
; %bb.10:
	cmp	w19, #131
	b.eq	LBB0_15
; %bb.11:
Lloh20:
	adrp	x9, _SIGTTIN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SIGTTIN@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w9, w19
	b.eq	LBB0_15
LBB0_12:
Lloh23:
	adrp	x8, _S_HARD_IGN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _S_HARD_IGN@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh25:
	adrp	x8, _S_RESET@GOTPAGE
Lloh26:
	ldr	x8, [x8, _S_RESET@GOTPAGEOFF]
LBB0_14:
	ldrb	w8, [x8]
LBB0_15:
	strb	w8, [x23, x20]
LBB0_16:
Lloh27:
	adrp	x9, _S_HARD_IGN@GOTPAGE
Lloh28:
	ldr	x9, [x9, _S_HARD_IGN@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_26
; %bb.17:
	ands	w8, w22, #0x3
	b.eq	LBB0_21
; %bb.18:
	cmp	w8, #2
	b.eq	LBB0_22
; %bb.19:
	cmp	w8, #1
	b.ne	LBB0_25
; %bb.20:
	ldr	x8, [x21]
	b	LBB0_24
LBB0_21:
Lloh29:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
	b	LBB0_23
LBB0_22:
Lloh31:
	adrp	x8, _onsig@GOTPAGE
Lloh32:
	ldr	x8, [x8, _onsig@GOTPAGEOFF]
LBB0_23:
	ldr	x8, [x8]
LBB0_24:
	str	x8, [sp, #24]
LBB0_25:
	strb	w22, [x23, x20]
	ldr	x8, [sp, #24]
	stp	xzr, x8, [sp, #8]
	mov	x0, sp
	bl	_sigemptyset
	mov	x1, sp
	mov	x0, x19
	mov	x2, #0
	bl	_sigaction
LBB0_26:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_SIG_DFL,8,3                    ; @SIG_DFL
	.comm	_trap,8,3                       ; @trap
	.comm	_rootshell,4,2                  ; @rootshell
	.comm	_iflag,4,2                      ; @iflag
	.comm	_sigmode,8,3                    ; @sigmode
	.comm	_SIG_IGN,8,3                    ; @SIG_IGN
	.comm	_mflag,8,3                      ; @mflag
	.comm	_SIGTTIN,4,2                    ; @SIGTTIN
	.comm	_S_HARD_IGN,1,0                 ; @S_HARD_IGN
	.comm	_S_RESET,1,0                    ; @S_RESET
	.comm	_onsig,8,3                      ; @onsig
.subsections_via_symbols
