	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sort_list_add                  ## -- Begin function sort_list_add
	.p2align	4, 0x90
_sort_list_add:                         ## @sort_list_add
	.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
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.2:
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	8(%rdi), %r12
	movq	24(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	cmpq	%r12, %r15
	jb	LBB0_5
LBB0_4:
	addq	$1025, %r12                     ## imm = 0x401
	leal	(,%r12,8), %esi
	callq	_sort_realloc
	movq	%rax, 24(%rbx)
	movq	%r12, %rax
	subq	8(%rbx), %rax
	shlq	$3, %rax
	addq	%rax, 16(%rbx)
	movq	%r12, 8(%rbx)
LBB0_5:
	xorl	%eax, %eax
	callq	_sort_list_item_alloc
	movq	24(%rbx), %rcx
	movl	%eax, (%rcx,%r15,4)
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_sort_list_item_set
	movq	24(%rbx), %rax
	movl	(%rax,%r15,4), %edi
	callq	_sort_list_item_size
	addq	%rax, 16(%rbx)
	incq	(%rbx)
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sort_list_add                  ; -- Begin function sort_list_add
	.p2align	2
_sort_list_add:                         ; @sort_list_add
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_5
; %bb.2:
	mov	x19, x0
	ldr	x0, [x0, #24]
	ldp	x21, x8, [x19]
	cmp	x0, #0
	ccmp	x21, x8, #2, ne
	b.lo	LBB0_4
; %bb.3:
	add	x22, x8, #1025
	lsl	w1, w22, #3
	bl	_sort_realloc
	ldp	x8, x9, [x19, #8]
	sub	x8, x22, x8
	add	x8, x9, x8, lsl #3
	stp	x8, x0, [x19, #16]
	str	x22, [x19, #8]
LBB0_4:
	bl	_sort_list_item_alloc
	ldr	x8, [x19, #24]
	lsl	x21, x21, #2
	str	w0, [x8, x21]
	mov	x1, x20
	bl	_sort_list_item_set
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x21]
	bl	_sort_list_item_size
	ldr	x8, [x19, #16]
	add	x8, x8, x0
	str	x8, [x19, #16]
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
