	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_last_kept                 ## -- Begin function read_last_kept
	.p2align	4, 0x90
_read_last_kept:                        ## @read_last_kept
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	leaq	-36(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_nbit_set
	movq	_mc_store@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_nbit_read_in
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.3:
	testl	%r15d, %r15d
	jne	LBB0_5
## %bb.4:
	movq	(%r12), %rdx
	movq	(%rdx), %rdx
	movq	_MC_STORE_MAGIC@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_6
LBB0_5:
	xorl	%edi, %edi
	cmpl	$4, %ecx
	sete	%dil
	callq	_assert
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	_MC_STORE_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	(%r14), %rdi
	movl	$4, %esi
	callq	_advance_skip_read_ptr
	xorl	%edi, %edi
	cmpl	$4, %eax
	sete	%dil
	callq	_assert
	movq	(%r14), %rdi
	movq	(%r12), %rax
	movl	16(%rax), %esi
	movq	8(%rax), %rdx
	callq	_read_in
	movq	(%r12), %rcx
	xorl	%edi, %edi
	cmpq	8(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	(%r14), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_assert
	movl	$1, %eax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mc_store,8,3                   ## @mc_store
	.comm	_MC_STORE_MAGIC,8,3             ## @MC_STORE_MAGIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_last_kept                 ; -- Begin function read_last_kept
	.p2align	2
_read_last_kept:                        ; @read_last_kept
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	ldr	x1, [x0]
	cbz	x1, LBB0_5
; %bb.1:
	mov	x19, x0
	add	x0, sp, #12
	bl	_nbit_set
Lloh0:
	adrp	x21, _mc_store@GOTPAGE
Lloh1:
	ldr	x21, [x21, _mc_store@GOTPAGEOFF]
	ldr	x1, [x21]
	add	x0, sp, #12
	mov	w2, #4
	bl	_nbit_read_in
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.2:
Lloh2:
	adrp	x22, _MC_STORE_MAGIC@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MC_STORE_MAGIC@GOTPAGEOFF]
	cbnz	w20, LBB0_4
; %bb.3:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_4:
	cmp	w0, #4
	cset	w0, eq
	bl	_assert
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x0, [x19]
	mov	w1, #4
	bl	_advance_skip_read_ptr
	cmp	w0, #4
	cset	w0, eq
	bl	_assert
	ldr	x0, [x19]
	ldr	x8, [x21]
	ldr	w1, [x8, #16]
	ldr	x2, [x8, #8]
	bl	_read_in
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_mc_store,8,3                   ; @mc_store
	.comm	_MC_STORE_MAGIC,8,3             ; @MC_STORE_MAGIC
.subsections_via_symbols
