	.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, %r15
	callq	_video_drvdata
	movq	%rax, %r14
	movl	(%r15), %ebx
	movq	_MAX_EM28XX_INPUT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jae	LBB0_1
## %bb.2:
	movl	%ebx, %edi
	callq	_INPUT
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movq	_V4L2_INPUT_TYPE_CAMERA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movl	24(%r15), %r12d
	movq	_iname@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	%ebx, %edi
	callq	_INPUT
	movq	(%rax), %rax
	movl	(%r13,%rax,4), %esi
	movl	%r12d, %edi
	movl	$4, %edx
	callq	_strscpy
	movl	%ebx, %edi
	callq	_INPUT
	movq	(%rax), %rax
	movq	_EM28XX_VMUX_TELEVISION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_V4L2_INPUT_TYPE_TUNER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
LBB0_5:
	movq	16(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	cmpq	$0, 8(%r14)
	movq	_MAX_EM28XX_INPUT@GOTPCREL(%rip), %rax
	je	LBB0_7
## %bb.6:
	movq	$0, 8(%r15)
LBB0_7:
	movl	$0, 4(%r15)
	movl	(%rax), %r8d
	testq	%r8, %r8
	je	LBB0_8
## %bb.9:
	movq	(%r14), %rdx
	movq	_EM28XX_AMUX_UNUSED@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%eax, %eax
	cmpl	$1, %r8d
	jne	LBB0_11
## %bb.10:
	xorl	%edi, %edi
	xorl	%ebx, %ebx
LBB0_17:
	testb	$1, %r8b
	je	LBB0_20
## %bb.18:
	cmpq	%rsi, (%rdx,%rbx,8)
	je	LBB0_20
## %bb.19:
	btsl	%ebx, %edi
	movl	%edi, 4(%r15)
	jmp	LBB0_20
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_20:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_11:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%edi, %edi
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	addq	$2, %rbx
	cmpq	%rbx, %r9
	je	LBB0_17
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rdx,%rbx,8)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	btsl	%ebx, %edi
	movl	%edi, 4(%r15)
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpq	%rsi, 8(%rdx,%rbx,8)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	leal	1(%rbx), %ecx
	btsl	%ecx, %edi
	movl	%edi, 4(%r15)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_EM28XX_INPUT,4,2           ## @MAX_EM28XX_INPUT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ## @V4L2_INPUT_TYPE_CAMERA
	.comm	_iname,8,3                      ## @iname
	.comm	_EM28XX_VMUX_TELEVISION,8,3     ## @EM28XX_VMUX_TELEVISION
	.comm	_V4L2_INPUT_TYPE_TUNER,4,2      ## @V4L2_INPUT_TYPE_TUNER
	.comm	_EM28XX_AMUX_UNUSED,8,3         ## @EM28XX_AMUX_UNUSED
	.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
	bl	_video_drvdata
	ldr	w21, [x19]
Lloh0:
	adrp	x23, _MAX_EM28XX_INPUT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MAX_EM28XX_INPUT@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w21, w8
	b.hs	LBB0_11
; %bb.1:
	mov	x20, x0
	mov	x0, x21
	bl	_INPUT
	ldr	x8, [x0]
	cbz	x8, LBB0_11
; %bb.2:
Lloh2:
	adrp	x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	ldr	w22, [x19, #24]
Lloh5:
	adrp	x8, _iname@GOTPAGE
Lloh6:
	ldr	x8, [x8, _iname@GOTPAGEOFF]
Lloh7:
	ldr	x24, [x8]
	mov	x0, x21
	bl	_INPUT
	ldr	x8, [x0]
	ldr	w1, [x24, x8, lsl #2]
	mov	x0, x22
	mov	w2, #4
	bl	_strscpy
	mov	x0, x21
	bl	_INPUT
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _EM28XX_VMUX_TELEVISION@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EM28XX_VMUX_TELEVISION@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _V4L2_INPUT_TYPE_TUNER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_INPUT_TYPE_TUNER@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #20]
LBB0_4:
	ldp	x9, x8, [x20, #8]
	ldr	w8, [x8]
	str	w8, [x19, #16]
	cbz	x9, LBB0_6
; %bb.5:
	str	xzr, [x19, #8]
LBB0_6:
	str	wzr, [x19, #4]
	ldr	w8, [x23]
	cbz	w8, LBB0_12
; %bb.7:
	mov	w9, #0
	mov	x10, #0
	ldr	x11, [x20]
Lloh14:
	adrp	x12, _EM28XX_AMUX_UNUSED@GOTPAGE
Lloh15:
	ldr	x12, [x12, _EM28XX_AMUX_UNUSED@GOTPAGEOFF]
Lloh16:
	ldr	x12, [x12]
	mov	w13, #1
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x10, x10, #1
	cmp	x8, x10
	b.eq	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x11, x10, lsl #3]
	cmp	x14, x12
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	lsl	w14, w13, w10
	orr	w9, w9, w14
	str	w9, [x19, #4]
	b	LBB0_8
LBB0_11:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_EM28XX_INPUT,4,2           ; @MAX_EM28XX_INPUT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ; @V4L2_INPUT_TYPE_CAMERA
	.comm	_iname,8,3                      ; @iname
	.comm	_EM28XX_VMUX_TELEVISION,8,3     ; @EM28XX_VMUX_TELEVISION
	.comm	_V4L2_INPUT_TYPE_TUNER,4,2      ; @V4L2_INPUT_TYPE_TUNER
	.comm	_EM28XX_AMUX_UNUSED,8,3         ; @EM28XX_AMUX_UNUSED
	.no_dead_strip	_vidioc_enum_input
.subsections_via_symbols
