	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7113_setinput
_saa7113_setinput:                      ## @saa7113_setinput
	.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
	cmpl	$1, (%rdi)
	jne	LBB0_1
## %bb.3:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	8(%rdi), %r15
	testl	%esi, %esi
	je	LBB0_7
## %bb.4:
	cmpl	$1, %r14d
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movl	$74, %esi
	movl	$2, %edx
	movl	$199, %ecx
	callq	_i2c_writereg
	movq	%r15, %rdi
	movl	$74, %esi
	movl	$9, %edx
	movl	$128, %ecx
	jmp	LBB0_8
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_7:
	movq	%r15, %rdi
	movl	$74, %esi
	movl	$2, %edx
	movl	$192, %ecx
	callq	_i2c_writereg
	movq	%r15, %rdi
	movl	$74, %esi
	movl	$9, %edx
	xorl	%ecx, %ecx
LBB0_8:
	callq	_i2c_writereg
	movl	%r14d, 4(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_saa7113_setinput
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7113_setinput
_saa7113_setinput:                      ; @saa7113_setinput
	.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, x0
	ldr	w8, [x21], #8
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	cbz	w1, LBB0_5
; %bb.2:
	cmp	w19, #1
	b.ne	LBB0_7
; %bb.3:
	mov	x0, x21
	mov	w1, #74
	mov	w2, #2
	mov	w3, #199
	bl	_i2c_writereg
	mov	x0, x21
	mov	w1, #74
	mov	w2, #9
	mov	w3, #128
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	mov	x0, x21
	mov	w1, #74
	mov	w2, #2
	mov	w3, #192
	bl	_i2c_writereg
	mov	x0, x21
	mov	w1, #74
	mov	w2, #9
	mov	w3, #0
LBB0_6:
	bl	_i2c_writereg
	mov	w0, #0
	str	w19, [x20, #4]
	b	LBB0_9
LBB0_7:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_saa7113_setinput
.subsections_via_symbols
