	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tpool_worker
_tpool_worker:                          ## @tpool_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	addq	$32, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_pthread_mutex_lock
	movq	_worker_cleanup@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_pthread_cleanup_push
	xorl	%eax, %eax
	callq	_pthread_self
	movl	%eax, -88(%rbp)
	leaq	72(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_TP_ABANDON@GOTPCREL(%rip), %r12
	movq	_TP_SUSPEND@GOTPCREL(%rip), %r14
	movq	%rbx, %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	incl	76(%rbx)
	movq	_TP_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_notify_waiters
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_TP_DESTROY@GOTPCREL(%rip), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_pthread_cond_wait
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, 64(%rbx)
	movl	(%rbx), %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	testl	%eax, (%r14)
	je	LBB0_13
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	movl	(%r12), %ecx
	orl	(%r13), %ecx
	testl	%eax, %ecx
	jne	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	8(%rbx), %rax
	cmpq	16(%rbx), %rax
	jle	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	_CLOCK_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %r13
	movq	%r14, %r15
	movq	%r12, %r14
	leaq	-64(%rbp), %r12
	movq	%r12, %rsi
	callq	_clock_gettime
	movl	24(%rbx), %eax
	addl	%eax, -64(%rbp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	%r14, %r12
	movq	%r15, %r14
	movq	%r13, %r15
	movq	_TP_DESTROY@GOTPCREL(%rip), %r13
	callq	_pthread_cond_timedwait
	testq	%rax, %rax
	je	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %eax
	xorl	%edx, %edx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movb	$1, %dl
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	decl	76(%rbx)
	testl	%eax, (%r13)
	jne	LBB0_27
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, (%r12)
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %ecx
	testl	%eax, %ecx
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%edx, %r13d
	callq	_pthread_cond_broadcast
	movl	%r13d, %edx
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	64(%rbx), %r13
	testq	%r13, %r13
	je	LBB0_27
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %eax
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	64(%rbx), %r13
	testq	%r13, %r13
	je	LBB0_22
LBB0_21:                                ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, (%r14)
	je	LBB0_24
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	testb	%dl, %dl
	jne	LBB0_1
## %bb.23:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rbx), %rax
	cmpq	16(%rbx), %rax
	jle	LBB0_1
	jmp	LBB0_27
LBB0_24:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rax
	movq	16(%r13), %r15
	movq	%rax, 64(%rbx)
	cmpq	56(%rbx), %r13
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	$0, 56(%rbx)
LBB0_26:                                ##   in Loop: Header=BB0_1 Depth=1
	decl	48(%rbx)
	movq	40(%rbx), %rax
	movq	%rax, -96(%rbp)
	leaq	-96(%rbp), %rax
	movq	%rax, 40(%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pthread_mutex_unlock
	movq	_job_cleanup@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_pthread_cleanup_push
	movq	%r13, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	*-72(%rbp)                      ## 8-byte Folded Reload
	movq	%r15, %r13
	leaq	-76(%rbp), %r15
	movq	%r15, %rdi
	callq	_sigfillset
	movq	_SIG_SETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movq	%r13, %r15
	xorl	%edx, %edx
	callq	_pthread_sigmask
	movq	_PTHREAD_CANCEL_DEFERRED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_pthread_setcanceltype
	movq	_PTHREAD_CANCEL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_pthread_setcancelstate
	movl	$1, %edi
	callq	_pthread_cleanup_pop
	jmp	LBB0_1
LBB0_27:
	movl	$1, %edi
	callq	_pthread_cleanup_pop
	movq	%r15, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_worker_cleanup,4,2             ## @worker_cleanup
	.comm	_TP_WAIT,4,2                    ## @TP_WAIT
	.comm	_TP_SUSPEND,4,2                 ## @TP_SUSPEND
	.comm	_TP_DESTROY,4,2                 ## @TP_DESTROY
	.comm	_TP_ABANDON,4,2                 ## @TP_ABANDON
	.comm	_CLOCK_MONOTONIC,4,2            ## @CLOCK_MONOTONIC
	.comm	_job_cleanup,4,2                ## @job_cleanup
	.comm	_SIG_SETMASK,4,2                ## @SIG_SETMASK
	.comm	_PTHREAD_CANCEL_DEFERRED,4,2    ## @PTHREAD_CANCEL_DEFERRED
	.comm	_PTHREAD_CANCEL_ENABLE,4,2      ## @PTHREAD_CANCEL_ENABLE
	.no_dead_strip	_tpool_worker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tpool_worker
_tpool_worker:                          ; @tpool_worker
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	add	x20, x0, #32
	mov	x0, x20
	bl	_pthread_mutex_lock
Lloh0:
	adrp	x8, _worker_cleanup@GOTPAGE
Lloh1:
	ldr	x8, [x8, _worker_cleanup@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_pthread_cleanup_push
	bl	_pthread_self
	str	w0, [sp, #24]
	add	x21, x19, #72
Lloh3:
	adrp	x25, _TP_DESTROY@GOTPAGE
Lloh4:
	ldr	x25, [x25, _TP_DESTROY@GOTPAGEOFF]
Lloh5:
	adrp	x26, _TP_ABANDON@GOTPAGE
Lloh6:
	ldr	x26, [x26, _TP_ABANDON@GOTPAGEOFF]
Lloh7:
	adrp	x27, _CLOCK_MONOTONIC@GOTPAGE
Lloh8:
	ldr	x27, [x27, _CLOCK_MONOTONIC@GOTPAGEOFF]
Lloh9:
	adrp	x28, _TP_SUSPEND@GOTPAGE
Lloh10:
	ldr	x28, [x28, _TP_SUSPEND@GOTPAGEOFF]
	mov	x11, x19
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
                                        ;       Child Loop BB0_5 Depth 3
	mov	x24, x11
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_5 Depth 3
	ldr	w8, [x19, #76]
	add	w8, w8, #1
	str	w8, [x19, #76]
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _TP_WAIT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TP_WAIT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x0, x19
	bl	_notify_waiters
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=2
	mov	x11, x24
LBB0_5:                                 ;   Parent Loop BB0_1 Depth=1
                                        ;     Parent Loop BB0_2 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x9, [x19, #64]
	ldr	w8, [x19]
	cbz	x9, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=3
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_13
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=3
	ldr	w9, [x25]
	ldr	w10, [x26]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=3
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.le	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=3
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=3
	ldr	w0, [x27]
	add	x1, sp, #8
	bl	_clock_gettime
	ldr	w8, [x19, #24]
	ldr	w9, [sp, #8]
	add	w8, w9, w8
	str	w8, [sp, #8]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_pthread_cond_timedwait
	mov	x11, x24
	cbz	x0, LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=2
	mov	w22, #0
	ldr	w8, [x19]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x0, x21
	mov	x1, x20
	bl	_pthread_cond_wait
	b	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	w22, #1
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=2
	ldr	w9, [x19, #76]
	sub	w9, w9, #1
	str	w9, [x19, #76]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_27
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=2
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=2
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=2
	bic	w8, w8, w9
	str	w8, [x19]
	mov	x0, x21
	bl	_pthread_cond_broadcast
	mov	x11, x24
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=2
	ldr	x23, [x19, #64]
	cbz	x23, LBB0_27
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=2
	ldr	w8, [x19]
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_2 Depth=2
	ldr	x23, [x19, #64]
	cbz	x23, LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_2 Depth=2
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_2 Depth=2
	tbnz	w22, #0, LBB0_2
; %bb.23:                               ;   in Loop: Header=BB0_2 Depth=2
	ldp	x8, x9, [x19, #8]
	cmp	x8, x9
	b.le	LBB0_2
	b	LBB0_27
LBB0_24:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	x8, x24, [x23, #8]
	ldr	x22, [x23]
	str	x8, [x19, #64]
	ldr	x8, [x19, #56]
	cmp	x23, x8
	b.ne	LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_1 Depth=1
	str	xzr, [x19, #56]
LBB0_26:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19, #48]
	sub	w8, w8, #1
	str	w8, [x19, #48]
	ldr	x8, [x19, #40]
	str	x8, [sp, #16]
	add	x8, sp, #16
	str	x8, [x19, #40]
	mov	x0, x20
	bl	_pthread_mutex_unlock
Lloh14:
	adrp	x8, _job_cleanup@GOTPAGE
Lloh15:
	ldr	x8, [x8, _job_cleanup@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_pthread_cleanup_push
	mov	x0, x23
	bl	_free
	mov	x0, x24
	blr	x22
	add	x0, sp, #12
	bl	_sigfillset
Lloh17:
	adrp	x8, _SIG_SETMASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SIG_SETMASK@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	add	x1, sp, #12
	mov	x2, #0
	bl	_pthread_sigmask
Lloh20:
	adrp	x8, _PTHREAD_CANCEL_DEFERRED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PTHREAD_CANCEL_DEFERRED@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_pthread_setcanceltype
Lloh23:
	adrp	x8, _PTHREAD_CANCEL_ENABLE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PTHREAD_CANCEL_ENABLE@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_pthread_setcancelstate
	mov	w0, #1
	bl	_pthread_cleanup_pop
	mov	x11, x24
	b	LBB0_1
LBB0_27:
	mov	w0, #1
	mov	x19, x11
	bl	_pthread_cleanup_pop
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_worker_cleanup,4,2             ; @worker_cleanup
	.comm	_TP_WAIT,4,2                    ; @TP_WAIT
	.comm	_TP_SUSPEND,4,2                 ; @TP_SUSPEND
	.comm	_TP_DESTROY,4,2                 ; @TP_DESTROY
	.comm	_TP_ABANDON,4,2                 ; @TP_ABANDON
	.comm	_CLOCK_MONOTONIC,4,2            ; @CLOCK_MONOTONIC
	.comm	_job_cleanup,4,2                ; @job_cleanup
	.comm	_SIG_SETMASK,4,2                ; @SIG_SETMASK
	.comm	_PTHREAD_CANCEL_DEFERRED,4,2    ; @PTHREAD_CANCEL_DEFERRED
	.comm	_PTHREAD_CANCEL_ENABLE,4,2      ; @PTHREAD_CANCEL_ENABLE
	.no_dead_strip	_tpool_worker
.subsections_via_symbols
