	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SSL_key_update                 ## -- Begin function SSL_key_update
	.p2align	4, 0x90
_SSL_key_update:                        ## @SSL_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_SSL_IS_TLS13
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_SSL_KEY_UPDATE_NOT_REQUESTED@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_6
## %bb.4:
	movq	_SSL_KEY_UPDATE_REQUESTED@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_SSL_F_SSL_KEY_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SSL_R_INVALID_KEY_UPDATE_TYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_SSL_F_SSL_KEY_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SSL_R_WRONG_SSL_VERSION@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	%r15, %rdi
	callq	_SSL_is_init_finished
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	$1, %ebx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_ossl_statem_set_in_init
	movl	%r14d, (%r15)
	jmp	LBB0_9
LBB0_7:
	movq	_SSL_F_SSL_KEY_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SSL_R_STILL_IN_INIT@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %esi
	callq	_SSLerr
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_F_SSL_KEY_UPDATE,4,2       ## @SSL_F_SSL_KEY_UPDATE
	.comm	_SSL_R_WRONG_SSL_VERSION,4,2    ## @SSL_R_WRONG_SSL_VERSION
	.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_R_INVALID_KEY_UPDATE_TYPE,4,2 ## @SSL_R_INVALID_KEY_UPDATE_TYPE
	.comm	_SSL_R_STILL_IN_INIT,4,2        ## @SSL_R_STILL_IN_INIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SSL_key_update                 ; -- Begin function SSL_key_update
	.p2align	2
_SSL_key_update:                        ; @SSL_key_update
	.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	x19, x1
	mov	x20, x0
	bl	_SSL_IS_TLS13
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _SSL_KEY_UPDATE_NOT_REQUESTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_KEY_UPDATE_NOT_REQUESTED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SSL_KEY_UPDATE_REQUESTED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SSL_KEY_UPDATE_REQUESTED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #4, ne
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_SSL_is_init_finished
	cbz	w0, LBB0_6
; %bb.3:
	mov	w21, #1
	mov	x0, x20
	mov	w1, #1
	bl	_ossl_statem_set_in_init
	str	w19, [x20]
	b	LBB0_8
LBB0_4:
Lloh6:
	adrp	x8, _SSL_F_SSL_KEY_UPDATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_F_SSL_KEY_UPDATE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _SSL_R_WRONG_SSL_VERSION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSL_R_WRONG_SSL_VERSION@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _SSL_F_SSL_KEY_UPDATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSL_F_SSL_KEY_UPDATE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _SSL_R_INVALID_KEY_UPDATE_TYPE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SSL_R_INVALID_KEY_UPDATE_TYPE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x8, _SSL_F_SSL_KEY_UPDATE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SSL_F_SSL_KEY_UPDATE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _SSL_R_STILL_IN_INIT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SSL_R_STILL_IN_INIT@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
	bl	_SSLerr
	mov	w21, #0
LBB0_8:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_F_SSL_KEY_UPDATE,4,2       ; @SSL_F_SSL_KEY_UPDATE
	.comm	_SSL_R_WRONG_SSL_VERSION,4,2    ; @SSL_R_WRONG_SSL_VERSION
	.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_R_INVALID_KEY_UPDATE_TYPE,4,2 ; @SSL_R_INVALID_KEY_UPDATE_TYPE
	.comm	_SSL_R_STILL_IN_INIT,4,2        ; @SSL_R_STILL_IN_INIT
.subsections_via_symbols
