	.file	"extr_ssl_cli.c_ssl_write_certificate_verify.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"=> write certificate verify"
.LC1:
	.string	"mbedtls_ssl_derive_keys"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"<= skip write certificate verify"
	.align 8
.LC3:
	.string	"got no private key for certificate"
	.section	.rodata.str1.1
.LC4:
	.string	"should never happen"
	.text
	.p2align 4
	.type	ssl_write_certificate_verify, @function
ssl_write_certificate_verify:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rsi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 64
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 48[rdi]
	mov	edi, 2
	mov	rbx, QWORD PTR [rax]
	call	MBEDTLS_SSL_DEBUG_MSG@PLT
	mov	rdi, rbp
	call	mbedtls_ssl_derive_keys@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L15
	mov	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR MBEDTLS_KEY_EXCHANGE_PSK[rip]
	je	.L7
	cmp	rax, QWORD PTR MBEDTLS_KEY_EXCHANGE_RSA_PSK[rip]
	je	.L7
	cmp	rax, QWORD PTR MBEDTLS_KEY_EXCHANGE_ECDHE_PSK[rip]
	je	.L7
	cmp	rax, QWORD PTR MBEDTLS_KEY_EXCHANGE_DHE_PSK[rip]
	je	.L7
	cmp	rax, QWORD PTR MBEDTLS_KEY_EXCHANGE_ECJPAKE[rip]
	je	.L7
	cmp	QWORD PTR 0[rbp], 0
	je	.L7
	mov	rdi, rbp
	call	mbedtls_ssl_own_cert@PLT
	test	rax, rax
	je	.L7
	mov	rdi, rbp
	call	mbedtls_ssl_own_key@PLT
	test	rax, rax
	je	.L16
	mov	rax, QWORD PTR 56[rbp]
	mov	rsi, rsp
	mov	rdi, rbp
	call	[QWORD PTR [rax]]
	lea	rsi, .LC4[rip]
	mov	edi, 1
	call	MBEDTLS_SSL_DEBUG_MSG@PLT
	mov	r12d, DWORD PTR MBEDTLS_ERR_SSL_INTERNAL_ERROR[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	lea	rsi, .LC2[rip]
	mov	edi, 2
	call	MBEDTLS_SSL_DEBUG_MSG@PLT
	add	DWORD PTR 28[rbp], 1
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edx, eax
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	MBEDTLS_SSL_DEBUG_RET@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rsi, .LC3[rip]
	mov	edi, 1
	call	MBEDTLS_SSL_DEBUG_MSG@PLT
	mov	r12d, DWORD PTR MBEDTLS_ERR_SSL_PRIVATE_KEY_REQUIRED[rip]
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ssl_write_certificate_verify, .-ssl_write_certificate_verify
	.comm	MBEDTLS_SSL_MSG_HANDSHAKE,4,4
	.comm	MBEDTLS_SSL_MINOR_VERSION_3,8,8
	.comm	MBEDTLS_SSL_HS_CERTIFICATE_VERIFY,1,1
	.comm	MBEDTLS_SSL_HASH_SHA384,1,1
	.comm	MBEDTLS_SSL_HASH_SHA256,1,1
	.comm	MBEDTLS_PK_ECDSA,4,4
	.comm	MBEDTLS_MD_SHA384,8,8
	.comm	MBEDTLS_MD_SHA256,8,8
	.comm	MBEDTLS_MD_SHA1,8,8
	.comm	MBEDTLS_MD_NONE,8,8
	.comm	MBEDTLS_KEY_EXCHANGE_RSA_PSK,8,8
	.comm	MBEDTLS_KEY_EXCHANGE_PSK,8,8
	.comm	MBEDTLS_KEY_EXCHANGE_ECJPAKE,8,8
	.comm	MBEDTLS_KEY_EXCHANGE_ECDHE_PSK,8,8
	.comm	MBEDTLS_KEY_EXCHANGE_DHE_PSK,8,8
	.comm	MBEDTLS_ERR_SSL_PRIVATE_KEY_REQUIRED,4,4
	.comm	MBEDTLS_ERR_SSL_INTERNAL_ERROR,4,4
	.comm	MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE,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_ssl_cli.c_ssl_write_certificate_verify.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"=> write certificate verify\000"
	.align	2
.LC1:
	.ascii	"mbedtls_ssl_derive_keys\000"
	.align	2
.LC2:
	.ascii	"<= skip write certificate verify\000"
	.align	2
.LC3:
	.ascii	"got no private key for certificate\000"
	.align	2
.LC4:
	.ascii	"should never happen\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_write_certificate_verify, %function
ssl_write_certificate_verify:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, [r0, #28]
	ldr	r2, .L18
	sub	sp, sp, #56
	ldr	r1, .L18+4
	mov	r0, #2
	ldr	r2, [r2]
	str	r2, [sp, #52]
	mov	r2,#0
	ldr	r6, [r3]
	bl	MBEDTLS_SSL_DEBUG_MSG
	mov	r0, r4
	bl	mbedtls_ssl_derive_keys
	subs	r5, r0, #0
	bne	.L15
	ldr	r2, .L18+8
	ldr	r3, [r6]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L7
	ldr	r2, .L18+12
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L7
	ldr	r2, .L18+16
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L7
	ldr	r2, .L18+20
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L7
	ldr	r2, .L18+24
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L7
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L7
	mov	r0, r4
	bl	mbedtls_ssl_own_cert
	cmp	r0, #0
	beq	.L7
	mov	r0, r4
	bl	mbedtls_ssl_own_key
	cmp	r0, #0
	beq	.L16
	ldr	r3, [r4, #32]
	add	r1, sp, #4
	ldr	r3, [r3]
	mov	r0, r4
	blx	r3
	mov	r0, #1
	ldr	r1, .L18+28
	bl	MBEDTLS_SSL_DEBUG_MSG
	ldr	r3, .L18+32
	ldr	r5, [r3]
	b	.L1
.L7:
	mov	r0, #2
	ldr	r1, .L18+36
	bl	MBEDTLS_SSL_DEBUG_MSG
	ldr	r3, [r4, #16]
	add	r3, r3, #1
	str	r3, [r4, #16]
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r5
	add	sp, sp, #56
	@ sp needed
	pop	{r4, r5, r6, pc}
.L15:
	mov	r2, r5
	ldr	r1, .L18+40
	mov	r0, #1
	bl	MBEDTLS_SSL_DEBUG_RET
	b	.L1
.L16:
	mov	r0, #1
	ldr	r1, .L18+44
	bl	MBEDTLS_SSL_DEBUG_MSG
	ldr	r3, .L18+48
	ldr	r5, [r3]
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC5
	.word	.LC0
	.word	MBEDTLS_KEY_EXCHANGE_PSK
	.word	MBEDTLS_KEY_EXCHANGE_RSA_PSK
	.word	MBEDTLS_KEY_EXCHANGE_ECDHE_PSK
	.word	MBEDTLS_KEY_EXCHANGE_DHE_PSK
	.word	MBEDTLS_KEY_EXCHANGE_ECJPAKE
	.word	.LC4
	.word	MBEDTLS_ERR_SSL_INTERNAL_ERROR
	.word	.LC2
	.word	.LC1
	.word	.LC3
	.word	MBEDTLS_ERR_SSL_PRIVATE_KEY_REQUIRED
	.size	ssl_write_certificate_verify, .-ssl_write_certificate_verify
	.comm	MBEDTLS_SSL_MSG_HANDSHAKE,4,4
	.comm	MBEDTLS_SSL_MINOR_VERSION_3,4,4
	.comm	MBEDTLS_SSL_HS_CERTIFICATE_VERIFY,1,1
	.comm	MBEDTLS_SSL_HASH_SHA384,1,1
	.comm	MBEDTLS_SSL_HASH_SHA256,1,1
	.comm	MBEDTLS_PK_ECDSA,4,4
	.comm	MBEDTLS_MD_SHA384,4,4
	.comm	MBEDTLS_MD_SHA256,4,4
	.comm	MBEDTLS_MD_SHA1,4,4
	.comm	MBEDTLS_MD_NONE,4,4
	.comm	MBEDTLS_KEY_EXCHANGE_RSA_PSK,4,4
	.comm	MBEDTLS_KEY_EXCHANGE_PSK,4,4
	.comm	MBEDTLS_KEY_EXCHANGE_ECJPAKE,4,4
	.comm	MBEDTLS_KEY_EXCHANGE_ECDHE_PSK,4,4
	.comm	MBEDTLS_KEY_EXCHANGE_DHE_PSK,4,4
	.comm	MBEDTLS_ERR_SSL_PRIVATE_KEY_REQUIRED,4,4
	.comm	MBEDTLS_ERR_SSL_INTERNAL_ERROR,4,4
	.comm	MBEDTLS_ERR_SSL_FEATURE_UNAVAILABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
