	.file	"extr_sslapitest.c_test_pha_key_update.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	test_pha_key_update, @function
test_pha_key_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	ebp, DWORD PTR privkey[rip]
	mov	ebx, DWORD PTR cert[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r13d, DWORD PTR TLS1_VERSION[rip]
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR 16[rsp], 0
	mov	QWORD PTR 24[rsp], 0
	mov	QWORD PTR 32[rsp], 0
	call	TLS_client_method@PLT
	mov	r12d, eax
	xor	eax, eax
	call	TLS_server_method@PLT
	push	rbp
	.cfi_def_cfa_offset 104
	xor	ecx, ecx
	mov	edx, r13d
	push	rbx
	.cfi_def_cfa_offset 112
	mov	esi, r12d
	mov	edi, eax
	lea	r9, 24[rsp]
	lea	r8, 32[rsp]
	call	create_ssl_ctx_pair@PLT
	mov	edi, eax
	call	TEST_true@PLT
	pop	rdx
	.cfi_def_cfa_offset 104
	pop	rcx
	.cfi_def_cfa_offset 96
	mov	r12d, eax
	test	eax, eax
	jne	.L40
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L41
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L40:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[rsp]
	mov	esi, DWORD PTR TLS1_3_VERSION[rip]
	call	SSL_CTX_set_min_proto_version@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L5
	mov	rdi, QWORD PTR 16[rsp]
	mov	esi, DWORD PTR TLS1_3_VERSION[rip]
	call	SSL_CTX_set_max_proto_version@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	jne	.L42
.L5:
	xor	r12d, r12d
.L4:
	mov	rdi, QWORD PTR 32[rsp]
	call	SSL_free@PLT
	mov	rdi, QWORD PTR 24[rsp]
	call	SSL_free@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	SSL_CTX_free@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	SSL_CTX_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L42:
	mov	rdi, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR TLS1_3_VERSION[rip]
	call	SSL_CTX_set_min_proto_version@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L5
	mov	rdi, QWORD PTR 8[rsp]
	mov	esi, DWORD PTR TLS1_3_VERSION[rip]
	call	SSL_CTX_set_max_proto_version@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L5
	mov	rdi, QWORD PTR 8[rsp]
	mov	esi, 1
	call	SSL_CTX_set_post_handshake_auth@PLT
	mov	rdi, QWORD PTR 16[rsp]
	xor	r9d, r9d
	xor	r8d, r8d
	mov	rsi, QWORD PTR 8[rsp]
	lea	rcx, 24[rsp]
	lea	rdx, 32[rsp]
	call	create_ssl_objects@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L5
	mov	rdi, QWORD PTR 32[rsp]
	mov	edx, DWORD PTR SSL_ERROR_NONE[rip]
	mov	rsi, QWORD PTR 24[rsp]
	call	create_ssl_connection@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L5
	mov	esi, DWORD PTR SSL_VERIFY_PEER[rip]
	mov	rdi, QWORD PTR 32[rsp]
	xor	edx, edx
	call	SSL_set_verify@PLT
	mov	rdi, QWORD PTR 32[rsp]
	call	SSL_verify_client_post_handshake@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L5
	mov	rdi, QWORD PTR 24[rsp]
	mov	esi, DWORD PTR SSL_KEY_UPDATE_NOT_REQUESTED[rip]
	call	SSL_key_update@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L5
	mov	rdi, QWORD PTR 32[rsp]
	call	SSL_do_handshake@PLT
	mov	esi, 1
	mov	edi, eax
	call	TEST_int_eq@PLT
	test	eax, eax
	je	.L5
	mov	rdi, QWORD PTR 32[rsp]
	mov	edx, DWORD PTR SSL_ERROR_NONE[rip]
	mov	rsi, QWORD PTR 24[rsp]
	call	create_ssl_connection@PLT
	mov	edi, eax
	call	TEST_true@PLT
	test	eax, eax
	je	.L5
	mov	rdi, QWORD PTR 24[rsp]
	mov	r12d, 1
	call	SSL_shutdown@PLT
	mov	rdi, QWORD PTR 32[rsp]
	call	SSL_shutdown@PLT
	jmp	.L4
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_pha_key_update, .-test_pha_key_update
	.comm	privkey,4,4
	.comm	cert,4,4
	.comm	TLS1_VERSION,4,4
	.comm	TLS1_3_VERSION,4,4
	.comm	SSL_VERIFY_PEER,4,4
	.comm	SSL_KEY_UPDATE_NOT_REQUESTED,4,4
	.comm	SSL_ERROR_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sslapitest.c_test_pha_key_update.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_pha_key_update, %function
test_pha_key_update:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, #0
	ldr	r3, .L42
	sub	sp, sp, #44
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	str	r4, [sp, #20]
	str	r4, [sp, #24]
	str	r4, [sp, #28]
	str	r4, [sp, #32]
	bl	TLS_server_method
	mov	r5, r0
	bl	TLS_client_method
	ldr	r2, .L42+4
	ldr	r3, .L42+8
	ldr	ip, [r2]
	ldr	r3, [r3]
	ldr	r2, .L42+12
	add	lr, sp, #20
	str	ip, [sp, #12]
	str	r3, [sp, #8]
	add	ip, sp, #24
	mov	r1, r0
	ldr	r2, [r2]
	mov	r0, r5
	mov	r3, r4
	stm	sp, {ip, lr}
	bl	create_ssl_ctx_pair
	bl	TEST_true
	subs	r5, r0, #0
	bne	.L39
.L1:
	ldr	r3, .L42
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L40
	mov	r0, r5
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, pc}
.L39:
	ldr	r5, .L42+16
	ldr	r0, [sp, #24]
	ldr	r1, [r5]
	bl	SSL_CTX_set_min_proto_version
	bl	TEST_true
	cmp	r0, r4
	beq	.L5
	ldr	r1, [r5]
	ldr	r0, [sp, #24]
	bl	SSL_CTX_set_max_proto_version
	bl	TEST_true
	cmp	r0, #0
	bne	.L41
.L5:
	mov	r5, #0
.L4:
	ldr	r0, [sp, #32]
	bl	SSL_free
	ldr	r0, [sp, #28]
	bl	SSL_free
	ldr	r0, [sp, #24]
	bl	SSL_CTX_free
	ldr	r0, [sp, #20]
	bl	SSL_CTX_free
	b	.L1
.L41:
	ldr	r1, [r5]
	ldr	r0, [sp, #20]
	bl	SSL_CTX_set_min_proto_version
	bl	TEST_true
	cmp	r0, #0
	beq	.L5
	ldr	r1, [r5]
	ldr	r0, [sp, #20]
	bl	SSL_CTX_set_max_proto_version
	bl	TEST_true
	cmp	r0, #0
	beq	.L5
	mov	r1, #1
	ldr	r0, [sp, #20]
	bl	SSL_CTX_set_post_handshake_auth
	ldr	r1, [sp, #20]
	add	r3, sp, #28
	add	r2, sp, #32
	ldr	r0, [sp, #24]
	str	r4, [sp, #4]
	str	r4, [sp]
	bl	create_ssl_objects
	bl	TEST_true
	cmp	r0, #0
	beq	.L5
	ldr	r5, .L42+20
	ldr	r1, [sp, #28]
	ldr	r2, [r5]
	ldr	r0, [sp, #32]
	bl	create_ssl_connection
	bl	TEST_true
	cmp	r0, #0
	beq	.L5
	ldr	r3, .L42+24
	mov	r2, r4
	ldr	r1, [r3]
	ldr	r0, [sp, #32]
	bl	SSL_set_verify
	ldr	r0, [sp, #32]
	bl	SSL_verify_client_post_handshake
	bl	TEST_true
	cmp	r0, #0
	beq	.L5
	ldr	r3, .L42+28
	ldr	r0, [sp, #28]
	ldr	r1, [r3]
	bl	SSL_key_update
	bl	TEST_true
	cmp	r0, #0
	beq	.L5
	ldr	r0, [sp, #32]
	bl	SSL_do_handshake
	mov	r1, #1
	bl	TEST_int_eq
	cmp	r0, #0
	beq	.L5
	ldr	r2, [r5]
	ldr	r1, [sp, #28]
	ldr	r0, [sp, #32]
	bl	create_ssl_connection
	bl	TEST_true
	cmp	r0, #0
	beq	.L5
	ldr	r0, [sp, #28]
	bl	SSL_shutdown
	ldr	r0, [sp, #32]
	bl	SSL_shutdown
	mov	r5, #1
	b	.L4
.L40:
	bl	__stack_chk_fail
.L43:
	.align	2
.L42:
	.word	.LC0
	.word	privkey
	.word	cert
	.word	TLS1_VERSION
	.word	TLS1_3_VERSION
	.word	SSL_ERROR_NONE
	.word	SSL_VERIFY_PEER
	.word	SSL_KEY_UPDATE_NOT_REQUESTED
	.size	test_pha_key_update, .-test_pha_key_update
	.comm	privkey,4,4
	.comm	cert,4,4
	.comm	TLS1_VERSION,4,4
	.comm	TLS1_3_VERSION,4,4
	.comm	SSL_VERIFY_PEER,4,4
	.comm	SSL_KEY_UPDATE_NOT_REQUESTED,4,4
	.comm	SSL_ERROR_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
