	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adpcm_agm_expand_nibble
_adpcm_agm_expand_nibble:               ## @adpcm_agm_expand_nibble
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	%esi, %ebx
	andl	$7, %ebx
	movl	4(%rdi), %r12d
	leal	(%rbx,%rbx), %eax
	incl	%eax
	imull	%r12d, %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movl	%ecx, %edi
	negl	%edi
	testb	$8, %sil
	cmovel	%ecx, %edi
	addl	(%r15), %edi
	movl	$-32767, %esi                   ## imm = 0x8001
	movl	$32767, %edx                    ## imm = 0x7FFF
	callq	_av_clip
	movq	%rax, %r14
	addl	$-4, %ebx
	cmpl	$3, %ebx
	ja	LBB0_5
## %bb.1:
	movl	$153, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_4:
	movl	$77, %eax
	jmp	LBB0_6
LBB0_5:
	movl	$57, %eax
	jmp	LBB0_6
LBB0_3:
	movl	$102, %eax
LBB0_6:
	imull	%eax, %r12d
	leal	63(%r12), %edi
	testl	%r12d, %r12d
	cmovnsl	%r12d, %edi
	sarl	$6, %edi
	movl	%edi, 4(%r15)
	jmp	LBB0_7
LBB0_2:
	movl	4(%r15), %edi
	addl	%edi, %edi
LBB0_7:
	movl	$127, %esi
	movl	$24576, %edx                    ## imm = 0x6000
	callq	_av_clip
	movl	%eax, 4(%r15)
	movl	%r14d, (%r15)
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_adpcm_agm_expand_nibble
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adpcm_agm_expand_nibble
_adpcm_agm_expand_nibble:               ; @adpcm_agm_expand_nibble
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	and	w22, w1, #0x7
	ldp	w8, w21, [x0]
	mov	w9, #1
	bfi	w9, w22, #1, #3
	mul	w9, w21, w9
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	tst	w1, #0x8
	cneg	w9, w9, ne
	add	w0, w8, w9
	mov	w1, #-32767
	mov	w2, #32767
	bl	_av_clip
	mov	x20, x0
	sub	w9, w22, #4
	cmp	w9, #3
	b.hi	LBB0_3
; %bb.1:
	mov	w8, #153
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	mov	w8, #77
	b	LBB0_5
LBB0_3:
	mov	w8, #57
	b	LBB0_5
LBB0_4:
	mov	w8, #102
LBB0_5:
	mul	w8, w21, w8
	add	w9, w8, #63
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #6
	str	w0, [x19, #4]
	b	LBB0_7
LBB0_6:
	ldr	w8, [x19, #4]
	lsl	w0, w8, #1
LBB0_7:
	mov	w1, #127
	mov	w2, #24576
	bl	_av_clip
	stp	w20, w0, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.no_dead_strip	_adpcm_agm_expand_nibble
.subsections_via_symbols
