	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tvout_vip_set_sel_input
_tvout_vip_set_sel_input:               ## @tvout_vip_set_sel_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	%ecx, %r12d
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_tvout_read
	testl	%ebx, %ebx
	jne	LBB0_1
## %bb.2:
	movq	_TVO_VIP_SEL_INPUT_AUX@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_TVO_VIP_SEL_INPUT_MAIN@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %ecx
	cmpl	$128, %r12d
	je	LBB0_6
## %bb.4:
	cmpl	$129, %r12d
	jne	LBB0_7
## %bb.5:
	movq	_TVO_VIP_SEL_INPUT_BYPASSED@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	jmp	LBB0_7
LBB0_6:
	movq	_TVO_VIP_SEL_INPUT_BYPASSED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, %ecx
LBB0_7:
	movq	_TVO_VIP_SEL_INPUT_BYPASS_MASK@GOTPCREL(%rip), %rdx
	xorl	(%rdx), %ecx
	movq	_TVO_VIP_SEL_INPUT_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, %eax
	orl	%ecx, %eax
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tvout_write                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TVO_VIP_SEL_INPUT_MAIN,4,2     ## @TVO_VIP_SEL_INPUT_MAIN
	.comm	_TVO_VIP_SEL_INPUT_AUX,4,2      ## @TVO_VIP_SEL_INPUT_AUX
	.comm	_TVO_VIP_SEL_INPUT_BYPASSED,4,2 ## @TVO_VIP_SEL_INPUT_BYPASSED
	.comm	_TVO_VIP_SEL_INPUT_BYPASS_MASK,4,2 ## @TVO_VIP_SEL_INPUT_BYPASS_MASK
	.comm	_TVO_VIP_SEL_INPUT_MASK,4,2     ## @TVO_VIP_SEL_INPUT_MASK
	.no_dead_strip	_tvout_vip_set_sel_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tvout_vip_set_sel_input
_tvout_vip_set_sel_input:               ; @tvout_vip_set_sel_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	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_tvout_read
Lloh0:
	adrp	x8, _TVO_VIP_SEL_INPUT_AUX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TVO_VIP_SEL_INPUT_AUX@GOTPAGEOFF]
Lloh2:
	adrp	x9, _TVO_VIP_SEL_INPUT_MAIN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TVO_VIP_SEL_INPUT_MAIN@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	cmp	w21, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w21, #129
	b.ne	LBB0_4
; %bb.2:
Lloh4:
	adrp	x9, _TVO_VIP_SEL_INPUT_BYPASSED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _TVO_VIP_SEL_INPUT_BYPASSED@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x9, _TVO_VIP_SEL_INPUT_BYPASSED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TVO_VIP_SEL_INPUT_BYPASSED@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	bic	w8, w8, w9
LBB0_4:
Lloh10:
	adrp	x9, _TVO_VIP_SEL_INPUT_BYPASS_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TVO_VIP_SEL_INPUT_BYPASS_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	eor	w8, w9, w8
Lloh13:
	adrp	x9, _TVO_VIP_SEL_INPUT_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TVO_VIP_SEL_INPUT_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	bic	w9, w0, w9
	orr	w1, w9, w8
	mov	x0, x20
	mov	x2, x19
	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
	b	_tvout_write
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TVO_VIP_SEL_INPUT_MAIN,4,2     ; @TVO_VIP_SEL_INPUT_MAIN
	.comm	_TVO_VIP_SEL_INPUT_AUX,4,2      ; @TVO_VIP_SEL_INPUT_AUX
	.comm	_TVO_VIP_SEL_INPUT_BYPASSED,4,2 ; @TVO_VIP_SEL_INPUT_BYPASSED
	.comm	_TVO_VIP_SEL_INPUT_BYPASS_MASK,4,2 ; @TVO_VIP_SEL_INPUT_BYPASS_MASK
	.comm	_TVO_VIP_SEL_INPUT_MASK,4,2     ; @TVO_VIP_SEL_INPUT_MASK
	.no_dead_strip	_tvout_vip_set_sel_input
.subsections_via_symbols
