	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adpcm_swf_decode
_adpcm_swf_decode:                      ## @adpcm_swf_decode
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r12d
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	leal	(,%r12,8), %edx
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_init_get_bits
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_get_bits
                                        ## kill: def $eax killed $eax def $rax
	movq	_swf_index_tables@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movslq	%eax, %rcx
	movq	(%rdx,%rcx,8), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	$1, %edx
	movl	$1, %esi
	movl	%eax, %ecx
	shll	%cl, %esi
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leal	1(%rax), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_get_bits_count
	movl	(%rbx), %ecx
	imull	$-22, %ecx, %edx
	leal	(%rdx,%r12,8), %edx
	cmpl	%edx, %eax
	jle	LBB0_1
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	$2, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	notl	%eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	leaq	-48(%rbp), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_get_bits_count
	movl	(%rbx), %ecx
	imull	$-22, %ecx, %edx
	addl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	cmpl	%edx, %eax
	jg	LBB0_15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
                                        ##         Child Loop BB0_11 Depth 4
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_get_sbits
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%r12,8)
	movl	%eax, (%r14)
	addq	$4, %r14
	movq	%r13, %rdi
	movl	$6, %esi
	callq	_get_bits
	movq	(%r15), %rcx
	movl	%eax, 4(%rcx,%r12,8)
	incq	%r12
	movslq	(%rbx), %rax
	cmpq	%rax, %r12
	jl	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_get_bits_count
	movl	(%rbx), %ecx
	movl	%ecx, %edx
	imull	-56(%rbp), %edx                 ## 4-byte Folded Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	subl	%edx, %esi
	cmpl	%esi, %eax
	jg	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
                                        ##         Child Loop BB0_11 Depth 4
	testl	%ecx, %ecx
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_11 Depth 4
	movq	%rbx, %r13
	leaq	-48(%rbp), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_get_bits
	movq	_ff_adpcm_step_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	(%r15), %r9
	movslq	4(%r9,%r12,8), %r8
	movl	(%rdx,%r8,4), %edi
	xorl	%esi, %esi
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ##       Parent Loop BB0_10 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movl	%ecx, %edx
	andl	%eax, %edx
	cmovnel	%edi, %edx
	addl	%edx, %esi
	sarl	%edi
	sarl	%ebx
	cmpl	$1, %ecx
	movl	%ebx, %ecx
	ja	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=3
	addl	%edi, %esi
	movl	%esi, %ecx
	negl	%ecx
	testl	%eax, -60(%rbp)                 ## 4-byte Folded Reload
	cmovel	%esi, %ecx
	addl	%ecx, (%r9,%r12,8)
	andl	-64(%rbp), %eax                 ## 4-byte Folded Reload
	cltq
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,8), %eax
	addl	%r8d, %eax
	movl	%eax, 4(%r9,%r12,8)
	movslq	%eax, %rdi
	xorl	%esi, %esi
	movl	$88, %edx
	callq	_av_clip
	movq	(%r15), %rcx
	movl	%eax, 4(%rcx,%r12,8)
	movl	(%rcx,%r12,8), %edi
	callq	_av_clip_int16
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%r12,8)
	movl	%eax, (%r14)
	addq	$4, %r14
	incq	%r12
	movq	%r13, %rbx
	movslq	(%r13), %rax
	cmpq	%rax, %r12
	jl	LBB0_10
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=2
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	callq	_get_bits_count
	movl	(%rbx), %ecx
	movl	%ecx, %edx
	imull	-56(%rbp), %edx                 ## 4-byte Folded Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	subl	%edx, %esi
	cmpl	%esi, %eax
	jg	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leal	1(%rdx), %eax
	cmpl	$4094, %edx                     ## imm = 0xFFE
                                        ## kill: def $eax killed $eax def $rax
	jb	LBB0_8
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_swf_index_tables,8,3           ## @swf_index_tables
	.comm	_ff_adpcm_step_table,8,3        ## @ff_adpcm_step_table
	.no_dead_strip	_adpcm_swf_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adpcm_swf_decode
_adpcm_swf_decode:                      ; @adpcm_swf_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x0
	ldr	x24, [x0, #8]
	lsl	w21, w2, #3
	add	x0, sp, #12
	mov	x2, x21
	bl	_init_get_bits
	add	x0, sp, #12
	mov	w1, #2
	bl	_get_bits
	mov	x23, x0
Lloh0:
	adrp	x8, _swf_index_tables@GOTPAGE
Lloh1:
	ldr	x8, [x8, _swf_index_tables@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x25, [x8, w0, sxtw #3]
	add	x0, sp, #12
	bl	_get_bits_count
	ldr	w8, [x20]
	mov	w9, #-22
	str	w21, [sp, #4]                   ; 4-byte Folded Spill
	madd	w9, w8, w9, w21
	cmp	w0, w9
	b.le	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
	add	w22, w23, #2
	mov	w9, #1
	lsl	w27, w9, w23
	add	w10, w23, #1
	lsl	w23, w9, w10
	mvn	w28, w23
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #12
	bl	_get_bits_count
	ldr	w8, [x20]
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	mov	w10, #-22
	madd	w9, w8, w10, w9
	cmp	w0, w9
	b.gt	LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
                                        ;         Child Loop BB0_12 Depth 4
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, #0
	mov	x26, #0
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #12
	mov	w1, #16
	bl	_get_sbits
	ldr	x8, [x24]
	str	w0, [x8, x21]
	str	w0, [x19], #4
	add	x0, sp, #12
	mov	w1, #6
	bl	_get_bits
	ldr	x8, [x24]
	add	x8, x8, x21
	str	w0, [x8, #4]
	add	x26, x26, #1
	ldrsw	x8, [x20]
	add	x21, x21, #8
	cmp	x26, x8
	b.lt	LBB0_6
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #12
	bl	_get_bits_count
	ldr	w8, [x20]
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	msub	w9, w8, w22, w9
	cmp	w0, w9
	b.gt	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #0
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
                                        ;         Child Loop BB0_12 Depth 4
	cmp	w8, #1
	str	w9, [sp, #8]                    ; 4-byte Folded Spill
	b.lt	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x21, #0
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_12 Depth 4
	add	x0, sp, #12
	mov	x1, x22
	bl	_get_bits
	mov	w11, #0
Lloh3:
	adrp	x8, _ff_adpcm_step_table@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ff_adpcm_step_table@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x8]
	ldr	x9, [x24]
	add	x8, x9, x21, lsl #3
	ldrsw	x10, [x8, #4]!
	ldr	w12, [x12, x10, lsl #2]
	mov	x13, x27
LBB0_12:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ;       Parent Loop BB0_11 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	tst	w13, w0
	csel	w14, wzr, w12, eq
	add	w11, w14, w11
	asr	w12, w12, #1
	asr	w14, w13, #1
	cmp	w13, #1
	mov	x13, x14
	b.hi	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=3
	lsl	x26, x21, #3
	ldr	w13, [x9, x26]
	add	w11, w11, w12
	tst	w0, w23
	cneg	w11, w11, ne
	add	w11, w13, w11
	str	w11, [x9, x26]
	and	w9, w0, w28
	ldr	x9, [x25, w9, sxtw #3]
	add	w9, w10, w9
	str	w9, [x8]
	sxtw	x0, w9
	mov	w1, #0
	mov	w2, #88
	bl	_av_clip
	ldr	x8, [x24]
	add	x8, x8, x26
	str	w0, [x8, #4]
	ldr	w0, [x8]
	bl	_av_clip_int16
	ldr	x8, [x24]
	str	w0, [x8, x26]
	str	w0, [x19], #4
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_11
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=2
	add	x0, sp, #12
	bl	_get_bits_count
	ldr	w8, [x20]
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	msub	w9, w8, w22, w9
	cmp	w0, w9
	b.gt	LBB0_3
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w10, [sp, #8]                   ; 4-byte Folded Reload
	add	w9, w10, #1
	cmp	w10, #4094
	b.lo	LBB0_9
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_swf_index_tables,8,3           ; @swf_index_tables
	.comm	_ff_adpcm_step_table,8,3        ; @ff_adpcm_step_table
	.no_dead_strip	_adpcm_swf_decode
.subsections_via_symbols
