	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7127_set_input_type
_saa7127_set_input_type:                ## @saa7127_set_input_type
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r13
	callq	_to_state
	movq	%rax, %r12
	xorl	%r14d, %r14d
	cmpl	$129, %r15d
	je	LBB0_1
## %bb.2:
	cmpl	$128, %r15d
	jne	LBB0_6
## %bb.3:
	movl	$128, %ebx
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rcx
	xorl	%ebx, %ebx
LBB0_4:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	movq	%r13, %rdx
	callq	_v4l2_dbg
	movl	%ebx, (%r12)
	orl	4(%r12), %ebx
	movq	%r13, %rdi
	movl	$58, %esi
	movl	%ebx, %edx
	callq	_saa7127_write
	movl	%r15d, 8(%r12)
	jmp	LBB0_5
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Selecting Normal Encoder Input\n"

L_.str.1:                               ## @.str.1
	.asciz	"Selecting Color Bar generator\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7127_set_input_type
_saa7127_set_input_type:                ; @saa7127_set_input_type
	.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
	bl	_to_state
	mov	x21, x0
	cmp	w19, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w19, #128
	b.ne	LBB0_5
; %bb.2:
	mov	w22, #128
Lloh0:
	adrp	x3, l_.str.1@PAGE
Lloh1:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	mov	w22, #0
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
LBB0_4:
Lloh4:
	adrp	x8, _debug@GOTPAGE
Lloh5:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #1
	mov	x2, x20
	bl	_v4l2_dbg
	str	w22, [x21]
	ldr	w8, [x21, #4]
	orr	w2, w22, w8
	mov	x0, x20
	mov	w1, #58
	bl	_saa7127_write
	mov	w0, #0
	str	w19, [x21, #8]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Selecting Normal Encoder Input\n"

l_.str.1:                               ; @.str.1
	.asciz	"Selecting Color Bar generator\n"

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