	.file	"977710.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"overflow old = %u, r = %u\n"
	.text
	.globl	test2
	.type	test2, @function
test2:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	WORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 2
	jmp	.L2
.L4:
	movzx	eax, WORD PTR -8[rbp]
	mov	WORD PTR -6[rbp], ax
	sal	WORD PTR -8[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	dx, al
	movzx	eax, WORD PTR -8[rbp]
	add	eax, edx
	sub	eax, 48
	mov	WORD PTR -8[rbp], ax
	movzx	eax, WORD PTR -6[rbp]
	cmp	ax, WORD PTR -8[rbp]
	jbe	.L3
	movzx	edx, WORD PTR -8[rbp]
	movzx	eax, WORD PTR -6[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L3:
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -28[rbp]
	cmp	DWORD PTR -4[rbp], eax
	jb	.L4
	movzx	eax, WORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	test2, .-test2
	.section	.rodata
.LC1:
	.string	"result = %u\n"
.LC2:
	.string	"result2 = %u\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
	movabs	rax, 3544386994072281648
	mov	QWORD PTR -60[rbp], rax
	mov	DWORD PTR -52[rbp], 3158320
	lea	rax, -60[rbp]
	mov	esi, 11
	mov	rdi, rax
	call	test2
	mov	WORD PTR -64[rbp], ax
	movzx	eax, WORD PTR -64[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	WORD PTR -64[rbp], 362
	je	.L7
	mov	eax, 2
	jmp	.L10
.L7:
	movabs	rax, 3544386994072281648
	movabs	rdx, 3544667369554063664
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	movabs	rax, 3472610870732796208
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -24[rbp], 825241905
	mov	WORD PTR -20[rbp], 12592
	mov	BYTE PTR -18[rbp], 0
	lea	rax, -48[rbp]
	mov	esi, 30
	mov	rdi, rax
	call	test2
	mov	WORD PTR -62[rbp], ax
	movzx	eax, WORD PTR -62[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	WORD PTR -62[rbp], -10827
	je	.L9
	mov	eax, 2
	jmp	.L10
.L9:
	mov	eax, 0
.L10:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	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	"977710.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"overflow old = %u, r = %u\012\000"
	.text
	.align	2
	.global	test2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test2, %function
test2:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	strh	r3, [fp, #-12]	@ movhi
	mov	r3, #2
	str	r3, [fp, #-8]
	b	.L2
.L4:
	ldrh	r3, [fp, #-12]	@ movhi
	strh	r3, [fp, #-10]	@ movhi
	ldrh	r3, [fp, #-12]	@ movhi
	lsl	r3, r3, #1
	strh	r3, [fp, #-12]	@ movhi
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrh	r3, [fp, #-12]	@ movhi
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r3, #48
	strh	r3, [fp, #-12]	@ movhi
	ldrh	r2, [fp, #-10]
	ldrh	r3, [fp, #-12]
	cmp	r2, r3
	bls	.L3
	ldrh	r3, [fp, #-10]
	ldrh	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L6
	bl	printf
.L3:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L4
	ldrh	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.size	test2, .-test2
	.section	.rodata
	.align	2
.LC2:
	.ascii	"result = %u\012\000"
	.align	2
.LC4:
	.ascii	"result2 = %u\012\000"
	.align	2
.LC1:
	.ascii	"0b101101010\000"
	.align	2
.LC3:
	.ascii	"0b1011010101101101010110110101\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L14+4
	sub	r3, fp, #52
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	sub	r3, fp, #52
	mov	r1, #11
	mov	r0, r3
	bl	test2
	mov	r3, r0
	strh	r3, [fp, #-56]	@ movhi
	ldrh	r3, [fp, #-56]
	mov	r1, r3
	ldr	r0, .L14+8
	bl	printf
	ldrh	r3, [fp, #-56]
	ldr	r2, .L14+12
	cmp	r3, r2
	beq	.L9
	mov	r3, #2
	b	.L12
.L9:
	ldr	r3, .L14+16
	sub	ip, fp, #40
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strh	r3, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r3, #16
	strb	r3, [ip]
	sub	r3, fp, #40
	mov	r1, #30
	mov	r0, r3
	bl	test2
	mov	r3, r0
	strh	r3, [fp, #-54]	@ movhi
	ldrh	r3, [fp, #-54]
	mov	r1, r3
	ldr	r0, .L14+20
	bl	printf
	ldrh	r3, [fp, #-54]
	ldr	r2, .L14+24
	cmp	r3, r2
	beq	.L11
	mov	r3, #2
	b	.L12
.L11:
	mov	r3, #0
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC5
	.word	.LC1
	.word	.LC2
	.word	362
	.word	.LC3
	.word	.LC4
	.word	54709
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
