	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function score_header
_score_header:                          ## @score_header
	.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	(%rsi), %eax
	movq	_FLAC_HEADER_NOT_SCORED_YET@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_FLAC_HEADER_BASE_SCORE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	cmpq	$0, 8(%rdi)
	je	LBB0_3
## %bb.2:
	leaq	32(%r15), %rdx
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_check_header_fi_mismatch
	subl	%eax, %r12d
LBB0_3:
	movl	%r12d, (%r15)
	movq	_FLAC_MAX_SEQUENTIAL_HEADERS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_13
## %bb.4:
	movq	16(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.5:
	movq	8(%r15), %rdx
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rdx,%r13,8), %rax
	movq	_FLAC_HEADER_NOT_PENALIZED_YET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_check_header_mismatch
	movq	8(%r15), %rcx
	movq	%rax, -8(%rcx,%r13,8)
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_score_header
	movl	%eax, %ecx
	movq	8(%r15), %rdx
	subl	-8(%rdx,%r13,8), %ecx
	movq	_FLAC_HEADER_BASE_SCORE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%ecx, %esi
	movl	(%r15), %eax
	cmpl	%eax, %esi
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, 24(%r15)
	addl	%r12d, %ecx
	movl	%ecx, (%r15)
	movl	%ecx, %eax
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_FLAC_MAX_SEQUENTIAL_HEADERS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %r13
	jge	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rbx), %rbx
	incq	%r13
	testq	%rbx, %rbx
	jne	LBB0_6
	jmp	LBB0_14
LBB0_13:
	movl	%r12d, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAC_HEADER_BASE_SCORE,4,2     ## @FLAC_HEADER_BASE_SCORE
	.comm	_FLAC_HEADER_NOT_SCORED_YET,4,2 ## @FLAC_HEADER_NOT_SCORED_YET
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.comm	_FLAC_MAX_SEQUENTIAL_HEADERS,4,2 ## @FLAC_MAX_SEQUENTIAL_HEADERS
	.comm	_FLAC_HEADER_NOT_PENALIZED_YET,8,3 ## @FLAC_HEADER_NOT_PENALIZED_YET
	.no_dead_strip	_score_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function score_header
_score_header:                          ; @score_header
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	ldr	w0, [x1]
Lloh0:
	adrp	x8, _FLAC_HEADER_NOT_SCORED_YET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLAC_HEADER_NOT_SCORED_YET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x1
Lloh3:
	adrp	x23, _FLAC_HEADER_BASE_SCORE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _FLAC_HEADER_BASE_SCORE@GOTPAGEOFF]
	ldr	w22, [x23]
	ldr	x8, [x20, #8]
Lloh5:
	adrp	x24, _AV_LOG_DEBUG@GOTPAGE
Lloh6:
	ldr	x24, [x24, _AV_LOG_DEBUG@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.2:
	add	x2, x19, #32
	ldr	w3, [x24]
	mov	x0, x20
	mov	x1, x20
	bl	_check_header_fi_mismatch
	sub	w22, w22, w0
LBB0_3:
	str	w22, [x19]
	ldr	x21, [x19, #16]
Lloh7:
	adrp	x25, _FLAC_MAX_SEQUENTIAL_HEADERS@GOTPAGE
Lloh8:
	ldr	x25, [x25, _FLAC_MAX_SEQUENTIAL_HEADERS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	ccmp	x21, #0, #4, ge
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x22
LBB0_5:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x26, #0
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x27, _FLAC_HEADER_NOT_PENALIZED_YET@GOTPAGE
Lloh10:
	ldr	x27, [x27, _FLAC_HEADER_NOT_PENALIZED_YET@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x26, x26, #1
	ldr	x21, [x21, #16]
	ldrsw	x9, [x25]
	cmp	x26, x9
	ccmp	x21, #0, #4, lt
	b.eq	LBB0_5
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, x26, lsl #3]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w3, [x24]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_check_header_mismatch
	ldr	x8, [x19, #8]
	str	x0, [x8, x26, lsl #3]
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_score_header
	ldr	x8, [x19, #8]
	ldr	x9, [x8, x26, lsl #3]
	ldr	w10, [x23]
	sub	w9, w0, w9
	add	w10, w9, w10
	ldr	w0, [x19]
	cmp	w10, w0
	b.le	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	str	x21, [x19, #24]
	add	w0, w9, w22
	str	w0, [x19]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAC_HEADER_BASE_SCORE,4,2     ; @FLAC_HEADER_BASE_SCORE
	.comm	_FLAC_HEADER_NOT_SCORED_YET,4,2 ; @FLAC_HEADER_NOT_SCORED_YET
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.comm	_FLAC_MAX_SEQUENTIAL_HEADERS,4,2 ; @FLAC_MAX_SEQUENTIAL_HEADERS
	.comm	_FLAC_HEADER_NOT_PENALIZED_YET,8,3 ; @FLAC_HEADER_NOT_PENALIZED_YET
	.no_dead_strip	_score_header
.subsections_via_symbols
