	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpif_streamoff
_vpif_streamoff:                        ## @vpif_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	%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
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPCREL(%rip), %r14
	cmpl	%edx, (%r14)
	jne	LBB0_1
## %bb.3:
	movq	_VPIF_VIDEO_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rsi), %rcx
	cmpl	$0, (%rcx,%rax,4)
	je	LBB0_4
## %bb.5:
	movq	8(%rsi), %r13
	movq	8(%r13), %rcx
	leaq	(%rax,%rax,2), %r12
	cmpl	$0, (%rcx,%r12,4)
	je	LBB0_6
## %bb.7:
	movl	%edx, %ebx
	leaq	(%rcx,%r12,4), %r15
	addq	$8, %r15
	movq	%r15, %rdi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	callq	_vpif_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_vpif_err
	movq	_EACCES@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12,4), %rdx
	cmpl	%ebx, (%r14)
	jne	LBB0_16
## %bb.11:
	movq	_VPIF_CHANNEL2_VIDEO@GOTPCREL(%rip), %rcx
	movq	(%r13), %rax
	cmpq	%rax, (%rcx)
	jne	LBB0_13
## %bb.12:
	xorl	%edi, %edi
	movq	%rdx, %r14
	callq	_enable_channel2
	xorl	%edi, %edi
	callq	_channel2_intr_enable
	movq	%r14, %rdx
	movq	(%r13), %rax
LBB0_13:
	movq	_VPIF_CHANNEL3_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_15
## %bb.14:
	cmpl	$2, (%rdx)
	jne	LBB0_16
LBB0_15:
	xorl	%edi, %edi
	movq	%rdx, %r14
	callq	_enable_channel3
	xorl	%edi, %edi
	callq	_channel3_intr_enable
	movq	%r14, %rdx
LBB0_16:
	movl	$0, (%rdx)
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12,4), %rdi
	addq	$4, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_videobuf_streamoff             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VPIF_VIDEO_INDEX,8,3           ## @VPIF_VIDEO_INDEX
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,4,2 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"buffer type not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"fh->io_allowed\n"

	.comm	_EACCES,4,2                     ## @EACCES
L_.str.2:                               ## @.str.2
	.asciz	"channel->started\n"

	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_VPIF_CHANNEL2_VIDEO,8,3        ## @VPIF_CHANNEL2_VIDEO
	.comm	_VPIF_CHANNEL3_VIDEO,8,3        ## @VPIF_CHANNEL3_VIDEO
	.no_dead_strip	_vpif_streamoff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpif_streamoff
_vpif_streamoff:                        ; @vpif_streamoff
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x25, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, w2
	b.ne	LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _VPIF_VIDEO_INDEX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VPIF_VIDEO_INDEX@GOTPAGEOFF]
Lloh4:
	ldr	x21, [x8]
	ldr	x8, [x1]
	ldr	w8, [x8, x21, lsl #2]
	cbz	w8, LBB0_7
; %bb.2:
	ldr	x24, [x1, #8]
	ldr	x22, [x24, #8]
	mov	w8, #12
	madd	x23, x21, x8, x22
	ldr	w8, [x23]
	cbz	w8, LBB0_9
; %bb.3:
	mov	x20, x2
	mov	w8, #12
	madd	x8, x21, x8, x22
	add	x19, x8, #8
	mov	x0, x19
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_10
; %bb.4:
Lloh5:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
LBB0_6:
	bl	_vpif_err
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_vpif_err
Lloh13:
	adrp	x8, _EACCES@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_10:
	ldr	w8, [x25]
	cmp	w8, w20
	b.ne	LBB0_16
; %bb.11:
Lloh17:
	adrp	x8, _VPIF_CHANNEL2_VIDEO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VPIF_CHANNEL2_VIDEO@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x8]
	ldr	x8, [x24]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	w0, #0
	bl	_enable_channel2
	mov	w0, #0
	bl	_channel2_intr_enable
	ldr	x8, [x24]
LBB0_13:
Lloh20:
	adrp	x9, _VPIF_CHANNEL3_VIDEO@GOTPAGE
Lloh21:
	ldr	x9, [x9, _VPIF_CHANNEL3_VIDEO@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.eq	LBB0_15
; %bb.14:
	ldr	w8, [x23]
	cmp	w8, #2
	b.ne	LBB0_16
LBB0_15:
	mov	w0, #0
	bl	_enable_channel3
	mov	w0, #0
	bl	_channel3_intr_enable
LBB0_16:
	str	wzr, [x23]
	mov	x0, x19
	bl	_mutex_unlock
	mov	w8, #12
	madd	x8, x21, x8, x22
	add	x0, x8, #4
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_videobuf_streamoff
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_VPIF_VIDEO_INDEX,8,3           ; @VPIF_VIDEO_INDEX
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,4,2 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"buffer type not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"fh->io_allowed\n"

	.comm	_EACCES,4,2                     ; @EACCES
l_.str.2:                               ; @.str.2
	.asciz	"channel->started\n"

	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_VPIF_CHANNEL2_VIDEO,8,3        ; @VPIF_CHANNEL2_VIDEO
	.comm	_VPIF_CHANNEL3_VIDEO,8,3        ; @VPIF_CHANNEL3_VIDEO
	.no_dead_strip	_vpif_streamoff
.subsections_via_symbols
