	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_preset_get                  ## -- Begin function hb_preset_get
	.p2align	4, 0x90
_hb_preset_get:                         ## @hb_preset_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	jle	LBB0_6
## %bb.2:
	movups	(%rbx), %xmm0
	movaps	%xmm0, -32(%rbp)
	decl	-32(%rbp)
	leaq	-32(%rbp), %rdi
	callq	_hb_presets_get_folder_children
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_hb_value_array_len
	movq	8(%rbx), %rcx
	movslq	(%rbx), %rdx
	movl	-4(%rcx,%rdx,4), %esi
	cmpl	%esi, %eax
	jle	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_hb_value_array_get
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_hb_error
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hb_preset_get: not found"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_preset_get                  ; -- Begin function hb_preset_get
	.p2align	2
_hb_preset_get:                         ; @hb_preset_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	ldr	q0, [x19]
	str	q0, [sp]
	ldr	w8, [sp]
	sub	w8, w8, #1
	str	w8, [sp]
	mov	x0, sp
	bl	_hb_presets_get_folder_children
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	bl	_hb_value_array_len
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #2
	ldur	w1, [x8, #-4]
	cmp	w0, w1
	b.le	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_hb_value_array_get
	b	LBB0_7
LBB0_5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_error
LBB0_6:
	mov	x0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hb_preset_get: not found"

.subsections_via_symbols
