	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_hpack_encode_string        ## -- Begin function h2o_hpack_encode_string
	.p2align	4, 0x90
_h2o_hpack_encode_string:               ## @h2o_hpack_encode_string
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%edi, %edi
	testq	%rdx, %rdx
	setne	%dil
	callq	_H2O_LIKELY
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	leaq	1(%r14), %r15
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_h2o_hpack_encode_huffman
	movq	%rax, %r12
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r12
	setne	%dil
	callq	_H2O_LIKELY
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movl	%r12d, %edi
	movl	$7, %esi
	callq	_encode_int_is_onebyte
	movl	%eax, %edi
	callq	_H2O_LIKELY
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	%r12d, %eax
	orb	$-128, %al
	movb	%al, (%r14)
	movl	$1, %ebx
	jmp	LBB0_5
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_encode_as_is                   ## TAILCALL
LBB0_4:
	movb	$-128, -56(%rbp)
	leaq	-56(%rbp), %r13
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$7, %edx
	callq	_h2o_hpack_encode_int
	movq	%rax, %rbx
	subq	%r13, %rbx
	leaq	(%r14,%rbx), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_memmove
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.6:
	addq	%r12, %rbx
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_hpack_encode_string        ; -- Begin function h2o_hpack_encode_string
	.p2align	2
_h2o_hpack_encode_string:               ; @h2o_hpack_encode_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	cmp	x2, #0
	cset	w0, ne
	bl	_H2O_LIKELY
	cbz	x0, LBB0_4
; %bb.1:
	add	x21, x19, #1
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_h2o_hpack_encode_huffman
	mov	x20, x0
Lloh3:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ne
	bl	_H2O_LIKELY
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	mov	w1, #7
	bl	_encode_int_is_onebyte
	bl	_H2O_LIKELY
	cbz	x0, LBB0_6
; %bb.3:
	orr	w8, w20, #0x80
	strb	w8, [x19]
	mov	w22, #1
	b	LBB0_7
LBB0_4:
	ldr	x8, [sp, #8]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_encode_as_is
LBB0_6:
	mov	w8, #128
	strb	w8, [sp]
	mov	x22, sp
	mov	x0, sp
	mov	x1, x20
	mov	w2, #7
	bl	_h2o_hpack_encode_int
	sub	x22, x0, x22
	add	x0, x19, x22
	mov	x1, x21
	mov	x2, x20
	bl	_memmove
	mov	x1, sp
	mov	x0, x19
	mov	x2, x22
	bl	_memcpy
LBB0_7:
	ldr	x8, [sp, #8]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	add	x0, x22, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
.subsections_via_symbols
