	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function comb_detect_work
_comb_detect_work:                      ## @comb_detect_work
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	(%rdi), %rbx
	movq	(%rsi), %r15
	movq	$0, (%rsi)
	movq	_HB_BUF_FLAG_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.1:
	movq	8(%rbx), %rax
	movq	16(%rax), %rdi
	callq	_hb_buffer_dup
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_store_ref
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_process_frame
LBB0_3:
	addq	$4, %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_hb_buffer_list_append
	movq	%rbx, %rdi
	callq	_hb_buffer_list_clear
	movq	%rax, (%r14)
	movq	_HB_FILTER_DONE@GOTPCREL(%rip), %r15
LBB0_8:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpl	$0, (%rbx)
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_store_ref
	movq	%rbx, %rdi
	callq	_process_frame
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_hb_buffer_list_count
	movq	_HB_FILTER_OK@GOTPCREL(%rip), %r15
	cmpl	$4, %eax
	jl	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_hb_buffer_list_rem_head
	movq	%rax, (%r14)
	jmp	LBB0_8
LBB0_5:
	movq	%r15, %rdi
	callq	_hb_buffer_dup
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_store_ref
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_store_ref
	movl	$1, (%rbx)
	movq	_HB_FILTER_DELAY@GOTPCREL(%rip), %r15
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_BUF_FLAG_EOF,4,2            ## @HB_BUF_FLAG_EOF
	.comm	_HB_FILTER_DONE,4,2             ## @HB_FILTER_DONE
	.comm	_HB_FILTER_DELAY,4,2            ## @HB_FILTER_DELAY
	.comm	_HB_FILTER_OK,4,2               ## @HB_FILTER_OK
	.no_dead_strip	_comb_detect_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function comb_detect_work
_comb_detect_work:                      ; @comb_detect_work
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	ldr	x20, [x0]
	ldr	x21, [x1]
	str	xzr, [x1]
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _HB_BUF_FLAG_EOF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HB_BUF_FLAG_EOF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x0, [x8, #16]
	bl	_hb_buffer_dup
	mov	x1, x0
	mov	x0, x20
	bl	_store_ref
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_process_frame
LBB0_3:
	add	x20, x20, #4
	mov	x0, x20
	mov	x1, x21
	bl	_hb_buffer_list_append
	mov	x0, x20
	bl	_hb_buffer_list_clear
	str	x0, [x19]
Lloh3:
	adrp	x8, _HB_FILTER_DONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HB_FILTER_DONE@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	ldr	w8, [x20]
	cbz	w8, LBB0_8
; %bb.5:
	mov	x0, x20
	mov	x1, x21
	bl	_store_ref
	mov	x0, x20
	bl	_process_frame
	add	x20, x20, #4
	mov	x0, x20
	bl	_hb_buffer_list_count
	cmp	w0, #4
	b.lt	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_hb_buffer_list_rem_head
	str	x0, [x19]
LBB0_7:
Lloh5:
	adrp	x8, _HB_FILTER_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HB_FILTER_OK@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	mov	x0, x21
	bl	_hb_buffer_dup
	mov	x1, x0
	mov	x0, x20
	bl	_store_ref
	mov	x0, x20
	mov	x1, x21
	bl	_store_ref
	mov	w8, #1
	str	w8, [x20]
Lloh7:
	adrp	x8, _HB_FILTER_DELAY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HB_FILTER_DELAY@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_BUF_FLAG_EOF,4,2            ; @HB_BUF_FLAG_EOF
	.comm	_HB_FILTER_DONE,4,2             ; @HB_FILTER_DONE
	.comm	_HB_FILTER_DELAY,4,2            ; @HB_FILTER_DELAY
	.comm	_HB_FILTER_OK,4,2               ; @HB_FILTER_OK
	.no_dead_strip	_comb_detect_work
.subsections_via_symbols
