	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Make_ProcessWait
_Make_ProcessWait:                      ## @Make_ProcessWait
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_Targ_NewGN
	movq	%rax, %rbx
	movq	_REMAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_OP_PHONY@GOTPCREL(%rip), %rax
	movq	_OP_DEPENDS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 4(%rbx)
	xorl	%eax, %eax
	callq	_Targ_List
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_Lst_AtFront
	movq	_link_parent@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movq	%rbx, %rdx
	callq	_Lst_ForEach
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_MakeBuildChild
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Lst_Init
	movl	%eax, %r15d
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_Lst_AtEnd
	movq	_DONE_WAIT@GOTPCREL(%rip), %r14
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
	movq	_MAKE@GOTPCREL(%rip), %r12
	movq	_OP_DOUBLEDEP@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r15d, %edi
	callq	_Lst_IsEmpty
	testl	%eax, %eax
	jne	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movl	%r15d, %edi
	callq	_Lst_DeQueue
	movq	%rax, %r13
	movl	(%rax), %eax
	movl	(%r14), %ecx
	testl	%eax, %ecx
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	orl	%eax, %ecx
	movl	%ecx, (%r13)
	movl	(%r12), %edi
	callq	_DEBUG
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_debug_file@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r13), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %eax
	testl	%eax, 4(%r13)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	20(%r13), %edi
	callq	_Lst_IsEmpty
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	20(%r13), %edi
	xorl	%esi, %esi
	callq	_Lst_Duplicate
	movl	%eax, %ebx
	movq	_LST_CONCLINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_Lst_Concat
	movl	%ebx, %r15d
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r13), %edi
	callq	_Lst_First
	movq	%rax, %r12
	movl	16(%r13), %edi
	callq	_Lst_Open
	movl	16(%r13), %edi
	callq	_Lst_Next
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=2
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_Lst_AtEnd
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=2
	movl	16(%r13), %edi
	callq	_Lst_Next
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_15
LBB0_11:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_Lst_Datum
	movq	_OP_WAIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	movl	16(%r13), %edi
	movq	_add_wait_dep@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r12, %rsi
	movq	%rax, %rcx
	callq	_Lst_ForEachFrom
	movq	%rbx, %r12
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	16(%r13), %edi
	callq	_Lst_Close
	jmp	LBB0_1
LBB0_16:
	movl	%r15d, %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Lst_Destroy                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".MAIN"

	.comm	_REMAKE,4,2                     ## @REMAKE
	.comm	_OP_PHONY,4,2                   ## @OP_PHONY
	.comm	_OP_DEPENDS,4,2                 ## @OP_DEPENDS
	.comm	_link_parent,4,2                ## @link_parent
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_DONE_WAIT,4,2                  ## @DONE_WAIT
	.comm	_MAKE,4,2                       ## @MAKE
	.comm	_debug_file,4,2                 ## @debug_file
L_.str.1:                               ## @.str.1
	.asciz	"Make_ProcessWait: examine %s\n"

	.comm	_OP_DOUBLEDEP,4,2               ## @OP_DOUBLEDEP
	.comm	_LST_CONCLINK,4,2               ## @LST_CONCLINK
	.comm	_OP_WAIT,4,2                    ## @OP_WAIT
	.comm	_add_wait_dep,4,2               ## @add_wait_dep
	.no_dead_strip	_Make_ProcessWait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Make_ProcessWait
_Make_ProcessWait:                      ; @Make_ProcessWait
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Targ_NewGN
	mov	x20, x0
Lloh2:
	adrp	x8, _REMAKE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REMAKE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0]
Lloh5:
	adrp	x8, _OP_PHONY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OP_PHONY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _OP_DEPENDS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _OP_DEPENDS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0, #4]
	bl	_Targ_List
	mov	x1, x20
	bl	_Lst_AtFront
Lloh11:
	adrp	x8, _link_parent@GOTPAGE
Lloh12:
	ldr	x8, [x8, _link_parent@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_Lst_ForEach
	mov	x0, x20
	mov	x1, #0
	bl	_MakeBuildChild
Lloh14:
	adrp	x8, _FALSE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_Lst_Init
	mov	x19, x0
	mov	x1, x20
	bl	_Lst_AtEnd
Lloh17:
	adrp	x24, _DONE_WAIT@GOTPAGE
Lloh18:
	ldr	x24, [x24, _DONE_WAIT@GOTPAGEOFF]
Lloh19:
	adrp	x25, _MAKE@GOTPAGE
Lloh20:
	ldr	x25, [x25, _MAKE@GOTPAGEOFF]
Lloh21:
	adrp	x26, _OP_DOUBLEDEP@GOTPAGE
Lloh22:
	ldr	x26, [x26, _OP_DOUBLEDEP@GOTPAGEOFF]
Lloh23:
	adrp	x27, _OP_WAIT@GOTPAGE
Lloh24:
	ldr	x27, [x27, _OP_WAIT@GOTPAGEOFF]
Lloh25:
	adrp	x28, _add_wait_dep@GOTPAGE
Lloh26:
	ldr	x28, [x28, _add_wait_dep@GOTPAGEOFF]
Lloh27:
	adrp	x20, l_.str.1@PAGE
Lloh28:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	mov	x0, x19
	bl	_Lst_IsEmpty
	cbnz	w0, LBB0_15
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_Lst_DeQueue
	ldr	w8, [x0]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x21, x0
	orr	w8, w9, w8
	str	w8, [x0]
	ldr	w0, [x25]
	bl	_DEBUG
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh29:
	adrp	x8, _debug_file@GOTPAGE
Lloh30:
	ldr	x8, [x8, _debug_file@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldr	x2, [x21, #8]
	mov	x1, x20
	bl	_fprintf
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x21, #4]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x21, #20]
	bl	_Lst_IsEmpty
	cbnz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x21, #20]
	mov	x1, #0
	bl	_Lst_Duplicate
	mov	x22, x0
Lloh32:
	adrp	x8, _LST_CONCLINK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _LST_CONCLINK@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_Lst_Concat
	mov	x19, x22
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x21, #16]
	bl	_Lst_First
	mov	x22, x0
	ldr	w0, [x21, #16]
	bl	_Lst_Open
	ldr	w0, [x21, #16]
	bl	_Lst_Next
	cbz	x0, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, x0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	mov	x0, x19
	mov	x1, x3
	bl	_Lst_AtEnd
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	ldr	w0, [x21, #16]
	bl	_Lst_Next
	mov	x23, x0
	cbz	x0, LBB0_14
LBB0_12:                                ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	bl	_Lst_Datum
	mov	x3, x0
	ldr	w8, [x0, #4]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	w0, [x21, #16]
	ldr	w2, [x28]
	mov	x1, x22
	bl	_Lst_ForEachFrom
	mov	x22, x23
	b	LBB0_11
LBB0_14:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x21, #16]
	bl	_Lst_Close
	b	LBB0_1
LBB0_15:
	mov	x0, x19
	mov	x1, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_Lst_Destroy
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".MAIN"

	.comm	_REMAKE,4,2                     ; @REMAKE
	.comm	_OP_PHONY,4,2                   ; @OP_PHONY
	.comm	_OP_DEPENDS,4,2                 ; @OP_DEPENDS
	.comm	_link_parent,4,2                ; @link_parent
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_DONE_WAIT,4,2                  ; @DONE_WAIT
	.comm	_MAKE,4,2                       ; @MAKE
	.comm	_debug_file,4,2                 ; @debug_file
l_.str.1:                               ; @.str.1
	.asciz	"Make_ProcessWait: examine %s\n"

	.comm	_OP_DOUBLEDEP,4,2               ; @OP_DOUBLEDEP
	.comm	_LST_CONCLINK,4,2               ; @LST_CONCLINK
	.comm	_OP_WAIT,4,2                    ; @OP_WAIT
	.comm	_add_wait_dep,4,2               ; @add_wait_dep
	.no_dead_strip	_Make_ProcessWait
.subsections_via_symbols
