	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_medion_enum_input
_cxusb_medion_enum_input:               ## @cxusb_medion_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, %rbx
	callq	_video_drvdata
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	_CXUSB_INPUT_CNT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_1
## %bb.2:
	movq	8(%r15), %rcx
	movq	_cxusb_medion_inputs@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leaq	(%rax,%rax,2), %rsi
	movups	(%rdx,%rsi,8), %xmm0
	movups	%xmm0, (%rbx)
	movq	16(%rdx,%rsi,8), %rdx
	movq	%rdx, 16(%rbx)
	movq	%rax, (%rbx)
	movq	_V4L2_IN_CAP_STD@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movl	%edx, 16(%rbx)
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movq	$0, -32(%rbp)
	movl	8(%rcx), %edi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_g_input_status@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rcx
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	-32(%rbp), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_CXUSB_INPUT_CNT,8,3            ## @CXUSB_INPUT_CNT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_cxusb_medion_inputs,8,3        ## @cxusb_medion_inputs
	.comm	_V4L2_IN_CAP_STD,4,2            ## @V4L2_IN_CAP_STD
	.comm	_video,4,2                      ## @video
	.comm	_g_input_status,4,2             ## @g_input_status
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cx25840 input status query failed (%d)\n"

	.no_dead_strip	_cxusb_medion_enum_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxusb_medion_enum_input
_cxusb_medion_enum_input:               ; @cxusb_medion_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, _CXUSB_INPUT_CNT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CXUSB_INPUT_CNT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x9, [x0, #8]
Lloh3:
	adrp	x10, _cxusb_medion_inputs@GOTPAGE
Lloh4:
	ldr	x10, [x10, _cxusb_medion_inputs@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	mov	w11, #24
	madd	x10, x8, x11, x10
	ldr	x11, [x10, #16]
	ldr	q0, [x10]
	str	q0, [x19]
	str	x11, [x19, #16]
Lloh6:
	adrp	x10, _V4L2_IN_CAP_STD@GOTPAGE
Lloh7:
	ldr	x10, [x10, _V4L2_IN_CAP_STD@GOTPAGEOFF]
	str	x8, [x19]
Lloh8:
	ldr	w10, [x10]
	orr	w10, w11, w10
	str	w10, [x19, #16]
	ldr	x10, [x9]
	cmp	x8, x10
	b.ne	LBB0_6
; %bb.2:
	str	xzr, [sp, #8]
	ldr	w0, [x9, #8]
Lloh9:
	adrp	x8, _video@GOTPAGE
Lloh10:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _g_input_status@GOTPAGE
Lloh13:
	ldr	x8, [x8, _g_input_status@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x3, sp, #8
	bl	_v4l2_subdev_call
	cbz	w0, LBB0_5
; %bb.3:
	mov	x2, x0
	ldr	x0, [x20]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	b	LBB0_6
LBB0_4:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	ldr	x8, [sp, #8]
	str	x8, [x19, #8]
LBB0_6:
	mov	w0, #0
LBB0_7:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CXUSB_INPUT_CNT,8,3            ; @CXUSB_INPUT_CNT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_cxusb_medion_inputs,8,3        ; @cxusb_medion_inputs
	.comm	_V4L2_IN_CAP_STD,4,2            ; @V4L2_IN_CAP_STD
	.comm	_video,4,2                      ; @video
	.comm	_g_input_status,4,2             ; @g_input_status
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cx25840 input status query failed (%d)\n"

	.no_dead_strip	_cxusb_medion_enum_input
.subsections_via_symbols
