	.file	"extr_test_rsa.c_test_cert.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"parse cert"
.LC1:
	.string	"check cert pubkey"
.LC2:
	.string	""
.LC3:
	.string	"RSA PK operation"
	.text
	.p2align 4
	.type	test_cert, @function
test_cert:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14, rsi
	push	r13
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	.cfi_offset 12, -48
	mov	r12, rdx
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	lea	rax, 15[rdx]
	mov	rcx, rsp
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L11:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L11
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L12
.L4:
	mov	rsi, r12
	lea	r15, -44[rbp]
	mov	rdi, rsp
	call	bzero@PLT
	mov	rdi, r15
	call	mbedtls_x509_crt_init@PLT
	mov	rdi, r13
	call	strlen@PLT
	mov	rsi, r13
	mov	rdi, r15
	lea	rdx, 1[rax]
	call	mbedtls_x509_crt_parse@PLT
	lea	rdx, .LC0[rip]
	xor	edi, edi
	neg	eax
	mov	esi, eax
	call	TEST_ASSERT_EQUAL_HEX16_MESSAGE@PLT
	mov	edi, DWORD PTR -44[rbp]
	call	mbedtls_pk_rsa@PLT
	mov	r13, rax
	mov	rdi, rax
	call	TEST_ASSERT_NOT_NULL@PLT
	mov	rdi, r13
	call	mbedtls_rsa_check_pubkey@PLT
	xor	edi, edi
	lea	rdx, .LC1[rip]
	neg	eax
	mov	esi, eax
	call	TEST_ASSERT_EQUAL_HEX16_MESSAGE@PLT
	mov	rcx, r15
	mov	esi, r12d
	mov	rdi, rsp
	lea	rdx, .LC2[rip]
	call	mbedtls_x509_crt_info@PLT
	mov	rdi, rsp
	call	puts@PLT
	mov	esi, DWORD PTR pki_input[rip]
	mov	rdx, rsp
	mov	rdi, r13
	call	mbedtls_rsa_public@PLT
	xor	edi, edi
	lea	rdx, .LC3[rip]
	neg	eax
	mov	esi, eax
	call	TEST_ASSERT_EQUAL_HEX16_MESSAGE@PLT
	mov	rdx, r12
	mov	rsi, rsp
	mov	rdi, r14
	call	TEST_ASSERT_EQUAL_HEX8_ARRAY@PLT
	mov	rdi, r15
	call	mbedtls_x509_crt_free@PLT
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	lea	rsp, -32[rbp]
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_cert, .-test_cert
	.comm	pki_input,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_test_rsa.c_test_cert.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"parse cert\000"
	.align	2
.LC1:
	.ascii	"check cert pubkey\000"
	.align	2
.LC2:
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"RSA PK operation\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_cert, %function
test_cert:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #12
	mov	r5, r0
	add	r3, r2, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L6
	mov	r6, r1
	mov	r0, sp
	mov	r1, r2
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r4, r2
	bl	bzero
	sub	r0, fp, #28
	bl	mbedtls_x509_crt_init
	mov	r0, r5
	bl	strlen
	mov	r1, r5
	add	r2, r0, #1
	sub	r0, fp, #28
	bl	mbedtls_x509_crt_parse
	ldr	r2, .L6+4
	rsb	r1, r0, #0
	mov	r0, #0
	bl	TEST_ASSERT_EQUAL_HEX16_MESSAGE
	ldr	r0, [fp, #-28]
	bl	mbedtls_pk_rsa
	mov	r5, r0
	bl	TEST_ASSERT_NOT_NULL
	mov	r0, r5
	bl	mbedtls_rsa_check_pubkey
	ldr	r2, .L6+8
	rsb	r1, r0, #0
	mov	r0, #0
	bl	TEST_ASSERT_EQUAL_HEX16_MESSAGE
	mov	r1, r4
	ldr	r2, .L6+12
	sub	r3, fp, #28
	mov	r0, sp
	bl	mbedtls_x509_crt_info
	mov	r0, sp
	bl	puts
	ldr	r3, .L6+16
	mov	r2, sp
	ldr	r1, [r3]
	mov	r0, r5
	bl	mbedtls_rsa_public
	ldr	r2, .L6+20
	rsb	r1, r0, #0
	mov	r0, #0
	bl	TEST_ASSERT_EQUAL_HEX16_MESSAGE
	mov	r2, r4
	mov	r1, sp
	mov	r0, r6
	bl	TEST_ASSERT_EQUAL_HEX8_ARRAY
	sub	r0, fp, #28
	bl	mbedtls_x509_crt_free
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	pki_input
	.word	.LC3
	.size	test_cert, .-test_cert
	.comm	pki_input,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
