	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_string
_decode_string:                         ## @decode_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	(%rsi), %rax
	cmpq	%rdx, %rax
	jae	LBB0_5
## %bb.1:
	movl	%ecx, %r13d
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	(%rax), %ebx
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movl	$7, %edx
	callq	_h2o_hpack_decode_int
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movl	%eax, %r14d
	movq	(%r12), %rdi
	subq	%rdi, %r15
	sarq	$2, %r15
	movl	%eax, %eax
	testb	$-128, %bl
	jne	LBB0_7
## %bb.3:
	cmpq	%rax, %r15
	jl	LBB0_5
## %bb.9:
	movq	%rax, %r15
	testl	%r13d, %r13d
	je	LBB0_16
## %bb.10:
	cmpl	$58, (%rdi)
	je	LBB0_17
## %bb.11:
	movl	%r14d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_h2o_hpack_validate_header_name
	testl	%eax, %eax
	jne	LBB0_17
	jmp	LBB0_5
LBB0_7:
	cmpq	%rax, %r15
	jl	LBB0_5
## %bb.13:
	movq	%rax, %r15
	movl	%r14d, %esi
	addl	%r14d, %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_alloc_buf
	movq	%rax, %rbx
	movq	8(%rax), %rdi
	movq	(%r12), %rsi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_h2o_hpack_decode_huffman
	movq	%rax, (%rbx)
	movq	_SIZE_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
LBB0_5:
	xorl	%ebx, %ebx
LBB0_19:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r15, %rdx
	jmp	LBB0_18
LBB0_16:
	movl	%r14d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_h2o_hpack_validate_header_value
LBB0_17:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_alloc_buf
	movq	%rax, %rbx
	movq	8(%rax), %rdi
	movq	(%r12), %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movq	%r15, %rdx
	movq	%r15, %rax
LBB0_18:
	movq	8(%rbx), %rcx
	movb	$0, (%rcx,%rax)
	shlq	$2, %rdx
	addq	%rdx, (%r12)
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
	.no_dead_strip	_decode_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_string
_decode_string:                         ; @decode_string
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x1]
	cmp	x8, x2
	b.hs	LBB0_9
; %bb.1:
	mov	x21, x4
	mov	x23, x3
	mov	x24, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w26, [x8]
	mov	x0, x1
	mov	x1, x2
	mov	w2, #7
	bl	_h2o_hpack_decode_int
	tbnz	w0, #31, LBB0_9
; %bb.2:
	mov	x20, x0
	mov	w25, w0
	ldr	x0, [x19]
	sub	x8, x24, x0
	asr	x8, x8, #2
	cmp	x8, x25
	tbnz	w26, #7, LBB0_7
; %bb.3:
	b.lt	LBB0_9
; %bb.4:
	cbz	w23, LBB0_11
; %bb.5:
	ldr	w8, [x0]
	cmp	w8, #58
	b.eq	LBB0_12
; %bb.6:
	mov	x1, x20
	mov	x2, x21
	bl	_h2o_hpack_validate_header_name
	cbnz	w0, LBB0_12
	b	LBB0_9
LBB0_7:
	b.lt	LBB0_9
; %bb.8:
	lsl	w1, w20, #1
	mov	x0, x22
	bl	_alloc_buf
	mov	x22, x0
	ldr	x0, [x0, #8]
	ldr	x1, [x19]
	mov	x2, x20
	mov	x3, x23
	mov	x4, x21
	bl	_h2o_hpack_decode_huffman
	str	x0, [x22]
Lloh0:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
LBB0_9:
	mov	x22, #0
LBB0_10:
	mov	x0, 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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x1, x20
	mov	x2, x21
	bl	_h2o_hpack_validate_header_value
LBB0_12:
	mov	x0, x22
	mov	x1, x20
	bl	_alloc_buf
	mov	x22, x0
	ldr	x0, [x0, #8]
	ldr	x1, [x19]
	mov	x2, x20
	bl	_memcpy
	mov	x0, x25
LBB0_13:
	ldr	x8, [x22, #8]
	strb	wzr, [x8, x0]
	ldr	x8, [x19]
	add	x8, x8, x25, lsl #2
	str	x8, [x19]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
	.no_dead_strip	_decode_string
.subsections_via_symbols
