	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bit_alloc
_bit_alloc:                             ## @bit_alloc
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	callq	_reset_block_bap
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_9
## %bb.1:
	leal	-960(,%r14,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r13), %eax
	xorl	%r10d, %r10d
	movq	_EXP_REUSE@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %ecx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r10
	movslq	%ecx, %rdx
	cmpq	%rdx, %r10
	jge	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	48(%r13), %r15
	movq	%r10, %rsi
	shlq	$5, %rsi
	movl	24(%r15,%rsi), %edx
	xorl	%edi, %edi
	testl	%edx, %edx
	sete	%dil
	cmpl	%edi, %eax
	jl	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%rsi), %rcx
	addq	$16, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	addq	%rsi, %r15
	negl	%edx
	movl	$0, %r12d
	sbbq	%r12, %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movslq	%eax, %rcx
	incq	%r12
	cmpq	%rcx, %r12
	jge	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r13), %rcx
	movq	8(%rcx,%r12,8), %rcx
	movq	(%rcx,%r10,8), %rcx
	cmpq	(%r14), %rcx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movl	4(%rax,%r12,4), %edi
	movq	-8(%rcx), %rax
	movl	4(%rax,%r12,4), %esi
	movq	32(%r13), %rax
	movl	4(%rax,%r12,4), %edx
	movq	(%r15), %rax
	movl	4(%rax,%r12,4), %ecx
	movl	24(%r13), %r9d
	movq	_ff_ac3_bap_tab@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r13), %rbx
	movq	8(%rbx,%r12,8), %rbx
	movl	(%rbx,%r10,4), %ebx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	pushq	%rbx
	pushq	%rax
	movq	%r10, %rbx
	callq	*40(%r13)
	movq	%rbx, %r10
	addq	$16, %rsp
	movl	4(%r13), %eax
	jmp	LBB0_6
LBB0_9:
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_count_mantissa_bits            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EXP_REUSE,8,3                  ## @EXP_REUSE
	.comm	_ff_ac3_bap_tab,4,2             ## @ff_ac3_bap_tab
	.no_dead_strip	_bit_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bit_alloc
_bit_alloc:                             ; @bit_alloc
	.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, x1
	mov	x19, x0
	bl	_reset_block_bap
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x21, #0
	lsl	w8, w20, #2
	sub	w20, w8, #960
	ldr	w8, [x19, #4]
Lloh0:
	adrp	x22, _EXP_REUSE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EXP_REUSE@GOTPAGEOFF]
Lloh2:
	adrp	x23, _ff_ac3_bap_tab@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ff_ac3_bap_tab@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	cmp	x21, w9, sxtw
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x10, [x19, #48]
	add	x24, x10, x21, lsl #5
	ldr	w10, [x24, #24]
	cmp	w10, #0
	cset	w11, eq
	cmp	w8, w11
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w10, #0
	cset	w26, eq
	add	x25, x24, #16
	add	x27, x24, #8
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	cmp	x26, w8, sxtw
	add	x26, x26, #1
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x19, #8]
	ldr	x9, [x9, x26, lsl #3]
	ldr	x9, [x9, x21, lsl #3]
	ldr	x10, [x22]
	cmp	x9, x10
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x25]
	lsl	x9, x26, #2
	ldr	w0, [x8, x9]
	ldr	x8, [x27]
	ldr	w1, [x8, x9]
	ldp	x10, x8, [x19, #32]
	ldr	w2, [x10, x9]
	ldr	x10, [x24]
	ldr	w3, [x10, x9]
	ldr	w5, [x19, #24]
	ldr	w6, [x23]
	ldr	x9, [x19, #16]
	ldr	x9, [x9, x26, lsl #3]
	ldr	w7, [x9, x21, lsl #2]
	mov	x4, x20
	blr	x8
	ldr	w8, [x19, #4]
	b	LBB0_6
LBB0_9:
	mov	x0, x19
	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
	b	_count_mantissa_bits
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EXP_REUSE,8,3                  ; @EXP_REUSE
	.comm	_ff_ac3_bap_tab,4,2             ; @ff_ac3_bap_tab
	.no_dead_strip	_bit_alloc
.subsections_via_symbols
