	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_finish_command                 ## -- Begin function finish_command
	.p2align	4, 0x90
_finish_command:                        ## @finish_command
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	movq	_JF_SLEEPQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r14d, %r14d
	testl	%eax, %ecx
	je	LBB0_18
## %bb.1:
	movq	%rdi, %rbx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rdi)
	movq	8(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	_IP_STOP_TIMEOUT@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rcx
	jne	LBB0_3
## %bb.2:
	movq	_JF_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	$0, 16(%rbx)
	jmp	LBB0_18
LBB0_3:
	movq	_paralimit@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_runnable@GOTPCREL(%rip), %rdi
	callq	_TAILQ_EMPTY
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_runnable@GOTPCREL(%rip), %rdi
	callq	_TAILQ_FIRST
	movq	_JF_FROM_RUNQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
	movq	_ready@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	callq	_requeue
LBB0_5:
	movl	(%rbx), %eax
	movq	_JF_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_10
## %bb.6:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.8:
	movq	_verbose@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpq	$0, (%rax)
	jle	LBB0_17
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_jail_note
	jmp	LBB0_17
LBB0_10:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.12:
	callq	_WIFSIGNALED
	movq	24(%rbx), %r14
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	16(%rbx), %rdi
	callq	_WTERMSIG
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_jail_warnx
	jmp	LBB0_15
LBB0_7:
	movq	24(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_jail_warnx
	jmp	LBB0_16
LBB0_11:
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_14:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_jail_warnx
LBB0_15:
	movq	$0, 16(%rbx)
LBB0_16:
	movq	%rbx, %rdi
	callq	_failed
	movl	$-1, %r14d
LBB0_17:
	movq	24(%rbx), %rdi
	callq	_free
	movq	$0, 24(%rbx)
LBB0_18:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JF_SLEEPQ,4,2                  ## @JF_SLEEPQ
	.comm	_IP_STOP_TIMEOUT,8,3            ## @IP_STOP_TIMEOUT
	.comm	_JF_TIMEOUT,4,2                 ## @JF_TIMEOUT
	.comm	_paralimit,4,2                  ## @paralimit
	.comm	_runnable,4,2                   ## @runnable
	.comm	_JF_FROM_RUNQ,4,2               ## @JF_FROM_RUNQ
	.comm	_ready,4,2                      ## @ready
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: timed out"

	.comm	_verbose,8,3                    ## @verbose
L_.str.1:                               ## @.str.1
	.asciz	"timed out\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: exited on signal %d"

L_.str.3:                               ## @.str.3
	.asciz	"%s: failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_finish_command                 ; -- Begin function finish_command
	.p2align	2
_finish_command:                        ; @finish_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _JF_SLEEPQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _JF_SLEEPQ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
	bic	w8, w8, w9
	str	w8, [x0]
	ldr	x9, [x0, #8]
	ldr	x9, [x9]
Lloh3:
	adrp	x20, _IP_STOP_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x20, [x20, _IP_STOP_TIMEOUT@GOTPAGEOFF]
	ldr	x10, [x20]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.2:
	mov	w20, #0
Lloh5:
	adrp	x9, _JF_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _JF_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x19]
	str	xzr, [x19, #16]
	b	LBB0_19
LBB0_3:
	mov	w20, #0
	b	LBB0_19
LBB0_4:
Lloh8:
	adrp	x8, _paralimit@GOTPAGE
Lloh9:
	ldr	x8, [x8, _paralimit@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh10:
	adrp	x0, _runnable@GOTPAGE
Lloh11:
	ldr	x0, [x0, _runnable@GOTPAGEOFF]
	bl	_TAILQ_EMPTY
	cbnz	w0, LBB0_6
; %bb.5:
Lloh12:
	adrp	x0, _runnable@GOTPAGE
Lloh13:
	ldr	x0, [x0, _runnable@GOTPAGEOFF]
	bl	_TAILQ_FIRST
Lloh14:
	adrp	x8, _JF_FROM_RUNQ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _JF_FROM_RUNQ@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
Lloh17:
	adrp	x1, _ready@GOTPAGE
Lloh18:
	ldr	x1, [x1, _ready@GOTPAGEOFF]
	bl	_requeue
LBB0_6:
	ldr	w8, [x19]
Lloh19:
	adrp	x9, _JF_TIMEOUT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _JF_TIMEOUT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.7:
	bic	w8, w8, w9
	str	w8, [x19]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.8:
Lloh22:
	adrp	x8, _verbose@GOTPAGE
Lloh23:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_14
; %bb.9:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_jail_note
	mov	w20, #0
	b	LBB0_18
LBB0_10:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_14
; %bb.11:
	bl	_WIFSIGNALED
	ldr	x20, [x19, #24]
	cbz	x0, LBB0_15
; %bb.12:
	ldr	x0, [x19, #16]
	bl	_WTERMSIG
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_13:
	ldr	x2, [x19, #24]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_jail_warnx
	b	LBB0_17
LBB0_14:
	mov	w20, #0
	b	LBB0_18
LBB0_15:
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_16:
	mov	x0, x19
	mov	x2, x20
	bl	_jail_warnx
	str	xzr, [x19, #16]
LBB0_17:
	mov	x0, x19
	bl	_failed
	mov	w20, #-1
LBB0_18:
	ldr	x0, [x19, #24]
	bl	_free
	str	xzr, [x19, #24]
LBB0_19:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_JF_SLEEPQ,4,2                  ; @JF_SLEEPQ
	.comm	_IP_STOP_TIMEOUT,8,3            ; @IP_STOP_TIMEOUT
	.comm	_JF_TIMEOUT,4,2                 ; @JF_TIMEOUT
	.comm	_paralimit,4,2                  ; @paralimit
	.comm	_runnable,4,2                   ; @runnable
	.comm	_JF_FROM_RUNQ,4,2               ; @JF_FROM_RUNQ
	.comm	_ready,4,2                      ; @ready
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: timed out"

	.comm	_verbose,8,3                    ; @verbose
l_.str.1:                               ; @.str.1
	.asciz	"timed out\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: exited on signal %d"

l_.str.3:                               ; @.str.3
	.asciz	"%s: failed"

.subsections_via_symbols
