	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function preset_cmp_idx
_preset_cmp_idx:                        ## @preset_cmp_idx
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_HB_PRESET_TYPE_ALL@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	%ecx, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_hb_dict_get
	movl	%eax, %edi
	callq	_hb_value_get_int
	cmpl	%ebx, %eax
	jne	LBB0_12
LBB0_2:
	xorl	%ebx, %ebx
	cmpb	$47, (%r12)
	sete	%bl
	addq	%r12, %rbx
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.3:
	movq	_PRESET_DO_SKIP@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_18
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	incq	%rbx
	decl	%r15d
	jne	LBB0_4
LBB0_6:
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	%rax, %r15
	subl	%ebx, %r15d
	testl	%r15d, %r15d
	jle	LBB0_14
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_hb_dict_get
	movl	%eax, %edi
	callq	_hb_value_get_string
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_strlen
	cmpl	%r15d, %eax
	jle	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %r15d
LBB0_10:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_15
LBB0_12:
	movq	_PRESET_DO_NEXT@GOTPCREL(%rip), %r12
	jmp	LBB0_18
LBB0_13:
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %r15d
	testl	%r15d, %r15d
	jg	LBB0_8
LBB0_14:
	movq	_PRESET_DO_SKIP@GOTPCREL(%rip), %r12
	jmp	LBB0_18
LBB0_15:
	movslq	%r15d, %rax
	cmpb	$0, (%rbx,%rax)
	jne	LBB0_17
## %bb.16:
	movq	_PRESET_DO_SUCCESS@GOTPCREL(%rip), %r12
	jmp	LBB0_18
LBB0_17:
	movq	_PRESET_DO_PARTIAL@GOTPCREL(%rip), %r12
LBB0_18:
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_PRESET_TYPE_ALL,4,2         ## @HB_PRESET_TYPE_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Type"

	.comm	_PRESET_DO_NEXT,4,2             ## @PRESET_DO_NEXT
	.comm	_PRESET_DO_SKIP,4,2             ## @PRESET_DO_SKIP
L_.str.1:                               ## @.str.1
	.asciz	"PresetName"

	.comm	_PRESET_DO_SUCCESS,4,2          ## @PRESET_DO_SUCCESS
	.comm	_PRESET_DO_PARTIAL,4,2          ## @PRESET_DO_PARTIAL
	.no_dead_strip	_preset_cmp_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function preset_cmp_idx
_preset_cmp_idx:                        ; @preset_cmp_idx
	.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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _HB_PRESET_TYPE_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HB_PRESET_TYPE_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w3
	b.eq	LBB0_2
; %bb.1:
	mov	x22, x3
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_hb_dict_get
	bl	_hb_value_get_int
	cmp	w0, w22
	b.ne	LBB0_11
LBB0_2:
	mov	x8, x19
	ldrb	w9, [x8], #1
	cmp	w9, #47
	csel	x19, x19, x8, ne
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.3:
Lloh5:
	adrp	x22, _PRESET_DO_SKIP@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PRESET_DO_SKIP@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x0, #1
	subs	w21, w21, #1
	b.ne	LBB0_4
LBB0_6:
	mov	x0, x19
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_12
; %bb.7:
	sub	w21, w0, w19
	cmp	w21, #1
	b.lt	LBB0_13
LBB0_8:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_hb_dict_get
	bl	_hb_value_get_string
	mov	x20, x0
	bl	_strlen
	cmp	w0, w21
	b.le	LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_strlen
	mov	x21, x0
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_strncmp
	cbz	w0, LBB0_14
LBB0_11:
Lloh9:
	adrp	x22, _PRESET_DO_NEXT@GOTPAGE
Lloh10:
	ldr	x22, [x22, _PRESET_DO_NEXT@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
	mov	x0, x19
	bl	_strlen
	mov	x21, x0
	cmp	w21, #1
	b.ge	LBB0_8
LBB0_13:
Lloh11:
	adrp	x22, _PRESET_DO_SKIP@GOTPAGE
Lloh12:
	ldr	x22, [x22, _PRESET_DO_SKIP@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
	ldrb	w8, [x19, w21, sxtw]
Lloh13:
	adrp	x9, _PRESET_DO_PARTIAL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PRESET_DO_PARTIAL@GOTPAGEOFF]
Lloh15:
	adrp	x10, _PRESET_DO_SUCCESS@GOTPAGE
Lloh16:
	ldr	x10, [x10, _PRESET_DO_SUCCESS@GOTPAGEOFF]
	cmp	w8, #0
	csel	x22, x10, x9, eq
LBB0_15:
	ldr	w0, [x22]
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_PRESET_TYPE_ALL,4,2         ; @HB_PRESET_TYPE_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Type"

	.comm	_PRESET_DO_NEXT,4,2             ; @PRESET_DO_NEXT
	.comm	_PRESET_DO_SKIP,4,2             ; @PRESET_DO_SKIP
l_.str.1:                               ; @.str.1
	.asciz	"PresetName"

	.comm	_PRESET_DO_SUCCESS,4,2          ; @PRESET_DO_SUCCESS
	.comm	_PRESET_DO_PARTIAL,4,2          ; @PRESET_DO_PARTIAL
	.no_dead_strip	_preset_cmp_idx
.subsections_via_symbols
