	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function worker
_worker:                                ## @worker
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_closermtx@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_lock
	movq	_quit@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_8
## %bb.1:
	movq	_closermtx@GOTPCREL(%rip), %r15
	leaq	-176(%rbp), %rbx
	movq	_riseandwhine@GOTPCREL(%rip), %r12
	movq	_closercv@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_pthread_mutex_unlock
	xorl	%eax, %eax
	callq	_rump_sys_getpid
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	leaq	L_.str(%rip), %rsi
	callq	_err
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	$128, -184(%rbp)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$128, %edx
	callq	_memset
	movq	_hostnamemib@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r13d, %edi
	callq	___arraycount
	movl	%r13d, %edi
	movl	%eax, %esi
	movq	%rbx, %rdx
	leaq	-184(%rbp), %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_rump_sys___sysctl
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_err
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_goodhostname@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_pthread_mutex_lock
	movl	$1, (%r12)
	movq	%r14, %rdi
	callq	_pthread_cond_signal
	movq	_quit@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
LBB0_8:
	movq	_riseandwhine@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_closercv@GOTPCREL(%rip), %rdi
	callq	_pthread_cond_signal
	movq	_closermtx@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_unlock
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.9:
	xorl	%eax, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	$1, %edi
	callq	_exit
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_closermtx,4,2                  ## @closermtx
	.comm	_quit,4,2                       ## @quit
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getpid"

	.comm	_hostnamemib,4,2                ## @hostnamemib
L_.str.1:                               ## @.str.1
	.asciz	"sysctl"

	.comm	_goodhostname,4,2               ## @goodhostname
	.comm	_riseandwhine,4,2               ## @riseandwhine
	.comm	_closercv,4,2                   ## @closercv
	.no_dead_strip	_worker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function worker
_worker:                                ; @worker
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x0, _closermtx@GOTPAGE
Lloh4:
	ldr	x0, [x0, _closermtx@GOTPAGEOFF]
	bl	_pthread_mutex_lock
Lloh5:
	adrp	x25, _quit@GOTPAGE
Lloh6:
	ldr	x25, [x25, _quit@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh7:
	adrp	x24, _riseandwhine@GOTPAGE
Lloh8:
	ldr	x24, [x24, _riseandwhine@GOTPAGEOFF]
	cbnz	w8, LBB0_8
; %bb.1:
Lloh9:
	adrp	x19, _closermtx@GOTPAGE
Lloh10:
	ldr	x19, [x19, _closermtx@GOTPAGEOFF]
	mov	w26, #1
	mov	w27, #128
Lloh11:
	adrp	x28, _hostnamemib@GOTPAGE
Lloh12:
	ldr	x28, [x28, _hostnamemib@GOTPAGEOFF]
Lloh13:
	adrp	x20, _goodhostname@GOTPAGE
Lloh14:
	ldr	x20, [x20, _goodhostname@GOTPAGEOFF]
Lloh15:
	adrp	x21, _closercv@GOTPAGE
Lloh16:
	ldr	x21, [x21, _closercv@GOTPAGEOFF]
Lloh17:
	adrp	x22, l_.str.1@PAGE
Lloh18:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_pthread_mutex_unlock
	bl	_rump_sys_getpid
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_err
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	x27, [sp]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #128
	bl	_memset
	ldr	w23, [x28]
	mov	x0, x23
	bl	___arraycount
	mov	x1, x0
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x23
	mov	x4, #0
	mov	w5, #0
	bl	_rump_sys___sysctl
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	mov	x1, x22
	bl	_err
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x20]
	add	x0, sp, #8
	bl	_strcmp
	cbnz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_pthread_mutex_lock
	str	w26, [x24]
	mov	x0, x21
	bl	_pthread_cond_signal
	ldr	w8, [x25]
	cbz	w8, LBB0_2
LBB0_8:
	mov	w8, #1
	str	w8, [x24]
Lloh21:
	adrp	x0, _closercv@GOTPAGE
Lloh22:
	ldr	x0, [x0, _closercv@GOTPAGEOFF]
	bl	_pthread_cond_signal
Lloh23:
	adrp	x0, _closermtx@GOTPAGE
Lloh24:
	ldr	x0, [x0, _closermtx@GOTPAGEOFF]
	bl	_pthread_mutex_unlock
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.9:
	mov	x0, #0
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_10:
	mov	w0, #1
	bl	_exit
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_closermtx,4,2                  ; @closermtx
	.comm	_quit,4,2                       ; @quit
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getpid"

	.comm	_hostnamemib,4,2                ; @hostnamemib
l_.str.1:                               ; @.str.1
	.asciz	"sysctl"

	.comm	_goodhostname,4,2               ; @goodhostname
	.comm	_riseandwhine,4,2               ; @riseandwhine
	.comm	_closercv,4,2                   ; @closercv
	.no_dead_strip	_worker
.subsections_via_symbols
