	.file	"106363.c"
	.intel_syntax noprefix
	.text
	.type	bar, @function
bar:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, ecx
	mov	ecx, r8d
	mov	WORD PTR -4[rbp], di
	mov	WORD PTR -8[rbp], si
	mov	WORD PTR -12[rbp], dx
	mov	WORD PTR -16[rbp], ax
	mov	eax, ecx
	mov	WORD PTR -20[rbp], ax
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	bar, .-bar
	.globl	foo
	.type	foo, @function
foo:
.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, 40
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, edx
	mov	QWORD PTR -40[rbp], rcx
	mov	edx, edi
	mov	WORD PTR -20[rbp], dx
	mov	WORD PTR -24[rbp], ax
	movsx	rax, WORD PTR -8[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movsx	edi, ax
	movsx	rax, WORD PTR -6[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movsx	ecx, ax
	movsx	edx, WORD PTR -4[rbp]
	movsx	esi, WORD PTR -2[rbp]
	movsx	eax, WORD PTR -20[rbp]
	mov	r8d, edi
	mov	edi, eax
	call	bar
	mov	rdx, QWORD PTR -40[rbp]
	mov	WORD PTR [rdx], ax
	movsx	rax, WORD PTR -8[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR 2[rax]
	movsx	edi, ax
	movsx	rax, WORD PTR -6[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR 2[rax]
	movsx	ecx, ax
	movsx	edx, WORD PTR -4[rbp]
	movsx	esi, WORD PTR -2[rbp]
	movsx	eax, WORD PTR -20[rbp]
	mov	r8d, edi
	mov	edi, eax
	call	bar
	mov	rdx, QWORD PTR -40[rbp]
	mov	WORD PTR 2[rdx], ax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	foo, .-foo
	.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	"106363.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bar, %function
bar:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	ip, r0
	mov	r0, r1
	mov	r1, r2
	mov	r2, r3
	mov	r3, ip	@ movhi
	strh	r3, [fp, #-6]	@ movhi
	mov	r3, r0	@ movhi
	strh	r3, [fp, #-8]	@ movhi
	mov	r3, r1	@ movhi
	strh	r3, [fp, #-10]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-12]	@ movhi
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	bar, .-bar
	.align	2
	.global	foo
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo, %function
foo:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r1, [fp, #-20]
	str	r3, [fp, #-24]
	mov	r3, r0	@ movhi
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-16]	@ movhi
	ldrsh	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrsh	ip, [r3]
	ldrsh	r3, [fp, #-10]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrsh	r3, [r3]
	ldrsh	r2, [fp, #-6]
	ldrsh	r1, [fp, #-8]
	ldrsh	r0, [fp, #-14]
	str	r3, [sp]
	mov	r3, ip
	bl	bar
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-24]
	strh	r2, [r3]	@ movhi
	ldrsh	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrsh	ip, [r3, #2]
	ldrsh	r3, [fp, #-10]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrsh	r3, [r3, #2]
	ldrsh	r2, [fp, #-6]
	ldrsh	r1, [fp, #-8]
	ldrsh	r0, [fp, #-14]
	str	r3, [sp]
	mov	r3, ip
	bl	bar
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-24]
	strh	r2, [r3, #2]	@ movhi
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	foo, .-foo
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
