	.file	"421205.c"
	.intel_syntax noprefix
	.text
	.globl	getint
	.type	getint, @function
getint:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	r12d, edi
	mov	rbx, rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -31[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, r12d
	mov	eax, 0
	call	read@PLT
	cmp	eax, 1
	je	.L2
	mov	eax, 0
	jmp	.L8
.L2:
	movzx	eax, BYTE PTR -31[rbp]
	movsx	eax, al
	movzx	eax, al
	mov	DWORD PTR [rbx], eax
	lea	rax, -31[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, r12d
	mov	eax, 0
	call	read@PLT
	cmp	eax, 1
	je	.L4
	mov	eax, 0
	jmp	.L8
.L4:
	mov	edx, DWORD PTR [rbx]
	movzx	eax, BYTE PTR -31[rbp]
	movsx	eax, al
	sal	eax, 8
	movzx	eax, ax
	or	eax, edx
	mov	DWORD PTR [rbx], eax
	lea	rax, -30[rbp]
	mov	edx, 6
	mov	rsi, rax
	mov	edi, r12d
	mov	eax, 0
	call	read@PLT
	cmp	eax, 6
	je	.L5
	mov	eax, 0
	jmp	.L8
.L5:
	movzx	eax, BYTE PTR -30[rbp]
	test	al, al
	jne	.L6
	movzx	eax, BYTE PTR -29[rbp]
	test	al, al
	jne	.L6
	movzx	eax, BYTE PTR -28[rbp]
	test	al, al
	jne	.L6
	movzx	eax, BYTE PTR -27[rbp]
	test	al, al
	jne	.L6
	movzx	eax, BYTE PTR -26[rbp]
	test	al, al
	jne	.L6
	movzx	eax, BYTE PTR -25[rbp]
	test	al, al
	je	.L7
.L6:
	mov	eax, 0
	jmp	.L8
.L7:
	mov	eax, 1
.L8:
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getint, .-getint
	.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	"421205.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getint
	.syntax unified
	.arm
	.fpu softvfp
	.type	getint, %function
getint:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	mov	r5, r0
	mov	r4, r1
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #25
	mov	r2, #1
	mov	r1, r3
	mov	r0, r5
	bl	read
	mov	r3, r0
	cmp	r3, #1
	beq	.L2
	mov	r3, #0
	b	.L8
.L2:
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	str	r3, [r4]
	sub	r3, fp, #25
	mov	r2, #1
	mov	r1, r3
	mov	r0, r5
	bl	read
	mov	r3, r0
	cmp	r3, #1
	beq	.L4
	mov	r3, #0
	b	.L8
.L4:
	ldr	r2, [r4]
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	str	r3, [r4]
	sub	r3, fp, #24
	mov	r2, #6
	mov	r1, r3
	mov	r0, r5
	bl	read
	mov	r3, r0
	cmp	r3, #6
	beq	.L5
	mov	r3, #0
	b	.L8
.L5:
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
	ldrb	r3, [fp, #-23]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L7
.L6:
	mov	r3, #0
	b	.L8
.L7:
	mov	r3, #1
.L8:
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.size	getint, .-getint
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
