	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_sbr_data
_read_sbr_data:                         ## @read_sbr_data
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rdx, %rdi
	callq	_get_bits_count
	movl	%eax, %r14d
	movl	%ebx, (%r15)
	movl	$1, 4(%r15)
	movq	_TYPE_SCE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_TYPE_CCE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_2
## %bb.5:
	movq	_TYPE_CPE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_18
## %bb.6:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_read_sbr_channel_pair_element
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_7
LBB0_2:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_read_sbr_single_channel_element
	testq	%rax, %rax
	jne	LBB0_4
LBB0_7:
	movq	%r13, %rdi
	callq	_get_bits1
	testq	%rax, %rax
	je	LBB0_17
## %bb.8:
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_get_bits
	cmpl	$15, %eax
	jne	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_get_bits
	addl	$15, %eax
LBB0_10:
	shll	$3, %eax
	movl	%eax, -44(%rbp)
	cmpl	$8, %eax
	jl	LBB0_13
## %bb.11:
	leaq	-44(%rbp), %rbx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	addl	$-2, %eax
	movl	%eax, -44(%rbp)
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_get_bits
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movl	%eax, %ecx
	movq	%rbx, %r8
	callq	_read_sbr_extension
	movl	-44(%rbp), %eax
	cmpl	$7, %eax
	jg	LBB0_12
LBB0_13:
	testl	%eax, %eax
	jns	LBB0_15
## %bb.14:
	movl	(%r12), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movl	-44(%rbp), %eax
LBB0_15:
	testl	%eax, %eax
	jle	LBB0_17
## %bb.16:
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_skip_bits
	jmp	LBB0_17
LBB0_18:
	movl	(%r12), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_4:
	movq	%r15, %rdi
	callq	_sbr_turnoff
LBB0_17:
	movq	%r13, %rdi
	callq	_get_bits_count
	subl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE_SCE,4,2                   ## @TYPE_SCE
	.comm	_TYPE_CCE,4,2                   ## @TYPE_CCE
	.comm	_TYPE_CPE,4,2                   ## @TYPE_CPE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid bitstream - cannot apply SBR to element type %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"SBR Extension over read.\n"

	.no_dead_strip	_read_sbr_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_sbr_data
_read_sbr_data:                         ; @read_sbr_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x2
	bl	_get_bits_count
	mov	x19, x0
	mov	w8, #1
	stp	w23, w8, [x21]
Lloh0:
	adrp	x8, _TYPE_SCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TYPE_SCE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TYPE_CCE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TYPE_CCE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w23
	ccmp	w9, w23, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_read_sbr_single_channel_element
	cbnz	x0, LBB0_14
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _TYPE_CPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TYPE_CPE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_13
; %bb.3:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_read_sbr_channel_pair_element
	cbnz	x0, LBB0_14
LBB0_4:
	mov	x0, x20
	bl	_get_bits1
	cbz	x0, LBB0_15
; %bb.5:
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
	cmp	w0, #15
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x20
	mov	w1, #8
	bl	_get_bits
	add	w0, w0, #15
LBB0_7:
	lsl	w1, w0, #3
	str	w1, [sp, #12]
	cmp	w1, #8
	b.lt	LBB0_9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w1, #2
	str	w8, [sp, #12]
	mov	x0, x20
	mov	w1, #2
	bl	_get_bits
	mov	x3, x0
	add	x4, sp, #12
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_read_sbr_extension
	ldr	w1, [sp, #12]
	cmp	w1, #7
	b.gt	LBB0_8
LBB0_9:
	tbz	w1, #31, LBB0_11
; %bb.10:
	ldr	w0, [x22]
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
	ldr	w1, [sp, #12]
LBB0_11:
	cmp	w1, #1
	b.lt	LBB0_15
; %bb.12:
	mov	x0, x20
	bl	_skip_bits
	b	LBB0_15
LBB0_13:
	ldr	w0, [x22]
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	str	x23, [sp]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
LBB0_14:
	mov	x0, x21
	bl	_sbr_turnoff
LBB0_15:
	mov	x0, x20
	bl	_get_bits_count
	sub	w0, w0, w19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE_SCE,4,2                   ; @TYPE_SCE
	.comm	_TYPE_CCE,4,2                   ; @TYPE_CCE
	.comm	_TYPE_CPE,4,2                   ; @TYPE_CPE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid bitstream - cannot apply SBR to element type %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"SBR Extension over read.\n"

	.no_dead_strip	_read_sbr_data
.subsections_via_symbols
