	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si470x_vidioc_s_tuner
_si470x_vidioc_s_tuner:                 ## @si470x_vidioc_s_tuner
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	cmpq	$0, (%rbx)
	je	LBB0_1
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	cmpl	$129, 8(%rbx)
	movq	_POWERCFG_MONO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jne	LBB0_3
## %bb.2:
	movq	8(%rax), %rdx
	movq	_POWERCFG@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	orl	%ecx, (%rdx,%rsi,4)
	jmp	LBB0_4
LBB0_3:
	notl	%ecx
	movq	8(%rax), %rdx
	movq	_POWERCFG@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	andl	%ecx, (%rdx,%rsi,4)
LBB0_4:
	movq	(%rax), %rcx
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_POWERCFG_MONO,4,2              ## @POWERCFG_MONO
	.comm	_POWERCFG,8,3                   ## @POWERCFG
	.no_dead_strip	_si470x_vidioc_s_tuner
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si470x_vidioc_s_tuner
_si470x_vidioc_s_tuner:                 ; @si470x_vidioc_s_tuner
	.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	x19, x2
	bl	_video_drvdata
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w9, [x19, #8]
Lloh3:
	adrp	x8, _POWERCFG_MONO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POWERCFG_MONO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w9, #129
	b.ne	LBB0_4
; %bb.3:
	ldr	x9, [x0, #8]
Lloh6:
	adrp	x10, _POWERCFG@GOTPAGE
Lloh7:
	ldr	x10, [x10, _POWERCFG@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x10]
	lsl	x10, x1, #2
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	b	LBB0_5
LBB0_4:
	ldr	x9, [x0, #8]
Lloh9:
	adrp	x10, _POWERCFG@GOTPAGE
Lloh10:
	ldr	x10, [x10, _POWERCFG@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x10]
	lsl	x10, x1, #2
	ldr	w11, [x9, x10]
	bic	w8, w11, w8
LBB0_5:
	str	w8, [x9, x10]
	ldr	x2, [x0]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_POWERCFG_MONO,4,2              ; @POWERCFG_MONO
	.comm	_POWERCFG,8,3                   ; @POWERCFG
	.no_dead_strip	_si470x_vidioc_s_tuner
.subsections_via_symbols
