	.file	"extr_param.c_hb_validate_filter_preset.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"custom"
	.text
	.p2align 4
	.globl	hb_validate_filter_preset
	.type	hb_validate_filter_preset, @function
hb_validate_filter_preset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	rsi, rsi
	je	.L4
	mov	rbp, rsi
	lea	rsi, 12[rsp]
	mov	r12d, edi
	mov	r13, rdx
	mov	r14, rcx
	call	filter_param_get_presets_internal@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	rsi, rbp
	mov	rdi, rax
	call	filter_param_get_entry@PLT
	test	rax, rax
	je	.L4
	cmp	QWORD PTR [rax], 0
	je	.L4
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L5
	test	r14, r14
	jne	.L23
.L5:
	xor	r14d, r14d
	test	r13, r13
	je	.L1
	lea	rsi, 16[rsp]
	mov	edi, r12d
	xor	r14d, r14d
	call	filter_param_get_tunes_internal@PLT
	mov	edx, DWORD PTR 16[rsp]
	mov	rsi, r13
	mov	rdi, rax
	call	filter_param_get_entry@PLT
	test	rax, rax
	sete	r14b
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r14d, 1
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	rdi, r14
	mov	r14d, 1
	call	hb_parse_filter_settings@PLT
	mov	QWORD PTR 16[rsp], rax
	mov	rsi, rax
	test	rax, rax
	je	.L1
	mov	edi, r12d
	call	hb_validate_filter_settings@PLT
	lea	rdi, 16[rsp]
	mov	r14d, eax
	call	hb_value_free@PLT
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hb_validate_filter_preset, .-hb_validate_filter_preset
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_param.c_hb_validate_filter_preset.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"custom\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	hb_validate_filter_preset
	.syntax unified
	.arm
	.fpu softvfp
	.type	hb_validate_filter_preset, %function
hb_validate_filter_preset:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r7, r3
	ldr	r3, .L20
	sub	sp, sp, #20
	subs	r5, r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	beq	.L8
	add	r1, sp, #4
	mov	r4, r2
	mov	r6, r0
	bl	filter_param_get_presets_internal
	mov	r1, r5
	ldr	r2, [sp, #4]
	bl	filter_param_get_entry
	subs	ip, r0, #0
	beq	.L8
	ldr	r3, [ip]
	cmp	r3, #0
	beq	.L8
	mov	r0, r5
	ldr	r1, .L20+4
	bl	strcasecmp
	subs	r3, r7, #0
	movne	r3, #1
	cmp	r0, #0
	movne	r3, #0
	cmp	r3, #0
	bne	.L18
	cmp	r4, #0
	beq	.L1
	add	r1, sp, #8
	mov	r0, r6
	bl	filter_param_get_tunes_internal
	mov	r1, r4
	ldr	r2, [sp, #8]
	bl	filter_param_get_entry
	clz	r4, r0
	lsr	r4, r4, #5
	b	.L1
.L8:
	mov	r4, #1
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L18:
	mov	r0, r7
	bl	hb_parse_filter_settings
	cmp	r0, #0
	mov	r1, r0
	str	r0, [sp, #8]
	beq	.L8
	mov	r0, r6
	bl	hb_validate_filter_settings
	mov	r4, r0
	add	r0, sp, #8
	bl	hb_value_free
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC1
	.word	.LC0
	.size	hb_validate_filter_preset, .-hb_validate_filter_preset
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
