	.file	"1169394.c"
	.intel_syntax noprefix
	.text
	.globl	foo
	.type	foo, @function
foo:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	WORD PTR -4[rbp], 0
	jmp	.L2
.L7:
	movzx	eax, WORD PTR -4[rbp]
	sal	eax, 8
	mov	WORD PTR -2[rbp], ax
	mov	BYTE PTR -5[rbp], 0
	jmp	.L3
.L6:
	movzx	eax, WORD PTR -2[rbp]
	test	ax, ax
	jns	.L4
	movzx	eax, WORD PTR -2[rbp]
	add	eax, eax
	xor	ax, 4129
	mov	WORD PTR -2[rbp], ax
	jmp	.L5
.L4:
	sal	WORD PTR -2[rbp]
.L5:
	movzx	eax, BYTE PTR -5[rbp]
	add	eax, 1
	mov	BYTE PTR -5[rbp], al
.L3:
	cmp	BYTE PTR -5[rbp], 7
	jbe	.L6
	movzx	eax, WORD PTR -4[rbp]
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	movzx	eax, WORD PTR -2[rbp]
	mov	WORD PTR [rdx], ax
	movzx	eax, WORD PTR -4[rbp]
	add	eax, 1
	mov	WORD PTR -4[rbp], ax
.L2:
	cmp	WORD PTR -4[rbp], 255
	jbe	.L7
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	foo, .-foo
	.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, 544
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	foo
	mov	DWORD PTR -536[rbp], 0
	jmp	.L9
.L15:
	mov	eax, DWORD PTR -536[rbp]
	sal	eax, 8
	mov	WORD PTR -538[rbp], ax
	mov	DWORD PTR -532[rbp], 0
	jmp	.L10
.L13:
	movzx	eax, WORD PTR -538[rbp]
	mov	WORD PTR -538[rbp], ax
	movzx	eax, WORD PTR -538[rbp]
	test	ax, ax
	jns	.L11
	movzx	eax, WORD PTR -538[rbp]
	add	eax, eax
	xor	ax, 4129
	mov	WORD PTR -538[rbp], ax
	jmp	.L12
.L11:
	sal	WORD PTR -538[rbp]
.L12:
	add	DWORD PTR -532[rbp], 1
.L10:
	cmp	DWORD PTR -532[rbp], 7
	jle	.L13
	mov	eax, DWORD PTR -536[rbp]
	cdqe
	movzx	eax, WORD PTR -528[rbp+rax*2]
	cmp	WORD PTR -538[rbp], ax
	je	.L14
	call	abort@PLT
.L14:
	add	DWORD PTR -536[rbp], 1
.L9:
	cmp	DWORD PTR -536[rbp], 255
	jle	.L15
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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	"1169394.c"
	.text
	.align	2
	.global	foo
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo, %function
foo:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	strh	r3, [fp, #-8]	@ movhi
	b	.L2
.L7:
	ldrh	r3, [fp, #-8]	@ movhi
	lsl	r3, r3, #8
	strh	r3, [fp, #-6]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-9]
	b	.L3
.L6:
	ldrsh	r3, [fp, #-6]
	cmp	r3, #0
	bge	.L4
	ldrh	r3, [fp, #-6]
	lsl	r3, r3, #1
	lsl	r3, r3, #16
	asr	r3, r3, #16
	eor	r3, r3, #4096
	eor	r3, r3, #33
	lsl	r3, r3, #16
	asr	r3, r3, #16
	strh	r3, [fp, #-6]	@ movhi
	b	.L5
.L4:
	ldrh	r3, [fp, #-6]	@ movhi
	lsl	r3, r3, #1
	strh	r3, [fp, #-6]	@ movhi
.L5:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-9]
.L3:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #7
	bls	.L6
	ldrh	r3, [fp, #-8]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrh	r2, [fp, #-6]	@ movhi
	strh	r2, [r3]	@ movhi
	ldrh	r3, [fp, #-8]
	add	r3, r3, #1
	strh	r3, [fp, #-8]	@ movhi
.L2:
	ldrh	r3, [fp, #-8]
	cmp	r3, #255
	bls	.L7
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	foo, .-foo
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 528
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #528
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #520
	mov	r0, r3
	bl	foo
	mov	r3, #0
	str	r3, [fp, #-528]
	b	.L9
.L15:
	ldr	r3, [fp, #-528]
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	sub	r3, fp, #4
	sub	r3, r3, #524
	sub	r3, r3, #2
	lsl	r2, r2, #8
	strh	r2, [r3]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-524]
	b	.L10
.L13:
	sub	r3, fp, #4
	sub	r3, r3, #524
	sub	r3, r3, #2
	ldrh	r3, [r3]	@ movhi
	mov	r2, r3	@ movhi
	sub	r3, fp, #4
	sub	r3, r3, #524
	sub	r3, r3, #2
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #4
	sub	r3, r3, #524
	sub	r3, r3, #2
	ldrsh	r3, [r3]
	cmp	r3, #0
	bge	.L11
	sub	r3, fp, #4
	sub	r3, r3, #524
	sub	r3, r3, #2
	ldrh	r3, [r3]
	lsl	r3, r3, #1
	lsl	r3, r3, #16
	asr	r3, r3, #16
	eor	r3, r3, #4096
	eor	r3, r3, #33
	lsl	r3, r3, #16
	asr	r2, r3, #16
	sub	r3, fp, #4
	sub	r3, r3, #524
	sub	r3, r3, #2
	strh	r2, [r3]	@ movhi
	b	.L12
.L11:
	sub	r3, fp, #4
	sub	r3, r3, #524
	sub	r3, r3, #2
	sub	r2, fp, #4
	sub	r2, r2, #524
	sub	r2, r2, #2
	ldrh	r2, [r2]	@ movhi
	lsl	r2, r2, #1
	strh	r2, [r3]	@ movhi
.L12:
	ldr	r3, [fp, #-524]
	add	r3, r3, #1
	str	r3, [fp, #-524]
.L10:
	ldr	r3, [fp, #-524]
	cmp	r3, #7
	ble	.L13
	sub	r3, fp, #4
	sub	r2, r3, #516
	ldr	r3, [fp, #-528]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r2, [r3]
	sub	r3, fp, #4
	sub	r3, r3, #524
	sub	r3, r3, #2
	ldrh	r3, [r3]
	cmp	r3, r2
	beq	.L14
	bl	abort
.L14:
	ldr	r3, [fp, #-528]
	add	r3, r3, #1
	str	r3, [fp, #-528]
.L9:
	ldr	r3, [fp, #-528]
	cmp	r3, #255
	ble	.L15
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
