	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmavoice_decode_packet
_wmavoice_decode_packet:                ## @wmavoice_decode_packet
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	movl	(%rcx), %ecx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %eax
	leal	(%rax,%rcx), %r12d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %ebx
	subl	%eax, %r12d
	subl	%eax, %ecx
	jg	LBB0_1
## %bb.2:
	leaq	24(%r13), %r14
	movl	4(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_init_get_bits8
	movl	%ebx, %eax
	cltd
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	idivl	(%rcx)
	testl	%edx, %edx
	je	LBB0_5
## %bb.3:
	movl	12(%r13), %esi
	testl	%esi, %esi
	je	LBB0_16
## %bb.4:
	movq	%r14, %rdi
	callq	_skip_bits
	jmp	LBB0_16
LBB0_5:
	testl	%ebx, %ebx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	callq	_parse_packet_header
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_8
	jmp	LBB0_25
LBB0_7:
	movl	$0, (%r13)
	xorl	%r14d, %r14d
LBB0_8:
	movl	%r14d, 4(%r13)
	cmpl	$0, 8(%r13)
	jle	LBB0_13
## %bb.9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_get_bits_count
	movl	%eax, %r14d
	movl	(%r13), %r8d
	leal	(%r8,%r14), %ecx
	movl	(%r15), %eax
	shll	$3, %eax
	cmpl	%eax, %ecx
	jle	LBB0_11
## %bb.10:
	subl	%r14d, %eax
	movl	%eax, (%r13)
	movl	%eax, %r8d
LBB0_11:
	leaq	16(%r13), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %esi
	movl	%ebx, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_copy_bits
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_flush_put_bits
	movl	(%r13), %eax
	addl	%eax, 8(%r13)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_synth_superframe
	testl	%eax, %eax
	je	LBB0_27
LBB0_12:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	(%r13), %r15d
	subl	%r14d, %r15d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_get_bits_count
	addl	%eax, %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_13:
	movl	(%r13), %esi
	testl	%esi, %esi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_16
## %bb.14:
	movq	%r14, %rdi
LBB0_15:
	callq	_skip_bits_long
LBB0_16:
	movq	$0, 8(%r13)
	movq	%r14, %rdi
	callq	_get_bits_left
	movl	4(%r13), %ecx
	subl	$1, %ecx
	movl	%ecx, 4(%r13)
	jae	LBB0_18
## %bb.17:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	jmp	LBB0_24
LBB0_18:
	jle	LBB0_22
## %bb.19:
	movq	%r14, %r15
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_synth_superframe
	testl	%eax, %eax
	js	LBB0_26
## %bb.20:
	cmpl	$0, (%rbx)
	movl	%r12d, %r14d
	je	LBB0_25
## %bb.21:
	movq	%r15, %rdi
	callq	_get_bits_count
	movl	%eax, %r14d
	jmp	LBB0_29
LBB0_22:
	movl	%eax, 8(%r13)
	testl	%eax, %eax
	jle	LBB0_24
## %bb.23:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	16(%r13), %r14
	movl	20(%r13), %esi
	movq	_SFRAME_CACHE_MAXSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_init_put_bits
	movl	4(%r15), %esi
	movl	8(%r13), %r8d
	movq	%r14, %rdi
	movl	%ebx, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_copy_bits
LBB0_24:
	movl	%r12d, %r14d
LBB0_25:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movl	%eax, %r14d
	jmp	LBB0_25
LBB0_27:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_12
## %bb.28:
	addl	(%r13), %r14d
	movl	%r14d, %eax
LBB0_29:
	andl	$7, %eax
	movl	%eax, 12(%r13)
	sarl	$3, %r14d
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_SFRAME_CACHE_MAXSIZE,4,2       ## @SFRAME_CACHE_MAXSIZE
	.no_dead_strip	_wmavoice_decode_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmavoice_decode_packet
_wmavoice_decode_packet:                ; @wmavoice_decode_packet
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x3
	mov	x22, x2
	mov	x24, x1
	mov	x25, x0
	ldr	x19, [x0, #8]
	ldr	w9, [x3]
	ldr	w8, [x0]
	add	w28, w8, w9
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x9
	sub	w28, w28, w8
	subs	w9, w9, w8
	b.gt	LBB0_1
; %bb.2:
	add	x21, x19, #24
	ldr	w1, [x20, #4]
	mov	x0, x21
	mov	x2, x23
	bl	_init_get_bits8
	ldr	w8, [x25]
	sdiv	w9, w23, w8
	msub	w8, w9, w8, w23
	cbz	w8, LBB0_5
; %bb.3:
	ldr	w1, [x19, #12]
	cbz	w1, LBB0_15
; %bb.4:
	mov	x0, x21
	bl	_skip_bits
	b	LBB0_15
LBB0_5:
	cbz	w23, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_parse_packet_header
	tbz	w0, #31, LBB0_8
	b	LBB0_24
LBB0_7:
	mov	w0, #0
	str	wzr, [x19]
LBB0_8:
	str	w0, [x19, #4]
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x0, x21
	bl	_get_bits_count
	mov	x26, x0
	ldr	w4, [x19]
	ldr	w8, [x20]
	lsl	w8, w8, #3
	add	w9, w4, w0
	cmp	w9, w8
	b.le	LBB0_11
; %bb.10:
	sub	w4, w8, w26
	str	w4, [x19]
LBB0_11:
	add	x27, x19, #16
	ldr	w1, [x20, #4]
	mov	x0, x27
	mov	x2, x23
	mov	x3, x21
	bl	_copy_bits
	mov	x0, x27
	bl	_flush_put_bits
	ldr	w8, [x19]
	ldr	w9, [x19, #8]
	add	w8, w9, w8
	str	w8, [x19, #8]
	mov	x0, x25
	mov	x1, x24
	mov	x2, x22
	bl	_synth_superframe
	cbz	w0, LBB0_25
LBB0_12:
	ldr	w8, [x19]
	sub	w26, w8, w26
	mov	x0, x21
	bl	_get_bits_count
	add	w1, w26, w0
	b	LBB0_14
LBB0_13:
	ldr	w1, [x19]
	cbz	w1, LBB0_15
LBB0_14:
	mov	x0, x21
	bl	_skip_bits_long
LBB0_15:
	str	xzr, [x19, #8]
	mov	x0, x21
	bl	_get_bits_left
	ldr	w8, [x19, #4]
	subs	w9, w8, #1
	str	w9, [x19, #4]
	cbz	w8, LBB0_20
; %bb.16:
	b.le	LBB0_21
; %bb.17:
	mov	x0, x25
	mov	x1, x24
	mov	x2, x22
	bl	_synth_superframe
	tbnz	w0, #31, LBB0_24
; %bb.18:
	ldr	w8, [x22]
	mov	x0, x28
	cbz	w8, LBB0_24
; %bb.19:
	mov	x0, x21
	bl	_get_bits_count
	and	w8, w0, #0x7
	str	w8, [x19, #12]
	asr	w0, w0, #3
	b	LBB0_24
LBB0_20:
	str	wzr, [x22]
	b	LBB0_23
LBB0_21:
	str	w0, [x19, #8]
	cmp	w0, #1
	b.lt	LBB0_23
; %bb.22:
	add	x22, x19, #16
	ldr	w1, [x19, #20]
Lloh0:
	adrp	x8, _SFRAME_CACHE_MAXSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SFRAME_CACHE_MAXSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_init_put_bits
	ldr	w1, [x20, #4]
	ldr	w4, [x19, #8]
	mov	x0, x22
	mov	x2, x23
	mov	x3, x21
	bl	_copy_bits
LBB0_23:
	mov	x0, x28
LBB0_24:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_25:
	ldr	w8, [x22]
	cbz	w8, LBB0_12
; %bb.26:
	ldr	w8, [x19]
	add	w8, w8, w26
	and	w9, w8, #0x7
	str	w9, [x19, #12]
	asr	w0, w8, #3
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SFRAME_CACHE_MAXSIZE,4,2       ; @SFRAME_CACHE_MAXSIZE
	.no_dead_strip	_wmavoice_decode_packet
.subsections_via_symbols
