	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_preset_search
_do_preset_search:                      ## @do_preset_search
	.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	%rsi, %rbx
	movl	24(%rsi), %eax
	leal	-1(%rax), %ecx
	movl	(%rsi), %edx
	xorl	%r8d, %r8d
	cmpl	%edx, %ecx
	movl	$0, %esi
	cmovgl	%edx, %esi
	movq	%rdi, %r15
	testl	%edx, %edx
	cmovsl	%r8d, %esi
	movl	4(%rbx), %ecx
	negl	%esi
	leal	(%rax,%rsi), %r14d
	decl	%r14d
	movl	8(%rbx), %edx
	movl	%r14d, %esi
	callq	_preset_cmp_idx
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.1:
	movq	_PRESET_DO_SKIP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_preset_cmp_idx
	movl	%r14d, (%rbx)
LBB0_3:
	movq	_PRESET_DO_PARTIAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	movq	_PRESET_DO_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_5:
	movl	$-1, (%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PRESET_DO_SKIP,4,2             ## @PRESET_DO_SKIP
	.comm	_PRESET_DO_PARTIAL,4,2          ## @PRESET_DO_PARTIAL
	.comm	_PRESET_DO_NEXT,4,2             ## @PRESET_DO_NEXT
	.no_dead_strip	_do_preset_search
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_preset_search
_do_preset_search:                      ; @do_preset_search
	.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, x1
	mov	x20, x0
	ldr	w8, [x1, #24]
	sub	w8, w8, #1
	ldp	w9, w3, [x1]
	cmp	w8, w9
	mov	w10, #-1
	ccmp	w9, w10, #4, gt
	csel	w9, w9, wzr, gt
	sub	w21, w8, w9
	ldr	w2, [x1, #8]
	mov	x1, x21
	bl	_preset_cmp_idx
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _PRESET_DO_SKIP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PRESET_DO_SKIP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w0, w9, #0, ne
	b.ne	LBB0_2
; %bb.1:
	ldp	w3, w2, [x19, #4]
	mov	x0, x20
	mov	w1, #0
	bl	_preset_cmp_idx
	str	w21, [x19]
LBB0_2:
Lloh3:
	adrp	x8, _PRESET_DO_PARTIAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PRESET_DO_PARTIAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _PRESET_DO_NEXT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PRESET_DO_NEXT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	mov	w8, #-1
	str	w8, [x19]
LBB0_5:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PRESET_DO_SKIP,4,2             ; @PRESET_DO_SKIP
	.comm	_PRESET_DO_PARTIAL,4,2          ; @PRESET_DO_PARTIAL
	.comm	_PRESET_DO_NEXT,4,2             ; @PRESET_DO_NEXT
	.no_dead_strip	_do_preset_search
.subsections_via_symbols
