	.file	"97013981.c"
	.intel_syntax noprefix
	.text
	.globl	dldiMagicString
	.section	.rodata
	.align 8
	.type	dldiMagicString, @object
	.size	dldiMagicString, 12
dldiMagicString:
	.string	"\355\245\215\277 Chishm"
	.globl	dldiFileExtension
	.type	dldiFileExtension, @object
	.size	dldiFileExtension, 6
dldiFileExtension:
	.string	".dldi"
.LC0:
	.string	"Usage:"
.LC1:
	.string	"%s <dldi> <app>\n"
	.align 8
.LC2:
	.string	"   <dldi>        the dldi patch file to apply"
	.align 8
.LC3:
	.string	"   <app>         the application binary to apply the patch to"
	.text
	.globl	printUsage
	.type	printUsage, @function
printUsage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	printUsage, .-printUsage
	.globl	readAddr
	.type	readAddr, @function
readAddr:
.LFB7:
	.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	DWORD PTR -12[rbp], esi
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, 2[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, 3[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 24
	or	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	readAddr, .-readAddr
	.globl	writeAddr
	.type	writeAddr, @function
writeAddr:
.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	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -16[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -16[rbp]
	sar	eax, 8
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -16[rbp]
	sar	eax, 16
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, 2[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -16[rbp]
	sar	eax, 24
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, 3[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	writeAddr, .-writeAddr
	.globl	stringCaseInsensitiveCompare
	.type	stringCaseInsensitiveCompare, @function
stringCaseInsensitiveCompare:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	jmp	.L7
.L10:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L8
	mov	eax, 0
	jmp	.L9
.L8:
	add	QWORD PTR -24[rbp], 1
	add	QWORD PTR -32[rbp], 1
.L7:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	cmp	ebx, eax
	je	.L10
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
.L9:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	stringCaseInsensitiveCompare, .-stringCaseInsensitiveCompare
	.globl	stringEndsWith
	.type	stringEndsWith, @function
stringEndsWith:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jnb	.L12
	mov	eax, 0
	jmp	.L13
.L12:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rbx
	sub	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stringCaseInsensitiveCompare
	test	eax, eax
	sete	al
	movzx	eax, al
.L13:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	stringEndsWith, .-stringEndsWith
	.globl	stringStartsWith
	.type	stringStartsWith, @function
stringStartsWith:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	cmp	QWORD PTR -8[rbp], rax
	sete	al
	movzx	eax, al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	stringStartsWith, .-stringStartsWith
	.globl	quickFind
	.type	quickFind, @function
quickFind:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	shr	rax, 2
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L17
.L21:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -16[rbp], eax
	jne	.L18
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	cmp	QWORD PTR -56[rbp], rax
	jnb	.L19
	mov	eax, -1
	jmp	.L20
.L19:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, [rdx+rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcmp@PLT
	test	eax, eax
	jne	.L18
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	eax, 2
	jmp	.L20
.L18:
	add	DWORD PTR -20[rbp], 1
.L17:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L21
	mov	eax, -1
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	quickFind, .-quickFind
	.section	.rodata
.LC4:
	.string	"Trying \"%s\"\n"
.LC5:
	.string	"rb"
.LC6:
	.string	"DLDIPATH"
.LC7:
	.string	"PATH"
.LC8:
	.string	"Searching system path\n%s\n"
	.text
	.globl	openDLDIFile
	.type	openDLDIFile, @function
openDLDIFile:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 240
	mov	QWORD PTR -12520[rbp], rdi
	mov	QWORD PTR -12528[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -12528[rbp]
	lea	rsi, dldiFileExtension[rip]
	mov	rdi, rax
	call	stringEndsWith
	test	eax, eax
	jne	.L23
	mov	rax, QWORD PTR -12528[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -12528[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR dldiFileExtension[rip]
	mov	DWORD PTR [rax], edx
	movzx	edx, WORD PTR dldiFileExtension[rip+4]
	mov	WORD PTR 4[rax], dx
.L23:
	mov	rax, QWORD PTR -12528[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -12528[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -12472[rbp], rax
	cmp	QWORD PTR -12472[rbp], 0
	je	.L24
	mov	rax, QWORD PTR -12472[rbp]
	jmp	.L40
.L24:
	mov	rax, QWORD PTR -12528[rbp]
	mov	esi, 92
	mov	rdi, rax
	call	strchr@PLT
	test	rax, rax
	je	.L26
	mov	eax, 0
	jmp	.L40
.L26:
	mov	rax, QWORD PTR -12528[rbp]
	mov	esi, 47
	mov	rdi, rax
	call	strchr@PLT
	test	rax, rax
	je	.L27
	mov	eax, 0
	jmp	.L40
.L27:
	lea	rdi, .LC6[rip]
	call	getenv@PLT
	mov	QWORD PTR -12464[rbp], rax
	cmp	QWORD PTR -12464[rbp], 0
	je	.L28
	mov	rdx, QWORD PTR -12464[rbp]
	lea	rax, -12304[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -12304[rbp]
	mov	rdi, rax
	call	strlen@PLT
	movzx	eax, BYTE PTR -12304[rbp+rax]
	cmp	al, 92
	je	.L29
	lea	rax, -12304[rbp]
	mov	rdi, rax
	call	strlen@PLT
	movzx	eax, BYTE PTR -12304[rbp+rax]
	cmp	al, 47
	je	.L29
	lea	rax, -12304[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -12304[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 47
.L29:
	mov	rdx, QWORD PTR -12528[rbp]
	lea	rax, -12304[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -12304[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12304[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -12472[rbp], rax
	cmp	QWORD PTR -12472[rbp], 0
	je	.L28
	mov	rax, QWORD PTR -12472[rbp]
	jmp	.L40
.L28:
	mov	QWORD PTR -12496[rbp], 0
	mov	rax, QWORD PTR -12520[rbp]
	mov	QWORD PTR -12504[rbp], rax
	jmp	.L30
.L32:
	mov	rax, QWORD PTR -12504[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 92
	je	.L31
	mov	rax, QWORD PTR -12504[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L30
.L31:
	mov	rax, QWORD PTR -12504[rbp]
	mov	QWORD PTR -12496[rbp], rax
.L30:
	mov	rax, QWORD PTR -12504[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -12504[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L32
	cmp	QWORD PTR -12496[rbp], 0
	je	.L33
	mov	rax, QWORD PTR -12496[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -12496[rbp], rdx
	mov	BYTE PTR [rax], 0
	mov	rdx, QWORD PTR -12520[rbp]
	lea	rax, -12304[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rdx, QWORD PTR -12496[rbp]
	lea	rax, -8208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -12304[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -12304[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 47
	jmp	.L34
.L33:
	mov	BYTE PTR -12304[rbp], 0
	mov	rdx, QWORD PTR -12520[rbp]
	lea	rax, -8208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L34:
	lea	rax, -12304[rbp]
	mov	esi, 92
	mov	rdi, rax
	call	strchr@PLT
	test	rax, rax
	jne	.L35
	lea	rax, -12304[rbp]
	mov	esi, 47
	mov	rdi, rax
	call	strchr@PLT
	test	rax, rax
	jne	.L35
	lea	rdi, .LC7[rip]
	call	getenv@PLT
	mov	QWORD PTR -12456[rbp], rax
	mov	rax, QWORD PTR -12456[rbp]
	mov	QWORD PTR -12480[rbp], rax
	mov	rax, QWORD PTR -12456[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L39:
	mov	rax, QWORD PTR -12480[rbp]
	mov	esi, 58
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -12488[rbp], rax
	cmp	QWORD PTR -12488[rbp], 0
	je	.L36
	mov	rax, QWORD PTR -12488[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -12488[rbp], rdx
	mov	BYTE PTR [rax], 0
.L36:
	mov	rdx, QWORD PTR -12480[rbp]
	lea	rax, -12304[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -12304[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -12304[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 47
	lea	rdx, -12304[rbp]
	lea	rax, -4112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rdx, -8208[rbp]
	lea	rax, -4112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rdx, -12448[rbp]
	lea	rax, -4112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	je	.L42
	mov	rax, QWORD PTR -12488[rbp]
	mov	QWORD PTR -12480[rbp], rax
	mov	BYTE PTR -12304[rbp], 0
	cmp	QWORD PTR -12480[rbp], 0
	je	.L43
	jmp	.L39
.L42:
	nop
	jmp	.L35
.L43:
	nop
.L35:
	lea	rax, -12304[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -12304[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1768189028
	mov	WORD PTR 4[rax], 47
	mov	rdx, QWORD PTR -12528[rbp]
	lea	rax, -12304[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -12304[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12304[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
.L40:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	openDLDIFile, .-openDLDIFile
	.section	.rodata
	.align 8
.LC9:
	.string	"Dynamically Linked Disk Interface patch tool v1.23 by Michael Chisholm (Chishm)\n"
.LC10:
	.string	"Cannot open \"%s\" - %s\n"
.LC11:
	.string	"rb+"
.LC12:
	.string	"Out of memory"
	.align 8
.LC13:
	.string	"%s does not have a DLDI section\n"
.LC14:
	.string	"Invalid DLDI file"
	.align 8
.LC15:
	.string	"Incorrect DLDI file version. Expected %d, found %d.\n"
	.align 8
.LC16:
	.string	"Not enough space for patch. Available %d bytes, need %d bytes\n"
.LC17:
	.string	"Old driver:          %s\n"
.LC18:
	.string	"New driver:          %s\n"
.LC19:
	.string	"Position in file:    0x%08X\n"
.LC20:
	.string	"Position in memory:  0x%08X\n"
.LC21:
	.string	"Patch base address:  0x%08X\n"
.LC22:
	.string	"Relocation offset:   0x%08X\n"
.LC23:
	.string	"Patched successfully"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 152
	.cfi_offset 3, -24
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	DWORD PTR -124[rbp], 1
	jmp	.L45
.L52:
	cmp	QWORD PTR -96[rbp], 0
	jne	.L46
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 7
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -96[rbp], rax
	cmp	QWORD PTR -96[rbp], 0
	jne	.L47
	mov	eax, -1
	jmp	.L48
.L47:
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L49
.L46:
	cmp	QWORD PTR -88[rbp], 0
	jne	.L50
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 0
	jne	.L51
	mov	eax, -1
	jmp	.L48
.L51:
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -160[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L49
.L50:
	mov	rax, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	printUsage
	mov	eax, -1
	jmp	.L48
.L49:
	add	DWORD PTR -124[rbp], 1
.L45:
	mov	eax, DWORD PTR -124[rbp]
	cmp	eax, DWORD PTR -148[rbp]
	jl	.L52
	cmp	QWORD PTR -96[rbp], 0
	je	.L53
	cmp	QWORD PTR -88[rbp], 0
	jne	.L54
.L53:
	mov	rax, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	printUsage
	mov	eax, -1
	jmp	.L48
.L54:
	mov	rax, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -96[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	openDLDIFile
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L55
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L48
.L55:
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L56
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L48
.L56:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	cmp	QWORD PTR -80[rbp], 0
	je	.L57
	cmp	QWORD PTR -64[rbp], 0
	jne	.L58
.L57:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	QWORD PTR -80[rbp], 0
	je	.L59
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	free@PLT
.L59:
	cmp	QWORD PTR -64[rbp], 0
	je	.L60
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
.L60:
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L48
.L58:
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	ecx, 12
	lea	rsi, dldiMagicString[rip]
	mov	rdi, rax
	call	quickFind
	mov	DWORD PTR -120[rbp], eax
	cmp	DWORD PTR -120[rbp], 0
	jns	.L61
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L48
.L61:
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -120[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, dldiMagicString[rip]
	call	strcmp@PLT
	test	eax, eax
	je	.L62
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L48
.L62:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 12
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	je	.L63
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 12
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edx, eax
	mov	esi, 1
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L48
.L63:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 13
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 15
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jbe	.L64
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 13
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 15
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, 1
	mov	ecx, eax
	sal	esi, cl
	mov	eax, esi
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L48
.L64:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 64
	mov	rdi, rax
	call	readAddr
	mov	DWORD PTR -132[rbp], eax
	cmp	DWORD PTR -132[rbp], 0
	jne	.L65
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 104
	mov	rdi, rax
	call	readAddr
	add	eax, -128
	mov	DWORD PTR -132[rbp], eax
.L65:
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 64
	mov	rdi, rax
	call	readAddr
	mov	DWORD PTR -116[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	sub	eax, DWORD PTR -116[rbp]
	mov	DWORD PTR -112[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 16
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -120[rbp]
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -132[rbp]
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -112[rbp]
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 64
	mov	rdi, rax
	call	readAddr
	mov	DWORD PTR -108[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 13
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	DWORD PTR -104[rbp], eax
	mov	edx, DWORD PTR -108[rbp]
	mov	eax, DWORD PTR -104[rbp]
	add	eax, edx
	mov	DWORD PTR -100[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 15[rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 15[rax]
	mov	BYTE PTR [rdx], al
	mov	rdx, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 64
	mov	rdi, rax
	call	readAddr
	mov	edx, DWORD PTR -112[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 64
	mov	rdi, rax
	call	writeAddr
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 68
	mov	rdi, rax
	call	readAddr
	mov	edx, DWORD PTR -112[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 68
	mov	rdi, rax
	call	writeAddr
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 72
	mov	rdi, rax
	call	readAddr
	mov	edx, DWORD PTR -112[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 72
	mov	rdi, rax
	call	writeAddr
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 76
	mov	rdi, rax
	call	readAddr
	mov	edx, DWORD PTR -112[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 76
	mov	rdi, rax
	call	writeAddr
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 80
	mov	rdi, rax
	call	readAddr
	mov	edx, DWORD PTR -112[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 80
	mov	rdi, rax
	call	writeAddr
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 84
	mov	rdi, rax
	call	readAddr
	mov	edx, DWORD PTR -112[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 84
	mov	rdi, rax
	call	writeAddr
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 88
	mov	rdi, rax
	call	readAddr
	mov	edx, DWORD PTR -112[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 88
	mov	rdi, rax
	call	writeAddr
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 92
	mov	rdi, rax
	call	readAddr
	mov	edx, DWORD PTR -112[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 92
	mov	rdi, rax
	call	writeAddr
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 104
	mov	rdi, rax
	call	readAddr
	mov	edx, DWORD PTR -112[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 104
	mov	rdi, rax
	call	writeAddr
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 108
	mov	rdi, rax
	call	readAddr
	mov	edx, DWORD PTR -112[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 108
	mov	rdi, rax
	call	writeAddr
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 112
	mov	rdi, rax
	call	readAddr
	mov	edx, DWORD PTR -112[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 112
	mov	rdi, rax
	call	writeAddr
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 116
	mov	rdi, rax
	call	readAddr
	mov	edx, DWORD PTR -112[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 116
	mov	rdi, rax
	call	writeAddr
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 120
	mov	rdi, rax
	call	readAddr
	mov	edx, DWORD PTR -112[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 120
	mov	rdi, rax
	call	writeAddr
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 124
	mov	rdi, rax
	call	readAddr
	mov	edx, DWORD PTR -112[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 124
	mov	rdi, rax
	call	writeAddr
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 14
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 1
	test	eax, eax
	je	.L66
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 64
	mov	rdi, rax
	call	readAddr
	sub	eax, DWORD PTR -108[rbp]
	mov	DWORD PTR -128[rbp], eax
	jmp	.L67
.L69:
	mov	edx, DWORD PTR -128[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	readAddr
	cmp	DWORD PTR -108[rbp], eax
	jg	.L68
	mov	edx, DWORD PTR -128[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	readAddr
	cmp	DWORD PTR -100[rbp], eax
	jle	.L68
	mov	edx, DWORD PTR -128[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	readAddr
	mov	edx, DWORD PTR -112[rbp]
	add	edx, eax
	mov	ecx, DWORD PTR -128[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	writeAddr
.L68:
	add	DWORD PTR -128[rbp], 1
.L67:
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 68
	mov	rdi, rax
	call	readAddr
	sub	eax, DWORD PTR -108[rbp]
	cmp	DWORD PTR -128[rbp], eax
	jl	.L69
.L66:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 14
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 2
	test	eax, eax
	je	.L70
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 72
	mov	rdi, rax
	call	readAddr
	sub	eax, DWORD PTR -108[rbp]
	mov	DWORD PTR -128[rbp], eax
	jmp	.L71
.L73:
	mov	edx, DWORD PTR -128[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	readAddr
	cmp	DWORD PTR -108[rbp], eax
	jg	.L72
	mov	edx, DWORD PTR -128[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	readAddr
	cmp	DWORD PTR -100[rbp], eax
	jle	.L72
	mov	edx, DWORD PTR -128[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	readAddr
	mov	edx, DWORD PTR -112[rbp]
	add	edx, eax
	mov	ecx, DWORD PTR -128[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	writeAddr
.L72:
	add	DWORD PTR -128[rbp], 1
.L71:
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 76
	mov	rdi, rax
	call	readAddr
	sub	eax, DWORD PTR -108[rbp]
	cmp	DWORD PTR -128[rbp], eax
	jl	.L73
.L70:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 14
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 4
	test	eax, eax
	je	.L74
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 80
	mov	rdi, rax
	call	readAddr
	sub	eax, DWORD PTR -108[rbp]
	mov	DWORD PTR -128[rbp], eax
	jmp	.L75
.L77:
	mov	edx, DWORD PTR -128[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	readAddr
	cmp	DWORD PTR -108[rbp], eax
	jg	.L76
	mov	edx, DWORD PTR -128[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	readAddr
	cmp	DWORD PTR -100[rbp], eax
	jle	.L76
	mov	edx, DWORD PTR -128[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	readAddr
	mov	edx, DWORD PTR -112[rbp]
	add	edx, eax
	mov	ecx, DWORD PTR -128[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	writeAddr
.L76:
	add	DWORD PTR -128[rbp], 1
.L75:
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 84
	mov	rdi, rax
	call	readAddr
	sub	eax, DWORD PTR -108[rbp]
	cmp	DWORD PTR -128[rbp], eax
	jl	.L77
.L74:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 14
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 8
	test	eax, eax
	je	.L78
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 92
	mov	rdi, rax
	call	readAddr
	mov	ebx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 88
	mov	rdi, rax
	call	readAddr
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
	movsx	rbx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 88
	mov	rdi, rax
	call	readAddr
	sub	eax, DWORD PTR -108[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, rbx
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
.L78:
	mov	eax, DWORD PTR -120[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR -104[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, .LC23[rip]
	call	puts@PLT
	mov	eax, 0
.L48:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.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	"97013981.c"
	.text
	.global	dldiMagicString
	.section	.rodata
	.align	2
	.type	dldiMagicString, %object
	.size	dldiMagicString, 12
dldiMagicString:
	.ascii	"\355\245\215\277 Chishm\000"
	.global	dldiFileExtension
	.align	2
	.type	dldiFileExtension, %object
	.size	dldiFileExtension, 6
dldiFileExtension:
	.ascii	".dldi\000"
	.align	2
.LC0:
	.ascii	"Usage:\000"
	.align	2
.LC1:
	.ascii	"%s <dldi> <app>\012\000"
	.align	2
.LC2:
	.ascii	"   <dldi>        the dldi patch file to apply\000"
	.align	2
.LC3:
	.ascii	"   <app>         the application binary to apply th"
	.ascii	"e patch to\000"
	.text
	.align	2
	.global	printUsage
	.syntax unified
	.arm
	.fpu softvfp
	.type	printUsage, %function
printUsage:
	@ 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, .L3
	bl	puts
	ldr	r1, [fp, #-8]
	ldr	r0, .L3+4
	bl	printf
	ldr	r0, .L3+8
	bl	puts
	ldr	r0, .L3+12
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	printUsage, .-printUsage
	.align	2
	.global	readAddr
	.syntax unified
	.arm
	.fpu softvfp
	.type	readAddr, %function
readAddr:
	@ 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, #-12]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r2, r1, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, #2
	ldr	r1, [fp, #-8]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, #3
	ldr	r1, [fp, #-8]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	orr	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	readAddr, .-readAddr
	.align	2
	.global	writeAddr
	.syntax unified
	.arm
	.fpu softvfp
	.type	writeAddr, %function
writeAddr:
	@ 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]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	asr	r2, r3, #8
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r1, [fp, #-8]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	asr	r2, r3, #16
	ldr	r3, [fp, #-12]
	add	r3, r3, #2
	ldr	r1, [fp, #-8]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	asr	r2, r3, #24
	ldr	r3, [fp, #-12]
	add	r3, r3, #3
	ldr	r1, [fp, #-8]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	writeAddr, .-writeAddr
	.align	2
	.global	stringCaseInsensitiveCompare
	.syntax unified
	.arm
	.fpu softvfp
	.type	stringCaseInsensitiveCompare, %function
stringCaseInsensitiveCompare:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	b	.L9
.L12:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L10
	mov	r3, #0
	b	.L11
.L10:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L9:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r4, r0
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	cmp	r4, r3
	beq	.L12
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r4, r0
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	sub	r3, r4, r3
.L11:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	stringCaseInsensitiveCompare, .-stringCaseInsensitiveCompare
	.align	2
	.global	stringEndsWith
	.syntax unified
	.arm
	.fpu softvfp
	.type	stringEndsWith, %function
stringEndsWith:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r4, r0
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	cmp	r4, r3
	bcs	.L14
	mov	r3, #0
	b	.L15
.L14:
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r4, r0
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	sub	r3, r4, r3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-16]
	bl	stringCaseInsensitiveCompare
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
.L15:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	stringEndsWith, .-stringEndsWith
	.align	2
	.global	stringStartsWith
	.syntax unified
	.arm
	.fpu softvfp
	.type	stringStartsWith, %function
stringStartsWith:
	@ 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	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	strstr
	mov	r2, r0
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	stringStartsWith, .-stringStartsWith
	.align	2
	.global	quickFind
	.syntax unified
	.arm
	.fpu softvfp
	.type	quickFind, %function
quickFind:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	lsr	r3, r3, #2
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L19
.L23:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L20
	ldr	r3, [fp, #-20]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bcs	.L21
	mvn	r3, #0
	b	.L22
.L21:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	b	.L22
.L20:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L19:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L23
	mvn	r3, #0
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	quickFind, .-quickFind
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Trying \"%s\"\012\000"
	.align	2
.LC5:
	.ascii	"rb\000"
	.align	2
.LC6:
	.ascii	"DLDIPATH\000"
	.align	2
.LC7:
	.ascii	"/\000"
	.align	2
.LC8:
	.ascii	"PATH\000"
	.align	2
.LC9:
	.ascii	"Searching system path\012%s\012\000"
	.align	2
.LC10:
	.ascii	"dldi/\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	openDLDIFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	openDLDIFile, %function
openDLDIFile:
	@ args = 0, pretend = 0, frame = 12424
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12416
	sub	sp, sp, #12
	sub	r3, fp, #12288
	sub	r3, r3, #12
	str	r0, [r3, #-132]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	str	r1, [r3, #-136]
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r1, .L46+4
	ldr	r0, [r3, #-136]
	bl	stringEndsWith
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r0, [r3, #-136]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-136]
	add	r3, r3, r2
	ldr	r2, .L46+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #6
	mov	r2, r3
	bl	memcpy
.L25:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r1, [r3, #-136]
	ldr	r0, .L46+8
	bl	printf
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r1, .L46+12
	ldr	r0, [r3, #-136]
	bl	fopen
	str	r0, [r4, #-108]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-108]
	cmp	r3, #0
	beq	.L26
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-108]
	b	.L42
.L26:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r1, #92
	ldr	r0, [r3, #-136]
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
	mov	r3, #0
	b	.L42
.L28:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r1, #47
	ldr	r0, [r3, #-136]
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	mov	r3, #0
	b	.L42
.L29:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r0, .L46+16
	bl	getenv
	str	r0, [r4, #-104]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	cmp	r3, #0
	beq	.L30
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-104]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #12288
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-4]	@ zero_extendqisi2
	cmp	r3, #92
	beq	.L31
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #12288
	sub	r2, r2, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-4]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L31
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L46+20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
.L31:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-136]
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L46+8
	bl	printf
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L46+12
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-108]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-108]
	cmp	r3, #0
	beq	.L30
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-108]
	b	.L42
.L30:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-120]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-132]
	str	r3, [r2, #-124]
	b	.L32
.L34:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-124]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #92
	beq	.L33
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-124]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, fp, #12288
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #12288
	sub	r2, r2, #12
	ldr	r2, [r2, #-120]
	str	r2, [r1, #-120]
	cmp	r3, #47
	bne	.L32
.L33:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-124]
	str	r3, [r2, #-120]
.L32:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-124]
	sub	r2, fp, #12288
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-124]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L34
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	cmp	r3, #0
	beq	.L35
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	sub	r2, fp, #12288
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-120]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-132]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-120]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L46+20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	b	.L36
.L35:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, #0
	strb	r2, [r3, #-4]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-132]
	mov	r0, r3
	bl	strcpy
.L36:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #92
	mov	r0, r3
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #47
	mov	r0, r3
	bl	strchr
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r0, .L46+24
	bl	getenv
	str	r0, [r4, #-100]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	str	r3, [r2, #-112]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r1, [r3, #-100]
	ldr	r0, .L46+28
	bl	printf
.L41:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r1, #58
	ldr	r0, [r3, #-112]
	bl	strchr
	str	r0, [r4, #-116]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	cmp	r3, #0
	beq	.L38
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	sub	r2, fp, #12288
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-116]
	mov	r2, #0
	strb	r2, [r3]
.L38:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-112]
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L46+20
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r2, fp, #12288
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r2, fp, #8192
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r2, fp, #12352
	sub	r2, r2, #12
	sub	r2, r2, #32
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	beq	.L44
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	str	r3, [r2, #-112]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, #0
	strb	r2, [r3, #-4]
	sub	r3, fp, #12288
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	cmp	r3, #0
	beq	.L45
	b	.L41
.L44:
	nop
	b	.L37
.L45:
	nop
.L37:
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	ldr	r2, .L46+32
	mov	r0, r3
	mov	r1, r2
	mov	r3, #6
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #12288
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r2, #-136]
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L46+8
	bl	printf
	sub	r3, fp, #12288
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L46+12
	mov	r0, r3
	bl	fopen
	mov	r3, r0
.L42:
	ldr	r2, .L46
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L43
	bl	__stack_chk_fail
.L43:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC11
	.word	dldiFileExtension
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	openDLDIFile, .-openDLDIFile
	.section	.rodata
	.align	2
.LC12:
	.ascii	"Dynamically Linked Disk Interface patch tool v1.23 "
	.ascii	"by Michael Chisholm (Chishm)\012\000"
	.align	2
.LC13:
	.ascii	"Cannot open \"%s\" - %s\012\000"
	.align	2
.LC14:
	.ascii	"rb+\000"
	.align	2
.LC15:
	.ascii	"Out of memory\000"
	.align	2
.LC16:
	.ascii	"%s does not have a DLDI section\012\000"
	.align	2
.LC17:
	.ascii	"Invalid DLDI file\000"
	.align	2
.LC18:
	.ascii	"Incorrect DLDI file version. Expected %d, found %d."
	.ascii	"\012\000"
	.align	2
.LC19:
	.ascii	"Not enough space for patch. Available %d bytes, nee"
	.ascii	"d %d bytes\012\000"
	.align	2
.LC20:
	.ascii	"Old driver:          %s\012\000"
	.align	2
.LC21:
	.ascii	"New driver:          %s\012\000"
	.align	2
.LC22:
	.ascii	"Position in file:    0x%08X\012\000"
	.align	2
.LC23:
	.ascii	"Position in memory:  0x%08X\012\000"
	.align	2
.LC24:
	.ascii	"Patch base address:  0x%08X\012\000"
	.align	2
.LC25:
	.ascii	"Relocation offset:   0x%08X\012\000"
	.align	2
.LC26:
	.ascii	"Patched successfully\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #88
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-84]
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r0, .L83
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-72]
	b	.L49
.L56:
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	bne	.L50
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #7
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	bne	.L51
	mvn	r3, #0
	b	.L52
.L51:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-88]
	bl	strcpy
	b	.L53
.L50:
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L54
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L55
	mvn	r3, #0
	b	.L52
.L55:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-84]
	bl	strcpy
	b	.L53
.L54:
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	mov	r0, r3
	bl	printUsage
	mvn	r3, #0
	b	.L52
.L53:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L49:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	blt	.L56
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	beq	.L57
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	bne	.L58
.L57:
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	mov	r0, r3
	bl	printUsage
	mvn	r3, #0
	b	.L52
.L58:
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	ldr	r1, [fp, #-88]
	mov	r0, r3
	bl	openDLDIFile
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L59
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-88]
	ldr	r0, .L83+4
	bl	printf
	mvn	r3, #0
	b	.L52
.L59:
	ldr	r1, .L83+8
	ldr	r0, [fp, #-84]
	bl	fopen
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L60
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-84]
	ldr	r0, .L83+4
	bl	printf
	mvn	r3, #0
	b	.L52
.L60:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-48]
	bl	fseek
	ldr	r0, [fp, #-48]
	bl	ftell
	mov	r3, r0
	str	r3, [fp, #-64]
	ldr	r0, [fp, #-64]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-68]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-48]
	bl	fseek
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-52]
	bl	fseek
	ldr	r0, [fp, #-52]
	bl	ftell
	mov	r3, r0
	str	r3, [fp, #-56]
	ldr	r0, [fp, #-56]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-60]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-52]
	bl	fseek
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L61
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L62
.L61:
	ldr	r0, [fp, #-48]
	bl	fclose
	ldr	r0, [fp, #-52]
	bl	fclose
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L63
	ldr	r0, [fp, #-68]
	bl	free
.L63:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	beq	.L64
	ldr	r0, [fp, #-60]
	bl	free
.L64:
	ldr	r0, .L83+12
	bl	puts
	mvn	r3, #0
	b	.L52
.L62:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-64]
	mov	r1, #1
	ldr	r0, [fp, #-68]
	bl	fread
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-56]
	mov	r1, #1
	ldr	r0, [fp, #-60]
	bl	fread
	ldr	r0, [fp, #-52]
	bl	fclose
	mov	r3, #12
	ldr	r2, [fp, #-64]
	ldr	r1, .L83+16
	ldr	r0, [fp, #-68]
	bl	quickFind
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bge	.L65
	ldr	r1, [fp, #-84]
	ldr	r0, .L83+20
	bl	printf
	mvn	r3, #0
	b	.L52
.L65:
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	r0, .L83+16
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L66
	ldr	r0, .L83+24
	bl	puts
	mvn	r3, #0
	b	.L52
.L66:
	ldr	r3, [fp, #-40]
	add	r3, r3, #12
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L67
	ldr	r3, [fp, #-40]
	add	r3, r3, #12
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r1, #1
	ldr	r0, .L83+28
	bl	printf
	mvn	r3, #0
	b	.L52
.L67:
	ldr	r3, [fp, #-40]
	add	r3, r3, #13
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-36]
	add	r3, r3, #15
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bls	.L68
	ldr	r3, [fp, #-36]
	add	r3, r3, #15
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, #1
	lsl	r1, r3, r2
	ldr	r3, [fp, #-40]
	add	r3, r3, #13
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, #1
	lsl	r3, r3, r2
	mov	r2, r3
	ldr	r0, .L83+32
	bl	printf
	mvn	r3, #0
	b	.L52
.L68:
	mov	r1, #64
	ldr	r0, [fp, #-36]
	bl	readAddr
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L69
	mov	r1, #104
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r3, r0
	sub	r3, r3, #128
	str	r3, [fp, #-80]
.L69:
	mov	r1, #64
	ldr	r0, [fp, #-40]
	bl	readAddr
	str	r0, [fp, #-32]
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-36]
	add	r3, r3, #16
	mov	r1, r3
	ldr	r0, .L83+36
	bl	printf
	ldr	r3, [fp, #-40]
	add	r3, r3, #16
	mov	r1, r3
	ldr	r0, .L83+40
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r1, [fp, #-44]
	ldr	r0, .L83+44
	bl	printf
	ldr	r1, [fp, #-80]
	ldr	r0, .L83+48
	bl	printf
	ldr	r1, [fp, #-32]
	ldr	r0, .L83+52
	bl	printf
	ldr	r1, [fp, #-28]
	ldr	r0, .L83+56
	bl	printf
	mov	r0, #10
	bl	putchar
	mov	r1, #64
	ldr	r0, [fp, #-40]
	bl	readAddr
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-40]
	add	r3, r3, #13
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, #1
	lsl	r3, r3, r2
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-40]
	add	r3, r3, #15
	ldr	r2, [fp, #-36]
	ldrb	r2, [r2, #15]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r2, [fp, #-56]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-36]
	bl	memcpy
	mov	r1, #64
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	mov	r1, #64
	ldr	r0, [fp, #-36]
	bl	writeAddr
	mov	r1, #68
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	mov	r1, #68
	ldr	r0, [fp, #-36]
	bl	writeAddr
	mov	r1, #72
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	mov	r1, #72
	ldr	r0, [fp, #-36]
	bl	writeAddr
	mov	r1, #76
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	mov	r1, #76
	ldr	r0, [fp, #-36]
	bl	writeAddr
	mov	r1, #80
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	mov	r1, #80
	ldr	r0, [fp, #-36]
	bl	writeAddr
	mov	r1, #84
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	mov	r1, #84
	ldr	r0, [fp, #-36]
	bl	writeAddr
	mov	r1, #88
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	mov	r1, #88
	ldr	r0, [fp, #-36]
	bl	writeAddr
	mov	r1, #92
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	mov	r1, #92
	ldr	r0, [fp, #-36]
	bl	writeAddr
	mov	r1, #104
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	mov	r1, #104
	ldr	r0, [fp, #-36]
	bl	writeAddr
	mov	r1, #108
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	mov	r1, #108
	ldr	r0, [fp, #-36]
	bl	writeAddr
	mov	r1, #112
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	mov	r1, #112
	ldr	r0, [fp, #-36]
	bl	writeAddr
	mov	r1, #116
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	mov	r1, #116
	ldr	r0, [fp, #-36]
	bl	writeAddr
	mov	r1, #120
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	mov	r1, #120
	ldr	r0, [fp, #-36]
	bl	writeAddr
	mov	r1, #124
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	mov	r1, #124
	ldr	r0, [fp, #-36]
	bl	writeAddr
	ldr	r3, [fp, #-40]
	add	r3, r3, #14
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L70
	mov	r1, #64
	ldr	r0, [fp, #-40]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	str	r3, [fp, #-76]
	b	.L71
.L73:
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-24]
	cmp	r3, r2
	bgt	.L72
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	ble	.L72
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-36]
	bl	writeAddr
.L72:
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L71:
	mov	r1, #68
	ldr	r0, [fp, #-40]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	blt	.L73
.L70:
	ldr	r3, [fp, #-40]
	add	r3, r3, #14
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L74
	mov	r1, #72
	ldr	r0, [fp, #-40]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	str	r3, [fp, #-76]
	b	.L75
.L77:
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-24]
	cmp	r3, r2
	bgt	.L76
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	ble	.L76
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-36]
	bl	writeAddr
.L76:
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L75:
	mov	r1, #76
	ldr	r0, [fp, #-40]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	blt	.L77
.L74:
	ldr	r3, [fp, #-40]
	add	r3, r3, #14
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L78
	mov	r1, #80
	ldr	r0, [fp, #-40]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	str	r3, [fp, #-76]
	b	.L79
.L81:
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-24]
	cmp	r3, r2
	bgt	.L80
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	ble	.L80
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-36]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-36]
	bl	writeAddr
.L80:
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L79:
	mov	r1, #84
	ldr	r0, [fp, #-40]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	ldr	r2, [fp, #-76]
	cmp	r2, r3
	blt	.L81
.L78:
	ldr	r3, [fp, #-40]
	add	r3, r3, #14
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L82
	mov	r1, #88
	ldr	r0, [fp, #-40]
	bl	readAddr
	mov	r2, r0
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r4, r3, r2
	mov	r1, #92
	ldr	r0, [fp, #-40]
	bl	readAddr
	mov	r5, r0
	mov	r1, #88
	ldr	r0, [fp, #-40]
	bl	readAddr
	mov	r3, r0
	sub	r3, r5, r3
	mov	r2, r3
	mov	r1, #0
	mov	r0, r4
	bl	memset
.L82:
	mov	r2, #0
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-48]
	bl	fseek
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-48]
	mov	r1, #1
	ldr	r0, [fp, #-36]
	bl	fwrite
	ldr	r0, [fp, #-48]
	bl	fclose
	ldr	r0, [fp, #-68]
	bl	free
	ldr	r0, [fp, #-60]
	bl	free
	ldr	r0, .L83+60
	bl	puts
	mov	r3, #0
.L52:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L84:
	.align	2
.L83:
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	dldiMagicString
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
