	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_newsr_load_saved_data          ## -- Begin function newsr_load_saved_data
	.p2align	4, 0x90
_newsr_load_saved_data:                 ## @newsr_load_saved_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %esi
	testl	%esi, %esi
	je	LBB0_5
## %bb.1:
	leaq	-20(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_nbit_set
	movq	_mc_store@GOTPCREL(%rip), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$24, %edx
	callq	_nbit_read_in
	cmpl	$24, %eax
	jne	LBB0_2
## %bb.3:
	movq	_NEWSR_STORE_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, (%r14)
	callq	_assert
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	movq	_tagsave@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movq	_MAX_QUERY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	cmovlq	%rax, %rdx
	movq	_QLsave@GOTPCREL(%rip), %rbx
	movl	%edx, (%rbx)
	movq	_Qsave@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shll	$3, %edx
	leaq	-20(%rbp), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_nbit_read_in
	movl	(%rbx), %ecx
	shll	$3, %ecx
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	sete	%dil
	callq	_assert
	jmp	LBB0_4
LBB0_5:
	movq	_tagsave@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vkprintf                       ## TAILCALL
LBB0_2:
	movq	_tagsave@GOTPCREL(%rip), %rcx
	movq	$0, (%rcx)
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_vkprintf
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tagsave,8,3                    ## @tagsave
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"newsr_load_saved_data: !c->Tmp\n"

	.comm	_mc_store,24,3                  ## @mc_store
L_.str.1:                               ## @.str.1
	.asciz	"newsr_load_saved_data: l = %d\n"

	.comm	_NEWSR_STORE_MAGIC,4,2          ## @NEWSR_STORE_MAGIC
	.comm	_QLsave,4,2                     ## @QLsave
	.comm	_MAX_QUERY,8,3                  ## @MAX_QUERY
	.comm	_Qsave,8,3                      ## @Qsave
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_newsr_load_saved_data          ; -- Begin function newsr_load_saved_data
	.p2align	2
_newsr_load_saved_data:                 ; @newsr_load_saved_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w1, [x0]
	cbz	w1, LBB0_3
; %bb.1:
	add	x0, sp, #12
	bl	_nbit_set
Lloh0:
	adrp	x19, _mc_store@GOTPAGE
Lloh1:
	ldr	x19, [x19, _mc_store@GOTPAGEOFF]
	add	x0, sp, #12
	mov	x1, x19
	mov	w2, #24
	bl	_nbit_read_in
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #24
	b.ne	LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _NEWSR_STORE_MAGIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NEWSR_STORE_MAGIC@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	str	w0, [x19]
	bl	_assert
Lloh5:
	adrp	x8, _tagsave@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tagsave@GOTPAGEOFF]
	ldp	x10, x9, [x19, #8]
Lloh7:
	str	x9, [x8]
Lloh8:
	adrp	x8, _MAX_QUERY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_QUERY@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x19, _QLsave@GOTPAGE
Lloh12:
	ldr	x19, [x19, _QLsave@GOTPAGEOFF]
	cmp	x10, x8
	csel	x8, x10, x8, lt
	str	w8, [x19]
Lloh13:
	adrp	x9, _Qsave@GOTPAGE
Lloh14:
	ldr	x9, [x9, _Qsave@GOTPAGEOFF]
Lloh15:
	ldr	x1, [x9]
	lsl	w2, w8, #3
	add	x0, sp, #12
	bl	_nbit_read_in
	ldr	w8, [x19]
	cmp	w0, w8, lsl #3
	cset	w0, eq
	bl	_assert
	b	LBB0_5
LBB0_3:
Lloh16:
	adrp	x8, _tagsave@GOTPAGE
Lloh17:
	ldr	x8, [x8, _tagsave@GOTPAGEOFF]
Lloh18:
	str	xzr, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_vkprintf
LBB0_4:
Lloh21:
	adrp	x8, _tagsave@GOTPAGE
Lloh22:
	ldr	x8, [x8, _tagsave@GOTPAGEOFF]
Lloh23:
	str	xzr, [x8]
	str	x0, [sp]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #4
	bl	_vkprintf
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_tagsave,8,3                    ; @tagsave
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"newsr_load_saved_data: !c->Tmp\n"

	.comm	_mc_store,24,3                  ; @mc_store
l_.str.1:                               ; @.str.1
	.asciz	"newsr_load_saved_data: l = %d\n"

	.comm	_NEWSR_STORE_MAGIC,4,2          ; @NEWSR_STORE_MAGIC
	.comm	_QLsave,4,2                     ; @QLsave
	.comm	_MAX_QUERY,8,3                  ; @MAX_QUERY
	.comm	_Qsave,8,3                      ; @Qsave
.subsections_via_symbols
