	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adpcm_ms_compress_sample
_adpcm_ms_compress_sample:              ## @adpcm_ms_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
	movq	%rdi, %rbx
	movl	4(%rdi), %eax
	movl	12(%rdi), %ecx
	imull	(%rdi), %eax
	imull	8(%rdi), %ecx
	leal	(%rcx,%rax), %r15d
	addl	$63, %r15d
                                        ## kill: def $ecx killed $ecx killed $rcx
	addl	%eax, %ecx
	cmovnsl	%ecx, %r15d
	sarl	$6, %r15d
	subl	%r15d, %esi
	movl	16(%rdi), %ecx
	movl	%esi, %eax
	notl	%eax
	shrl	$31, %eax
	leal	-2(,%rax,4), %edi
	movl	%ecx, %eax
	cltd
	idivl	%edi
	addl	%esi, %eax
	cltd
	idivl	%ecx
	movl	%eax, %edi
	movl	$3, %esi
	callq	_av_clip_intp2
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %r14d
	andl	$15, %r14d
	shll	$28, %eax
	sarl	$31, %eax
	andl	$-16, %eax
	leal	(%rax,%r14), %edi
	imull	16(%rbx), %edi
	addl	%r15d, %edi
	movl	(%rbx), %eax
	movl	%eax, 8(%rbx)
	callq	_av_clip_int16
	movl	%eax, (%rbx)
	movq	_ff_adpcm_AdaptationTable@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	16(%rbx), %ecx
	imull	(%rax,%r14,4), %ecx
	movl	%ecx, %eax
	sarl	$8, %eax
	cmpl	$4096, %ecx                     ## imm = 0x1000
	movl	$16, %ecx
	cmovgel	%eax, %ecx
	movl	%ecx, 16(%rbx)
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_adpcm_AdaptationTable,8,3   ## @ff_adpcm_AdaptationTable
	.no_dead_strip	_adpcm_ms_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_ms_compress_sample
_adpcm_ms_compress_sample:              ; @adpcm_ms_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
	ldp	w8, w9, [x0]
	mul	w8, w9, w8
	ldp	w9, w10, [x0, #8]
	madd	w8, w10, w9, w8
	add	w9, w8, #63
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w21, w8, #6
	ldr	w8, [x0, #16]
	sub	w9, w1, w21
	cmp	w9, #0
	mov	w10, #2
	cneg	w10, w10, lt
	sdiv	w10, w8, w10
	add	w9, w10, w9
	sdiv	w0, w9, w8
	mov	w1, #3
	bl	_av_clip_intp2
	and	w20, w0, #0xf
	sbfx	w8, w0, #3, #1
	bfxil	w8, w0, #0, #4
	ldr	w9, [x19, #16]
	madd	w0, w8, w9, w21
	ldr	w8, [x19]
	str	w8, [x19, #8]
	bl	_av_clip_int16
Lloh0:
	adrp	x8, _ff_adpcm_AdaptationTable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_adpcm_AdaptationTable@GOTPAGEOFF]
	str	w0, [x19]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8, w20, uxtw #2]
	ldr	w9, [x19, #16]
	mul	w8, w9, w8
	asr	w9, w8, #8
	mov	w10, #16
	cmp	w8, #1, lsl #12                 ; =4096
	csel	w8, w10, w9, lt
	str	w8, [x19, #16]
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_adpcm_AdaptationTable,8,3   ; @ff_adpcm_AdaptationTable
	.no_dead_strip	_adpcm_ms_compress_sample
.subsections_via_symbols
