	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compress_
_compress_:                             ## @compress_
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -104(%rbp)                 ## 8-byte Spill
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edi
	callq	_h2o_send_state_is_in_progress
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_BROTLI_OPERATION_FINISH@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_BROTLI_OPERATION_FLUSH@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_shrink_buf
	movq	8(%rbx), %rax
	movq	$0, (%rax)
	testq	%r15, %r15
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	je	LBB0_10
## %bb.4:
	xorl	%eax, %eax
	leaq	-56(%rbp), %r12
	leaq	-48(%rbp), %r13
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	%r15, %rax
	je	LBB0_11
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	leaq	(%rax,%rax,2), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movq	%rax, %r15
	movq	16(%r14,%rcx,8), %rax
	movq	(%rax), %rax
	xorl	%edi, %edi
	movq	_h2o_sendvec_flatten_raw@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%r14,%rcx,8), %rax
	movq	%rax, -56(%rbp)
	movq	(%r14,%rcx,8), %rax
	movq	%rax, -48(%rbp)
	incq	%r15
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	cmpq	-88(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_BROTLI_OPERATION_PROCESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	testq	%rax, %rax
	je	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_compress_core
	cmpq	$0, -48(%rbp)
	jne	LBB0_9
	jmp	LBB0_5
LBB0_10:
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_compress_core
LBB0_11:
	movl	16(%rbx), %edi
	callq	_BrotliEncoderHasMoreOutput
	testq	%rax, %rax
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_14
## %bb.12:
	leaq	-56(%rbp), %r14
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_compress_core
	movl	16(%rbx), %edi
	callq	_BrotliEncoderHasMoreOutput
	testq	%rax, %rax
	jne	LBB0_13
LBB0_14:
	movq	8(%rbx), %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movslq	(%rbx), %rax
	movq	8(%rbx), %rcx
	leaq	(%rax,%rax,2), %rdx
	cmpq	$1, -24(%rcx,%rdx,8)
	sbbl	$0, %eax
	cltq
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BROTLI_OPERATION_FLUSH,4,2     ## @BROTLI_OPERATION_FLUSH
	.comm	_BROTLI_OPERATION_FINISH,4,2    ## @BROTLI_OPERATION_FINISH
	.comm	_h2o_sendvec_flatten_raw,8,3    ## @h2o_sendvec_flatten_raw
	.comm	_BROTLI_OPERATION_PROCESS,4,2   ## @BROTLI_OPERATION_PROCESS
	.no_dead_strip	_compress_
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compress_
_compress_:                             ; @compress_
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	stp	x4, x5, [sp]                    ; 16-byte Folded Spill
	mov	x20, x3
	mov	x24, x2
	mov	x25, x1
	mov	x22, x0
	mov	x0, x3
	bl	_h2o_send_state_is_in_progress
Lloh0:
	adrp	x8, _BROTLI_OPERATION_FLUSH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BROTLI_OPERATION_FLUSH@GOTPAGEOFF]
Lloh2:
	adrp	x9, _BROTLI_OPERATION_FINISH@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BROTLI_OPERATION_FINISH@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w23, [x8]
	mov	x0, x22
	mov	w1, #1
	bl	_shrink_buf
	ldr	x8, [x22, #8]
	str	xzr, [x8]
	cbz	x24, LBB0_5
; %bb.1:
	mov	x27, #0
	mov	w28, #24
Lloh4:
	adrp	x19, _h2o_sendvec_flatten_raw@GOTPAGE
Lloh5:
	ldr	x19, [x19, _h2o_sendvec_flatten_raw@GOTPAGEOFF]
Lloh6:
	adrp	x21, _BROTLI_OPERATION_PROCESS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _BROTLI_OPERATION_PROCESS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x27, x24
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	madd	x26, x27, x28, x25
	ldr	x8, [x26, #16]
	ldr	x8, [x8]
	ldr	x9, [x19]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldp	x9, x8, [x26]
	stp	x9, x8, [sp, #16]
	add	x27, x27, #1
	ldr	w8, [x21]
	cmp	x27, x24
	csel	w26, w23, w8, eq
	cbz	x9, LBB0_2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x22
	mov	x1, x26
	bl	_compress_core
	ldr	x8, [sp, #16]
	cbnz	x8, LBB0_4
	b	LBB0_2
LBB0_5:
	stp	xzr, xzr, [sp, #16]
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x22
	mov	x1, x23
	bl	_compress_core
LBB0_6:
	ldr	w0, [x22, #16]
	bl	_BrotliEncoderHasMoreOutput
	cbnz	x0, LBB0_5
; %bb.7:
	ldr	x8, [x22, #8]
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	str	x8, [x9]
	ldr	w8, [x22]
	ldr	x9, [x22, #8]
	sub	w10, w8, #1
	mov	w11, #24
	smull	x10, w10, w11
	ldr	x9, [x9, x10]
	cmp	x9, #0
	cset	w9, eq
	sub	w8, w8, w9
	sxtw	x8, w8
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	x8, [x9]
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BROTLI_OPERATION_FLUSH,4,2     ; @BROTLI_OPERATION_FLUSH
	.comm	_BROTLI_OPERATION_FINISH,4,2    ; @BROTLI_OPERATION_FINISH
	.comm	_h2o_sendvec_flatten_raw,8,3    ; @h2o_sendvec_flatten_raw
	.comm	_BROTLI_OPERATION_PROCESS,4,2   ; @BROTLI_OPERATION_PROCESS
	.no_dead_strip	_compress_
.subsections_via_symbols
