	.file	"extr_tls_openssl.c_openssl_tls_fail_event.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	openssl_tls_fail_event, @function
openssl_tls_fail_event:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rbx, QWORD PTR [rdi]
	mov	DWORD PTR 12[rsp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR 8[rbx], 0
	je	.L1
	mov	rdi, rsi
	lea	r12, 16[rsp]
	mov	r14d, ecx
	mov	r15, r8
	mov	rbp, r9
	call	get_x509_cert@PLT
	xor	esi, esi
	mov	edx, 32
	mov	rdi, r12
	mov	r13, rax
	call	os_memset@PLT
	mov	eax, DWORD PTR 128[rsp]
	cmp	DWORD PTR TLS_FAIL_UNSPECIFIED[rip], eax
	je	.L9
.L5:
	mov	edi, DWORD PTR [rbx]
	mov	DWORD PTR 16[rsp], eax
	mov	rdx, r12
	mov	DWORD PTR 20[rsp], r14d
	mov	esi, DWORD PTR TLS_CERT_CHAIN_FAILURE[rip]
	mov	QWORD PTR 24[rsp], r15
	mov	QWORD PTR 32[rsp], rbp
	mov	QWORD PTR 40[rsp], r13
	call	[QWORD PTR 8[rbx]]
	mov	rdi, r13
	call	wpabuf_free@PLT
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[rsp]
	call	openssl_tls_fail_reason@PLT
	jmp	.L5
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	openssl_tls_fail_event, .-openssl_tls_fail_event
	.comm	TLS_FAIL_UNSPECIFIED,4,4
	.comm	TLS_CERT_CHAIN_FAILURE,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_tls_openssl.c_openssl_tls_fail_event.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	openssl_tls_fail_event, %function
openssl_tls_fail_event:
	@ args = 12, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r6, [r0]
	mov	r0, r1
	ldr	r1, [r6, #4]
	mov	r4, r3
	ldr	r3, .L11
	sub	sp, sp, #28
	cmp	r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r9, [sp, #56]
	ldr	r8, [sp, #60]
	beq	.L1
	mov	r7, r2
	bl	get_x509_cert
	mov	r2, #20
	mov	r5, r0
	mov	r1, #0
	mov	r0, sp
	bl	os_memset
	ldr	r3, .L11+4
	ldr	r2, [sp, #64]
	ldr	r3, [r3]
	cmp	r3, r2
	ldrne	r2, [sp, #64]
	beq	.L9
.L5:
	ldr	r3, .L11+8
	stm	sp, {r2, r4, r9}
	ldr	r1, [r3]
	mov	r2, sp
	ldm	r6, {r0, r3}
	str	r8, [sp, #12]
	str	r5, [sp, #16]
	blx	r3
	mov	r0, r5
	bl	wpabuf_free
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L9:
	mov	r0, r7
	bl	openssl_tls_fail_reason
	mov	r2, r0
	b	.L5
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	TLS_FAIL_UNSPECIFIED
	.word	TLS_CERT_CHAIN_FAILURE
	.size	openssl_tls_fail_event, .-openssl_tls_fail_event
	.comm	TLS_FAIL_UNSPECIFIED,4,4
	.comm	TLS_CERT_CHAIN_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
