	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7134_s_ctrl_internal        ## -- Begin function saa7134_s_ctrl_internal
	.p2align	4, 0x90
_saa7134_s_ctrl_internal:               ## @saa7134_s_ctrl_internal
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	leaq	56(%r14), %rdi
	movl	(%r15), %esi
	callq	_v4l2_prio_check
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_30
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%r12), %edi
	callq	_ctrl_by_id
	testq	%rax, %rax
	je	LBB0_29
## %bb.3:
	movq	%rax, %rbx
	movl	12(%rax), %esi
	movl	4(%r12), %edx
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_8
## %bb.4:
	movl	4(%r12), %eax
	movl	8(%rbx), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_6
## %bb.5:
	movl	%ecx, 4(%r12)
	movl	%ecx, %eax
LBB0_6:
	movl	4(%rbx), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_8
## %bb.7:
	movl	%ecx, 4(%r12)
LBB0_8:
	movl	$-131, %eax
	addl	(%r12), %eax
	cmpl	$10, %eax
	ja	LBB0_29
## %bb.9:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	movl	4(%r12), %eax
	movl	%eax, 28(%r14)
	movq	_SAA7134_DEC_CHROMA_SATURATION@GOTPCREL(%rip), %rcx
	jmp	LBB0_23
LBB0_11:
	movl	4(%r12), %eax
	movl	%eax, 16(%r14)
	jmp	LBB0_19
LBB0_12:
	movl	4(%r12), %eax
	movl	%eax, 20(%r14)
	jmp	LBB0_19
LBB0_13:
	movl	4(%r12), %eax
	movl	%eax, 32(%r14)
	movq	_SAA7134_DEC_LUMA_CONTRAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	36(%r14), %ecx
	movl	%ecx, %esi
	negl	%esi
	testl	%eax, %eax
	cmovel	%ecx, %esi
	callq	_saa_writeb
	movq	_SAA7134_DEC_CHROMA_SATURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	28(%r14), %eax
	jmp	LBB0_24
LBB0_14:
	movq	_TUNER_TDA9887@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	leaq	8(%r14), %rax
	movq	%rax, -56(%rbp)
	movl	4(%r12), %eax
	movl	%eax, 12(%r14)
	movl	8(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_28
## %bb.15:
	movq	_TDA9887_AUTOMUTE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	notl	%esi
	andl	%ecx, %esi
	orl	%ecx, %edx
	testl	%eax, %eax
	cmovel	%esi, %edx
	movl	%edx, 8(%r14)
	movq	_tuner@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_config@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rcx
	movq	%r14, %rdi
	callq	_saa_call_all
	jmp	LBB0_28
LBB0_17:
	movl	4(%r12), %esi
	movl	%esi, 48(%r14)
	movq	_SAA7134_DEC_CHROMA_HUE@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_18:
	movl	4(%r12), %eax
	movl	%eax, 24(%r14)
LBB0_19:
	xorl	%r13d, %r13d
	testq	%r15, %r15
	je	LBB0_29
## %bb.20:
	movq	_RESOURCE_OVERLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_res_check
	testq	%rax, %rax
	je	LBB0_29
## %bb.21:
	leaq	4(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_stop_preview
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_start_preview
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_29
LBB0_22:
	movl	4(%r12), %eax
	movl	%eax, 36(%r14)
	movq	_SAA7134_DEC_LUMA_CONTRAST@GOTPCREL(%rip), %rcx
LBB0_23:
	movl	(%rcx), %edi
LBB0_24:
	movl	%eax, %esi
	negl	%esi
	cmpl	$0, 32(%r14)
	cmovel	%eax, %esi
	jmp	LBB0_27
LBB0_25:
	movl	4(%r12), %esi
	movl	%esi, 52(%r14)
	movq	_SAA7134_DEC_LUMA_BRIGHT@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %edi
LBB0_27:
	callq	_saa_writeb
LBB0_28:
	xorl	%r13d, %r13d
LBB0_29:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_30:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movl	4(%r12), %esi
	movl	%esi, 40(%r14)
	movq	%r14, %rdi
	callq	_saa7134_tvaudio_setvolume
	jmp	LBB0_28
LBB0_32:
	movl	4(%r12), %eax
	movl	%eax, 44(%r14)
	movq	%r14, %rdi
	callq	_saa7134_tvaudio_setmute
	jmp	LBB0_28
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_22
	.long	L0_0_set_25
	.long	L0_0_set_31
	.long	L0_0_set_32
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set_control name=%s val=%d\n"

	.comm	_SAA7134_DEC_LUMA_BRIGHT,4,2    ## @SAA7134_DEC_LUMA_BRIGHT
	.comm	_SAA7134_DEC_CHROMA_HUE,4,2     ## @SAA7134_DEC_CHROMA_HUE
	.comm	_SAA7134_DEC_LUMA_CONTRAST,4,2  ## @SAA7134_DEC_LUMA_CONTRAST
	.comm	_SAA7134_DEC_CHROMA_SATURATION,4,2 ## @SAA7134_DEC_CHROMA_SATURATION
	.comm	_TUNER_TDA9887,4,2              ## @TUNER_TDA9887
	.comm	_TDA9887_AUTOMUTE,4,2           ## @TDA9887_AUTOMUTE
	.comm	_tuner,4,2                      ## @tuner
	.comm	_s_config,4,2                   ## @s_config
	.comm	_RESOURCE_OVERLAY,4,2           ## @RESOURCE_OVERLAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7134_s_ctrl_internal        ; -- Begin function saa7134_s_ctrl_internal
	.p2align	2
_saa7134_s_ctrl_internal:               ; @saa7134_s_ctrl_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	cbz	x1, LBB0_2
; %bb.1:
	add	x0, x19, #56
	ldr	w1, [x20]
	bl	_v4l2_prio_check
	mov	x22, x0
	cbnz	w0, LBB0_29
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
	mov	x0, x19
	bl	_mutex_lock
	ldr	w0, [x21]
	bl	_ctrl_by_id
	cbz	x0, LBB0_28
; %bb.3:
	mov	x23, x0
	ldr	w1, [x0, #12]
	ldr	w2, [x21, #4]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	ldr	w8, [x23]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_8
; %bb.4:
	ldr	w8, [x21, #4]
	ldr	w9, [x23, #8]
	cmp	w8, w9
	b.ge	LBB0_6
; %bb.5:
	str	w9, [x21, #4]
	mov	x8, x9
LBB0_6:
	ldr	w9, [x23, #4]
	cmp	w8, w9
	b.le	LBB0_8
; %bb.7:
	str	w9, [x21, #4]
LBB0_8:
	ldr	w8, [x21]
	sub	w8, w8, #131
	cmp	w8, #10
	b.hi	LBB0_28
; %bb.9:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_10
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:
	ldr	w8, [x21, #4]
	str	w8, [x19, #28]
Lloh7:
	adrp	x9, _SAA7134_DEC_CHROMA_SATURATION@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SAA7134_DEC_CHROMA_SATURATION@GOTPAGEOFF]
	b	LBB0_22
LBB0_11:
	ldr	w8, [x21, #4]
	str	w8, [x19, #16]
	b	LBB0_18
LBB0_12:
	ldr	w8, [x21, #4]
	str	w8, [x19, #20]
	b	LBB0_18
LBB0_13:
	ldr	w8, [x21, #4]
	str	w8, [x19, #32]
Lloh9:
	adrp	x9, _SAA7134_DEC_LUMA_CONTRAST@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SAA7134_DEC_LUMA_CONTRAST@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x9]
	ldr	w9, [x19, #36]
	cmp	w8, #0
	cneg	w1, w9, ne
	bl	_saa_writeb
Lloh12:
	adrp	x8, _SAA7134_DEC_CHROMA_SATURATION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SAA7134_DEC_CHROMA_SATURATION@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldp	w9, w8, [x19, #28]
	cmp	w8, #0
	cneg	w1, w9, ne
	bl	_saa_writeb
	b	LBB0_27
LBB0_14:
Lloh15:
	adrp	x8, _TUNER_TDA9887@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TUNER_TDA9887@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	mov	x10, x19
	ldr	w8, [x10, #8]!
	str	x10, [sp]
	ldr	w9, [x21, #4]
	str	w9, [x10, #4]
	cbz	w8, LBB0_27
; %bb.15:
Lloh18:
	adrp	x10, _TDA9887_AUTOMUTE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _TDA9887_AUTOMUTE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	bic	w11, w8, w10
	orr	w8, w10, w8
	cmp	w9, #0
	csel	w8, w11, w8, eq
	str	w8, [x19, #8]
Lloh21:
	adrp	x8, _tuner@GOTPAGE
Lloh22:
	ldr	x8, [x8, _tuner@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _s_config@GOTPAGE
Lloh25:
	ldr	x8, [x8, _s_config@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x19
	bl	_saa_call_all
	b	LBB0_27
LBB0_16:
	ldr	w1, [x21, #4]
	str	w1, [x19, #48]
Lloh27:
	adrp	x8, _SAA7134_DEC_CHROMA_HUE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SAA7134_DEC_CHROMA_HUE@GOTPAGEOFF]
	b	LBB0_24
LBB0_17:
	ldr	w8, [x21, #4]
	str	w8, [x19, #24]
LBB0_18:
	cbz	x20, LBB0_27
; %bb.19:
Lloh29:
	adrp	x8, _RESOURCE_OVERLAY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RESOURCE_OVERLAY@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_res_check
	cbz	x0, LBB0_27
; %bb.20:
	add	x21, x19, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	x1, x20
	bl	_stop_preview
	mov	x0, x19
	mov	x1, x20
	bl	_start_preview
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	b	LBB0_27
LBB0_21:
	ldr	w8, [x21, #4]
	str	w8, [x19, #36]
Lloh32:
	adrp	x9, _SAA7134_DEC_LUMA_CONTRAST@GOTPAGE
Lloh33:
	ldr	x9, [x9, _SAA7134_DEC_LUMA_CONTRAST@GOTPAGEOFF]
LBB0_22:
	ldr	w0, [x9]
	ldr	w9, [x19, #32]
	cmp	w9, #0
	cneg	w1, w8, ne
	bl	_saa_writeb
	b	LBB0_27
LBB0_23:
	ldr	w1, [x21, #4]
	str	w1, [x19, #52]
Lloh34:
	adrp	x8, _SAA7134_DEC_LUMA_BRIGHT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SAA7134_DEC_LUMA_BRIGHT@GOTPAGEOFF]
LBB0_24:
	ldr	w0, [x8]
	bl	_saa_writeb
	b	LBB0_27
LBB0_25:
	ldr	w1, [x21, #4]
	str	w1, [x19, #40]
	mov	x0, x19
	bl	_saa7134_tvaudio_setvolume
	b	LBB0_27
LBB0_26:
	ldr	w8, [x21, #4]
	str	w8, [x19, #44]
	mov	x0, x19
	bl	_saa7134_tvaudio_setmute
LBB0_27:
	mov	w22, #0
LBB0_28:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_29:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_11-LBB0_10)>>2
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_14-LBB0_10)>>2
	.byte	(LBB0_16-LBB0_10)>>2
	.byte	(LBB0_17-LBB0_10)>>2
	.byte	(LBB0_21-LBB0_10)>>2
	.byte	(LBB0_23-LBB0_10)>>2
	.byte	(LBB0_25-LBB0_10)>>2
	.byte	(LBB0_26-LBB0_10)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set_control name=%s val=%d\n"

	.comm	_SAA7134_DEC_LUMA_BRIGHT,4,2    ; @SAA7134_DEC_LUMA_BRIGHT
	.comm	_SAA7134_DEC_CHROMA_HUE,4,2     ; @SAA7134_DEC_CHROMA_HUE
	.comm	_SAA7134_DEC_LUMA_CONTRAST,4,2  ; @SAA7134_DEC_LUMA_CONTRAST
	.comm	_SAA7134_DEC_CHROMA_SATURATION,4,2 ; @SAA7134_DEC_CHROMA_SATURATION
	.comm	_TUNER_TDA9887,4,2              ; @TUNER_TDA9887
	.comm	_TDA9887_AUTOMUTE,4,2           ; @TDA9887_AUTOMUTE
	.comm	_tuner,4,2                      ; @tuner
	.comm	_s_config,4,2                   ; @s_config
	.comm	_RESOURCE_OVERLAY,4,2           ; @RESOURCE_OVERLAY
.subsections_via_symbols
