	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rdx), %eax
	cmpq	$3, %rax
	jae	LBB0_1
## %bb.2:
	movq	(%rsi), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rdx, %rbx
	movq	_TM6000_INPUT_TV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	_V4L2_INPUT_TYPE_TUNER@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_4:
	movq	_V4L2_INPUT_TYPE_CAMERA@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rbx)
	movl	8(%rbx), %edi
	movq	_iname@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %esi
	movl	$4, %edx
	callq	_strscpy
	movq	_TM6000_STD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TM6000_INPUT_TV,8,3            ## @TM6000_INPUT_TV
	.comm	_V4L2_INPUT_TYPE_TUNER,4,2      ## @V4L2_INPUT_TYPE_TUNER
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ## @V4L2_INPUT_TYPE_CAMERA
	.comm	_iname,8,3                      ## @iname
	.comm	_TM6000_STD,4,2                 ## @TM6000_STD
	.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
	ldr	w8, [x2]
	cmp	w8, #3
	b.hs	LBB0_3
; %bb.1:
	ldr	x9, [x1]
	ldr	x9, [x9]
	ldr	x8, [x9, x8, lsl #3]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x19, x2
Lloh0:
	adrp	x9, _TM6000_INPUT_TV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TM6000_INPUT_TV@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _V4L2_INPUT_TYPE_TUNER@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_INPUT_TYPE_TUNER@GOTPAGEOFF]
Lloh5:
	adrp	x11, _V4L2_INPUT_TYPE_CAMERA@GOTPAGE
Lloh6:
	ldr	x11, [x11, _V4L2_INPUT_TYPE_CAMERA@GOTPAGEOFF]
	cmp	x8, x9
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
	str	w9, [x2, #12]
	ldr	w0, [x2, #8]
Lloh7:
	adrp	x9, _iname@GOTPAGE
Lloh8:
	ldr	x9, [x9, _iname@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	w1, [x9, x8, lsl #2]
	mov	w2, #4
	bl	_strscpy
	mov	w0, #0
Lloh10:
	adrp	x8, _TM6000_STD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TM6000_STD@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_4
LBB0_3:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TM6000_INPUT_TV,8,3            ; @TM6000_INPUT_TV
	.comm	_V4L2_INPUT_TYPE_TUNER,4,2      ; @V4L2_INPUT_TYPE_TUNER
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ; @V4L2_INPUT_TYPE_CAMERA
	.comm	_iname,8,3                      ; @iname
	.comm	_TM6000_STD,4,2                 ; @TM6000_STD
	.no_dead_strip	_vidioc_enum_input
.subsections_via_symbols
