	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov51x_clear_snapshot
_ov51x_clear_snapshot:                  ## @ov51x_clear_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_BCL_OV511@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	_R51x_SYS_SNAP@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_reg_w
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_reg_w
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_reg_w                          ## TAILCALL
LBB0_1:
	movq	_BCL_OV518@GOTPCREL(%rip), %rcx
	movq	8(%rbx), %rdi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.4:
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BCL_OV511,8,3                  ## @BCL_OV511
	.comm	_R51x_SYS_SNAP,4,2              ## @R51x_SYS_SNAP
	.comm	_BCL_OV518,8,3                  ## @BCL_OV518
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"snapshot reset not supported yet on OV518(+)\n"

L_.str.1:                               ## @.str.1
	.asciz	"clear snap: invalid bridge type\n"

	.no_dead_strip	_ov51x_clear_snapshot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov51x_clear_snapshot
_ov51x_clear_snapshot:                  ; @ov51x_clear_snapshot
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _BCL_OV511@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BCL_OV511@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x20, _R51x_SYS_SNAP@GOTPAGE
Lloh4:
	ldr	x20, [x20, _R51x_SYS_SNAP@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_reg_w
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #2
	bl	_reg_w
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_reg_w
LBB0_2:
Lloh5:
	adrp	x9, _BCL_OV518@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BCL_OV518@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	x0, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_warn
LBB0_4:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BCL_OV511,8,3                  ; @BCL_OV511
	.comm	_R51x_SYS_SNAP,4,2              ; @R51x_SYS_SNAP
	.comm	_BCL_OV518,8,3                  ; @BCL_OV518
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"snapshot reset not supported yet on OV518(+)\n"

l_.str.1:                               ; @.str.1
	.asciz	"clear snap: invalid bridge type\n"

	.no_dead_strip	_ov51x_clear_snapshot
.subsections_via_symbols
