	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adpcm_ms_expand_nibble
_adpcm_ms_expand_nibble:                ## @adpcm_ms_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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movl	12(%rdi), %ecx
	movl	4(%rdi), %edx
	imull	%eax, %edx
	imull	8(%rdi), %ecx
	leal	(%rcx,%rdx), %esi
	addl	$63, %esi
                                        ## kill: def $ecx killed $ecx killed $rcx
	addl	%edx, %ecx
	cmovnsl	%ecx, %esi
	sarl	$6, %esi
	leal	-16(%r14), %edi
	testb	$8, %r14b
	cmovel	%r14d, %edi
	imull	16(%rbx), %edi
	addl	%esi, %edi
	movl	%eax, 8(%rbx)
	callq	_av_clip_int16
	movl	%eax, (%rbx)
	movq	_ff_adpcm_AdaptationTable@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%r14d, %rdx
	movl	16(%rbx), %esi
	imull	(%rcx,%rdx,4), %esi
	movl	%esi, %ecx
	sarl	$8, %ecx
	cmpl	$4096, %esi                     ## imm = 0x1000
	movl	$16, %edx
	cmovgel	%ecx, %edx
	movl	%edx, 16(%rbx)
	movq	_INT_MAX@GOTPCREL(%rip), %r14
	movslq	(%r14), %rcx
	imulq	$715827883, %rcx, %rcx          ## imm = 0x2AAAAAAB
	movq	%rcx, %rsi
	shrq	$63, %rsi
	sarq	$39, %rcx
	addl	%esi, %ecx
	cmpl	%ecx, %edx
	jle	LBB0_2
## %bb.1:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_av_log
	movslq	(%r14), %rax
	imulq	$715827883, %rax, %rax          ## imm = 0x2AAAAAAB
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$39, %rax
	addl	%ecx, %eax
	movl	%eax, 16(%rbx)
	movl	(%rbx), %eax
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_adpcm_AdaptationTable,8,3   ## @ff_adpcm_AdaptationTable
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"idelta overflow\n"

	.no_dead_strip	_adpcm_ms_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_ms_expand_nibble
_adpcm_ms_expand_nibble:                ; @adpcm_ms_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	x20, x1
	mov	x19, x0
	ldp	w8, w9, [x0]
	mul	w9, w9, w8
	ldp	w10, w11, [x0, #8]
	madd	w9, w11, w10, w9
	add	w10, w9, #63
	cmp	w9, #0
	csel	w9, w10, w9, lt
	sub	w10, w1, #16
	tst	w1, #0x8
	csel	w10, w1, w10, eq
	ldr	w11, [x0, #16]
	mul	w10, w11, w10
	add	w0, w10, w9, asr #6
	str	w8, [x19, #8]
	bl	_av_clip_int16
	str	w0, [x19]
Lloh0:
	adrp	x8, _ff_adpcm_AdaptationTable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_adpcm_AdaptationTable@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8, w20, sxtw #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]
Lloh3:
	adrp	x20, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x20, [x20, _INT_MAX@GOTPAGEOFF]
	ldrsw	x9, [x20]
	mov	w10, #43691
	movk	w10, #10922, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #39
	add	w9, w9, w10
	cmp	w8, w9
	b.le	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_av_log
	ldrsw	x8, [x20]
	mov	w9, #43691
	movk	w9, #10922, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #39
	add	w8, w8, w9
	str	w8, [x19, #16]
	ldr	w0, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_adpcm_AdaptationTable,8,3   ; @ff_adpcm_AdaptationTable
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"idelta overflow\n"

	.no_dead_strip	_adpcm_ms_expand_nibble
.subsections_via_symbols
