	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bttv_s_ctrl
_bttv_s_ctrl:                           ## @bttv_s_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	8(%rsi), %rbx
	leaq	56(%rbx), %rdi
	movl	(%rsi), %esi
	callq	_v4l2_prio_check
	testl	%eax, %eax
	je	LBB0_1
LBB0_33:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$19, %eax
	ja	LBB0_32
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movl	4(%r14), %esi
	jmp	LBB0_7
LBB0_32:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_33
LBB0_26:
	movl	4(%r14), %edi
	movl	%edi, 24(%rbx)
	movq	_BT848_WC_UP@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_27:
	movl	4(%r14), %edi
	movl	%edi, 28(%rbx)
	movq	_BT848_WC_DOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_25:
	movl	4(%r14), %eax
	movl	%eax, 20(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_33
LBB0_28:
	movl	4(%r14), %eax
	movl	%eax, 32(%rbx)
	movl	36(%rbx), %esi
LBB0_7:
	movq	%rbx, %rdi
	callq	_bt848_sat
	xorl	%eax, %eax
	jmp	LBB0_33
LBB0_16:
	movl	4(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	_BT848_CONTROL_LDEC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	notl	%edi
	movq	_BT848_E_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_btand
	movl	(%rbx), %edi
	notl	%edi
	movq	_BT848_O_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_btand
	xorl	%eax, %eax
	jmp	LBB0_33
LBB0_29:
	movl	4(%r14), %edi
	movl	%edi, 40(%rbx)
	shll	$7, %edi
	movq	_BT848_OFORM_RANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_31:
	movl	4(%r14), %edi
	movl	%edi, 44(%rbx)
	shll	$5, %edi
	movq	_BT848_OFORM_CORE32@GOTPCREL(%rip), %rax
LBB0_30:
	movl	(%rax), %esi
	notl	%esi
	movq	_BT848_OFORM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_btaor
	xorl	%eax, %eax
	jmp	LBB0_33
LBB0_15:
	movl	4(%r14), %eax
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_33
LBB0_12:
	movl	4(%r14), %r14d
	movl	%r14d, (%rbx)
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.13:
	movq	_BT848_SCLOOP_CAGC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_14:
	movq	_BT848_E_SCLOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_btwrite
	movq	_BT848_O_SCLOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	jmp	LBB0_24
LBB0_19:
	movl	4(%r14), %eax
	movl	%eax, 12(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_33
LBB0_20:
	movl	4(%r14), %edi
	movl	%edi, 16(%rbx)
	movq	_BT848_ADC_RESERVED@GOTPCREL(%rip), %rax
	testl	%edi, %edi
	je	LBB0_22
## %bb.21:
	movq	_BT848_ADC_CRUSH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
LBB0_22:
	orl	(%rax), %edi
	movq	_BT848_ADC@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %esi
LBB0_24:
	callq	_btwrite
	xorl	%eax, %eax
	jmp	LBB0_33
LBB0_4:
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_bt848_hue
	xorl	%eax, %eax
	jmp	LBB0_33
LBB0_5:
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_bt848_contrast
	xorl	%eax, %eax
	jmp	LBB0_33
LBB0_3:
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_bt848_bright
	xorl	%eax, %eax
	jmp	LBB0_33
LBB0_8:
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_audio_mute
LBB0_9:
	movq	48(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	*%rax
LBB0_11:
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_s_ctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	_bttv_call_all
	xorl	%eax, %eax
	jmp	LBB0_33
LBB0_18:
	movq	_BT848_E_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_btor
	movl	(%rbx), %edi
	movq	_BT848_O_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_btor
	xorl	%eax, %eax
	jmp	LBB0_33
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_26
	.long	L0_0_set_27
	.long	L0_0_set_25
	.long	L0_0_set_28
	.long	L0_0_set_16
	.long	L0_0_set_29
	.long	L0_0_set_31
	.long	L0_0_set_15
	.long	L0_0_set_12
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_core,4,2                       ## @core
	.comm	_s_ctrl,4,2                     ## @s_ctrl
	.comm	_BT848_SCLOOP_CAGC,4,2          ## @BT848_SCLOOP_CAGC
	.comm	_BT848_E_SCLOOP,4,2             ## @BT848_E_SCLOOP
	.comm	_BT848_O_SCLOOP,4,2             ## @BT848_O_SCLOOP
	.comm	_BT848_CONTROL_LDEC,4,2         ## @BT848_CONTROL_LDEC
	.comm	_BT848_E_CONTROL,4,2            ## @BT848_E_CONTROL
	.comm	_BT848_O_CONTROL,4,2            ## @BT848_O_CONTROL
	.comm	_BT848_ADC_RESERVED,4,2         ## @BT848_ADC_RESERVED
	.comm	_BT848_ADC_CRUSH,4,2            ## @BT848_ADC_CRUSH
	.comm	_BT848_ADC,4,2                  ## @BT848_ADC
	.comm	_BT848_WC_UP,4,2                ## @BT848_WC_UP
	.comm	_BT848_WC_DOWN,4,2              ## @BT848_WC_DOWN
	.comm	_BT848_OFORM_RANGE,4,2          ## @BT848_OFORM_RANGE
	.comm	_BT848_OFORM,4,2                ## @BT848_OFORM
	.comm	_BT848_OFORM_CORE32,4,2         ## @BT848_OFORM_CORE32
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bttv_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bttv_s_ctrl
_bttv_s_ctrl:                           ; @bttv_s_ctrl
	.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	x20, x2
	ldr	x19, [x1, #8]
	add	x0, x19, #56
	ldr	w1, [x1]
	bl	_v4l2_prio_check
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #19
	b.hi	LBB0_5
; %bb.3:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	w1, [x20, #4]
	b	LBB0_10
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
LBB0_6:
	ldr	w0, [x20, #4]
	str	w0, [x19, #24]
Lloh5:
	adrp	x8, _BT848_WC_UP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BT848_WC_UP@GOTPAGEOFF]
	b	LBB0_20
LBB0_7:
	ldr	w0, [x20, #4]
	str	w0, [x19, #28]
Lloh7:
	adrp	x8, _BT848_WC_DOWN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BT848_WC_DOWN@GOTPAGEOFF]
	b	LBB0_20
LBB0_8:
	mov	w0, #0
	ldr	w8, [x20, #4]
	str	w8, [x19, #20]
	b	LBB0_1
LBB0_9:
	ldr	w8, [x20, #4]
	str	w8, [x19, #32]
	ldr	w1, [x19, #36]
LBB0_10:
	mov	x0, x19
	bl	_bt848_sat
	mov	w0, #0
	b	LBB0_1
LBB0_11:
	ldr	w8, [x20, #4]
	str	w8, [x19, #8]
Lloh9:
	adrp	x19, _BT848_CONTROL_LDEC@GOTPAGE
Lloh10:
	ldr	x19, [x19, _BT848_CONTROL_LDEC@GOTPAGEOFF]
	ldr	w0, [x19]
	cbz	w8, LBB0_29
; %bb.12:
	mvn	w0, w0
Lloh11:
	adrp	x8, _BT848_E_CONTROL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BT848_E_CONTROL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_btand
	ldr	w8, [x19]
	mvn	w0, w8
Lloh14:
	adrp	x8, _BT848_O_CONTROL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BT848_O_CONTROL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_btand
	mov	w0, #0
	b	LBB0_1
LBB0_13:
	ldr	w8, [x20, #4]
	str	w8, [x19, #40]
Lloh17:
	adrp	x9, _BT848_OFORM_RANGE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BT848_OFORM_RANGE@GOTPAGEOFF]
	lsl	w0, w8, #7
	b	LBB0_15
LBB0_14:
	ldr	w8, [x20, #4]
	str	w8, [x19, #44]
Lloh19:
	adrp	x9, _BT848_OFORM_CORE32@GOTPAGE
Lloh20:
	ldr	x9, [x9, _BT848_OFORM_CORE32@GOTPAGEOFF]
	lsl	w0, w8, #5
LBB0_15:
	ldr	w8, [x9]
	mvn	w1, w8
Lloh21:
	adrp	x8, _BT848_OFORM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BT848_OFORM@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	bl	_btaor
	mov	w0, #0
	b	LBB0_1
LBB0_16:
	mov	w0, #0
	ldr	w8, [x20, #4]
	str	w8, [x19, #4]
	b	LBB0_1
LBB0_17:
	ldr	w8, [x20, #4]
	str	w8, [x19]
Lloh24:
	adrp	x9, _BT848_SCLOOP_CAGC@GOTPAGE
Lloh25:
	ldr	x9, [x9, _BT848_SCLOOP_CAGC@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w19, wzr, w9, eq
Lloh27:
	adrp	x8, _BT848_E_SCLOOP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BT848_E_SCLOOP@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_btwrite
Lloh30:
	adrp	x8, _BT848_O_SCLOOP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BT848_O_SCLOOP@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	b	LBB0_21
LBB0_18:
	mov	w0, #0
	ldr	w8, [x20, #4]
	str	w8, [x19, #12]
	b	LBB0_1
LBB0_19:
	ldr	w8, [x20, #4]
	str	w8, [x19, #16]
Lloh33:
	adrp	x9, _BT848_ADC_RESERVED@GOTPAGE
Lloh34:
	ldr	x9, [x9, _BT848_ADC_RESERVED@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
Lloh36:
	adrp	x10, _BT848_ADC_CRUSH@GOTPAGE
Lloh37:
	ldr	x10, [x10, _BT848_ADC_CRUSH@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	cmp	w8, #0
	csel	w8, wzr, w10, eq
	orr	w0, w8, w9
Lloh39:
	adrp	x8, _BT848_ADC@GOTPAGE
Lloh40:
	ldr	x8, [x8, _BT848_ADC@GOTPAGEOFF]
LBB0_20:
	ldr	w1, [x8]
LBB0_21:
	bl	_btwrite
	mov	w0, #0
	b	LBB0_1
LBB0_22:
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_bt848_hue
	mov	w0, #0
	b	LBB0_1
LBB0_23:
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_bt848_contrast
	mov	w0, #0
	b	LBB0_1
LBB0_24:
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_bt848_bright
	mov	w0, #0
	b	LBB0_1
LBB0_25:
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_audio_mute
LBB0_26:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_28
; %bb.27:
	ldr	w1, [x20, #4]
	mov	x0, x19
	blr	x8
LBB0_28:
Lloh41:
	adrp	x8, _core@GOTPAGE
Lloh42:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
Lloh44:
	adrp	x8, _s_ctrl@GOTPAGE
Lloh45:
	ldr	x8, [x8, _s_ctrl@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_bttv_call_all
	mov	w0, #0
	b	LBB0_1
LBB0_29:
Lloh47:
	adrp	x8, _BT848_E_CONTROL@GOTPAGE
Lloh48:
	ldr	x8, [x8, _BT848_E_CONTROL@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	bl	_btor
	ldr	w0, [x19]
Lloh50:
	adrp	x8, _BT848_O_CONTROL@GOTPAGE
Lloh51:
	ldr	x8, [x8, _BT848_O_CONTROL@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	bl	_btor
	mov	w0, #0
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_14-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
	.byte	(LBB0_17-LBB0_4)>>2
	.byte	(LBB0_18-LBB0_4)>>2
	.byte	(LBB0_19-LBB0_4)>>2
	.byte	(LBB0_22-LBB0_4)>>2
	.byte	(LBB0_23-LBB0_4)>>2
	.byte	(LBB0_24-LBB0_4)>>2
	.byte	(LBB0_26-LBB0_4)>>2
	.byte	(LBB0_28-LBB0_4)>>2
	.byte	(LBB0_25-LBB0_4)>>2
	.byte	(LBB0_28-LBB0_4)>>2
	.byte	(LBB0_28-LBB0_4)>>2
                                        ; -- End function
	.comm	_core,4,2                       ; @core
	.comm	_s_ctrl,4,2                     ; @s_ctrl
	.comm	_BT848_SCLOOP_CAGC,4,2          ; @BT848_SCLOOP_CAGC
	.comm	_BT848_E_SCLOOP,4,2             ; @BT848_E_SCLOOP
	.comm	_BT848_O_SCLOOP,4,2             ; @BT848_O_SCLOOP
	.comm	_BT848_CONTROL_LDEC,4,2         ; @BT848_CONTROL_LDEC
	.comm	_BT848_E_CONTROL,4,2            ; @BT848_E_CONTROL
	.comm	_BT848_O_CONTROL,4,2            ; @BT848_O_CONTROL
	.comm	_BT848_ADC_RESERVED,4,2         ; @BT848_ADC_RESERVED
	.comm	_BT848_ADC_CRUSH,4,2            ; @BT848_ADC_CRUSH
	.comm	_BT848_ADC,4,2                  ; @BT848_ADC
	.comm	_BT848_WC_UP,4,2                ; @BT848_WC_UP
	.comm	_BT848_WC_DOWN,4,2              ; @BT848_WC_DOWN
	.comm	_BT848_OFORM_RANGE,4,2          ; @BT848_OFORM_RANGE
	.comm	_BT848_OFORM,4,2                ; @BT848_OFORM
	.comm	_BT848_OFORM_CORE32,4,2         ; @BT848_OFORM_CORE32
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bttv_s_ctrl
.subsections_via_symbols
