	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WriteMetaBlockInternal
_WriteMetaBlockInternal:                ## @WriteMetaBlockInternal
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%r8, %rbx
	movl	%ecx, %r15d
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	80(%rbp), %r12
	movl	%ecx, %edi
	callq	_WrapPosition
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	72(%rbp), %r12
	movq	48(%rbp), %r9
	movq	40(%rbp), %r8
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	callq	_ShouldCompress
	testl	%eax, %eax
	movq	%r13, %r15
	movq	%rbx, %r13
	je	LBB0_3
## %bb.4:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	56(%rbp), %r10
	movq	16(%rbp), %rsi
	movq	88(%rbp), %r14
	movq	(%r14), %rdx
	movq	80(%rbp), %r15
	movzbl	(%r15), %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	8(%rsi), %eax
	movq	_MIN_QUALITY_FOR_RECOMPUTE_DISTANCE_PREFIXES@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpl	(%rcx), %eax
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	jge	LBB0_6
## %bb.5:
	xorl	%esi, %esi
	movq	48(%rbp), %rbx
	jmp	LBB0_8
LBB0_1:
	movl	$2, %edi
	movl	$3, %esi
	movq	%r12, %rdx
	movq	88(%rbp), %rcx
	callq	_BrotliWriteBits
	movl	(%r12), %eax
	addl	$7, %eax
	andl	$-8, %eax
	movq	%rax, (%r12)
	jmp	LBB0_27
LBB0_3:
	movq	%r12, %rdi
	movq	64(%rbp), %rsi
	movl	$16, %edx
	callq	_memcpy
	subq	$8, %rsp
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r14, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r15, %rcx
	movq	%r13, %r8
	movq	80(%rbp), %r9
	pushq	88(%rbp)
	callq	_BrotliStoreUncompressedMetaBlock
	addq	$104, %rsp
	jmp	LBB0_28
LBB0_6:
	movq	(%rsi), %rcx
	movq	_BROTLI_MODE_FONT@GOTPCREL(%rip), %rdx
	movl	$0, %esi
	cmpq	(%rdx), %rcx
	movq	48(%rbp), %rbx
	jne	LBB0_8
## %bb.7:
	movl	$12, %r12d
	movq	%r10, %rdi
	movq	%rbx, %rsi
	movl	$12, %edx
	movl	$1, %ecx
	movq	%r10, %rbx
	callq	_RecomputeDistancePrefixes
	movq	16(%rbp), %rdi
	movl	$1, %esi
	movq	%rbx, %r10
	movq	48(%rbp), %rbx
	movl	8(%rdi), %eax
LBB0_8:
	movq	_MAX_QUALITY_FOR_STATIC_ENTROPY_CODES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_9
## %bb.11:
	movq	_MIN_QUALITY_FOR_BLOCK_SPLIT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_13
## %bb.12:
	movq	%r14, %r12
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-80(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%r12
	pushq	%r15
	pushq	%rbx
	pushq	%r10
	callq	_BrotliStoreMetaBlockTrivial
	addq	$32, %rsp
	movq	%r14, %rdi
	movq	%r12, %r14
	jmp	LBB0_10
LBB0_9:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-80(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%r14
	pushq	%r15
	pushq	%rbx
	pushq	%r10
	callq	_BrotliStoreMetaBlockFast
	addq	$32, %rsp
	movq	%r12, %rdi
LBB0_10:
	callq	_BROTLI_IS_OOM
	testq	%rax, %rax
	jne	LBB0_27
LBB0_25:
	leaq	4(%r13), %rax
	movq	(%r15), %rcx
	shrq	$3, %rcx
	cmpq	%rcx, %rax
	jae	LBB0_27
## %bb.26:
	movq	72(%rbp), %rdi
	movq	64(%rbp), %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	%rax, (%r14)
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	%rax, (%r15)
	subq	$8, %rsp
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	movq	%r15, %r9
	pushq	%r14
	callq	_BrotliStoreUncompressedMetaBlock
	addq	$16, %rsp
	jmp	LBB0_27
LBB0_13:
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	_CONTEXT_UTF8@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	-48(%rbp), %rdi
	callq	_InitMetaBlockSplit
	movq	16(%rbp), %rcx
	movl	8(%rcx), %r8d
	movq	_MIN_QUALITY_FOR_HQ_BLOCK_SPLITTING@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	jge	LBB0_18
## %bb.14:
	movq	$1, -112(%rbp)
	movq	$0, -104(%rbp)
	cmpl	$0, 16(%rcx)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_16
## %bb.15:
	movl	$1, %r10d
	xorl	%r11d, %r11d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	48(%rbp), %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_18:
	movq	_kMinUTF8Ratio@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	_BrotliIsMostlyUTF8
	testl	%eax, %eax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_20
## %bb.19:
	movq	_CONTEXT_SIGNED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_20:
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rbp), %r8
	movq	24(%rbp), %r9
	leaq	-48(%rbp), %rax
	pushq	%rax
	pushq	%r12
	pushq	48(%rbp)
	pushq	56(%rbp)
	pushq	32(%rbp)
	callq	_BrotliBuildMetaBlock
	addq	$48, %rsp
	movq	%r15, %rdi
	callq	_BROTLI_IS_OOM
	testq	%rax, %rax
	jne	LBB0_27
	jmp	LBB0_21
LBB0_16:
	movl	12(%rcx), %r9d
	leaq	-104(%rbp), %rax
	leaq	-112(%rbp), %r10
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	movq	%r13, %rdx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	pushq	%rax
	pushq	%r10
	callq	_DecideOverLiteralContextModeling
	movl	%r15d, %edx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	addq	$16, %rsp
	movq	-112(%rbp), %r10
	movq	-104(%rbp), %r11
	movq	48(%rbp), %rax
LBB0_17:
	movq	24(%rbp), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rcx
	movq	32(%rbp), %r9
	leaq	-48(%rbp), %rbx
	pushq	%rbx
	pushq	%rax
	pushq	56(%rbp)
	pushq	%r11
	pushq	%r10
	pushq	%r12
	callq	_BrotliBuildMetaBlockGreedy
	addq	$48, %rsp
	movq	%r15, %rdi
	callq	_BROTLI_IS_OOM
	testq	%rax, %rax
	movq	88(%rbp), %r14
	jne	LBB0_27
LBB0_21:
	movq	16(%rbp), %rax
	movl	8(%rax), %eax
	movq	_MIN_QUALITY_FOR_OPTIMIZE_HISTOGRAMS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_23
## %bb.22:
	leaq	-48(%rbp), %rdx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_BrotliOptimizeHistograms
LBB0_23:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	24(%rbp), %r9
	pushq	%r14
	pushq	80(%rbp)
	leaq	-48(%rbp), %rax
	pushq	%rax
	pushq	48(%rbp)
	pushq	56(%rbp)
	pushq	%r12
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	32(%rbp)
	callq	_BrotliStoreMetaBlock
	addq	$80, %rsp
	movq	%r15, %rdi
	callq	_BROTLI_IS_OOM
	testq	%rax, %rax
	je	LBB0_24
LBB0_27:
	addq	$88, %rsp
LBB0_28:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_DestroyMetaBlockSplit
	movq	80(%rbp), %r15
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_MIN_QUALITY_FOR_RECOMPUTE_DISTANCE_PREFIXES,4,2 ## @MIN_QUALITY_FOR_RECOMPUTE_DISTANCE_PREFIXES
	.comm	_BROTLI_MODE_FONT,8,3           ## @BROTLI_MODE_FONT
	.comm	_MAX_QUALITY_FOR_STATIC_ENTROPY_CODES,4,2 ## @MAX_QUALITY_FOR_STATIC_ENTROPY_CODES
	.comm	_MIN_QUALITY_FOR_BLOCK_SPLIT,4,2 ## @MIN_QUALITY_FOR_BLOCK_SPLIT
	.comm	_CONTEXT_UTF8,4,2               ## @CONTEXT_UTF8
	.comm	_MIN_QUALITY_FOR_HQ_BLOCK_SPLITTING,4,2 ## @MIN_QUALITY_FOR_HQ_BLOCK_SPLITTING
	.comm	_kMinUTF8Ratio,4,2              ## @kMinUTF8Ratio
	.comm	_CONTEXT_SIGNED,4,2             ## @CONTEXT_SIGNED
	.comm	_MIN_QUALITY_FOR_OPTIMIZE_HISTOGRAMS,4,2 ## @MIN_QUALITY_FOR_OPTIMIZE_HISTOGRAMS
	.no_dead_strip	_WriteMetaBlockInternal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WriteMetaBlockInternal
_WriteMetaBlockInternal:                ; @WriteMetaBlockInternal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #176]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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
	str	x7, [sp, #96]                   ; 8-byte Folded Spill
	mov	x23, x6
	stur	w5, [x29, #-116]                ; 4-byte Folded Spill
	mov	x21, x4
	mov	x25, x3
	mov	x22, x2
	mov	x24, x1
	mov	x28, x0
	ldp	x19, x20, [x29, #64]
	ldr	x8, [x29, #56]
	str	x8, [sp, #104]                  ; 8-byte Folded Spill
	ldr	x8, [x29, #48]
	str	x8, [sp, #112]                  ; 8-byte Folded Spill
	ldr	x8, [x29, #40]
	str	x8, [sp, #128]                  ; 8-byte Folded Spill
	ldp	x27, x26, [x29, #24]
	ldr	x8, [x29, #16]
	str	x8, [sp, #88]                   ; 8-byte Folded Spill
	mov	x0, x3
	bl	_WrapPosition
	cbz	x21, LBB0_5
; %bb.1:
	str	w0, [sp, #124]                  ; 4-byte Folded Spill
	mov	x0, x24
	mov	x1, x22
	mov	x2, x25
	mov	x3, x21
	mov	x4, x27
	mov	x5, x26
	bl	_ShouldCompress
	cbz	w0, LBB0_10
; %bb.2:
	ldr	x9, [x20]
	ldrb	w8, [x19]
	stp	x8, x9, [sp, #72]               ; 16-byte Folded Spill
	ldr	w8, [x23, #8]
Lloh0:
	adrp	x9, _MIN_QUALITY_FOR_RECOMPUTE_DISTANCE_PREFIXES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MIN_QUALITY_FOR_RECOMPUTE_DISTANCE_PREFIXES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_6
; %bb.3:
	ldr	x9, [x23]
Lloh3:
	adrp	x10, _BROTLI_MODE_FONT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BROTLI_MODE_FONT@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.4:
	ldr	x25, [sp, #128]                 ; 8-byte Folded Reload
	mov	x0, x25
	mov	x1, x26
	mov	w2, #12
	mov	w3, #1
	bl	_RecomputeDistancePrefixes
	mov	w11, #1
	mov	w10, #12
	mov	x6, x25
	ldr	w8, [x23, #8]
	b	LBB0_7
LBB0_5:
	mov	w0, #2
	mov	w1, #3
	mov	x2, x19
	mov	x3, x20
	bl	_BrotliWriteBits
	ldr	w8, [x19]
	add	w8, w8, #7
	and	x8, x8, #0xfffffff8
	str	x8, [x19]
	b	LBB0_24
LBB0_6:
	mov	w10, #0
	mov	w11, #0
	ldr	x6, [sp, #128]                  ; 8-byte Folded Reload
LBB0_7:
	mov	x25, x28
Lloh6:
	adrp	x9, _MAX_QUALITY_FOR_STATIC_ENTROPY_CODES@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_QUALITY_FOR_STATIC_ENTROPY_CODES@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_11
; %bb.8:
Lloh9:
	adrp	x9, _MIN_QUALITY_FOR_BLOCK_SPLIT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MIN_QUALITY_FOR_BLOCK_SPLIT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_15
; %bb.9:
	stp	x19, x20, [sp]
	mov	x0, x25
	mov	x1, x24
	ldr	w2, [sp, #124]                  ; 4-byte Folded Reload
	mov	x3, x21
	mov	x4, x22
	ldur	w23, [x29, #-116]               ; 4-byte Folded Reload
	mov	x5, x23
	mov	x7, x26
	bl	_BrotliStoreMetaBlockTrivial
	b	LBB0_12
LBB0_10:
	ldp	x0, x1, [sp, #104]              ; 16-byte Folded Reload
	mov	w2, #16
	bl	_memcpy
	ldur	w0, [x29, #-116]                ; 4-byte Folded Reload
	mov	x1, x24
	ldr	w2, [sp, #124]                  ; 4-byte Folded Reload
	mov	x3, x22
	mov	x4, x21
	mov	x5, x19
	mov	x6, x20
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #272
	b	_BrotliStoreUncompressedMetaBlock
LBB0_11:
	stp	x19, x20, [sp]
	mov	x0, x25
	mov	x1, x24
	ldr	w2, [sp, #124]                  ; 4-byte Folded Reload
	mov	x3, x21
	mov	x4, x22
	ldur	w23, [x29, #-116]               ; 4-byte Folded Reload
	mov	x5, x23
	mov	x7, x26
	bl	_BrotliStoreMetaBlockFast
LBB0_12:
	mov	x0, x25
	bl	_BROTLI_IS_OOM
	cbnz	x0, LBB0_24
LBB0_13:
	add	x8, x21, #4
	ldr	x9, [x19]
	cmp	x8, x9, lsr #3
	b.hs	LBB0_24
; %bb.14:
	ldp	x0, x1, [sp, #104]              ; 16-byte Folded Reload
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	str	x8, [x20]
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	str	x8, [x19]
	mov	x0, x23
	mov	x1, x24
	ldr	w2, [sp, #124]                  ; 4-byte Folded Reload
	mov	x3, x22
	mov	x4, x21
	mov	x5, x19
	mov	x6, x20
	bl	_BrotliStoreUncompressedMetaBlock
	b	LBB0_24
LBB0_15:
	stp	w11, w10, [sp, #64]             ; 8-byte Folded Spill
Lloh12:
	adrp	x8, _CONTEXT_UTF8@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CONTEXT_UTF8@GOTPAGEOFF]
Lloh14:
	ldr	w27, [x8]
	sub	x0, x29, #92
	bl	_InitMetaBlockSplit
	ldr	w4, [x23, #8]
Lloh15:
	adrp	x8, _MIN_QUALITY_FOR_HQ_BLOCK_SPLITTING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MIN_QUALITY_FOR_HQ_BLOCK_SPLITTING@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w4, w8
	b.ge	LBB0_19
; %bb.16:
	str	w27, [sp, #60]                  ; 4-byte Folded Spill
	mov	x8, #0
	mov	w7, #1
	stp	xzr, x7, [x29, #-112]
	ldr	w9, [x23, #16]
	ldr	x10, [sp, #96]                  ; 8-byte Folded Reload
	cbnz	w9, LBB0_18
; %bb.17:
	ldr	w5, [x23, #12]
	sub	x6, x29, #104
	sub	x7, x29, #112
	mov	x0, x24
	ldr	w1, [sp, #124]                  ; 4-byte Folded Reload
	mov	x2, x21
	mov	x3, x22
	bl	_DecideOverLiteralContextModeling
	ldr	x10, [sp, #96]                  ; 8-byte Folded Reload
	ldp	x8, x7, [x29, #-112]
LBB0_18:
	sub	x9, x29, #92
	stp	x26, x9, [sp, #16]
	ldr	x9, [sp, #128]                  ; 8-byte Folded Reload
	stp	x8, x9, [sp]
	mov	x0, x25
	mov	x1, x24
	ldr	w2, [sp, #124]                  ; 4-byte Folded Reload
	mov	x3, x22
	mov	x4, x10
	ldr	x28, [sp, #88]                  ; 8-byte Folded Reload
	mov	x5, x28
	ldr	w6, [sp, #60]                   ; 4-byte Folded Reload
	bl	_BrotliBuildMetaBlockGreedy
	mov	x0, x25
	bl	_BROTLI_IS_OOM
	cbnz	x0, LBB0_24
	b	LBB0_21
LBB0_19:
Lloh18:
	adrp	x8, _kMinUTF8Ratio@GOTPAGE
Lloh19:
	ldr	x8, [x8, _kMinUTF8Ratio@GOTPAGEOFF]
Lloh20:
	ldr	w4, [x8]
	mov	x0, x24
	ldr	w25, [sp, #124]                 ; 4-byte Folded Reload
	mov	x1, x25
	mov	x2, x22
	mov	x3, x21
	bl	_BrotliIsMostlyUTF8
Lloh21:
	adrp	x8, _CONTEXT_SIGNED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CONTEXT_SIGNED@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w27, w8, w27, eq
	sub	x8, x29, #92
	str	x8, [sp, #16]
	str	w27, [sp, #8]
	str	x26, [sp]
	mov	x0, x28
	mov	x1, x24
	mov	x2, x25
	mov	x25, x28
	mov	x3, x22
	mov	x4, x23
	ldp	x28, x5, [sp, #88]              ; 16-byte Folded Reload
	mov	x6, x28
	ldr	x7, [sp, #128]                  ; 8-byte Folded Reload
	bl	_BrotliBuildMetaBlock
	mov	x0, x25
	bl	_BROTLI_IS_OOM
	cbnz	x0, LBB0_24
; %bb.20:
	str	w27, [sp, #60]                  ; 4-byte Folded Spill
LBB0_21:
	ldr	w8, [x23, #8]
Lloh24:
	adrp	x9, _MIN_QUALITY_FOR_OPTIMIZE_HISTOGRAMS@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MIN_QUALITY_FOR_OPTIMIZE_HISTOGRAMS@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_23
; %bb.22:
	sub	x2, x29, #92
	ldp	w1, w0, [sp, #64]               ; 8-byte Folded Reload
	bl	_BrotliOptimizeHistograms
LBB0_23:
	stp	x19, x20, [sp, #40]
	sub	x8, x29, #92
	stp	x26, x8, [sp, #24]
	ldr	x8, [sp, #128]                  ; 8-byte Folded Reload
	str	x8, [sp, #16]
	ldr	w9, [sp, #60]                   ; 4-byte Folded Reload
	ldr	w8, [sp, #64]                   ; 4-byte Folded Reload
	stp	w8, w9, [sp, #4]
	ldr	w8, [sp, #68]                   ; 4-byte Folded Reload
	str	w8, [sp]
	mov	x0, x25
	mov	x1, x24
	ldr	w2, [sp, #124]                  ; 4-byte Folded Reload
	mov	x3, x21
	mov	x4, x22
	ldr	x5, [sp, #96]                   ; 8-byte Folded Reload
	mov	x6, x28
	ldur	w7, [x29, #-116]                ; 4-byte Folded Reload
	bl	_BrotliStoreMetaBlock
	mov	x0, x25
	bl	_BROTLI_IS_OOM
	cbz	x0, LBB0_25
LBB0_24:
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_25:
	sub	x1, x29, #92
	mov	x0, x25
	bl	_DestroyMetaBlockSplit
	ldur	w23, [x29, #-116]               ; 4-byte Folded Reload
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MIN_QUALITY_FOR_RECOMPUTE_DISTANCE_PREFIXES,4,2 ; @MIN_QUALITY_FOR_RECOMPUTE_DISTANCE_PREFIXES
	.comm	_BROTLI_MODE_FONT,8,3           ; @BROTLI_MODE_FONT
	.comm	_MAX_QUALITY_FOR_STATIC_ENTROPY_CODES,4,2 ; @MAX_QUALITY_FOR_STATIC_ENTROPY_CODES
	.comm	_MIN_QUALITY_FOR_BLOCK_SPLIT,4,2 ; @MIN_QUALITY_FOR_BLOCK_SPLIT
	.comm	_CONTEXT_UTF8,4,2               ; @CONTEXT_UTF8
	.comm	_MIN_QUALITY_FOR_HQ_BLOCK_SPLITTING,4,2 ; @MIN_QUALITY_FOR_HQ_BLOCK_SPLITTING
	.comm	_kMinUTF8Ratio,4,2              ; @kMinUTF8Ratio
	.comm	_CONTEXT_SIGNED,4,2             ; @CONTEXT_SIGNED
	.comm	_MIN_QUALITY_FOR_OPTIMIZE_HISTOGRAMS,4,2 ; @MIN_QUALITY_FOR_OPTIMIZE_HISTOGRAMS
	.no_dead_strip	_WriteMetaBlockInternal
.subsections_via_symbols
