	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cobalt_enum_input
_cobalt_enum_input:                     ## @cobalt_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
	movl	(%rbx), %eax
	cmpl	$2, %eax
	jl	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	testl	%eax, %eax
	movl	16(%rbx), %edi
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	_V4L2_INPUT_TYPE_CAMERA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_V4L2_IN_CAP_DV_TIMINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
	cmpl	$1, (%rbx)
	jne	LBB0_4
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	4(%r14), %edi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_g_input_status@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	$4, %rbx
	movq	%rbx, %rcx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_v4l2_subdev_call               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HDMI-%d"

L_.str.1:                               ## @.str.1
	.asciz	"Generator-%d"

	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ## @V4L2_INPUT_TYPE_CAMERA
	.comm	_V4L2_IN_CAP_DV_TIMINGS,4,2     ## @V4L2_IN_CAP_DV_TIMINGS
	.comm	_video,4,2                      ## @video
	.comm	_g_input_status,4,2             ## @g_input_status
	.no_dead_strip	_cobalt_enum_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cobalt_enum_input
_cobalt_enum_input:                     ; @cobalt_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
	mov	x19, x2
	bl	_video_drvdata
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	mov	x20, x0
	ldr	w0, [x19, #16]
	ldr	w3, [x20]
Lloh3:
	adrp	x9, l_.str.1@PAGE
Lloh4:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh5:
	adrp	x10, l_.str@PAGE
Lloh6:
	add	x10, x10, l_.str@PAGEOFF
	cmp	w8, #0
	csel	x2, x10, x9, eq
	mov	w1, #4
	bl	_snprintf
Lloh7:
	adrp	x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGEOFF]
Lloh9:
	adrp	x9, _V4L2_IN_CAP_DV_TIMINGS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_IN_CAP_DV_TIMINGS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w0, [x20, #4]
Lloh13:
	adrp	x8, _video@GOTPAGE
Lloh14:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _g_input_status@GOTPAGE
Lloh17:
	ldr	x8, [x8, _g_input_status@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	add	x3, x19, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_v4l2_subdev_call
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HDMI-%d"

l_.str.1:                               ; @.str.1
	.asciz	"Generator-%d"

	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ; @V4L2_INPUT_TYPE_CAMERA
	.comm	_V4L2_IN_CAP_DV_TIMINGS,4,2     ; @V4L2_IN_CAP_DV_TIMINGS
	.comm	_video,4,2                      ; @video
	.comm	_g_input_status,4,2             ; @g_input_status
	.no_dead_strip	_cobalt_enum_input
.subsections_via_symbols
