	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_change_entry_flags          ## -- Begin function do_change_entry_flags
	.p2align	4, 0x90
_do_change_entry_flags:                 ## @do_change_entry_flags
	.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
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movl	%esi, %r14d
	movl	%edi, %r12d
	callq	_conv_list_id
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	movq	_metafile_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.4:
	movl	%r12d, %edi
	movl	$1, %esi
	callq	_prepare_list_metafile
	testq	%rax, %rax
	js	LBB0_5
LBB0_6:
	movl	%r13d, %ebx
	orl	%r15d, %ebx
	cmpl	$255, %r15d
	ja	LBB0_9
## %bb.7:
	cmpl	$-1, %ebx
	jne	LBB0_9
## %bb.8:
	movq	_LEV_LI_SET_FLAGS@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_2
LBB0_9:
	cmpl	$256, %ebx                      ## imm = 0x100
	jae	LBB0_10
## %bb.13:
	movl	%r15d, %eax
	notl	%eax
	andl	%r13d, %eax
	je	LBB0_14
## %bb.15:
	movq	_LEV_LI_DECR_FLAGS@GOTPCREL(%rip), %rcx
	movl	%eax, %r13d
	addq	(%rcx), %r13
	movq	_lev_list_object_bytes@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	$12, %rbx
	movl	%r12d, %edi
	callq	_FIRST_INT
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_alloc_log_event
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_upcopy_list_object_id
	movq	%rbx, %rdi
	callq	_set_entry_flags
	testl	%r15d, %r15d
	jne	LBB0_17
	jmp	LBB0_2
LBB0_5:
	movl	$-2, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpl	$-1, %ebx
	je	LBB0_11
## %bb.12:
	movq	_LEV_LI_CHANGE_FLAGS_LONG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_lev_list_object_bytes@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	addq	$12, %r13
	movl	%r12d, %edi
	callq	_FIRST_INT
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_alloc_log_event
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_upcopy_list_object_id
	movq	%r13, %rdi
	callq	_LEV_ADJUST_LO
	notl	%ebx
	movl	%ebx, 4(%rax)
	movl	%r15d, 8(%rax)
	jmp	LBB0_19
LBB0_14:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	je	LBB0_2
LBB0_17:
	movq	_LEV_LI_INCR_FLAGS@GOTPCREL(%rip), %rax
LBB0_18:
	movl	%r15d, %r15d
	addq	(%rax), %r15
	movq	_lev_list_object_bytes@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	$12, %rbx
	movl	%r12d, %edi
	callq	_FIRST_INT
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_alloc_log_event
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_upcopy_list_object_id
LBB0_19:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_entry_flags                ## TAILCALL
LBB0_11:
	movq	_LEV_LI_SET_FLAGS_LONG@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_lev_list_object_bytes@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	$12, %rbx
	movl	%r12d, %edi
	callq	_FIRST_INT
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_alloc_log_event
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_upcopy_list_object_id
	movq	%r13, %rdi
	callq	_LEV_ADJUST_LO
	movl	%r15d, (%rax)
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_metafile_mode,8,3              ## @metafile_mode
	.comm	_LEV_LI_SET_FLAGS,8,3           ## @LEV_LI_SET_FLAGS
	.comm	_lev_list_object_bytes,8,3      ## @lev_list_object_bytes
	.comm	_LEV_LI_SET_FLAGS_LONG,8,3      ## @LEV_LI_SET_FLAGS_LONG
	.comm	_LEV_LI_CHANGE_FLAGS_LONG,8,3   ## @LEV_LI_CHANGE_FLAGS_LONG
	.comm	_LEV_LI_DECR_FLAGS,8,3          ## @LEV_LI_DECR_FLAGS
	.comm	_LEV_LI_INCR_FLAGS,8,3          ## @LEV_LI_INCR_FLAGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_change_entry_flags          ; -- Begin function do_change_entry_flags
	.p2align	2
_do_change_entry_flags:                 ; @do_change_entry_flags
	.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	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_conv_list_id
	tbnz	x0, #63, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _metafile_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _metafile_mode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	w1, #1
	bl	_prepare_list_metafile
	tbnz	x0, #63, LBB0_10
LBB0_3:
	orr	w24, w22, w21
	cmp	w21, #255
	b.hi	LBB0_7
; %bb.4:
	cmn	w24, #1
	b.ne	LBB0_7
; %bb.5:
Lloh3:
	adrp	x8, _LEV_LI_SET_FLAGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LEV_LI_SET_FLAGS@GOTPAGEOFF]
	b	LBB0_16
LBB0_6:
	mov	w0, #-1
	b	LBB0_11
LBB0_7:
	cmp	w24, #256
	b.hs	LBB0_12
; %bb.8:
	bics	w8, w22, w21
	b.eq	LBB0_14
; %bb.9:
Lloh5:
	adrp	x9, _LEV_LI_DECR_FLAGS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LEV_LI_DECR_FLAGS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x22, x9, w8, uxtw
Lloh8:
	adrp	x8, _lev_list_object_bytes@GOTPAGE
Lloh9:
	ldr	x8, [x8, _lev_list_object_bytes@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x23, x8, #12
	mov	x0, x20
	bl	_FIRST_INT
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_alloc_log_event
	mov	x22, x0
	mov	x1, x20
	mov	x2, x19
	bl	_upcopy_list_object_id
	mov	x0, x22
	bl	_set_entry_flags
	cbnz	w21, LBB0_15
	b	LBB0_11
LBB0_10:
	mov	w0, #-2
LBB0_11:
	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
LBB0_12:
	cmn	w24, #1
	b.eq	LBB0_18
; %bb.13:
Lloh11:
	adrp	x8, _LEV_LI_CHANGE_FLAGS_LONG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LEV_LI_CHANGE_FLAGS_LONG@GOTPAGEOFF]
Lloh13:
	ldr	x22, [x8]
Lloh14:
	adrp	x8, _lev_list_object_bytes@GOTPAGE
Lloh15:
	ldr	x8, [x8, _lev_list_object_bytes@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x23, x8, #12
	mov	x0, x20
	bl	_FIRST_INT
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_alloc_log_event
	mov	x22, x0
	mov	x1, x20
	mov	x2, x19
	bl	_upcopy_list_object_id
	mov	x0, x22
	bl	_LEV_ADJUST_LO
	mvn	w8, w24
	stp	w8, w21, [x0, #4]
	b	LBB0_17
LBB0_14:
	mov	w0, #0
	cbz	w21, LBB0_11
LBB0_15:
Lloh17:
	adrp	x8, _LEV_LI_INCR_FLAGS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LEV_LI_INCR_FLAGS@GOTPAGEOFF]
LBB0_16:
	ldr	x8, [x8]
	add	x21, x8, w21, uxtw
Lloh19:
	adrp	x8, _lev_list_object_bytes@GOTPAGE
Lloh20:
	ldr	x8, [x8, _lev_list_object_bytes@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	add	x22, x8, #12
	mov	x0, x20
	bl	_FIRST_INT
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_alloc_log_event
	mov	x22, x0
	mov	x1, x20
	mov	x2, x19
	bl	_upcopy_list_object_id
LBB0_17:
	mov	x0, x22
	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_entry_flags
LBB0_18:
Lloh22:
	adrp	x8, _LEV_LI_SET_FLAGS_LONG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LEV_LI_SET_FLAGS_LONG@GOTPAGEOFF]
Lloh24:
	ldr	x22, [x8]
Lloh25:
	adrp	x8, _lev_list_object_bytes@GOTPAGE
Lloh26:
	ldr	x8, [x8, _lev_list_object_bytes@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	add	x23, x8, #12
	mov	x0, x20
	bl	_FIRST_INT
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_alloc_log_event
	mov	x22, x0
	mov	x1, x20
	mov	x2, x19
	bl	_upcopy_list_object_id
	mov	x0, x22
	bl	_LEV_ADJUST_LO
	str	w21, [x0]
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_metafile_mode,8,3              ; @metafile_mode
	.comm	_LEV_LI_SET_FLAGS,8,3           ; @LEV_LI_SET_FLAGS
	.comm	_lev_list_object_bytes,8,3      ; @lev_list_object_bytes
	.comm	_LEV_LI_SET_FLAGS_LONG,8,3      ; @LEV_LI_SET_FLAGS_LONG
	.comm	_LEV_LI_CHANGE_FLAGS_LONG,8,3   ; @LEV_LI_CHANGE_FLAGS_LONG
	.comm	_LEV_LI_DECR_FLAGS,8,3          ; @LEV_LI_DECR_FLAGS
	.comm	_LEV_LI_INCR_FLAGS,8,3          ; @LEV_LI_INCR_FLAGS
.subsections_via_symbols
