	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function S_AdpcmDecode
LCPI0_0:
	.long	8                               ## 0x8
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	4                               ## 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_S_AdpcmDecode
	.p2align	4, 0x90
_S_AdpcmDecode:                         ## @S_AdpcmDecode
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %r15d
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rcx), %eax
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movslq	%eax, %rcx
	movq	_stepsizeTable@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	(%rsi,%rcx,4), %r11d
	movq	_indexTable@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [8,1,2,4]
	pxor	%xmm1, %xmm1
	xorl	%r8d, %r8d
	xorl	%r10d, %r10d
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%rdi), %r9d
	incq	%rdi
	movl	%r9d, %r14d
	shrl	$4, %r14d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movd	%r14d, %xmm2
	andl	$15, %r14d
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addl	(%rcx,%r14,8), %eax
	xorl	$1, %r10d
	testl	%eax, %eax
	cmovlel	%r12d, %eax
	cmpl	$88, %eax
	movl	$88, %ecx
	cmovael	%ecx, %eax
	pshufd	$0, %xmm2, %xmm2                ## xmm2 = xmm2[0,0,0,0]
	pand	%xmm0, %xmm2
	pcmpeqd	%xmm1, %xmm2
	movl	%r11d, %ecx
	sarl	$3, %ecx
	movl	%r11d, %esi
	sarl	%esi
	movl	%r11d, %ebx
	sarl	$2, %ebx
	movmskps	%xmm2, %edx
	testb	$8, %dl
	cmovnel	%r12d, %r11d
	addl	%ecx, %r11d
	testb	$4, %dl
	cmovnel	%r12d, %esi
	addl	%r11d, %esi
	testb	$2, %dl
	cmovnel	%r12d, %ebx
	addl	%esi, %ebx
	movl	%ebx, %r13d
	negl	%r13d
	testb	$1, %dl
	cmovnel	%ebx, %r13d
	addl	%r15d, %r13d
	cmpl	$-32767, %r13d                  ## imm = 0x8001
	movl	$-32768, %ecx                   ## imm = 0x8000
	cmovll	%ecx, %r13d
	cmpl	$32767, %r13d                   ## imm = 0x7FFF
	movl	$32767, %ecx                    ## imm = 0x7FFF
	cmovgel	%ecx, %r13d
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %r11d
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movw	%r13w, (%rcx,%r8,2)
	incq	%r8
	movl	%r9d, %r14d
	movl	%r13d, %r15d
	cmpq	%r8, -56(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r10d, %r10d
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %r9d
	jmp	LBB0_6
LBB0_1:
	movl	%r15d, %r13d
LBB0_7:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%r13d, (%rcx)
	movl	%eax, 4(%rcx)
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stepsizeTable,8,3              ## @stepsizeTable
	.comm	_indexTable,8,3                 ## @indexTable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_S_AdpcmDecode                  ; -- Begin function S_AdpcmDecode
	.p2align	2
_S_AdpcmDecode:                         ; @S_AdpcmDecode
	.cfi_startproc
; %bb.0:
	ldp	w8, w10, [x3]
	cmp	w2, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w9, #0
	mov	w4, #0
Lloh0:
	adrp	x11, _stepsizeTable@GOTPAGE
Lloh1:
	ldr	x11, [x11, _stepsizeTable@GOTPAGEOFF]
	sxtw	x12, w10
Lloh2:
	ldr	x11, [x11]
	ldr	w16, [x11, x12, lsl #2]
Lloh3:
	adrp	x12, _indexTable@GOTPAGE
Lloh4:
	ldr	x12, [x12, _indexTable@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x12]
	mov	w13, w2
	mov	w14, #88
	mov	w15, #-32768
	mov	w17, #32767
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w2, [x0], #1
	lsr	w4, w2, #4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	w5, w4, #0xf
	ldr	x5, [x12, w5, uxtw #3]
	add	w10, w10, w5
	lsl	w5, w4, #29
	and	w5, w16, w5, asr #31
	add	w5, w5, w16, asr #3
	sbfx	w6, w4, #1, #1
	and	w6, w6, w16, asr #1
	sbfx	w7, w4, #0, #1
	and	w16, w7, w16, asr #2
	eor	w9, w9, #0x1
	cmp	w10, #0
	csel	w10, w10, wzr, gt
	cmp	w10, #88
	csel	w10, w10, w14, lo
	add	w5, w5, w6
	add	w16, w5, w16
	tst	w4, #0x8
	cneg	w16, w16, ne
	add	w8, w16, w8
	cmn	w8, #8, lsl #12                 ; =32768
	csel	w8, w8, w15, gt
	cmp	w8, w17
	csel	w8, w8, w17, lt
	ldr	w16, [x11, w10, uxtw #2]
	strh	w8, [x1], #2
	mov	x4, x2
	subs	x13, x13, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w9, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x2, x4
	b	LBB0_3
LBB0_6:
	stp	w8, w10, [x3]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_stepsizeTable,8,3              ; @stepsizeTable
	.comm	_indexTable,8,3                 ; @indexTable
.subsections_via_symbols
