	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_process_key_update         ## -- Begin function tls_process_key_update
	.p2align	4, 0x90
_tls_process_key_update:                ## @tls_process_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	addq	$4, %rdi
	callq	_RECORD_LAYER_processed_read_pending
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_SSL_AD_UNEXPECTED_MESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_KEY_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_NOT_ON_RECORD_BOUNDARY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_PACKET_get_1
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_PACKET_remaining
	testq	%rax, %rax
	je	LBB0_8
LBB0_4:
	movq	_SSL_AD_DECODE_ERROR@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movq	_SSL_F_TLS_PROCESS_KEY_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SSL_R_BAD_KEY_UPDATE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_SSLfatal
LBB0_7:
	movq	_MSG_PROCESS_ERROR@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movl	-20(%rbp), %ecx
	movq	_SSL_KEY_UPDATE_NOT_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SSL_KEY_UPDATE_REQUESTED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%eax, %ecx
	je	LBB0_11
## %bb.9:
	cmpl	%edx, %ecx
	je	LBB0_11
## %bb.10:
	movq	_SSL_AD_ILLEGAL_PARAMETER@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_11:
	cmpl	%edx, %ecx
	jne	LBB0_13
## %bb.12:
	movl	%eax, (%r14)
LBB0_13:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_tls13_update_key
	testl	%eax, %eax
	je	LBB0_7
## %bb.14:
	movq	_MSG_PROCESS_FINISHED_READING@GOTPCREL(%rip), %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_AD_UNEXPECTED_MESSAGE,4,2  ## @SSL_AD_UNEXPECTED_MESSAGE
	.comm	_SSL_F_TLS_PROCESS_KEY_UPDATE,4,2 ## @SSL_F_TLS_PROCESS_KEY_UPDATE
	.comm	_SSL_R_NOT_ON_RECORD_BOUNDARY,4,2 ## @SSL_R_NOT_ON_RECORD_BOUNDARY
	.comm	_MSG_PROCESS_ERROR,4,2          ## @MSG_PROCESS_ERROR
	.comm	_SSL_AD_DECODE_ERROR,4,2        ## @SSL_AD_DECODE_ERROR
	.comm	_SSL_R_BAD_KEY_UPDATE,4,2       ## @SSL_R_BAD_KEY_UPDATE
	.comm	_SSL_KEY_UPDATE_NOT_REQUESTED,4,2 ## @SSL_KEY_UPDATE_NOT_REQUESTED
	.comm	_SSL_KEY_UPDATE_REQUESTED,4,2   ## @SSL_KEY_UPDATE_REQUESTED
	.comm	_SSL_AD_ILLEGAL_PARAMETER,4,2   ## @SSL_AD_ILLEGAL_PARAMETER
	.comm	_MSG_PROCESS_FINISHED_READING,4,2 ## @MSG_PROCESS_FINISHED_READING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tls_process_key_update         ; -- Begin function tls_process_key_update
	.p2align	2
_tls_process_key_update:                ; @tls_process_key_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	add	x0, x0, #4
	bl	_RECORD_LAYER_processed_read_pending
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SSL_AD_UNEXPECTED_MESSAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_AD_UNEXPECTED_MESSAGE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SSL_F_TLS_PROCESS_KEY_UPDATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_KEY_UPDATE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _SSL_R_NOT_ON_RECORD_BOUNDARY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_R_NOT_ON_RECORD_BOUNDARY@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	add	x1, sp, #12
	mov	x0, x20
	bl	_PACKET_get_1
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_PACKET_remaining
	cbz	x0, LBB0_8
LBB0_4:
Lloh8:
	adrp	x8, _SSL_AD_DECODE_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SSL_AD_DECODE_ERROR@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _SSL_F_TLS_PROCESS_KEY_UPDATE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SSL_F_TLS_PROCESS_KEY_UPDATE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x8, _SSL_R_BAD_KEY_UPDATE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SSL_R_BAD_KEY_UPDATE@GOTPAGEOFF]
LBB0_6:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_SSLfatal
Lloh15:
	adrp	x8, _MSG_PROCESS_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_PROCESS_ERROR@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
	ldr	w9, [sp, #12]
Lloh17:
	adrp	x8, _SSL_KEY_UPDATE_NOT_REQUESTED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SSL_KEY_UPDATE_NOT_REQUESTED@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x10, _SSL_KEY_UPDATE_REQUESTED@GOTPAGE
Lloh21:
	ldr	x10, [x10, _SSL_KEY_UPDATE_REQUESTED@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	cmp	w9, w8
	ccmp	w9, w10, #4, ne
	b.ne	LBB0_12
; %bb.9:
	cmp	w9, w10
	b.ne	LBB0_11
; %bb.10:
	str	w8, [x19]
LBB0_11:
	mov	x0, x19
	mov	w1, #0
	bl	_tls13_update_key
Lloh23:
	adrp	x8, _MSG_PROCESS_FINISHED_READING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MSG_PROCESS_FINISHED_READING@GOTPAGEOFF]
Lloh25:
	adrp	x9, _MSG_PROCESS_ERROR@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MSG_PROCESS_ERROR@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
	b	LBB0_7
LBB0_12:
Lloh27:
	adrp	x8, _SSL_AD_ILLEGAL_PARAMETER@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SSL_AD_ILLEGAL_PARAMETER@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_AD_UNEXPECTED_MESSAGE,4,2  ; @SSL_AD_UNEXPECTED_MESSAGE
	.comm	_SSL_F_TLS_PROCESS_KEY_UPDATE,4,2 ; @SSL_F_TLS_PROCESS_KEY_UPDATE
	.comm	_SSL_R_NOT_ON_RECORD_BOUNDARY,4,2 ; @SSL_R_NOT_ON_RECORD_BOUNDARY
	.comm	_MSG_PROCESS_ERROR,4,2          ; @MSG_PROCESS_ERROR
	.comm	_SSL_AD_DECODE_ERROR,4,2        ; @SSL_AD_DECODE_ERROR
	.comm	_SSL_R_BAD_KEY_UPDATE,4,2       ; @SSL_R_BAD_KEY_UPDATE
	.comm	_SSL_KEY_UPDATE_NOT_REQUESTED,4,2 ; @SSL_KEY_UPDATE_NOT_REQUESTED
	.comm	_SSL_KEY_UPDATE_REQUESTED,4,2   ; @SSL_KEY_UPDATE_REQUESTED
	.comm	_SSL_AD_ILLEGAL_PARAMETER,4,2   ; @SSL_AD_ILLEGAL_PARAMETER
	.comm	_MSG_PROCESS_FINISHED_READING,4,2 ; @MSG_PROCESS_FINISHED_READING
.subsections_via_symbols
