	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unpack_bitstream
_unpack_bitstream:                      ## @unpack_bitstream
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rax
	movl	(%rsi), %ecx
	movl	%ecx, %ebx
	shrl	$3, %ebx
	andl	$15, %ebx
	xorl	%esi, %esi
	testb	$4, %cl
	sete	%sil
	movl	%esi, (%rdi)
	movq	_N_MODES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jae	LBB0_2
## %bb.1:
	movq	_frame_sizes_nb@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	%edx, (%rcx,%rbx,4)
	jge	LBB0_2
## %bb.3:
	movq	_MODE_DTX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jae	LBB0_5
## %bb.4:
	addq	$4, %rdi
	addq	$4, %rax
	movq	_amr_unpacking_bitmaps_per_mode@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rbx,4), %ecx
	movl	$4, %esi
	movq	%rax, %rdx
	callq	_ff_amr_bit_reorder
	jmp	LBB0_5
LBB0_2:
	movq	_NO_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_N_MODES,4,2                    ## @N_MODES
	.comm	_frame_sizes_nb,8,3             ## @frame_sizes_nb
	.comm	_NO_DATA,4,2                    ## @NO_DATA
	.comm	_MODE_DTX,4,2                   ## @MODE_DTX
	.comm	_amr_unpacking_bitmaps_per_mode,8,3 ## @amr_unpacking_bitmaps_per_mode
	.no_dead_strip	_unpack_bitstream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unpack_bitstream
_unpack_bitstream:                      ; @unpack_bitstream
	.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
	ldr	w8, [x1]
	ubfx	x19, x8, #3, #4
	mov	w9, #1
	bic	w8, w9, w8, lsr #2
	str	w8, [x0]
Lloh0:
	adrp	x8, _N_MODES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _N_MODES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w19, w8
	b.hs	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _frame_sizes_nb@GOTPAGE
Lloh4:
	ldr	x8, [x8, _frame_sizes_nb@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x8, x19, lsl #2]
	cmp	w8, w2
	b.ge	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _MODE_DTX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MODE_DTX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w19, w8
	b.hs	LBB0_5
; %bb.3:
	add	x0, x0, #4
	add	x2, x1, #4
Lloh9:
	adrp	x8, _amr_unpacking_bitmaps_per_mode@GOTPAGE
Lloh10:
	ldr	x8, [x8, _amr_unpacking_bitmaps_per_mode@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	w3, [x8, x19, lsl #2]
	mov	w1, #4
	bl	_ff_amr_bit_reorder
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _NO_DATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NO_DATA@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x8]
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_N_MODES,4,2                    ; @N_MODES
	.comm	_frame_sizes_nb,8,3             ; @frame_sizes_nb
	.comm	_NO_DATA,4,2                    ; @NO_DATA
	.comm	_MODE_DTX,4,2                   ; @MODE_DTX
	.comm	_amr_unpacking_bitmaps_per_mode,8,3 ; @amr_unpacking_bitmaps_per_mode
	.no_dead_strip	_unpack_bitstream
.subsections_via_symbols
