	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	(%rdx), %r14
	cmpq	$4, %r14
	jge	LBB0_1
## %bb.2:
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_cx23885_boards@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %rbx
	cmpq	$0, (%rbx,%r14,8)
	je	LBB0_1
## %bb.3:
	movq	%rdx, %r12
	movl	12(%rdx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	movq	(%rbx,%r14,8), %rax
	movq	_CX23885_VMUX_TELEVISION@GOTPCREL(%rip), %rcx
	movq	_CX23885_VMUX_CABLE@GOTPCREL(%rip), %rdi
	movq	_V4L2_INPUT_TYPE_TUNER@GOTPCREL(%rip), %rdx
	movq	%rdx, %rsi
	cmpq	(%rdi), %rax
	je	LBB0_5
## %bb.4:
	movq	_V4L2_INPUT_TYPE_CAMERA@GOTPCREL(%rip), %rsi
LBB0_5:
	cmpq	(%rcx), %rax
	cmoveq	%rdx, %rsi
	movl	(%rsi), %eax
	movl	%eax, 8(%r12)
	movq	_cx23885_tvnorms@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movl	(%rdi,%rbx,4), %eax
	orl	%eax, 4(%r12)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_7
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_cx23885_boards,8,3             ## @cx23885_boards
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unset"

	.comm	_CX23885_VMUX_TELEVISION,8,3    ## @CX23885_VMUX_TELEVISION
	.comm	_CX23885_VMUX_CABLE,8,3         ## @CX23885_VMUX_CABLE
	.comm	_V4L2_INPUT_TYPE_TUNER,4,2      ## @V4L2_INPUT_TYPE_TUNER
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ## @V4L2_INPUT_TYPE_CAMERA
	.comm	_cx23885_tvnorms,8,3            ## @cx23885_tvnorms
	.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	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
	ldrsw	x20, [x2]
	cmp	w20, #4
	b.ge	LBB0_6
; %bb.1:
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _cx23885_boards@GOTPAGE
Lloh1:
	ldr	x9, [x9, _cx23885_boards@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x8, [x8]
	ldr	x21, [x9, x8, lsl #3]
	ldr	x8, [x21, x20, lsl #3]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x19, x2
	ldr	w0, [x2, #12]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	ldr	x8, [x21, x20, lsl #3]
Lloh5:
	adrp	x9, _CX23885_VMUX_TELEVISION@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CX23885_VMUX_TELEVISION@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _CX23885_VMUX_CABLE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _CX23885_VMUX_CABLE@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
Lloh11:
	adrp	x8, _V4L2_INPUT_TYPE_TUNER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_INPUT_TYPE_TUNER@GOTPAGEOFF]
Lloh13:
	adrp	x9, _V4L2_INPUT_TYPE_CAMERA@GOTPAGE
Lloh14:
	ldr	x9, [x9, _V4L2_INPUT_TYPE_CAMERA@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh15:
	adrp	x20, _cx23885_tvnorms@GOTPAGE
Lloh16:
	ldr	x20, [x20, _cx23885_tvnorms@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	ldr	w8, [x0, x21, lsl #2]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_4
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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 AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_cx23885_boards,8,3             ; @cx23885_boards
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unset"

	.comm	_CX23885_VMUX_TELEVISION,8,3    ; @CX23885_VMUX_TELEVISION
	.comm	_CX23885_VMUX_CABLE,8,3         ; @CX23885_VMUX_CABLE
	.comm	_V4L2_INPUT_TYPE_TUNER,4,2      ; @V4L2_INPUT_TYPE_TUNER
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ; @V4L2_INPUT_TYPE_CAMERA
	.comm	_cx23885_tvnorms,8,3            ; @cx23885_tvnorms
	.no_dead_strip	_vidioc_enum_input
.subsections_via_symbols
