	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function bit_alloc_masking
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_bit_alloc_masking:                     ## @bit_alloc_masking
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	leaq	40(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %eax
	xorl	%r15d, %r15d
	movq	_EXP_REUSE@GOTPCREL(%rip), %rsi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %r8d
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	%r8d, %rdx
	cmpq	%rdx, %r15
	jge	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	48(%rbx), %rdx
	leaq	(%r15,%r15,2), %rcx
	shlq	$4, %rcx
	movl	40(%rdx,%rcx), %r10d
	xorl	%edi, %edi
	testl	%r10d, %r10d
	sete	%dil
	cmpl	%edi, %eax
	jl	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rdx,%rcx), %r14
	addq	$32, %r14
	addq	%rcx, %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	negl	%r10d
	movl	$0, %r12d
	sbbq	%r12, %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movslq	%eax, %rcx
	movq	%r13, %r12
	cmpq	%rcx, %r13
	jge	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	1(%r12), %r13
	movq	8(%rbx), %rcx
	movq	8(%rcx,%r12,8), %rcx
	movq	(%rcx,%r15,8), %rcx
	cmpq	(%rsi), %rcx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r14), %rax
	movl	4(%rax,%r12,4), %edi
	movq	32(%rbx), %rax
	movl	4(%rax,%r12,4), %esi
	movq	-24(%r14), %rax
	movl	4(%rax,%r12,4), %edx
	movq	-8(%r14), %rax
	movl	4(%rax,%r12,4), %ecx
	movq	-16(%r14), %rax
	movl	4(%rax,%r12,4), %r8d
	callq	_ff_ac3_bit_alloc_calc_psd
	movq	-16(%r14), %rax
	movl	4(%rax,%r12,4), %esi
	movq	32(%rbx), %rax
	movl	4(%rax,%r12,4), %edx
	movq	-24(%r14), %rax
	movl	4(%rax,%r12,4), %ecx
	movq	_ff_ac3_fast_gain_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rbx), %rdi
	movq	8(%rdi,%r12,8), %rdi
	movl	(%rax,%rdi,4), %r8d
	movl	24(%rbx), %eax
	xorl	%r9d, %r9d
	cmpq	%rax, %r13
	sete	%r9b
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	4(%rax,%r12,4), %eax
	movq	_DBA_NONE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	movl	%eax, 40(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movl	%edi, (%rsp)
	movq	$0, 32(%rsp)
	movl	$0, 8(%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ff_ac3_bit_alloc_calc_mask
	movq	_EXP_REUSE@GOTPCREL(%rip), %rsi
	movl	4(%rbx), %eax
	jmp	LBB0_6
LBB0_9:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXP_REUSE,8,3                  ## @EXP_REUSE
	.comm	_ff_ac3_fast_gain_tab,8,3       ## @ff_ac3_fast_gain_tab
	.comm	_DBA_NONE,4,2                   ## @DBA_NONE
	.no_dead_strip	_bit_alloc_masking
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bit_alloc_masking
_bit_alloc_masking:                     ; @bit_alloc_masking
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x0
	mov	x21, #0
	add	x8, x0, #40
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	ldr	w8, [x0, #4]
	mov	w13, #48
Lloh0:
	adrp	x23, _EXP_REUSE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EXP_REUSE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x19]
	mov	w13, #48
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]
	madd	x11, x21, x13, x10
	ldr	w11, [x11, #40]
	cmp	w11, #0
	cset	w12, eq
	cmp	w8, w12
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w11, #0
	cset	w26, eq
	madd	x27, x21, x13, x10
	add	x28, x27, #32
	add	x22, x27, #8
	add	x24, x27, #24
	add	x25, x27, #16
	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, [x23]
	cmp	x9, x10
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x28]
	lsl	x20, x26, #2
	ldr	w0, [x8, x20]
	ldr	x8, [x19, #32]
	ldr	w1, [x8, x20]
	ldr	x8, [x22]
	ldr	w2, [x8, x20]
	ldr	x8, [x24]
	ldr	w3, [x8, x20]
	ldr	x8, [x25]
	ldr	w4, [x8, x20]
	bl	_ff_ac3_bit_alloc_calc_psd
	ldr	x8, [x25]
	ldr	w1, [x8, x20]
	ldr	x8, [x19, #32]
	ldr	w2, [x8, x20]
	ldr	x8, [x22]
	ldr	w3, [x8, x20]
Lloh2:
	adrp	x8, _ff_ac3_fast_gain_tab@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ff_ac3_fast_gain_tab@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	ldr	x9, [x9, x26, lsl #3]
	ldr	w4, [x8, x9, lsl #2]
	ldr	w8, [x19, #24]
	cmp	x26, x8
	cset	w5, eq
Lloh5:
	adrp	x8, _DBA_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DBA_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w6, [x8]
	ldr	x8, [x27]
	ldr	w8, [x8, x20]
	stp	xzr, xzr, [sp]
	str	w8, [sp, #24]
	str	xzr, [sp, #16]
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	mov	w7, #0
	bl	_ff_ac3_bit_alloc_calc_mask
	ldr	w8, [x19, #4]
	b	LBB0_6
LBB0_9:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EXP_REUSE,8,3                  ; @EXP_REUSE
	.comm	_ff_ac3_fast_gain_tab,8,3       ; @ff_ac3_fast_gain_tab
	.comm	_DBA_NONE,4,2                   ; @DBA_NONE
	.no_dead_strip	_bit_alloc_masking
.subsections_via_symbols
