	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_preset
_add_preset:                            ## @add_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	44(%rsi), %esi
	movl	32(%rbx), %ecx
	movl	40(%rbx), %edx
	callq	_search_first_zone
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	movq	24(%rax), %rax
	cmpq	24(%rbx), %rax
	je	LBB0_7
## %bb.2:
	movq	(%rbx), %rax
	movq	%r15, %rcx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, (%rcx)
	jg	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_delete_preset
LBB0_6:
	xorl	%r15d, %r15d
LBB0_7:
	movl	44(%rbx), %edi
	movl	32(%rbx), %edx
	movl	40(%rbx), %esi
	callq	_get_index
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:
	movq	%r15, 16(%rbx)
	movq	(%r14), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %rdx
	movq	%rdx, 8(%rbx)
	movq	%rbx, (%rcx,%rax,8)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_add_preset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_preset
_add_preset:                            ; @add_preset
	.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	w1, [x1, #44]
	ldr	w2, [x19, #40]
	ldr	w3, [x19, #32]
	bl	_search_first_zone
	mov	x21, x0
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x8, [x21, #24]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.2:
	ldr	x8, [x19]
	mov	x9, x21
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cmp	x10, x8
	b.gt	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x9, #16]
	cbnz	x9, LBB0_3
; %bb.5:
	mov	x0, x20
	mov	x1, x21
	bl	_delete_preset
	mov	x21, #0
LBB0_6:
	ldp	w1, w0, [x19, #40]
	ldr	w2, [x19, #32]
	bl	_get_index
	tbnz	w0, #31, LBB0_8
; %bb.7:
	str	x21, [x19, #16]
	ldr	x8, [x20]
	mov	w9, w0
	lsl	x9, x9, #3
	ldr	x10, [x8, x9]
	str	x10, [x19, #8]
	str	x19, [x8, x9]
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_add_preset
.subsections_via_symbols
