	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cx18_mixer_tv_vol_put
_snd_cx18_mixer_tv_vol_put:             ## @snd_cx18_mixer_tv_vol_put
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movl	(%rax), %edi
	callq	_to_cx18
	movq	%rax, %r14
	movq	_V4L2_CID_AUDIO_VOLUME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_dB_to_cx18_av_vol
	movq	%rax, -48(%rbp)
	movq	%r15, %rdi
	callq	_snd_cx18_lock
	movl	(%r14), %edi
	movq	_core@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_g_ctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	jmp	LBB0_3
LBB0_2:
	movq	-48(%rbp), %rdi
	callq	_cx18_av_vol_to_dB
	movq	(%rbx), %rcx
	movq	(%rcx), %rdi
	xorl	%ebx, %ebx
	cmpq	%rdi, %rax
	je	LBB0_4
LBB0_3:
	callq	_dB_to_cx18_av_vol
	movq	%rax, -48(%rbp)
	movl	(%r14), %edi
	movl	(%r12), %esi
	movq	_s_ctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	movl	$1, %ebx
	cmovnel	%eax, %ebx
LBB0_4:
	movq	%r15, %rdi
	callq	_snd_cx18_unlock
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CID_AUDIO_VOLUME,4,2      ## @V4L2_CID_AUDIO_VOLUME
	.comm	_core,4,2                       ## @core
	.comm	_g_ctrl,4,2                     ## @g_ctrl
	.comm	_s_ctrl,4,2                     ## @s_ctrl
	.no_dead_strip	_snd_cx18_mixer_tv_vol_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cx18_mixer_tv_vol_put
_snd_cx18_mixer_tv_vol_put:             ; @snd_cx18_mixer_tv_vol_put
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	w0, [x0]
	bl	_to_cx18
	mov	x20, x0
Lloh0:
	adrp	x8, _V4L2_CID_AUDIO_VOLUME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_CID_AUDIO_VOLUME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x8, [x21]
	ldr	x0, [x8]
	bl	_dB_to_cx18_av_vol
	str	x0, [sp]
	mov	x0, x19
	bl	_snd_cx18_lock
	ldr	w0, [x20]
Lloh3:
	adrp	x22, _core@GOTPAGE
Lloh4:
	ldr	x22, [x22, _core@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh5:
	adrp	x8, _g_ctrl@GOTPAGE
Lloh6:
	ldr	x8, [x8, _g_ctrl@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x3, sp
	bl	_v4l2_subdev_call
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	ldr	x0, [x8]
	b	LBB0_4
LBB0_2:
	ldr	x0, [sp]
	bl	_cx18_av_vol_to_dB
	mov	x8, x0
	ldr	x9, [x21]
	ldr	x0, [x9]
	cmp	x8, x0
	b.ne	LBB0_4
; %bb.3:
	mov	w20, #0
	b	LBB0_5
LBB0_4:
	bl	_dB_to_cx18_av_vol
	str	x0, [sp]
	ldr	w0, [x20]
	ldr	w1, [x22]
Lloh8:
	adrp	x8, _s_ctrl@GOTPAGE
Lloh9:
	ldr	x8, [x8, _s_ctrl@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x3, sp
	bl	_v4l2_subdev_call
	cmp	w0, #0
	csinc	w20, w0, wzr, ne
LBB0_5:
	mov	x0, x19
	bl	_snd_cx18_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CID_AUDIO_VOLUME,4,2      ; @V4L2_CID_AUDIO_VOLUME
	.comm	_core,4,2                       ; @core
	.comm	_g_ctrl,4,2                     ; @g_ctrl
	.comm	_s_ctrl,4,2                     ; @s_ctrl
	.no_dead_strip	_snd_cx18_mixer_tv_vol_put
.subsections_via_symbols
