	.file	"extr_ssl_pm.c_ssl_pm_reload_crt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"mbedtls_ssl_conf_own_cert() return -0x%x"
	.text
	.p2align 4
	.type	ssl_pm_reload_crt, @function
ssl_pm_reload_crt:
.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, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 16[rdi]
	mov	rbp, QWORD PTR 24[rdi]
	mov	esi, DWORD PTR MBEDTLS_SSL_VERIFY_REQUIRED[rip]
	mov	r13, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rdi]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	r12, QWORD PTR [rdx]
	mov	rbx, QWORD PTR [rax]
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR SSL_VERIFY_FAIL_IF_NO_PEER_CERT[rip], eax
	jne	.L3
	mov	esi, DWORD PTR MBEDTLS_SSL_VERIFY_OPTIONAL[rip]
	test	DWORD PTR SSL_VERIFY_PEER[rip], eax
	je	.L32
.L3:
	mov	rdi, rbp
	call	mbedtls_ssl_conf_authmode@PLT
	mov	rsi, QWORD PTR 8[r13]
	test	rsi, rsi
	jne	.L29
	mov	rsi, QWORD PTR 0[r13]
	test	rsi, rsi
	jne	.L29
.L7:
	mov	rsi, QWORD PTR 8[rbx]
	test	rsi, rsi
	je	.L8
	mov	rdx, QWORD PTR 8[r12]
	test	rdx, rdx
	jne	.L30
.L8:
	mov	rsi, QWORD PTR [rbx]
	test	rsi, rsi
	jne	.L10
.L12:
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L29:
	.cfi_restore_state
	xor	edx, edx
	mov	rdi, rbp
	call	mbedtls_ssl_conf_ca_chain@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdx, QWORD PTR [r12]
	test	rdx, rdx
	je	.L12
.L30:
	mov	rdi, rbp
	call	mbedtls_ssl_conf_own_cert@PLT
	test	eax, eax
	je	.L12
	neg	eax
	mov	edi, DWORD PTR SSL_PLATFORM_ERROR_LEVEL[rip]
	lea	rsi, .LC0[rip]
	mov	edx, eax
	call	SSL_DEBUG@PLT
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	mov	esi, DWORD PTR MBEDTLS_SSL_VERIFY_UNSET[rip]
	test	DWORD PTR SSL_VERIFY_CLIENT_ONCE[rip], eax
	cmove	esi, DWORD PTR MBEDTLS_SSL_VERIFY_NONE[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	ssl_pm_reload_crt, .-ssl_pm_reload_crt
	.comm	SSL_VERIFY_PEER,4,4
	.comm	SSL_VERIFY_FAIL_IF_NO_PEER_CERT,4,4
	.comm	SSL_VERIFY_CLIENT_ONCE,4,4
	.comm	SSL_PLATFORM_ERROR_LEVEL,4,4
	.comm	MBEDTLS_SSL_VERIFY_UNSET,4,4
	.comm	MBEDTLS_SSL_VERIFY_REQUIRED,4,4
	.comm	MBEDTLS_SSL_VERIFY_OPTIONAL,4,4
	.comm	MBEDTLS_SSL_VERIFY_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_ssl_pm.c_ssl_pm_reload_crt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mbedtls_ssl_conf_own_cert() return -0x%x\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ssl_pm_reload_crt, %function
ssl_pm_reload_crt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r1, .L33
	push	{r4, r5, r6, r7, r8, lr}
	ldm	r0, {r2, r3}
	ldr	lr, [r1]
	ldm	r3, {r1, ip}
	ldr	r3, [r0, #8]
	tst	r2, lr
	ldr	r7, [ip]
	ldr	r5, [r1]
	ldr	r6, [r3]
	ldr	r4, [r0, #12]
	beq	.L2
	ldr	r3, .L33+4
	ldr	r1, [r3]
.L3:
	mov	r0, r4
	bl	mbedtls_ssl_conf_authmode
	ldr	r2, [r6, #4]
	cmp	r2, #0
	bne	.L31
	ldr	r1, [r6]
	cmp	r1, #0
	bne	.L32
.L7:
	ldr	r1, [r5, #4]
	cmp	r1, #0
	beq	.L8
	ldr	r2, [r7, #4]
	cmp	r2, #0
	bne	.L29
.L8:
	ldr	r1, [r5]
	cmp	r1, #0
	beq	.L12
	ldr	r2, [r7]
	cmp	r2, #0
	bne	.L29
.L12:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L32:
	mov	r0, r4
	bl	mbedtls_ssl_conf_ca_chain
	b	.L7
.L29:
	mov	r0, r4
	bl	mbedtls_ssl_conf_own_cert
	cmp	r0, #0
	beq	.L12
	ldr	r3, .L33+8
	rsb	r2, r0, #0
	ldr	r1, .L33+12
	ldr	r0, [r3]
	bl	SSL_DEBUG
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L33+16
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L4
	ldr	r3, .L33+20
	ldr	r1, [r3]
	b	.L3
.L31:
	mov	r1, r2
	mov	r0, r4
	mov	r2, #0
	bl	mbedtls_ssl_conf_ca_chain
	b	.L7
.L4:
	ldr	r3, .L33+24
	ldr	r3, [r3]
	tst	r2, r3
	ldrne	r3, .L33+28
	ldreq	r3, .L33+32
	ldr	r1, [r3]
	b	.L3
.L34:
	.align	2
.L33:
	.word	SSL_VERIFY_FAIL_IF_NO_PEER_CERT
	.word	MBEDTLS_SSL_VERIFY_REQUIRED
	.word	SSL_PLATFORM_ERROR_LEVEL
	.word	.LC0
	.word	SSL_VERIFY_PEER
	.word	MBEDTLS_SSL_VERIFY_OPTIONAL
	.word	SSL_VERIFY_CLIENT_ONCE
	.word	MBEDTLS_SSL_VERIFY_UNSET
	.word	MBEDTLS_SSL_VERIFY_NONE
	.size	ssl_pm_reload_crt, .-ssl_pm_reload_crt
	.comm	SSL_VERIFY_PEER,4,4
	.comm	SSL_VERIFY_FAIL_IF_NO_PEER_CERT,4,4
	.comm	SSL_VERIFY_CLIENT_ONCE,4,4
	.comm	SSL_PLATFORM_ERROR_LEVEL,4,4
	.comm	MBEDTLS_SSL_VERIFY_UNSET,4,4
	.comm	MBEDTLS_SSL_VERIFY_REQUIRED,4,4
	.comm	MBEDTLS_SSL_VERIFY_OPTIONAL,4,4
	.comm	MBEDTLS_SSL_VERIFY_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
