	.file	"891669.c"
	.intel_syntax noprefix
	.text
	.local	swapflag
	.comm	swapflag,4,4
	.local	flipflag
	.comm	flipflag,4,4
	.type	is_little_endian, @function
is_little_endian:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 1
	lea	rax, -12[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L2
	mov	eax, 1
	jmp	.L4
.L2:
	mov	eax, 0
.L4:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	is_little_endian, .-is_little_endian
	.type	swap, @function
swap:
.LFB7:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -12[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 1[rax]
	mov	BYTE PTR -11[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 2[rax]
	mov	BYTE PTR -10[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 3[rax]
	mov	BYTE PTR -9[rbp], al
	movzx	edx, BYTE PTR -9[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	movzx	eax, BYTE PTR -10[rbp]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 2[rax]
	movzx	eax, BYTE PTR -11[rbp]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 3[rax]
	movzx	eax, BYTE PTR -12[rbp]
	mov	BYTE PTR [rdx], al
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	swap, .-swap
	.type	endconv, @function
endconv:
.LFB8:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -12[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 1[rax]
	mov	BYTE PTR -11[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 2[rax]
	mov	BYTE PTR -10[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 3[rax]
	mov	BYTE PTR -9[rbp], al
	mov	eax, 0
	call	is_little_endian
	test	eax, eax
	jne	.L11
	movzx	edx, BYTE PTR -9[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	movzx	eax, BYTE PTR -10[rbp]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 2[rax]
	movzx	eax, BYTE PTR -11[rbp]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 3[rax]
	movzx	eax, BYTE PTR -12[rbp]
	mov	BYTE PTR [rdx], al
.L11:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	endconv, .-endconv
	.section	.rodata
.LC0:
	.string	"wb"
.LC1:
	.string	"rb"
.LC2:
	.string	"muda muda muda!"
.LC4:
	.string	"fval = %f\n"
	.text
	.globl	write_texture
	.type	write_texture, @function
write_texture:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	DWORD PTR -84[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L13
	mov	edi, -1
	call	exit@PLT
.L13:
	mov	rax, QWORD PTR -80[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L14
	mov	edi, -1
	call	exit@PLT
.L14:
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	imul	rax, rdx
	sal	rax, 4
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L15
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L15:
	lea	rax, -56[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -52[rbp], 0
	jmp	.L16
.L37:
	mov	DWORD PTR -48[rbp], 0
	jmp	.L17
.L36:
	mov	rdx, QWORD PTR -32[rbp]
	lea	rax, -56[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR swapflag[rip]
	test	eax, eax
	je	.L18
	lea	rax, -56[rbp]
	mov	rdi, rax
	call	swap
.L18:
	movss	xmm0, DWORD PTR -56[rbp]
	ucomiss	xmm0, xmm0
	jnp	.L19
	pxor	xmm0, xmm0
	movss	DWORD PTR -56[rbp], xmm0
.L19:
	movss	xmm1, DWORD PTR -56[rbp]
	pxor	xmm0, xmm0
	comiss	xmm0, xmm1
	jbe	.L20
	pxor	xmm0, xmm0
	movss	DWORD PTR -56[rbp], xmm0
.L20:
	movss	xmm0, DWORD PTR -56[rbp]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC4[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR flipflag[rip]
	test	eax, eax
	je	.L22
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, DWORD PTR -52[rbp]
	sub	eax, 1
	imul	eax, DWORD PTR -84[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	sal	eax, 2
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR -56[rbp]
	movss	DWORD PTR [rax], xmm0
	jmp	.L23
.L22:
	mov	eax, DWORD PTR -52[rbp]
	imul	eax, DWORD PTR -84[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	sal	eax, 2
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR -56[rbp]
	movss	DWORD PTR [rax], xmm0
.L23:
	mov	rdx, QWORD PTR -32[rbp]
	lea	rax, -56[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR swapflag[rip]
	test	eax, eax
	je	.L24
	lea	rax, -56[rbp]
	mov	rdi, rax
	call	swap
.L24:
	movss	xmm0, DWORD PTR -56[rbp]
	ucomiss	xmm0, xmm0
	jnp	.L25
	pxor	xmm0, xmm0
	movss	DWORD PTR -56[rbp], xmm0
.L25:
	movss	xmm1, DWORD PTR -56[rbp]
	pxor	xmm0, xmm0
	comiss	xmm0, xmm1
	jbe	.L26
	pxor	xmm0, xmm0
	movss	DWORD PTR -56[rbp], xmm0
.L26:
	mov	eax, DWORD PTR flipflag[rip]
	test	eax, eax
	je	.L28
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, DWORD PTR -52[rbp]
	sub	eax, 1
	imul	eax, DWORD PTR -84[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	sal	eax, 2
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR -56[rbp]
	movss	DWORD PTR [rax], xmm0
	jmp	.L29
.L28:
	mov	eax, DWORD PTR -52[rbp]
	imul	eax, DWORD PTR -84[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	sal	eax, 2
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR -56[rbp]
	movss	DWORD PTR [rax], xmm0
.L29:
	mov	rdx, QWORD PTR -32[rbp]
	lea	rax, -56[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fread@PLT
	mov	eax, DWORD PTR swapflag[rip]
	test	eax, eax
	je	.L30
	lea	rax, -56[rbp]
	mov	rdi, rax
	call	swap
.L30:
	movss	xmm0, DWORD PTR -56[rbp]
	ucomiss	xmm0, xmm0
	jnp	.L31
	pxor	xmm0, xmm0
	movss	DWORD PTR -56[rbp], xmm0
.L31:
	movss	xmm1, DWORD PTR -56[rbp]
	pxor	xmm0, xmm0
	comiss	xmm0, xmm1
	jbe	.L32
	pxor	xmm0, xmm0
	movss	DWORD PTR -56[rbp], xmm0
.L32:
	mov	eax, DWORD PTR flipflag[rip]
	test	eax, eax
	je	.L34
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, DWORD PTR -52[rbp]
	sub	eax, 1
	imul	eax, DWORD PTR -84[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	sal	eax, 2
	cdqe
	add	rax, 2
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR -56[rbp]
	movss	DWORD PTR [rax], xmm0
	jmp	.L35
.L34:
	mov	eax, DWORD PTR -52[rbp]
	imul	eax, DWORD PTR -84[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	sal	eax, 2
	cdqe
	add	rax, 2
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR -56[rbp]
	movss	DWORD PTR [rax], xmm0
.L35:
	mov	eax, DWORD PTR -52[rbp]
	imul	eax, DWORD PTR -84[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	sal	eax, 2
	cdqe
	add	rax, 3
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR .LC5[rip]
	movss	DWORD PTR [rax], xmm0
	add	DWORD PTR -48[rbp], 1
.L17:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L36
	add	DWORD PTR -52[rbp], 1
.L16:
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L37
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR -60[rbp], eax
	lea	rax, -60[rbp]
	mov	rdi, rax
	call	endconv
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -60[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -60[rbp], eax
	lea	rax, -60[rbp]
	mov	rdi, rax
	call	endconv
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -60[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	mov	DWORD PTR -52[rbp], 0
	jmp	.L38
.L39:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movss	xmm0, DWORD PTR [rax]
	movss	DWORD PTR -56[rbp], xmm0
	lea	rax, -56[rbp]
	mov	rdi, rax
	call	endconv
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -56[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	add	DWORD PTR -52[rbp], 1
.L38:
	mov	eax, DWORD PTR -84[rbp]
	imul	eax, DWORD PTR -44[rbp]
	sal	eax, 2
	cmp	DWORD PTR -52[rbp], eax
	jl	.L39
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	write_texture, .-write_texture
	.section	.rodata
	.align 8
.LC6:
	.string	"usage: hdr2tex outfile.tex infile.float width [swap] [flip]"
.LC7:
	.string	"swap"
.LC8:
	.string	"flip"
.LC9:
	.string	"swap = %d, flip = %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 3
	jg	.L45
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L45:
	cmp	DWORD PTR -4[rbp], 4
	jle	.L46
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L47
	mov	DWORD PTR swapflag[rip], 1
.L47:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L46
	mov	DWORD PTR flipflag[rip], 1
.L46:
	cmp	DWORD PTR -4[rbp], 5
	jle	.L48
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L49
	mov	DWORD PTR swapflag[rip], 1
.L49:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L48
	mov	DWORD PTR flipflag[rip], 1
.L48:
	mov	edx, DWORD PTR flipflag[rip]
	mov	eax, DWORD PTR swapflag[rip]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rcx
	mov	rdi, rax
	call	write_texture
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC5:
	.long	1065353216
	.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	"891669.c"
	.text
	.local	swapflag
	.comm	swapflag,4,4
	.local	flipflag
	.comm	flipflag,4,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_little_endian, %function
is_little_endian:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-12]
	sub	r3, fp, #12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L2
	mov	r3, #1
	b	.L4
.L2:
	mov	r3, #0
.L4:
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.size	is_little_endian, .-is_little_endian
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	swap, %function
swap:
	@ 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]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	strb	r3, [fp, #-11]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	strb	r3, [fp, #-10]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	strb	r3, [fp, #-9]
	ldrb	r2, [fp, #-9]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r2, [fp, #-10]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldrb	r2, [fp, #-11]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r2, [fp, #-12]	@ zero_extendqisi2
	strb	r2, [r3]
	nop
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC1
	.size	swap, .-swap
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	endconv, %function
endconv:
	@ 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]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	strb	r3, [fp, #-11]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	strb	r3, [fp, #-10]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	strb	r3, [fp, #-9]
	bl	is_little_endian
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldrb	r2, [fp, #-9]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r2, [fp, #-10]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldrb	r2, [fp, #-11]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldrb	r2, [fp, #-12]	@ zero_extendqisi2
	strb	r2, [r3]
.L15:
	nop
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC2
	.size	endconv, .-endconv
	.section	.rodata
	.align	2
.LC3:
	.ascii	"wb\000"
	.align	2
.LC4:
	.ascii	"rb\000"
	.align	2
.LC5:
	.ascii	"muda muda muda!\000"
	.global	__aeabi_fcmpun
	.global	__aeabi_fcmplt
	.global	__aeabi_f2d
	.align	2
.LC6:
	.ascii	"fval = %f\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	write_texture
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_texture, %function
write_texture:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r3, .L56
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L56+4
	ldr	r0, [fp, #-48]
	bl	fopen
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L19
	mvn	r0, #0
	bl	exit
.L19:
	ldr	r1, .L56+8
	ldr	r0, [fp, #-52]
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L20
	mvn	r0, #0
	bl	exit
.L20:
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-20]
	mul	r3, r2, r3
	lsl	r3, r3, #4
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L21
	ldr	r0, .L56+12
	bl	puts
	mvn	r0, #0
	bl	exit
.L21:
	sub	r3, fp, #40
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L22
.L46:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L23
.L45:
	sub	r0, fp, #40
	ldr	r3, [fp, #-24]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, .L56+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L24
	sub	r3, fp, #40
	mov	r0, r3
	bl	swap
.L24:
	ldr	r3, [fp, #-40]	@ float
	mov	r1, r3
	mov	r0, r3
	bl	__aeabi_fcmpun
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	mov	r3, #0
	str	r3, [fp, #-40]	@ float
.L25:
	ldr	r3, [fp, #-40]	@ float
	mov	r1, #0
	mov	r0, r3
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	mov	r3, #0
	str	r3, [fp, #-40]	@ float
.L27:
	ldr	r3, [fp, #-40]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L56+20
	bl	printf
	ldr	r3, .L56+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L29
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-56]
	mul	r2, r3, r2
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	lsl	r3, r3, #4
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]	@ float
	str	r2, [r3]	@ float
	b	.L30
.L29:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-56]
	mul	r2, r3, r2
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	lsl	r3, r3, #4
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]	@ float
	str	r2, [r3]	@ float
.L30:
	sub	r0, fp, #40
	ldr	r3, [fp, #-24]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, .L56+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L31
	sub	r3, fp, #40
	mov	r0, r3
	bl	swap
.L31:
	ldr	r3, [fp, #-40]	@ float
	mov	r1, r3
	mov	r0, r3
	bl	__aeabi_fcmpun
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	mov	r3, #0
	str	r3, [fp, #-40]	@ float
.L32:
	ldr	r3, [fp, #-40]	@ float
	mov	r1, #0
	mov	r0, r3
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L34
	mov	r3, #0
	str	r3, [fp, #-40]	@ float
.L34:
	ldr	r3, .L56+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L36
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-56]
	mul	r2, r3, r2
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	lsl	r3, r3, #4
	add	r3, r3, #4
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]	@ float
	str	r2, [r3]	@ float
	b	.L37
.L36:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-56]
	mul	r2, r3, r2
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	lsl	r3, r3, #4
	add	r3, r3, #4
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]	@ float
	str	r2, [r3]	@ float
.L37:
	sub	r0, fp, #40
	ldr	r3, [fp, #-24]
	mov	r2, #1
	mov	r1, #4
	bl	fread
	ldr	r3, .L56+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L38
	sub	r3, fp, #40
	mov	r0, r3
	bl	swap
.L38:
	ldr	r3, [fp, #-40]	@ float
	mov	r1, r3
	mov	r0, r3
	bl	__aeabi_fcmpun
	mov	r3, r0
	cmp	r3, #0
	beq	.L39
	mov	r3, #0
	str	r3, [fp, #-40]	@ float
.L39:
	ldr	r3, [fp, #-40]	@ float
	mov	r1, #0
	mov	r0, r3
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	mov	r3, #0
	str	r3, [fp, #-40]	@ float
.L41:
	ldr	r3, .L56+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L43
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-56]
	mul	r2, r3, r2
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	lsl	r3, r3, #4
	add	r3, r3, #8
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]	@ float
	str	r2, [r3]	@ float
	b	.L44
.L43:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-56]
	mul	r2, r3, r2
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	lsl	r3, r3, #4
	add	r3, r3, #8
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]	@ float
	str	r2, [r3]	@ float
.L44:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-56]
	mul	r2, r3, r2
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	lsl	r3, r3, #4
	add	r3, r3, #12
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #1065353216
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L23:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L45
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L22:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L46
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-44]
	sub	r3, fp, #44
	mov	r0, r3
	bl	endconv
	sub	r0, fp, #44
	ldr	r3, [fp, #-28]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-44]
	sub	r3, fp, #44
	mov	r0, r3
	bl	endconv
	sub	r0, fp, #44
	ldr	r3, [fp, #-28]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L47
.L48:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	str	r3, [fp, #-40]	@ float
	sub	r3, fp, #40
	mov	r0, r3
	bl	endconv
	sub	r0, fp, #40
	ldr	r3, [fp, #-28]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L47:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-20]
	mul	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	blt	.L48
	ldr	r0, [fp, #-24]
	bl	fclose
	ldr	r0, [fp, #-28]
	bl	fclose
	nop
	ldr	r3, .L56
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L57:
	.align	2
.L56:
	.word	.LC7
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	swapflag
	.word	.LC6
	.word	flipflag
	.size	write_texture, .-write_texture
	.section	.rodata
	.align	2
.LC8:
	.ascii	"usage: hdr2tex outfile.tex infile.float width [swap"
	.ascii	"] [flip]\000"
	.align	2
.LC9:
	.ascii	"swap\000"
	.align	2
.LC10:
	.ascii	"flip\000"
	.align	2
.LC11:
	.ascii	"swap = %d, flip = %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	bgt	.L59
	ldr	r0, .L65
	bl	puts
.L59:
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	ble	.L60
	ldr	r3, [fp, #-20]
	add	r3, r3, #16
	ldr	r3, [r3]
	ldr	r1, .L65+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L61
	ldr	r3, .L65+8
	mov	r2, #1
	str	r2, [r3]
.L61:
	ldr	r3, [fp, #-20]
	add	r3, r3, #16
	ldr	r3, [r3]
	ldr	r1, .L65+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L60
	ldr	r3, .L65+16
	mov	r2, #1
	str	r2, [r3]
.L60:
	ldr	r3, [fp, #-16]
	cmp	r3, #5
	ble	.L62
	ldr	r3, [fp, #-20]
	add	r3, r3, #20
	ldr	r3, [r3]
	ldr	r1, .L65+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L63
	ldr	r3, .L65+8
	mov	r2, #1
	str	r2, [r3]
.L63:
	ldr	r3, [fp, #-20]
	add	r3, r3, #20
	ldr	r3, [r3]
	ldr	r1, .L65+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L62
	ldr	r3, .L65+16
	mov	r2, #1
	str	r2, [r3]
.L62:
	ldr	r3, .L65+8
	ldr	r3, [r3]
	ldr	r2, .L65+16
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L65+20
	bl	printf
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r4, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	ldr	r5, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	mov	r1, r5
	mov	r0, r4
	bl	write_texture
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC8
	.word	.LC9
	.word	swapflag
	.word	.LC10
	.word	flipflag
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
