	.file	"712814.c"
	.intel_syntax noprefix
	.text
	.globl	bios_data
	.bss
	.align 32
	.type	bios_data, @object
	.size	bios_data, 65536
bios_data:
	.zero	65536
	.section	.rodata
	.align 8
.LC0:
	.string	"Error. Need a file-name as an argument."
.LC1:
	.string	"rb"
	.align 8
.LC2:
	.string	"Error opening %s for reading.\n"
	.align 8
.LC3:
	.string	"Error reading 64KBytes from %s.\n"
.LC4:
	.string	"\n\nPCI-Bios header at: 0x%4lX\n"
.LC5:
	.string	"Current checksum:     0x%02X\n"
	.align 8
.LC6:
	.string	"Calculated checksum:  0x%02X  "
.LC7:
	.string	"Setting checksum."
	.align 8
.LC8:
	.string	"Multiple PCI headers! No checksum set."
.LC9:
	.string	"\n\nMP header at:       0x%4lX\n"
	.align 8
.LC10:
	.string	"Warning! Multiple MP headers. No checksum set."
.LC11:
	.string	"\n\nPCMP header at:     0x%4lX\n"
	.align 8
.LC12:
	.string	"Warning! Multiple PCMP headers. No checksum set."
.LC13:
	.string	"\n\n$PIR header at:     0x%4lX\n"
	.align 8
.LC14:
	.string	"Calculated checksum:  0x%02X\n  "
	.align 8
.LC15:
	.string	"Warning! Multiple $PIR headers. No checksum set."
.LC16:
	.string	"\n\nBios checksum at:   0x%4lX\n"
.LC17:
	.string	"wb"
	.align 8
.LC18:
	.string	"Error opening %s for writing.\n"
	.align 8
.LC19:
	.string	"Error writing 64KBytes to %s.\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	BYTE PTR -30[rbp], 0
	mov	BYTE PTR -29[rbp], 0
	cmp	DWORD PTR -36[rbp], 2
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L3
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	edx, 65536
	mov	esi, 1
	lea	rdi, bios_data[rip]
	call	fread@PLT
	cmp	rax, 65535
	ja	.L4
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	DWORD PTR -28[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	jmp	.L5
.L6:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, bios_data[rip]
	call	chksum__32__get_value
	mov	BYTE PTR -30[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, bios_data[rip]
	call	chksum__32__calc_value
	mov	BYTE PTR -29[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -30[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -29[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -28[rbp], 1
.L5:
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, bios_data[rip]
	call	chksum__32__get_offset
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	jne	.L6
	cmp	DWORD PTR -28[rbp], 1
	jne	.L7
	movzx	eax, BYTE PTR -30[rbp]
	cmp	al, BYTE PTR -29[rbp]
	je	.L7
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	edx, BYTE PTR -29[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, bios_data[rip]
	call	chksum__32__set_value
.L7:
	cmp	DWORD PTR -28[rbp], 1
	jle	.L8
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	cmp	DWORD PTR -28[rbp], 0
	je	.L9
	mov	edi, 10
	call	putchar@PLT
.L9:
	mov	DWORD PTR -28[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, bios_data[rip]
	call	chksum__mp__get_value
	mov	BYTE PTR -30[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, bios_data[rip]
	call	chksum__mp__calc_value
	mov	BYTE PTR -29[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -30[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -29[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -28[rbp], 1
.L10:
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, bios_data[rip]
	call	chksum__mp__get_offset
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	jne	.L11
	cmp	DWORD PTR -28[rbp], 1
	jne	.L12
	movzx	eax, BYTE PTR -30[rbp]
	cmp	al, BYTE PTR -29[rbp]
	je	.L12
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	edx, BYTE PTR -29[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, bios_data[rip]
	call	chksum__mp__set_value
.L12:
	cmp	DWORD PTR -28[rbp], 1
	jle	.L13
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	cmp	DWORD PTR -28[rbp], 0
	je	.L14
	mov	edi, 10
	call	putchar@PLT
.L14:
	mov	DWORD PTR -28[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, bios_data[rip]
	call	chksum_pcmp_get_value
	mov	BYTE PTR -30[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, bios_data[rip]
	call	chksum_pcmp_calc_value
	mov	BYTE PTR -29[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -30[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -29[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -28[rbp], 1
.L15:
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, bios_data[rip]
	call	chksum_pcmp_get_offset
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	jne	.L16
	cmp	DWORD PTR -28[rbp], 1
	jne	.L17
	movzx	eax, BYTE PTR -30[rbp]
	cmp	al, BYTE PTR -29[rbp]
	je	.L17
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	edx, BYTE PTR -29[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, bios_data[rip]
	call	chksum_pcmp_set_value
.L17:
	cmp	DWORD PTR -28[rbp], 1
	jle	.L18
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L18:
	cmp	DWORD PTR -28[rbp], 0
	je	.L19
	mov	edi, 10
	call	putchar@PLT
.L19:
	mov	DWORD PTR -28[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	jmp	.L20
.L21:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, bios_data[rip]
	call	chksum__pir_get_value
	mov	BYTE PTR -30[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, bios_data[rip]
	call	chksum__pir_calc_value
	mov	BYTE PTR -29[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -30[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -29[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -28[rbp], 1
.L20:
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, bios_data[rip]
	call	chksum__pir_get_offset
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	jne	.L21
	cmp	DWORD PTR -28[rbp], 1
	jne	.L22
	movzx	eax, BYTE PTR -30[rbp]
	cmp	al, BYTE PTR -29[rbp]
	je	.L22
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	edx, BYTE PTR -29[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, bios_data[rip]
	call	chksum__pir_set_value
.L22:
	cmp	DWORD PTR -28[rbp], 1
	jle	.L23
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
.L23:
	cmp	DWORD PTR -28[rbp], 0
	je	.L24
	mov	edi, 10
	call	putchar@PLT
.L24:
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, bios_data[rip]
	call	chksum_bios_get_offset
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, bios_data[rip]
	call	chksum_bios_get_value
	mov	BYTE PTR -30[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, bios_data[rip]
	call	chksum_bios_calc_value
	mov	BYTE PTR -29[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -30[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -29[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -30[rbp]
	cmp	al, BYTE PTR -29[rbp]
	je	.L25
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	edx, BYTE PTR -29[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, bios_data[rip]
	call	chksum_bios_set_value
.L25:
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L26
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	edx, 65536
	mov	esi, 1
	lea	rdi, bios_data[rip]
	call	fwrite@PLT
	cmp	rax, 65535
	ja	.L27
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edi, 1
	call	exit@PLT
.L27:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC20:
	.string	"\n\nError. %s.\n"
	.text
	.globl	check
	.type	check, @function
check:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 0
	jne	.L31
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L31:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	check, .-check
	.globl	chksum_bios_get_offset
	.type	chksum_bios_get_offset, @function
chksum_bios_get_offset:
.LFB8:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	eax, 65535
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	chksum_bios_get_offset, .-chksum_bios_get_offset
	.globl	chksum_bios_calc_value
	.type	chksum_bios_calc_value, @function
chksum_bios_calc_value:
.LFB9:
	.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	QWORD PTR -32[rbp], rsi
	mov	BYTE PTR -5[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L35
.L36:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	add	BYTE PTR -5[rbp], al
	add	DWORD PTR -4[rbp], 1
.L35:
	cmp	DWORD PTR -4[rbp], 65534
	jle	.L36
	neg	BYTE PTR -5[rbp]
	movzx	eax, BYTE PTR -5[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	chksum_bios_calc_value, .-chksum_bios_calc_value
	.globl	chksum_bios_get_value
	.type	chksum_bios_get_value, @function
chksum_bios_get_value:
.LFB10:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 65535[rax]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	chksum_bios_get_value, .-chksum_bios_get_value
	.globl	chksum_bios_set_value
	.type	chksum_bios_set_value, @function
chksum_bios_set_value:
.LFB11:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	eax, edx
	mov	BYTE PTR -20[rbp], al
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 65535[rax]
	movzx	eax, BYTE PTR -20[rbp]
	mov	BYTE PTR [rdx], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	chksum_bios_set_value, .-chksum_bios_set_value
	.section	.rodata
.LC21:
	.string	"_32_ header out of bounds"
	.align 8
.LC22:
	.string	"_32_ header-length out of bounds"
	.text
	.globl	chksum__32__calc_value
	.type	chksum__32__calc_value, @function
chksum__32__calc_value:
.LFB12:
	.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
	cmp	QWORD PTR -32[rbp], 65519
	setle	al
	movzx	eax, al
	lea	rsi, .LC21[rip]
	mov	edi, eax
	call	check
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 9[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 4
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	cmp	rax, 65535
	setle	al
	movzx	eax, al
	lea	rsi, .LC22[rip]
	mov	edi, eax
	call	check
	mov	BYTE PTR -9[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L42
.L44:
	cmp	DWORD PTR -8[rbp], 10
	je	.L43
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	add	BYTE PTR -9[rbp], al
.L43:
	add	DWORD PTR -8[rbp], 1
.L42:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L44
	neg	BYTE PTR -9[rbp]
	movzx	eax, BYTE PTR -9[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	chksum__32__calc_value, .-chksum__32__calc_value
	.globl	chksum__32__get_offset
	.type	chksum__32__get_offset, @function
chksum__32__get_offset:
.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	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -8[rbp], -1
	add	QWORD PTR -32[rbp], 15
	and	QWORD PTR -32[rbp], -16
	jmp	.L47
.L49:
	add	QWORD PTR -32[rbp], 16
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 95
	jne	.L47
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 51
	jne	.L47
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 50
	jne	.L47
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 3[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 95
	jne	.L47
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L48
.L47:
	cmp	QWORD PTR -32[rbp], 65518
	jle	.L49
.L48:
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	chksum__32__get_offset, .-chksum__32__get_offset
	.section	.rodata
	.align 8
.LC23:
	.string	"PCI-Bios checksum out of bounds"
	.text
	.globl	chksum__32__get_value
	.type	chksum__32__get_value, @function
chksum__32__get_value:
.LFB14:
	.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	cmp	QWORD PTR -16[rbp], 65525
	setle	al
	movzx	eax, al
	lea	rsi, .LC23[rip]
	mov	edi, eax
	call	check
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 10[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	chksum__32__get_value, .-chksum__32__get_value
	.globl	chksum__32__set_value
	.type	chksum__32__set_value, @function
chksum__32__set_value:
.LFB15:
	.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	eax, edx
	mov	BYTE PTR -20[rbp], al
	cmp	QWORD PTR -16[rbp], 65525
	setle	al
	movzx	eax, al
	lea	rsi, .LC23[rip]
	mov	edi, eax
	call	check
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 10[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -20[rbp]
	mov	BYTE PTR [rdx], al
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	chksum__32__set_value, .-chksum__32__set_value
	.section	.rodata
.LC24:
	.string	"_MP_ header out of bounds"
	.align 8
.LC25:
	.string	"_MP_ header-length out of bounds"
	.text
	.globl	chksum__mp__calc_value
	.type	chksum__mp__calc_value, @function
chksum__mp__calc_value:
.LFB16:
	.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
	cmp	QWORD PTR -32[rbp], 65519
	setle	al
	movzx	eax, al
	lea	rsi, .LC24[rip]
	mov	edi, eax
	call	check
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 4
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	cmp	rax, 65535
	setle	al
	movzx	eax, al
	lea	rsi, .LC25[rip]
	mov	edi, eax
	call	check
	mov	BYTE PTR -9[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L55
.L57:
	cmp	DWORD PTR -8[rbp], 10
	je	.L56
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	add	BYTE PTR -9[rbp], al
.L56:
	add	DWORD PTR -8[rbp], 1
.L55:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L57
	neg	BYTE PTR -9[rbp]
	movzx	eax, BYTE PTR -9[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	chksum__mp__calc_value, .-chksum__mp__calc_value
	.globl	chksum__mp__get_offset
	.type	chksum__mp__get_offset, @function
chksum__mp__get_offset:
.LFB17:
	.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	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -8[rbp], -1
	add	QWORD PTR -32[rbp], 15
	and	QWORD PTR -32[rbp], -16
	jmp	.L60
.L62:
	add	QWORD PTR -32[rbp], 16
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 95
	jne	.L60
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 77
	jne	.L60
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 80
	jne	.L60
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 3[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 95
	jne	.L60
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L61
.L60:
	cmp	QWORD PTR -32[rbp], 65518
	jle	.L62
.L61:
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	chksum__mp__get_offset, .-chksum__mp__get_offset
	.section	.rodata
.LC26:
	.string	"MP checksum out of bounds"
	.text
	.globl	chksum__mp__get_value
	.type	chksum__mp__get_value, @function
chksum__mp__get_value:
.LFB18:
	.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	cmp	QWORD PTR -16[rbp], 65525
	setle	al
	movzx	eax, al
	lea	rsi, .LC26[rip]
	mov	edi, eax
	call	check
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 10[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	chksum__mp__get_value, .-chksum__mp__get_value
	.globl	chksum__mp__set_value
	.type	chksum__mp__set_value, @function
chksum__mp__set_value:
.LFB19:
	.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	eax, edx
	mov	BYTE PTR -20[rbp], al
	cmp	QWORD PTR -16[rbp], 65525
	setle	al
	movzx	eax, al
	lea	rsi, .LC26[rip]
	mov	edi, eax
	call	check
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 10[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -20[rbp]
	mov	BYTE PTR [rdx], al
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	chksum__mp__set_value, .-chksum__mp__set_value
	.section	.rodata
.LC27:
	.string	"PCMP header out of bounds"
	.align 8
.LC28:
	.string	"PCMP header-length out of bounds"
	.align 8
.LC29:
	.string	"PCMP header indicates extended tables (unsupported)"
	.text
	.globl	chksum_pcmp_calc_value
	.type	chksum_pcmp_calc_value, @function
chksum_pcmp_calc_value:
.LFB20:
	.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
	cmp	QWORD PTR -32[rbp], 65493
	setle	al
	movzx	eax, al
	lea	rsi, .LC27[rip]
	mov	edi, eax
	call	check
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, 5[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	cmp	rax, 65535
	setle	al
	movzx	eax, al
	lea	rsi, .LC28[rip]
	mov	edi, eax
	call	check
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 40[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, 41[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	or	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, 42[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	or	eax, edx
	test	al, al
	je	.L68
	lea	rsi, .LC29[rip]
	mov	edi, 0
	call	check
.L68:
	mov	BYTE PTR -9[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L69
.L71:
	cmp	DWORD PTR -8[rbp], 7
	je	.L70
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	add	BYTE PTR -9[rbp], al
.L70:
	add	DWORD PTR -8[rbp], 1
.L69:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L71
	neg	BYTE PTR -9[rbp]
	movzx	eax, BYTE PTR -9[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	chksum_pcmp_calc_value, .-chksum_pcmp_calc_value
	.globl	chksum_pcmp_get_offset
	.type	chksum_pcmp_get_offset, @function
chksum_pcmp_get_offset:
.LFB21:
	.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	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -8[rbp], -1
	add	QWORD PTR -32[rbp], 15
	and	QWORD PTR -32[rbp], -16
	jmp	.L74
.L76:
	add	QWORD PTR -32[rbp], 16
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 80
	jne	.L74
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 67
	jne	.L74
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 77
	jne	.L74
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 3[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 80
	jne	.L74
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L75
.L74:
	cmp	QWORD PTR -32[rbp], 65518
	jle	.L76
.L75:
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	chksum_pcmp_get_offset, .-chksum_pcmp_get_offset
	.section	.rodata
.LC30:
	.string	"PCMP checksum out of bounds"
	.text
	.globl	chksum_pcmp_get_value
	.type	chksum_pcmp_get_value, @function
chksum_pcmp_get_value:
.LFB22:
	.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	cmp	QWORD PTR -16[rbp], 65528
	setle	al
	movzx	eax, al
	lea	rsi, .LC30[rip]
	mov	edi, eax
	call	check
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 7[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	chksum_pcmp_get_value, .-chksum_pcmp_get_value
	.globl	chksum_pcmp_set_value
	.type	chksum_pcmp_set_value, @function
chksum_pcmp_set_value:
.LFB23:
	.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	eax, edx
	mov	BYTE PTR -20[rbp], al
	cmp	QWORD PTR -16[rbp], 65528
	setle	al
	movzx	eax, al
	lea	rsi, .LC30[rip]
	mov	edi, eax
	call	check
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 7[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -20[rbp]
	mov	BYTE PTR [rdx], al
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	chksum_pcmp_set_value, .-chksum_pcmp_set_value
	.section	.rodata
.LC31:
	.string	"$PIR header out of bounds"
	.align 8
.LC32:
	.string	"$PIR header-length out of bounds"
	.text
	.globl	chksum__pir_calc_value
	.type	chksum__pir_calc_value, @function
chksum__pir_calc_value:
.LFB24:
	.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
	cmp	QWORD PTR -32[rbp], 65503
	setle	al
	movzx	eax, al
	lea	rsi, .LC31[rip]
	mov	edi, eax
	call	check
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 6[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, 7[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	cmp	rax, 65535
	setle	al
	movzx	eax, al
	lea	rsi, .LC32[rip]
	mov	edi, eax
	call	check
	mov	BYTE PTR -9[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L82
.L84:
	cmp	DWORD PTR -8[rbp], 31
	je	.L83
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	add	BYTE PTR -9[rbp], al
.L83:
	add	DWORD PTR -8[rbp], 1
.L82:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L84
	neg	BYTE PTR -9[rbp]
	movzx	eax, BYTE PTR -9[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	chksum__pir_calc_value, .-chksum__pir_calc_value
	.globl	chksum__pir_get_offset
	.type	chksum__pir_get_offset, @function
chksum__pir_get_offset:
.LFB25:
	.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	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -8[rbp], -1
	add	QWORD PTR -32[rbp], 15
	and	QWORD PTR -32[rbp], -16
	jmp	.L87
.L89:
	add	QWORD PTR -32[rbp], 16
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 36
	jne	.L87
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 80
	jne	.L87
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 73
	jne	.L87
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 3[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 82
	jne	.L87
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L88
.L87:
	cmp	QWORD PTR -32[rbp], 65518
	jle	.L89
.L88:
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	chksum__pir_get_offset, .-chksum__pir_get_offset
	.section	.rodata
.LC33:
	.string	"$PIR checksum out of bounds"
	.text
	.globl	chksum__pir_get_value
	.type	chksum__pir_get_value, @function
chksum__pir_get_value:
.LFB26:
	.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	cmp	QWORD PTR -16[rbp], 65504
	setle	al
	movzx	eax, al
	lea	rsi, .LC33[rip]
	mov	edi, eax
	call	check
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 31[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	chksum__pir_get_value, .-chksum__pir_get_value
	.globl	chksum__pir_set_value
	.type	chksum__pir_set_value, @function
chksum__pir_set_value:
.LFB27:
	.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	eax, edx
	mov	BYTE PTR -20[rbp], al
	cmp	QWORD PTR -16[rbp], 65504
	setle	al
	movzx	eax, al
	lea	rsi, .LC33[rip]
	mov	edi, eax
	call	check
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 31[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -20[rbp]
	mov	BYTE PTR [rdx], al
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	chksum__pir_set_value, .-chksum__pir_set_value
	.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	"712814.c"
	.text
	.comm	bios_data,65536,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error. Need a file-name as an argument.\000"
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.ascii	"Error opening %s for reading.\012\000"
	.align	2
.LC3:
	.ascii	"Error reading 64KBytes from %s.\012\000"
	.align	2
.LC4:
	.ascii	"\012\012PCI-Bios header at: 0x%4lX\012\000"
	.align	2
.LC5:
	.ascii	"Current checksum:     0x%02X\012\000"
	.align	2
.LC6:
	.ascii	"Calculated checksum:  0x%02X  \000"
	.align	2
.LC7:
	.ascii	"Setting checksum.\000"
	.align	2
.LC8:
	.ascii	"Multiple PCI headers! No checksum set.\000"
	.align	2
.LC9:
	.ascii	"\012\012MP header at:       0x%4lX\012\000"
	.align	2
.LC10:
	.ascii	"Warning! Multiple MP headers. No checksum set.\000"
	.align	2
.LC11:
	.ascii	"\012\012PCMP header at:     0x%4lX\012\000"
	.align	2
.LC12:
	.ascii	"Warning! Multiple PCMP headers. No checksum set.\000"
	.align	2
.LC13:
	.ascii	"\012\012$PIR header at:     0x%4lX\012\000"
	.align	2
.LC14:
	.ascii	"Calculated checksum:  0x%02X\012  \000"
	.align	2
.LC15:
	.ascii	"Warning! Multiple $PIR headers. No checksum set.\000"
	.align	2
.LC16:
	.ascii	"\012\012Bios checksum at:   0x%4lX\012\000"
	.align	2
.LC17:
	.ascii	"wb\000"
	.align	2
.LC18:
	.ascii	"Error opening %s for writing.\012\000"
	.align	2
.LC19:
	.ascii	"Error writing 64KBytes to %s.\012\000"
	.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]
	mov	r3, #0
	strb	r3, [fp, #-22]
	mov	r3, #0
	strb	r3, [fp, #-21]
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	beq	.L2
	ldr	r0, .L29
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L29+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L29+8
	bl	printf
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-12]
	mov	r2, #65536
	mov	r1, #1
	ldr	r0, .L29+12
	bl	fread
	mov	r3, r0
	cmp	r3, #65536
	bcs	.L4
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L29+16
	bl	printf
	ldr	r0, [fp, #-12]
	bl	fclose
	mov	r0, #1
	bl	exit
.L4:
	ldr	r0, [fp, #-12]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L5
.L6:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+12
	bl	chksum__32__get_value
	mov	r3, r0
	strb	r3, [fp, #-22]
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+12
	bl	chksum__32__calc_value
	mov	r3, r0
	strb	r3, [fp, #-21]
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+20
	bl	printf
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L29+24
	bl	printf
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L29+28
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L5:
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+12
	bl	chksum__32__get_offset
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L6
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L7
	ldrb	r2, [fp, #-22]	@ zero_extendqisi2
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L7
	ldr	r0, .L29+32
	bl	printf
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+12
	bl	chksum__32__set_value
.L7:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L8
	ldr	r0, .L29+36
	bl	printf
.L8:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L9
	mov	r0, #10
	bl	putchar
.L9:
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L10
.L11:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+12
	bl	chksum__mp__get_value
	mov	r3, r0
	strb	r3, [fp, #-22]
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+12
	bl	chksum__mp__calc_value
	mov	r3, r0
	strb	r3, [fp, #-21]
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+40
	bl	printf
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L29+24
	bl	printf
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L29+28
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L10:
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+12
	bl	chksum__mp__get_offset
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L11
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L12
	ldrb	r2, [fp, #-22]	@ zero_extendqisi2
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L12
	ldr	r0, .L29+32
	bl	printf
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+12
	bl	chksum__mp__set_value
.L12:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L13
	ldr	r0, .L29+44
	bl	printf
.L13:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L14
	mov	r0, #10
	bl	putchar
.L14:
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L15
.L16:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+12
	bl	chksum_pcmp_get_value
	mov	r3, r0
	strb	r3, [fp, #-22]
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+12
	bl	chksum_pcmp_calc_value
	mov	r3, r0
	strb	r3, [fp, #-21]
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+48
	bl	printf
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L29+24
	bl	printf
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L29+28
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L15:
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+12
	bl	chksum_pcmp_get_offset
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L16
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L17
	ldrb	r2, [fp, #-22]	@ zero_extendqisi2
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L17
	ldr	r0, .L29+32
	bl	printf
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+12
	bl	chksum_pcmp_set_value
.L17:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L18
	ldr	r0, .L29+52
	bl	printf
.L18:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L19
	mov	r0, #10
	bl	putchar
.L19:
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L20
.L21:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+12
	bl	chksum__pir_get_value
	mov	r3, r0
	strb	r3, [fp, #-22]
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+12
	bl	chksum__pir_calc_value
	mov	r3, r0
	strb	r3, [fp, #-21]
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+56
	bl	printf
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L29+24
	bl	printf
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L29+60
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L20:
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+12
	bl	chksum__pir_get_offset
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L21
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L22
	ldrb	r2, [fp, #-22]	@ zero_extendqisi2
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L22
	ldr	r0, .L29+32
	bl	printf
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+12
	bl	chksum__pir_set_value
.L22:
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L23
	ldr	r0, .L29+64
	bl	printf
.L23:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L24
	mov	r0, #10
	bl	putchar
.L24:
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+12
	bl	chksum_bios_get_offset
	str	r0, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+12
	bl	chksum_bios_get_value
	mov	r3, r0
	strb	r3, [fp, #-22]
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+12
	bl	chksum_bios_calc_value
	mov	r3, r0
	strb	r3, [fp, #-21]
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+68
	bl	printf
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L29+24
	bl	printf
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L29+28
	bl	printf
	ldrb	r2, [fp, #-22]	@ zero_extendqisi2
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L25
	ldr	r0, .L29+32
	bl	printf
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, .L29+12
	bl	chksum_bios_set_value
.L25:
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L29+72
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L29+76
	bl	printf
	mov	r0, #1
	bl	exit
.L26:
	ldr	r3, [fp, #-12]
	mov	r2, #65536
	mov	r1, #1
	ldr	r0, .L29+12
	bl	fwrite
	mov	r3, r0
	cmp	r3, #65536
	bcs	.L27
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L29+80
	bl	printf
	ldr	r0, [fp, #-12]
	bl	fclose
	mov	r0, #1
	bl	exit
.L27:
	ldr	r0, [fp, #-12]
	bl	fclose
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	bios_data
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	main, .-main
	.section	.rodata
	.align	2
.LC20:
	.ascii	"\012\012Error. %s.\012\000"
	.text
	.align	2
	.global	check
	.syntax unified
	.arm
	.fpu softvfp
	.type	check, %function
check:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L33
	ldr	r1, [fp, #-12]
	ldr	r0, .L34
	bl	printf
	mov	r0, #1
	bl	exit
.L33:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC20
	.size	check, .-check
	.align	2
	.global	chksum_bios_get_offset
	.syntax unified
	.arm
	.fpu softvfp
	.type	chksum_bios_get_offset, %function
chksum_bios_get_offset:
	@ args = 0, 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
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, .L38
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L39:
	.align	2
.L38:
	.word	65535
	.size	chksum_bios_get_offset, .-chksum_bios_get_offset
	.align	2
	.global	chksum_bios_calc_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	chksum_bios_calc_value, %function
chksum_bios_calc_value:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	strb	r3, [fp, #-9]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L41
.L42:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-9]
	add	r3, r2, r3
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L41:
	ldr	r3, [fp, #-8]
	ldr	r2, .L44
	cmp	r3, r2
	ble	.L42
	ldrb	r3, [fp, #-9]
	rsb	r3, r3, #0
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L45:
	.align	2
.L44:
	.word	65534
	.size	chksum_bios_calc_value, .-chksum_bios_calc_value
	.align	2
	.global	chksum_bios_get_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	chksum_bios_get_value, %function
chksum_bios_get_value:
	@ args = 0, 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
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #61440
	ldrb	r3, [r3, #4095]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	chksum_bios_get_value, .-chksum_bios_get_value
	.align	2
	.global	chksum_bios_set_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	chksum_bios_set_value, %function
chksum_bios_set_value:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	mov	r3, r2
	strb	r3, [fp, #-13]
	ldr	r3, [fp, #-8]
	add	r3, r3, #65280
	add	r3, r3, #255
	ldrb	r2, [fp, #-13]
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	chksum_bios_set_value, .-chksum_bios_set_value
	.section	.rodata
	.align	2
.LC21:
	.ascii	"_32_ header out of bounds\000"
	.align	2
.LC22:
	.ascii	"_32_ header-length out of bounds\000"
	.text
	.align	2
	.global	chksum__32__calc_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	chksum__32__calc_value, %function
chksum__32__calc_value:
	@ 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]
	ldr	r3, [fp, #-28]
	ldr	r2, .L54
	cmp	r3, r2
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	ldr	r1, .L54+4
	mov	r0, r3
	bl	check
	ldr	r3, [fp, #-28]
	add	r3, r3, #9
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #4
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	cmp	r3, #65536
	movlt	r3, #1
	movge	r3, #0
	and	r3, r3, #255
	ldr	r1, .L54+8
	mov	r0, r3
	bl	check
	mov	r3, #0
	strb	r3, [fp, #-13]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L50
.L52:
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	beq	.L51
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-13]
	add	r3, r2, r3
	strb	r3, [fp, #-13]
.L51:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L50:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L52
	ldrb	r3, [fp, #-13]
	rsb	r3, r3, #0
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	65519
	.word	.LC21
	.word	.LC22
	.size	chksum__32__calc_value, .-chksum__32__calc_value
	.align	2
	.global	chksum__32__get_offset
	.syntax unified
	.arm
	.fpu softvfp
	.type	chksum__32__get_offset, %function
chksum__32__get_offset:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #15
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	bic	r3, r3, #15
	str	r3, [fp, #-20]
	b	.L57
.L59:
	ldr	r3, [fp, #-20]
	add	r3, r3, #16
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #95
	bne	.L57
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #51
	bne	.L57
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #50
	bne	.L57
	ldr	r3, [fp, #-20]
	add	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #95
	bne	.L57
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	b	.L58
.L57:
	ldr	r3, [fp, #-20]
	ldr	r2, .L61
	cmp	r3, r2
	ble	.L59
.L58:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L62:
	.align	2
.L61:
	.word	65518
	.size	chksum__32__get_offset, .-chksum__32__get_offset
	.section	.rodata
	.align	2
.LC23:
	.ascii	"PCI-Bios checksum out of bounds\000"
	.text
	.align	2
	.global	chksum__32__get_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	chksum__32__get_value, %function
chksum__32__get_value:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, .L65
	cmp	r3, r2
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	ldr	r1, .L65+4
	mov	r0, r3
	bl	check
	ldr	r3, [fp, #-12]
	add	r3, r3, #10
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	65525
	.word	.LC23
	.size	chksum__32__get_value, .-chksum__32__get_value
	.align	2
	.global	chksum__32__set_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	chksum__32__set_value, %function
chksum__32__set_value:
	@ 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]
	mov	r3, r2
	strb	r3, [fp, #-13]
	ldr	r3, [fp, #-12]
	ldr	r2, .L68
	cmp	r3, r2
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	ldr	r1, .L68+4
	mov	r0, r3
	bl	check
	ldr	r3, [fp, #-12]
	add	r3, r3, #10
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r2, [fp, #-13]
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	65525
	.word	.LC23
	.size	chksum__32__set_value, .-chksum__32__set_value
	.section	.rodata
	.align	2
.LC24:
	.ascii	"_MP_ header out of bounds\000"
	.align	2
.LC25:
	.ascii	"_MP_ header-length out of bounds\000"
	.text
	.align	2
	.global	chksum__mp__calc_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	chksum__mp__calc_value, %function
chksum__mp__calc_value:
	@ 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]
	ldr	r3, [fp, #-28]
	ldr	r2, .L75
	cmp	r3, r2
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	ldr	r1, .L75+4
	mov	r0, r3
	bl	check
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #4
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	cmp	r3, #65536
	movlt	r3, #1
	movge	r3, #0
	and	r3, r3, #255
	ldr	r1, .L75+8
	mov	r0, r3
	bl	check
	mov	r3, #0
	strb	r3, [fp, #-13]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L71
.L73:
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	beq	.L72
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-13]
	add	r3, r2, r3
	strb	r3, [fp, #-13]
.L72:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L71:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L73
	ldrb	r3, [fp, #-13]
	rsb	r3, r3, #0
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L76:
	.align	2
.L75:
	.word	65519
	.word	.LC24
	.word	.LC25
	.size	chksum__mp__calc_value, .-chksum__mp__calc_value
	.align	2
	.global	chksum__mp__get_offset
	.syntax unified
	.arm
	.fpu softvfp
	.type	chksum__mp__get_offset, %function
chksum__mp__get_offset:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #15
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	bic	r3, r3, #15
	str	r3, [fp, #-20]
	b	.L78
.L80:
	ldr	r3, [fp, #-20]
	add	r3, r3, #16
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #95
	bne	.L78
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #77
	bne	.L78
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #80
	bne	.L78
	ldr	r3, [fp, #-20]
	add	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #95
	bne	.L78
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	b	.L79
.L78:
	ldr	r3, [fp, #-20]
	ldr	r2, .L82
	cmp	r3, r2
	ble	.L80
.L79:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L83:
	.align	2
.L82:
	.word	65518
	.size	chksum__mp__get_offset, .-chksum__mp__get_offset
	.section	.rodata
	.align	2
.LC26:
	.ascii	"MP checksum out of bounds\000"
	.text
	.align	2
	.global	chksum__mp__get_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	chksum__mp__get_value, %function
chksum__mp__get_value:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, .L86
	cmp	r3, r2
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	ldr	r1, .L86+4
	mov	r0, r3
	bl	check
	ldr	r3, [fp, #-12]
	add	r3, r3, #10
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L87:
	.align	2
.L86:
	.word	65525
	.word	.LC26
	.size	chksum__mp__get_value, .-chksum__mp__get_value
	.align	2
	.global	chksum__mp__set_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	chksum__mp__set_value, %function
chksum__mp__set_value:
	@ 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]
	mov	r3, r2
	strb	r3, [fp, #-13]
	ldr	r3, [fp, #-12]
	ldr	r2, .L89
	cmp	r3, r2
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	ldr	r1, .L89+4
	mov	r0, r3
	bl	check
	ldr	r3, [fp, #-12]
	add	r3, r3, #10
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r2, [fp, #-13]
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L90:
	.align	2
.L89:
	.word	65525
	.word	.LC26
	.size	chksum__mp__set_value, .-chksum__mp__set_value
	.section	.rodata
	.align	2
.LC27:
	.ascii	"PCMP header out of bounds\000"
	.align	2
.LC28:
	.ascii	"PCMP header-length out of bounds\000"
	.align	2
.LC29:
	.ascii	"PCMP header indicates extended tables (unsupported)"
	.ascii	"\000"
	.text
	.align	2
	.global	chksum_pcmp_calc_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	chksum_pcmp_calc_value, %function
chksum_pcmp_calc_value:
	@ 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]
	ldr	r3, [fp, #-28]
	ldr	r2, .L97
	cmp	r3, r2
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	ldr	r1, .L97+4
	mov	r0, r3
	bl	check
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, #5
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	add	r3, r1, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	cmp	r3, #65536
	movlt	r3, #1
	movge	r3, #0
	and	r3, r3, #255
	ldr	r1, .L97+8
	mov	r0, r3
	bl	check
	ldr	r3, [fp, #-28]
	add	r3, r3, #40
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-28]
	add	r3, r3, #41
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	orr	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, [fp, #-28]
	add	r3, r3, #42
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	orr	r3, r2, r3
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L92
	ldr	r1, .L97+12
	mov	r0, #0
	bl	check
.L92:
	mov	r3, #0
	strb	r3, [fp, #-13]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L93
.L95:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	beq	.L94
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-13]
	add	r3, r2, r3
	strb	r3, [fp, #-13]
.L94:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L93:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L95
	ldrb	r3, [fp, #-13]
	rsb	r3, r3, #0
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L98:
	.align	2
.L97:
	.word	65493
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.size	chksum_pcmp_calc_value, .-chksum_pcmp_calc_value
	.align	2
	.global	chksum_pcmp_get_offset
	.syntax unified
	.arm
	.fpu softvfp
	.type	chksum_pcmp_get_offset, %function
chksum_pcmp_get_offset:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #15
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	bic	r3, r3, #15
	str	r3, [fp, #-20]
	b	.L100
.L102:
	ldr	r3, [fp, #-20]
	add	r3, r3, #16
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #80
	bne	.L100
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #67
	bne	.L100
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #77
	bne	.L100
	ldr	r3, [fp, #-20]
	add	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #80
	bne	.L100
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	b	.L101
.L100:
	ldr	r3, [fp, #-20]
	ldr	r2, .L104
	cmp	r3, r2
	ble	.L102
.L101:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L105:
	.align	2
.L104:
	.word	65518
	.size	chksum_pcmp_get_offset, .-chksum_pcmp_get_offset
	.section	.rodata
	.align	2
.LC30:
	.ascii	"PCMP checksum out of bounds\000"
	.text
	.align	2
	.global	chksum_pcmp_get_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	chksum_pcmp_get_value, %function
chksum_pcmp_get_value:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, .L108
	cmp	r3, r2
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	ldr	r1, .L108+4
	mov	r0, r3
	bl	check
	ldr	r3, [fp, #-12]
	add	r3, r3, #7
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L109:
	.align	2
.L108:
	.word	65528
	.word	.LC30
	.size	chksum_pcmp_get_value, .-chksum_pcmp_get_value
	.align	2
	.global	chksum_pcmp_set_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	chksum_pcmp_set_value, %function
chksum_pcmp_set_value:
	@ 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]
	mov	r3, r2
	strb	r3, [fp, #-13]
	ldr	r3, [fp, #-12]
	ldr	r2, .L111
	cmp	r3, r2
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	ldr	r1, .L111+4
	mov	r0, r3
	bl	check
	ldr	r3, [fp, #-12]
	add	r3, r3, #7
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r2, [fp, #-13]
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L112:
	.align	2
.L111:
	.word	65528
	.word	.LC30
	.size	chksum_pcmp_set_value, .-chksum_pcmp_set_value
	.section	.rodata
	.align	2
.LC31:
	.ascii	"$PIR header out of bounds\000"
	.align	2
.LC32:
	.ascii	"$PIR header-length out of bounds\000"
	.text
	.align	2
	.global	chksum__pir_calc_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	chksum__pir_calc_value, %function
chksum__pir_calc_value:
	@ 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]
	ldr	r3, [fp, #-28]
	ldr	r2, .L118
	cmp	r3, r2
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	ldr	r1, .L118+4
	mov	r0, r3
	bl	check
	ldr	r3, [fp, #-28]
	add	r3, r3, #6
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, #7
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	add	r3, r1, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	cmp	r3, #65536
	movlt	r3, #1
	movge	r3, #0
	and	r3, r3, #255
	ldr	r1, .L118+8
	mov	r0, r3
	bl	check
	mov	r3, #0
	strb	r3, [fp, #-13]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L114
.L116:
	ldr	r3, [fp, #-12]
	cmp	r3, #31
	beq	.L115
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-13]
	add	r3, r2, r3
	strb	r3, [fp, #-13]
.L115:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L114:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L116
	ldrb	r3, [fp, #-13]
	rsb	r3, r3, #0
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L119:
	.align	2
.L118:
	.word	65503
	.word	.LC31
	.word	.LC32
	.size	chksum__pir_calc_value, .-chksum__pir_calc_value
	.align	2
	.global	chksum__pir_get_offset
	.syntax unified
	.arm
	.fpu softvfp
	.type	chksum__pir_get_offset, %function
chksum__pir_get_offset:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #15
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	bic	r3, r3, #15
	str	r3, [fp, #-20]
	b	.L121
.L123:
	ldr	r3, [fp, #-20]
	add	r3, r3, #16
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #36
	bne	.L121
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #80
	bne	.L121
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #73
	bne	.L121
	ldr	r3, [fp, #-20]
	add	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #82
	bne	.L121
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	b	.L122
.L121:
	ldr	r3, [fp, #-20]
	ldr	r2, .L125
	cmp	r3, r2
	ble	.L123
.L122:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L126:
	.align	2
.L125:
	.word	65518
	.size	chksum__pir_get_offset, .-chksum__pir_get_offset
	.section	.rodata
	.align	2
.LC33:
	.ascii	"$PIR checksum out of bounds\000"
	.text
	.align	2
	.global	chksum__pir_get_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	chksum__pir_get_value, %function
chksum__pir_get_value:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, .L129
	cmp	r3, r2
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	ldr	r1, .L129+4
	mov	r0, r3
	bl	check
	ldr	r3, [fp, #-12]
	add	r3, r3, #31
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L130:
	.align	2
.L129:
	.word	65504
	.word	.LC33
	.size	chksum__pir_get_value, .-chksum__pir_get_value
	.align	2
	.global	chksum__pir_set_value
	.syntax unified
	.arm
	.fpu softvfp
	.type	chksum__pir_set_value, %function
chksum__pir_set_value:
	@ 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]
	mov	r3, r2
	strb	r3, [fp, #-13]
	ldr	r3, [fp, #-12]
	ldr	r2, .L132
	cmp	r3, r2
	movle	r3, #1
	movgt	r3, #0
	and	r3, r3, #255
	ldr	r1, .L132+4
	mov	r0, r3
	bl	check
	ldr	r3, [fp, #-12]
	add	r3, r3, #31
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r2, [fp, #-13]
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L133:
	.align	2
.L132:
	.word	65504
	.word	.LC33
	.size	chksum__pir_set_value, .-chksum__pir_set_value
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
