	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_reset_snapshot
_sd_reset_snapshot:                     ## @sd_reset_snapshot
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	$0, 8(%rdi)
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_2
## %bb.3:
	cltq
	leaq	l_switch.table.sd_reset_snapshot(%rip), %rcx
	movq	(%rcx,%rax,8), %r15
	leaq	l_switch.table.sd_reset_snapshot.1(%rip), %rcx
	movl	(%rcx,%rax,4), %edx
	leaq	l_switch.table.sd_reset_snapshot.2(%rip), %rcx
	movl	(%rcx,%rax,4), %r14d
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_reg_w
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reg_w                          ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R51x_SYS_SNAP,4,2              ## @R51x_SYS_SNAP
	.comm	_R51x_SYS_RESET,4,2             ## @R51x_SYS_RESET
	.no_dead_strip	_sd_reset_snapshot
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.sd_reset_snapshot
l_switch.table.sd_reset_snapshot:
	.quad	_R51x_SYS_RESET
	.quad	_R51x_SYS_SNAP
	.quad	_R51x_SYS_SNAP
	.quad	_R51x_SYS_SNAP
	.quad	_R51x_SYS_SNAP

	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.sd_reset_snapshot.1
l_switch.table.sd_reset_snapshot.1:
	.long	64                              ## 0x40
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2

	.p2align	2                               ## @switch.table.sd_reset_snapshot.2
l_switch.table.sd_reset_snapshot.2:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_reset_snapshot
_sd_reset_snapshot:                     ; @sd_reset_snapshot
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x0
	str	xzr, [x0, #8]
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.2:
Lloh0:
	adrp	x9, l_switch.table.sd_reset_snapshot@PAGE
Lloh1:
	add	x9, x9, l_switch.table.sd_reset_snapshot@PAGEOFF
	ldr	x21, [x9, w8, sxtw #3]
	sbfiz	x8, x8, #2, #32
Lloh2:
	adrp	x9, l_switch.table.sd_reset_snapshot.1@PAGE
Lloh3:
	add	x9, x9, l_switch.table.sd_reset_snapshot.1@PAGEOFF
	ldr	w2, [x9, x8]
Lloh4:
	adrp	x9, l_switch.table.sd_reset_snapshot.2@PAGE
Lloh5:
	add	x9, x9, l_switch.table.sd_reset_snapshot.2@PAGEOFF
	ldr	w20, [x9, x8]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_reg_w
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_reg_w
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_R51x_SYS_SNAP,4,2              ; @R51x_SYS_SNAP
	.comm	_R51x_SYS_RESET,4,2             ; @R51x_SYS_RESET
	.no_dead_strip	_sd_reset_snapshot
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.sd_reset_snapshot
l_switch.table.sd_reset_snapshot:
	.quad	_R51x_SYS_RESET
	.quad	_R51x_SYS_SNAP
	.quad	_R51x_SYS_SNAP
	.quad	_R51x_SYS_SNAP
	.quad	_R51x_SYS_SNAP

	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.sd_reset_snapshot.1
l_switch.table.sd_reset_snapshot.1:
	.long	64                              ; 0x40
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2

	.p2align	2                               ; @switch.table.sd_reset_snapshot.2
l_switch.table.sd_reset_snapshot.2:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0

.subsections_via_symbols
