	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_list
_add_list:                              ## @add_list
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
## %bb.1:
	movl	%edx, %r13d
	leal	(,%r13,8), %edi
	movl	%ecx, %ebx
	callq	_zzmalloc
	movl	%ebx, %ecx
	leaq	8(%rax), %rbx
	movq	%rbx, (%r15)
	decl	%r13d
	movl	%r13d, (%rax)
	movl	$0, 4(%rax)
LBB0_2:
	movl	-4(%rbx), %r12d
	testl	%r12d, %r12d
	jle	LBB0_3
## %bb.4:
	leaq	(%r12,%r12), %rdx
	movabsq	$-4294967296, %rsi              ## imm = 0xFFFFFFFF00000000
	xorl	%edi, %edi
	movabsq	$8589934592, %r8                ## imm = 0x200000000
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, (%rbx,%rax,4)
	je	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	addq	$2, %rax
	addq	%r8, %rsi
	decl	%edi
	cmpq	%rax, %rdx
	jne	LBB0_5
	jmp	LBB0_13
LBB0_3:
	xorl	%r12d, %r12d
LBB0_13:
	movl	-8(%rbx), %eax
	cmpl	%eax, %r12d
	jne	LBB0_14
## %bb.15:
	cmpl	%ecx, %r12d
	jge	LBB0_18
## %bb.16:
	leaq	-8(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leal	1(%r12), %edi
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	shll	$4, %edi
	callq	_zzmalloc
	movq	%rax, %rcx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	8(%rax), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leal	(%r12,%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leal	1(%r12,%r12), %r13d
	movl	%r13d, (%rcx)
	leal	(,%r12,8), %edx
	movq	%rbx, %rsi
	callq	_memcpy
	leal	8(,%r12,8), %esi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_zzfree
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, (%r15)
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_14:
	leal	(%r12,%r12), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leal	(%r12,%r12), %r13d
	incl	%r13d
	leal	1(%r12), %r15d
LBB0_17:
	xorl	%edi, %edi
	cmpl	%eax, %r12d
	setl	%dil
	callq	_assert
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%r14d, (%rbx,%rax,4)
	movl	%r13d, %eax
	movl	$1, (%rbx,%rax,4)
	movl	%r15d, -4(%rbx)
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	4(%rbx,%rax,4), %edx
	leal	1(%rdx), %r8d
	movl	%r8d, 4(%rbx,%rax,4)
	testl	%edi, %edi
	je	LBB0_18
## %bb.7:
	sarq	$30, %rsi
	cmpl	(%rbx,%rsi), %edx
	jl	LBB0_18
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%rax), %esi
	movslq	%esi, %rsi
	movl	(%rbx,%rsi,4), %esi
	cmpl	%esi, %edx
	jl	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movslq	%eax, %rdi
	leaq	-2(%rax), %rcx
	movslq	%ecx, %rax
	movl	(%rbx,%rax,4), %eax
	movl	%eax, (%rbx,%rdi,4)
	incl	%edi
	movslq	%edi, %rax
	movl	%esi, (%rbx,%rax,4)
	movq	%rcx, %rax
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.10:
	xorl	%eax, %eax
LBB0_11:
	cltq
	movl	%r14d, (%rbx,%rax,4)
	orl	$1, %eax
	cltq
	movl	%r8d, (%rbx,%rax,4)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_add_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_list
_add_list:                              ; @add_list
	.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	x22, x3
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x0]
	cbnz	x20, LBB0_2
; %bb.1:
	mov	x23, x2
	lsl	w0, w2, #3
	bl	_zzmalloc
	add	x20, x0, #8
	str	x20, [x21]
	sub	w8, w23, #1
	stp	w8, wzr, [x0]
LBB0_2:
	ldur	w25, [x20, #-4]
	cmp	w25, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w8, #0
	mov	x9, #0
	add	x11, x20, #4
	mov	x12, #-4294967296
	mov	x10, #8589934592
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w13, [x11, #-4]
	cmp	w13, w19
	b.eq	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	add	w8, w8, #2
	add	x12, x12, x10
	add	x11, x11, #8
	cmp	x25, x9
	b.ne	LBB0_4
	b	LBB0_7
LBB0_6:
	mov	w25, #0
LBB0_7:
	mov	x23, x20
	ldr	w8, [x23, #-8]!
	cmp	w25, w8
	b.ne	LBB0_10
; %bb.8:
	cmp	w25, w22
	b.ge	LBB0_12
; %bb.9:
	add	w26, w25, #1
	lsl	w0, w26, #4
	bl	_zzmalloc
	mov	x22, x0
	add	x24, x0, #8
	lsl	w27, w25, #1
	mov	w28, #1
	bfi	w28, w25, #1, #31
	str	w28, [x0]
	lsl	w2, w25, #3
	mov	x0, x24
	mov	x1, x20
	bl	_memcpy
	lsl	w1, w26, #3
	mov	x0, x23
	bl	_zzfree
	str	x24, [x21]
	ldr	w8, [x22]
	mov	x20, x24
	b	LBB0_11
LBB0_10:
	lsl	w27, w25, #1
	mov	w28, #1
	bfi	w28, w25, #1, #31
	add	w26, w25, #1
LBB0_11:
	cmp	w25, w8
	cset	w0, lt
	bl	_assert
	str	w19, [x20, w27, uxtw #2]
	mov	w8, #1
	str	w8, [x20, w28, uxtw #2]
	stur	w26, [x20, #-4]
LBB0_12:
	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
LBB0_13:
	ldr	w13, [x11]
	add	w10, w13, #1
	str	w10, [x11]
	cbz	w9, LBB0_12
; %bb.14:
	asr	x11, x12, #30
	ldr	w11, [x20, x11]
	cmp	w13, w11
	b.lt	LBB0_12
; %bb.15:
	neg	x9, x9
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	sub	w11, w8, #1
	ldr	w11, [x20, w11, sxtw #2]
	cmp	w13, w11
	b.lt	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	sub	w12, w8, #2
	ldr	w14, [x20, w12, sxtw #2]
	str	w14, [x20, w8, sxtw #2]
	add	w8, w8, #1
	str	w11, [x20, w8, sxtw #2]
	mov	x8, x12
	adds	x9, x9, #1
	b.lo	LBB0_16
; %bb.18:
	mov	w8, #0
LBB0_19:
	sbfiz	x8, x8, #2, #32
	str	w19, [x20, x8]
	orr	x8, x8, #0x4
	str	w10, [x20, x8]
	b	LBB0_12
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_add_list
.subsections_via_symbols
