	.file	"extr_ltls.c__lctx_cert.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"need certfile"
.LC1:
	.string	"need private key"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"SSL_CTX_use_certificate_file error:%d"
	.align 8
.LC3:
	.string	"SSL_CTX_use_PrivateKey_file error:%d"
	.align 8
.LC4:
	.string	"SSL_CTX_check_private_key error:%d"
	.text
	.p2align 4
	.type	_lctx_cert, @function
_lctx_cert:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, 1
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	_check_sslctx@PLT
	mov	esi, 2
	mov	rdi, rbp
	mov	rbx, rax
	call	lua_tostring@PLT
	mov	esi, 3
	mov	rdi, rbp
	mov	r13, rax
	call	lua_tostring@PLT
	mov	r12, rax
	test	r13, r13
	je	.L18
.L2:
	test	r12, r12
	je	.L19
.L3:
	mov	edx, DWORD PTR SSL_FILETYPE_PEM[rip]
	mov	edi, DWORD PTR [rbx]
	mov	rsi, r13
	call	SSL_CTX_use_certificate_file@PLT
	mov	edx, eax
	cmp	eax, 1
	je	.L4
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	luaL_error@PLT
.L4:
	mov	edx, DWORD PTR SSL_FILETYPE_PEM[rip]
	mov	edi, DWORD PTR [rbx]
	mov	rsi, r12
	call	SSL_CTX_use_PrivateKey_file@PLT
	mov	edx, eax
	cmp	eax, 1
	je	.L5
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	luaL_error@PLT
.L5:
	mov	edi, DWORD PTR [rbx]
	call	SSL_CTX_check_private_key@PLT
	mov	edx, eax
	cmp	eax, 1
	je	.L6
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	luaL_error@PLT
.L6:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L19:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	luaL_error@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	luaL_error@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	_lctx_cert, .-_lctx_cert
	.comm	SSL_FILETYPE_PEM,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_ltls.c__lctx_cert.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"need certfile\000"
	.align	2
.LC1:
	.ascii	"need private key\000"
	.align	2
.LC2:
	.ascii	"SSL_CTX_use_certificate_file error:%d\000"
	.align	2
.LC3:
	.ascii	"SSL_CTX_use_PrivateKey_file error:%d\000"
	.align	2
.LC4:
	.ascii	"SSL_CTX_check_private_key error:%d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_lctx_cert, %function
_lctx_cert:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r1, #1
	mov	r4, r0
	bl	_check_sslctx
	mov	r1, #2
	mov	r5, r0
	mov	r0, r4
	bl	lua_tostring
	mov	r1, #3
	mov	r7, r0
	mov	r0, r4
	bl	lua_tostring
	cmp	r7, #0
	mov	r6, r0
	beq	.L18
.L2:
	cmp	r6, #0
	beq	.L19
.L3:
	ldr	r8, .L20
	mov	r1, r7
	ldr	r2, [r8]
	ldr	r0, [r5]
	bl	SSL_CTX_use_certificate_file
	cmp	r0, #1
	beq	.L4
	mov	r2, r0
	ldr	r1, .L20+4
	mov	r0, r4
	bl	luaL_error
.L4:
	mov	r1, r6
	ldr	r2, [r8]
	ldr	r0, [r5]
	bl	SSL_CTX_use_PrivateKey_file
	cmp	r0, #1
	beq	.L5
	mov	r2, r0
	ldr	r1, .L20+8
	mov	r0, r4
	bl	luaL_error
.L5:
	ldr	r0, [r5]
	bl	SSL_CTX_check_private_key
	cmp	r0, #1
	beq	.L6
	mov	r2, r0
	ldr	r1, .L20+12
	mov	r0, r4
	bl	luaL_error
.L6:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	mov	r0, r4
	ldr	r1, .L20+16
	bl	luaL_error
	b	.L3
.L18:
	mov	r0, r4
	ldr	r1, .L20+20
	bl	luaL_error
	b	.L2
.L21:
	.align	2
.L20:
	.word	SSL_FILETYPE_PEM
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC1
	.word	.LC0
	.size	_lctx_cert, .-_lctx_cert
	.comm	SSL_FILETYPE_PEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
