	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function header_table_add
_header_table_add:                      ## @header_table_add
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	addq	%r14, %rax
	cmpq	16(%r15), %rax
	jbe	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_header_table_evict_one
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	jne	LBB0_2
LBB0_4:
	xorl	%ecx, %ecx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_header_table_evict_one
	movq	(%r15), %rcx
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %rcx
	jae	LBB0_5
## %bb.7:
	testq	%rcx, %rcx
	jne	LBB0_11
## %bb.8:
	xorl	%edi, %edi
	cmpq	$0, 8(%r15)
	sete	%dil
	callq	_assert
	cmpq	%r14, 16(%r15)
	jae	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	jmp	LBB0_31
LBB0_10:
	movq	(%r15), %rcx
LBB0_11:
	addq	%r14, 8(%r15)
	movq	24(%r15), %r12
	cmpq	%r12, %rcx
	jne	LBB0_12
## %bb.13:
	addq	%rcx, %rcx
	cmpq	$17, %rcx
	movl	$16, %r12d
	cmovaeq	%rcx, %r12
	leaq	(,%r12,4), %rdi
	callq	_h2o_mem_alloc
	movq	%rax, %r14
	movq	(%r15), %r8
	testq	%r8, %r8
	je	LBB0_26
## %bb.14:
	movq	32(%r15), %rax
	movq	40(%r15), %rsi
	cmpq	$1, %r8
	jne	LBB0_16
## %bb.15:
	xorl	%edi, %edi
	jmp	LBB0_24
LBB0_12:
	movq	32(%r15), %rax
	movq	40(%r15), %r14
	decq	%rax
	jmp	LBB0_27
LBB0_16:
	movq	24(%r15), %rcx
	movq	%r8, %rbx
	andq	$-2, %rbx
	xorl	%edi, %edi
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rax
	cmpq	%rdi, %rbx
	je	LBB0_24
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rax,4), %edx
	movl	%edx, (%r14,%rdi,4)
	incq	%rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rax
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_17 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %eax
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	(%rsi,%rax,4), %edx
	movl	%edx, 4(%r14,%rdi,4)
	addq	$2, %rdi
	incq	%rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %eax
	cmpq	%rdi, %rbx
	jne	LBB0_17
LBB0_24:
	testb	$1, %r8b
	je	LBB0_26
## %bb.25:
	movl	(%rsi,%rax,4), %eax
	movl	%eax, (%r14,%rdi,4)
LBB0_26:
	leaq	(%r14,%r8,4), %rdi
	movl	%r12d, %edx
	subl	%r8d, %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	40(%r15), %rdi
	callq	_free
	movq	%r14, 40(%r15)
	movq	%r12, 24(%r15)
	movq	(%r15), %rcx
	movq	$-1, %rax
LBB0_27:
	incq	%rcx
	movq	%rcx, (%r15)
	addq	%r12, %rax
	movq	%rax, %rcx
	orq	%r12, %rcx
	shrq	$32, %rcx
	je	LBB0_28
## %bb.29:
	xorl	%edx, %edx
	divq	%r12
	jmp	LBB0_30
LBB0_28:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $edx killed $edx def $rdx
LBB0_30:
	movq	%rdx, 32(%r15)
	leaq	(%r14,%rdx,4), %rax
LBB0_31:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_header_table_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function header_table_add
_header_table_add:                      ; @header_table_add
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x10, [x19, #8]
	add	x9, x9, x20
	cmp	x9, x10
	b.ls	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_header_table_evict_one
	ldr	x8, [x19]
	cbnz	x8, LBB0_1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_header_table_evict_one
	ldr	x8, [x19]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x8, x21
	b.hs	LBB0_3
; %bb.5:
	cbnz	x8, LBB0_9
; %bb.6:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19, #16]
	cmp	x8, x20
	b.hs	LBB0_8
; %bb.7:
	mov	x0, #0
	b	LBB0_16
LBB0_8:
	ldr	x8, [x19]
LBB0_9:
	ldr	x9, [x19, #8]
	add	x9, x9, x20
	str	x9, [x19, #8]
	ldr	x21, [x19, #24]
	cmp	x8, x21
	b.ne	LBB0_14
; %bb.10:
	lsl	x8, x8, #1
	mov	w9, #16
	cmp	x8, #16
	csel	x21, x8, x9, hi
	lsl	x0, x21, #2
	bl	_h2o_mem_alloc
	mov	x20, x0
	ldr	x8, [x19]
	cbz	x8, LBB0_13
; %bb.11:
	ldp	x13, x9, [x19, #32]
	mov	x10, x8
	mov	x11, x20
	ldr	x12, [x19, #24]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x9, x13, lsl #2]
	str	w14, [x11], #4
	add	x13, x13, #1
	udiv	x14, x13, x12
	msub	x13, x14, x12, x13
	subs	x10, x10, #1
	b.ne	LBB0_12
LBB0_13:
	add	x0, x20, x8, lsl #2
	sub	w8, w21, w8
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	ldr	x0, [x19, #40]
	bl	_free
	str	x20, [x19, #40]
	str	x21, [x19, #24]
	mov	x9, #-1
	ldr	x8, [x19]
	b	LBB0_15
LBB0_14:
	ldp	x9, x20, [x19, #32]
	sub	x9, x9, #1
LBB0_15:
	add	x8, x8, #1
	str	x8, [x19]
	add	x8, x9, x21
	udiv	x9, x8, x21
	msub	x8, x9, x21, x8
	str	x8, [x19, #32]
	add	x0, x20, x8, lsl #2
LBB0_16:
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_header_table_add
.subsections_via_symbols
