	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_presets_get_folder_children ## -- Begin function hb_presets_get_folder_children
	.p2align	4, 0x90
_hb_presets_get_folder_children:        ## @hb_presets_get_folder_children
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_hb_presets@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r14
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:
	leaq	L_.str(%rip), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_hb_value_array_len
	movq	8(%r14), %rcx
	movl	(%rcx,%r12,4), %esi
	cmpl	%eax, %esi
	jge	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_hb_value_array_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_hb_dict_get
	movq	%rax, %rdi
	callq	_hb_value_get_bool
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_hb_dict_get
	movq	%rax, %r13
	incq	%r12
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	jl	LBB0_4
	jmp	LBB0_9
LBB0_2:
	xorl	%r12d, %r12d
	jmp	LBB0_9
LBB0_5:
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_7:
	movl	(%r14), %eax
LBB0_9:
	xorl	%ecx, %ecx
	cmpl	%eax, %r12d
	cmovlq	%rcx, %r13
LBB0_10:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hb_presets,8,3                 ## @hb_presets
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Folder"

L_.str.1:                               ## @.str.1
	.asciz	"ChildrenArray"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_presets_get_folder_children ; -- Begin function hb_presets_get_folder_children
	.p2align	2
_hb_presets_get_folder_children:        ; @hb_presets_get_folder_children
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _hb_presets@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hb_presets@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x24, #0
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
Lloh5:
	adrp	x22, l_.str.1@PAGE
Lloh6:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_hb_value_array_len
	ldr	x8, [x20, #8]
	ldr	w1, [x8, x24, lsl #2]
	cmp	w1, w0
	b.ge	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_hb_value_array_get
	mov	x23, x0
	mov	x1, x21
	bl	_hb_dict_get
	bl	_hb_value_get_bool
	cbz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_hb_dict_get
	mov	x19, x0
	add	x24, x24, #1
	ldrsw	x8, [x20]
	cmp	x24, x8
	b.lt	LBB0_3
	b	LBB0_9
LBB0_6:
	mov	w24, #0
	b	LBB0_9
LBB0_7:
	mov	x19, #0
	b	LBB0_10
LBB0_8:
	ldr	w8, [x20]
LBB0_9:
	cmp	w24, w8
	csel	x19, xzr, x19, lt
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_hb_presets,8,3                 ; @hb_presets
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Folder"

l_.str.1:                               ; @.str.1
	.asciz	"ChildrenArray"

.subsections_via_symbols
