	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WriteMetadataHeader
_WriteMetadataHeader:                   ## @WriteMetadataHeader
	.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
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	(%rdi), %rax
	movq	%rax, -40(%rbp)
	movq	8(%rdi), %rax
	movq	%rax, (%rdx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	xorl	%ebx, %ebx
	leaq	-40(%rbp), %r12
	movl	$1, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_BrotliWriteBits
	movl	$3, %esi
	movl	$2, %edi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_BrotliWriteBits
	movl	$1, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_BrotliWriteBits
	cmpq	$1, %r14
	je	LBB0_4
## %bb.1:
	testq	%r14, %r14
	jne	LBB0_3
## %bb.2:
	leaq	-40(%rbp), %rdx
	movl	$2, %edi
	xorl	%esi, %esi
	jmp	LBB0_5
LBB0_3:
	leal	-1(%r14), %edi
	callq	_Log2FloorNonZero
	movl	%eax, %ebx
	leal	8(%rbx), %eax
	addl	$15, %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$3, %ebx
LBB0_4:
	movslq	%ebx, %rbx
	leaq	-40(%rbp), %r12
	movl	$2, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_BrotliWriteBits
	shll	$3, %ebx
	decq	%r14
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
LBB0_5:
	movq	%r15, %rcx
	callq	_BrotliWriteBits
	movq	-40(%rbp), %rax
	addq	$7, %rax
	shrq	$3, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_WriteMetadataHeader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WriteMetadataHeader
_WriteMetadataHeader:                   ; @WriteMetadataHeader
	.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	x19, x2
	mov	x21, x1
	ldp	x8, x9, [x0]
	str	x8, [sp, #8]
	str	x9, [x2]
	stp	xzr, xzr, [x0]
	add	x2, sp, #8
	mov	w0, #1
	mov	x1, #0
	mov	x3, x19
	bl	_BrotliWriteBits
	add	x2, sp, #8
	mov	w0, #2
	mov	w1, #3
	mov	x3, x19
	bl	_BrotliWriteBits
	add	x2, sp, #8
	mov	w0, #1
	mov	x1, #0
	mov	x3, x19
	bl	_BrotliWriteBits
	subs	x20, x21, #1
	b.eq	LBB0_3
; %bb.1:
	cbnz	x21, LBB0_4
; %bb.2:
	add	x2, sp, #8
	mov	w0, #2
	mov	x1, #0
	b	LBB0_6
LBB0_3:
	mov	w21, #0
	b	LBB0_5
LBB0_4:
	sub	w0, w21, #1
	bl	_Log2FloorNonZero
	add	w8, w0, #8
	add	w9, w0, #15
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w21, w8, #3
LBB0_5:
	sxtw	x1, w21
	add	x2, sp, #8
	mov	w0, #2
	mov	x3, x19
	bl	_BrotliWriteBits
	lsl	w0, w21, #3
	add	x2, sp, #8
	mov	x1, x20
LBB0_6:
	mov	x3, x19
	bl	_BrotliWriteBits
	ldr	x8, [sp, #8]
	add	x8, x8, #7
	lsr	x0, x8, #3
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_WriteMetadataHeader
.subsections_via_symbols
