	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %r14
	callq	_video_drvdata
	movq	%rax, %rbx
	movq	(%r15), %rax
	movq	(%rbx), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_1
## %bb.2:
	movl	36(%r15), %edi
	movq	24(%rcx), %rcx
	movl	(%rcx,%rax,4), %esi
	movl	$4, %edx
	callq	_strscpy
	movq	(%rbx), %rax
	movq	_GO7007_BOARD_HAS_TUNER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rax)
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%r15)
	je	LBB0_4
LBB0_5:
	movq	_V4L2_INPUT_TYPE_CAMERA@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_4:
	movq	_V4L2_INPUT_TYPE_TUNER@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %ecx
	movl	%ecx, 32(%r15)
	movl	12(%rax), %ecx
	movl	$-1, %edx
	shll	%cl, %edx
	testl	%ecx, %ecx
	notl	%edx
	cmovel	%ecx, %edx
	movl	%edx, 8(%r15)
	movq	$0, 24(%r15)
	movq	_GO7007_SENSOR_TV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 16(%rax)
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_video_devdata
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	jmp	LBB0_9
LBB0_8:
	movq	$0, 16(%r15)
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GO7007_BOARD_HAS_TUNER,4,2     ## @GO7007_BOARD_HAS_TUNER
	.comm	_V4L2_INPUT_TYPE_TUNER,4,2      ## @V4L2_INPUT_TYPE_TUNER
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ## @V4L2_INPUT_TYPE_CAMERA
	.comm	_GO7007_SENSOR_TV,4,2           ## @GO7007_SENSOR_TV
	.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
	mov	x19, x2
	mov	x20, x0
	bl	_video_drvdata
	ldr	x8, [x19]
	ldr	x9, [x0]
	ldr	x10, [x9]
	cmp	x8, x10
	b.hs	LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	w0, [x19, #36]
	ldr	x9, [x9, #24]
	ldr	w1, [x9, x8, lsl #2]
	mov	w2, #4
	bl	_strscpy
	ldr	x8, [x21]
	ldr	w9, [x8, #8]
Lloh0:
	adrp	x10, _GO7007_BOARD_HAS_TUNER@GOTPAGE
Lloh1:
	ldr	x10, [x10, _GO7007_BOARD_HAS_TUNER@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.2:
	ldr	x9, [x19]
	cbz	x9, LBB0_5
LBB0_3:
Lloh3:
	adrp	x9, _V4L2_INPUT_TYPE_CAMERA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_INPUT_TYPE_CAMERA@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_5:
Lloh8:
	adrp	x9, _V4L2_INPUT_TYPE_TUNER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _V4L2_INPUT_TYPE_TUNER@GOTPAGEOFF]
LBB0_6:
	ldr	w9, [x9]
	str	w9, [x19, #32]
	ldr	w9, [x8, #12]
	mov	w10, #-1
	lsl	w10, w10, w9
	cmp	w9, #0
	csinv	w9, wzr, w10, eq
	str	w9, [x19, #8]
	str	xzr, [x19, #24]
	ldr	w8, [x8, #16]
Lloh10:
	adrp	x9, _GO7007_SENSOR_TV@GOTPAGE
Lloh11:
	ldr	x9, [x9, _GO7007_SENSOR_TV@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_video_devdata
	mov	x8, x0
	mov	w0, #0
	ldr	x8, [x8]
	str	x8, [x19, #16]
	b	LBB0_9
LBB0_8:
	mov	w0, #0
	str	xzr, [x19, #16]
LBB0_9:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GO7007_BOARD_HAS_TUNER,4,2     ; @GO7007_BOARD_HAS_TUNER
	.comm	_V4L2_INPUT_TYPE_TUNER,4,2      ; @V4L2_INPUT_TYPE_TUNER
	.comm	_V4L2_INPUT_TYPE_CAMERA,4,2     ; @V4L2_INPUT_TYPE_CAMERA
	.comm	_GO7007_SENSOR_TV,4,2           ; @GO7007_SENSOR_TV
	.no_dead_strip	_vidioc_enum_input
.subsections_via_symbols
