	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RllDecodeStereoToMono          ## -- Begin function RllDecodeStereoToMono
	.p2align	4, 0x90
_RllDecodeStereoToMono:                 ## @RllDecodeStereoToMono
	.cfi_startproc
## %bb.0:
	movl	%r8d, %r9d
	andl	$65280, %r9d                    ## imm = 0xFF00
	testb	%cl, %cl
	je	LBB0_2
## %bb.1:
	addl	$-32768, %r9d                   ## imm = 0x8000
	shll	$8, %r8d
	movzwl	%r8w, %r11d
	addl	$-32768, %r11d                  ## imm = 0x8000
	testl	%edx, %edx
	je	LBB0_4
LBB0_5:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	_cin@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movl	%edx, %eax
	leaq	(%rax,%rax), %r10
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %ecx
	movzbl	(%rdi,%rcx), %ecx
	addl	(%r8,%rcx,4), %r9d
	leal	1(%rdx), %ecx
	movzbl	(%rdi,%rcx), %ecx
	addl	(%r8,%rcx,4), %r11d
	leal	(%r11,%r9), %ecx
	movl	%ecx, %ebx
	shrl	$31, %ebx
	addl	%ecx, %ebx
	shrl	%ebx
	movw	%bx, (%rsi,%rdx)
	addq	$2, %rdx
	cmpq	%rdx, %r10
	jne	LBB0_6
## %bb.7:
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	shll	$8, %r8d
	movzwl	%r8w, %r11d
	testl	%edx, %edx
	jne	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cin,8,3                        ## @cin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RllDecodeStereoToMono          ; -- Begin function RllDecodeStereoToMono
	.p2align	2
_RllDecodeStereoToMono:                 ; @RllDecodeStereoToMono
	.cfi_startproc
; %bb.0:
	and	w8, w4, #0xff00
	ubfiz	w10, w4, #8, #8
	sub	w9, w8, #8, lsl #12             ; =32768
	sub	w11, w10, #8, lsl #12           ; =32768
	cmp	w3, #0
	csel	w9, w8, w9, eq
	csel	w10, w10, w11, eq
	cbz	w2, LBB0_4
; %bb.1:
	mov	x11, #0
Lloh0:
	adrp	x8, _cin@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cin@GOTPAGEOFF]
Lloh2:
	ldr	x12, [x8]
	mov	w8, w2
	lsl	x13, x8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w14, [x0, w11, uxtw]
	ldr	w14, [x12, x14, lsl #2]
	add	w15, w11, #1
	ldrb	w15, [x0, w15, uxtw]
	add	w9, w14, w9
	ldr	w14, [x12, x15, lsl #2]
	add	w10, w14, w10
	add	w14, w10, w9
	cmp	w14, #0
	cinc	w14, w14, lt
	lsr	w14, w14, #1
	strh	w14, [x1, x11]
	add	x11, x11, #2
	cmp	x13, x11
	b.ne	LBB0_2
; %bb.3:
	mov	x0, x8
	ret
LBB0_4:
	mov	x0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_cin,8,3                        ; @cin
.subsections_via_symbols
