	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function work_func
_work_func:                             ## @work_func
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	xorl	%edi, %edi
	callq	_time
	movl	%eax, -52(%rbp)
	leaq	-52(%rbp), %rdi
	callq	_localtime
	movl	%eax, %edi
	callq	_asctime
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_hb_log
	movq	24(%r13), %rdi
	callq	_hb_list_count
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_hb_log
	movq	(%r13), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
LBB0_16:
	xorl	%edi, %edi
	callq	_time
	movl	%eax, -52(%rbp)
	leaq	-52(%rbp), %rdi
	callq	_localtime
	movl	%eax, %edi
	callq	_asctime
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_hb_log
	movq	%r13, %rdi
	callq	_free
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	-48(%rbp), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi
	callq	_SetWorkStateInfo
	movq	8(%r13), %rax
	movq	$0, (%rax)
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	-64(%rbp), %rdi
	callq	_hb_list_close
	movq	%r15, %rdi
	callq	_hb_force_rescan
	movq	(%r13), %rax
	cmpl	$0, (%rax)
	jne	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movq	24(%r13), %rdi
	xorl	%esi, %esi
	callq	_hb_list_item
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rax), %r15
	movq	24(%r13), %rdi
	movq	%rax, %rsi
	callq	_hb_list_rem
	xorl	%eax, %eax
	callq	_hb_list_init
	movq	%rax, -64(%rbp)
	movq	-48(%rbp), %rbx
	movq	32(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_hb_deep_log
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_InitWorkState
	movq	-48(%rbp), %rax
	movq	16(%rax), %rdi
	movq	32(%rax), %rsi
	callq	_hb_json_job_scan
	movq	-48(%rbp), %rax
	movq	16(%rax), %rdi
	movq	32(%rax), %rsi
	callq	_hb_json_to_job
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	-48(%rbp), %rax
	movq	16(%rax), %rcx
	movq	%rcx, 16(%rbx)
	movl	24(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%r14, %rdi
	callq	_hb_job_close
	movq	%rbx, -48(%rbp)
	movq	-64(%rbp), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_hb_job_setup_passes
	movq	%r14, %rdi
	callq	_hb_job_close
	movq	-64(%rbp), %rdi
	callq	_hb_list_count
	testl	%eax, %eax
	jle	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r12d
	movq	%r15, %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13), %rax
	cmpl	$0, (%rax)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	-64(%rbp), %rdi
	movl	%r15d, %esi
	callq	_hb_list_item
	movq	%rax, -48(%rbp)
	movq	(%r13), %rcx
	movq	%rcx, (%rax)
	movq	16(%r13), %rax
	movq	-48(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movq	8(%r13), %rax
	movq	%rcx, (%rax)
	movq	-48(%rbp), %rdi
	incl	%r15d
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_InitWorkState
	movq	-48(%rbp), %rdi
	callq	_do_job
	cmpl	%r15d, %r12d
	jne	LBB0_9
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi
	callq	_SetWorkStateInfo
	movq	8(%r13), %rax
	movq	$0, (%rax)
	testl	%r12d, %r12d
	movq	%rbx, %r15
	jle	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-64(%rbp), %rdi
	movl	%ebx, %esi
	callq	_hb_list_item
	movq	%rax, -48(%rbp)
	movq	%r14, %rdi
	callq	_hb_job_close
	incl	%ebx
	cmpl	%ebx, %r12d
	jne	LBB0_13
	jmp	LBB0_15
LBB0_5:
	leaq	-48(%rbp), %rdi
	callq	_hb_job_close
	leaq	-64(%rbp), %rdi
	callq	_hb_list_close
	movq	_HB_ERROR_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r13), %rcx
	movl	%eax, (%rcx)
	movq	(%r13), %rax
	movl	$1, (%rax)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Starting work at: %s"

L_.str.1:                               ## @.str.1
	.asciz	"%d job(s) to process"

L_.str.2:                               ## @.str.2
	.asciz	"json job:\n%s"

	.comm	_HB_ERROR_INIT,4,2              ## @HB_ERROR_INIT
L_.str.3:                               ## @.str.3
	.asciz	"Finished work at: %s"

	.no_dead_strip	_work_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function work_func
_work_func:                             ; @work_func
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x0, #0
	bl	_time
	str	w0, [sp, #20]
	add	x0, sp, #20
	bl	_localtime
	bl	_asctime
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_log
	ldr	x0, [x19, #24]
	bl	_hb_list_count
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_hb_log
	ldr	x8, [x19]
	ldr	w8, [x8]
	cbz	w8, LBB0_2
LBB0_1:
	mov	x0, #0
	bl	_time
	str	w0, [sp, #20]
	add	x0, sp, #20
	bl	_localtime
	bl	_asctime
	mov	x1, x0
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_hb_log
	mov	x0, x19
	bl	_free
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
Lloh6:
	adrp	x20, l_.str.2@PAGE
Lloh7:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #24]
	bl	_SetWorkStateInfo
	ldr	x8, [x19, #8]
	str	xzr, [x8]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	bl	_hb_list_close
	mov	x0, x21
	bl	_hb_force_rescan
	ldr	x8, [x19]
	ldr	w8, [x8]
	cbnz	w8, LBB0_1
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	ldr	x0, [x19, #24]
	mov	w1, #0
	bl	_hb_list_item
	str	x0, [sp, #24]
	cbz	x0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x0
	ldr	x21, [x0, #16]
	ldr	x0, [x19, #24]
	bl	_hb_list_rem
	bl	_hb_list_init
	str	x0, [sp, #8]
	ldr	x22, [sp, #24]
	ldr	x2, [x22, #32]
	cbz	x2, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
	mov	x1, x20
	bl	_hb_deep_log
	ldr	x0, [sp, #24]
	mov	w1, #0
	mov	w2, #0
	bl	_InitWorkState
	ldr	x8, [sp, #24]
	ldr	x0, [x8, #16]
	ldr	x1, [x8, #32]
	bl	_hb_json_job_scan
	ldr	x8, [sp, #24]
	ldr	x0, [x8, #16]
	ldr	x1, [x8, #32]
	bl	_hb_json_to_job
	cbz	x0, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x0
	ldr	x8, [sp, #24]
	ldr	x9, [x8, #16]
	str	x9, [x0, #16]
	ldr	w8, [x8, #24]
	str	w8, [x0, #24]
	add	x0, sp, #24
	bl	_hb_job_close
	str	x22, [sp, #24]
	ldr	x8, [sp, #8]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, x0
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x22, #16]
	mov	x1, x22
	mov	x2, x8
	bl	_hb_job_setup_passes
	add	x0, sp, #24
	bl	_hb_job_close
	ldr	x0, [sp, #8]
	bl	_hb_list_count
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x0
	mov	w23, #0
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19]
	ldr	w8, [x8]
	cbnz	w8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x0, [sp, #8]
	mov	x1, x23
	bl	_hb_list_item
	str	x0, [sp, #24]
	ldr	x8, [x19]
	str	x8, [x0]
	ldr	x8, [x19, #16]
	ldr	x9, [sp, #24]
	str	x8, [x9, #8]
	ldr	x8, [x19, #8]
	str	x9, [x8]
	ldr	x0, [sp, #24]
	add	w23, w23, #1
	mov	x1, x23
	mov	x2, x22
	bl	_InitWorkState
	ldr	x0, [sp, #24]
	bl	_do_job
	cmp	w22, w23
	b.ne	LBB0_12
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #24]
	bl	_SetWorkStateInfo
	ldr	x8, [x19, #8]
	str	xzr, [x8]
	cmp	w22, #1
	b.lt	LBB0_4
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w23, #0
LBB0_16:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [sp, #8]
	mov	x1, x23
	bl	_hb_list_item
	str	x0, [sp, #24]
	add	x0, sp, #24
	bl	_hb_job_close
	add	w23, w23, #1
	cmp	w22, w23
	b.ne	LBB0_16
	b	LBB0_4
LBB0_17:
	add	x0, sp, #24
	bl	_hb_job_close
	add	x0, sp, #8
	bl	_hb_list_close
Lloh8:
	adrp	x8, _HB_ERROR_INIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HB_ERROR_INIT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	str	w8, [x9]
	ldr	x8, [x19]
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Starting work at: %s"

l_.str.1:                               ; @.str.1
	.asciz	"%d job(s) to process"

l_.str.2:                               ; @.str.2
	.asciz	"json job:\n%s"

	.comm	_HB_ERROR_INIT,4,2              ; @HB_ERROR_INIT
l_.str.3:                               ; @.str.3
	.asciz	"Finished work at: %s"

	.no_dead_strip	_work_func
.subsections_via_symbols
