	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_streamon
_vidioc_streamon:                       ## @vidioc_streamon
	.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, %r15
	movq	16(%rsi), %r14
	movq	%r14, %rdi
	callq	_check_dev
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.1:
	xorl	%edi, %edi
	cmpl	%r12d, (%r15)
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movl	12(%r15), %r8d
	movl	20(%r14), %r9d
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	callq	_dprintk
	movq	%r15, %rdi
	callq	_get_ressource
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_res_get
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	cmpl	%r12d, %eax
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_au0828_analog_stream_enable
	leaq	16(%r14), %rdi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_s_stream@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	movl	$1, %r8d
	callq	_v4l2_device_call_all
	movl	(%r13), %eax
LBB0_8:
	movslq	(%r15), %rcx
	cmpl	%eax, %ecx
	jne	LBB0_12
## %bb.9:
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_videobuf_streamon
	movl	%eax, %ebx
	movl	$1, (%r14)
	addq	$12, %r14
	jmp	LBB0_10
LBB0_12:
	movq	_V4L2_BUF_TYPE_VBI_CAPTURE@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_11
## %bb.13:
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_videobuf_streamon
	movl	%eax, %ebx
	movl	$1, 4(%r14)
	addq	$8, %r14
LBB0_10:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rsi
	addq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_mod_timer
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vidioc_streamon fh=%p t=%d fh->res=%d dev->res=%d\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_video,4,2                      ## @video
	.comm	_s_stream,4,2                   ## @s_stream
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_V4L2_BUF_TYPE_VBI_CAPTURE,8,3  ## @V4L2_BUF_TYPE_VBI_CAPTURE
	.no_dead_strip	_vidioc_streamon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_streamon
_vidioc_streamon:                       ; @vidioc_streamon
	.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	x22, x2
	mov	x21, x1
	ldr	x19, [x1, #16]
	mov	x0, x19
	bl	_check_dev
	mov	x20, x0
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, w22
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	ldr	w4, [x21, #12]
	ldr	w5, [x19, #20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	mov	x3, x22
	bl	_dprintk
	mov	x0, x21
	bl	_get_ressource
	mov	x1, x0
	mov	x0, x21
	bl	_res_get
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.4:
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	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_7:
Lloh6:
	adrp	x23, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w22
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_au0828_analog_stream_enable
	add	x0, x19, #16
Lloh8:
	adrp	x8, _video@GOTPAGE
Lloh9:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _s_stream@GOTPAGE
Lloh12:
	ldr	x8, [x8, _s_stream@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	w1, #0
	mov	w4, #1
	bl	_v4l2_device_call_all
	ldr	w8, [x23]
LBB0_9:
	ldrsw	x9, [x21]
	cmp	w9, w8
	b.ne	LBB0_11
; %bb.10:
	add	x0, x21, #8
	bl	_videobuf_streamon
	mov	x20, x0
	mov	w8, #1
	str	w8, [x19], #12
Lloh14:
	adrp	x8, _jiffies@GOTPAGE
Lloh15:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _HZ@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh19:
	ldrsw	x9, [x9]
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w9, w9, w10
	add	x1, x8, w9, sxtw
	mov	x0, x19
	b	LBB0_13
LBB0_11:
Lloh20:
	adrp	x8, _V4L2_BUF_TYPE_VBI_CAPTURE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VBI_CAPTURE@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.12:
	add	x0, x21, #4
	bl	_videobuf_streamon
	mov	x20, x0
	mov	w8, #1
	str	w8, [x19, #4]
	add	x0, x19, #8
Lloh23:
	adrp	x8, _jiffies@GOTPAGE
Lloh24:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
Lloh26:
	adrp	x9, _HZ@GOTPAGE
Lloh27:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh28:
	ldrsw	x9, [x9]
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w9, w9, w10
	add	x1, x8, w9, sxtw
LBB0_13:
	bl	_mod_timer
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vidioc_streamon fh=%p t=%d fh->res=%d dev->res=%d\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_video,4,2                      ; @video
	.comm	_s_stream,4,2                   ; @s_stream
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_V4L2_BUF_TYPE_VBI_CAPTURE,8,3  ; @V4L2_BUF_TYPE_VBI_CAPTURE
	.no_dead_strip	_vidioc_streamon
.subsections_via_symbols
