	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dowait
_dowait:                                ## @dowait
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_TRACE
	movq	_DOWAIT_SIG@GOTPCREL(%rip), %rax
	movb	$1, %cl
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.1:
	leaq	-76(%rbp), %r15
	movq	%r15, %rdi
	callq	_sigfillset
	movq	_SIG_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-72(%rbp), %rdx
	movq	%r15, %rsi
	callq	_sigprocmask
	xorl	%eax, %eax
	callq	_issigchldtrapped
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_dummy_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	$0, -96(%rbp)
	leaq	-104(%rbp), %r15
	movq	%r15, %rdi
	callq	_sigemptyset
	movq	_SIGCHLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-128(%rbp), %rdx
	movq	%r15, %rsi
	callq	_sigaction
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	leaq	-44(%rbp), %r12
	movq	_errno@GOTPCREL(%rip), %r14
	movq	_EINTR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DOWAIT_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_DOWAIT_SIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	andl	%ebx, %ecx
	movl	$0, %esi
	cmpl	%eax, %ecx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_WNOHANG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_wait3
	movl	%eax, %r15d
	movslq	-44(%rbp), %rdi
	callq	_TRACE
	testl	%r15d, %r15d
	jne	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_DOWAIT_SIG@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_pendingsig@GOTPCREL(%rip), %rax
	movq	_DOWAIT_SIG_TRAP@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_pendingsig_waitcmd@GOTPCREL(%rip), %rax
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%rax)
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	-72(%rbp), %rdi
	callq	_sigsuspend
	xorl	%eax, %eax
	callq	_int_pending
	movl	$-1, %r15d
	testq	%rax, %rax
	jne	LBB0_17
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rax
	cmpl	$-1, %r15d
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	(%r13), %rax
	je	LBB0_4
LBB0_16:
	cmpl	$-1, %r15d
	jne	LBB0_21
	jmp	LBB0_18
LBB0_8:
	xorl	%r15d, %r15d
	jmp	LBB0_21
LBB0_12:
	movq	(%r13), %rax
	movq	%rax, (%r14)
	jmp	LBB0_18
LBB0_17:
	movq	(%r14), %rax
LBB0_18:
	movl	$-1, %r15d
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_21
## %bb.19:
	movq	_ECHILD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.20:
	movq	_JOBDONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_21:
	movq	_DOWAIT_SIG@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_25
## %bb.22:
	cmpb	$0, -56(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_24
## %bb.23:
	movq	_SIGCHLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-128(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigaction
LBB0_24:
	movq	_SIG_SETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-72(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigprocmask
LBB0_25:
	testl	%r15d, %r15d
	jle	LBB0_76
## %bb.26:
	movq	_njobs@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_76
## %bb.27:
	movq	_jobtab@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_52:                                ##   in Loop: Header=BB0_28 Depth=1
	addq	$56, %rbx
	movq	_njobs@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$56, %rax, %rax
	movq	_jobtab@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	cmpq	%rax, %rbx
	jae	LBB0_53
LBB0_28:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_31 Depth 2
	cmpq	$0, 48(%rbx)
	je	LBB0_52
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	cmpq	$0, 8(%rbx)
	jle	LBB0_52
## %bb.30:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	24(%rbx), %r12
	movl	$1, %r13d
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_31
LBB0_37:                                ##   in Loop: Header=BB0_31 Depth=2
	movl	-44(%rbp), %eax
	movl	%eax, 4(%r12)
LBB0_38:                                ##   in Loop: Header=BB0_31 Depth=2
	movq	%rbx, %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
LBB0_39:                                ##   in Loop: Header=BB0_31 Depth=2
	movl	4(%r12), %edi
	cmpl	$-1, %edi
	je	LBB0_77
## %bb.40:                              ##   in Loop: Header=BB0_31 Depth=2
	callq	_WIFSTOPPED
	testq	%rax, %rax
	cmovnel	%r14d, %r13d
LBB0_41:                                ##   in Loop: Header=BB0_31 Depth=2
	addq	$8, %r12
	movq	8(%rbx), %rax
	shlq	$3, %rax
	addq	24(%rbx), %rax
	cmpq	%rax, %r12
	jae	LBB0_42
LBB0_31:                                ##   Parent Loop BB0_28 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12), %eax
	cmpl	$-1, %eax
	je	LBB0_41
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=2
	cmpl	%r15d, %eax
	jne	LBB0_39
## %bb.33:                              ##   in Loop: Header=BB0_31 Depth=2
	movl	4(%r12), %edi
	cmpl	$-1, %edi
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_31 Depth=2
	callq	_WIFSTOPPED
	testq	%rax, %rax
	je	LBB0_39
LBB0_35:                                ##   in Loop: Header=BB0_31 Depth=2
	movslq	-44(%rbp), %rdi
	callq	_TRACE
	movl	-44(%rbp), %edi
	callq	_WIFCONTINUED
	testq	%rax, %rax
	je	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_31 Depth=2
	movl	$-1, 4(%r12)
	movl	$0, (%rbx)
	jmp	LBB0_38
LBB0_77:                                ##   in Loop: Header=BB0_31 Depth=2
	addq	$8, %r12
	movq	8(%rbx), %rax
	shlq	$3, %rax
	addq	24(%rbx), %rax
	movb	$1, %cl
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	cmpq	%rax, %r12
	jb	LBB0_31
	jmp	LBB0_52
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_28 Depth=1
	testb	$1, -68(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_52
## %bb.43:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	_JOBSTOPPED@GOTPCREL(%rip), %rax
	testl	%r13d, %r13d
	je	LBB0_45
## %bb.44:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	_JOBDONE@GOTPCREL(%rip), %rax
LBB0_45:                                ##   in Loop: Header=BB0_28 Depth=1
	movq	(%rax), %r12
	cmpl	%r12d, (%rbx)
	je	LBB0_52
## %bb.46:                              ##   in Loop: Header=BB0_28 Depth=1
	movslq	%r12d, %rdi
	callq	_TRACE
	movl	%r12d, (%rbx)
	cmpq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_52
## %bb.47:                              ##   in Loop: Header=BB0_28 Depth=1
	testl	%r13d, %r13d
	je	LBB0_52
## %bb.48:                              ##   in Loop: Header=BB0_28 Depth=1
	cmpl	$0, 40(%rbx)
	jne	LBB0_52
## %bb.49:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	_iflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_52
## %bb.50:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	_bgjob@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_52
## %bb.51:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	%rbx, %rdi
	callq	_freejob
	jmp	LBB0_52
LBB0_53:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_76
## %bb.54:
	movslq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_76
## %bb.55:
	movq	_rootshell@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_58
## %bb.56:
	movq	_iflag@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_58
## %bb.57:
	cmpq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_58
LBB0_75:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_TRACE
	movl	$1, 16(%rbx)
LBB0_76:
	movl	%r15d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_58:
	cmpq	$0, 32(%rbx)
	je	LBB0_75
## %bb.59:
	movq	_JOBSTOPPED@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_75
## %bb.60:
	cmpq	$0, 8(%rbx)
	jle	LBB0_61
## %bb.62:
	movq	24(%rbx), %rbx
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_63
	.p2align	4, 0x90
LBB0_65:                                ##   in Loop: Header=BB0_63 Depth=1
	addq	$8, %rbx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	shlq	$3, %rax
	addq	24(%rcx), %rax
	cmpq	%rax, %rbx
	jae	LBB0_66
LBB0_63:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %edi
	callq	_WIFSIGNALED
	testq	%rax, %rax
	je	LBB0_65
## %bb.64:                              ##   in Loop: Header=BB0_63 Depth=1
	movl	4(%rbx), %edi
	callq	_WTERMSIG
	movl	%eax, %r12d
	movl	4(%rbx), %edi
	callq	_WCOREDUMP
	movl	%eax, %r14d
	jmp	LBB0_65
LBB0_61:
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
LBB0_66:
	testl	%r12d, %r12d
	jle	LBB0_76
## %bb.67:
	movq	_SIGINT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_76
## %bb.68:
	movq	_SIGPIPE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_76
## %bb.69:
	movl	%r12d, %edi
	callq	_strsignal
	testq	%rax, %rax
	je	LBB0_71
## %bb.70:
	movq	%rax, %rdi
	jmp	LBB0_72
LBB0_71:
	leaq	L_.str.4(%rip), %rdi
LBB0_72:
	callq	_out2str
	testl	%r14d, %r14d
	je	LBB0_74
## %bb.73:
	leaq	L_.str.5(%rip), %rdi
	callq	_out2str
LBB0_74:
	movl	$10, %edi
	callq	_out2c
	movq	_out2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_flushout
	jmp	LBB0_76
	.cfi_endproc
                                        ## -- End function
	.comm	_DOWAIT_SIG,4,2                 ## @DOWAIT_SIG
	.comm	_SIG_BLOCK,4,2                  ## @SIG_BLOCK
	.comm	_INTOFF,4,2                     ## @INTOFF
	.comm	_dummy_handler,4,2              ## @dummy_handler
	.comm	_SIGCHLD,4,2                    ## @SIGCHLD
	.comm	_DOWAIT_BLOCK,4,2               ## @DOWAIT_BLOCK
	.comm	_WNOHANG,4,2                    ## @WNOHANG
	.comm	_DOWAIT_SIG_TRAP,4,2            ## @DOWAIT_SIG_TRAP
	.comm	_pendingsig,8,3                 ## @pendingsig
	.comm	_pendingsig_waitcmd,8,3         ## @pendingsig_waitcmd
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_errno,8,3                      ## @errno
	.comm	_ECHILD,8,3                     ## @ECHILD
	.comm	_JOBDONE,8,3                    ## @JOBDONE
	.comm	_SIG_SETMASK,4,2                ## @SIG_SETMASK
	.comm	_INTON,4,2                      ## @INTON
	.comm	_jobtab,8,3                     ## @jobtab
	.comm	_njobs,4,2                      ## @njobs
	.comm	_JOBSTOPPED,8,3                 ## @JOBSTOPPED
	.comm	_iflag,8,3                      ## @iflag
	.comm	_bgjob,8,3                      ## @bgjob
	.comm	_rootshell,4,2                  ## @rootshell
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIGPIPE,4,2                    ## @SIGPIPE
	.section	__TEXT,__cstring,cstring_literals
L_.str.4:                               ## @.str.4
	.asciz	"Unknown signal"

L_.str.5:                               ## @.str.5
	.asciz	" (core dumped)"

	.comm	_out2,4,2                       ## @out2
	.comm	_WCONTINUED,4,2                 ## @WCONTINUED
	.comm	_WUNTRACED,4,2                  ## @WUNTRACED
	.no_dead_strip	_dowait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dowait
_dowait:                                ; @dowait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x21, x0
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x0, x1
	bl	_TRACE
Lloh0:
	adrp	x22, _DOWAIT_SIG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DOWAIT_SIG@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
	add	x0, sp, #28
	bl	_sigfillset
Lloh2:
	adrp	x8, _SIG_BLOCK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIG_BLOCK@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, sp, #28
	add	x2, sp, #24
	bl	_sigprocmask
	bl	_issigchldtrapped
	cbz	w0, LBB0_3
LBB0_2:
	mov	w8, #1
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _dummy_handler@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dummy_handler@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #72]
	str	xzr, [sp, #64]
	add	x0, sp, #56
	bl	_sigemptyset
Lloh8:
	adrp	x8, _SIGCHLD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIGCHLD@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, sp, #56
	add	x2, sp, #32
	bl	_sigaction
	str	wzr, [sp, #4]                   ; 4-byte Folded Spill
LBB0_4:
Lloh11:
	adrp	x19, _DOWAIT_BLOCK@GOTPAGE
Lloh12:
	ldr	x19, [x19, _DOWAIT_BLOCK@GOTPAGEOFF]
Lloh13:
	adrp	x24, _WNOHANG@GOTPAGE
Lloh14:
	ldr	x24, [x24, _WNOHANG@GOTPAGEOFF]
Lloh15:
	adrp	x26, _DOWAIT_SIG_TRAP@GOTPAGE
Lloh16:
	ldr	x26, [x26, _DOWAIT_SIG_TRAP@GOTPAGEOFF]
Lloh17:
	adrp	x27, _pendingsig@GOTPAGE
Lloh18:
	ldr	x27, [x27, _pendingsig@GOTPAGEOFF]
Lloh19:
	adrp	x28, _pendingsig_waitcmd@GOTPAGE
Lloh20:
	ldr	x28, [x28, _pendingsig_waitcmd@GOTPAGEOFF]
Lloh21:
	adrp	x25, _errno@GOTPAGE
Lloh22:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
Lloh23:
	adrp	x23, _EINTR@GOTPAGE
Lloh24:
	ldr	x23, [x23, _EINTR@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w20, #-1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x23]
	cmn	w20, #1
	ccmp	x8, x9, #0, eq
	b.ne	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	ldr	w9, [x22]
	orr	w9, w9, w8
	and	w9, w9, w21
	ldr	w10, [x24]
	cmp	w9, w8
	csel	w1, wzr, w10, eq
	add	x0, sp, #20
	mov	x2, #0
	bl	_wait3
	mov	x20, x0
	ldrsw	x0, [sp, #20]
	bl	_TRACE
	cbnz	w20, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x26]
	tst	w8, w21
	csel	x8, x28, x27, eq
	ldr	x8, [x8]
	cbnz	x8, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #24
	bl	_sigsuspend
	bl	_int_pending
	cbz	x0, LBB0_5
; %bb.11:
	ldr	x8, [x25]
	b	LBB0_15
LBB0_12:
	cmn	w20, #1
	b.ne	LBB0_18
	b	LBB0_15
LBB0_13:
	mov	w20, #0
	b	LBB0_18
LBB0_14:
	ldr	x8, [x23]
	str	x8, [x25]
LBB0_15:
	mov	w20, #-1
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x9, LBB0_18
; %bb.16:
Lloh25:
	adrp	x9, _ECHILD@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ECHILD@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.17:
Lloh28:
	adrp	x8, _JOBDONE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _JOBDONE@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w8, [x9]
	mov	w20, #-1
LBB0_18:
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_22
; %bb.19:
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	tbnz	w8, #0, LBB0_21
; %bb.20:
Lloh31:
	adrp	x8, _SIGCHLD@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SIGCHLD@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	add	x1, sp, #32
	mov	x2, #0
	bl	_sigaction
LBB0_21:
Lloh34:
	adrp	x8, _SIG_SETMASK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SIG_SETMASK@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	add	x1, sp, #24
	mov	x2, #0
	bl	_sigprocmask
LBB0_22:
	cmp	w20, #1
	b.lt	LBB0_60
; %bb.23:
Lloh37:
	adrp	x24, _njobs@GOTPAGE
Lloh38:
	ldr	x24, [x24, _njobs@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_60
; %bb.24:
	mov	x22, #0
Lloh39:
	adrp	x26, _jobtab@GOTPAGE
Lloh40:
	ldr	x26, [x26, _jobtab@GOTPAGEOFF]
	ldr	x21, [x26]
	mov	w28, #56
	mov	w25, #-1
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	add	x21, x21, #56
	ldr	x8, [x26]
	ldrsw	x9, [x24]
	madd	x8, x9, x28, x8
	cmp	x21, x8
	b.hs	LBB0_49
LBB0_26:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_34 Depth 2
	ldr	x8, [x21, #48]
	cbz	x8, LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x8, [x21, #8]
	cmp	x8, #1
	b.lt	LBB0_25
; %bb.28:                               ;   in Loop: Header=BB0_26 Depth=1
	mov	w19, #0
	ldr	x27, [x21, #24]
	mov	w23, #1
	b	LBB0_34
LBB0_29:                                ;   in Loop: Header=BB0_34 Depth=2
	ldr	w8, [sp, #20]
	str	w8, [x27, #4]
LBB0_30:                                ;   in Loop: Header=BB0_34 Depth=2
	mov	x22, x21
LBB0_31:                                ;   in Loop: Header=BB0_34 Depth=2
	ldr	w0, [x27, #4]
	cmn	w0, #1
	b.eq	LBB0_40
; %bb.32:                               ;   in Loop: Header=BB0_34 Depth=2
	bl	_WIFSTOPPED
	cmp	x0, #0
	csel	w23, w23, wzr, eq
LBB0_33:                                ;   in Loop: Header=BB0_34 Depth=2
	add	x27, x27, #8
	ldr	x8, [x21, #24]
	ldr	x9, [x21, #8]
	add	x8, x8, x9, lsl #3
	cmp	x27, x8
	b.hs	LBB0_41
LBB0_34:                                ;   Parent Loop BB0_26 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x27]
	cmn	w8, #1
	b.eq	LBB0_33
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=2
	cmp	w8, w20
	b.ne	LBB0_31
; %bb.36:                               ;   in Loop: Header=BB0_34 Depth=2
	ldr	w0, [x27, #4]
	cmn	w0, #1
	b.eq	LBB0_38
; %bb.37:                               ;   in Loop: Header=BB0_34 Depth=2
	bl	_WIFSTOPPED
	cbz	x0, LBB0_31
LBB0_38:                                ;   in Loop: Header=BB0_34 Depth=2
	ldrsw	x0, [sp, #20]
	bl	_TRACE
	ldr	w0, [sp, #20]
	bl	_WIFCONTINUED
	cbz	x0, LBB0_29
; %bb.39:                               ;   in Loop: Header=BB0_34 Depth=2
	str	w25, [x27, #4]
	str	wzr, [x21]
	b	LBB0_30
LBB0_40:                                ;   in Loop: Header=BB0_34 Depth=2
	add	x27, x27, #8
	ldr	x8, [x21, #24]
	ldr	x9, [x21, #8]
	add	x8, x8, x9, lsl #3
	mov	w19, #1
	cmp	x27, x8
	b.lo	LBB0_34
	b	LBB0_25
LBB0_41:                                ;   in Loop: Header=BB0_26 Depth=1
	tbnz	w19, #0, LBB0_25
; %bb.42:                               ;   in Loop: Header=BB0_26 Depth=1
	cmp	w23, #0
Lloh41:
	adrp	x8, _JOBSTOPPED@GOTPAGE
Lloh42:
	ldr	x8, [x8, _JOBSTOPPED@GOTPAGEOFF]
Lloh43:
	adrp	x9, _JOBDONE@GOTPAGE
Lloh44:
	ldr	x9, [x9, _JOBDONE@GOTPAGEOFF]
	csel	x8, x9, x8, ne
	ldr	x19, [x8]
	ldr	w8, [x21]
	cmp	w8, w19
	b.eq	LBB0_25
; %bb.43:                               ;   in Loop: Header=BB0_26 Depth=1
	sxtw	x0, w19
	bl	_TRACE
	str	w19, [x21]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x21, x8
	b.eq	LBB0_25
; %bb.44:                               ;   in Loop: Header=BB0_26 Depth=1
	cbz	w23, LBB0_25
; %bb.45:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	w8, [x21, #40]
	cbnz	w8, LBB0_25
; %bb.46:                               ;   in Loop: Header=BB0_26 Depth=1
Lloh45:
	adrp	x8, _iflag@GOTPAGE
Lloh46:
	ldr	x8, [x8, _iflag@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
	cbnz	x8, LBB0_25
; %bb.47:                               ;   in Loop: Header=BB0_26 Depth=1
Lloh48:
	adrp	x8, _bgjob@GOTPAGE
Lloh49:
	ldr	x8, [x8, _bgjob@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
	cmp	x21, x8
	b.eq	LBB0_25
; %bb.48:                               ;   in Loop: Header=BB0_26 Depth=1
	mov	x0, x21
	bl	_freejob
	b	LBB0_25
LBB0_49:
	cbz	x22, LBB0_60
; %bb.50:
	ldrsw	x8, [x22]
	cbz	w8, LBB0_60
; %bb.51:
Lloh51:
	adrp	x9, _rootshell@GOTPAGE
Lloh52:
	ldr	x9, [x9, _rootshell@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
Lloh54:
	adrp	x10, _iflag@GOTPAGE
Lloh55:
	ldr	x10, [x10, _iflag@GOTPAGEOFF]
Lloh56:
	ldr	x10, [x10]
	cmp	w9, #0
	ccmp	x10, #0, #4, ne
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ccmp	x22, x9, #4, ne
	b.ne	LBB0_59
; %bb.52:
	ldr	x9, [x22, #32]
	cbz	x9, LBB0_59
; %bb.53:
Lloh57:
	adrp	x9, _JOBSTOPPED@GOTPAGE
Lloh58:
	ldr	x9, [x9, _JOBSTOPPED@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	cmp	x9, x8
	b.eq	LBB0_59
; %bb.54:
	ldr	x8, [x22, #8]
	cmp	x8, #1
	b.lt	LBB0_61
; %bb.55:
	mov	w19, #0
	mov	w21, #0
	ldr	x23, [x22, #24]
	b	LBB0_57
LBB0_56:                                ;   in Loop: Header=BB0_57 Depth=1
	add	x23, x23, #8
	ldr	x8, [x22, #24]
	ldr	x9, [x22, #8]
	add	x8, x8, x9, lsl #3
	cmp	x23, x8
	b.hs	LBB0_62
LBB0_57:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23, #4]
	bl	_WIFSIGNALED
	cbz	x0, LBB0_56
; %bb.58:                               ;   in Loop: Header=BB0_57 Depth=1
	ldr	w0, [x23, #4]
	bl	_WTERMSIG
	mov	x21, x0
	ldr	w0, [x23, #4]
	bl	_WCOREDUMP
	mov	x19, x0
	b	LBB0_56
LBB0_59:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_TRACE
	mov	w8, #1
	str	w8, [x22, #16]
LBB0_60:
	mov	x0, x20
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_61:
	mov	w21, #0
	mov	w19, #0
LBB0_62:
	cmp	w21, #1
	b.lt	LBB0_60
; %bb.63:
Lloh60:
	adrp	x8, _SIGINT@GOTPAGE
Lloh61:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
Lloh63:
	adrp	x9, _SIGPIPE@GOTPAGE
Lloh64:
	ldr	x9, [x9, _SIGPIPE@GOTPAGEOFF]
Lloh65:
	ldr	w9, [x9]
	cmp	w21, w8
	ccmp	w21, w9, #4, ne
	b.eq	LBB0_60
; %bb.64:
	mov	x0, x21
	bl	_strsignal
	cbnz	x0, LBB0_66
; %bb.65:
Lloh66:
	adrp	x0, l_.str.4@PAGE
Lloh67:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_66:
	bl	_out2str
	cbz	w19, LBB0_68
; %bb.67:
Lloh68:
	adrp	x0, l_.str.5@PAGE
Lloh69:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_out2str
LBB0_68:
	mov	w0, #10
	bl	_out2c
Lloh70:
	adrp	x8, _out2@GOTPAGE
Lloh71:
	ldr	x8, [x8, _out2@GOTPAGEOFF]
Lloh72:
	ldr	w0, [x8]
	bl	_flushout
	b	LBB0_60
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.cfi_endproc
                                        ; -- End function
	.comm	_DOWAIT_SIG,4,2                 ; @DOWAIT_SIG
	.comm	_SIG_BLOCK,4,2                  ; @SIG_BLOCK
	.comm	_INTOFF,4,2                     ; @INTOFF
	.comm	_dummy_handler,4,2              ; @dummy_handler
	.comm	_SIGCHLD,4,2                    ; @SIGCHLD
	.comm	_DOWAIT_BLOCK,4,2               ; @DOWAIT_BLOCK
	.comm	_WNOHANG,4,2                    ; @WNOHANG
	.comm	_DOWAIT_SIG_TRAP,4,2            ; @DOWAIT_SIG_TRAP
	.comm	_pendingsig,8,3                 ; @pendingsig
	.comm	_pendingsig_waitcmd,8,3         ; @pendingsig_waitcmd
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_errno,8,3                      ; @errno
	.comm	_ECHILD,8,3                     ; @ECHILD
	.comm	_JOBDONE,8,3                    ; @JOBDONE
	.comm	_SIG_SETMASK,4,2                ; @SIG_SETMASK
	.comm	_INTON,4,2                      ; @INTON
	.comm	_jobtab,8,3                     ; @jobtab
	.comm	_njobs,4,2                      ; @njobs
	.comm	_JOBSTOPPED,8,3                 ; @JOBSTOPPED
	.comm	_iflag,8,3                      ; @iflag
	.comm	_bgjob,8,3                      ; @bgjob
	.comm	_rootshell,4,2                  ; @rootshell
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIGPIPE,4,2                    ; @SIGPIPE
	.section	__TEXT,__cstring,cstring_literals
l_.str.4:                               ; @.str.4
	.asciz	"Unknown signal"

l_.str.5:                               ; @.str.5
	.asciz	" (core dumped)"

	.comm	_out2,4,2                       ; @out2
	.comm	_WCONTINUED,4,2                 ; @WCONTINUED
	.comm	_WUNTRACED,4,2                  ; @WUNTRACED
	.no_dead_strip	_dowait
.subsections_via_symbols
