	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function closer
_closer:                                ## @closer
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_closermtx@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_lock
	movq	_quit@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jne	LBB0_5
## %bb.1:
	movq	_riseandwhine@GOTPCREL(%rip), %r12
	movq	_closercv@GOTPCREL(%rip), %r14
	movq	_closermtx@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pthread_cond_wait
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r12)
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, (%r12)
	movq	%rbx, %rdi
	callq	_pthread_mutex_unlock
	xorl	%eax, %eax
	callq	_random
	movslq	%eax, %rdi
	imulq	$351843721, %rdi, %rax          ## imm = 0x14F8B589
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$45, %rax
	addl	%ecx, %eax
	imull	$100000, %eax, %eax             ## imm = 0x186A0
	subl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_usleep
	movl	$3, %edi
	callq	_closefrom
	movq	%rbx, %rdi
	callq	_pthread_mutex_lock
	cmpl	$0, (%r15)
	je	LBB0_3
LBB0_5:
	movq	_closermtx@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_closermtx,4,2                  ## @closermtx
	.comm	_quit,4,2                       ## @quit
	.comm	_riseandwhine,8,3               ## @riseandwhine
	.comm	_closercv,4,2                   ## @closercv
	.no_dead_strip	_closer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function closer
_closer:                                ; @closer
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x0, _closermtx@GOTPAGE
Lloh1:
	ldr	x0, [x0, _closermtx@GOTPAGEOFF]
	bl	_pthread_mutex_lock
Lloh2:
	adrp	x21, _quit@GOTPAGE
Lloh3:
	ldr	x21, [x21, _quit@GOTPAGEOFF]
	ldr	w8, [x21]
	cbnz	w8, LBB0_5
; %bb.1:
Lloh4:
	adrp	x22, _riseandwhine@GOTPAGE
Lloh5:
	ldr	x22, [x22, _riseandwhine@GOTPAGEOFF]
Lloh6:
	adrp	x19, _closercv@GOTPAGE
Lloh7:
	ldr	x19, [x19, _closercv@GOTPAGEOFF]
	mov	w23, #46473
	movk	w23, #5368, lsl #16
	mov	w24, #34464
	movk	w24, #1, lsl #16
Lloh8:
	adrp	x20, _closermtx@GOTPAGE
Lloh9:
	ldr	x20, [x20, _closermtx@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_pthread_cond_wait
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x22]
	mov	x0, x20
	bl	_pthread_mutex_unlock
	bl	_random
	smull	x8, w0, w23
	lsr	x9, x8, #63
	asr	x8, x8, #45
	add	w8, w8, w9
	msub	w0, w8, w24, w0
	bl	_usleep
	mov	w0, #3
	bl	_closefrom
	mov	x0, x20
	bl	_pthread_mutex_lock
	ldr	w8, [x21]
	cbz	w8, LBB0_3
LBB0_5:
Lloh10:
	adrp	x0, _closermtx@GOTPAGE
Lloh11:
	ldr	x0, [x0, _closermtx@GOTPAGEOFF]
	bl	_pthread_mutex_unlock
	mov	x0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_closermtx,4,2                  ; @closermtx
	.comm	_quit,4,2                       ; @quit
	.comm	_riseandwhine,8,3               ; @riseandwhine
	.comm	_closercv,4,2                   ; @closercv
	.no_dead_strip	_closer
.subsections_via_symbols
