	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rvin_enum_input
_rvin_enum_input:                       ## @rvin_enum_input
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	callq	_video_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_vin_to_source
	cmpq	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_2:
	movq	%rax, %r12
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_g_input_status@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	24(%r15), %rcx
	movq	%r12, %rdi
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	jns	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_5
## %bb.4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_9
LBB0_5:
	movq	_V4L2_INPUT_TYPE_CAMERA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_pad@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_dv_timings_cap@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_v4l2_subdev_has_op
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_V4L2_IN_CAP_DV_TIMINGS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	movl	(%r14), %eax
	movq	_V4L2_IN_CAP_STD@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r15)
	movl	%eax, 12(%r15)
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_video,4,2                      ## @video
	.comm	_g_input_status,4,2             ## @g_input_status
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ## @V4L2_INPUT_TYPE_CAMERA
	.comm	_pad,4,2                        ## @pad
	.comm	_dv_timings_cap,4,2             ## @dv_timings_cap
	.comm	_V4L2_IN_CAP_DV_TIMINGS,4,2     ## @V4L2_IN_CAP_DV_TIMINGS
	.comm	_V4L2_IN_CAP_STD,4,2            ## @V4L2_IN_CAP_STD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Camera"

	.no_dead_strip	_rvin_enum_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rvin_enum_input
_rvin_enum_input:                       ; @rvin_enum_input
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	bl	_video_drvdata
	mov	x20, x0
	bl	_vin_to_source
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_2:
	mov	x21, x0
Lloh3:
	adrp	x8, _video@GOTPAGE
Lloh4:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _g_input_status@GOTPAGE
Lloh7:
	ldr	x8, [x8, _g_input_status@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, x19, #24
	bl	_v4l2_subdev_call
	tbz	w0, #31, LBB0_5
; %bb.3:
Lloh9:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_9
LBB0_5:
Lloh15:
	adrp	x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #20]
Lloh18:
	adrp	x8, _pad@GOTPAGE
Lloh19:
	ldr	x8, [x8, _pad@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _dv_timings_cap@GOTPAGE
Lloh22:
	ldr	x8, [x8, _dv_timings_cap@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_v4l2_subdev_has_op
	cbz	x0, LBB0_7
; %bb.6:
	mov	w8, #0
Lloh24:
	adrp	x9, _V4L2_IN_CAP_DV_TIMINGS@GOTPAGE
Lloh25:
	ldr	x9, [x9, _V4L2_IN_CAP_DV_TIMINGS@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	ldr	w8, [x20]
Lloh26:
	adrp	x9, _V4L2_IN_CAP_STD@GOTPAGE
Lloh27:
	ldr	x9, [x9, _V4L2_IN_CAP_STD@GOTPAGEOFF]
LBB0_8:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #12]
	ldr	w0, [x19, #8]
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_video,4,2                      ; @video
	.comm	_g_input_status,4,2             ; @g_input_status
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ; @V4L2_INPUT_TYPE_CAMERA
	.comm	_pad,4,2                        ; @pad
	.comm	_dv_timings_cap,4,2             ; @dv_timings_cap
	.comm	_V4L2_IN_CAP_DV_TIMINGS,4,2     ; @V4L2_IN_CAP_DV_TIMINGS
	.comm	_V4L2_IN_CAP_STD,4,2            ; @V4L2_IN_CAP_STD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Camera"

	.no_dead_strip	_rvin_enum_input
.subsections_via_symbols
