	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cx88_wm8775_volume_put
_snd_cx88_wm8775_volume_put:            ## @snd_cx88_wm8775_volume_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_snd_kcontrol_chip
	movq	(%rax), %r14
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %esi
	cmpl	%esi, %ecx
	jge	LBB0_1
## %bb.4:
	testl	%esi, %esi
	je	LBB0_2
## %bb.5:
	shll	$15, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	$65535, %ebx                    ## imm = 0xFFFF
	subl	%eax, %ebx
	movl	%esi, %ecx
	jmp	LBB0_6
LBB0_1:
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.3:
	shll	$15, %esi
	movl	%esi, %eax
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_2:
	movl	$32768, %ebx                    ## imm = 0x8000
	xorl	%ecx, %ecx
LBB0_6:
	shll	$10, %ecx
	movq	_V4L2_CID_AUDIO_VOLUME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ecx, %edx
	callq	_wm8775_s_ctrl
	movq	_V4L2_CID_AUDIO_BALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wm8775_s_ctrl                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_CID_AUDIO_VOLUME,4,2      ## @V4L2_CID_AUDIO_VOLUME
	.comm	_V4L2_CID_AUDIO_BALANCE,4,2     ## @V4L2_CID_AUDIO_BALANCE
	.no_dead_strip	_snd_cx88_wm8775_volume_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cx88_wm8775_volume_put
_snd_cx88_wm8775_volume_put:            ; @snd_cx88_wm8775_volume_put
	.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, x1
	bl	_snd_kcontrol_chip
	ldr	x19, [x0]
	ldr	x9, [x20]
	ldp	w8, w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_3
; %bb.1:
	cbz	w9, LBB0_5
; %bb.2:
	lsl	w8, w8, #15
	sdiv	w8, w8, w9
	mov	w10, #65535
	sub	w20, w10, w8
	mov	x8, x9
	b	LBB0_7
LBB0_3:
	cbz	w8, LBB0_6
; %bb.4:
	lsl	w9, w9, #15
	sdiv	w20, w9, w8
	b	LBB0_7
LBB0_5:
	mov	w8, #0
LBB0_6:
	mov	w20, #32768
LBB0_7:
	lsl	w2, w8, #10
Lloh0:
	adrp	x8, _V4L2_CID_AUDIO_VOLUME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_CID_AUDIO_VOLUME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wm8775_s_ctrl
Lloh3:
	adrp	x8, _V4L2_CID_AUDIO_BALANCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_CID_AUDIO_BALANCE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wm8775_s_ctrl
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_CID_AUDIO_VOLUME,4,2      ; @V4L2_CID_AUDIO_VOLUME
	.comm	_V4L2_CID_AUDIO_BALANCE,4,2     ; @V4L2_CID_AUDIO_BALANCE
	.no_dead_strip	_snd_cx88_wm8775_volume_put
.subsections_via_symbols
