	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_preset_move                 ## -- Begin function hb_preset_move
	.p2align	4, 0x90
_hb_preset_move:                        ## @hb_preset_move
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movups	(%rdi), %xmm0
	movaps	%xmm0, -80(%rbp)
	movups	(%rsi), %xmm0
	decl	-80(%rbp)
	movaps	%xmm0, -64(%rbp)
	decl	-64(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_hb_presets_get_folder_children
	movq	%rax, %rbx
	leaq	-64(%rbp), %rdi
	callq	_hb_presets_get_folder_children
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	8(%r12), %rax
	movslq	(%r12), %rcx
	movl	-4(%rax,%rcx,4), %r13d
	movq	8(%r15), %rax
	movslq	(%r15), %rcx
	movl	-4(%rax,%rcx,4), %r15d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_hb_value_array_get
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_hb_value_incref
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_hb_value_array_remove
	cmpq	%r14, %rbx
	sete	%al
	cmpl	%r15d, %r13d
	setl	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	subl	%eax, %r15d
	movq	%r14, %rdi
	callq	_hb_value_array_len
	movq	%r14, %rdi
	cmpl	%r15d, %eax
	jle	LBB0_4
## %bb.5:
	movl	%r15d, %esi
	movq	%r12, %rdx
	callq	_hb_value_array_insert
	jmp	LBB0_6
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_hb_error
	movl	$-1, %eax
	jmp	LBB0_7
LBB0_4:
	movq	%r12, %rsi
	callq	_hb_value_array_append
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hb_preset_move: not found"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_preset_move                 ; -- Begin function hb_preset_move
	.p2align	2
_hb_preset_move:                        ; @hb_preset_move
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x22, x0
	ldr	q1, [x0]
	ldr	q0, [x1]
	stp	q0, q1, [sp]
	ldr	w8, [sp, #16]
	sub	w8, w8, #1
	str	w8, [sp, #16]
	ldr	w8, [sp]
	sub	w8, w8, #1
	str	w8, [sp]
	add	x0, sp, #16
	bl	_hb_presets_get_folder_children
	mov	x20, x0
	mov	x0, sp
	bl	_hb_presets_get_folder_children
	cbz	x20, LBB0_4
; %bb.1:
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x22, #8]
	ldrsw	x9, [x22]
	add	x8, x8, x9, lsl #2
	ldur	w22, [x8, #-4]
	ldr	x8, [x21, #8]
	ldrsw	x9, [x21]
	add	x8, x8, x9, lsl #2
	ldur	w23, [x8, #-4]
	mov	x0, x20
	mov	x1, x22
	bl	_hb_value_array_get
	mov	x21, x0
	bl	_hb_value_incref
	mov	x0, x20
	mov	x1, x22
	bl	_hb_value_array_remove
	cmp	x20, x19
	ccmp	w22, w23, #0, eq
	cset	w8, lt
	sub	w20, w23, w8
	mov	x0, x19
	bl	_hb_value_array_len
	cmp	w0, w20
	b.le	LBB0_5
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_hb_value_array_insert
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_error
	mov	w0, #-1
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	bl	_hb_value_array_append
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hb_preset_move: not found"

.subsections_via_symbols
