	.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	%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
	movq	%rdx, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r15
	movl	(%rdx), %edx
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	callq	_dprintk
	movslq	(%r14), %rbx
	cmpq	$4, %rbx
	jge	LBB0_1
## %bb.2:
	movq	_cx231xx_boards@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %r12
	cmpq	$0, (%r12,%rbx,8)
	je	LBB0_1
## %bb.3:
	movl	8(%r14), %r15d
	movq	_iname@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	%ebx, %edi
	callq	_INPUT
	movq	(%rax), %rax
	movl	(%r13,%rax,4), %esi
	movl	%r15d, %edi
	callq	_strcpy
	movq	(%r12,%rbx,8), %rax
	movq	_CX231XX_VMUX_TELEVISION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_CX231XX_VMUX_CABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.6:
	movq	_V4L2_INPUT_TYPE_CAMERA@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_5:
	movq	_V4L2_INPUT_TYPE_TUNER@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enter vidioc_enum_input()i->index=%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_cx231xx_boards,8,3             ## @cx231xx_boards
	.comm	_iname,8,3                      ## @iname
	.comm	_CX231XX_VMUX_TELEVISION,8,3    ## @CX231XX_VMUX_TELEVISION
	.comm	_CX231XX_VMUX_CABLE,8,3         ## @CX231XX_VMUX_CABLE
	.comm	_V4L2_INPUT_TYPE_TUNER,4,2      ## @V4L2_INPUT_TYPE_TUNER
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ## @V4L2_INPUT_TYPE_CAMERA
	.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	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	x19, x2
	ldr	x8, [x0]
	ldr	x21, [x8]
	ldr	w2, [x2]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_dprintk
	ldrsw	x20, [x19]
	cmp	w20, #4
	b.ge	LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _cx231xx_boards@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cx231xx_boards@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x21]
	ldr	x22, [x8, x9, lsl #3]
	ldr	x8, [x22, x20, lsl #3]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w21, [x19, #8]
Lloh5:
	adrp	x8, _iname@GOTPAGE
Lloh6:
	ldr	x8, [x8, _iname@GOTPAGEOFF]
Lloh7:
	ldr	x23, [x8]
	mov	x0, x20
	bl	_INPUT
	ldr	x8, [x0]
	ldr	w1, [x23, x8, lsl #2]
	mov	x0, x21
	bl	_strcpy
	ldr	x8, [x22, x20, lsl #3]
Lloh8:
	adrp	x9, _CX231XX_VMUX_TELEVISION@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CX231XX_VMUX_TELEVISION@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _CX231XX_VMUX_CABLE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CX231XX_VMUX_CABLE@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x8, x9
	mov	w0, #0
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.3:
Lloh14:
	adrp	x8, _V4L2_INPUT_TYPE_TUNER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _V4L2_INPUT_TYPE_TUNER@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
Lloh19:
	adrp	x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_7:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enter vidioc_enum_input()i->index=%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_cx231xx_boards,8,3             ; @cx231xx_boards
	.comm	_iname,8,3                      ; @iname
	.comm	_CX231XX_VMUX_TELEVISION,8,3    ; @CX231XX_VMUX_TELEVISION
	.comm	_CX231XX_VMUX_CABLE,8,3         ; @CX231XX_VMUX_CABLE
	.comm	_V4L2_INPUT_TYPE_TUNER,4,2      ; @V4L2_INPUT_TYPE_TUNER
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ; @V4L2_INPUT_TYPE_CAMERA
	.no_dead_strip	_vidioc_enum_input
.subsections_via_symbols
