	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fx8010_pb_trans_copy
_fx8010_pb_trans_copy:                  ## @fx8010_pb_trans_copy
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r8
	movq	8(%rax), %rax
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	leaq	(%rcx,%rcx,2), %rcx
	movl	(%rax,%rcx,4), %r13d
	movl	4(%rax,%rcx,4), %esi
	movq	(%r12), %rbx
	addq	(%rdx), %rbx
	shrq	$2, %r15
	leaq	(%rax,%rcx,4), %rdx
	addq	$4, %rdx
	movl	8(%rax,%rcx,4), %r12d
	cmpl	%r15d, %esi
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	jae	LBB0_1
## %bb.2:
	shrl	%r13d
	movl	%r13d, %r14d
	decl	%r14d
	leal	1(%rsi), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	leaq	(%rsi,%rsi), %rdi
	addq	(%r8), %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rdi,%r13,2), %rsi
	movq	%rbx, %rdx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%r12d, %r8d
	callq	_snd_emu10k1_fx8010_playback_tram_poke1
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, %eax
	addl	$2, %eax
	leaq	(%rbx,%rax,2), %rbx
	subl	-56(%rbp), %r15d                ## 4-byte Folded Reload
	incl	%r12d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	cmpl	%r15d, %r14d
	jae	LBB0_3
## %bb.4:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(,%r13,4), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rax), %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rdi
	leaq	(%rdi,%r13,2), %rsi
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	callq	_snd_emu10k1_fx8010_playback_tram_poke1
	subl	%r13d, %r15d
	incl	%r12d
	addq	%r14, %rbx
	cmpl	%r15d, -48(%rbp)                ## 4-byte Folded Reload
	jb	LBB0_5
## %bb.6:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %esi
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_7
LBB0_1:
	shrq	%r13
	jmp	LBB0_7
LBB0_3:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %esi
LBB0_7:
	movl	%esi, %edi
	addq	%rdi, %rdi
	addq	(%r8), %rdi
	movq	%rsi, %r14
	leaq	(%rdi,%r13,2), %rsi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	callq	_snd_emu10k1_fx8010_playback_tram_poke1
	subl	%r15d, %r14d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movl	%r12d, 4(%rax)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_fx8010_pb_trans_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fx8010_pb_trans_copy
_fx8010_pb_trans_copy:                  ; @fx8010_pb_trans_copy
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	ldr	x8, [x0, #8]
	mov	w9, #12
	ldp	x10, x11, [x22]
	mul	x9, x10, x9
	add	x25, x8, x9
	ldr	w9, [x8, x9]
	ldr	x8, [x11]
	ldr	x10, [x21]
	add	x21, x10, x8
	lsr	x20, x20, #2
	mov	x26, x25
	ldr	w8, [x26, #4]!
	ldr	w22, [x25, #8]!
	cmp	w8, w20
	b.hs	LBB0_4
; %bb.1:
	ubfx	x23, x9, #1, #31
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	sub	w27, w23, #1
	add	w24, w8, #1
	ldr	x9, [x19]
	add	x0, x9, x8, lsl #1
	add	x1, x0, w23, uxtw #1
	mov	x2, x21
	mov	x3, x24
	mov	x4, x22
	bl	_snd_emu10k1_fx8010_playback_tram_poke1
	lsl	w8, w24, #1
	add	x21, x21, w8, uxtw #1
	add	w22, w22, #1
	sub	w20, w20, w24
	cmp	w27, w20
	b.hs	LBB0_5
; %bb.2:
	lsl	x24, x23, #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x0, x8, x27, lsl #1
	add	x1, x0, x23, lsl #1
	mov	x2, x21
	mov	x3, x23
	mov	x4, x22
	bl	_snd_emu10k1_fx8010_playback_tram_poke1
	add	w22, w22, #1
	add	x21, x21, x24
	sub	w20, w20, w23
	cmp	w27, w20
	b.lo	LBB0_3
	b	LBB0_5
LBB0_4:
	lsr	x23, x9, #1
	mov	x27, x8
LBB0_5:
	ldr	x8, [x19]
	add	x0, x8, w27, uxtw #1
	add	x1, x0, x23, lsl #1
	mov	x2, x21
	mov	x3, x20
	mov	x4, x22
	bl	_snd_emu10k1_fx8010_playback_tram_poke1
	sub	w8, w27, w20
	str	w8, [x26]
	str	w22, [x25]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_fx8010_pb_trans_copy
.subsections_via_symbols
