	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_validate_filter_preset      ## -- Begin function hb_validate_filter_preset
	.p2align	4, 0x90
_hb_validate_filter_preset:             ## @hb_validate_filter_preset
	.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
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movl	%edi, %r14d
	leaq	-52(%rbp), %rsi
	callq	_filter_param_get_presets_internal
	movl	-52(%rbp), %edx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_filter_param_get_entry
	movl	$1, %r13d
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%r12, %r12
	je	LBB0_9
## %bb.4:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	%r12, %rdi
	callq	_hb_parse_filter_settings
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_hb_validate_filter_settings
	movl	%eax, %r13d
	leaq	-48(%rbp), %rdi
	callq	_hb_value_free
	jmp	LBB0_8
LBB0_7:
	movl	$1, %r13d
LBB0_8:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	leaq	-48(%rbp), %rsi
	movl	%r14d, %edi
	callq	_filter_param_get_tunes_internal
	movl	-48(%rbp), %edx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_filter_param_get_entry
	testq	%rax, %rax
	je	LBB0_8
LBB0_11:
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"custom"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_validate_filter_preset      ; -- Begin function hb_validate_filter_preset
	.p2align	2
_hb_validate_filter_preset:             ; @hb_validate_filter_preset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x1, LBB0_10
; %bb.1:
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	add	x1, sp, #12
	bl	_filter_param_get_presets_internal
	ldr	w2, [sp, #12]
	mov	x1, x22
	bl	_filter_param_get_entry
	cbz	x0, LBB0_10
; %bb.2:
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strcasecmp
	cbz	x21, LBB0_7
; %bb.4:
	cbnz	w0, LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_hb_parse_filter_settings
	str	x0, [sp]
	cbz	x0, LBB0_10
; %bb.6:
	mov	x1, x0
	mov	x0, x19
	bl	_hb_validate_filter_settings
	mov	x19, x0
	mov	x0, sp
	bl	_hb_value_free
	b	LBB0_11
LBB0_7:
	cbz	x20, LBB0_9
; %bb.8:
	mov	x1, sp
	mov	x0, x19
	bl	_filter_param_get_tunes_internal
	ldr	w2, [sp]
	mov	x1, x20
	bl	_filter_param_get_entry
	cbz	x0, LBB0_10
LBB0_9:
	mov	w19, #0
	b	LBB0_11
LBB0_10:
	mov	w19, #1
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"custom"

.subsections_via_symbols
