	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Monitor
_Monitor:                               ## @Monitor
	.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
	movq	%rdi, %rbx
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	callq	_FD_ZERO
	movq	8(%rbx), %rdi
	movq	%r14, %rsi
	callq	_FD_SET
	movq	_sem_select@GOTPCREL(%rip), %rdi
	callq	_sem_wait
	movq	_timetogo@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	je	LBB0_1
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	-44(%rbp), %r14
	movq	_SIGUSR1@GOTPCREL(%rip), %r13
	movq	_sem_select@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%r12)
	jne	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	incq	%rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_select
	testl	%eax, %eax
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	movl	(%r13), %esi
	callq	_pthread_kill
	movq	%r15, %rdi
	callq	_sem_wait
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_sem_select,4,2                 ## @sem_select
	.comm	_timetogo,4,2                   ## @timetogo
	.comm	_SIGUSR1,4,2                    ## @SIGUSR1
	.no_dead_strip	_Monitor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Monitor
_Monitor:                               ; @Monitor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	add	x0, sp, #12
	bl	_FD_ZERO
	ldr	x0, [x19, #8]
	add	x1, sp, #12
	bl	_FD_SET
Lloh0:
	adrp	x0, _sem_select@GOTPAGE
Lloh1:
	ldr	x0, [x0, _sem_select@GOTPAGEOFF]
	bl	_sem_wait
Lloh2:
	adrp	x21, _timetogo@GOTPAGE
Lloh3:
	ldr	x21, [x21, _timetogo@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_2
LBB0_1:
	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
	add	sp, sp, #64
	ret
LBB0_2:
Lloh4:
	adrp	x22, _SIGUSR1@GOTPAGE
Lloh5:
	ldr	x22, [x22, _SIGUSR1@GOTPAGEOFF]
Lloh6:
	adrp	x20, _sem_select@GOTPAGE
Lloh7:
	ldr	x20, [x20, _sem_select@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	cbnz	w8, LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, #1
	add	x1, sp, #12
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	bl	_select
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19]
	ldr	w1, [x22]
	bl	_pthread_kill
	mov	x0, x20
	bl	_sem_wait
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_sem_select,4,2                 ; @sem_select
	.comm	_timetogo,4,2                   ; @timetogo
	.comm	_SIGUSR1,4,2                    ; @SIGUSR1
	.no_dead_strip	_Monitor
.subsections_via_symbols
