	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_quic_keys
_update_quic_keys:                      ## @update_quic_keys
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_session_tickets@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	_quic_keys@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jne	LBB0_1
LBB0_8:
	movq	16(%r13), %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	4(%r14), %rbx
	leaq	8(%r13), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_pthread_rwlock_unlock
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%r13)
	movl	(%r14), %eax
	cmpl	%ecx, %eax
	je	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##     Child Loop BB0_6 Depth 2
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	-1(%rax), %rcx
	movq	%rcx, 8(%r13)
	leaq	-4(,%rax,4), %rdi
	addq	16(%r13), %rdi
	callq	_dispose_keyset
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_pthread_rwlock_rdlock
	xorl	%edi, %edi
	cmpq	$0, 8(%r14)
	setne	%dil
	callq	_assert
	movq	8(%r14), %rdx
	xorl	%edi, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_h2o_vector_reserve
	movq	8(%r13), %rbx
	cmpq	8(%r14), %rbx
	je	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %r15
	shlq	$2, %rbx
	addq	16(%r13), %rbx
	movq	16(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	4(%r15), %edi
	movl	8(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	callq	_EVP_CIPHER_key_length
	movq	%r14, %r12
	movq	%rax, %r14
	movl	(%r15), %edi
	callq	_EVP_MD_block_size
	addq	%rax, %r14
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	movq	%r12, %r14
	callq	_ptls_iovec_init
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_init_keyset
	movq	8(%r13), %rbx
	incq	%rbx
	movq	%rbx, 8(%r13)
	cmpq	8(%r12), %rbx
	jne	LBB0_6
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_session_tickets,24,3           ## @session_tickets
	.comm	_quic_keys,24,3                 ## @quic_keys
	.no_dead_strip	_update_quic_keys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_quic_keys
_update_quic_keys:                      ; @update_quic_keys
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x24, _session_tickets@GOTPAGE
Lloh1:
	ldr	x24, [x24, _session_tickets@GOTPAGEOFF]
	ldr	w26, [x24]
Lloh2:
	adrp	x25, _quic_keys@GOTPAGE
Lloh3:
	ldr	x25, [x25, _quic_keys@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w26, w8
	b.ne	LBB0_2
	b	LBB0_7
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x25, #16]
	sub	x8, x8, #1
	str	x8, [x25, #8]
	add	x0, x9, x8, lsl #2
	bl	_dispose_keyset
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	x8, [x25, #8]
	cbnz	x8, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x19, x24, #4
	mov	x0, x19
	bl	_pthread_rwlock_rdlock
	ldr	x8, [x24, #8]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x2, [x24, #8]
	add	x1, x25, #8
	mov	x0, #0
	bl	_h2o_vector_reserve
	ldr	x8, [x25, #8]
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x24, #8]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x9, [x24, #16]
	ldr	x27, [x9, x8, lsl #3]
	ldr	x9, [x25, #16]
	add	x20, x9, x8, lsl #2
	ldr	x8, [x27, #16]
	ldr	w21, [x8]
	ldp	w0, w22, [x27, #4]
	bl	_EVP_CIPHER_key_length
	mov	x23, x0
	ldr	w0, [x27]
	bl	_EVP_MD_block_size
	add	x1, x0, x23
	mov	x0, x22
	bl	_ptls_iovec_init
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_init_keyset
	ldr	x8, [x25, #8]
	add	x8, x8, #1
	str	x8, [x25, #8]
	b	LBB0_4
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_pthread_rwlock_unlock
	str	w26, [x25]
	ldr	w8, [x24]
	cmp	w8, w26
	mov	x26, x8
	b.ne	LBB0_2
LBB0_7:
	ldr	x0, [x25, #16]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_session_tickets,24,3           ; @session_tickets
	.comm	_quic_keys,24,3                 ; @quic_keys
	.no_dead_strip	_update_quic_keys
.subsections_via_symbols
