	.file	"380913.c"
	.intel_syntax noprefix
	.text
	.local	mem
	.comm	mem,16,16
	.data
	.align 2
	.type	u16w, @object
	.size	u16w, 2
u16w:
	.value	3
	.align 2
	.type	u16r, @object
	.size	u16r, 2
u16r:
	.value	5
	.align 8
	.type	target, @object
	.size	target, 8
target:
	.string	""
	.ascii	"\001\002\003\004\005\006\007"
	.align 8
	.type	source, @object
	.size	source, 8
source:
	.ascii	"\b\t\n\013\f\r\016\017"
	.align 8
	.type	expect, @object
	.size	expect, 8
expect:
	.string	""
	.ascii	"\001\f\r\004\005\006\007"
	.local	i
	.comm	i,1,1
	.local	err
	.comm	err,1,1
	.text
	.globl	test1
	.type	test1, @function
test1:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movzx	eax, WORD PTR u16r[rip]
	lea	edx, -1[rax]
	mov	WORD PTR u16r[rip], dx
	movzx	eax, ax
	lea	rdx, mem[rip+8]
	lea	rcx, [rax+rdx]
	movzx	eax, WORD PTR u16w[rip]
	lea	edx, -1[rax]
	mov	WORD PTR u16w[rip], dx
	movzx	eax, ax
	lea	rdx, mem[rip]
	add	rdx, rax
	movzx	eax, BYTE PTR [rcx]
	mov	BYTE PTR [rdx], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	test1, .-test1
	.section	.rodata
.LC0:
	.string	"source:"
.LC1:
	.string	"%0x "
.LC2:
	.string	"\n\rtarget:"
.LC3:
	.string	"\n\r"
.LC4:
	.string	"u16w: %d\n\r"
.LC5:
	.string	"u16r:  %d\n\r"
	.text
	.globl	dotest
	.type	dotest, @function
dotest:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR target[rip]
	mov	QWORD PTR mem[rip], rax
	mov	rax, QWORD PTR source[rip]
	mov	QWORD PTR mem[rip+8], rax
	call	test1
	mov	rax, QWORD PTR mem[rip]
	mov	QWORD PTR target[rip], rax
	mov	rax, QWORD PTR mem[rip+8]
	mov	QWORD PTR source[rip], rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	BYTE PTR i[rip], 0
	jmp	.L3
.L4:
	movzx	eax, BYTE PTR i[rip]
	movzx	eax, al
	cdqe
	lea	rdx, source[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR i[rip]
	add	eax, 1
	mov	BYTE PTR i[rip], al
.L3:
	movzx	eax, BYTE PTR i[rip]
	cmp	al, 7
	jbe	.L4
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	BYTE PTR i[rip], 0
	jmp	.L5
.L6:
	movzx	eax, BYTE PTR i[rip]
	movzx	eax, al
	cdqe
	lea	rdx, target[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR i[rip]
	add	eax, 1
	mov	BYTE PTR i[rip], al
.L5:
	movzx	eax, BYTE PTR i[rip]
	cmp	al, 7
	jbe	.L6
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR u16w[rip]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR u16r[rip]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	dotest, .-dotest
	.section	.rodata
.LC6:
	.string	"buffer data error\n\r"
.LC7:
	.string	"return: %d\n\r"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	dotest
	call	dotest
	mov	edx, 8
	lea	rsi, expect[rip]
	lea	rdi, target[rip]
	call	memcmp@PLT
	test	eax, eax
	je	.L8
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	BYTE PTR err[rip], 1
.L8:
	movzx	eax, WORD PTR u16w[rip]
	cmp	ax, 1
	je	.L9
	mov	BYTE PTR err[rip], 1
.L9:
	movzx	eax, WORD PTR u16r[rip]
	cmp	ax, 3
	je	.L10
	mov	BYTE PTR err[rip], 1
.L10:
	movzx	eax, BYTE PTR err[rip]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR err[rip]
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"380913.c"
	.text
	.local	mem
	.comm	mem,16,4
	.data
	.align	1
	.type	u16w, %object
	.size	u16w, 2
u16w:
	.short	3
	.align	1
	.type	u16r, %object
	.size	u16r, 2
u16r:
	.short	5
	.align	2
	.type	target, %object
	.size	target, 8
target:
	.ascii	"\000\001\002\003\004\005\006\007"
	.align	2
	.type	source, %object
	.size	source, 8
source:
	.ascii	"\010\011\012\013\014\015\016\017"
	.align	2
	.type	expect, %object
	.size	expect, 8
expect:
	.ascii	"\000\001\014\015\004\005\006\007"
	.local	i
	.comm	i,1,1
	.local	err
	.comm	err,1,1
	.text
	.align	2
	.global	test1
	.syntax unified
	.arm
	.fpu softvfp
	.type	test1, %function
test1:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L2
	ldrh	r3, [r3]
	sub	r2, r3, #1
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	ldr	r1, .L2
	strh	r2, [r1]	@ movhi
	mov	r2, r3
	ldr	r3, .L2+4
	add	r2, r2, r3
	ldr	r3, .L2+8
	ldrh	r3, [r3]
	sub	r1, r3, #1
	lsl	r1, r1, #16
	lsr	r1, r1, #16
	ldr	r0, .L2+8
	strh	r1, [r0]	@ movhi
	mov	r1, r3
	ldr	r3, .L2+12
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	u16r
	.word	mem+8
	.word	u16w
	.word	mem
	.size	test1, .-test1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"source:\000"
	.align	2
.LC1:
	.ascii	"%0x \000"
	.align	2
.LC2:
	.ascii	"\012\015target:\000"
	.align	2
.LC3:
	.ascii	"\012\015\000"
	.align	2
.LC4:
	.ascii	"u16w: %d\012\015\000"
	.align	2
.LC5:
	.ascii	"u16r:  %d\012\015\000"
	.text
	.align	2
	.global	dotest
	.syntax unified
	.arm
	.fpu softvfp
	.type	dotest, %function
dotest:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L9
	ldr	r2, .L9+4
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, .L9
	ldr	r2, .L9+8
	add	r3, r3, #8
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	bl	test1
	ldr	r3, .L9+4
	ldr	r2, .L9
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r2, .L9+8
	ldr	r3, .L9
	add	r3, r3, #8
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r0, .L9+12
	bl	printf
	ldr	r3, .L9+16
	mov	r2, #0
	strb	r2, [r3]
	b	.L5
.L6:
	ldr	r3, .L9+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L9+8
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L9+20
	bl	printf
	ldr	r3, .L9+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, .L9+16
	strb	r2, [r3]
.L5:
	ldr	r3, .L9+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #7
	bls	.L6
	ldr	r0, .L9+24
	bl	printf
	ldr	r3, .L9+16
	mov	r2, #0
	strb	r2, [r3]
	b	.L7
.L8:
	ldr	r3, .L9+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L9+4
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L9+20
	bl	printf
	ldr	r3, .L9+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, .L9+16
	strb	r2, [r3]
.L7:
	ldr	r3, .L9+16
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #7
	bls	.L8
	ldr	r0, .L9+28
	bl	printf
	ldr	r3, .L9+32
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L9+36
	bl	printf
	ldr	r3, .L9+40
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L9+44
	bl	printf
	nop
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	mem
	.word	target
	.word	source
	.word	.LC0
	.word	i
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	u16w
	.word	.LC4
	.word	u16r
	.word	.LC5
	.size	dotest, .-dotest
	.section	.rodata
	.align	2
.LC6:
	.ascii	"buffer data error\012\015\000"
	.align	2
.LC7:
	.ascii	"return: %d\012\015\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	dotest
	bl	dotest
	mov	r2, #8
	ldr	r1, .L16
	ldr	r0, .L16+4
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r0, .L16+8
	bl	printf
	ldr	r3, .L16+12
	mov	r2, #1
	strb	r2, [r3]
.L12:
	ldr	r3, .L16+16
	ldrh	r3, [r3]
	cmp	r3, #1
	beq	.L13
	ldr	r3, .L16+12
	mov	r2, #1
	strb	r2, [r3]
.L13:
	ldr	r3, .L16+20
	ldrh	r3, [r3]
	cmp	r3, #3
	beq	.L14
	ldr	r3, .L16+12
	mov	r2, #1
	strb	r2, [r3]
.L14:
	ldr	r3, .L16+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L16+24
	bl	printf
	ldr	r3, .L16+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	expect
	.word	target
	.word	.LC6
	.word	err
	.word	u16w
	.word	u16r
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
