	.file	"extr_esp_tls_mbedtls.c_esp_mbedtls_init_global_ca_store.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"global_cacert not allocated"
	.text
	.p2align 4
	.globl	esp_mbedtls_init_global_ca_store
	.type	esp_mbedtls_init_global_ca_store, @function
esp_mbedtls_init_global_ca_store:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR global_cacert[rip], 0
	je	.L11
	mov	eax, DWORD PTR ESP_OK[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, 1
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	esi, 4
	call	calloc@PLT
	mov	QWORD PTR global_cacert[rip], rax
	mov	rdi, rax
	test	rax, rax
	je	.L12
	call	mbedtls_x509_crt_init@PLT
	mov	eax, DWORD PTR ESP_OK[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR TAG[rip]
	lea	rsi, .LC0[rip]
	call	ESP_LOGE@PLT
	mov	eax, DWORD PTR ESP_ERR_NO_MEM[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	esp_mbedtls_init_global_ca_store, .-esp_mbedtls_init_global_ca_store
	.comm	global_cacert,8,8
	.comm	TAG,4,4
	.comm	ESP_OK,4,4
	.comm	ESP_ERR_NO_MEM,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_esp_tls_mbedtls.c_esp_mbedtls_init_global_ca_store.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"global_cacert not allocated\000"
	.text
	.align	2
	.global	esp_mbedtls_init_global_ca_store
	.syntax unified
	.arm
	.fpu softvfp
	.type	esp_mbedtls_init_global_ca_store, %function
esp_mbedtls_init_global_ca_store:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r4, .L9
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L7
.L2:
	ldr	r3, .L9+4
	ldr	r0, [r3]
	pop	{r4, pc}
.L7:
	mov	r1, #4
	mov	r0, #1
	bl	calloc
	cmp	r0, #0
	str	r0, [r4]
	beq	.L8
	bl	mbedtls_x509_crt_init
	b	.L2
.L8:
	ldr	r3, .L9+8
	ldr	r1, .L9+12
	ldr	r0, [r3]
	bl	ESP_LOGE
	ldr	r3, .L9+16
	ldr	r0, [r3]
	pop	{r4, pc}
.L10:
	.align	2
.L9:
	.word	global_cacert
	.word	ESP_OK
	.word	TAG
	.word	.LC0
	.word	ESP_ERR_NO_MEM
	.size	esp_mbedtls_init_global_ca_store, .-esp_mbedtls_init_global_ca_store
	.comm	global_cacert,4,4
	.comm	TAG,4,4
	.comm	ESP_OK,4,4
	.comm	ESP_ERR_NO_MEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
