	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BrotliEncoderMaxCompressedSize ## -- Begin function BrotliEncoderMaxCompressedSize
	.p2align	4, 0x90
_BrotliEncoderMaxCompressedSize:        ## @BrotliEncoderMaxCompressedSize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rax
	shrq	$24, %rax
	movl	%edi, %ecx
	andl	$16777215, %ecx                 ## imm = 0xFFFFFF
	cmpl	$1048577, %ecx                  ## imm = 0x100001
	leaq	(%rdi,%rax,4), %rcx
	sbbq	$-1, %rcx
	addq	$6, %rcx
	xorl	%eax, %eax
	cmpq	%rdi, %rcx
	cmovaeq	%rcx, %rax
	popq	%rbp
	retq
LBB0_1:
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BrotliEncoderMaxCompressedSize ; -- Begin function BrotliEncoderMaxCompressedSize
	.p2align	2
_BrotliEncoderMaxCompressedSize:        ; @BrotliEncoderMaxCompressedSize
	.cfi_startproc
; %bb.0:
	mov	w8, #1
	lsr	x9, x0, #22
	and	x9, x9, #0x3fffffffffc
	and	x10, x0, #0xffffff
	cmp	x10, #256, lsl #12              ; =1048576
	mov	w10, #3
	cinc	x10, x10, hi
	add	x9, x0, x9
	add	x9, x9, x10
	add	x9, x9, #3
	cmp	x9, x0
	csel	x9, xzr, x9, lo
	cmp	x0, #0
	csel	x0, x8, x9, eq
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
