	.file	"629246.c"
	.intel_syntax noprefix
	.text
	.globl	wave
	.bss
	.type	wave, @object
	.size	wave, 5
wave:
	.zero	5
	.globl	data
	.type	data, @object
	.size	data, 5
data:
	.zero	5
	.globl	riff
	.type	riff, @object
	.size	riff, 5
riff:
	.zero	5
	.globl	fmt
	.type	fmt, @object
	.size	fmt, 5
fmt:
	.zero	5
	.globl	NUM_TESTS
	.section	.rodata
	.align 4
	.type	NUM_TESTS, @object
	.size	NUM_TESTS, 4
NUM_TESTS:
	.long	13
	.globl	SIZE_OF_HEADER
	.align 4
	.type	SIZE_OF_HEADER, @object
	.size	SIZE_OF_HEADER, 4
SIZE_OF_HEADER:
	.long	44
	.globl	SAMPLE_RATE
	.align 4
	.type	SAMPLE_RATE, @object
	.size	SAMPLE_RATE, 4
SAMPLE_RATE:
	.long	44100
	.globl	SUBCHUNK_SIZE
	.align 4
	.type	SUBCHUNK_SIZE, @object
	.size	SUBCHUNK_SIZE, 4
SUBCHUNK_SIZE:
	.long	16
	.globl	BIT_RATE
	.align 4
	.type	BIT_RATE, @object
	.size	BIT_RATE, 4
BIT_RATE:
	.long	16
	.globl	NUM_CHANNELS
	.align 4
	.type	NUM_CHANNELS, @object
	.size	NUM_CHANNELS, 4
NUM_CHANNELS:
	.long	1
	.globl	BYTE_SIZE
	.align 4
	.type	BYTE_SIZE, @object
	.size	BYTE_SIZE, 4
BYTE_SIZE:
	.long	8
	.globl	BYTE_RATE
	.align 4
	.type	BYTE_RATE, @object
	.size	BYTE_RATE, 4
BYTE_RATE:
	.long	88200
	.globl	BLOCK_ALIGN
	.align 4
	.type	BLOCK_ALIGN, @object
	.size	BLOCK_ALIGN, 4
BLOCK_ALIGN:
	.long	2
	.globl	RIFF_LOC
	.align 4
	.type	RIFF_LOC, @object
	.size	RIFF_LOC, 4
RIFF_LOC:
	.zero	4
	.globl	FILE_SIZE_LOC
	.align 4
	.type	FILE_SIZE_LOC, @object
	.size	FILE_SIZE_LOC, 4
FILE_SIZE_LOC:
	.long	4
	.globl	WAVE_LOC
	.align 4
	.type	WAVE_LOC, @object
	.size	WAVE_LOC, 4
WAVE_LOC:
	.long	8
	.globl	FMT_LOC
	.align 4
	.type	FMT_LOC, @object
	.size	FMT_LOC, 4
FMT_LOC:
	.long	12
	.globl	SUBCHUNK_LOC
	.align 4
	.type	SUBCHUNK_LOC, @object
	.size	SUBCHUNK_LOC, 4
SUBCHUNK_LOC:
	.long	16
	.globl	PCM_LOC
	.align 4
	.type	PCM_LOC, @object
	.size	PCM_LOC, 4
PCM_LOC:
	.long	20
	.globl	NUM_CHANNELS_LOC
	.align 4
	.type	NUM_CHANNELS_LOC, @object
	.size	NUM_CHANNELS_LOC, 4
NUM_CHANNELS_LOC:
	.long	22
	.globl	SAMPLE_RATE_LOC
	.align 4
	.type	SAMPLE_RATE_LOC, @object
	.size	SAMPLE_RATE_LOC, 4
SAMPLE_RATE_LOC:
	.long	24
	.globl	BYTE_RATE_LOC
	.align 4
	.type	BYTE_RATE_LOC, @object
	.size	BYTE_RATE_LOC, 4
BYTE_RATE_LOC:
	.long	28
	.globl	BLOCK_ALIGN_LOC
	.align 4
	.type	BLOCK_ALIGN_LOC, @object
	.size	BLOCK_ALIGN_LOC, 4
BLOCK_ALIGN_LOC:
	.long	32
	.globl	BIT_RATE_LOC
	.align 4
	.type	BIT_RATE_LOC, @object
	.size	BIT_RATE_LOC, 4
BIT_RATE_LOC:
	.long	34
	.globl	DATA_LOC
	.align 4
	.type	DATA_LOC, @object
	.size	DATA_LOC, 4
DATA_LOC:
	.long	36
	.globl	DATA_SIZE_LOC
	.align 4
	.type	DATA_SIZE_LOC, @object
	.size	DATA_SIZE_LOC, 4
DATA_SIZE_LOC:
	.long	40
	.align 8
.LC0:
	.string	"ERROR: Filename needed as argument"
.LC1:
	.string	"r"
.LC2:
	.string	"%c"
	.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
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	cmp	DWORD PTR -68[rbp], 1
	jg	.L2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L3
.L2:
	mov	eax, 44
	cdqe
	sub	rax, 1
	mov	QWORD PTR -56[rbp], rax
	mov	eax, 44
	cdqe
	mov	r10, rax
	mov	r11d, 0
	mov	eax, 44
	cdqe
	mov	r8, rax
	mov	r9d, 0
	mov	eax, 44
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	ecx, 16
	mov	edx, 0
	div	rcx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L4:
	cmp	rsp, rdx
	je	.L5
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L4
.L5:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L6
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L6:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR wave[rip], 1163280727
	mov	BYTE PTR wave[rip+4], 0
	mov	DWORD PTR data[rip], 1635017060
	mov	BYTE PTR data[rip+4], 0
	mov	DWORD PTR riff[rip], 1179011410
	mov	BYTE PTR riff[rip+4], 0
	mov	DWORD PTR fmt[rip], 544501094
	mov	BYTE PTR fmt[rip+4], 0
	mov	DWORD PTR -60[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	add	DWORD PTR -60[rbp], 1
.L7:
	mov	eax, 44
	cmp	DWORD PTR -60[rbp], eax
	jl	.L8
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	verify_header
	mov	eax, 0
.L3:
	mov	rsp, rbx
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC3:
	.string	"PASS TOTAL: %d\n"
.LC4:
	.string	"PASS: ALL TESTS PASS"
.LC5:
	.string	"FAIL: %d TESTS FAILED\n"
	.text
	.globl	verify_header
	.type	verify_header, @function
verify_header:
.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	mov	edx, 0
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, riff[rip]
	mov	rdi, rax
	call	verify_string
	add	DWORD PTR -4[rbp], eax
	mov	edx, 8
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, wave[rip]
	mov	rdi, rax
	call	verify_string
	add	DWORD PTR -4[rbp], eax
	mov	edx, 12
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, fmt[rip]
	mov	rdi, rax
	call	verify_string
	add	DWORD PTR -4[rbp], eax
	mov	edx, 36
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, data[rip]
	mov	rdi, rax
	call	verify_string
	add	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	verify_constants
	add	DWORD PTR -4[rbp], eax
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	verify_size
	add	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 13
	cmp	DWORD PTR -4[rbp], eax
	jne	.L12
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L14
.L12:
	mov	eax, 13
	sub	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L14:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	verify_header, .-verify_header
	.section	.rodata
	.align 8
.LC6:
	.string	"FAIL: overall file size - header size = %ld, should be %ld\n"
	.align 8
.LC7:
	.string	"PASS: overall filesize - header size = %ld\n"
	.align 8
.LC8:
	.string	"FAIL: data size = %ld, should be %ld\n"
.LC9:
	.string	"PASS: data size = %ld\n"
	.text
	.globl	verify_size
	.type	verify_size, @function
verify_size:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	ecx, 4
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 4
	mov	esi, ecx
	mov	rdi, rax
	call	long_le_to_d
	mov	QWORD PTR -16[rbp], rax
	mov	ecx, 40
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 4
	mov	esi, ecx
	mov	rdi, rax
	call	long_le_to_d
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -20[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, 8
	cmp	QWORD PTR -16[rbp], rax
	je	.L16
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L17
.L16:
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -20[rbp], 1
.L17:
	mov	eax, 44
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, rdx
	cmp	QWORD PTR -8[rbp], rax
	je	.L18
	mov	eax, 44
	movsx	rcx, eax
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, rcx
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L19
.L18:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -20[rbp], 1
.L19:
	mov	eax, DWORD PTR -20[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	verify_size, .-verify_size
	.section	.rodata
.LC10:
	.string	"PASS: %s found\n"
.LC11:
	.string	"FAIL: %s missing\n"
	.text
	.globl	verify_string
	.type	verify_string, @function
verify_string:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	edx, DWORD PTR -20[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	compare_header_text
	test	eax, eax
	jne	.L22
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L23
.L22:
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	verify_string, .-verify_string
	.globl	compare_header_text
	.type	compare_header_text, @function
compare_header_text:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -9[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L25
.L26:
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -52[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	BYTE PTR -13[rbp+rax], dl
	add	DWORD PTR -20[rbp], 1
.L25:
	cmp	DWORD PTR -20[rbp], 3
	jle	.L26
	lea	rdx, -13[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	compare_header_text, .-compare_header_text
	.section	.rodata
	.align 8
.LC12:
	.string	"FAIL: subchunk is: %d, should be set to %d\n"
.LC13:
	.string	"PASS: subchunk is set to %d\n"
	.align 8
.LC14:
	.string	"FAIL: format is: %d, should be set to 1 (PCM)\n"
.LC15:
	.string	"PASS: format set to 1 (PCM)"
	.align 8
.LC16:
	.string	"FAIL: number of channels is: %d, should be set to 1 (mono)\n"
	.align 8
.LC17:
	.string	"PASS: channels set to 1 (mono)"
	.align 8
.LC18:
	.string	"FAIL: sample rate is: %d, should be set to %dkhz\n"
	.align 8
.LC19:
	.string	"PASS: sample rate set to %dkhz\n"
	.align 8
.LC20:
	.string	"FAIL: byte rate: %d should be set to %d\n"
.LC21:
	.string	"PASS: byte rate equal to %d\n"
	.align 8
.LC22:
	.string	"FAIL: block align is: %d, should be set to %d\n"
	.align 8
.LC23:
	.string	"PASS: block align equal to %d\n"
	.align 8
.LC24:
	.string	"FAIL: bit rate is: %d, should be set to %d\n"
.LC25:
	.string	"PASS: bit rate set to %d\n"
	.text
	.globl	verify_constants
	.type	verify_constants, @function
verify_constants:
.LFB11:
	.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	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -32[rbp], 0
	mov	ecx, 16
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 4
	mov	esi, ecx
	mov	rdi, rax
	call	le_to_d
	mov	DWORD PTR -28[rbp], eax
	mov	eax, 16
	cmp	DWORD PTR -28[rbp], eax
	je	.L30
	mov	edx, 16
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L31
.L30:
	mov	eax, 16
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -32[rbp], 1
.L31:
	mov	ecx, 20
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 2
	mov	esi, ecx
	mov	rdi, rax
	call	le_to_d
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 1
	je	.L32
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L33
.L32:
	lea	rdi, .LC15[rip]
	call	puts@PLT
	add	DWORD PTR -32[rbp], 1
.L33:
	mov	ecx, 22
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 2
	mov	esi, ecx
	mov	rdi, rax
	call	le_to_d
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 1
	je	.L34
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L35
.L34:
	lea	rdi, .LC17[rip]
	call	puts@PLT
	add	DWORD PTR -32[rbp], 1
.L35:
	mov	ecx, 24
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 4
	mov	esi, ecx
	mov	rdi, rax
	call	le_to_d
	mov	DWORD PTR -16[rbp], eax
	mov	eax, 44100
	cmp	DWORD PTR -16[rbp], eax
	je	.L36
	mov	edx, 44100
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L37
.L36:
	mov	eax, 44100
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -32[rbp], 1
.L37:
	mov	ecx, 28
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 4
	mov	esi, ecx
	mov	rdi, rax
	call	le_to_d
	mov	DWORD PTR -12[rbp], eax
	mov	eax, 88200
	cmp	DWORD PTR -12[rbp], eax
	je	.L38
	mov	edx, 88200
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L39
.L38:
	mov	eax, 88200
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -32[rbp], 1
.L39:
	mov	ecx, 32
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 2
	mov	esi, ecx
	mov	rdi, rax
	call	le_to_d
	mov	DWORD PTR -8[rbp], eax
	mov	eax, 2
	cmp	DWORD PTR -8[rbp], eax
	je	.L40
	mov	edx, 2
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L41
.L40:
	mov	eax, 2
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -32[rbp], 1
.L41:
	mov	ecx, 34
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 2
	mov	esi, ecx
	mov	rdi, rax
	call	le_to_d
	mov	DWORD PTR -4[rbp], eax
	mov	eax, 16
	cmp	DWORD PTR -4[rbp], eax
	je	.L42
	mov	edx, 16
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L43
.L42:
	mov	eax, 16
	mov	esi, eax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -32[rbp], 1
.L43:
	mov	eax, DWORD PTR -32[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	verify_constants, .-verify_constants
	.globl	le_to_d
	.type	le_to_d, @function
le_to_d:
.LFB12:
	.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L46
.L47:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, 8
	imul	eax, DWORD PTR -4[rbp]
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	or	DWORD PTR -8[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L46:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L47
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	le_to_d, .-le_to_d
	.globl	long_le_to_d
	.type	long_le_to_d, @function
long_le_to_d:
.LFB13:
	.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	QWORD PTR -8[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L50
.L51:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, 8
	imul	eax, DWORD PTR -12[rbp]
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	cdqe
	or	QWORD PTR -8[rbp], rax
	add	DWORD PTR -12[rbp], 1
.L50:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L51
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	long_le_to_d, .-long_le_to_d
	.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	"629246.c"
	.text
	.comm	wave,5,4
	.comm	data,5,4
	.comm	riff,5,4
	.comm	fmt,5,4
	.global	NUM_TESTS
	.section	.rodata
	.align	2
	.type	NUM_TESTS, %object
	.size	NUM_TESTS, 4
NUM_TESTS:
	.word	13
	.global	SIZE_OF_HEADER
	.align	2
	.type	SIZE_OF_HEADER, %object
	.size	SIZE_OF_HEADER, 4
SIZE_OF_HEADER:
	.word	44
	.global	SAMPLE_RATE
	.align	2
	.type	SAMPLE_RATE, %object
	.size	SAMPLE_RATE, 4
SAMPLE_RATE:
	.word	44100
	.global	SUBCHUNK_SIZE
	.align	2
	.type	SUBCHUNK_SIZE, %object
	.size	SUBCHUNK_SIZE, 4
SUBCHUNK_SIZE:
	.word	16
	.global	BIT_RATE
	.align	2
	.type	BIT_RATE, %object
	.size	BIT_RATE, 4
BIT_RATE:
	.word	16
	.global	NUM_CHANNELS
	.align	2
	.type	NUM_CHANNELS, %object
	.size	NUM_CHANNELS, 4
NUM_CHANNELS:
	.word	1
	.global	BYTE_SIZE
	.align	2
	.type	BYTE_SIZE, %object
	.size	BYTE_SIZE, 4
BYTE_SIZE:
	.word	8
	.global	BYTE_RATE
	.align	2
	.type	BYTE_RATE, %object
	.size	BYTE_RATE, 4
BYTE_RATE:
	.word	88200
	.global	BLOCK_ALIGN
	.align	2
	.type	BLOCK_ALIGN, %object
	.size	BLOCK_ALIGN, 4
BLOCK_ALIGN:
	.word	2
	.global	RIFF_LOC
	.align	2
	.type	RIFF_LOC, %object
	.size	RIFF_LOC, 4
RIFF_LOC:
	.space	4
	.global	FILE_SIZE_LOC
	.align	2
	.type	FILE_SIZE_LOC, %object
	.size	FILE_SIZE_LOC, 4
FILE_SIZE_LOC:
	.word	4
	.global	WAVE_LOC
	.align	2
	.type	WAVE_LOC, %object
	.size	WAVE_LOC, 4
WAVE_LOC:
	.word	8
	.global	FMT_LOC
	.align	2
	.type	FMT_LOC, %object
	.size	FMT_LOC, 4
FMT_LOC:
	.word	12
	.global	SUBCHUNK_LOC
	.align	2
	.type	SUBCHUNK_LOC, %object
	.size	SUBCHUNK_LOC, 4
SUBCHUNK_LOC:
	.word	16
	.global	PCM_LOC
	.align	2
	.type	PCM_LOC, %object
	.size	PCM_LOC, 4
PCM_LOC:
	.word	20
	.global	NUM_CHANNELS_LOC
	.align	2
	.type	NUM_CHANNELS_LOC, %object
	.size	NUM_CHANNELS_LOC, 4
NUM_CHANNELS_LOC:
	.word	22
	.global	SAMPLE_RATE_LOC
	.align	2
	.type	SAMPLE_RATE_LOC, %object
	.size	SAMPLE_RATE_LOC, 4
SAMPLE_RATE_LOC:
	.word	24
	.global	BYTE_RATE_LOC
	.align	2
	.type	BYTE_RATE_LOC, %object
	.size	BYTE_RATE_LOC, 4
BYTE_RATE_LOC:
	.word	28
	.global	BLOCK_ALIGN_LOC
	.align	2
	.type	BLOCK_ALIGN_LOC, %object
	.size	BLOCK_ALIGN_LOC, 4
BLOCK_ALIGN_LOC:
	.word	32
	.global	BIT_RATE_LOC
	.align	2
	.type	BIT_RATE_LOC, %object
	.size	BIT_RATE_LOC, 4
BIT_RATE_LOC:
	.word	34
	.global	DATA_LOC
	.align	2
	.type	DATA_LOC, %object
	.size	DATA_LOC, 4
DATA_LOC:
	.word	36
	.global	DATA_SIZE_LOC
	.align	2
	.type	DATA_SIZE_LOC, %object
	.size	DATA_SIZE_LOC, 4
DATA_SIZE_LOC:
	.word	40
	.align	2
.LC0:
	.ascii	"ERROR: Filename needed as argument\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"WAVE\000"
	.align	2
.LC3:
	.ascii	"data\000"
	.align	2
.LC4:
	.ascii	"RIFF\000"
	.align	2
.LC5:
	.ascii	"fmt \000"
	.align	2
.LC6:
	.ascii	"%c\000"
	.align	2
.LC7:
	.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	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	bgt	.L2
	ldr	r0, .L8+4
	bl	printf
	mvn	r3, #0
	b	.L3
.L2:
	mov	r3, #44
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	mov	r3, #44
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, #44
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, #44
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L8+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r2, .L8+12
	ldr	r3, .L8+16
	mov	r0, r2
	mov	r1, r3
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	ldr	r2, .L8+20
	ldr	r3, .L8+24
	mov	r0, r2
	mov	r1, r3
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	ldr	r2, .L8+28
	ldr	r3, .L8+32
	mov	r0, r2
	mov	r1, r3
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	ldr	r2, .L8+36
	ldr	r3, .L8+40
	mov	r0, r2
	mov	r1, r3
	mov	r3, #5
	mov	r2, r3
	bl	memcpy
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L4
.L5:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L8+44
	ldr	r0, [fp, #-24]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L4:
	mov	r2, #44
	ldr	r3, [fp, #-36]
	cmp	r3, r2
	blt	.L5
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	fseek
	ldr	r0, [fp, #-24]
	bl	ftell
	str	r0, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	fclose
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-28]
	bl	verify_header
	mov	r3, #0
.L3:
	mov	sp, r4
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	wave
	.word	.LC2
	.word	data
	.word	.LC3
	.word	riff
	.word	.LC4
	.word	fmt
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.section	.rodata
	.align	2
.LC8:
	.ascii	"PASS TOTAL: %d\012\000"
	.align	2
.LC9:
	.ascii	"PASS: ALL TESTS PASS\000"
	.align	2
.LC10:
	.ascii	"FAIL: %d TESTS FAILED\012\000"
	.text
	.align	2
	.global	verify_header
	.syntax unified
	.arm
	.fpu softvfp
	.type	verify_header, %function
verify_header:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	mov	r2, r3
	ldr	r1, .L14
	ldr	r0, [fp, #-16]
	bl	verify_string
	mov	r2, r0
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	mov	r3, #8
	mov	r2, r3
	ldr	r1, .L14+4
	ldr	r0, [fp, #-16]
	bl	verify_string
	mov	r2, r0
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	mov	r3, #12
	mov	r2, r3
	ldr	r1, .L14+8
	ldr	r0, [fp, #-16]
	bl	verify_string
	mov	r2, r0
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	mov	r3, #36
	mov	r2, r3
	ldr	r1, .L14+12
	ldr	r0, [fp, #-16]
	bl	verify_string
	mov	r2, r0
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	verify_constants
	mov	r2, r0
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	verify_size
	mov	r2, r0
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L14+16
	bl	printf
	mov	r2, #13
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bne	.L11
	ldr	r0, .L14+20
	bl	puts
	b	.L13
.L11:
	mov	r2, #13
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L14+24
	bl	printf
.L13:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	riff
	.word	wave
	.word	fmt
	.word	data
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	verify_header, .-verify_header
	.section	.rodata
	.align	2
.LC11:
	.ascii	"FAIL: overall file size - header size = %ld, should"
	.ascii	" be %ld\012\000"
	.align	2
.LC12:
	.ascii	"PASS: overall filesize - header size = %ld\012\000"
	.align	2
.LC13:
	.ascii	"FAIL: data size = %ld, should be %ld\012\000"
	.align	2
.LC14:
	.ascii	"PASS: data size = %ld\012\000"
	.text
	.align	2
	.global	verify_size
	.syntax unified
	.arm
	.fpu softvfp
	.type	verify_size, %function
verify_size:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #4
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	long_le_to_d
	str	r0, [fp, #-12]
	mov	r3, #40
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	long_le_to_d
	str	r0, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	sub	r3, r3, #8
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	beq	.L17
	ldr	r3, [fp, #-28]
	sub	r3, r3, #8
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, .L22
	bl	printf
	b	.L18
.L17:
	ldr	r1, [fp, #-12]
	ldr	r0, .L22+4
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L18:
	mov	r2, #44
	ldr	r3, [fp, #-28]
	sub	r3, r3, r2
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L19
	mov	r2, #44
	ldr	r3, [fp, #-28]
	sub	r3, r3, r2
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L22+8
	bl	printf
	b	.L20
.L19:
	ldr	r1, [fp, #-8]
	ldr	r0, .L22+12
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L20:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	verify_size, .-verify_size
	.section	.rodata
	.align	2
.LC15:
	.ascii	"PASS: %s found\012\000"
	.align	2
.LC16:
	.ascii	"FAIL: %s missing\012\000"
	.text
	.align	2
	.global	verify_string
	.syntax unified
	.arm
	.fpu softvfp
	.type	verify_string, %function
verify_string:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	compare_header_text
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r1, [fp, #-12]
	ldr	r0, .L27
	bl	printf
	mov	r3, #1
	b	.L26
.L25:
	ldr	r1, [fp, #-12]
	ldr	r0, .L27+4
	bl	printf
	mov	r3, #0
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC15
	.word	.LC16
	.size	verify_string, .-verify_string
	.section	.rodata
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	compare_header_text
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare_header_text, %function
compare_header_text:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L30
.L31:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #16
	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]
.L30:
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	ble	.L31
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	strcmp
	mov	r3, r0
	ldr	r2, .L34
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC17
	.size	compare_header_text, .-compare_header_text
	.section	.rodata
	.align	2
.LC18:
	.ascii	"FAIL: subchunk is: %d, should be set to %d\012\000"
	.align	2
.LC19:
	.ascii	"PASS: subchunk is set to %d\012\000"
	.align	2
.LC20:
	.ascii	"FAIL: format is: %d, should be set to 1 (PCM)\012\000"
	.align	2
.LC21:
	.ascii	"PASS: format set to 1 (PCM)\000"
	.align	2
.LC22:
	.ascii	"FAIL: number of channels is: %d, should be set to 1"
	.ascii	" (mono)\012\000"
	.align	2
.LC23:
	.ascii	"PASS: channels set to 1 (mono)\000"
	.align	2
.LC24:
	.ascii	"FAIL: sample rate is: %d, should be set to %dkhz\012"
	.ascii	"\000"
	.align	2
.LC25:
	.ascii	"PASS: sample rate set to %dkhz\012\000"
	.align	2
.LC26:
	.ascii	"FAIL: byte rate: %d should be set to %d\012\000"
	.align	2
.LC27:
	.ascii	"PASS: byte rate equal to %d\012\000"
	.align	2
.LC28:
	.ascii	"FAIL: block align is: %d, should be set to %d\012\000"
	.align	2
.LC29:
	.ascii	"PASS: block align equal to %d\012\000"
	.align	2
.LC30:
	.ascii	"FAIL: bit rate is: %d, should be set to %d\012\000"
	.align	2
.LC31:
	.ascii	"PASS: bit rate set to %d\012\000"
	.text
	.align	2
	.global	verify_constants
	.syntax unified
	.arm
	.fpu softvfp
	.type	verify_constants, %function
verify_constants:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #16
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	le_to_d
	str	r0, [fp, #-32]
	mov	r2, #16
	ldr	r3, [fp, #-32]
	cmp	r3, r2
	beq	.L37
	mov	r3, #16
	mov	r2, r3
	ldr	r1, [fp, #-32]
	ldr	r0, .L52
	bl	printf
	b	.L38
.L37:
	mov	r3, #16
	mov	r1, r3
	ldr	r0, .L52+4
	bl	printf
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L38:
	mov	r3, #20
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	le_to_d
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	beq	.L39
	ldr	r1, [fp, #-28]
	ldr	r0, .L52+8
	bl	printf
	b	.L40
.L39:
	ldr	r0, .L52+12
	bl	puts
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L40:
	mov	r3, #22
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	le_to_d
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	beq	.L41
	ldr	r1, [fp, #-24]
	ldr	r0, .L52+16
	bl	printf
	b	.L42
.L41:
	ldr	r0, .L52+20
	bl	puts
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L42:
	mov	r3, #24
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	le_to_d
	str	r0, [fp, #-20]
	ldr	r2, .L52+24
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	beq	.L43
	ldr	r3, .L52+24
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, .L52+28
	bl	printf
	b	.L44
.L43:
	ldr	r3, .L52+24
	mov	r1, r3
	ldr	r0, .L52+32
	bl	printf
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L44:
	mov	r3, #28
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	le_to_d
	str	r0, [fp, #-16]
	ldr	r2, .L52+36
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	beq	.L45
	ldr	r3, .L52+36
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, .L52+40
	bl	printf
	b	.L46
.L45:
	ldr	r3, .L52+36
	mov	r1, r3
	ldr	r0, .L52+44
	bl	printf
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L46:
	mov	r3, #32
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	le_to_d
	str	r0, [fp, #-12]
	mov	r2, #2
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	beq	.L47
	mov	r3, #2
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, .L52+48
	bl	printf
	b	.L48
.L47:
	mov	r3, #2
	mov	r1, r3
	ldr	r0, .L52+52
	bl	printf
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L48:
	mov	r3, #34
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	le_to_d
	str	r0, [fp, #-8]
	mov	r2, #16
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	beq	.L49
	mov	r3, #16
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L52+56
	bl	printf
	b	.L50
.L49:
	mov	r3, #16
	mov	r1, r3
	ldr	r0, .L52+60
	bl	printf
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L50:
	ldr	r3, [fp, #-36]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	44100
	.word	.LC24
	.word	.LC25
	.word	88200
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.size	verify_constants, .-verify_constants
	.align	2
	.global	le_to_d
	.syntax unified
	.arm
	.fpu softvfp
	.type	le_to_d, %function
le_to_d:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L55
.L56:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	mov	r2, #8
	ldr	r3, [fp, #-8]
	mul	r3, r2, r3
	lsl	r3, r1, r3
	ldr	r2, [fp, #-12]
	orr	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L55:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L56
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	le_to_d, .-le_to_d
	.align	2
	.global	long_le_to_d
	.syntax unified
	.arm
	.fpu softvfp
	.type	long_le_to_d, %function
long_le_to_d:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L59
.L60:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	mov	r2, #8
	ldr	r3, [fp, #-8]
	mul	r3, r2, r3
	lsl	r3, r1, r3
	ldr	r2, [fp, #-12]
	orr	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L59:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L60
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	long_le_to_d, .-long_le_to_d
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
