	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_enum_input
_vidioc_enum_input:                     ## @vidioc_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	movl	(%rbx), %ecx
	cmpl	(%rax), %ecx
	jge	LBB0_5
## %bb.1:
	cmpq	$1, 16(%rax)
	adcl	$0, %ecx
	xorl	%r14d, %r14d
	cmpl	$3, %ecx
	ja	LBB0_12
## %bb.2:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_3:
	movq	_usbvision_device_data@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%rax), %rax
	cmpl	$4, (%rcx,%rax,4)
	movl	16(%rbx), %edi
	jne	LBB0_13
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	jmp	LBB0_12
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_12
LBB0_6:
	movq	_V4L2_INPUT_TYPE_CAMERA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 24(%rbx)
	movq	_usbvision_device_data@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%rax), %rax
	cmpl	$4, (%rcx,%rax,4)
	movl	16(%rbx), %edi
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_9
LBB0_7:
	movq	_V4L2_INPUT_TYPE_CAMERA@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movl	16(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_10
LBB0_8:
	movq	_V4L2_INPUT_TYPE_CAMERA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 24(%rbx)
	movq	_usbvision_device_data@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%rax), %rax
	cmpl	$4, (%rcx,%rax,4)
	movl	16(%rbx), %edi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rsi
LBB0_9:
	cmoveq	%rax, %rsi
LBB0_10:
	movl	$4, %edx
	callq	_strscpy
LBB0_11:
	movq	_USBVISION_NORMS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_12:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	_V4L2_INPUT_TYPE_TUNER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movl	$0, 4(%rbx)
	jmp	LBB0_11
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_usbvision_device_data,8,3      ## @usbvision_device_data
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"White Video Input"

L_.str.1:                               ## @.str.1
	.asciz	"Television"

	.comm	_V4L2_INPUT_TYPE_TUNER,8,3      ## @V4L2_INPUT_TYPE_TUNER
	.comm	_USBVISION_NORMS,8,3            ## @USBVISION_NORMS
	.comm	_V4L2_INPUT_TYPE_CAMERA,8,3     ## @V4L2_INPUT_TYPE_CAMERA
L_.str.2:                               ## @.str.2
	.asciz	"Green Video Input"

L_.str.3:                               ## @.str.3
	.asciz	"Composite Video Input"

L_.str.4:                               ## @.str.4
	.asciz	"Yellow Video Input"

L_.str.5:                               ## @.str.5
	.asciz	"S-Video Input"

L_.str.6:                               ## @.str.6
	.asciz	"Red Video Input"

	.no_dead_strip	_vidioc_enum_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_enum_input
_vidioc_enum_input:                     ; @vidioc_enum_input
	.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
	mov	x19, x2
	bl	_video_drvdata
	ldr	w8, [x19]
	ldr	w9, [x0]
	cmp	w8, w9
	b.ge	LBB0_5
; %bb.1:
	ldr	x9, [x0, #16]
	cmp	x9, #0
	cinc	w8, w8, eq
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh2:
	adrp	x8, _usbvision_device_data@GOTPAGE
Lloh3:
	ldr	x8, [x8, _usbvision_device_data@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x0, #8]
	ldr	w8, [x8, x9, lsl #2]
	ldr	w0, [x19, #16]
	cmp	w8, #4
	b.ne	LBB0_14
; %bb.4:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	mov	w0, #0
	b	LBB0_13
LBB0_5:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_6:
Lloh10:
	adrp	x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _usbvision_device_data@GOTPAGE
Lloh14:
	ldr	x9, [x9, _usbvision_device_data@GOTPAGEOFF]
	str	x8, [x19, #24]
Lloh15:
	ldr	x8, [x9]
	ldr	x9, [x0, #8]
	ldr	w8, [x8, x9, lsl #2]
	ldr	w0, [x19, #16]
Lloh16:
	adrp	x9, l_.str.5@PAGE
Lloh17:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh18:
	adrp	x10, l_.str.4@PAGE
Lloh19:
	add	x10, x10, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_7:
Lloh20:
	adrp	x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGE
Lloh21:
	ldr	x8, [x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	ldr	w0, [x19, #16]
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_11
LBB0_8:
	mov	w0, #0
	b	LBB0_13
LBB0_9:
Lloh25:
	adrp	x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
Lloh28:
	adrp	x9, _usbvision_device_data@GOTPAGE
Lloh29:
	ldr	x9, [x9, _usbvision_device_data@GOTPAGEOFF]
	str	x8, [x19, #24]
Lloh30:
	ldr	x8, [x9]
	ldr	x9, [x0, #8]
	ldr	w8, [x8, x9, lsl #2]
	ldr	w0, [x19, #16]
Lloh31:
	adrp	x9, l_.str.3@PAGE
Lloh32:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh33:
	adrp	x10, l_.str.2@PAGE
Lloh34:
	add	x10, x10, l_.str.2@PAGEOFF
LBB0_10:
	cmp	w8, #4
	csel	x1, x10, x9, eq
LBB0_11:
	mov	w2, #4
	bl	_strscpy
	mov	w0, #0
LBB0_12:
Lloh35:
	adrp	x8, _USBVISION_NORMS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _USBVISION_NORMS@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh38:
	adrp	x1, l_.str.1@PAGE
Lloh39:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	mov	w0, #0
Lloh40:
	adrp	x8, _V4L2_INPUT_TYPE_TUNER@GOTPAGE
Lloh41:
	ldr	x8, [x8, _V4L2_INPUT_TYPE_TUNER@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	str	wzr, [x19, #4]
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_usbvision_device_data,8,3      ; @usbvision_device_data
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"White Video Input"

l_.str.1:                               ; @.str.1
	.asciz	"Television"

	.comm	_V4L2_INPUT_TYPE_TUNER,8,3      ; @V4L2_INPUT_TYPE_TUNER
	.comm	_USBVISION_NORMS,8,3            ; @USBVISION_NORMS
	.comm	_V4L2_INPUT_TYPE_CAMERA,8,3     ; @V4L2_INPUT_TYPE_CAMERA
l_.str.2:                               ; @.str.2
	.asciz	"Green Video Input"

l_.str.3:                               ; @.str.3
	.asciz	"Composite Video Input"

l_.str.4:                               ; @.str.4
	.asciz	"Yellow Video Input"

l_.str.5:                               ; @.str.5
	.asciz	"S-Video Input"

l_.str.6:                               ; @.str.6
	.asciz	"Red Video Input"

	.no_dead_strip	_vidioc_enum_input
.subsections_via_symbols
