	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_json_job_scan               ## -- Begin function hb_json_job_scan
	.p2align	4, 0x90
_hb_json_job_scan:                      ## @hb_json_job_scan
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_hb_value_json
	movq	%rax, %rbx
	movq	%rax, -64(%rbp)
	movq	$0, -56(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_unpack_s
	movl	%eax, %r15d
	leaq	-44(%rbp), %rdi
	callq	_unpack_i
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	leaq	L_.str.3(%rip), %r10
	leaq	L_.str(%rip), %rcx
	leaq	L_.str.1(%rip), %r8
	leaq	L_.str.2(%rip), %r9
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	pushq	%rax
	pushq	%r10
	pushq	%r15
	callq	_json_unpack_ex
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-56(%rbp), %rsi
	movl	-44(%rbp), %edx
	movq	%r14, %rdi
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_hb_scan
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_hb_get_state2
	movq	-32(%rbp), %rax
	movq	_HB_STATE_SCANNING@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.3:
	leaq	-32(%rbp), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$50, %edi
	callq	_hb_snooze
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hb_get_state2
	movq	-32(%rbp), %rax
	cmpq	(%r15), %rax
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movl	-40(%rbp), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_hb_error
LBB0_5:
	leaq	-64(%rbp), %rdi
	callq	_hb_value_free
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"{s:{s:s, s:i}}"

L_.str.1:                               ## @.str.1
	.asciz	"Source"

L_.str.2:                               ## @.str.2
	.asciz	"Path"

L_.str.3:                               ## @.str.3
	.asciz	"Title"

L_.str.4:                               ## @.str.4
	.asciz	"json unpack failure, failed to find title: %s"

	.comm	_HB_STATE_SCANNING,8,3          ## @HB_STATE_SCANNING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_json_job_scan               ; -- Begin function hb_json_job_scan
	.p2align	2
_hb_json_job_scan:                      ; @hb_json_job_scan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	mov	x0, x1
	bl	_hb_value_json
	mov	x20, x0
	str	x0, [sp, #40]
	str	xzr, [sp, #16]
	add	x0, sp, #16
	bl	_unpack_s
	mov	x21, x0
	add	x0, sp, #28
	bl	_unpack_i
	str	w0, [sp]
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
Lloh2:
	adrp	x4, l_.str.1@PAGE
Lloh3:
	add	x4, x4, l_.str.1@PAGEOFF
Lloh4:
	adrp	x5, l_.str.2@PAGE
Lloh5:
	add	x5, x5, l_.str.2@PAGEOFF
	add	x1, sp, #32
Lloh6:
	adrp	x7, l_.str.3@PAGE
Lloh7:
	add	x7, x7, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	w2, #0
	mov	x6, x21
	bl	_json_unpack_ex
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x1, [sp, #16]
	ldr	w2, [sp, #28]
	mov	x0, x19
	mov	w3, #-1
	mov	w4, #0
	mov	w5, #0
	bl	_hb_scan
	add	x1, sp, #8
	mov	x0, x19
	bl	_hb_get_state2
	ldr	x8, [sp, #8]
Lloh8:
	adrp	x20, _HB_STATE_SCANNING@GOTPAGE
Lloh9:
	ldr	x20, [x20, _HB_STATE_SCANNING@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #50
	bl	_hb_snooze
	add	x1, sp, #8
	mov	x0, x19
	bl	_hb_get_state2
	ldr	x8, [sp, #8]
	b	LBB0_2
LBB0_4:
	ldr	w1, [sp, #32]
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_hb_error
LBB0_5:
	add	x0, sp, #40
	bl	_hb_value_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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"{s:{s:s, s:i}}"

l_.str.1:                               ; @.str.1
	.asciz	"Source"

l_.str.2:                               ; @.str.2
	.asciz	"Path"

l_.str.3:                               ; @.str.3
	.asciz	"Title"

l_.str.4:                               ; @.str.4
	.asciz	"json unpack failure, failed to find title: %s"

	.comm	_HB_STATE_SCANNING,8,3          ; @HB_STATE_SCANNING
.subsections_via_symbols
