	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emu8k_pcm_silence
_emu8k_pcm_silence:                     ## @emu8k_pcm_silence
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	(%rdi), %rax
	movq	(%rax), %r12
	movq	16(%r12), %r14
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_snd_emu8000_write_wait
	movq	8(%r12), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	movq	%r14, %rdi
	callq	_EMU8000_SMALW_WRITE
	cmpl	$2, (%r12)
	jl	LBB0_2
## %bb.1:
	movq	8(%r12), %rax
	addq	8(%rax), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_EMU8000_SMARW_WRITE
LBB0_2:
	testq	%rbx, %rbx
	jle	LBB0_7
## %bb.3:
	incq	%rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	decq	%rbx
	cmpq	$1, %rbx
	jbe	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_CHECK_SCHEDULER
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_EMU8000_SMLD_WRITE
	cmpl	$2, (%r12)
	jl	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_CHECK_SCHEDULER
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_EMU8000_SMRD_WRITE
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_emu8k_pcm_silence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emu8k_pcm_silence
_emu8k_pcm_silence:                     ; @emu8k_pcm_silence
	.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	x20, x3
	mov	x21, x2
	ldr	x8, [x0]
	ldr	x22, [x8]
	ldr	x19, [x22, #16]
	mov	x0, x19
	mov	w1, #1
	bl	_snd_emu8000_write_wait
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	x0, x19
	bl	_EMU8000_SMALW_WRITE
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x22, #8]
	ldr	x8, [x8, #8]
	add	x1, x8, x21
	mov	x0, x19
	bl	_EMU8000_SMARW_WRITE
LBB0_2:
	cmp	x20, #1
	b.lt	LBB0_7
; %bb.3:
	add	x20, x20, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	x20, x20, #1
	cmp	x20, #1
	b.ls	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	bl	_CHECK_SCHEDULER
	mov	x0, x19
	mov	w1, #0
	bl	_EMU8000_SMLD_WRITE
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_CHECK_SCHEDULER
	mov	x0, x19
	mov	w1, #0
	bl	_EMU8000_SMRD_WRITE
	b	LBB0_4
LBB0_7:
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_emu8k_pcm_silence
.subsections_via_symbols
