	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_worker_run                     ## -- Begin function worker_run
	.p2align	4, 0x90
_worker_run:                            ## @worker_run
	.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, %r14
	leaq	8(%rdi), %rbx
	leaq	24(%rdi), %r15
	leaq	16(%rdi), %r12
	movq	_WORKER_BUSY@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_compute_chunk
	movq	%rbx, %rdi
	callq	_mtx_lock
	movq	_WORKER_DONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	%rbx, %rdi
	callq	_mtx_unlock
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%rbx, %rdi
	callq	_mtx_lock
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rax
	cmpq	(%r13), %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_cnd_wait
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_mtx_unlock
	cmpq	$0, (%r12)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_load_chunk
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_WORKER_BUSY,8,3                ## @WORKER_BUSY
	.comm	_WORKER_DONE,8,3                ## @WORKER_DONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_worker_run                     ; -- Begin function worker_run
	.p2align	2
_worker_run:                            ; @worker_run
	.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
	mov	x19, x0
	add	x20, x0, #8
	add	x21, x0, #24
	add	x22, x0, #16
Lloh0:
	adrp	x23, _WORKER_BUSY@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WORKER_BUSY@GOTPAGEOFF]
Lloh2:
	adrp	x24, _WORKER_DONE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _WORKER_DONE@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_compute_chunk
	mov	x0, x20
	bl	_mtx_lock
	ldr	x8, [x24]
	str	x8, [x19]
	mov	x0, x20
	bl	_mtx_unlock
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	x0, x20
	bl	_mtx_lock
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	mov	x0, x21
	mov	x1, x20
	bl	_cnd_wait
	b	LBB0_3
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_mtx_unlock
	ldr	x8, [x22]
	cbz	x8, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_load_chunk
	b	LBB0_1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WORKER_BUSY,8,3                ; @WORKER_BUSY
	.comm	_WORKER_DONE,8,3                ; @WORKER_DONE
.subsections_via_symbols
