	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bf5xx_pcm_copy
_bf5xx_pcm_copy:                        ## @bf5xx_pcm_copy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $r8d killed $r8d def $r8
	movq	(%rdi), %rax
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_18
## %bb.1:
	testl	%r8d, %r8d
	je	LBB0_35
## %bb.2:
	movq	8(%rdi), %r10
	shll	$3, %edx
	movslq	%edx, %rdx
	shlq	$2, %rdx
	addq	8(%r10), %rdx
	movl	(%r10), %esi
	testb	$1, %r8b
	jne	LBB0_4
## %bb.3:
	movl	%r8d, %r9d
	cmpl	$1, %r8d
	jne	LBB0_10
	jmp	LBB0_35
LBB0_18:
	testl	%r8d, %r8d
	je	LBB0_35
## %bb.19:
	movq	8(%rdi), %r10
	shll	$3, %edx
	movslq	%edx, %rdx
	shlq	$2, %rdx
	addq	8(%r10), %rdx
	movl	(%r10), %esi
	testb	$1, %r8b
	jne	LBB0_21
## %bb.20:
	movl	%r8d, %r9d
	cmpl	$1, %r8d
	jne	LBB0_27
	jmp	LBB0_35
LBB0_4:
	testl	%esi, %esi
	jle	LBB0_8
## %bb.5:
	xorl	%r9d, %r9d
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdi,4), %eax
	movl	%eax, (%rdx,%rdi,4)
	incq	%rdi
	movslq	(%r10), %rsi
	addq	$4, %r9
	cmpq	%rsi, %rdi
	jl	LBB0_6
## %bb.7:
	addq	%r9, %rcx
LBB0_8:
	leal	-1(%r8), %r9d
	addq	$32, %rdx
	cmpl	$1, %r8d
	jne	LBB0_10
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	$64, %rdx
	testl	%r9d, %r9d
	je	LBB0_35
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
	testl	%esi, %esi
	jle	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rcx), %eax
	addq	$4, %rcx
	movl	%eax, (%rdx,%rdi,4)
	incq	%rdi
	movslq	(%r10), %rsi
	cmpq	%rsi, %rdi
	jl	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	addl	$-2, %r9d
	testl	%esi, %esi
	jle	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%edi, %edi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rcx,%rax,4), %esi
	movl	%esi, 32(%rdx,%rax,4)
	incq	%rax
	movslq	(%r10), %rsi
	addq	$4, %rdi
	cmpq	%rsi, %rax
	jl	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	addq	%rdi, %rcx
	jmp	LBB0_17
LBB0_21:
	testl	%esi, %esi
	jle	LBB0_25
## %bb.22:
	xorl	%r9d, %r9d
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rdi,4), %eax
	movl	%eax, (%rcx,%rdi,4)
	incq	%rdi
	movslq	(%r10), %rsi
	addq	$4, %r9
	cmpq	%rsi, %rdi
	jl	LBB0_23
## %bb.24:
	addq	%r9, %rcx
LBB0_25:
	leal	-1(%r8), %r9d
	addq	$32, %rdx
	cmpl	$1, %r8d
	jne	LBB0_27
LBB0_35:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_27 Depth=1
	addq	$64, %rdx
	testl	%r9d, %r9d
	je	LBB0_35
LBB0_27:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_29 Depth 2
                                        ##     Child Loop BB0_32 Depth 2
	testl	%esi, %esi
	jle	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rdx,%rdi,4), %eax
	movl	%eax, (%rcx)
	addq	$4, %rcx
	incq	%rdi
	movslq	(%r10), %rsi
	cmpq	%rsi, %rdi
	jl	LBB0_29
LBB0_30:                                ##   in Loop: Header=BB0_27 Depth=1
	addl	$-2, %r9d
	testl	%esi, %esi
	jle	LBB0_34
## %bb.31:                              ##   in Loop: Header=BB0_27 Depth=1
	xorl	%edi, %edi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_32:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	32(%rdx,%rax,4), %esi
	movl	%esi, (%rcx,%rax,4)
	incq	%rax
	movslq	(%r10), %rsi
	addq	$4, %rdi
	cmpq	%rsi, %rax
	jl	LBB0_32
## %bb.33:                              ##   in Loop: Header=BB0_27 Depth=1
	addq	%rdi, %rcx
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.no_dead_strip	_bf5xx_pcm_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bf5xx_pcm_copy
_bf5xx_pcm_copy:                        ; @bf5xx_pcm_copy
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	cbz	w4, LBB0_13
; %bb.2:
	ldr	x8, [x0, #8]
	ldr	x9, [x8, #8]
	sxtw	x10, w2
	add	x9, x9, x10, lsl #5
	ldr	w10, [x8]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #32
	cbz	w4, LBB0_13
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	sub	w4, w4, #1
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x11, #0
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x3], #4
	str	w10, [x9, x11, lsl #2]
	add	x11, x11, #1
	ldrsw	x10, [x8]
	cmp	x11, x10
	b.lt	LBB0_6
	b	LBB0_3
LBB0_7:
	cbz	w4, LBB0_13
; %bb.8:
	ldr	x8, [x0, #8]
	ldr	x9, [x8, #8]
                                        ; kill: def $w2 killed $w2 killed $x2 def $x2
	sxtw	x10, w2
	add	x9, x9, x10, lsl #5
	ldr	w10, [x8]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x9, x9, #32
	cbz	w4, LBB0_13
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	sub	w4, w4, #1
	cmp	w10, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x11, #0
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x9, x11, lsl #2]
	str	w10, [x3], #4
	add	x11, x11, #1
	ldrsw	x10, [x8]
	cmp	x11, x10
	b.lt	LBB0_12
	b	LBB0_9
LBB0_13:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.no_dead_strip	_bf5xx_pcm_copy
.subsections_via_symbols
