	.file	"515306.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%08X"
.LC1:
	.string	"00"
.LC2:
	.string	"%d, %s\n"
	.text
	.globl	add_buffer_int
	.type	add_buffer_int, @function
add_buffer_int:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -44[rbp], 0
	mov	edx, DWORD PTR -52[rbp]
	lea	rax, -17[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -29[rbp]
	mov	edx, 12
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -40[rbp], 0
	jmp	.L2
.L5:
	mov	DWORD PTR -36[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -44[rbp], edx
	cdqe
	movzx	edx, BYTE PTR -17[rbp+rax]
	mov	eax, DWORD PTR -36[rbp]
	movsx	rsi, eax
	mov	eax, DWORD PTR -40[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	add	rax, rax
	add	rax, rcx
	add	rax, rbp
	add	rax, rsi
	sub	rax, 29
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -36[rbp], 1
.L3:
	cmp	DWORD PTR -36[rbp], 1
	jle	.L4
	add	DWORD PTR -40[rbp], 1
.L2:
	cmp	DWORD PTR -40[rbp], 7
	jle	.L5
	mov	DWORD PTR -44[rbp], 0
	jmp	.L6
.L9:
	lea	rcx, -29[rbp]
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rcx
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L17
	add	DWORD PTR -44[rbp], 1
.L6:
	cmp	DWORD PTR -44[rbp], 3
	jg	.L8
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rbp
	sub	rax, 29
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L9
	jmp	.L8
.L17:
	nop
.L8:
	cmp	DWORD PTR -44[rbp], 3
	jle	.L12
	mov	eax, DWORD PTR -44[rbp]
	lea	rdx, .LC1[rip]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L19
.L14:
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rbp
	sub	rax, 29
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L18
	lea	rcx, -29[rbp]
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -44[rbp], 1
.L12:
	cmp	DWORD PTR -44[rbp], 3
	jg	.L19
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	add	rax, rbp
	sub	rax, 29
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L14
	jmp	.L19
.L18:
	nop
.L19:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	add_buffer_int, .-add_buffer_int
	.section	.rodata
.LC3:
	.string	"value: %d, 0x%08X\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -48[rbp], 123
	mov	DWORD PTR -44[rbp], 234
	mov	DWORD PTR -40[rbp], 345
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 10230495
	mov	DWORD PTR -28[rbp], -123
	mov	DWORD PTR -24[rbp], -234
	mov	DWORD PTR -52[rbp], 0
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	edx, DWORD PTR -48[rbp+rax*4]
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	mov	edi, eax
	call	add_buffer_int
	add	DWORD PTR -52[rbp], 1
.L21:
	cmp	DWORD PTR -52[rbp], 6
	jle	.L22
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.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	"515306.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%08X\000"
	.align	2
.LC2:
	.ascii	"00\000"
	.align	2
.LC3:
	.ascii	"%d, %s\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	add_buffer_int
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_buffer_int, %function
add_buffer_int:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r2, [fp, #-48]
	sub	r3, fp, #20
	ldr	r1, .L20+4
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #32
	mov	r2, #12
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L2
.L5:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L3
.L4:
	ldr	r3, [fp, #-44]
	add	r2, r3, #1
	str	r2, [fp, #-44]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r1, [r3, #-16]	@ zero_extendqisi2
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r2, r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	sub	r3, r3, #28
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L3:
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	ble	.L4
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L2:
	ldr	r3, [fp, #-40]
	cmp	r3, #7
	ble	.L5
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L6
.L9:
	sub	r1, fp, #32
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	ldr	r1, .L20+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L6:
	ldr	r3, [fp, #-44]
	cmp	r3, #3
	bgt	.L8
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #28
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L9
	b	.L8
.L17:
	nop
.L8:
	ldr	r3, [fp, #-44]
	cmp	r3, #3
	ble	.L12
	ldr	r2, .L20+8
	ldr	r1, [fp, #-44]
	ldr	r0, .L20+12
	bl	printf
	b	.L19
.L14:
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #28
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L18
	sub	r1, fp, #32
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r3, r1, r3
	mov	r2, r3
	ldr	r1, [fp, #-44]
	ldr	r0, .L20+12
	bl	printf
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L12:
	ldr	r3, [fp, #-44]
	cmp	r3, #3
	bgt	.L19
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	r3, r3, #28
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L14
	b	.L19
.L18:
	nop
.L19:
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC4
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	add_buffer_int, .-add_buffer_int
	.section	.rodata
	.align	2
.LC5:
	.ascii	"value: %d, 0x%08X\012\000"
	.align	2
.LC0:
	.word	123
	.word	234
	.word	345
	.word	0
	.word	10230495
	.word	-123
	.word	-234
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L27+4
	sub	ip, fp, #36
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L23
.L24:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r1, [r3, #-32]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-32]
	mov	r2, r3
	ldr	r0, .L27+8
	bl	printf
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-32]
	mov	r0, r3
	bl	add_buffer_int
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L23:
	ldr	r3, [fp, #-40]
	cmp	r3, #6
	ble	.L24
	mov	r3, #0
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC6
	.word	.LC0
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
