	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_onsig                          ## -- Begin function onsig
	.p2align	4, 0x90
_onsig:                                 ## @onsig
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SIGINT@GOTPCREL(%rip), %rcx
	movslq	%edi, %rax
	cmpl	%edi, (%rcx)
	jne	LBB0_5
## %bb.1:
	movq	_trap@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rcx,%rax,8)
	jne	LBB0_6
## %bb.2:
	movq	_suppressint@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_in_dotrap@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_4
LBB0_12:
	popq	%rbp
	retq
LBB0_5:
	movq	_SIGQUIT@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jne	LBB0_7
LBB0_6:
	movq	_pendingsig_waitcmd@GOTPCREL(%rip), %rcx
	movl	%edi, (%rcx)
LBB0_7:
	movq	_trap@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.8:
	cmpb	$0, (%rcx)
	je	LBB0_12
## %bb.9:
	movq	_SIGCHLD@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jne	LBB0_11
## %bb.10:
	movq	_ignore_sigchld@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_12
LBB0_11:
	movq	_gotsig@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$1, (%rcx,%rax,4)
	movq	_pendingsig@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	movq	_pendingsig_waitcmd@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_onint                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_trap,8,3                       ## @trap
	.comm	_suppressint,8,3                ## @suppressint
	.comm	_in_dotrap,4,2                  ## @in_dotrap
	.comm	_SET_PENDING_INT,4,2            ## @SET_PENDING_INT
	.comm	_SIGQUIT,4,2                    ## @SIGQUIT
	.comm	_pendingsig_waitcmd,4,2         ## @pendingsig_waitcmd
	.comm	_SIGCHLD,4,2                    ## @SIGCHLD
	.comm	_ignore_sigchld,4,2             ## @ignore_sigchld
	.comm	_gotsig,8,3                     ## @gotsig
	.comm	_pendingsig,4,2                 ## @pendingsig
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_onsig                          ; -- Begin function onsig
	.p2align	2
_onsig:                                 ; @onsig
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _SIGINT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _trap@GOTPAGE
Lloh4:
	ldr	x8, [x8, _trap@GOTPAGEOFF]
	cmp	w9, w0
	b.ne	LBB0_4
; %bb.1:
	ldr	x9, [x8]
	ldr	x9, [x9, w0, sxtw #3]
	cbnz	x9, LBB0_5
; %bb.2:
Lloh5:
	adrp	x8, _suppressint@GOTPAGE
Lloh6:
	ldr	x8, [x8, _suppressint@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _in_dotrap@GOTPAGE
Lloh9:
	ldr	x9, [x9, _in_dotrap@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_10
; %bb.3:
	b	_onint
LBB0_4:
Lloh11:
	adrp	x9, _SIGQUIT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SIGQUIT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w9, w0
	b.ne	LBB0_6
LBB0_5:
Lloh14:
	adrp	x9, _pendingsig_waitcmd@GOTPAGE
Lloh15:
	ldr	x9, [x9, _pendingsig_waitcmd@GOTPAGEOFF]
Lloh16:
	str	w0, [x9]
LBB0_6:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
	cbz	x8, LBB0_10
; %bb.7:
	ldrb	w8, [x8]
	cbz	w8, LBB0_10
; %bb.8:
Lloh17:
	adrp	x8, _SIGCHLD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SIGCHLD@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _ignore_sigchld@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ignore_sigchld@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, #0, #4, eq
	b.ne	LBB0_10
; %bb.9:
	sxtw	x8, w0
Lloh23:
	adrp	x9, _gotsig@GOTPAGE
Lloh24:
	ldr	x9, [x9, _gotsig@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	mov	w10, #1
	str	w10, [x9, x8, lsl #2]
Lloh26:
	adrp	x8, _pendingsig@GOTPAGE
Lloh27:
	ldr	x8, [x8, _pendingsig@GOTPAGEOFF]
Lloh28:
	str	w0, [x8]
Lloh29:
	adrp	x8, _pendingsig_waitcmd@GOTPAGE
Lloh30:
	ldr	x8, [x8, _pendingsig_waitcmd@GOTPAGEOFF]
Lloh31:
	str	w0, [x8]
LBB0_10:
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_trap,8,3                       ; @trap
	.comm	_suppressint,8,3                ; @suppressint
	.comm	_in_dotrap,4,2                  ; @in_dotrap
	.comm	_SET_PENDING_INT,4,2            ; @SET_PENDING_INT
	.comm	_SIGQUIT,4,2                    ; @SIGQUIT
	.comm	_pendingsig_waitcmd,4,2         ; @pendingsig_waitcmd
	.comm	_SIGCHLD,4,2                    ; @SIGCHLD
	.comm	_ignore_sigchld,4,2             ; @ignore_sigchld
	.comm	_gotsig,8,3                     ; @gotsig
	.comm	_pendingsig,4,2                 ; @pendingsig
.subsections_via_symbols
