	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bf5xx_ac97_to_pcm              ## -- Begin function bf5xx_ac97_to_pcm
	.p2align	4, 0x90
_bf5xx_ac97_to_pcm:                     ## @bf5xx_ac97_to_pcm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.1:
	cmpq	$4, %rdx
	jb	LBB0_2
## %bb.3:
	leaq	(%rdi,%rdx,8), %rax
	cmpq	%rsi, %rax
	jbe	LBB0_5
## %bb.4:
	leaq	(%rsi,%rdx,8), %rax
	cmpq	%rdi, %rax
	jbe	LBB0_5
LBB0_2:
	movq	%rdx, %r8
	movq	%rsi, %r10
	movq	%rdi, %rax
LBB0_8:
	leaq	-1(%r8), %rdx
	movq	%r8, %rsi
	andq	$3, %rsi
	je	LBB0_12
## %bb.9:
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rax), %ecx
	movl	%ecx, (%r10)
	movl	(%rax), %ecx
	movl	%ecx, 4(%r10)
	addq	$8, %r10
	addq	$8, %rax
	incq	%rdi
	cmpq	%rdi, %rsi
	jne	LBB0_10
## %bb.11:
	subq	%rdi, %r8
LBB0_12:
	cmpq	$3, %rdx
	jb	LBB0_15
## %bb.13:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rax,%rdx,8), %ecx
	movl	%ecx, (%r10,%rdx,8)
	movl	(%rax,%rdx,8), %ecx
	movl	%ecx, 4(%r10,%rdx,8)
	movl	12(%rax,%rdx,8), %ecx
	movl	%ecx, 8(%r10,%rdx,8)
	movl	8(%rax,%rdx,8), %ecx
	movl	%ecx, 12(%r10,%rdx,8)
	movl	20(%rax,%rdx,8), %ecx
	movl	%ecx, 16(%r10,%rdx,8)
	movl	16(%rax,%rdx,8), %ecx
	movl	%ecx, 20(%r10,%rdx,8)
	movl	28(%rax,%rdx,8), %ecx
	movl	%ecx, 24(%r10,%rdx,8)
	movl	24(%rax,%rdx,8), %ecx
	movl	%ecx, 28(%r10,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_14
	jmp	LBB0_15
LBB0_5:
	movq	%rdx, %r9
	andq	$-4, %r9
	movl	%edx, %r8d
	andl	$3, %r8d
	leaq	(%rsi,%r9,8), %r10
	leaq	(%rdi,%r9,8), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rcx,8), %xmm0
	movdqu	16(%rdi,%rcx,8), %xmm1
	pshufd	$177, %xmm0, %xmm0              ## xmm0 = xmm0[1,0,3,2]
	movdqu	%xmm0, (%rsi,%rcx,8)
	pshufd	$177, %xmm1, %xmm0              ## xmm0 = xmm1[1,0,3,2]
	movdqu	%xmm0, 16(%rsi,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %r9
	jne	LBB0_6
## %bb.7:
	cmpq	%rdx, %r9
	jne	LBB0_8
LBB0_15:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bf5xx_ac97_to_pcm              ; -- Begin function bf5xx_ac97_to_pcm
	.p2align	2
_bf5xx_ac97_to_pcm:                     ; @bf5xx_ac97_to_pcm
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_7
; %bb.1:
	cmp	x2, #8
	b.lo	LBB0_4
; %bb.2:
	lsl	x8, x2, #3
	add	x9, x0, x8
	cmp	x9, x1
	b.ls	LBB0_8
; %bb.3:
	add	x8, x1, x8
	cmp	x8, x0
	b.ls	LBB0_8
LBB0_4:
	mov	x8, x2
	mov	x9, x1
	mov	x10, x0
LBB0_5:
	add	x10, x10, #4
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	str	w11, [x9]
	ldur	w11, [x10, #-4]
	str	w11, [x9, #4]
	add	x10, x10, #8
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_6
LBB0_7:
	ret
LBB0_8:
	and	x11, x2, #0xfffffffffffffff8
	and	x8, x2, #0x7
	lsl	x10, x11, #3
	add	x9, x1, x10
	add	x10, x0, x10
	add	x12, x0, #32
	add	x13, x1, #32
	mov	x14, x11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	sub	x15, x12, #32
	ld2.4s	{ v0, v1 }, [x15]
	ld2.4s	{ v3, v4 }, [x12]
	mov.16b	v2, v0
	sub	x15, x13, #32
	st2.4s	{ v1, v2 }, [x15]
	mov.16b	v5, v3
	st2.4s	{ v4, v5 }, [x13]
	add	x12, x12, #64
	add	x13, x13, #64
	subs	x14, x14, #8
	b.ne	LBB0_9
; %bb.10:
	cmp	x11, x2
	b.ne	LBB0_5
	b	LBB0_7
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
