	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_new_headers
_find_new_headers:                      ## @find_new_headers
	.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, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, 16(%rdi)
	movl	8(%rdi), %edi
	callq	_av_fifo_size
                                        ## kill: def $eax killed $eax def $rax
	movq	_MAX_FRAME_HEADER_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	1(%rax), %r12d
	subl	%ecx, %r12d
	addl	%r15d, %ecx
	negl	%ecx
	addl	%ecx, %eax
	addl	$2, %eax
	movl	%eax, -60(%rbp)
	leaq	-60(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_flac_fifo_read
	movq	%rax, %r13
	movl	-60(%rbp), %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	%r15d, %ecx
	callq	_find_headers_search
	movl	%eax, %ebx
	movslq	-60(%rbp), %rax
	leal	(%rax,%r15), %ecx
	decl	%ecx
	cmpl	%r12d, %ecx
	je	LBB0_4
## %bb.1:
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	-4(%r13,%rax,4), %ecx
	movl	%ecx, -56(%rbp)
	addl	%eax, %r15d
	subl	%r15d, %r12d
	incl	%r12d
	movl	%r12d, -60(%rbp)
	leaq	-60(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_flac_fifo_read
	movq	%rax, %r13
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_AV_RB16
	andl	$65534, %eax                    ## imm = 0xFFFE
	cmpl	$65528, %eax                    ## imm = 0xFFF8
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	callq	_find_headers_search_validate
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_FFMAX
	movl	%eax, %ebx
LBB0_3:
	movl	-60(%rbp), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r15d, %ecx
	callq	_find_headers_search
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_FFMAX
	movl	%eax, %ebx
LBB0_4:
	testl	%ebx, %ebx
	je	LBB0_5
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%r14), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_8
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_FRAME_HEADER_SIZE,4,2      ## @MAX_FRAME_HEADER_SIZE
	.no_dead_strip	_find_new_headers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_new_headers
_find_new_headers:                      ; @find_new_headers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	str	xzr, [x0, #16]
	ldr	w0, [x0, #8]
	bl	_av_fifo_size
Lloh3:
	adrp	x8, _MAX_FRAME_HEADER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_FRAME_HEADER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w9, w0, #1
	sub	w24, w9, w8
	add	w8, w21, w8
	sub	w8, w9, w8
	add	w8, w8, #1
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_flac_fifo_read
	mov	x22, x0
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	bl	_find_headers_search
	mov	x20, x0
	ldr	w8, [sp, #12]
	sub	w9, w8, #1
	add	w23, w9, w21
	cmp	w23, w24
	b.eq	LBB0_4
; %bb.1:
	ldr	w9, [x22, w9, sxtw #2]
	add	w21, w8, w21
	sub	w8, w24, w21
	add	w8, w8, #1
	stp	w8, w9, [sp, #12]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_flac_fifo_read
	mov	x22, x0
	ldr	w8, [x0]
	str	w8, [sp, #20]
	add	x0, sp, #16
	bl	_AV_RB16
	and	w8, w0, #0xfffe
	mov	w9, #65528
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x23
	bl	_find_headers_search_validate
	mov	x1, x0
	mov	x0, x20
	bl	_FFMAX
	mov	x20, x0
LBB0_3:
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	bl	_find_headers_search
	mov	x1, x0
	mov	x0, x20
	bl	_FFMAX
	mov	x20, x0
LBB0_4:
	cbnz	w20, LBB0_9
; %bb.5:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.6:
	mov	w20, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	w20, w20, #1
	ldr	x8, [x8]
	cbnz	x8, LBB0_7
	b	LBB0_9
LBB0_8:
	mov	w20, #0
LBB0_9:
	ldr	x8, [sp, #24]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_FRAME_HEADER_SIZE,4,2      ; @MAX_FRAME_HEADER_SIZE
	.no_dead_strip	_find_new_headers
.subsections_via_symbols
