	.file	"623690.c"
	.intel_syntax noprefix
	.text
	.data
	.align 32
	.type	rcsid, @object
	.size	rcsid, 62
rcsid:
	.string	"$Id: test-endianness.c,v 1.2 2006-04-14 11:15:23 henrik Exp $"
	.section	.rodata
.LC0:
	.string	"--configh"
	.align 8
.LC1:
	.string	"#ifndef HOBBIT_BIG_ENDIAN\n#define HOBBIT_BIG_ENDIAN\n#endif"
.LC2:
	.string	" -DHOBBIT_BIG_ENDIAN"
	.align 8
.LC3:
	.string	"#ifndef HOBBIT_LITTLE_ENDIAN\n#define HOBBIT_LITTLE_ENDIAN\n#endif"
.LC4:
	.string	" -DHOBBIT_LITTLE_ENDIAN"
	.align 8
.LC5:
	.string	"UNKNOWN ENDIANNESS! testvalue is %u\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], 1
	cmp	DWORD PTR -36[rbp], 1
	jle	.L2
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L2
	mov	DWORD PTR -16[rbp], 0
.L2:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -20[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	BYTE PTR -12[rbp+rax], dl
	add	DWORD PTR -20[rbp], 1
.L3:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 3
	jbe	.L4
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 65537
	jne	.L5
	cmp	DWORD PTR -16[rbp], 0
	jne	.L6
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L7
.L6:
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L5:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 16777472
	jne	.L8
	cmp	DWORD PTR -16[rbp], 0
	jne	.L9
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L7
.L9:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L8:
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L7:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	eax, 0
	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
.LFE6:
	.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	"623690.c"
	.text
	.data
	.align	2
	.type	rcsid, %object
	.size	rcsid, 62
rcsid:
	.ascii	"$Id: test-endianness.c,v 1.2 2006-04-14 11:15:23 he"
	.ascii	"nrik Exp $\000"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"--configh\000"
	.align	2
.LC1:
	.ascii	"#ifndef HOBBIT_BIG_ENDIAN\012#define HOBBIT_BIG_END"
	.ascii	"IAN\012#endif\000"
	.align	2
.LC2:
	.ascii	" -DHOBBIT_BIG_ENDIAN\000"
	.align	2
.LC3:
	.ascii	"#ifndef HOBBIT_LITTLE_ENDIAN\012#define HOBBIT_LITT"
	.ascii	"LE_ENDIAN\012#endif\000"
	.align	2
.LC4:
	.ascii	" -DHOBBIT_LITTLE_ENDIAN\000"
	.align	2
.LC5:
	.ascii	"UNKNOWN ENDIANNESS! testvalue is %u\012\000"
	.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 = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L12+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	mov	r3, #0
	str	r3, [fp, #-16]
.L2:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L3
.L4:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	and	r1, r3, #255
	sub	r2, fp, #12
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L3:
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	bls	.L4
	sub	r1, fp, #12
	sub	r3, fp, #24
	mov	r2, #4
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-24]
	ldr	r2, .L12+8
	cmp	r3, r2
	bne	.L5
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L12+12
	bl	puts
	b	.L7
.L6:
	ldr	r0, .L12+16
	bl	printf
	b	.L7
.L5:
	ldr	r3, [fp, #-24]
	ldr	r2, .L12+20
	cmp	r3, r2
	bne	.L8
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L9
	ldr	r0, .L12+24
	bl	puts
	b	.L7
.L9:
	ldr	r0, .L12+28
	bl	printf
	b	.L7
.L8:
	ldr	r3, .L12+32
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, .L12+36
	mov	r0, r3
	bl	fprintf
.L7:
	ldr	r3, .L12+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC6
	.word	.LC0
	.word	65537
	.word	.LC1
	.word	.LC2
	.word	16777472
	.word	.LC3
	.word	.LC4
	.word	stderr
	.word	.LC5
	.word	stdout
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
