	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adpcm_yamaha_expand_nibble
_adpcm_yamaha_expand_nibble:            ## @adpcm_yamaha_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rcx
	jmp	LBB0_3
LBB0_2:
	movl	$127, (%rbx)
	movl	$127, %eax
	xorl	%ecx, %ecx
LBB0_3:
	movq	_ff_adpcm_yamaha_difflookup@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	imull	(%rdx,%r14,4), %eax
	leal	7(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	movslq	%edx, %rdi
	addq	%rcx, %rdi
	movq	%rdi, 8(%rbx)
	callq	_av_clip_int16
	movq	%rax, 8(%rbx)
	movq	_ff_adpcm_yamaha_indexscale@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %edi
	imull	(%rbx), %edi
	sarl	$8, %edi
	movl	%edi, (%rbx)
	movl	$127, %esi
	movl	$24576, %edx                    ## imm = 0x6000
	callq	_av_clip
	movl	%eax, (%rbx)
	movq	8(%rbx), %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_adpcm_yamaha_difflookup,8,3 ## @ff_adpcm_yamaha_difflookup
	.comm	_ff_adpcm_yamaha_indexscale,8,3 ## @ff_adpcm_yamaha_indexscale
	.no_dead_strip	_adpcm_yamaha_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_yamaha_expand_nibble
_adpcm_yamaha_expand_nibble:            ; @adpcm_yamaha_expand_nibble
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w9, [x0]
	cbz	w9, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	b	LBB0_3
LBB0_2:
	mov	x8, #0
	mov	w9, #127
	str	w9, [x19]
LBB0_3:
Lloh0:
	adrp	x10, _ff_adpcm_yamaha_difflookup@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ff_adpcm_yamaha_difflookup@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	lsl	x20, x1, #2
	ldr	w10, [x10, x20]
	mul	w9, w10, w9
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	add	x0, x8, w9, sxtw
	str	x0, [x19, #8]
	bl	_av_clip_int16
	str	x0, [x19, #8]
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _ff_adpcm_yamaha_indexscale@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ff_adpcm_yamaha_indexscale@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w9, [x9, x20]
	mul	w8, w9, w8
	asr	w0, w8, #8
	str	w0, [x19]
	mov	w1, #127
	mov	w2, #24576
	bl	_av_clip
	str	w0, [x19]
	ldr	x0, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_adpcm_yamaha_difflookup,8,3 ; @ff_adpcm_yamaha_difflookup
	.comm	_ff_adpcm_yamaha_indexscale,8,3 ; @ff_adpcm_yamaha_indexscale
	.no_dead_strip	_adpcm_yamaha_expand_nibble
.subsections_via_symbols
