	.file	"116899.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.type	dolstart, @object
	.size	dolstart, 4
dolstart:
	.string	""
	.string	""
	.string	"\001"
	.data
	.type	confirm, @object
	.size	confirm, 1
confirm:
	.byte	1
	.globl	GetExtTypeA
	.section	.rodata
.LC0:
	.string	"GetExtType A"
	.section	.data.rel.local,"aw"
	.align 32
	.type	GetExtTypeA, @object
	.size	GetExtTypeA, 40
GetExtTypeA:
	.long	212
	.long	18
	.long	4
	.long	3
	.long	7
	.long	2
	.quad	.LC0
	.long	0
	.long	0
	.globl	GetExtTypeB
	.section	.rodata
.LC1:
	.string	"GetExtType B"
	.section	.data.rel.local
	.align 32
	.type	GetExtTypeB, @object
	.size	GetExtTypeB, 40
GetExtTypeB:
	.long	252
	.long	19
	.long	4
	.long	3
	.long	9
	.long	2
	.quad	.LC1
	.long	0
	.long	0
	.globl	GetExtTypeC
	.section	.rodata
.LC2:
	.string	"GetExtType C"
	.section	.data.rel.local
	.align 32
	.type	GetExtTypeC, @object
	.size	GetExtTypeC, 40
GetExtTypeC:
	.long	620
	.long	59
	.long	2
	.long	16
	.long	12
	.long	10
	.quad	.LC2
	.long	0
	.long	0
	.text
	.globl	MPattern
	.type	MPattern, @function
MPattern:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 40
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L17:
	mov	edx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	bswap	eax
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	and	eax, -67108861
	cmp	eax, 1207959553
	jne	.L3
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 12[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 12[rax], edx
.L3:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, -67108861
	cmp	eax, 1207959552
	jne	.L4
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 16[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 16[rax], edx
.L4:
	mov	eax, DWORD PTR -4[rbp]
	mov	ax, 0
	cmp	eax, 1082130432
	jne	.L5
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 16[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 16[rax], edx
.L5:
	mov	eax, DWORD PTR -4[rbp]
	mov	ax, 0
	cmp	eax, 1098907648
	jne	.L6
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 16[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 16[rax], edx
.L6:
	mov	eax, DWORD PTR -4[rbp]
	mov	ax, 0
	cmp	eax, 1082195968
	jne	.L7
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 16[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 16[rax], edx
.L7:
	mov	eax, DWORD PTR -4[rbp]
	mov	ax, 0
	cmp	eax, 1099038720
	jne	.L8
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 16[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 16[rax], edx
.L8:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, -67108864
	cmp	eax, -2147483648
	jne	.L9
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 4[rax], edx
.L9:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, -16777216
	cmp	eax, 939524096
	jne	.L10
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 4[rax], edx
.L10:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, -16777216
	cmp	eax, 1006632960
	jne	.L11
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 4[rax], edx
.L11:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, -67108864
	cmp	eax, -1879048192
	jne	.L12
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 8[rax], edx
.L12:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, -67108864
	cmp	eax, -1811939328
	jne	.L13
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 8[rax], edx
.L13:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, -16777216
	cmp	eax, 2080374784
	jne	.L14
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 20[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 20[rax], edx
.L14:
	cmp	DWORD PTR -4[rbp], 1317011488
	je	.L18
	add	DWORD PTR -8[rbp], 4
.L2:
	mov	eax, DWORD PTR -8[rbp]
	cmp	QWORD PTR -32[rbp], rax
	ja	.L17
	jmp	.L16
.L18:
	nop
.L16:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	MPattern, .-MPattern
	.globl	CPattern
	.type	CPattern, @function
CPattern:
.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 24
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	CPattern, .-CPattern
	.section	.rodata
.LC3:
	.string	"Press enter to exit"
	.text
	.type	waitforenter, @function
waitforenter:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movzx	eax, BYTE PTR confirm[rip]
	test	al, al
	je	.L23
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	getc@PLT
.L23:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	waitforenter, .-waitforenter
	.type	printerr, @function
printerr:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	puts@PLT
	call	waitforenter
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	printerr, .-printerr
	.section	.rodata
	.align 8
.LC4:
	.string	"GetExtType Patcher v1.1 by FIX94"
.LC5:
	.string	"No input file specified!"
	.align 8
.LC6:
	.string	"Usage: GetExtType <filename> <-nc>"
	.align 8
.LC7:
	.string	"-nc - Dont wait for enter press on error/exit"
.LC8:
	.string	"-nc"
.LC9:
	.string	"rb+"
.LC10:
	.string	"Unable to open input file!"
.LC11:
	.string	"Input is not a dol file!"
.LC12:
	.string	"Read in dol"
.LC13:
	.string	"GetExtTypeA patched"
.LC14:
	.string	"GetExtTypeB patched"
.LC15:
	.string	"GetExtTypeC patched"
.LC16:
	.string	"Wrote back into dol"
.LC17:
	.string	"Nothing found to patch!"
.LC18:
	.string	"All Done!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC4[rip]
	call	puts@PLT
	cmp	DWORD PTR -100[rbp], 1
	jg	.L26
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	call	waitforenter
	mov	eax, -1
	jmp	.L43
.L26:
	cmp	DWORD PTR -100[rbp], 2
	jle	.L28
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 4
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L28
	mov	BYTE PTR confirm[rip], 0
.L28:
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jne	.L29
	lea	rdi, .LC10[rip]
	call	printerr
	mov	eax, -2
	jmp	.L43
.L29:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rcx, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 4
	lea	rsi, dolstart[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	je	.L30
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, .LC11[rip]
	call	printerr
	mov	eax, -3
	jmp	.L43
.L30:
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	BYTE PTR -81[rbp], 0
	mov	QWORD PTR -80[rbp], 256
	jmp	.L31
.L40:
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	bswap	eax
	cmp	eax, 1317011488
	jne	.L45
	add	QWORD PTR -80[rbp], 4
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -80[rbp]
	lea	rcx, [rdx+rax]
	lea	rax, -48[rbp]
	mov	rdx, rax
	mov	esi, 8192
	mov	rdi, rcx
	call	MPattern
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, GetExtTypeA[rip]
	call	CPattern
	test	eax, eax
	jne	.L34
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, GetExtTypeB[rip]
	call	CPattern
	test	eax, eax
	je	.L35
.L34:
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, 64[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	bswap	eax
	and	eax, -2097152
	cmp	eax, -2013265920
	jne	.L46
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, 72[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	bswap	eax
	and	eax, -2097152
	cmp	eax, -2013265920
	jne	.L46
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, 64[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 16777272
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, 72[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 16777272
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, 212
	jne	.L37
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L38
.L37:
	lea	rdi, .LC14[rip]
	call	puts@PLT
.L38:
	mov	BYTE PTR -81[rbp], 1
	jmp	.L39
.L35:
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, GetExtTypeC[rip]
	call	CPattern
	test	eax, eax
	je	.L33
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, 56[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	bswap	eax
	and	eax, -2097152
	cmp	eax, -2013265920
	jne	.L33
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, 68[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	bswap	eax
	and	eax, -2097152
	cmp	eax, -2013265920
	jne	.L33
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, 56[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 16777272
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, 68[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 16777272
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	BYTE PTR -81[rbp], 1
	jmp	.L39
.L45:
	nop
	jmp	.L33
.L46:
	nop
.L33:
	add	QWORD PTR -80[rbp], 4
.L31:
	mov	rax, QWORD PTR -80[rbp]
	cmp	rax, QWORD PTR -64[rbp]
	jb	.L40
.L39:
	cmp	BYTE PTR -81[rbp], 0
	je	.L41
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rcx, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	lea	rdi, .LC16[rip]
	call	puts@PLT
	jmp	.L42
.L41:
	lea	rdi, .LC17[rip]
	call	puts@PLT
.L42:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC18[rip]
	call	puts@PLT
	call	waitforenter
	mov	eax, 0
.L43:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"116899.c"
	.text
	.section	.rodata
	.align	2
	.type	dolstart, %object
	.size	dolstart, 4
dolstart:
	.ascii	"\000\000\001\000"
	.data
	.type	confirm, %object
	.size	confirm, 1
confirm:
	.byte	1
	.global	GetExtTypeA
	.section	.rodata
	.align	2
.LC0:
	.ascii	"GetExtType A\000"
	.data
	.align	2
	.type	GetExtTypeA, %object
	.size	GetExtTypeA, 36
GetExtTypeA:
	.word	212
	.word	18
	.word	4
	.word	3
	.word	7
	.word	2
	.word	.LC0
	.word	0
	.word	0
	.global	GetExtTypeB
	.section	.rodata
	.align	2
.LC1:
	.ascii	"GetExtType B\000"
	.data
	.align	2
	.type	GetExtTypeB, %object
	.size	GetExtTypeB, 36
GetExtTypeB:
	.word	252
	.word	19
	.word	4
	.word	3
	.word	9
	.word	2
	.word	.LC1
	.word	0
	.word	0
	.global	GetExtTypeC
	.section	.rodata
	.align	2
.LC2:
	.ascii	"GetExtType C\000"
	.data
	.align	2
	.type	GetExtTypeC, %object
	.size	GetExtTypeC, 36
GetExtTypeC:
	.word	620
	.word	59
	.word	2
	.word	16
	.word	12
	.word	10
	.word	.LC2
	.word	0
	.word	0
	.text
	.align	2
	.global	MPattern
	.syntax unified
	.arm
	.fpu softvfp
	.type	MPattern, %function
MPattern:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r2, #36
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L17:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldr	r2, [r3]
	eor	r3, r2, r2, ror #16
	lsr	r3, r3, #8
	ror	r2, r2, #8
	bic	r3, r3, #65280
	eor	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	and	r3, r3, #-67108861
	cmp	r3, #1207959553
	bne	.L3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3, #12]
.L3:
	ldr	r3, [fp, #-8]
	and	r3, r3, #-67108861
	cmp	r3, #1207959552
	bne	.L4
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3, #16]
.L4:
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	ldr	r2, .L19
	cmp	r3, r2
	bne	.L5
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3, #16]
.L5:
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	ldr	r2, .L19+4
	cmp	r3, r2
	bne	.L6
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3, #16]
.L6:
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	ldr	r2, .L19+8
	cmp	r3, r2
	bne	.L7
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3, #16]
.L7:
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	ldr	r2, .L19+12
	cmp	r3, r2
	bne	.L8
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3, #16]
.L8:
	ldr	r3, [fp, #-8]
	and	r3, r3, #-67108864
	cmp	r3, #-2147483648
	bne	.L9
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3, #4]
.L9:
	ldr	r3, [fp, #-8]
	and	r3, r3, #-16777216
	cmp	r3, #939524096
	bne	.L10
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3, #4]
.L10:
	ldr	r3, [fp, #-8]
	and	r3, r3, #-16777216
	cmp	r3, #1006632960
	bne	.L11
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3, #4]
.L11:
	ldr	r3, [fp, #-8]
	and	r3, r3, #-67108864
	cmp	r3, #-1879048192
	bne	.L12
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3, #8]
.L12:
	ldr	r3, [fp, #-8]
	and	r3, r3, #-67108864
	cmp	r3, #-1811939328
	bne	.L13
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3, #8]
.L13:
	ldr	r3, [fp, #-8]
	and	r3, r3, #-16777216
	cmp	r3, #2080374784
	bne	.L14
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3, #20]
.L14:
	ldr	r3, [fp, #-8]
	ldr	r2, .L19+16
	cmp	r3, r2
	beq	.L18
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	str	r3, [fp, #-12]
.L2:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bcc	.L17
	b	.L16
.L18:
	nop
.L16:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	1082130432
	.word	1098907648
	.word	1082195968
	.word	1099038720
	.word	1317011488
	.size	MPattern, .-MPattern
	.align	2
	.global	CPattern
	.syntax unified
	.arm
	.fpu softvfp
	.type	CPattern, %function
CPattern:
	@ 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]
	mov	r2, #24
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	CPattern, .-CPattern
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Press enter to exit\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	waitforenter, %function
waitforenter:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L26
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L25
	ldr	r0, .L26+4
	bl	puts
	ldr	r3, .L26+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
.L25:
	nop
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	confirm
	.word	.LC3
	.word	stdin
	.size	waitforenter, .-waitforenter
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	printerr, %function
printerr:
	@ 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]
	ldr	r0, [fp, #-8]
	bl	puts
	bl	waitforenter
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	printerr, .-printerr
	.section	.rodata
	.align	2
.LC4:
	.ascii	"GetExtType Patcher v1.1 by FIX94\000"
	.align	2
.LC5:
	.ascii	"No input file specified!\000"
	.align	2
.LC6:
	.ascii	"Usage: GetExtType <filename> <-nc>\000"
	.align	2
.LC7:
	.ascii	"-nc - Dont wait for enter press on error/exit\000"
	.align	2
.LC8:
	.ascii	"-nc\000"
	.align	2
.LC9:
	.ascii	"rb+\000"
	.align	2
.LC10:
	.ascii	"Unable to open input file!\000"
	.align	2
.LC11:
	.ascii	"Input is not a dol file!\000"
	.align	2
.LC12:
	.ascii	"Read in dol\000"
	.align	2
.LC13:
	.ascii	"GetExtTypeA patched\000"
	.align	2
.LC14:
	.ascii	"GetExtTypeB patched\000"
	.align	2
.LC15:
	.ascii	"GetExtTypeC patched\000"
	.align	2
.LC16:
	.ascii	"Wrote back into dol\000"
	.align	2
.LC17:
	.ascii	"Nothing found to patch!\000"
	.align	2
.LC18:
	.ascii	"All Done!\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L51
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L51+4
	bl	puts
	ldr	r3, [fp, #-72]
	cmp	r3, #1
	bgt	.L30
	ldr	r0, .L51+8
	bl	puts
	ldr	r0, .L51+12
	bl	puts
	ldr	r0, .L51+16
	bl	puts
	bl	waitforenter
	mvn	r3, #0
	b	.L47
.L30:
	ldr	r3, [fp, #-72]
	cmp	r3, #2
	ble	.L32
	ldr	r3, [fp, #-76]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #4
	ldr	r1, .L51+20
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
	ldr	r3, .L51+24
	mov	r2, #0
	strb	r2, [r3]
.L32:
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L51+28
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L33
	ldr	r0, .L51+32
	bl	printerr
	mvn	r3, #1
	b	.L47
.L33:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-56]
	bl	fseek
	ldr	r0, [fp, #-56]
	bl	ftell
	mov	r3, r0
	str	r3, [fp, #-52]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-56]
	bl	fseek
	ldr	r0, [fp, #-52]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-52]
	mov	r1, #1
	ldr	r0, [fp, #-48]
	bl	fread
	mov	r2, #4
	ldr	r1, .L51+36
	ldr	r0, [fp, #-48]
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L34
	ldr	r0, [fp, #-48]
	bl	free
	ldr	r0, .L51+40
	bl	printerr
	mvn	r3, #2
	b	.L47
.L34:
	ldr	r0, .L51+44
	bl	puts
	mov	r3, #0
	strb	r3, [fp, #-61]
	mov	r3, #256
	str	r3, [fp, #-60]
	b	.L35
.L44:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	ldr	r2, [r3]
	eor	r3, r2, r2, ror #16
	lsr	r3, r3, #8
	ror	r2, r2, #8
	bic	r3, r3, #65280
	eor	r3, r3, r2
	ldr	r2, .L51+48
	cmp	r3, r2
	bne	.L49
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	str	r3, [fp, #-60]
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	sub	r2, fp, #44
	mov	r1, #8192
	mov	r0, r3
	bl	MPattern
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L51+52
	bl	CPattern
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L51+56
	bl	CPattern
	mov	r3, r0
	cmp	r3, #0
	beq	.L39
.L38:
	ldr	r3, [fp, #-60]
	add	r3, r3, #64
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, [r3]
	eor	r3, r2, r2, ror #16
	lsr	r3, r3, #8
	ror	r2, r2, #8
	bic	r3, r3, #65280
	eor	r3, r3, r2
	lsr	r3, r3, #21
	lsl	r3, r3, #21
	cmp	r3, #-2013265920
	bne	.L50
	ldr	r3, [fp, #-60]
	add	r3, r3, #72
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, [r3]
	eor	r3, r2, r2, ror #16
	lsr	r3, r3, #8
	ror	r2, r2, #8
	bic	r3, r3, #65280
	eor	r3, r3, r2
	lsr	r3, r3, #21
	lsl	r3, r3, #21
	cmp	r3, #-2013265920
	bne	.L50
	ldr	r3, [fp, #-60]
	add	r3, r3, #64
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, .L51+60
	str	r2, [r3]
	ldr	r3, [fp, #-60]
	add	r3, r3, #72
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, .L51+60
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	cmp	r3, #212
	bne	.L41
	ldr	r0, .L51+64
	bl	puts
	b	.L42
.L41:
	ldr	r0, .L51+68
	bl	puts
.L42:
	mov	r3, #1
	strb	r3, [fp, #-61]
	b	.L43
.L39:
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L51+72
	bl	CPattern
	mov	r3, r0
	cmp	r3, #0
	beq	.L37
	ldr	r3, [fp, #-60]
	add	r3, r3, #56
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, [r3]
	eor	r3, r2, r2, ror #16
	lsr	r3, r3, #8
	ror	r2, r2, #8
	bic	r3, r3, #65280
	eor	r3, r3, r2
	lsr	r3, r3, #21
	lsl	r3, r3, #21
	cmp	r3, #-2013265920
	bne	.L37
	ldr	r3, [fp, #-60]
	add	r3, r3, #68
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, [r3]
	eor	r3, r2, r2, ror #16
	lsr	r3, r3, #8
	ror	r2, r2, #8
	bic	r3, r3, #65280
	eor	r3, r3, r2
	lsr	r3, r3, #21
	lsl	r3, r3, #21
	cmp	r3, #-2013265920
	bne	.L37
	ldr	r3, [fp, #-60]
	add	r3, r3, #56
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, .L51+60
	str	r2, [r3]
	ldr	r3, [fp, #-60]
	add	r3, r3, #68
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, .L51+60
	str	r2, [r3]
	ldr	r0, .L51+76
	bl	puts
	mov	r3, #1
	strb	r3, [fp, #-61]
	b	.L43
.L49:
	nop
	b	.L37
.L50:
	nop
.L37:
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	str	r3, [fp, #-60]
.L35:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	bcc	.L44
.L43:
	ldrb	r3, [fp, #-61]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L45
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-56]
	bl	fseek
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-52]
	mov	r1, #1
	ldr	r0, [fp, #-48]
	bl	fwrite
	ldr	r0, .L51+80
	bl	puts
	b	.L46
.L45:
	ldr	r0, .L51+84
	bl	puts
.L46:
	ldr	r0, [fp, #-48]
	bl	free
	ldr	r0, [fp, #-56]
	bl	fclose
	ldr	r0, .L51+88
	bl	puts
	bl	waitforenter
	mov	r3, #0
.L47:
	ldr	r2, .L51
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC19
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	confirm
	.word	.LC9
	.word	.LC10
	.word	dolstart
	.word	.LC11
	.word	.LC12
	.word	1317011488
	.word	GetExtTypeA
	.word	GetExtTypeB
	.word	16777272
	.word	.LC13
	.word	.LC14
	.word	GetExtTypeC
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
