	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_1
## %bb.3:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	cmpl	$0, 48(%r14)
	je	LBB0_6
## %bb.7:
	cmpq	%rbx, 40(%r14)
	je	LBB0_10
## %bb.8:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_10:
	leaq	28(%r14), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_14
LBB0_12:
	movq	$0, 32(%r14)
	movq	%r14, %rdi
	callq	_gspca_stream_off
	movq	%rbx, %rdi
	callq	_mutex_unlock
	leaq	24(%r14), %rdi
	callq	_wake_up_interruptible
	leaq	20(%r14), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	16(%r14), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	$0, 8(%r14)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_EBUSY,4,2                      ## @EBUSY
	.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	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w8, [x19, #48]
	cbz	w8, LBB0_9
; %bb.7:
	ldr	x8, [x19, #40]
	cmp	x8, x20
	b.eq	LBB0_10
; %bb.8:
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
	mov	w20, #0
	b	LBB0_13
LBB0_10:
	add	x20, x19, #28
	mov	x0, x20
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_14
; %bb.11:
Lloh9:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_13:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_5
LBB0_14:
	str	xzr, [x19, #32]
	mov	x0, x19
	bl	_gspca_stream_off
	mov	x0, x20
	bl	_mutex_unlock
	add	x0, x19, #24
	bl	_wake_up_interruptible
	add	x0, x19, #20
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #16
	mov	w1, #0
	bl	_atomic_set
	mov	w20, #0
	str	xzr, [x19, #8]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_vidioc_streamoff
.subsections_via_symbols
