	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_configuration_entry        ## -- Begin function add_configuration_entry
	.p2align	4, 0x90
_add_configuration_entry:               ## @add_configuration_entry
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	_add_configuration_entry(%rip), %rdi
	callq	_TRACE_IN
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	setne	%dil
	callq	_assert
	movq	(%r14), %rsi
	movq	%r12, %rdi
	callq	_configuration_find_entry
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movl	(%r12), %edi
	cmpl	4(%r12), %edi
	jne	LBB0_2
## %bb.3:
	addl	%edi, %edi
	movl	%edi, 4(%r12)
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	8(%r12), %rsi
	movl	(%r12), %edx
	shll	$3, %edx
	movq	%r15, %rdi
	callq	_memcpy
	movq	8(%r12), %rdi
	callq	_free
	movq	%r15, 8(%r12)
	movl	(%r12), %edi
	jmp	LBB0_4
LBB0_2:
	movq	8(%r12), %r15
LBB0_4:
	leal	1(%rdi), %esi
	movl	%esi, (%r12)
	movslq	%edi, %rax
	movq	%r14, (%r15,%rax,8)
	movq	8(%r12), %rdi
	movq	_configuration_entry_sort_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$8, %edx
	callq	_qsort
	xorl	%ebx, %ebx
LBB0_5:
	leaq	_add_configuration_entry(%rip), %rdi
	callq	_TRACE_OUT
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_configuration_entry_sort_cmp,4,2 ## @configuration_entry_sort_cmp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_configuration_entry        ; -- Begin function add_configuration_entry
	.p2align	2
_add_configuration_entry:               ; @add_configuration_entry
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _add_configuration_entry@PAGE
Lloh1:
	add	x0, x0, _add_configuration_entry@PAGEOFF
	bl	_TRACE_IN
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x1, [x20]
	mov	x0, x19
	bl	_configuration_find_entry
	cbz	x0, LBB0_2
; %bb.1:
	mov	w19, #-1
	b	LBB0_6
LBB0_2:
	ldp	w8, w9, [x19]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	lsl	w0, w8, #1
	str	w0, [x19, #4]
	mov	w1, #8
	bl	_calloc
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x1, [x19, #8]
	ldr	w8, [x19]
	lsl	w2, w8, #3
	mov	x0, x21
	bl	_memcpy
	ldr	x0, [x19, #8]
	bl	_free
	str	x21, [x19, #8]
	ldr	w8, [x19]
	b	LBB0_5
LBB0_4:
	ldr	x21, [x19, #8]
LBB0_5:
	add	w1, w8, #1
	str	w1, [x19]
	str	x20, [x21, w8, sxtw #3]
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x8, _configuration_entry_sort_cmp@GOTPAGE
Lloh3:
	ldr	x8, [x8, _configuration_entry_sort_cmp@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	w2, #8
	bl	_qsort
	mov	w19, #0
LBB0_6:
Lloh5:
	adrp	x0, _add_configuration_entry@PAGE
Lloh6:
	add	x0, x0, _add_configuration_entry@PAGEOFF
	bl	_TRACE_OUT
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_configuration_entry_sort_cmp,4,2 ; @configuration_entry_sort_cmp
.subsections_via_symbols
