	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ff_amr_bit_reorder
_ff_amr_bit_reorder:                    ## @ff_amr_bit_reorder
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, %edx
	movq	%rdi, %r14
	xorl	%esi, %esi
	callq	_memset
	movl	(%r15), %r8d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%r15), %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	movl	%edx, (%r14,%rcx,4)
	movl	(%rax), %r8d
	movq	%rax, %r15
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%r8d, %r8d
	je	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	8(%r15), %rax
	xorl	%edx, %edx
	cmpl	$1, %r8d
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r8d, %edi
	andl	$-2, %edi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax), %ecx
	movl	%ecx, %esi
	sarl	$3, %esi
	movslq	%esi, %rsi
	movl	(%r12,%rsi,4), %esi
	andb	$7, %cl
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %esi
	movl	4(%rax), %ecx
	addq	$8, %rax
	andl	$1, %esi
	addl	%esi, %esi
	leal	(%rsi,%rdx,4), %esi
	movl	%ecx, %edx
	sarl	$3, %edx
	movslq	%edx, %rdx
	movl	(%r12,%rdx,4), %ebx
	andb	$7, %cl
	movzbl	%cl, %ecx
	xorl	%edx, %edx
	btl	%ecx, %ebx
	setb	%dl
	orl	%esi, %edx
	addl	$-2, %edi
	jne	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	testb	$1, %r8b
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rax), %ecx
	addq	$4, %rax
	movl	%ecx, %esi
	sarl	$3, %esi
	movslq	%esi, %rsi
	movl	(%r12,%rsi,4), %esi
	andb	$7, %cl
	movzbl	%cl, %ecx
	xorl	%edi, %edi
	btl	%ecx, %esi
	setb	%dil
	leal	(%rdi,%rdx,2), %edx
	jmp	LBB0_7
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ff_amr_bit_reorder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ff_amr_bit_reorder
_ff_amr_bit_reorder:                    ; @ff_amr_bit_reorder
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x2, x1
	mov	x21, x0
	mov	w1, #0
	bl	_memset
	ldr	w8, [x19]
	cbz	w8, LBB0_4
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	mov	w12, #0
	add	x10, x19, #8
	ldr	w9, [x19, #4]
	sub	w11, w8, #1
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x13, x12
	ldr	w12, [x10], #4
	asr	w14, w12, #3
	ldr	w14, [x20, w14, sxtw #2]
	and	x12, x12, #0x7
	lsr	w12, w14, w12
	bfi	w12, w13, #1, #31
	subs	w8, w8, #1
	b.ne	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x19, x19, x11, lsl #2
	asr	w8, w9, #1
	str	w12, [x21, w8, sxtw #2]
	ldr	w8, [x19, #12]!
	cbnz	w8, LBB0_1
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ff_amr_bit_reorder
.subsections_via_symbols
