	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adpcm_ima_compress_sample
_adpcm_ima_compress_sample:             ## @adpcm_ima_compress_sample
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	subl	(%rdi), %ebx
	movl	%ebx, %eax
	negl	%eax
	cmovsl	%ebx, %eax
	shll	$2, %eax
	movq	_ff_adpcm_step_table@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	8(%rdi), %rsi
	cltd
	idivl	(%rcx,%rsi,4)
	movl	$7, %edi
	movl	%eax, %esi
	callq	_FFMIN
                                        ## kill: def $eax killed $eax def $rax
	shrl	$31, %ebx
	leal	(%rax,%rbx,8), %eax
	movq	(%r14), %rcx
	movq	8(%r15), %rdx
	movq	_ff_adpcm_yamaha_difflookup@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movslq	%eax, %r14
	movl	(%rsi,%r14,4), %eax
	imull	(%rcx,%rdx,4), %eax
	leal	7(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$3, %edi
	addl	(%r15), %edi
	movl	%edi, (%r15)
	callq	_av_clip_int16
	movl	%eax, (%r15)
	movq	_ff_adpcm_index_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rdi
	addq	8(%r15), %rdi
	xorl	%esi, %esi
	movl	$88, %edx
	callq	_av_clip
	movq	%rax, 8(%r15)
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_adpcm_step_table,8,3        ## @ff_adpcm_step_table
	.comm	_ff_adpcm_yamaha_difflookup,8,3 ## @ff_adpcm_yamaha_difflookup
	.comm	_ff_adpcm_index_table,8,3       ## @ff_adpcm_index_table
	.no_dead_strip	_adpcm_ima_compress_sample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adpcm_ima_compress_sample
_adpcm_ima_compress_sample:             ; @adpcm_ima_compress_sample
	.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
	ldr	w8, [x0]
	subs	w20, w1, w8
	cneg	w8, w20, mi
Lloh0:
	adrp	x21, _ff_adpcm_step_table@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ff_adpcm_step_table@GOTPAGEOFF]
	lsl	w8, w8, #2
	ldr	x9, [x21]
	ldr	x10, [x0, #8]
	ldr	w9, [x9, x10, lsl #2]
	sdiv	w1, w8, w9
	mov	w0, #7
	bl	_FFMIN
	lsr	w8, w20, #28
	and	w8, w8, #0x8
	add	w20, w0, w8
	ldr	x8, [x21]
	ldr	x9, [x19, #8]
	ldr	w8, [x8, x9, lsl #2]
Lloh2:
	adrp	x9, _ff_adpcm_yamaha_difflookup@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ff_adpcm_yamaha_difflookup@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w9, [x9, w20, sxtw #2]
	mul	w8, w9, w8
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	ldr	w9, [x19]
	add	w0, w9, w8, asr #3
	str	w0, [x19]
	bl	_av_clip_int16
	str	w0, [x19]
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _ff_adpcm_index_table@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ff_adpcm_index_table@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	x9, [x9, w20, sxtw #3]
	add	x0, x9, x8
	mov	w1, #0
	mov	w2, #88
	bl	_av_clip
	str	x0, [x19, #8]
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_adpcm_step_table,8,3        ; @ff_adpcm_step_table
	.comm	_ff_adpcm_yamaha_difflookup,8,3 ; @ff_adpcm_yamaha_difflookup
	.comm	_ff_adpcm_index_table,8,3       ; @ff_adpcm_index_table
	.no_dead_strip	_adpcm_ima_compress_sample
.subsections_via_symbols
