	.file	"extr_security.c_sec_read_msg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.text
	.p2align 4
	.globl	sec_read_msg
	.type	sec_read_msg, @function
sec_read_msg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	strlen@PLT
	mov	edi, eax
	call	malloc@PLT
	lea	rdi, 4[r12]
	mov	rsi, rax
	mov	rbp, rax
	call	base64_decode@PLT
	mov	edi, DWORD PTR app_data[rip]
	mov	ecx, r13d
	mov	rsi, rbp
	mov	edx, eax
	mov	rax, QWORD PTR mech[rip]
	call	[QWORD PTR [rax]]
	test	eax, eax
	js	.L7
	movsx	rbx, eax
	mov	BYTE PTR 0[rbp+rbx], 0
	cmp	BYTE PTR 3[rbp], 45
	jne	.L3
	mov	DWORD PTR 4[rsp], 0
.L4:
	lea	rax, -1[rbp+rbx]
	cmp	BYTE PTR [rax], 10
	jne	.L5
	mov	BYTE PTR [rax], 0
.L5:
	mov	rsi, rbp
	mov	rdi, r12
	call	strcpy@PLT
	mov	rdi, rbp
	call	free@PLT
	mov	eax, DWORD PTR 4[rsp]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L3:
	.cfi_restore_state
	lea	rdx, 4[rsp]
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	sscanf@PLT
	jmp	.L4
.L7:
	mov	eax, -1
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sec_read_msg, .-sec_read_msg
	.comm	mech,8,8
	.comm	app_data,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_security.c_sec_read_msg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sec_read_msg
	.syntax unified
	.arm
	.fpu softvfp
	.type	sec_read_msg, %function
sec_read_msg:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L11
	sub	sp, sp, #8
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r6, r0
	bl	strlen
	bl	malloc
	mov	r4, r0
	add	r0, r6, #4
	mov	r1, r4
	bl	base64_decode
	ldr	r3, .L11+4
	ldr	ip, .L11+8
	ldr	lr, [r3]
	mov	r2, r0
	mov	r3, r5
	mov	r1, r4
	ldr	r5, [lr]
	ldr	r0, [ip]
	blx	r5
	subs	r5, r0, #0
	blt	.L7
	mov	r3, #0
	strb	r3, [r4, r5]
	ldrb	r2, [r4, #3]	@ zero_extendqisi2
	cmp	r2, #45
	streq	r3, [sp]
	beq	.L4
	mov	r2, sp
	mov	r0, r4
	ldr	r1, .L11+12
	bl	sscanf
.L4:
	sub	r5, r5, #1
	ldrb	r3, [r4, r5]	@ zero_extendqisi2
	mov	r1, r4
	cmp	r3, #10
	moveq	r3, #0
	mov	r0, r6
	strbeq	r3, [r4, r5]
	bl	strcpy
	mov	r0, r4
	bl	free
	ldr	r0, [sp]
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L7:
	mvn	r0, #0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	mech
	.word	app_data
	.word	.LC0
	.size	sec_read_msg, .-sec_read_msg
	.comm	mech,4,4
	.comm	app_data,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
