	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_flac_write_header           ## -- Begin function ff_flac_write_header
	.p2align	4, 0x90
_ff_flac_write_header:                  ## @ff_flac_write_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	testl	%ecx, %ecx
	setne	%al
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -32(%rbp)
	movaps	l___const.ff_flac_write_header.header+16(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	l___const.ff_flac_write_header.header(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	shll	$7, %eax
	movl	%eax, -48(%rbp)
	movq	_FLAC_STREAMINFO_SIZE@GOTPCREL(%rip), %r15
	cmpl	%edx, (%r15)
	jle	LBB0_2
## %bb.1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-64(%rbp), %rsi
	movl	$8, %edx
	callq	_avio_write
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_avio_write
	xorl	%eax, %eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.ff_flac_write_header.header
l___const.ff_flac_write_header.header:
	.long	102                             ## 0x66
	.long	76                              ## 0x4c
	.long	97                              ## 0x61
	.long	67                              ## 0x43
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	34                              ## 0x22

	.comm	_FLAC_STREAMINFO_SIZE,4,2       ## @FLAC_STREAMINFO_SIZE
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_flac_write_header           ; -- Begin function ff_flac_write_header
	.p2align	2
_ff_flac_write_header:                  ; @ff_flac_write_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	cmp	w3, #0
	cset	w8, ne
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	str	x9, [sp, #40]
Lloh3:
	adrp	x9, l___const.ff_flac_write_header.header@PAGE
Lloh4:
	add	x9, x9, l___const.ff_flac_write_header.header@PAGEOFF
	ldp	q1, q0, [x9]
	stp	q1, q0, [sp]
	lsl	w8, w8, #7
	str	w8, [sp, #16]
Lloh5:
	adrp	x21, _FLAC_STREAMINFO_SIZE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _FLAC_STREAMINFO_SIZE@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w2
	b.le	LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	mov	x1, sp
	mov	w2, #8
	bl	_avio_write
	ldr	w2, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_avio_write
	mov	w0, #0
LBB0_3:
	ldr	x8, [sp, #40]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	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
	add	sp, sp, #96
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.ff_flac_write_header.header
l___const.ff_flac_write_header.header:
	.long	102                             ; 0x66
	.long	76                              ; 0x4c
	.long	97                              ; 0x61
	.long	67                              ; 0x43
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	34                              ; 0x22

	.comm	_FLAC_STREAMINFO_SIZE,4,2       ; @FLAC_STREAMINFO_SIZE
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
.subsections_via_symbols
