	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msp_s_ctrl
_msp_s_ctrl:                            ## @msp_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	%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	%rdi, %rbx
	callq	_ctrl_to_state
	movq	%rax, %r15
	leaq	32(%rax), %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movl	4(%rbx), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_8
## %bb.1:
	movl	(%rbx), %r13d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	24(%r15), %rax
	movl	(%rax), %ecx
	movl	(%r15), %eax
	movl	%eax, %edx
	orl	%ecx, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_4
## %bb.3:
	movl	%r13d, %edx
	shll	$7, %edx
	subl	%r13d, %edx
	movslq	%edx, %r13
	imulq	$-2147450879, %r13, %rdx        ## imm = 0x80008001
	shrq	$32, %rdx
	addl	%edx, %r13d
	movl	%r13d, %edx
	shrl	$31, %edx
	sarl	$15, %r13d
	addl	%edx, %r13d
	shll	$8, %r13d
LBB0_4:
	movq	_msp_debug@GOTPCREL(%rip), %rdx
	testl	%ecx, %ecx
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.1(%rip), %r8
	cmoveq	%rcx, %r8
	movl	(%rdx), %edx
	testl	%eax, %eax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %r9
	cmoveq	%rax, %r9
	movq	16(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_dev_dbg_lvl
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_msp_write_dsp
	movl	%r13d, %ebx
	orl	$1, %ebx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movl	$1, %eax
	cmovnel	%eax, %ebx
	movq	%r14, %rdi
	movl	$7, %esi
	movl	%ebx, %edx
	callq	_msp_write_dsp
	cmpl	$0, 8(%r15)
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movl	$64, %esi
	movl	%ebx, %edx
	callq	_msp_write_dsp
LBB0_6:
	cmpl	$0, 4(%r15)
	je	LBB0_19
## %bb.7:
	movq	%r14, %rdi
	movl	$6, %esi
	movl	%r13d, %edx
	jmp	LBB0_18
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_19
LBB0_9:
	leal	(%r13,%r13,2), %eax
	shll	$5, %eax
	movl	%eax, %ecx
	addl	$-3145728, %ecx                 ## imm = 0xFFD00000
	movslq	%ecx, %rcx
	imulq	$-2147450879, %rcx, %rcx        ## imm = 0x80008001
	shrq	$32, %rcx
	leal	(%rcx,%rax), %ebx
	addl	$-3145728, %ebx                 ## imm = 0xFFD00000
	movl	%ebx, %eax
	shrl	$31, %eax
	sarl	$15, %ebx
	addl	%eax, %ebx
	shll	$8, %ebx
	movq	%r14, %rdi
	movl	$3, %esi
	movl	%ebx, %edx
	callq	_msp_write_dsp
	xorl	%r12d, %r12d
	cmpl	$0, 4(%r15)
	je	LBB0_19
## %bb.10:
	movq	%r14, %rdi
	movl	$50, %esi
	jmp	LBB0_17
LBB0_11:
	testl	%r13d, %r13d
	movl	$5120, %ebx                     ## imm = 0x1400
	cmovel	%r13d, %ebx
	movq	%r14, %rdi
	movl	$4, %esi
	movl	%ebx, %edx
	callq	_msp_write_dsp
	xorl	%r12d, %r12d
	cmpl	$0, 4(%r15)
	je	LBB0_19
## %bb.12:
	movq	%r14, %rdi
	movl	$51, %esi
	jmp	LBB0_17
LBB0_13:
	leal	(%r13,%r13,2), %eax
	shll	$5, %eax
	movl	%eax, %ecx
	addl	$-3145728, %ecx                 ## imm = 0xFFD00000
	movslq	%ecx, %rcx
	imulq	$-2147450879, %rcx, %rcx        ## imm = 0x80008001
	shrq	$32, %rcx
	leal	(%rcx,%rax), %ebx
	addl	$-3145728, %ebx                 ## imm = 0xFFD00000
	movl	%ebx, %eax
	shrl	$31, %eax
	sarl	$15, %ebx
	addl	%eax, %ebx
	shll	$8, %ebx
	movq	%r14, %rdi
	movl	$2, %esi
	movl	%ebx, %edx
	callq	_msp_write_dsp
	xorl	%r12d, %r12d
	cmpl	$0, 4(%r15)
	je	LBB0_19
## %bb.14:
	movq	%r14, %rdi
	movl	$49, %esi
	jmp	LBB0_17
LBB0_15:
	leal	255(%r13), %ebx
	testl	%r13d, %r13d
	cmovnsl	%r13d, %ebx
	andl	$-256, %ebx
	addl	$-32768, %ebx                   ## imm = 0x8000
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%ebx, %edx
	callq	_msp_write_dsp
	xorl	%r12d, %r12d
	cmpl	$0, 4(%r15)
	je	LBB0_19
## %bb.16:
	movq	%r14, %rdi
	movl	$48, %esi
LBB0_17:
	movl	%ebx, %edx
LBB0_18:
	callq	_msp_write_dsp
LBB0_19:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_msp_debug,4,2                  ## @msp_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mute=%s scanning=%s volume=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"on"

L_.str.2:                               ## @.str.2
	.asciz	"off"

L_.str.3:                               ## @.str.3
	.asciz	"yes"

L_.str.4:                               ## @.str.4
	.asciz	"no"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msp_s_ctrl
_msp_s_ctrl:                            ; @msp_s_ctrl
	.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
	bl	_ctrl_to_state
	mov	x20, x0
	add	x0, x0, #32
	bl	_v4l2_get_subdevdata
	ldr	w8, [x21, #4]
	sub	w9, w8, #128
	cmp	w9, #4
	b.hi	LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w8, [x21]
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	ldp	x10, x9, [x20, #16]
	ldr	w9, [x9]
	ldr	w11, [x20]
	orr	w22, w11, w9
	lsl	w12, w8, #7
	mov	w13, #32769
	movk	w13, #32768, lsl #16
	sub	w12, w12, w8
	smull	x13, w12, w13
	lsr	x13, x13, #32
	add	w12, w13, w12
	asr	w13, w12, #15
	add	w12, w13, w12, lsr #31
	lsl	w12, w12, #8
	cmp	w22, #0
	csel	w21, w8, w12, ne
Lloh2:
	adrp	x8, _msp_debug@GOTPAGE
Lloh3:
	ldr	x8, [x8, _msp_debug@GOTPAGEOFF]
Lloh4:
	adrp	x12, l_.str.1@PAGE
Lloh5:
	add	x12, x12, l_.str.1@PAGEOFF
	cmp	w9, #0
Lloh6:
	adrp	x9, l_.str.2@PAGE
Lloh7:
	add	x9, x9, l_.str.2@PAGEOFF
	csel	x4, x9, x12, eq
Lloh8:
	adrp	x9, l_.str.3@PAGE
Lloh9:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh10:
	ldr	w2, [x8]
	cmp	w11, #0
Lloh11:
	adrp	x8, l_.str.4@PAGE
Lloh12:
	add	x8, x8, l_.str.4@PAGEOFF
	csel	x5, x8, x9, eq
	ldr	w6, [x10]
Lloh13:
	adrp	x3, l_.str@PAGE
Lloh14:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_dev_dbg_lvl
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	bl	_msp_write_dsp
	orr	w8, w21, #0x1
	cmp	w22, #0
	csinc	w22, w8, wzr, eq
	mov	x0, x19
	mov	w1, #7
	mov	x2, x22
	bl	_msp_write_dsp
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #64
	mov	x2, x22
	bl	_msp_write_dsp
LBB0_4:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_16
; %bb.5:
	mov	x0, x19
	mov	w1, #6
	b	LBB0_15
LBB0_6:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_7:
	mov	w9, #96
	mul	w8, w8, w9
	sub	w8, w8, #768, lsl #12           ; =3145728
	mov	w9, #32769
	movk	w9, #32768, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #15
	add	w8, w9, w8, lsr #31
	lsl	w21, w8, #8
	mov	x0, x19
	mov	w1, #3
	mov	x2, x21
	bl	_msp_write_dsp
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_16
; %bb.8:
	mov	x0, x19
	mov	w1, #50
	b	LBB0_15
LBB0_9:
	mov	w9, #5120
	cmp	w8, #0
	csel	w21, wzr, w9, eq
	mov	x0, x19
	mov	w1, #4
	mov	x2, x21
	bl	_msp_write_dsp
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_16
; %bb.10:
	mov	x0, x19
	mov	w1, #51
	b	LBB0_15
LBB0_11:
	mov	w9, #96
	mul	w8, w8, w9
	sub	w8, w8, #768, lsl #12           ; =3145728
	mov	w9, #32769
	movk	w9, #32768, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #15
	add	w8, w9, w8, lsr #31
	lsl	w21, w8, #8
	mov	x0, x19
	mov	w1, #2
	mov	x2, x21
	bl	_msp_write_dsp
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_16
; %bb.12:
	mov	x0, x19
	mov	w1, #49
	b	LBB0_15
LBB0_13:
	add	w9, w8, #255
	cmp	w8, #0
	csel	w8, w9, w8, lt
	and	w8, w8, #0xffffff00
	sub	w21, w8, #8, lsl #12            ; =32768
	mov	x0, x19
	mov	w1, #1
	mov	x2, x21
	bl	_msp_write_dsp
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_16
; %bb.14:
	mov	x0, x19
	mov	w1, #48
LBB0_15:
	mov	x2, x21
	bl	_msp_write_dsp
LBB0_16:
	mov	w0, #0
LBB0_17:
	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	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
                                        ; -- End function
	.comm	_msp_debug,4,2                  ; @msp_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mute=%s scanning=%s volume=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"on"

l_.str.2:                               ; @.str.2
	.asciz	"off"

l_.str.3:                               ; @.str.3
	.asciz	"yes"

l_.str.4:                               ; @.str.4
	.asciz	"no"

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