	.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
	movq	%rax, %r14
	movq	(%rbx), %rdx
	movq	_STK1160_MAX_INPUT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jle	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movq	_STK1160_SVIDEO_INPUT@GOTPCREL(%rip), %rax
	movl	16(%rbx), %edi
	cmpq	(%rax), %rdx
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_sprintf
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_sprintf
LBB0_5:
	movq	_V4L2_INPUT_TYPE_CAMERA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STK1160_MAX_INPUT,8,3          ## @STK1160_MAX_INPUT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_STK1160_SVIDEO_INPUT,8,3       ## @STK1160_SVIDEO_INPUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"S-Video"

L_.str.1:                               ## @.str.1
	.asciz	"Composite%d"

	.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:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	bl	_video_drvdata
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _STK1160_MAX_INPUT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STK1160_MAX_INPUT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	mov	x20, x0
Lloh6:
	adrp	x9, _STK1160_SVIDEO_INPUT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _STK1160_SVIDEO_INPUT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w0, [x19, #16]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	bl	_sprintf
	mov	w0, #0
Lloh13:
	adrp	x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x20]
	stp	w9, w8, [x19, #8]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_STK1160_MAX_INPUT,8,3          ; @STK1160_MAX_INPUT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_STK1160_SVIDEO_INPUT,8,3       ; @STK1160_SVIDEO_INPUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"S-Video"

l_.str.1:                               ; @.str.1
	.asciz	"Composite%d"

	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ; @V4L2_INPUT_TYPE_CAMERA
	.no_dead_strip	_vidioc_enum_input
.subsections_via_symbols
