	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dowait                         ## -- Begin function dowait
	.p2align	4, 0x90
_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_USE
	movq	%rbx, %rdi
	callq	_USE
	movq	_pjobs@GOTPCREL(%rip), %r14
	incq	(%r14)
	movq	_SIG_BLOCK@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	-44(%rbp), %rbx
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_sigprocmask
	movq	_SIGCHLD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_sigdelset
	movq	_setintr@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdi
	callq	_sigdelset
LBB0_2:
	movl	(%r15), %edi
	leaq	-52(%rbp), %rbx
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_sigprocmask
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_sigaddset
	movl	(%r15), %edi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_sigprocmask
	xorl	%eax, %eax
	callq	_handle_pending_signals
	movq	_proclist@GOTPCREL(%rip), %rbx
	movq	_PRUNNING@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r12
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %ecx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_sigsuspend
	movq	_pintr_disabled@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	movl	$0, (%r15)
	xorl	%eax, %eax
	callq	_handle_pending_signals
	movl	%r14d, (%r15)
	movq	_pjobs@GOTPCREL(%rip), %r14
	testl	%eax, %eax
	je	LBB0_3
LBB0_9:
	movq	$0, (%r14)
	movq	_SIG_SETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigprocmask
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pjobs,8,3                      ## @pjobs
	.comm	_SIG_BLOCK,4,2                  ## @SIG_BLOCK
	.comm	_SIGCHLD,4,2                    ## @SIGCHLD
	.comm	_setintr,8,3                    ## @setintr
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_proclist,8,3                   ## @proclist
	.comm	_PRUNNING,4,2                   ## @PRUNNING
	.comm	_pintr_disabled,4,2             ## @pintr_disabled
	.comm	_SIG_SETMASK,4,2                ## @SIG_SETMASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dowait                         ; -- Begin function dowait
	.p2align	2
_dowait:                                ; @dowait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x0, x1
	bl	_USE
	mov	x0, x19
	bl	_USE
Lloh0:
	adrp	x19, _pjobs@GOTPAGE
Lloh1:
	ldr	x19, [x19, _pjobs@GOTPAGEOFF]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
Lloh2:
	adrp	x20, _SIG_BLOCK@GOTPAGE
Lloh3:
	ldr	x20, [x20, _SIG_BLOCK@GOTPAGEOFF]
	ldr	w0, [x20]
	add	x2, sp, #4
	mov	x1, #0
	bl	_sigprocmask
Lloh4:
	adrp	x21, _SIGCHLD@GOTPAGE
Lloh5:
	ldr	x21, [x21, _SIGCHLD@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x0, sp, #4
	bl	_sigdelset
Lloh6:
	adrp	x8, _setintr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _setintr@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _SIGINT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x0, sp, #4
	bl	_sigdelset
LBB0_2:
	ldr	w0, [x20]
	add	x2, sp, #8
	mov	x1, #0
	bl	_sigprocmask
	ldr	w1, [x21]
	add	x0, sp, #8
	bl	_sigaddset
	ldr	w0, [x20]
	add	x1, sp, #8
	add	x2, sp, #12
	bl	_sigprocmask
	bl	_handle_pending_signals
Lloh12:
	adrp	x20, _proclist@GOTPAGE
Lloh13:
	ldr	x20, [x20, _proclist@GOTPAGEOFF]
Lloh14:
	adrp	x21, _PRUNNING@GOTPAGE
Lloh15:
	ldr	x21, [x21, _PRUNNING@GOTPAGEOFF]
Lloh16:
	adrp	x22, _pintr_disabled@GOTPAGE
Lloh17:
	ldr	x22, [x22, _pintr_disabled@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x21]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_9
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x8, #8]
	cbz	x10, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w10, [x8]
	tst	w9, w10
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #4
	bl	_sigsuspend
	ldr	w23, [x22]
	str	wzr, [x22]
	bl	_handle_pending_signals
	str	w23, [x22]
	cbz	w0, LBB0_3
LBB0_9:
	str	xzr, [x19]
Lloh18:
	adrp	x8, _SIG_SETMASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SIG_SETMASK@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	add	x1, sp, #12
	mov	x2, #0
	bl	_sigprocmask
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_pjobs,8,3                      ; @pjobs
	.comm	_SIG_BLOCK,4,2                  ; @SIG_BLOCK
	.comm	_SIGCHLD,4,2                    ; @SIGCHLD
	.comm	_setintr,8,3                    ; @setintr
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_proclist,8,3                   ; @proclist
	.comm	_PRUNNING,4,2                   ; @PRUNNING
	.comm	_pintr_disabled,4,2             ; @pintr_disabled
	.comm	_SIG_SETMASK,4,2                ; @SIG_SETMASK
.subsections_via_symbols
