	.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	%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
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	24(%rsi), %r15
	movq	%r15, %rdi
	callq	_check_dev
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	(%r14), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rbx
	movq	_V4L2_BUF_TYPE_VBI_CAPTURE@GOTPCREL(%rip), %r13
	cmpq	(%rbx), %rax
	je	LBB0_5
## %bb.3:
	cmpq	(%r13), %rax
	jne	LBB0_4
LBB0_5:
	movl	%r12d, %ecx
	cmpq	%rcx, %rax
	jne	LBB0_4
## %bb.6:
	movl	16(%r14), %r8d
	movl	32(%r15), %r9d
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	callq	_dprintk
	movq	(%r14), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_14
## %bb.7:
	movq	$0, 24(%r15)
	leaq	20(%r15), %rdi
	callq	_del_timer_sync
	leaq	16(%r15), %rdi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_s_stream@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	callq	_v4l2_device_call_all
	movq	%r15, %rdi
	callq	_au0828_stream_interrupt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.8:
	movq	_AU0828_MAX_INPUT@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_13
## %bb.9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jge	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_AUVI_INPUT
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%ebx, %edi
	callq	_AUVI_INPUT
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	*%rax
	jmp	LBB0_12
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_1:
	movl	%eax, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%ebx, %ebx
	cmpq	(%r13), %rax
	jne	LBB0_16
## %bb.15:
	movq	$0, 8(%r15)
	movq	%r15, %rdi
	callq	_del_timer_sync
	leaq	8(%r14), %rdi
	callq	_videobuf_streamoff
	movq	_AU0828_RESOURCE_VBI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_res_free
	jmp	LBB0_16
LBB0_13:
	leaq	12(%r14), %rdi
	callq	_videobuf_streamoff
	movq	_AU0828_RESOURCE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_res_free
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_TYPE_VBI_CAPTURE,8,3  ## @V4L2_BUF_TYPE_VBI_CAPTURE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vidioc_streamoff fh=%p t=%d fh->res=%d dev->res=%d\n"

	.comm	_video,4,2                      ## @video
	.comm	_s_stream,4,2                   ## @s_stream
	.comm	_AU0828_MAX_INPUT,4,2           ## @AU0828_MAX_INPUT
	.comm	_AU0828_RESOURCE_VIDEO,4,2      ## @AU0828_RESOURCE_VIDEO
	.comm	_AU0828_RESOURCE_VBI,4,2        ## @AU0828_RESOURCE_VBI
	.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x19, x1
	ldr	x20, [x1, #24]
	mov	x0, x20
	bl	_check_dev
	tbnz	w0, #31, LBB0_11
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x23, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh2:
	adrp	x22, _V4L2_BUF_TYPE_VBI_CAPTURE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _V4L2_BUF_TYPE_VBI_CAPTURE@GOTPAGEOFF]
	ldr	x10, [x22]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_10
; %bb.2:
	cmp	x8, w21, uxtw
	b.ne	LBB0_10
; %bb.3:
	ldr	w4, [x19, #16]
	ldr	w5, [x20, #32]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	mov	x3, x21
	bl	_dprintk
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.4:
	str	xzr, [x20, #24]
	add	x0, x20, #20
	bl	_del_timer_sync
	add	x0, x20, #16
Lloh6:
	adrp	x8, _video@GOTPAGE
Lloh7:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _s_stream@GOTPAGE
Lloh10:
	ldr	x8, [x8, _s_stream@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	w1, #0
	mov	w4, #0
	bl	_v4l2_device_call_all
	mov	x0, x20
	bl	_au0828_stream_interrupt
	cbnz	w0, LBB0_11
; %bb.5:
Lloh12:
	adrp	x22, _AU0828_MAX_INPUT@GOTPAGE
Lloh13:
	ldr	x22, [x22, _AU0828_MAX_INPUT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.6:
	mov	w21, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w21, w21, #1
	ldr	w8, [x22]
	cmp	w21, w8
	b.ge	LBB0_14
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_AUVI_INPUT
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_AUVI_INPUT
	mov	x8, x0
	mov	x0, x20
	mov	w1, #0
	blr	x8
	b	LBB0_7
LBB0_10:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.13:
	str	xzr, [x20, #8]
	mov	x0, x20
	bl	_del_timer_sync
	add	x0, x19, #8
	bl	_videobuf_streamoff
Lloh17:
	adrp	x8, _AU0828_RESOURCE_VBI@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AU0828_RESOURCE_VBI@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
	add	x0, x19, #12
	bl	_videobuf_streamoff
Lloh19:
	adrp	x8, _AU0828_RESOURCE_VIDEO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AU0828_RESOURCE_VIDEO@GOTPAGEOFF]
LBB0_15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_res_free
LBB0_16:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_TYPE_VBI_CAPTURE,8,3  ; @V4L2_BUF_TYPE_VBI_CAPTURE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vidioc_streamoff fh=%p t=%d fh->res=%d dev->res=%d\n"

	.comm	_video,4,2                      ; @video
	.comm	_s_stream,4,2                   ; @s_stream
	.comm	_AU0828_MAX_INPUT,4,2           ; @AU0828_MAX_INPUT
	.comm	_AU0828_RESOURCE_VIDEO,4,2      ; @AU0828_RESOURCE_VIDEO
	.comm	_AU0828_RESOURCE_VBI,4,2        ; @AU0828_RESOURCE_VBI
	.no_dead_strip	_vidioc_streamoff
.subsections_via_symbols
