	.file	"extr_secure.c_sec_parse_public_sig.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"key signature doesn't match test key\n"
	.text
	.p2align 4
	.type	sec_parse_public_sig, @function
sec_parse_public_sig:
.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, rdx
	push	r13
	.cfi_offset 13, -40
	mov	r13, rcx
	push	r12
	.cfi_offset 12, -48
	mov	r12d, edi
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR SEC_MAX_MODULUS_SIZE[rip]
	mov	rbx, rsp
	mov	rdx, rax
	lea	rax, 15[0+rax*4]
	mov	rdi, rax
	mov	rcx, rax
	and	rdi, -4096
	and	rcx, -16
	sub	rbx, rdi
	mov	rdi, rbx
	cmp	rsp, rdi
	je	.L3
.L23:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rdi
	jne	.L23
.L3:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	jne	.L24
.L4:
	mov	rcx, rax
	mov	rdi, rsp
	and	rax, -4096
	mov	rbx, rsp
	sub	rdi, rax
	and	rcx, -16
	mov	rax, rdi
	cmp	rsp, rax
	je	.L6
.L25:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L25
.L6:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	jne	.L26
.L7:
	mov	eax, DWORD PTR True[rip]
	mov	r15, rsp
	cmp	esi, 72
	je	.L27
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rbx, QWORD PTR -56[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L28
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rcx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L27:
	sal	edx, 2
	xor	esi, esi
	mov	rdi, rbx
	call	memset@PLT
	mov	edx, 64
	mov	rsi, rbx
	mov	edi, r12d
	call	in_uint8a@PLT
	sub	rsp, 8
	push	QWORD PTR g_testkey[rip]
	mov	r9d, DWORD PTR SEC_MODULUS_SIZE[rip]
	push	64
	mov	r8, r15
	mov	rdx, r14
	mov	rdi, r13
	mov	ecx, DWORD PTR g_server_public_key_len[rip]
	mov	esi, DWORD PTR SEC_EXPONENT_SIZE[rip]
	push	rbx
	call	rdssl_sign_ok@PLT
	add	rsp, 32
	test	rax, rax
	jne	.L29
.L10:
	mov	edi, r12d
	call	s_check@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L29:
	lea	rdi, .LC0[rip]
	call	DEBUG_RDP5@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L26:
	or	QWORD PTR -8[rsp+rcx], 0
	jmp	.L7
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sec_parse_public_sig, .-sec_parse_public_sig
	.comm	g_testkey,8,8
	.comm	g_server_public_key_len,4,4
	.comm	True,4,4
	.comm	SEC_MODULUS_SIZE,4,4
	.comm	SEC_MAX_MODULUS_SIZE,4,4
	.comm	SEC_EXPONENT_SIZE,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_secure.c_sec_parse_public_sig.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"key signature doesn't match test key\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sec_parse_public_sig, %function
sec_parse_public_sig:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #32
	ldr	ip, .L13
	cmp	r1, #72
	ldr	ip, [ip]
	mov	r5, r3
	lsl	ip, ip, #2
	add	r1, ip, #7
	bic	r1, r1, #7
	ldr	r3, .L13+4
	sub	sp, sp, r1
	add	r7, sp, #24
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	sub	sp, sp, r1
	beq	.L2
	ldr	r3, .L13+8
	ldr	r0, [r3]
.L1:
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L2:
	mov	r4, r0
	mov	r6, r2
	mov	r1, #0
	mov	r2, ip
	mov	r0, r7
	bl	memset
	mov	r2, #64
	mov	r1, r7
	mov	r0, r4
	bl	in_uint8a
	mov	ip, #64
	ldr	r2, .L13+12
	ldr	r3, .L13+16
	ldr	r9, [r2]
	ldr	lr, [r3]
	ldr	r1, .L13+20
	ldr	r3, .L13+24
	add	r8, sp, #24
	str	r7, [sp, #8]
	str	r8, [sp]
	str	r9, [sp, #16]
	str	lr, [sp, #4]
	str	ip, [sp, #12]
	mov	r2, r6
	mov	r0, r5
	ldr	r3, [r3]
	ldr	r1, [r1]
	bl	rdssl_sign_ok
	cmp	r0, #0
	bne	.L12
.L4:
	mov	r0, r4
	bl	s_check
	b	.L1
.L12:
	ldr	r0, .L13+28
	bl	DEBUG_RDP5
	b	.L4
.L11:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	SEC_MAX_MODULUS_SIZE
	.word	.LC1
	.word	True
	.word	g_testkey
	.word	SEC_MODULUS_SIZE
	.word	SEC_EXPONENT_SIZE
	.word	g_server_public_key_len
	.word	.LC0
	.size	sec_parse_public_sig, .-sec_parse_public_sig
	.comm	g_testkey,4,4
	.comm	g_server_public_key_len,4,4
	.comm	True,4,4
	.comm	SEC_MODULUS_SIZE,4,4
	.comm	SEC_MAX_MODULUS_SIZE,4,4
	.comm	SEC_EXPONENT_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
