	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_tickets
_update_tickets:                        ## @update_tickets
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movslq	(%rdi), %r8
	testq	%r8, %r8
	je	LBB0_6
## %bb.1:
	movq	8(%r12), %rax
	movq	-8(%rax,%r8,8), %rdi
	cmpq	%r14, (%rdi)
	jge	LBB0_7
## %bb.2:
	leaq	(%rax,%r8,8), %rcx
	addq	$-8, %rcx
	decq	%r8
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r8d, (%r12)
	movq	$0, (%rcx)
	callq	_free_ticket
	movslq	(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rax
	leaq	-1(%rdx), %r8
	leaq	(%rax,%rdx,8), %rcx
	addq	$-8, %rcx
	movq	-8(%rax,%rdx,8), %rdi
	cmpq	%r14, (%rdi)
	jl	LBB0_3
## %bb.5:
	movl	$1, %r15d
	movl	%edx, %r8d
	cmpl	$2, %r8d
	jge	LBB0_8
	jmp	LBB0_20
LBB0_6:
	xorl	%r15d, %r15d
	jmp	LBB0_20
LBB0_7:
	xorl	%r15d, %r15d
	cmpl	$2, %r8d
	jl	LBB0_20
LBB0_8:
	xorl	%r13d, %r13d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_11 Depth=1
	movq	%r9, %r13
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	leal	-1(%r8), %eax
	cltq
	cmpq	%rax, %r13
	jae	LBB0_17
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	leaq	1(%r13), %r9
	movslq	%r8d, %rdx
	cmpq	%rdx, %r9
	jae	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%r12), %rsi
	movq	(%rsi,%r13,8), %rdi
	movq	8(%rdi), %rcx
	movq	(%rcx), %rbx
	movq	%r9, %rcx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rsi,%rcx,8), %rax
	movq	8(%rax), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_13
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	callq	_free_ticket
	movq	8(%r12), %rax
	leaq	(%rax,%r13,8), %rdi
	leaq	(%rax,%r13,8), %rsi
	addq	$8, %rsi
	movl	%r13d, %edx
	notl	%edx
	addl	(%r12), %edx
	shll	$3, %edx
	callq	_memmove
	movl	(%r12), %r8d
	decl	%r8d
	movl	%r8d, (%r12)
	jmp	LBB0_10
LBB0_17:
	cmpl	$256, %r8d                      ## imm = 0x100
	jl	LBB0_20
## %bb.18:
	leaq	L_.str(%rip), %rdi
	callq	_h2o_fatal
	jmp	LBB0_20
LBB0_19:
	movl	$1, %r15d
LBB0_20:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_find_ticket_for_encryption
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	8(%r12), %rcx
	movq	(%rcx), %rdx
	movq	_conf@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	3(%rcx), %esi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %esi
	sarl	$2, %esi
	movslq	%esi, %rsi
	addq	16(%rdx), %rsi
	cmpq	%r14, %rsi
	jl	LBB0_23
	jmp	LBB0_32
LBB0_22:
	movq	_conf@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_23:
	leaq	60(%r14), %rdx
	testq	%rax, %rax
	cmoveq	%r14, %rdx
	movq	_conf@GOTPCREL(%rip), %rax
	movl	4(%rax), %esi
	movl	8(%rax), %edi
	movslq	%ecx, %rax
	leaq	(%rdx,%rax), %rcx
	decq	%rcx
	movl	$1, %r8d
	callq	_new_ticket
	movq	%rax, %r14
	movslq	(%r12), %rdx
	cmpq	$2, %rdx
	movl	$1, %eax
	cmovaeq	%rdx, %rax
	testl	%edx, %edx
	jne	LBB0_24
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_30:
	movq	8(%r14), %rcx
	incq	(%rcx)
	testl	%edx, %edx
	je	LBB0_28
LBB0_24:
	movq	8(%r12), %rsi
	movq	8(%r14), %rcx
	movq	(%rcx), %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rcx,8), %rbx
	movq	8(%rbx), %rbx
	cmpq	%rdi, (%rbx)
	je	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_25
## %bb.27:
	movq	%rax, %rcx
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_28:
	xorl	%ecx, %ecx
LBB0_29:
	cmpq	%rdx, %rcx
	jne	LBB0_30
## %bb.31:
	incl	%edx
	xorl	%edi, %edi
	movq	%r12, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_h2o_vector_reserve
	movq	8(%r12), %rsi
	leaq	8(%rsi), %rdi
	movl	(%r12), %edx
	shll	$3, %edx
	callq	_memmove
	incl	(%r12)
	movq	8(%r12), %rax
	movq	%r14, (%rax)
	movl	$1, %r15d
LBB0_32:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no space for unique QUIC key identifier"

	.comm	_conf,12,2                      ## @conf
	.no_dead_strip	_update_tickets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_tickets
_update_tickets:                        ; @update_tickets
	.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	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	x10, [x19, #8]
	sub	w9, w8, #1
	add	x10, x10, w9, sxtw #3
	ldr	x0, [x10]
	ldr	x11, [x0]
	cmp	x11, x20
	b.ge	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	w9, [x19]
	str	xzr, [x10]
	bl	_free_ticket
	ldr	w8, [x19]
	cbz	w8, LBB0_17
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x10, [x19, #8]
	sub	w9, w8, #1
	add	x10, x10, w9, sxtw #3
	ldr	x0, [x10]
	ldr	x11, [x0]
	cmp	x11, x20
	b.lt	LBB0_2
; %bb.4:
	mov	w21, #1
	cmp	w8, #2
	b.ge	LBB0_7
	b	LBB0_18
LBB0_5:
	mov	w21, #0
	b	LBB0_18
LBB0_6:
	mov	w21, #0
	cmp	w8, #2
	b.lt	LBB0_18
LBB0_7:
	mov	x22, #0
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x22, x9
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	sub	w9, w8, #1
	cmp	x22, w9, sxtw
	b.hs	LBB0_15
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	add	x9, x22, #1
	sxtw	x12, w8
	cmp	x9, x12
	b.hs	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x10, [x19, #8]
	add	x10, x10, x22, lsl #3
	ldr	x0, [x10], #8
	ldr	x11, [x0, #8]
	ldr	x11, [x11]
	sub	x12, x12, #1
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x13, [x10]
	ldr	x13, [x13, #8]
	ldr	x13, [x13]
	cmp	x13, x11
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	sub	x12, x12, #1
	add	x10, x10, #8
	cmp	x22, x12
	b.ne	LBB0_12
	b	LBB0_8
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	bl	_free_ticket
	ldr	x8, [x19, #8]
	add	x0, x8, x22, lsl #3
	add	x1, x0, #8
	ldr	w8, [x19]
	mvn	w9, w22
	add	w8, w8, w9
	lsl	w2, w8, #3
	bl	_memmove
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
	b	LBB0_9
LBB0_15:
	cmp	w8, #256
	b.lt	LBB0_18
; %bb.16:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_h2o_fatal
	b	LBB0_18
LBB0_17:
	mov	w21, #1
LBB0_18:
	mov	x0, x19
	mov	x1, x20
	bl	_find_ticket_for_encryption
Lloh2:
	adrp	x8, _conf@GOTPAGE
Lloh3:
	ldr	x8, [x8, _conf@GOTPAGEOFF]
	cbz	x0, LBB0_20
; %bb.19:
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	ldr	x10, [x9, #16]
	ldr	w9, [x8]
	add	w11, w9, #3
	cmp	w9, #0
	csel	w11, w11, w9, lt
	asr	w11, w11, #2
	add	x10, x10, w11, sxtw
	cmp	x10, x20
	b.lt	LBB0_21
	b	LBB0_29
LBB0_20:
	ldr	w9, [x8]
LBB0_21:
	add	x10, x20, #60
	cmp	x0, #0
	csel	x2, x20, x10, eq
	ldp	w1, w0, [x8, #4]
	add	x8, x2, w9, sxtw
	sub	x3, x8, #1
	mov	w4, #1
	bl	_new_ticket
	mov	x20, x0
	ldrsw	x8, [x19]
	cmp	x8, #1
	csinc	x9, x8, xzr, hi
	mov	x10, #0
	cbnz	w8, LBB0_23
	b	LBB0_27
LBB0_22:                                ;   in Loop: Header=BB0_27 Depth=1
	ldr	x10, [x20, #8]
	ldr	x11, [x10]
	add	x11, x11, #1
	str	x11, [x10]
	mov	x10, #0
	cbz	w8, LBB0_27
LBB0_23:
	ldr	x11, [x19, #8]
	ldr	x12, [x20, #8]
	ldr	x12, [x12]
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x11, x10, lsl #3]
	ldr	x13, [x13, #8]
	ldr	x13, [x13]
	cmp	x13, x12
	b.eq	LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_24
; %bb.26:
	mov	x10, x9
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	cmp	x10, x8
	b.ne	LBB0_22
; %bb.28:
	add	w2, w8, #1
	mov	x0, #0
	mov	x1, x19
	bl	_h2o_vector_reserve
	ldr	x1, [x19, #8]
	add	x0, x1, #8
	ldr	w8, [x19]
	lsl	w2, w8, #3
	bl	_memmove
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #8]
	str	x20, [x8]
	mov	w21, #1
LBB0_29:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no space for unique QUIC key identifier"

	.comm	_conf,12,2                      ; @conf
	.no_dead_strip	_update_tickets
.subsections_via_symbols
