	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_key_update
_handle_key_update:                     ## @handle_key_update
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_PTLS_HANDSHAKE_HEADER_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rdx,%rax,4), %rbx
	movslq	%ecx, %rax
	leaq	(%rdx,%rax,4), %rax
	subq	%rbx, %rax
	cmpq	$4, %rax
	jne	LBB0_2
## %bb.1:
	cmpl	$2, (%rbx)
	jl	LBB0_5
LBB0_2:
	movq	_PTLS_ALERT_DECODE_ERROR@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%rdi, %r14
	xorl	%esi, %esi
	callq	_update_traffic_key
	testl	%eax, %eax
	jne	LBB0_4
## %bb.6:
	cmpl	$0, (%rbx)
	je	LBB0_10
## %bb.7:
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movq	_PTLS_ALERT_UNEXPECTED_MESSAGE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_9:
	movl	$1, (%r14)
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_PTLS_HANDSHAKE_HEADER_SIZE,4,2 ## @PTLS_HANDSHAKE_HEADER_SIZE
	.comm	_PTLS_ALERT_DECODE_ERROR,4,2    ## @PTLS_ALERT_DECODE_ERROR
	.comm	_PTLS_ALERT_UNEXPECTED_MESSAGE,4,2 ## @PTLS_ALERT_UNEXPECTED_MESSAGE
	.no_dead_strip	_handle_key_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_key_update
_handle_key_update:                     ; @handle_key_update
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _PTLS_HANDSHAKE_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTLS_HANDSHAKE_HEADER_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	add	x20, x2, x8, lsl #2
	lsl	x8, x3, #32
	add	x8, x2, x8, asr #30
	sub	x8, x8, x20
	cmp	x8, #4
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _PTLS_ALERT_DECODE_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PTLS_ALERT_DECODE_ERROR@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x19, x0
	mov	w1, #0
	bl	_update_traffic_key
	cbnz	w0, LBB0_4
; %bb.6:
	ldr	w8, [x20]
	cbz	w8, LBB0_9
; %bb.7:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.8:
Lloh5:
	adrp	x8, _PTLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PTLS_ALERT_UNEXPECTED_MESSAGE@GOTPAGEOFF]
	b	LBB0_3
LBB0_9:
	mov	w0, #0
	b	LBB0_4
LBB0_10:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PTLS_HANDSHAKE_HEADER_SIZE,4,2 ; @PTLS_HANDSHAKE_HEADER_SIZE
	.comm	_PTLS_ALERT_DECODE_ERROR,4,2    ; @PTLS_ALERT_DECODE_ERROR
	.comm	_PTLS_ALERT_UNEXPECTED_MESSAGE,4,2 ; @PTLS_ALERT_UNEXPECTED_MESSAGE
	.no_dead_strip	_handle_key_update
.subsections_via_symbols
