	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dotrap                         ## -- Begin function dotrap
	.p2align	4, 0x90
_dotrap:                                ## @dotrap
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_in_dotrap@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_NSIG@GOTPCREL(%rip), %r10
	movl	(%r10), %eax
	movq	_pendingsig@GOTPCREL(%rip), %rbx
	movq	_pendingsig_waitcmd@GOTPCREL(%rip), %rdi
	movq	_gotsig@GOTPCREL(%rip), %r8
	movq	_SIGCHLD@GOTPCREL(%rip), %r9
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r10), %eax
	cmpl	%eax, %r14d
	jge	LBB0_15
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	$0, (%rbx)
	movq	$0, (%rdi)
	movl	$1, %r14d
	cmpl	$2, %eax
	jl	LBB0_14
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r8), %rcx
	movl	%eax, %esi
	movl	$1, %edx
	subq	%rsi, %rdx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, 8(%rcx,%r15,8)
	jne	LBB0_4
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=2
	incq	%r15
	movq	%rdx, %rsi
	addq	%r15, %rsi
	jne	LBB0_3
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r14d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%r15), %r14
	movq	$0, 8(%rcx,%r15,8)
	movq	_trap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, 8(%rax,%r15,8)
	je	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r9), %eax
	movl	%r15d, %ecx
	subl	%eax, %ecx
	cmpl	$-1, %ecx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_ignore_sigchld@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_evalskip@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	movq	_skipcount@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$0, (%r13)
	movq	_last_trapsig@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	movq	_exitstatus@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_setstackmark
	movq	_trap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax,%r15,8), %rdi
	callq	_stsavestr
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_evalstring
	movq	%rbx, %rdi
	callq	_popstackmark
	cmpl	$0, (%r13)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_evalskip@GOTPCREL(%rip), %rax
	movl	%r12d, (%rax)
	movq	_skipcount@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	_exitstatus@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_SIGCHLD@GOTPCREL(%rip), %r9
	subl	(%r9), %r15d
	cmpl	$-1, %r15d
	movq	_NSIG@GOTPCREL(%rip), %r10
	movq	_pendingsig@GOTPCREL(%rip), %rbx
	movq	_pendingsig_waitcmd@GOTPCREL(%rip), %rdi
	movq	_gotsig@GOTPCREL(%rip), %r8
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_ignore_sigchld@GOTPCREL(%rip), %rax
	decl	(%rax)
	jmp	LBB0_14
LBB0_15:
	movq	_in_dotrap@GOTPCREL(%rip), %rax
	decl	(%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_in_dotrap,4,2                  ## @in_dotrap
	.comm	_pendingsig,8,3                 ## @pendingsig
	.comm	_pendingsig_waitcmd,8,3         ## @pendingsig_waitcmd
	.comm	_NSIG,4,2                       ## @NSIG
	.comm	_gotsig,8,3                     ## @gotsig
	.comm	_trap,8,3                       ## @trap
	.comm	_SIGCHLD,4,2                    ## @SIGCHLD
	.comm	_ignore_sigchld,4,2             ## @ignore_sigchld
	.comm	_evalskip,4,2                   ## @evalskip
	.comm	_skipcount,4,2                  ## @skipcount
	.comm	_last_trapsig,4,2               ## @last_trapsig
	.comm	_exitstatus,4,2                 ## @exitstatus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dotrap                         ; -- Begin function dotrap
	.p2align	2
_dotrap:                                ; @dotrap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x9, _in_dotrap@GOTPAGE
Lloh1:
	ldr	x9, [x9, _in_dotrap@GOTPAGEOFF]
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
Lloh2:
	adrp	x20, _NSIG@GOTPAGE
Lloh3:
	ldr	x20, [x20, _NSIG@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh4:
	adrp	x21, _pendingsig@GOTPAGE
Lloh5:
	ldr	x21, [x21, _pendingsig@GOTPAGEOFF]
Lloh6:
	adrp	x22, _pendingsig_waitcmd@GOTPAGE
Lloh7:
	ldr	x22, [x22, _pendingsig_waitcmd@GOTPAGEOFF]
Lloh8:
	adrp	x23, _gotsig@GOTPAGE
Lloh9:
	ldr	x23, [x23, _gotsig@GOTPAGEOFF]
Lloh10:
	adrp	x11, _SIGCHLD@GOTPAGE
Lloh11:
	ldr	x11, [x11, _SIGCHLD@GOTPAGEOFF]
Lloh12:
	adrp	x27, _evalskip@GOTPAGE
Lloh13:
	ldr	x27, [x27, _evalskip@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, #1
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	cmp	w28, w8
	b.ge	LBB0_16
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	str	xzr, [x21]
	str	xzr, [x22]
	cmp	w8, #2
	b.lt	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, w8
	ldr	x9, [x23]
	mov	w28, #1
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x9, x28, lsl #3]
	cbnz	x10, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x28, x28, #1
	cmp	x8, x28
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, x8
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	lsl	x8, x28, #3
	str	xzr, [x9, x8]
Lloh14:
	adrp	x9, _trap@GOTPAGE
Lloh15:
	ldr	x9, [x9, _trap@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	x8, [x9, x8]
	cbz	x8, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x11
	ldr	w8, [x11]
	cmp	w8, w28
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh17:
	adrp	x9, _ignore_sigchld@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ignore_sigchld@GOTPAGEOFF]
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w19, [x27]
Lloh19:
	adrp	x8, _skipcount@GOTPAGE
Lloh20:
	ldr	x8, [x8, _skipcount@GOTPAGEOFF]
Lloh21:
	ldr	w25, [x8]
	str	wzr, [x27]
Lloh22:
	adrp	x8, _last_trapsig@GOTPAGE
Lloh23:
	ldr	x8, [x8, _last_trapsig@GOTPAGEOFF]
Lloh24:
	str	w28, [x8]
Lloh25:
	adrp	x8, _exitstatus@GOTPAGE
Lloh26:
	ldr	x8, [x8, _exitstatus@GOTPAGEOFF]
Lloh27:
	ldr	w26, [x8]
	add	x0, sp, #8
	bl	_setstackmark
Lloh28:
	adrp	x8, _trap@GOTPAGE
Lloh29:
	ldr	x8, [x8, _trap@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	ldr	x0, [x8, x28, lsl #3]
	bl	_stsavestr
	mov	w1, #0
	bl	_evalstring
	add	x0, sp, #8
	bl	_popstackmark
	ldr	w8, [x27]
	cbz	w8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	cbz	w19, LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w19, [x27]
Lloh31:
	adrp	x8, _skipcount@GOTPAGE
Lloh32:
	ldr	x8, [x8, _skipcount@GOTPAGEOFF]
Lloh33:
	str	w25, [x8]
Lloh34:
	adrp	x8, _exitstatus@GOTPAGE
Lloh35:
	ldr	x8, [x8, _exitstatus@GOTPAGEOFF]
Lloh36:
	str	w26, [x8]
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, x24
	ldr	w8, [x24]
	cmp	w8, w28
	b.ne	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh37:
	adrp	x9, _ignore_sigchld@GOTPAGE
Lloh38:
	ldr	x9, [x9, _ignore_sigchld@GOTPAGEOFF]
	ldr	w8, [x9]
	sub	w8, w8, #1
	str	w8, [x9]
	b	LBB0_2
LBB0_16:
Lloh39:
	adrp	x9, _in_dotrap@GOTPAGE
Lloh40:
	ldr	x9, [x9, _in_dotrap@GOTPAGEOFF]
	ldr	w8, [x9]
	sub	w8, w8, #1
	str	w8, [x9]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_in_dotrap,4,2                  ; @in_dotrap
	.comm	_pendingsig,8,3                 ; @pendingsig
	.comm	_pendingsig_waitcmd,8,3         ; @pendingsig_waitcmd
	.comm	_NSIG,4,2                       ; @NSIG
	.comm	_gotsig,8,3                     ; @gotsig
	.comm	_trap,8,3                       ; @trap
	.comm	_SIGCHLD,4,2                    ; @SIGCHLD
	.comm	_ignore_sigchld,4,2             ; @ignore_sigchld
	.comm	_evalskip,4,2                   ; @evalskip
	.comm	_skipcount,4,2                  ; @skipcount
	.comm	_last_trapsig,4,2               ; @last_trapsig
	.comm	_exitstatus,4,2                 ; @exitstatus
.subsections_via_symbols
