	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_opl4_update_vibrato_depth
_snd_opl4_update_vibrato_depth:         ## @snd_opl4_update_vibrato_depth
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	24(%rsi), %rcx
	cmpq	$0, 8(%rcx)
	je	LBB0_2
## %bb.1:
	popq	%rbp
	retq
LBB0_2:
	movq	8(%rsi), %r8
	movq	16(%rsi), %rdx
	movl	(%rdx), %r9d
	movl	$7, %eax
	subl	%r9d, %eax
	movq	(%rcx), %rcx
	movq	_MIDI_CTL_VIBRATO_DEPTH@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %edx
	andl	$127, %edx
	imull	%eax, %edx
	sarl	$7, %edx
	addl	%r9d, %edx
	movq	_OPL4_VIBRATO_DEPTH_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	andl	(%rsi), %ecx
	movl	%ecx, (%rsi)
	andl	(%rax), %edx
	orl	%ecx, %edx
	movl	%edx, (%rsi)
	movq	_OPL4_REG_LFO_VIBRATO@GOTPCREL(%rip), %rax
	addq	(%rax), %r8
	movq	%r8, %rsi
	popq	%rbp
	jmp	_snd_opl4_write                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MIDI_CTL_VIBRATO_DEPTH,8,3     ## @MIDI_CTL_VIBRATO_DEPTH
	.comm	_OPL4_VIBRATO_DEPTH_MASK,4,2    ## @OPL4_VIBRATO_DEPTH_MASK
	.comm	_OPL4_REG_LFO_VIBRATO,8,3       ## @OPL4_REG_LFO_VIBRATO
	.no_dead_strip	_snd_opl4_update_vibrato_depth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_opl4_update_vibrato_depth
_snd_opl4_update_vibrato_depth:         ; @snd_opl4_update_vibrato_depth
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1, #24]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_2
; %bb.1:
	ret
LBB0_2:
	ldp	x10, x9, [x1, #8]
	ldr	w9, [x9]
	mov	w11, #7
	sub	w11, w11, w9
Lloh0:
	adrp	x12, _MIDI_CTL_VIBRATO_DEPTH@GOTPAGE
Lloh1:
	ldr	x12, [x12, _MIDI_CTL_VIBRATO_DEPTH@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh2:
	ldr	x12, [x12]
	ldr	w8, [x8, x12, lsl #2]
	and	w8, w8, #0x7f
	mul	w8, w8, w11
	add	w8, w9, w8, asr #7
Lloh3:
	adrp	x9, _OPL4_VIBRATO_DEPTH_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OPL4_VIBRATO_DEPTH_MASK@GOTPAGEOFF]
	ldr	w11, [x9]
	ldr	w12, [x1]
	bic	w11, w12, w11
	str	w11, [x1]
	ldr	w9, [x9]
	and	w8, w8, w9
	orr	w2, w8, w11
Lloh5:
	adrp	x8, _OPL4_REG_LFO_VIBRATO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OPL4_REG_LFO_VIBRATO@GOTPAGEOFF]
	str	w2, [x1]
Lloh7:
	ldr	x8, [x8]
	add	x1, x10, x8
	b	_snd_opl4_write
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MIDI_CTL_VIBRATO_DEPTH,8,3     ; @MIDI_CTL_VIBRATO_DEPTH
	.comm	_OPL4_VIBRATO_DEPTH_MASK,4,2    ; @OPL4_VIBRATO_DEPTH_MASK
	.comm	_OPL4_REG_LFO_VIBRATO,8,3       ; @OPL4_REG_LFO_VIBRATO
	.no_dead_strip	_snd_opl4_update_vibrato_depth
.subsections_via_symbols
