	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_medion_s_input
_cxusb_medion_s_input:                  ## @cxusb_medion_s_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	callq	_video_drvdata
	movq	_CXUSB_INPUT_CNT@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jbe	LBB0_1
## %bb.2:
	movq	(%rax), %r14
	movl	16(%r14), %edi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_routing@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_cxusb_medion_inputs@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	%ebx, %r12d
	movl	4(%rax,%r12,8), %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	%ebx, (%r14)
	movq	(%r15), %rax
	movl	(%rax,%r12,8), %eax
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
	movl	4(%r14), %esi
	andl	%eax, %esi
	cmovel	%eax, %esi
	movq	%r14, %rdi
	callq	_cxusb_medion_set_norm
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CXUSB_INPUT_CNT,4,2            ## @CXUSB_INPUT_CNT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_video,4,2                      ## @video
	.comm	_s_routing,4,2                  ## @s_routing
	.comm	_cxusb_medion_inputs,8,3        ## @cxusb_medion_inputs
	.no_dead_strip	_cxusb_medion_s_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_s_input
_cxusb_medion_s_input:                  ; @cxusb_medion_s_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
	bl	_video_drvdata
Lloh0:
	adrp	x8, _CXUSB_INPUT_CNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CXUSB_INPUT_CNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ls	LBB0_3
; %bb.1:
	ldr	x20, [x0]
	ldr	w0, [x20, #16]
Lloh3:
	adrp	x8, _video@GOTPAGE
Lloh4:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _s_routing@GOTPAGE
Lloh7:
	ldr	x8, [x8, _s_routing@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x21, _cxusb_medion_inputs@GOTPAGE
Lloh10:
	ldr	x21, [x21, _cxusb_medion_inputs@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x8, x8, w19, uxtw #3
	ldr	w3, [x8, #4]
	mov	w4, #0
	mov	w5, #0
	bl	_v4l2_subdev_call
	cbnz	w0, LBB0_4
; %bb.2:
	mov	w8, w19
	ldr	x9, [x21]
	lsl	x8, x8, #3
	ldr	w8, [x9, x8]
	str	w19, [x20]
	ldr	x9, [x20, #8]
	str	w8, [x9]
	ldr	w9, [x20, #4]
	ands	w9, w9, w8
	csel	w1, w8, w9, eq
	mov	x0, x20
	bl	_cxusb_medion_set_norm
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CXUSB_INPUT_CNT,4,2            ; @CXUSB_INPUT_CNT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_video,4,2                      ; @video
	.comm	_s_routing,4,2                  ; @s_routing
	.comm	_cxusb_medion_inputs,8,3        ; @cxusb_medion_inputs
	.no_dead_strip	_cxusb_medion_s_input
.subsections_via_symbols
