	.file	"863094.c"
	.intel_syntax noprefix
	.text
	.globl	parts_open
	.bss
	.type	parts_open, @object
	.size	parts_open, 1
parts_open:
	.zero	1
	.globl	parts
	.align 32
	.type	parts, @object
	.size	parts, 96
parts:
	.zero	96
	.globl	part_offset_start
	.align 32
	.type	part_offset_start, @object
	.size	part_offset_start, 96
part_offset_start:
	.zero	96
	.globl	part_offset_end
	.align 32
	.type	part_offset_end, @object
	.size	part_offset_end, 96
part_offset_end:
	.zero	96
	.globl	part_offset_current
	.align 32
	.type	part_offset_current, @object
	.size	part_offset_current, 96
part_offset_current:
	.zero	96
	.globl	current_offset
	.align 8
	.type	current_offset, @object
	.size	current_offset, 8
current_offset:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%s/game_part%i.wud"
.LC1:
	.string	"rb"
	.align 8
.LC2:
	.string	"Failed to open game_part%i.wud!\n"
	.align 8
.LC3:
	.string	"game_part%i.wud has a wrong filesize!\n"
	.text
	.globl	wudparts_open
	.type	wudparts_open, @function
wudparts_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1088
	mov	QWORD PTR -1080[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -1056[rbp], 0
	mov	BYTE PTR -1061[rbp], 0
	mov	DWORD PTR -1060[rbp], 0
	jmp	.L2
.L9:
	mov	eax, DWORD PTR -1060[rbp]
	lea	ecx, 1[rax]
	mov	rdx, QWORD PTR -1080[rbp]
	lea	rax, -1040[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1040[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	edx, DWORD PTR -1060[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, parts[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	eax, DWORD PTR -1060[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, parts[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L3
	mov	eax, DWORD PTR -1060[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	BYTE PTR -1061[rbp], 1
	jmp	.L8
.L3:
	mov	eax, DWORD PTR -1060[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, part_offset_current[rip]
	mov	QWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -1060[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, part_offset_start[rip]
	mov	rax, QWORD PTR -1056[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	mov	eax, DWORD PTR -1060[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, parts[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseeko64@PLT
	mov	eax, DWORD PTR -1060[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, parts[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	ftello64@PLT
	mov	QWORD PTR -1048[rbp], rax
	mov	eax, DWORD PTR -1060[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, parts[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseeko64@PLT
	cmp	DWORD PTR -1060[rbp], 11
	jne	.L5
	cmp	QWORD PTR -1048[rbp], 1402994688
	jne	.L6
.L5:
	cmp	DWORD PTR -1060[rbp], 11
	je	.L7
	mov	eax, 2147483648
	cmp	QWORD PTR -1048[rbp], rax
	je	.L7
.L6:
	mov	eax, DWORD PTR -1060[rbp]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	BYTE PTR -1061[rbp], 1
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -1048[rbp]
	add	QWORD PTR -1056[rbp], rax
	mov	eax, DWORD PTR -1060[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, part_offset_end[rip]
	mov	rax, QWORD PTR -1056[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	add	DWORD PTR -1060[rbp], 1
.L2:
	cmp	DWORD PTR -1060[rbp], 11
	jle	.L9
.L8:
	movzx	eax, BYTE PTR -1061[rbp]
	xor	eax, 1
	test	al, al
	je	.L10
	mov	QWORD PTR current_offset[rip], 0
	mov	BYTE PTR parts_open[rip], 1
	mov	eax, 1
	jmp	.L11
.L10:
	mov	DWORD PTR -1060[rbp], 0
	jmp	.L12
.L14:
	mov	eax, DWORD PTR -1060[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, parts[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L13
	mov	eax, DWORD PTR -1060[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, parts[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -1060[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, parts[rip]
	mov	QWORD PTR [rdx+rax], 0
.L13:
	add	DWORD PTR -1060[rbp], 1
.L12:
	cmp	DWORD PTR -1060[rbp], 11
	jle	.L14
	mov	eax, 0
.L11:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	wudparts_open, .-wudparts_open
	.section	.rodata
	.align 8
.LC4:
	.string	"Seeking to 0x%lx in game_part%i.wud\n"
	.text
	.type	_wudparts_read_offset, @function
_wudparts_read_offset:
.LFB1:
	.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	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L17
.L23:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, part_offset_start[rip]
	mov	rax, QWORD PTR [rdx+rax]
	cmp	QWORD PTR -48[rbp], rax
	jb	.L18
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, part_offset_end[rip]
	mov	rax, QWORD PTR [rdx+rax]
	cmp	QWORD PTR -48[rbp], rax
	jnb	.L18
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, part_offset_start[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, part_offset_current[rip]
	mov	rax, QWORD PTR [rdx+rax]
	cmp	QWORD PTR -16[rbp], rax
	je	.L19
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rcx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, parts[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseeko64@PLT
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, part_offset_current[rip]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rcx+rdx], rax
.L19:
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, part_offset_end[rip]
	mov	rax, QWORD PTR [rdx+rax]
	cmp	rcx, rax
	jbe	.L20
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, part_offset_end[rip]
	mov	rax, QWORD PTR [rdx+rax]
	sub	rax, QWORD PTR -48[rbp]
	jmp	.L21
.L20:
	mov	rax, QWORD PTR -56[rbp]
.L21:
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, parts[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	add	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, part_offset_current[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, part_offset_current[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	rax, QWORD PTR -8[rbp]
	add	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	add	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	sub	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	je	.L25
.L18:
	add	DWORD PTR -28[rbp], 1
.L17:
	cmp	DWORD PTR -28[rbp], 11
	jle	.L23
	jmp	.L22
.L25:
	nop
.L22:
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	_wudparts_read_offset, .-_wudparts_read_offset
	.globl	wudparts_read
	.type	wudparts_read, @function
wudparts_read:
.LFB2:
	.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 -24[rbp], 0
	je	.L27
	cmp	QWORD PTR -32[rbp], 0
	jne	.L28
.L27:
	mov	eax, 0
	jmp	.L29
.L28:
	mov	rcx, QWORD PTR current_offset[rip]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	_wudparts_read_offset
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR current_offset[rip]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	QWORD PTR current_offset[rip], rax
	mov	rax, QWORD PTR -8[rbp]
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	wudparts_read, .-wudparts_read
	.globl	wudparts_seek
	.type	wudparts_seek, @function
wudparts_seek:
.LFB3:
	.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	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR current_offset[rip], rax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	wudparts_seek, .-wudparts_seek
	.globl	wudparts_tell
	.type	wudparts_tell, @function
wudparts_tell:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR current_offset[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	wudparts_tell, .-wudparts_tell
	.globl	wudparts_close
	.type	wudparts_close, @function
wudparts_close:
.LFB5:
	.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
	movzx	eax, BYTE PTR parts_open[rip]
	xor	eax, 1
	test	al, al
	jne	.L39
	mov	DWORD PTR -4[rbp], 0
	jmp	.L36
.L38:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, parts[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L37
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, parts[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, parts[rip]
	mov	QWORD PTR [rdx+rax], 0
.L37:
	add	DWORD PTR -4[rbp], 1
.L36:
	cmp	DWORD PTR -4[rbp], 11
	jle	.L38
	mov	BYTE PTR parts_open[rip], 0
	jmp	.L33
.L39:
	nop
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	wudparts_close, .-wudparts_close
	.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	"863094.c"
	.text
	.global	parts_open
	.bss
	.type	parts_open, %object
	.size	parts_open, 1
parts_open:
	.space	1
	.global	parts
	.align	2
	.type	parts, %object
	.size	parts, 48
parts:
	.space	48
	.comm	part_offset_start,96,8
	.comm	part_offset_end,96,8
	.comm	part_offset_current,96,8
	.global	current_offset
	.align	3
	.type	current_offset, %object
	.size	current_offset, 8
current_offset:
	.space	8
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s/game_part%i.wud\000"
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.ascii	"Failed to open game_part%i.wud!\012\000"
	.align	2
.LC3:
	.ascii	"game_part%i.wud has a wrong filesize!\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	wudparts_open
	.syntax unified
	.arm
	.fpu softvfp
	.type	wudparts_open, %function
wudparts_open:
	@ args = 0, pretend = 0, frame = 1064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #1072
	str	r0, [fp, #-1072]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-1060]
	str	r3, [fp, #-1056]
	mov	r3, #0
	strb	r3, [fp, #-1065]
	mov	r3, #0
	str	r3, [fp, #-1064]
	b	.L2
.L9:
	ldr	r3, [fp, #-1064]
	add	r3, r3, #1
	sub	r0, fp, #1024
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r2, [fp, #-1072]
	ldr	r1, .L16+4
	bl	sprintf
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L16+8
	mov	r0, r3
	bl	fopen
	mov	r2, r0
	ldr	r1, .L16+12
	ldr	r3, [fp, #-1064]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L16+12
	ldr	r3, [fp, #-1064]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-1064]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L16+16
	bl	printf
	mov	r3, #1
	strb	r3, [fp, #-1065]
	b	.L8
.L3:
	ldr	r2, .L16+20
	ldr	r3, [fp, #-1064]
	lsl	r3, r3, #3
	add	r1, r2, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r2, .L16+24
	ldr	r3, [fp, #-1064]
	lsl	r3, r3, #3
	add	r1, r2, r3
	ldr	r2, [fp, #-1060]
	ldr	r3, [fp, #-1056]
	stm	r1, {r2-r3}
	ldr	r2, .L16+12
	ldr	r3, [fp, #-1064]
	ldr	r1, [r2, r3, lsl #2]
	mov	r3, #2
	str	r3, [sp]
	mov	r2, #0
	mov	r3, #0
	mov	r0, r1
	bl	fseeko64
	ldr	r2, .L16+12
	ldr	r3, [fp, #-1064]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	ftello64
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-1052]
	str	r3, [fp, #-1048]
	ldr	r2, .L16+12
	ldr	r3, [fp, #-1064]
	ldr	r1, [r2, r3, lsl #2]
	mov	r3, #0
	str	r3, [sp]
	mov	r2, #0
	mov	r3, #0
	mov	r0, r1
	bl	fseeko64
	ldr	r3, [fp, #-1064]
	cmp	r3, #11
	bne	.L5
	ldr	r2, [fp, #-1052]
	ldr	r3, [fp, #-1048]
	ldr	r0, .L16+28
	mov	r1, #0
	cmp	r3, r1
	cmpeq	r2, r0
	bne	.L6
.L5:
	ldr	r3, [fp, #-1064]
	cmp	r3, #11
	beq	.L7
	ldr	r2, [fp, #-1052]
	ldr	r3, [fp, #-1048]
	cmp	r3, #0
	cmpeq	r2, #-2147483648
	beq	.L7
.L6:
	ldr	r3, [fp, #-1064]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L16+32
	bl	printf
	mov	r3, #1
	strb	r3, [fp, #-1065]
	b	.L8
.L7:
	ldr	r0, [fp, #-1060]
	ldr	r1, [fp, #-1056]
	ldr	r2, [fp, #-1052]
	ldr	r3, [fp, #-1048]
	adds	r4, r0, r2
	adc	r5, r1, r3
	str	r4, [fp, #-1060]
	str	r5, [fp, #-1056]
	ldr	r2, .L16+36
	ldr	r3, [fp, #-1064]
	lsl	r3, r3, #3
	add	r1, r2, r3
	ldr	r2, [fp, #-1060]
	ldr	r3, [fp, #-1056]
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-1064]
	add	r3, r3, #1
	str	r3, [fp, #-1064]
.L2:
	ldr	r3, [fp, #-1064]
	cmp	r3, #11
	ble	.L9
.L8:
	ldrb	r3, [fp, #-1065]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L10
	ldr	r1, .L16+40
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	ldr	r3, .L16+44
	mov	r2, #1
	strb	r2, [r3]
	mov	r3, #1
	b	.L11
.L10:
	mov	r3, #0
	str	r3, [fp, #-1064]
	b	.L12
.L14:
	ldr	r2, .L16+12
	ldr	r3, [fp, #-1064]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L13
	ldr	r2, .L16+12
	ldr	r3, [fp, #-1064]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	fclose
	ldr	r2, .L16+12
	ldr	r3, [fp, #-1064]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
.L13:
	ldr	r3, [fp, #-1064]
	add	r3, r3, #1
	str	r3, [fp, #-1064]
.L12:
	ldr	r3, [fp, #-1064]
	cmp	r3, #11
	ble	.L14
	mov	r3, #0
.L11:
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	parts
	.word	.LC2
	.word	part_offset_current
	.word	part_offset_start
	.word	1402994688
	.word	.LC3
	.word	part_offset_end
	.word	current_offset
	.word	parts_open
	.size	wudparts_open, .-wudparts_open
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Seeking to 0x%llx in game_part%i.wud\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_wudparts_read_offset, %function
_wudparts_read_offset:
	@ args = 4, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L19
.L25:
	ldr	r2, .L28
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L20
	ldr	r2, .L28+4
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bcs	.L20
	ldr	r2, .L28
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	subs	r8, r0, r2
	sbc	r9, r1, r3
	str	r8, [fp, #-36]
	str	r9, [fp, #-32]
	ldr	r2, .L28+8
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	beq	.L21
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [sp]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r0, .L28+12
	bl	printf
	ldr	r2, .L28+16
	ldr	r3, [fp, #-44]
	ldr	r1, [r2, r3, lsl #2]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	mov	r0, #0
	str	r0, [sp]
	mov	r0, r1
	bl	fseeko64
	ldr	r2, .L28+8
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r1, r2, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
.L21:
	ldr	r3, [fp, #4]
	mov	r0, r3
	mov	r1, #0
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	ldr	r2, .L28+4
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	cmp	r5, r3
	cmpeq	r4, r2
	bls	.L22
	ldr	r2, .L28+4
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r3, [fp, #-68]
	sub	r3, r2, r3
	b	.L23
.L22:
	ldr	r3, [fp, #4]
.L23:
	str	r3, [fp, #-40]
	ldr	r2, .L28+16
	ldr	r3, [fp, #-44]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-40]
	mov	r1, #1
	ldr	r0, [fp, #-56]
	bl	fread
	mov	r2, r0
	ldr	r3, [fp, #-48]
	add	r3, r3, r2
	str	r3, [fp, #-48]
	ldr	r2, .L28+8
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-48]
	mov	r2, r3
	mov	r3, #0
	adds	r6, r0, r2
	adc	r7, r1, r3
	ldr	r2, .L28+8
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r3, r2, r3
	stm	r3, {r6-r7}
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-40]
	mov	r2, r3
	mov	r3, #0
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	adds	ip, r0, r2
	str	ip, [fp, #-76]
	adc	r3, r1, r3
	str	r3, [fp, #-72]
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	ldr	r2, [fp, #4]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	str	r3, [fp, #4]
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L27
.L20:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L19:
	ldr	r3, [fp, #-44]
	cmp	r3, #11
	ble	.L25
	b	.L24
.L27:
	nop
.L24:
	ldr	r3, [fp, #-48]
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L29:
	.align	2
.L28:
	.word	part_offset_start
	.word	part_offset_end
	.word	part_offset_current
	.word	.LC5
	.word	parts
	.size	_wudparts_read_offset, .-_wudparts_read_offset
	.align	2
	.global	wudparts_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	wudparts_read, %function
wudparts_read:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L32
.L31:
	mov	r3, #0
	b	.L33
.L32:
	ldr	r3, .L34
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-28]
	str	r1, [sp]
	ldr	r0, [fp, #-24]
	bl	_wudparts_read_offset
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	mov	r1, #0
	ldr	r3, .L34
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	ldr	r3, .L34
	stm	r3, {r4-r5}
	ldr	r3, [fp, #-16]
.L33:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L35:
	.align	2
.L34:
	.word	current_offset
	.size	wudparts_read, .-wudparts_read
	.align	2
	.global	wudparts_seek
	.syntax unified
	.arm
	.fpu softvfp
	.type	wudparts_seek, %function
wudparts_seek:
	@ 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, #-12]
	str	r1, [fp, #-8]
	ldr	r1, .L37
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L38:
	.align	2
.L37:
	.word	current_offset
	.size	wudparts_seek, .-wudparts_seek
	.align	2
	.global	wudparts_tell
	.syntax unified
	.arm
	.fpu softvfp
	.type	wudparts_tell, %function
wudparts_tell:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L41
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L42:
	.align	2
.L41:
	.word	current_offset
	.size	wudparts_tell, .-wudparts_tell
	.align	2
	.global	wudparts_close
	.syntax unified
	.arm
	.fpu softvfp
	.type	wudparts_close, %function
wudparts_close:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L50
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L49
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L46
.L48:
	ldr	r2, .L50+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L47
	ldr	r2, .L50+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	fclose
	ldr	r2, .L50+4
	ldr	r3, [fp, #-8]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
.L47:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L46:
	ldr	r3, [fp, #-8]
	cmp	r3, #11
	ble	.L48
	ldr	r3, .L50
	mov	r2, #0
	strb	r2, [r3]
	b	.L43
.L49:
	nop
.L43:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	parts_open
	.word	parts
	.size	wudparts_close, .-wudparts_close
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
