	.file	"1139534.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	""
	.text
	.globl	scheck
	.type	scheck, @function
scheck:
.LFB6:
	.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
	push	r13
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	lea	r13, .LC0[rip]
	cmp	QWORD PTR -72[rbp], 0
	je	.L2
	cmp	QWORD PTR -80[rbp], 0
	jne	.L3
.L2:
	mov	rax, r13
	jmp	.L20
.L3:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 2
	add	rax, rax
	mov	rdi, rax
	mov	eax, 0
	call	imalloc@PLT
	mov	r14, rax
	test	r14, r14
	jne	.L5
	mov	rax, r13
	jmp	.L20
.L5:
	mov	rbx, QWORD PTR -80[rbp]
	mov	r12, r14
	jmp	.L6
.L18:
	cmp	r15d, 37
	je	.L7
	jmp	.L6
.L7:
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 37
	jne	.L8
	mov	rdx, rbx
	lea	rbx, 1[rdx]
	mov	rax, r12
	lea	r12, 1[rax]
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	jmp	.L6
.L8:
	mov	rax, r12
	lea	r12, 1[rax]
	mov	BYTE PTR [rax], 42
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 42
	jne	.L10
	add	rbx, 1
	jmp	.L10
.L12:
	mov	rdx, rbx
	lea	rbx, 1[rdx]
	mov	rax, r12
	lea	r12, 1[rax]
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
.L10:
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	js	.L11
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rbx]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L12
.L11:
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 108
	je	.L13
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 104
	jne	.L14
.L13:
	mov	rdx, rbx
	lea	rbx, 1[rdx]
	mov	rax, r12
	lea	r12, 1[rax]
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	jmp	.L15
.L14:
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 91
	jne	.L15
.L16:
	mov	rdx, rbx
	lea	rbx, 1[rdx]
	mov	rax, r12
	lea	r12, 1[rax]
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	je	.L15
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 93
	jne	.L16
.L15:
	mov	rdx, rbx
	lea	rbx, 1[rdx]
	mov	rax, r12
	lea	r12, 1[rax]
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L22
.L6:
	mov	rax, rbx
	lea	rbx, 1[rax]
	movzx	eax, BYTE PTR [rax]
	movsx	r15d, al
	mov	rax, r12
	lea	r12, 1[rax]
	mov	edx, r15d
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L18
	jmp	.L17
.L22:
	nop
.L17:
	lea	rax, -1[r12]
	mov	BYTE PTR [rax], 37
	mov	rax, r12
	lea	r12, 1[rax]
	mov	BYTE PTR [rax], 99
	mov	BYTE PTR [r12], 0
	lea	rdx, -57[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, r14
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	je	.L19
	mov	r13, QWORD PTR -80[rbp]
.L19:
	mov	rdi, r14
	call	free@PLT
	mov	rax, r13
.L20:
	mov	rcx, QWORD PTR -56[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	add	rsp, 40
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	scheck, .-scheck
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"1139534.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	scheck
	.syntax unified
	.arm
	.fpu softvfp
	.type	scheck, %function
scheck:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #20
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	ldr	r7, .L23+4
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L3
.L2:
	mov	r3, r7
	b	.L20
.L3:
	ldr	r0, [fp, #-44]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #2
	lsl	r3, r3, #1
	mov	r0, r3
	bl	imalloc
	mov	r6, r0
	cmp	r6, #0
	bne	.L5
	mov	r3, r7
	b	.L20
.L5:
	ldr	r4, [fp, #-44]
	mov	r5, r6
	b	.L6
.L18:
	cmp	r8, #37
	beq	.L7
	b	.L6
.L7:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #37
	bne	.L8
	mov	r2, r4
	add	r4, r2, #1
	mov	r3, r5
	add	r5, r3, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	b	.L6
.L8:
	mov	r3, r5
	add	r5, r3, #1
	mov	r2, #42
	strb	r2, [r3]
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L10
	add	r4, r4, #1
	b	.L10
.L12:
	mov	r2, r4
	add	r4, r2, #1
	mov	r3, r5
	add	r5, r3, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
.L10:
	ldrb	r3, [r4]	@ zero_extendqisi2
	bic	r3, r3, #127
	cmp	r3, #0
	bne	.L11
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [r4]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L12
.L11:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #108
	beq	.L13
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #104
	bne	.L14
.L13:
	mov	r2, r4
	add	r4, r2, #1
	mov	r3, r5
	add	r5, r3, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	b	.L15
.L14:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #91
	bne	.L15
.L16:
	mov	r2, r4
	add	r4, r2, #1
	mov	r3, r5
	add	r5, r3, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L15
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #93
	bne	.L16
.L15:
	mov	r2, r4
	add	r4, r2, #1
	mov	r3, r5
	add	r5, r3, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L22
.L6:
	mov	r3, r4
	add	r4, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r8, r3
	mov	r3, r5
	add	r5, r3, #1
	and	r2, r8, #255
	strb	r2, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L18
	b	.L17
.L22:
	nop
.L17:
	sub	r3, r5, #1
	mov	r2, #37
	strb	r2, [r3]
	mov	r3, r5
	add	r5, r3, #1
	mov	r2, #99
	strb	r2, [r3]
	mov	r3, #0
	strb	r3, [r5]
	sub	r3, fp, #33
	mov	r2, r3
	mov	r1, r6
	ldr	r0, [fp, #-40]
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L19
	ldr	r7, [fp, #-44]
.L19:
	mov	r0, r6
	bl	free
	mov	r3, r7
.L20:
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC1
	.word	.LC0
	.size	scheck, .-scheck
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
