	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_headers_search_validate
_find_headers_search_validate:          ## @find_headers_search_validate
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_MAX_FRAME_HEADER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	20(%rdi), %rcx
	leaq	16(%rdi), %r8
	callq	_flac_fifo_read_wrap
	movl	4(%r14), %edi
	leaq	-36(%rbp), %rdx
	movq	%rax, %rsi
	callq	_frame_header_is_valid
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	incl	%r12d
	movq	24(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	addq	$24, %rbx
	jmp	LBB0_7
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_13
LBB0_3:
	leaq	8(%r14), %rbx
	movl	$1, %r12d
LBB0_7:
	movl	$32, %edi
	callq	_av_mallocz
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movl	-36(%rbp), %ecx
	movl	%ecx, 16(%rax)
	movl	%r15d, (%rax)
	movq	_FLAC_MAX_SEQUENTIAL_HEADERS@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_12
## %bb.10:
	movq	8(%rax), %rax
	xorl	%edx, %edx
	movq	_FLAC_HEADER_NOT_PENALIZED_YET@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edi
	movl	%edi, (%rax,%rdx,4)
	incq	%rdx
	movslq	(%rcx), %rdi
	cmpq	%rdi, %rdx
	jl	LBB0_11
LBB0_12:
	incl	(%r14)
	jmp	LBB0_13
LBB0_8:
	movl	4(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r12d
LBB0_13:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_FRAME_HEADER_SIZE,4,2      ## @MAX_FRAME_HEADER_SIZE
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't allocate FLACHeaderMarker\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FLAC_MAX_SEQUENTIAL_HEADERS,4,2 ## @FLAC_MAX_SEQUENTIAL_HEADERS
	.comm	_FLAC_HEADER_NOT_PENALIZED_YET,4,2 ## @FLAC_HEADER_NOT_PENALIZED_YET
	.no_dead_strip	_find_headers_search_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_headers_search_validate
_find_headers_search_validate:          ; @find_headers_search_validate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MAX_FRAME_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_FRAME_HEADER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x3, x0, #20
	add	x4, x0, #16
	bl	_flac_fifo_read_wrap
	mov	x1, x0
	ldr	w0, [x19, #4]
	add	x2, sp, #12
	bl	_frame_header_is_valid
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x19
	ldr	x8, [x22, #8]!
	cbz	x8, LBB0_6
; %bb.2:
	mov	w20, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x8
	add	w20, w20, #1
	ldr	x8, [x8, #24]
	cbnz	x8, LBB0_3
; %bb.4:
	add	x22, x9, #24
	b	LBB0_7
LBB0_5:
	mov	w20, #0
	b	LBB0_13
LBB0_6:
	mov	w20, #1
LBB0_7:
	mov	w0, #32
	bl	_av_mallocz
	str	x0, [x22]
	cbz	x0, LBB0_12
; %bb.8:
	ldr	w8, [sp, #12]
	str	w8, [x0, #16]
	str	w21, [x0]
Lloh3:
	adrp	x8, _FLAC_MAX_SEQUENTIAL_HEADERS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FLAC_MAX_SEQUENTIAL_HEADERS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x9, #0
	ldr	x10, [x0, #8]
Lloh5:
	adrp	x11, _FLAC_HEADER_NOT_PENALIZED_YET@GOTPAGE
Lloh6:
	ldr	x11, [x11, _FLAC_HEADER_NOT_PENALIZED_YET@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	str	w12, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_10
LBB0_11:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_13
LBB0_12:
	ldr	w0, [x19, #4]
Lloh7:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_FRAME_HEADER_SIZE,4,2      ; @MAX_FRAME_HEADER_SIZE
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't allocate FLACHeaderMarker\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FLAC_MAX_SEQUENTIAL_HEADERS,4,2 ; @FLAC_MAX_SEQUENTIAL_HEADERS
	.comm	_FLAC_HEADER_NOT_PENALIZED_YET,4,2 ; @FLAC_HEADER_NOT_PENALIZED_YET
	.no_dead_strip	_find_headers_search_validate
.subsections_via_symbols
