	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbtv_select_input
_usbtv_select_input:                    ## @usbtv_select_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
	movl	%esi, %ebx
	movq	%rdi, %r14
	cmpl	$128, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_5
## %bb.2:
	leaq	_usbtv_select_input.composite(%rip), %r15
	jmp	LBB0_3
LBB0_4:
	leaq	_usbtv_select_input.svideo(%rip), %r15
LBB0_3:
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_usbtv_set_regs
	testl	%eax, %eax
	jne	LBB0_8
LBB0_7:
	movl	%ebx, (%r14)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @usbtv_select_input.composite
_usbtv_select_input.composite:
	.long	391                             ## 0x187
	.long	96                              ## 0x60
	.space	8
	.long	417                             ## 0x1a1
	.long	242                             ## 0xf2
	.space	8
	.long	425                             ## 0x1a9
	.long	96                              ## 0x60
	.space	8
	.long	304                             ## 0x130
	.long	16                              ## 0x10
	.space	8
	.long	699                             ## 0x2bb
	.long	96                              ## 0x60
	.space	8

	.p2align	4                               ## @usbtv_select_input.svideo
_usbtv_select_input.svideo:
	.long	391                             ## 0x187
	.long	16                              ## 0x10
	.space	8
	.long	417                             ## 0x1a1
	.long	255                             ## 0xff
	.space	8
	.long	425                             ## 0x1a9
	.long	96                              ## 0x60
	.space	8
	.long	304                             ## 0x130
	.long	48                              ## 0x30
	.space	8
	.long	699                             ## 0x2bb
	.long	96                              ## 0x60
	.space	8

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_usbtv_select_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbtv_select_input
_usbtv_select_input:                    ; @usbtv_select_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, x1
	mov	x20, x0
	cmp	w1, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w19, #129
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x21, _usbtv_select_input.composite@PAGE
Lloh1:
	add	x21, x21, _usbtv_select_input.composite@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x21, _usbtv_select_input.svideo@PAGE
Lloh3:
	add	x21, x21, _usbtv_select_input.svideo@PAGEOFF
LBB0_4:
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_usbtv_set_regs
	cbnz	w0, LBB0_6
LBB0_5:
	str	w19, [x20]
LBB0_6:
	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
LBB0_7:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	cbnz	w0, LBB0_6
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @usbtv_select_input.composite
_usbtv_select_input.composite:
	.long	391                             ; 0x187
	.long	96                              ; 0x60
	.space	8
	.long	417                             ; 0x1a1
	.long	242                             ; 0xf2
	.space	8
	.long	425                             ; 0x1a9
	.long	96                              ; 0x60
	.space	8
	.long	304                             ; 0x130
	.long	16                              ; 0x10
	.space	8
	.long	699                             ; 0x2bb
	.long	96                              ; 0x60
	.space	8

	.p2align	2                               ; @usbtv_select_input.svideo
_usbtv_select_input.svideo:
	.long	391                             ; 0x187
	.long	16                              ; 0x10
	.space	8
	.long	417                             ; 0x1a1
	.long	255                             ; 0xff
	.space	8
	.long	425                             ; 0x1a9
	.long	96                              ; 0x60
	.space	8
	.long	304                             ; 0x130
	.long	48                              ; 0x30
	.space	8
	.long	699                             ; 0x2bb
	.long	96                              ; 0x60
	.space	8

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_usbtv_select_input
.subsections_via_symbols
