	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_s_input                ## -- Begin function cx231xx_s_input
	.p2align	4, 0x90
_cx231xx_s_input:                       ## @cx231xx_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movq	(%rsi), %rbx
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_check_dev
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	_MAX_CX231XX_INPUT@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jbe	LBB0_2
## %bb.3:
	movl	%r14d, %edi
	callq	_INPUT
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_video_mux
	movl	%r14d, %edi
	callq	_INPUT
	movq	(%rax), %rax
	movq	_CX231XX_VMUX_TELEVISION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movl	%r14d, %edi
	callq	_INPUT
	movq	(%rax), %rcx
	movq	_CX231XX_VMUX_CABLE@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_7
LBB0_6:
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_std@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	movq	%rbx, %rdi
	callq	_call_all
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_CX231XX_INPUT,4,2          ## @MAX_CX231XX_INPUT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CX231XX_VMUX_TELEVISION,8,3    ## @CX231XX_VMUX_TELEVISION
	.comm	_CX231XX_VMUX_CABLE,8,3         ## @CX231XX_VMUX_CABLE
	.comm	_video,4,2                      ## @video
	.comm	_s_std,4,2                      ## @s_std
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_s_input                ; -- Begin function cx231xx_s_input
	.p2align	2
_cx231xx_s_input:                       ; @cx231xx_s_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	x20, x2
	ldr	x19, [x1]
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_check_dev
	tbnz	w0, #31, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _MAX_CX231XX_INPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_CX231XX_INPUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ls	LBB0_7
; %bb.2:
	mov	x0, x20
	bl	_INPUT
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_video_mux
	mov	x0, x20
	bl	_INPUT
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _CX231XX_VMUX_TELEVISION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CX231XX_VMUX_TELEVISION@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_INPUT
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _CX231XX_VMUX_CABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CX231XX_VMUX_CABLE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _video@GOTPAGE
Lloh10:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _s_std@GOTPAGE
Lloh13:
	ldr	x8, [x8, _s_std@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldr	w3, [x19]
	mov	x0, x19
	bl	_call_all
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_CX231XX_INPUT,4,2          ; @MAX_CX231XX_INPUT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CX231XX_VMUX_TELEVISION,8,3    ; @CX231XX_VMUX_TELEVISION
	.comm	_CX231XX_VMUX_CABLE,8,3         ; @CX231XX_VMUX_CABLE
	.comm	_video,4,2                      ; @video
	.comm	_s_std,4,2                      ; @s_std
.subsections_via_symbols
