	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sig                            ## -- Begin function sig
	.p2align	4, 0x90
_sig:                                   ## @sig
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	addl	$-128, %edi
	cmpl	$6, %edi
	ja	LBB0_6
## %bb.1:
	cmpl	$2, %edi
	jne	LBB0_2
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_msg
	movq	_SIG_DFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$130, %edi
	callq	_signal
	xorl	%edi, %edi
	movl	$130, %esi
	popq	%rbp
	jmp	_kill                           ## TAILCALL
LBB0_6:
	popq	%rbp
	retq
LBB0_2:
	movq	_pipeout@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_quit
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_msg
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	xorl	%eax, %eax
	callq	_close_rewind
	movq	_X_REWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_pipeout,4,2                    ## @pipeout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Signal on pipe: cannot recover\n"

L_.str.1:                               ## @.str.1
	.asciz	"Rewriting attempted as response to unknown signal.\n"

	.comm	_stderr,4,2                     ## @stderr
	.comm	_stdout,4,2                     ## @stdout
	.comm	_X_REWRITE,4,2                  ## @X_REWRITE
L_.str.2:                               ## @.str.2
	.asciz	"SIGSEGV: ABORTING!\n"

	.comm	_SIG_DFL,4,2                    ## @SIG_DFL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sig                            ; -- Begin function sig
	.p2align	2
_sig:                                   ; @sig
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	w8, w0, #128
	cmp	w8, #6
	b.hi	LBB0_3
; %bb.1:
	cmp	w8, #2
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_msg
Lloh2:
	adrp	x8, _SIG_DFL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIG_DFL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #130
	bl	_signal
	mov	w0, #0
	mov	w1, #130
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_kill
LBB0_3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh5:
	adrp	x8, _pipeout@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pipeout@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.5:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_quit
LBB0_6:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_msg
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_fflush
Lloh15:
	adrp	x8, _stdout@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_fflush
	bl	_close_rewind
Lloh18:
	adrp	x8, _X_REWRITE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _X_REWRITE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_pipeout,4,2                    ; @pipeout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Signal on pipe: cannot recover\n"

l_.str.1:                               ; @.str.1
	.asciz	"Rewriting attempted as response to unknown signal.\n"

	.comm	_stderr,4,2                     ; @stderr
	.comm	_stdout,4,2                     ; @stdout
	.comm	_X_REWRITE,4,2                  ; @X_REWRITE
l_.str.2:                               ; @.str.2
	.asciz	"SIGSEGV: ABORTING!\n"

	.comm	_SIG_DFL,4,2                    ; @SIG_DFL
.subsections_via_symbols
