	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flatten_dynamic_nameref
_flatten_dynamic_nameref:               ## @flatten_dynamic_nameref
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	cmpq	%rsi, (%rdi)
	jge	LBB0_2
## %bb.1:
	movq	%r12, (%rbx)
LBB0_2:
	movl	24(%rbx), %edi
	movq	16(%rbx), %rsi
	movq	_H2O_HPACK_ENCODE_INT_MAX_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rsi), %ecx
	addl	%r15d, %ecx
	leal	(%rcx,%rax,2), %edx
	callq	_h2o_vector_reserve
	movq	8(%rbx), %rsi
	movq	%rsi, %rax
	subq	%r12, %rax
	jge	LBB0_3
## %bb.4:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	setne	%al
	shll	$3, %eax
	movq	16(%rbx), %rdi
	movq	8(%rdi), %rcx
	movslq	(%rdi), %rdx
	movl	%eax, (%rcx,%rdx,4)
	notq	%rsi
	addq	%r12, %rsi
	movl	$3, %edx
	jmp	LBB0_5
LBB0_3:
	xorl	%ecx, %ecx
	testl	%r14d, %r14d
	setne	%cl
	shll	$5, %ecx
	orl	$64, %ecx
	movq	16(%rbx), %rdi
	movq	8(%rdi), %rdx
	movslq	(%rdi), %rsi
	movl	%ecx, (%rdx,%rsi,4)
	movq	%rax, %rsi
	movl	$4, %edx
LBB0_5:
	callq	_flatten_int
	movq	%r15, %rsi
	shrq	$32, %rsi
	movq	16(%rbx), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %edx
	movl	$7, %ecx
	movl	%r14d, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_flatten_string                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_HPACK_ENCODE_INT_MAX_LENGTH,4,2 ## @H2O_HPACK_ENCODE_INT_MAX_LENGTH
	.no_dead_strip	_flatten_dynamic_nameref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flatten_dynamic_nameref
_flatten_dynamic_nameref:               ; @flatten_dynamic_nameref
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x8, [x0]
	cmp	x8, x1
	b.ge	LBB0_2
; %bb.1:
	str	x22, [x21]
LBB0_2:
	ldr	w0, [x21, #24]
	ldr	x1, [x21, #16]
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _H2O_HPACK_ENCODE_INT_MAX_LENGTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _H2O_HPACK_ENCODE_INT_MAX_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w8, w8, w20
	add	w2, w8, w9, lsl #1
	bl	_h2o_vector_reserve
	ldr	x8, [x21, #8]
	subs	x1, x8, x22
	b.ge	LBB0_4
; %bb.3:
	cmp	w19, #0
	cset	w9, ne
	lsl	w9, w9, #3
	ldr	x0, [x21, #16]
	ldr	x10, [x0, #8]
	ldrsw	x11, [x0]
	str	w9, [x10, x11, lsl #2]
	mvn	x8, x8
	add	x1, x8, x22
	mov	w2, #3
	b	LBB0_5
LBB0_4:
	mov	w8, #96
	mov	w9, #64
	cmp	w19, #0
	csel	w8, w9, w8, eq
	ldr	x0, [x21, #16]
	ldr	x9, [x0, #8]
	ldrsw	x10, [x0]
	str	w8, [x9, x10, lsl #2]
	mov	w2, #4
LBB0_5:
	bl	_flatten_int
	lsr	x1, x20, #32
	ldr	x0, [x21, #16]
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x20
	mov	w3, #7
	mov	x4, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_flatten_string
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_HPACK_ENCODE_INT_MAX_LENGTH,4,2 ; @H2O_HPACK_ENCODE_INT_MAX_LENGTH
	.no_dead_strip	_flatten_dynamic_nameref
.subsections_via_symbols
