	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_frame
_decode_frame:                          ## @decode_frame
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	68(%rdi), %r14
	movq	40(%rdi), %rdi
	leaq	-80(%rbp), %rdx
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_ff_flac_decode_frame_header
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	movl	8(%r12), %ecx
	testl	%ecx, %ecx
	je	LBB0_5
## %bb.2:
	movl	-80(%rbp), %eax
	cmpl	%ecx, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$0, (%r12)
	je	LBB0_5
## %bb.4:
	movq	40(%r12), %rdi
	movl	%eax, (%rdi)
	movl	%eax, 8(%r12)
	callq	_ff_flac_set_channel_layout
	movq	%r12, %rdi
	callq	_allocate_buffers
	testl	%eax, %eax
	js	LBB0_36
LBB0_5:
	movl	-80(%rbp), %eax
	movq	40(%r12), %rdi
	movl	%eax, (%rdi)
	movl	%eax, 8(%r12)
	cmpl	$0, 28(%rdi)
	jne	LBB0_7
## %bb.6:
	callq	_ff_flac_set_channel_layout
LBB0_7:
	movl	-48(%rbp), %eax
	movl	%eax, 64(%r12)
	movq	16(%r12), %rcx
	movq	-72(%rbp), %rax
	movq	%rcx, %rdx
	orq	%rax, %rdx
	je	LBB0_13
## %bb.8:
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.10:
	cmpq	%rcx, %rax
	je	LBB0_18
## %bb.11:
	movq	40(%r12), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_14
LBB0_12:
	movl	%eax, %r13d
	movq	40(%r12), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_16
LBB0_13:
	movq	40(%r12), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_14:
	xorl	%eax, %eax
	callq	_av_log
LBB0_15:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_16:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	%rcx, -72(%rbp)
	movq	%rcx, %rax
LBB0_18:
	testq	%rcx, %rcx
	jne	LBB0_20
## %bb.19:
	movq	40(%r12), %rcx
	movq	%rax, 8(%rcx)
	movq	%rax, 16(%r12)
	movq	%r12, %rdi
	callq	_flac_set_bps
LBB0_20:
	movq	32(%r12), %r8
	testq	%r8, %r8
	jne	LBB0_22
## %bb.21:
	movq	_FLAC_MAX_BLOCKSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	%r8, 32(%r12)
LBB0_22:
	movq	-56(%rbp), %rcx
	cmpq	%r8, %rcx
	jle	LBB0_24
## %bb.23:
	movq	40(%r12), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_15
LBB0_24:
	movq	%rcx, 56(%r12)
	movq	24(%r12), %rcx
	movq	-64(%rbp), %rax
	movq	%rcx, %rdx
	orq	%rax, %rdx
	je	LBB0_35
## %bb.25:
	testq	%rax, %rax
	jne	LBB0_27
## %bb.26:
	movq	%rcx, -64(%rbp)
	movq	%rcx, %rax
LBB0_27:
	leaq	8(%r12), %r15
	movq	40(%r12), %rcx
	movq	%rax, 16(%rcx)
	movq	%rax, 24(%r12)
	cmpl	$0, (%r12)
	jne	LBB0_30
## %bb.28:
	movq	%r12, %rdi
	callq	_allocate_buffers
	testl	%eax, %eax
	js	LBB0_36
## %bb.29:
	movl	$1, (%r12)
	movq	40(%r12), %rdi
	movq	%r15, %rsi
	callq	_dump_headers
	movq	40(%r12), %rcx
LBB0_30:
	leaq	48(%r12), %rdi
	movl	24(%rcx), %esi
	movl	8(%r12), %edx
	movq	16(%r12), %rcx
	callq	_ff_flacdsp_init
	cmpl	$0, 8(%r12)
	jle	LBB0_34
## %bb.31:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_decode_subframe
	testl	%eax, %eax
	js	LBB0_36
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_32
LBB0_34:
	movq	%r14, %rdi
	callq	_align_get_bits
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_skip_bits
	xorl	%r13d, %r13d
	jmp	LBB0_16
LBB0_36:
	movl	%eax, %r13d
	jmp	LBB0_16
LBB0_35:
	movq	40(%r12), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid frame header\n"

L_.str.1:                               ## @.str.1
	.asciz	"bps not found in STREAMINFO or frame header\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.2:                               ## @.str.2
	.asciz	"switching bps mid-stream is not supported\n"

	.comm	_FLAC_MAX_BLOCKSIZE,8,3         ## @FLAC_MAX_BLOCKSIZE
L_.str.3:                               ## @.str.3
	.asciz	"blocksize %d > %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"sample rate not found in STREAMINFO or frame header\n"

	.no_dead_strip	_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_frame
_decode_frame:                          ; @decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x20, x0
	add	x19, x0, #68
	ldr	x0, [x0, #40]
	add	x2, sp, #24
	mov	x1, x19
	mov	w3, #0
	bl	_ff_flac_decode_frame_header
	tbnz	w0, #31, LBB0_12
; %bb.1:
	mov	x21, x20
	ldr	w9, [x21, #8]!
	cbz	w9, LBB0_5
; %bb.2:
	ldr	w8, [sp, #24]
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.3:
	ldr	w9, [x20]
	cbz	w9, LBB0_5
; %bb.4:
	ldr	x0, [x20, #40]
	str	w8, [x0]
	str	w8, [x20, #8]
	bl	_ff_flac_set_channel_layout
	mov	x0, x20
	bl	_allocate_buffers
	tbnz	w0, #31, LBB0_32
LBB0_5:
	ldr	w8, [sp, #24]
	ldr	x0, [x20, #40]
	str	w8, [x0]
	str	w8, [x20, #8]
	ldr	w8, [x0, #28]
	cbnz	w8, LBB0_7
; %bb.6:
	bl	_ff_flac_set_channel_layout
LBB0_7:
	ldr	w8, [sp, #56]
	str	w8, [x20, #64]
	ldr	x9, [x20, #16]
	ldr	x8, [sp, #32]
	orr	x10, x9, x8
	cbz	x10, LBB0_13
; %bb.8:
	cbz	x8, LBB0_14
; %bb.9:
	cbz	x9, LBB0_15
; %bb.10:
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.11:
	ldr	x0, [x20, #40]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str.2@PAGE
Lloh4:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_34
LBB0_12:
	mov	x22, x0
	ldr	x0, [x20, #40]
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	b	LBB0_35
LBB0_13:
	ldr	x0, [x20, #40]
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_34
LBB0_14:
	str	x9, [sp, #32]
	mov	x8, x9
LBB0_15:
	cbz	x9, LBB0_30
; %bb.16:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_31
LBB0_17:
	ldr	x9, [sp, #48]
	cmp	x9, x8
	b.le	LBB0_19
; %bb.18:
	ldr	x0, [x20, #40]
Lloh15:
	adrp	x10, _AV_LOG_ERROR@GOTPAGE
Lloh16:
	ldr	x10, [x10, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x10]
	stp	x9, x8, [sp]
Lloh18:
	adrp	x2, l_.str.3@PAGE
Lloh19:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_34
LBB0_19:
	str	x9, [x20, #56]
	ldr	x9, [x20, #24]
	ldr	x8, [sp, #40]
	orr	x10, x9, x8
	cbz	x10, LBB0_33
; %bb.20:
	cbnz	x8, LBB0_22
; %bb.21:
	str	x9, [sp, #40]
	mov	x8, x9
LBB0_22:
	ldr	x9, [x20, #40]
	str	x8, [x9, #16]
	str	x8, [x20, #24]
	ldr	w8, [x20]
	cbnz	w8, LBB0_25
; %bb.23:
	mov	x0, x20
	bl	_allocate_buffers
	tbnz	w0, #31, LBB0_32
; %bb.24:
	mov	w8, #1
	str	w8, [x20]
	ldr	x0, [x20, #40]
	mov	x1, x21
	bl	_dump_headers
	ldr	x9, [x20, #40]
LBB0_25:
	add	x0, x20, #48
	ldr	w1, [x9, #24]
	ldr	w2, [x20, #8]
	ldr	x3, [x20, #16]
	bl	_ff_flacdsp_init
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.26:
	mov	w23, #0
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_decode_subframe
	tbnz	w0, #31, LBB0_32
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	add	w23, w23, #1
	ldr	w8, [x21]
	cmp	w23, w8
	b.lt	LBB0_27
LBB0_29:
	mov	x0, x19
	bl	_align_get_bits
	mov	x0, x19
	mov	w1, #16
	bl	_skip_bits
	mov	w22, #0
	b	LBB0_35
LBB0_30:
	ldr	x9, [x20, #40]
	str	x8, [x9, #8]
	str	x8, [x20, #16]
	mov	x0, x20
	bl	_flac_set_bps
	ldr	x8, [x20, #32]
	cbnz	x8, LBB0_17
LBB0_31:
Lloh20:
	adrp	x8, _FLAC_MAX_BLOCKSIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FLAC_MAX_BLOCKSIZE@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [x20, #32]
	b	LBB0_17
LBB0_32:
	mov	x22, x0
	b	LBB0_35
LBB0_33:
	ldr	x0, [x20, #40]
Lloh23:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x2, l_.str.4@PAGE
Lloh27:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_34:
	bl	_av_log
Lloh28:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh30:
	ldr	w22, [x8]
LBB0_35:
	mov	x0, x22
	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
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid frame header\n"

l_.str.1:                               ; @.str.1
	.asciz	"bps not found in STREAMINFO or frame header\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.2:                               ; @.str.2
	.asciz	"switching bps mid-stream is not supported\n"

	.comm	_FLAC_MAX_BLOCKSIZE,8,3         ; @FLAC_MAX_BLOCKSIZE
l_.str.3:                               ; @.str.3
	.asciz	"blocksize %d > %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"sample rate not found in STREAMINFO or frame header\n"

	.no_dead_strip	_decode_frame
.subsections_via_symbols
