	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_sbr_noise
_read_sbr_noise:                        ## @read_sbr_noise
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%r8d, %eax
	xorl	$1, %eax
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %ecx
	movl	%ecx, %edx
	xorl	$1, %edx
	xorl	%r14d, %r14d
	orl	%eax, %edx
	sete	%al
	testl	%r8d, %r8d
	je	LBB0_3
## %bb.1:
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.2:
	movq	_T_HUFFMAN_NOISE_BAL_3_0DB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_vlc_sbr_lav@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leaq	(%rdx,%rcx,4), %r8
	movq	_F_HUFFMAN_ENV_BAL_3_0DB@GOTPCREL(%rip), %rsi
	jmp	LBB0_4
LBB0_3:
	movq	_T_HUFFMAN_NOISE_3_0DB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_vlc_sbr_lav@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leaq	(%rdx,%rcx,4), %r8
	movq	_F_HUFFMAN_ENV_3_0DB@GOTPCREL(%rip), %rsi
LBB0_4:
	movq	(%rsi), %rsi
	leaq	(%rdx,%rsi,4), %rdx
	movl	(%r12), %ebx
	testl	%ebx, %ebx
	jle	LBB0_17
## %bb.5:
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	_vlc_sbr@GOTPCREL(%rip), %rbx
	movb	%al, %r14b
	movq	(%rbx), %rax
	incl	%r14d
	movq	(%rax,%rcx,8), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rsi,8), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	(%r8), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movslq	(%r12), %rbx
	movq	%rdx, %r13
	cmpq	%rbx, %rdx
	jge	LBB0_17
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movq	16(%r12), %rax
	cmpq	$0, (%rax,%r13,8)
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	1(%r13), %rdx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 4(%rax)
	jle	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rcx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%r13,8), %rax
	movl	(%rax,%r15,4), %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	$9, %edx
	movl	$2, %ecx
	callq	_get_vlc2
	subl	-72(%rbp), %eax                 ## 4-byte Folded Reload
	imull	%r14d, %eax
	addl	%ebx, %eax
	movq	8(%r12), %rcx
	movq	8(%rcx,%r13,8), %rdx
	movl	%eax, (%rdx,%r15,4)
	cmpl	$31, %eax
	jae	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	incq	%r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	4(%rax), %rax
	cmpq	%rax, %r15
	jl	LBB0_9
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$5, %esi
	callq	_get_bits
	imull	%r14d, %eax
	movq	8(%r12), %rcx
	leaq	1(%r13), %rdx
	movq	8(%rcx,%r13,8), %rcx
	movl	%eax, (%rcx)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$2, 4(%rcx)
	jl	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, %r15d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	$9, %edx
	movl	$3, %ecx
	callq	_get_vlc2
	subl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	imull	%r14d, %eax
	addl	%r15d, %eax
	movq	8(%r12), %rcx
	movq	8(%rcx,%r13,8), %rcx
	movl	%eax, (%rcx,%rbx,4)
	cmpl	$31, %eax
	jae	LBB0_19
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	incq	%rbx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movslq	4(%rcx), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_13
	jmp	LBB0_15
LBB0_19:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %ecx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_18
LBB0_17:
	movslq	%ebx, %rax
	movq	8(%r12), %rcx
	movq	(%rcx), %rdi
	movq	(%rcx,%rax,8), %rsi
	movl	$8, %edx
	callq	_memcpy
	xorl	%eax, %eax
LBB0_18:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vlc_sbr,8,3                    ## @vlc_sbr
	.comm	_T_HUFFMAN_NOISE_BAL_3_0DB,8,3  ## @T_HUFFMAN_NOISE_BAL_3_0DB
	.comm	_vlc_sbr_lav,8,3                ## @vlc_sbr_lav
	.comm	_F_HUFFMAN_ENV_BAL_3_0DB,8,3    ## @F_HUFFMAN_ENV_BAL_3_0DB
	.comm	_T_HUFFMAN_NOISE_3_0DB,8,3      ## @T_HUFFMAN_NOISE_3_0DB
	.comm	_F_HUFFMAN_ENV_3_0DB,8,3        ## @F_HUFFMAN_ENV_3_0DB
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"noise_facs_q %d is invalid\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_read_sbr_noise
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_sbr_noise
_read_sbr_noise:                        ; @read_sbr_noise
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x3
	mov	x21, x2
	mov	x22, x1
	ldr	w8, [x1]
	cmp	w8, #1
	ccmp	w4, #1, #0, eq
	mov	w9, #1
	cinc	w26, w9, eq
	cbz	w4, LBB0_3
; %bb.1:
	cbz	w8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _T_HUFFMAN_NOISE_BAL_3_0DB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _T_HUFFMAN_NOISE_BAL_3_0DB@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _vlc_sbr_lav@GOTPAGE
Lloh4:
	ldr	x9, [x9, _vlc_sbr_lav@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x9]
	add	x9, x11, x8, lsl #2
Lloh6:
	adrp	x10, _F_HUFFMAN_ENV_BAL_3_0DB@GOTPAGE
Lloh7:
	ldr	x10, [x10, _F_HUFFMAN_ENV_BAL_3_0DB@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _T_HUFFMAN_NOISE_3_0DB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _T_HUFFMAN_NOISE_3_0DB@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _vlc_sbr_lav@GOTPAGE
Lloh12:
	ldr	x9, [x9, _vlc_sbr_lav@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x9]
	add	x9, x11, x8, lsl #2
Lloh14:
	adrp	x10, _F_HUFFMAN_ENV_3_0DB@GOTPAGE
Lloh15:
	ldr	x10, [x10, _F_HUFFMAN_ENV_3_0DB@GOTPAGEOFF]
LBB0_4:
	ldr	x10, [x10]
	add	x11, x11, x10, lsl #2
	ldr	w12, [x19]
	cmp	w12, #1
	b.lt	LBB0_17
; %bb.5:
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	mov	x20, #0
Lloh16:
	adrp	x12, _vlc_sbr@GOTPAGE
Lloh17:
	ldr	x12, [x12, _vlc_sbr@GOTPAGEOFF]
Lloh18:
	ldr	x12, [x12]
	ldr	x8, [x12, x8, lsl #3]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	ldr	x23, [x12, x10, lsl #3]
	ldr	w27, [x11]
	ldr	w28, [x9]
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	str	w27, [sp, #4]                   ; 4-byte Folded Spill
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x12, [x19]
	mov	x20, x24
	cmp	x24, x12
	b.ge	LBB0_17
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x20, lsl #3]
	cbz	x8, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x22, #4]
	add	x24, x20, #1
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x25, #0
	ldr	x8, [x19, #8]
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x8, x20, lsl #3]
	lsl	x27, x25, #2
	ldr	w23, [x8, x27]
	mov	x0, x21
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	w2, #9
	mov	w3, #2
	bl	_get_vlc2
	sub	w8, w0, w28
	madd	w3, w8, w26, w23
	ldr	x8, [x19, #8]
	ldr	x9, [x8, x24, lsl #3]
	str	w3, [x9, x27]
	cmp	w3, #31
	b.hs	LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x25, x25, #1
	ldrsw	x9, [x22, #4]
	cmp	x25, x9
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w27, [sp, #4]                   ; 4-byte Folded Reload
	b	LBB0_6
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	mov	w1, #5
	bl	_get_bits
	mul	w25, w0, w26
	ldr	x8, [x19, #8]
	add	x24, x20, #1
	ldr	x8, [x8, x24, lsl #3]
	str	w25, [x8]
	ldr	w8, [x22, #4]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w20, #1
LBB0_15:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	mov	x1, x23
	mov	w2, #9
	mov	w3, #3
	bl	_get_vlc2
	sub	w8, w0, w27
	madd	w25, w8, w26, w25
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x24, lsl #3]
	str	w25, [x8, x20, lsl #2]
	cmp	w25, #31
	b.hs	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	add	x20, x20, #1
	ldrsw	x8, [x22, #4]
	cmp	x20, x8
	b.lt	LBB0_15
	b	LBB0_6
LBB0_17:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	ldr	x1, [x8, w12, sxtw #3]
	mov	w2, #8
	bl	_memcpy
	mov	w0, #0
	b	LBB0_21
LBB0_18:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str@PAGE
Lloh23:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_20
LBB0_19:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str@PAGE
Lloh28:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x25
LBB0_20:
	bl	_av_log
Lloh29:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
LBB0_21:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_vlc_sbr,8,3                    ; @vlc_sbr
	.comm	_T_HUFFMAN_NOISE_BAL_3_0DB,8,3  ; @T_HUFFMAN_NOISE_BAL_3_0DB
	.comm	_vlc_sbr_lav,8,3                ; @vlc_sbr_lav
	.comm	_F_HUFFMAN_ENV_BAL_3_0DB,8,3    ; @F_HUFFMAN_ENV_BAL_3_0DB
	.comm	_T_HUFFMAN_NOISE_3_0DB,8,3      ; @T_HUFFMAN_NOISE_3_0DB
	.comm	_F_HUFFMAN_ENV_3_0DB,8,3        ; @F_HUFFMAN_ENV_3_0DB
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"noise_facs_q %d is invalid\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_read_sbr_noise
.subsections_via_symbols
