	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_data_restore                   ## -- Begin function data_restore
	.p2align	4, 0x90
_data_restore:                          ## @data_restore
	.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	%esi, %r14d
	movq	%rdi, %rbx
	callq	_data_get_hidden_state
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_data_get_local_id_by_id
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movl	%eax, %r12d
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_data_restore_del
	testq	%rax, %rax
	jle	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_data_get_pos_by_local_id
	xorl	%edi, %edi
	cmpl	$-1, %eax
	sete	%dil
	callq	_assert
	movl	-44(%rbp), %esi
	xorl	%r15d, %r15d
	movl	$0, %r13d
	cmpl	$-1, %esi
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_data_get_pos_by_local_id
	movl	%eax, %r13d
	xorl	%edi, %edi
	incl	%r13d
	setne	%dil
	callq	_assert
LBB0_6:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_data_move_and_create
	notl	%eax
	shrl	$31, %eax
	movl	%eax, %edi
	callq	_assert
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_lookup_set
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_dbg
	movl	$-1, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"data_restore_del failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_data_restore                   ; -- Begin function data_restore
	.p2align	2
_data_restore:                          ; @data_restore
	.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	x19, x1
	mov	x20, x0
	bl	_data_get_hidden_state
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_data_get_local_id_by_id
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x21, x0
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x21
	bl	_data_restore_del
	cmp	x0, #0
	b.le	LBB0_6
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	bl	_data_get_pos_by_local_id
	cmn	w0, #1
	cset	w0, eq
	bl	_assert
	ldr	w1, [sp, #12]
	cmn	w1, #1
	b.eq	LBB0_7
; %bb.4:
	mov	x0, x20
	bl	_data_get_pos_by_local_id
	adds	w22, w0, #1
	cset	w0, ne
	bl	_assert
	b	LBB0_8
LBB0_5:
	mov	w0, #-1
	b	LBB0_9
LBB0_6:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
	mov	w0, #-1
	b	LBB0_9
LBB0_7:
	mov	w22, #0
LBB0_8:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_data_move_and_create
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_assert
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_lookup_set
	mov	w0, #0
LBB0_9:
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"data_restore_del failed\n"

.subsections_via_symbols
