	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function comb_detect_close
_comb_detect_close:                     ## @comb_detect_close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	movq	%rdi, %r14
	movl	88(%rbx), %esi
	movl	84(%rbx), %edx
	movl	76(%rbx), %r8d
	movl	80(%rbx), %ecx
	leaq	L_.str(%rip), %rdi
	callq	_hb_log
	leaq	72(%rbx), %rdi
	callq	_taskset_fini
	leaq	68(%rbx), %rdi
	callq	_taskset_fini
	movq	_MODE_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.2:
	leaq	64(%rbx), %rdi
	callq	_taskset_fini
	movq	8(%rbx), %rax
	movq	_FILTER_ERODE_DILATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	leaq	60(%rbx), %rdi
	callq	_taskset_fini
	leaq	56(%rbx), %rdi
	callq	_taskset_fini
LBB0_4:
	movq	48(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.6:
	cmpl	$0, 4(%rax)
	je	LBB0_7
LBB0_8:
	cmpl	$0, 8(%rax)
	jne	LBB0_10
LBB0_9:
	movq	40(%rbx), %rdi
	addq	$8, %rdi
	callq	_hb_buffer_close
LBB0_10:
	leaq	32(%rbx), %rdi
	callq	_hb_buffer_close
	leaq	28(%rbx), %rdi
	callq	_hb_buffer_close
	leaq	24(%rbx), %rdi
	callq	_hb_buffer_close
	movq	16(%rbx), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
	movq	$0, (%r14)
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	40(%rbx), %rdi
	callq	_hb_buffer_close
	movq	48(%rbx), %rax
	cmpl	$0, 4(%rax)
	jne	LBB0_8
LBB0_7:
	movq	40(%rbx), %rdi
	addq	$4, %rdi
	callq	_hb_buffer_close
	movq	48(%rbx), %rax
	cmpl	$0, 8(%rax)
	jne	LBB0_10
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"comb detect: heavy %i | light %i | uncombed %i | total %i"

	.comm	_MODE_FILTER,4,2                ## @MODE_FILTER
	.comm	_FILTER_ERODE_DILATE,8,3        ## @FILTER_ERODE_DILATE
	.no_dead_strip	_comb_detect_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function comb_detect_close
_comb_detect_close:                     ; @comb_detect_close
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x20, [x0]
	cbz	x20, LBB0_9
; %bb.1:
	mov	x19, x0
	ldp	w2, w1, [x20, #84]
	ldp	w4, w3, [x20, #76]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_log
	add	x0, x20, #72
	bl	_taskset_fini
	add	x0, x20, #68
	bl	_taskset_fini
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _MODE_FILTER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MODE_FILTER@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	add	x0, x20, #64
	bl	_taskset_fini
	ldr	x8, [x20, #8]
Lloh5:
	adrp	x9, _FILTER_ERODE_DILATE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FILTER_ERODE_DILATE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	add	x0, x20, #60
	bl	_taskset_fini
	add	x0, x20, #56
	bl	_taskset_fini
LBB0_4:
	ldr	x8, [x20, #48]
	ldr	w9, [x8]
	cbz	w9, LBB0_10
; %bb.5:
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_11
LBB0_6:
	ldr	w8, [x8, #8]
	cbnz	w8, LBB0_8
LBB0_7:
	ldr	x8, [x20, #40]
	add	x0, x8, #8
	bl	_hb_buffer_close
LBB0_8:
	add	x0, x20, #32
	bl	_hb_buffer_close
	add	x0, x20, #28
	bl	_hb_buffer_close
	add	x0, x20, #24
	bl	_hb_buffer_close
	ldr	x0, [x20, #16]
	bl	_free
	mov	x0, x20
	bl	_free
	str	xzr, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	x0, [x20, #40]
	bl	_hb_buffer_close
	ldr	x8, [x20, #48]
	ldr	w9, [x8, #4]
	cbnz	w9, LBB0_6
LBB0_11:
	ldr	x8, [x20, #40]
	add	x0, x8, #4
	bl	_hb_buffer_close
	ldr	x8, [x20, #48]
	ldr	w8, [x8, #8]
	cbnz	w8, LBB0_8
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"comb detect: heavy %i | light %i | uncombed %i | total %i"

	.comm	_MODE_FILTER,4,2                ; @MODE_FILTER
	.comm	_FILTER_ERODE_DILATE,8,3        ; @FILTER_ERODE_DILATE
	.no_dead_strip	_comb_detect_close
.subsections_via_symbols
