	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adpcm_ima_qt_compress_sample
_adpcm_ima_qt_compress_sample:          ## @adpcm_ima_qt_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %r8d
	subl	%r8d, %esi
	movq	_ff_adpcm_step_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%rdi), %rdx
	movl	(%rcx,%rdx,4), %ecx
	movl	%esi, %edi
	shrl	$31, %edi
	leal	(,%rdi,8), %ebx
	movl	%esi, %edx
	negl	%edx
	cmovsl	%esi, %edx
	movl	%ecx, %esi
	sarl	$3, %esi
	addl	%edx, %esi
	xorl	%r9d, %r9d
	cmpl	%ecx, %edx
	leal	4(,%rdi,8), %edi
	movl	%ecx, %eax
	cmovll	%r9d, %eax
	cmovll	%ebx, %edi
	subl	%eax, %edx
	movl	%ecx, %eax
	sarl	%eax
	leal	2(%rdi), %r10d
	cmpl	%eax, %edx
	cmovll	%r9d, %eax
	cmovll	%edi, %r10d
	subl	%eax, %edx
	sarl	$2, %ecx
	xorl	%ebx, %ebx
	cmpl	%ecx, %edx
	setge	%bl
	cmovll	%r9d, %ecx
	subl	%edx, %ecx
	addl	%esi, %ecx
	orl	%r10d, %ebx
	movl	%ecx, %edi
	negl	%edi
	testb	$8, %r10b
	cmovel	%ecx, %edi
	addl	%r8d, %edi
	movl	%edi, (%r14)
	callq	_av_clip_int16
	movl	%eax, (%r14)
	movq	_ff_adpcm_index_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rdi
	addq	8(%r14), %rdi
	xorl	%esi, %esi
	movl	$88, %edx
	callq	_av_clip
	movq	%rax, 8(%r14)
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_adpcm_step_table,8,3        ## @ff_adpcm_step_table
	.comm	_ff_adpcm_index_table,8,3       ## @ff_adpcm_index_table
	.no_dead_strip	_adpcm_ima_qt_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_qt_compress_sample
_adpcm_ima_qt_compress_sample:          ; @adpcm_ima_qt_compress_sample
	.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	w8, [x0]
	subs	w9, w1, w8
Lloh0:
	adrp	x10, _ff_adpcm_step_table@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ff_adpcm_step_table@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	ldr	x11, [x0, #8]
	ldr	w10, [x10, x11, lsl #2]
	lsr	w11, w9, #28
	and	w11, w11, #0x8
	cneg	w9, w9, mi
	add	w12, w9, w10, asr #3
	orr	w13, w11, #0x4
	cmp	w9, w10
	csel	w14, wzr, w10, lt
	csel	w11, w11, w13, lt
	asr	w13, w10, #1
	orr	w15, w11, #0x2
	sub	w9, w9, w14
	cmp	w9, w13
	csel	w13, wzr, w13, lt
	csel	w11, w11, w15, lt
	asr	w10, w10, #2
	sub	w9, w9, w13
	cmp	w9, w10
	cset	w13, ge
	csel	w10, wzr, w10, lt
	orr	w20, w11, w13
	sub	w9, w10, w9
	add	w9, w12, w9
	tst	w11, #0x8
	cneg	w9, w9, ne
	add	w0, w9, w8
	str	w0, [x19]
	bl	_av_clip_int16
	str	w0, [x19]
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _ff_adpcm_index_table@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ff_adpcm_index_table@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x9, [x9, w20, uxtw #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, #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_step_table,8,3        ; @ff_adpcm_step_table
	.comm	_ff_adpcm_index_table,8,3       ; @ff_adpcm_index_table
	.no_dead_strip	_adpcm_ima_qt_compress_sample
.subsections_via_symbols
