	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fix_name_collisions
_fix_name_collisions:                   ## @fix_name_collisions
	.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, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_strdup
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_hb_value_array_len
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movl	%eax, %r15d
	xorl	%r13d, %r13d
	leaq	L_.str(%rip), %r14
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	cmpl	%r15d, %r13d
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_hb_value_array_get
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_hb_dict_get_string
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_free
	movq	%r14, %r12
	movl	%r15d, %r14d
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leal	1(%rdx), %r15d
	leaq	L_.str.1(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_hb_strdup_printf
	movl	$-1, %r13d
	movl	%r15d, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%r14d, %r15d
	movq	%r12, %r14
	movq	%rax, %r12
	jmp	LBB0_4
LBB0_5:
	movq	%r12, %rax
	addq	$24, %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	"PresetName"

L_.str.1:                               ## @.str.1
	.asciz	"%s - %d"

	.no_dead_strip	_fix_name_collisions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fix_name_collisions
_fix_name_collisions:                   ; @fix_name_collisions
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_strdup
	mov	x21, x0
	mov	x0, x20
	bl	_hb_value_array_len
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x22, x0
	mov	w26, #0
	mov	w25, #0
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
Lloh2:
	adrp	x24, l_.str.1@PAGE
Lloh3:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w26, w26, #1
	cmp	w26, w22
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x26
	bl	_hb_value_array_get
	mov	x1, x23
	bl	_hb_dict_get_string
	mov	x1, x0
	mov	x0, x21
	bl	_strcmp
	cbnz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_free
	add	w27, w25, #1
	mov	x0, x24
	mov	x1, x19
	mov	x2, x25
	bl	_hb_strdup_printf
	mov	x21, x0
	mov	w26, #-1
	mov	x25, x27
	b	LBB0_2
LBB0_5:
	mov	x0, x21
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PresetName"

l_.str.1:                               ; @.str.1
	.asciz	"%s - %d"

	.no_dead_strip	_fix_name_collisions
.subsections_via_symbols
