	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bf5xx_pcm_to_ac97              ## -- Begin function bf5xx_pcm_to_ac97
	.p2align	4, 0x90
_bf5xx_pcm_to_ac97:                     ## @bf5xx_pcm_to_ac97
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.1:
	movq	_TAG_VALID@GOTPCREL(%rip), %r8
	movq	_SP_FL@GOTPCREL(%rip), %r9
	movq	_SP_FR@GOTPCREL(%rip), %r14
	movq	_TAG_PCM_LEFT@GOTPCREL(%rip), %r10
	movq	_TAG_PCM_RIGHT@GOTPCREL(%rip), %r11
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$28, %rdi
	testq	%rdx, %rdx
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r8), %ebx
	movl	%ebx, (%rdi)
	testl	%ecx, (%r9)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rsi), %eax
	addq	$4, %rsi
	movl	%eax, 24(%rdi)
	orl	(%r11), %ebx
	movl	%ebx, (%rdi)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	decq	%rdx
	testl	%ecx, (%r14)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rsi), %eax
	addq	$4, %rsi
	movl	%eax, 20(%rdi)
	orl	(%r10), %ebx
	movl	%ebx, (%rdi)
	jmp	LBB0_6
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TAG_VALID,4,2                  ## @TAG_VALID
	.comm	_SP_FL,4,2                      ## @SP_FL
	.comm	_TAG_PCM_RIGHT,4,2              ## @TAG_PCM_RIGHT
	.comm	_SP_FR,4,2                      ## @SP_FR
	.comm	_TAG_PCM_LEFT,4,2               ## @TAG_PCM_LEFT
	.comm	_SP_FC,4,2                      ## @SP_FC
	.comm	_SP_LFE,4,2                     ## @SP_LFE
	.comm	_SP_SL,4,2                      ## @SP_SL
	.comm	_SP_SR,4,2                      ## @SP_SR
	.comm	_TAG_PCM_CENTER,4,2             ## @TAG_PCM_CENTER
	.comm	_TAG_PCM_LFE,4,2                ## @TAG_PCM_LFE
	.comm	_TAG_PCM_SL,4,2                 ## @TAG_PCM_SL
	.comm	_TAG_PCM_SR,4,2                 ## @TAG_PCM_SR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bf5xx_pcm_to_ac97              ; -- Begin function bf5xx_pcm_to_ac97
	.p2align	2
_bf5xx_pcm_to_ac97:                     ; @bf5xx_pcm_to_ac97
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _TAG_VALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TAG_VALID@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SP_FL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SP_FL@GOTPAGEOFF]
Lloh4:
	adrp	x10, _SP_FR@GOTPAGE
Lloh5:
	ldr	x10, [x10, _SP_FR@GOTPAGEOFF]
Lloh6:
	adrp	x11, _TAG_PCM_LEFT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _TAG_PCM_LEFT@GOTPAGEOFF]
Lloh8:
	adrp	x12, _TAG_PCM_RIGHT@GOTPAGE
Lloh9:
	ldr	x12, [x12, _TAG_PCM_RIGHT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x0, #28
	cbz	x2, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x8]
	str	w13, [x0]
	ldr	w14, [x9]
	tst	w14, w3
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w14, [x1], #4
	str	w14, [x0, #24]
	ldr	w14, [x12]
	orr	w13, w14, w13
	str	w13, [x0]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x2, x2, #1
	ldr	w14, [x10]
	tst	w14, w3
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w14, [x1], #4
	str	w14, [x0, #20]
	ldr	w14, [x11]
	orr	w13, w13, w14
	str	w13, [x0]
	b	LBB0_2
LBB0_7:
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TAG_VALID,4,2                  ; @TAG_VALID
	.comm	_SP_FL,4,2                      ; @SP_FL
	.comm	_TAG_PCM_RIGHT,4,2              ; @TAG_PCM_RIGHT
	.comm	_SP_FR,4,2                      ; @SP_FR
	.comm	_TAG_PCM_LEFT,4,2               ; @TAG_PCM_LEFT
	.comm	_SP_FC,4,2                      ; @SP_FC
	.comm	_SP_LFE,4,2                     ; @SP_LFE
	.comm	_SP_SL,4,2                      ; @SP_SL
	.comm	_SP_SR,4,2                      ; @SP_SR
	.comm	_TAG_PCM_CENTER,4,2             ; @TAG_PCM_CENTER
	.comm	_TAG_PCM_LFE,4,2                ; @TAG_PCM_LFE
	.comm	_TAG_PCM_SL,4,2                 ; @TAG_PCM_SL
	.comm	_TAG_PCM_SR,4,2                 ; @TAG_PCM_SR
.subsections_via_symbols
