	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	movq	8(%rax), %r15
	movl	$0, -36(%rbp)
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_2:
	movq	%rax, %r14
	movq	_V4L2_INPUT_TYPE_CAMERA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_S2255_NORMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	$0, 16(%rbx)
	movq	(%r15), %rax
	movq	_S2255_MIN_DSP_STATUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_8
## %bb.3:
	leaq	-36(%rbp), %rsi
	movq	%r14, %rdi
	callq	_s2255_cmd_status
	movl	%eax, %r12d
	movl	-36(%rbp), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	$4, %esi
	movl	%eax, %ecx
	callq	_dprintk
	testl	%r12d, %r12d
	jne	LBB0_8
## %bb.4:
	testb	$1, -36(%rbp)
	jne	LBB0_5
## %bb.6:
	movq	_V4L2_IN_ST_NO_SIGNAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_7
LBB0_5:
	xorl	%eax, %eax
LBB0_7:
	movq	%rax, 16(%rbx)
LBB0_8:
	cmpl	$8791, 8(%r15)                  ## imm = 0x2257
	movl	8(%rbx), %edi
	jne	LBB0_9
## %bb.10:
	cmpl	$2, (%r14)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmovlq	%rax, %rsi
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
LBB0_11:
	movl	$4, %edx
	callq	_strscpy
	xorl	%eax, %eax
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ## @V4L2_INPUT_TYPE_CAMERA
	.comm	_S2255_NORMS,4,2                ## @S2255_NORMS
	.comm	_S2255_MIN_DSP_STATUS,8,3       ## @S2255_MIN_DSP_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"s2255_cmd_status rc: %d status %x\n"

	.comm	_V4L2_IN_ST_NO_SIGNAL,8,3       ## @V4L2_IN_ST_NO_SIGNAL
L_.str.1:                               ## @.str.1
	.asciz	"Composite"

L_.str.2:                               ## @.str.2
	.asciz	"S-Video"

	.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, #64
	.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
	mov	x20, x2
	bl	_video_drvdata
	ldr	x21, [x0, #8]
	str	wzr, [sp, #12]
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_2:
	mov	x19, x0
Lloh3:
	adrp	x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_INPUT_TYPE_CAMERA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _S2255_NORMS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _S2255_NORMS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
	str	xzr, [x20, #16]
	ldr	x8, [x21]
Lloh9:
	adrp	x9, _S2255_MIN_DSP_STATUS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _S2255_MIN_DSP_STATUS@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_5
; %bb.3:
	add	x1, sp, #12
	mov	x0, x19
	bl	_s2255_cmd_status
	mov	x22, x0
	ldr	w4, [sp, #12]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	w1, #4
	mov	x3, x22
	bl	_dprintk
	cbnz	w22, LBB0_5
; %bb.4:
	ldr	w8, [sp, #12]
Lloh14:
	adrp	x9, _V4L2_IN_ST_NO_SIGNAL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _V4L2_IN_ST_NO_SIGNAL@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	tst	w8, #0x1
	csel	x8, x9, xzr, eq
	str	x8, [x20, #16]
LBB0_5:
	ldr	w8, [x21, #8]
	ldr	w0, [x20, #8]
	mov	w9, #8791
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
	ldr	w8, [x19]
Lloh17:
	adrp	x9, l_.str.2@PAGE
Lloh18:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh19:
	adrp	x10, l_.str.1@PAGE
Lloh20:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, #2
	csel	x1, x10, x9, lt
	b	LBB0_8
LBB0_7:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	w2, #4
	bl	_strscpy
	mov	w0, #0
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ; @V4L2_INPUT_TYPE_CAMERA
	.comm	_S2255_NORMS,4,2                ; @S2255_NORMS
	.comm	_S2255_MIN_DSP_STATUS,8,3       ; @S2255_MIN_DSP_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"s2255_cmd_status rc: %d status %x\n"

	.comm	_V4L2_IN_ST_NO_SIGNAL,8,3       ; @V4L2_IN_ST_NO_SIGNAL
l_.str.1:                               ; @.str.1
	.asciz	"Composite"

l_.str.2:                               ; @.str.2
	.asciz	"S-Video"

	.no_dead_strip	_vidioc_enum_input
.subsections_via_symbols
