	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_streamoff
_vidioc_streamoff:                      ## @vidioc_streamoff
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_meye@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	xorl	%eax, %eax
	callq	_mchip_hic_stop
	leaq	20(%rbx), %rdi
	callq	_kfifo_reset
	leaq	16(%rbx), %rdi
	callq	_kfifo_reset
	movq	_MEYE_MAX_BUFNBRS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	8(%rbx), %rcx
	xorl	%edx, %edx
	movq	_MEYE_BUF_UNUSED@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	movl	%edi, (%rcx,%rdx,4)
	incq	%rdx
	movl	(%rax), %edi
	cmpq	%rdi, %rdx
	jb	LBB0_2
LBB0_3:
	movq	_meye@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_meye,24,3                      ## @meye
	.comm	_MEYE_MAX_BUFNBRS,4,2           ## @MEYE_MAX_BUFNBRS
	.comm	_MEYE_BUF_UNUSED,4,2            ## @MEYE_BUF_UNUSED
	.no_dead_strip	_vidioc_streamoff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_streamoff
_vidioc_streamoff:                      ; @vidioc_streamoff
	.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
Lloh0:
	adrp	x19, _meye@GOTPAGE
Lloh1:
	ldr	x19, [x19, _meye@GOTPAGEOFF]
	mov	x0, x19
	bl	_mutex_lock
	bl	_mchip_hic_stop
	add	x0, x19, #20
	bl	_kfifo_reset
	add	x0, x19, #16
	bl	_kfifo_reset
Lloh2:
	adrp	x8, _MEYE_MAX_BUFNBRS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MEYE_MAX_BUFNBRS@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_3
; %bb.1:
	mov	x9, #0
	ldr	x10, [x19, #8]
Lloh4:
	adrp	x11, _MEYE_BUF_UNUSED@GOTPAGE
Lloh5:
	ldr	x11, [x11, _MEYE_BUF_UNUSED@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	str	w12, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldr	w12, [x8]
	cmp	x9, x12
	b.lo	LBB0_2
LBB0_3:
Lloh6:
	adrp	x0, _meye@GOTPAGE
Lloh7:
	ldr	x0, [x0, _meye@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_meye,24,3                      ; @meye
	.comm	_MEYE_MAX_BUFNBRS,4,2           ; @MEYE_MAX_BUFNBRS
	.comm	_MEYE_BUF_UNUSED,4,2            ; @MEYE_BUF_UNUSED
	.no_dead_strip	_vidioc_streamoff
.subsections_via_symbols
