	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hb_presets_add_internal
_hb_presets_add_internal:               ## @hb_presets_add_internal
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)
	movl	$-1, %ebx
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	%rdi, %r12
	callq	_lookup_default_index
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_hb_presets_clear_default
LBB0_4:
	movq	%rbx, %rdi
	callq	_free
	movq	_hb_presets@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_hb_value_array_len
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_hb_value_type
	movq	_HB_VALUE_TYPE_DICT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	(%r14), %r14
	movq	%r12, %rdi
	callq	_hb_value_dup
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_hb_value_array_append
	leaq	-48(%rbp), %rdi
	callq	_hb_value_free
	jmp	LBB0_13
LBB0_6:
	movq	%r12, %rdi
	callq	_hb_value_type
	movq	_HB_VALUE_TYPE_ARRAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.7:
	movq	%r12, %rdi
	callq	_hb_value_array_len
	testl	%eax, %eax
	jle	LBB0_11
## %bb.8:
	movl	%eax, %r15d
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_hb_value_array_get
	movq	(%r14), %r13
	movq	%rax, %rdi
	callq	_hb_value_dup
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_hb_value_array_append
	incl	%ebx
	cmpl	%ebx, %r15d
	jne	LBB0_9
## %bb.10:
	leaq	-48(%rbp), %rdi
	callq	_hb_value_free
	testl	%r15d, %r15d
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jg	LBB0_13
	jmp	LBB0_12
LBB0_11:
	leaq	-48(%rbp), %rdi
	callq	_hb_value_free
LBB0_12:
	movl	$-1, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %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
	.comm	_HB_VALUE_TYPE_DICT,8,3         ## @HB_VALUE_TYPE_DICT
	.comm	_HB_VALUE_TYPE_ARRAY,8,3        ## @HB_VALUE_TYPE_ARRAY
	.no_dead_strip	_hb_presets_add_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hb_presets_add_internal
_hb_presets_add_internal:               ; @hb_presets_add_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	str	x0, [sp, #8]
	cbz	x0, LBB0_12
; %bb.1:
	mov	x20, x0
	bl	_lookup_default_index
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	bl	_hb_presets_clear_default
LBB0_4:
	mov	x0, x19
	bl	_free
Lloh0:
	adrp	x24, _hb_presets@GOTPAGE
Lloh1:
	ldr	x24, [x24, _hb_presets@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_hb_value_array_len
	mov	x19, x0
	mov	x0, x20
	bl	_hb_value_type
Lloh2:
	adrp	x8, _HB_VALUE_TYPE_DICT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HB_VALUE_TYPE_DICT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.5:
	ldr	x21, [x24]
	mov	x0, x20
	bl	_hb_value_dup
	mov	x1, x0
	mov	x0, x21
	bl	_hb_value_array_append
	add	x0, sp, #8
	bl	_hb_value_free
	b	LBB0_13
LBB0_6:
	mov	x0, x20
	bl	_hb_value_type
Lloh5:
	adrp	x8, _HB_VALUE_TYPE_ARRAY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HB_VALUE_TYPE_ARRAY@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.7:
	mov	x0, x20
	bl	_hb_value_array_len
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.8:
	mov	x21, x0
	mov	w22, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_hb_value_array_get
	ldr	x23, [x24]
	bl	_hb_value_dup
	mov	x1, x0
	mov	x0, x23
	bl	_hb_value_array_append
	add	w22, w22, #1
	cmp	w21, w22
	b.ne	LBB0_9
; %bb.10:
	add	x0, sp, #8
	bl	_hb_value_free
	cmp	w21, #0
	b.gt	LBB0_13
	b	LBB0_12
LBB0_11:
	add	x0, sp, #8
	bl	_hb_value_free
LBB0_12:
	mov	w19, #-1
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_hb_presets,8,3                 ; @hb_presets
	.comm	_HB_VALUE_TYPE_DICT,8,3         ; @HB_VALUE_TYPE_DICT
	.comm	_HB_VALUE_TYPE_ARRAY,8,3        ; @HB_VALUE_TYPE_ARRAY
	.no_dead_strip	_hb_presets_add_internal
.subsections_via_symbols
