	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_add_list_entry              ## -- Begin function do_add_list_entry
	.p2align	4, 0x90
_do_add_list_entry:                     ## @do_add_list_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %r12d
	xorl	%edi, %edi
	cmpl	$4, %edx
	setb	%dil
	callq	_assert
	movl	%r12d, %edi
	callq	_conv_list_id
	movq	%rax, %rcx
	movl	$-1, %eax
	cmpl	$255, %r13d
	ja	LBB0_6
## %bb.1:
	testq	%rcx, %rcx
	js	LBB0_6
## %bb.2:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.3:
	movq	_metafile_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.4:
	movl	%r12d, %edi
	movl	$1, %esi
	callq	_prepare_list_metafile
	testq	%rax, %rax
	js	LBB0_5
LBB0_7:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_8
## %bb.9:
	cmpl	$0, (%r14)
	jne	LBB0_13
## %bb.10:
	cmpl	$0, 4(%r14)
	jne	LBB0_13
## %bb.11:
	cmpl	$0, 8(%r14)
	jne	LBB0_13
## %bb.12:
	xorl	%ecx, %ecx
	cmpl	$0, 12(%r14)
	cmoveq	%rcx, %r14
	jmp	LBB0_13
LBB0_8:
	xorl	%r14d, %r14d
LBB0_13:
	testq	%r14, %r14
	movl	$0, %r15d
	cmoveq	%r14, %r15
	cmpl	$1, %ebx
	cmovneq	%r14, %r15
	cmpl	$3, %ebx
	cmovel	%eax, %ebx
	cmpl	$2, %ebx
	je	LBB0_17
## %bb.14:
	cmpl	$1, %ebx
	jne	LBB0_18
## %bb.15:
	movl	%r12d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_entry_exists
	testq	%rax, %rax
	jne	LBB0_18
## %bb.16:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_17:
	movl	%r12d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_entry_exists
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_6
LBB0_18:
	testq	%r15, %r15
	je	LBB0_20
## %bb.19:
	movq	_LEV_LI_SET_ENTRY_EXT@GOTPCREL(%rip), %rax
	shll	$8, %ebx
	subl	%ebx, %r13d
	addl	(%rax), %r13d
	movq	_lev_list_object_bytes@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	$8, %rbx
	movl	%r12d, %edi
	callq	_FIRST_INT
	movl	%r13d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_alloc_log_event
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	%r12d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_upcopy_list_object_id
	movq	%r14, %rdi
	callq	_LEV_ADJUST_LO
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, (%rax)
	movl	4(%rax), %edi
	movq	%r15, %rsi
	movl	$16, %edx
	callq	_memcpy
	xorl	%esi, %esi
	jmp	LBB0_21
LBB0_20:
	movq	_LEV_LI_SET_ENTRY@GOTPCREL(%rip), %rax
	shll	$8, %ebx
	subl	%ebx, %r13d
	addl	(%rax), %r13d
	movq	_lev_list_object_bytes@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	$4, %rbx
	movl	%r12d, %edi
	callq	_FIRST_INT
	movl	%r13d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_alloc_log_event
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	%r12d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_upcopy_list_object_id
	movq	%r14, %rdi
	callq	_LEV_ADJUST_LO
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, (%rax)
	movl	$1, %esi
LBB0_21:
	movq	%r14, %rdi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_list_entry                 ## TAILCALL
LBB0_5:
	movl	$-2, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_metafile_mode,8,3              ## @metafile_mode
	.comm	_LEV_LI_SET_ENTRY_EXT,4,2       ## @LEV_LI_SET_ENTRY_EXT
	.comm	_lev_list_object_bytes,8,3      ## @lev_list_object_bytes
	.comm	_LEV_LI_SET_ENTRY,4,2           ## @LEV_LI_SET_ENTRY
	.comm	_LEV_LI_SET_ENTRY_LONG,4,2      ## @LEV_LI_SET_ENTRY_LONG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_add_list_entry              ; -- Begin function do_add_list_entry
	.p2align	2
_do_add_list_entry:                     ; @do_add_list_entry
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x24, x5
	mov	x19, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
	cmp	w2, #4
	cset	w0, lo
	bl	_assert
	mov	x0, x21
	bl	_conv_list_id
	mov	x8, x0
	mov	w0, #-1
	cmp	w22, #255
	b.hi	LBB0_20
; %bb.1:
	tbnz	x8, #63, LBB0_20
; %bb.2:
	cbz	w23, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _metafile_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _metafile_mode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x21
	mov	w1, #1
	bl	_prepare_list_metafile
	tbnz	x0, #63, LBB0_19
LBB0_5:
	cbz	x24, LBB0_10
; %bb.6:
	ldr	w8, [x24]
	cbnz	w8, LBB0_10
; %bb.7:
	ldr	w8, [x24, #4]
	cbnz	w8, LBB0_10
; %bb.8:
	ldr	w8, [x24, #8]
	cbnz	w8, LBB0_10
; %bb.9:
	ldr	w8, [x24, #12]
	cmp	w8, #0
	csel	x24, xzr, x24, eq
LBB0_10:
	cmp	x24, #0
	ccmp	w23, #1, #0, ne
	csel	x24, xzr, x24, eq
	cmp	w23, #3
	csel	w23, wzr, w23, eq
	cmp	w23, #2
	b.eq	LBB0_13
; %bb.11:
	cmp	w23, #1
	b.ne	LBB0_15
; %bb.12:
	mov	x0, x21
	mov	x1, x20
	bl	_entry_exists
	cbnz	x0, LBB0_15
	b	LBB0_20
LBB0_13:
	mov	x0, x21
	mov	x1, x20
	bl	_entry_exists
	cbz	x0, LBB0_15
; %bb.14:
	mov	w0, #0
	b	LBB0_20
LBB0_15:
	cbz	x24, LBB0_17
; %bb.16:
Lloh3:
	adrp	x8, _LEV_LI_SET_ENTRY_EXT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LEV_LI_SET_ENTRY_EXT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w9, w22, w23, lsl #8
	add	w22, w9, w8
Lloh6:
	adrp	x8, _lev_list_object_bytes@GOTPAGE
Lloh7:
	ldr	x8, [x8, _lev_list_object_bytes@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x23, x8, #8
	mov	x0, x21
	bl	_FIRST_INT
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_alloc_log_event
	mov	x22, x0
	mov	x1, x21
	mov	x2, x20
	bl	_upcopy_list_object_id
	mov	x0, x22
	bl	_LEV_ADJUST_LO
	str	w19, [x0]
	ldr	w0, [x0, #4]
	mov	x1, x24
	mov	w2, #16
	bl	_memcpy
	mov	w1, #0
	b	LBB0_18
LBB0_17:
Lloh9:
	adrp	x8, _LEV_LI_SET_ENTRY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LEV_LI_SET_ENTRY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	sub	w9, w22, w23, lsl #8
	add	w22, w9, w8
Lloh12:
	adrp	x8, _lev_list_object_bytes@GOTPAGE
Lloh13:
	ldr	x8, [x8, _lev_list_object_bytes@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x23, x8, #4
	mov	x0, x21
	bl	_FIRST_INT
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_alloc_log_event
	mov	x22, x0
	mov	x1, x21
	mov	x2, x20
	bl	_upcopy_list_object_id
	mov	x0, x22
	bl	_LEV_ADJUST_LO
	str	w19, [x0]
	mov	w1, #1
LBB0_18:
	mov	x0, x22
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_set_list_entry
LBB0_19:
	mov	w0, #-2
LBB0_20:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_metafile_mode,8,3              ; @metafile_mode
	.comm	_LEV_LI_SET_ENTRY_EXT,4,2       ; @LEV_LI_SET_ENTRY_EXT
	.comm	_lev_list_object_bytes,8,3      ; @lev_list_object_bytes
	.comm	_LEV_LI_SET_ENTRY,4,2           ; @LEV_LI_SET_ENTRY
	.comm	_LEV_LI_SET_ENTRY_LONG,4,2      ; @LEV_LI_SET_ENTRY_LONG
.subsections_via_symbols
