	.file	"18600.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"\nUsage:     %s [-i][-m marker] release_tag [file ...]\n"
	.text
	.globl	Usage
	.type	Usage, @function
Usage:
.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
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	Usage, .-Usage
	.section	.rodata
	.align 8
.LC1:
	.string	"\nUsage:     %s [-m marker] brand [file ...]\n"
	.text
	.globl	UsageBrand
	.type	UsageBrand, @function
UsageBrand:
.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	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	UsageBrand, .-UsageBrand
	.section	.rodata
	.align 8
.LC2:
	.string	"\nInvalid release tag format, empty string\n"
	.align 8
.LC3:
	.string	"\nInvalid release tag format yields: %s\n"
	.text
	.globl	ParseReleaseTag
	.type	ParseReleaseTag, @function
ParseReleaseTag:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	cmp	QWORD PTR -40[rbp], 0
	je	.L4
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L5
.L4:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 42
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L7
.L9:
	add	QWORD PTR -16[rbp], 1
.L7:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L8
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L9
.L8:
	mov	DWORD PTR -28[rbp], 0
	lea	rax, version.0[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L10
.L23:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 95
	je	.L11
	cmp	eax, 95
	jg	.L12
	cmp	eax, 80
	je	.L13
	cmp	eax, 80
	jg	.L12
	cmp	eax, 73
	je	.L14
	cmp	eax, 77
	je	.L15
	jmp	.L12
.L14:
	cmp	DWORD PTR -44[rbp], 0
	je	.L16
	mov	DWORD PTR -28[rbp], 1
	jmp	.L20
.L16:
	cmp	DWORD PTR -24[rbp], 0
	jne	.L18
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	BYTE PTR [rax], 46
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	BYTE PTR [rax], 48
.L18:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L19
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	BYTE PTR [rax], 46
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	BYTE PTR [rax], 48
.L19:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	BYTE PTR [rax], 46
	jmp	.L20
.L11:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	BYTE PTR [rax], 46
	jmp	.L20
.L15:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	BYTE PTR [rax], 46
	mov	DWORD PTR -24[rbp], 1
	jmp	.L20
.L13:
	cmp	DWORD PTR -24[rbp], 0
	jne	.L21
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	BYTE PTR [rax], 46
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	BYTE PTR [rax], 48
	mov	DWORD PTR -24[rbp], 1
.L21:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	BYTE PTR [rax], 46
	mov	DWORD PTR -20[rbp], 1
	jmp	.L20
.L12:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	rdx, QWORD PTR -16[rbp]
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	nop
.L20:
	add	QWORD PTR -16[rbp], 1
.L10:
	cmp	DWORD PTR -28[rbp], 0
	jne	.L22
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L23
.L22:
	movzx	eax, BYTE PTR version.0[rip]
	cmp	al, 47
	jle	.L24
	movzx	eax, BYTE PTR version.0[rip]
	cmp	al, 57
	jle	.L25
.L24:
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, version.0[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L6
.L25:
	lea	rax, version.0[rip]
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	ParseReleaseTag, .-ParseReleaseTag
	.globl	append_marker
	.type	append_marker, @function
append_marker:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	BYTE PTR -28[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L27
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	movzx	eax, BYTE PTR -28[rbp]
	test	al, al
	je	.L27
	lea	rcx, -28[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	strncat@PLT
.L27:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	append_marker, .-append_marker
	.section	.rodata
.LC4:
	.string	"0123456789"
	.align 8
.LC5:
	.string	"\nInvalid release tag format, too long, yields: %s\n"
	.text
	.globl	BuildPattern
	.type	BuildPattern, @function
BuildPattern:
.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, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcspn@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	sub	rax, rdx
	mov	rbx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jnb	.L30
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -56[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L31
.L30:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
.L31:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	BuildPattern, .-BuildPattern
	.section	.rodata
.LC6:
	.string	":"
	.align 8
.LC7:
	.string	"\nInvalid brand, too long: '%s'\n"
	.text
	.globl	BuildBrandPattern
	.type	BuildBrandPattern, @function
BuildBrandPattern:
.LFB11:
	.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, 56
	.cfi_offset 3, -24
	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	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcspn@PLT
	add	eax, 1
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, rdx
	lea	rbx, -1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jnb	.L33
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -64[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L34
.L33:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
.L34:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	BuildBrandPattern, .-BuildBrandPattern
	.section	.rodata
	.align 8
.LC8:
	.string	"\nRead seek on file (stream) failed\n"
	.align 8
.LC9:
	.string	"\nWrite of patched data failed\n"
	.align 8
.LC10:
	.string	"\nWrite seek on file (stream) failed\n"
	.text
	.globl	PerformPatch
	.type	PerformPatch, @function
PerformPatch:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	cmp	QWORD PTR -24[rbp], 0
	je	.L36
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	jne	.L37
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	cmp	QWORD PTR -48[rbp], rax
	jne	.L38
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	jne	.L39
	mov	eax, 1
	jmp	.L40
.L39:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 35
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	jmp	.L36
.L38:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	jmp	.L36
.L37:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 36
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
.L36:
	mov	eax, 0
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	PerformPatch, .-PerformPatch
	.section	.rodata
.LC11:
	.string	"r+"
.LC12:
	.string	"\nPremature EOF: %s\n"
.LC13:
	.string	"\nCan't seek: %s\n"
	.align 8
.LC14:
	.string	"\nVersion string search pattern not found: %.*s\n"
.LC15:
	.string	"NULL"
	.align 8
.LC16:
	.string	"Patch failed for filename: %s\n\n"
	.text
	.globl	PatchFilename
	.type	PatchFilename, @function
PatchFilename:
.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
	add	rsp, -128
	mov	QWORD PTR -8280[rbp], rdi
	mov	QWORD PTR -8288[rbp], rsi
	mov	DWORD PTR -8292[rbp], edx
	mov	QWORD PTR -8304[rbp], rcx
	mov	QWORD PTR -8312[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -8248[rbp], 0
	mov	DWORD PTR -8260[rbp], 0
	mov	DWORD PTR -8256[rbp], 0
	cmp	QWORD PTR -8280[rbp], 0
	je	.L63
	mov	rax, QWORD PTR -8280[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L63
	mov	rax, QWORD PTR -8280[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8248[rbp], rax
	cmp	QWORD PTR -8248[rbp], 0
	jne	.L44
	mov	rax, QWORD PTR -8280[rbp]
	mov	rdi, rax
	call	perror@PLT
	jmp	.L42
.L55:
	mov	rdx, QWORD PTR -8248[rbp]
	lea	rax, -8208[rbp]
	mov	rcx, rdx
	mov	edx, 8192
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -8252[rbp], eax
	lea	rax, -8208[rbp]
	mov	QWORD PTR -8240[rbp], rax
	cmp	DWORD PTR -8252[rbp], 0
	jne	.L45
	mov	DWORD PTR -8256[rbp], 1
	jmp	.L44
.L45:
	cmp	DWORD PTR -8252[rbp], 0
	jns	.L47
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8280[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L42
.L53:
	mov	DWORD PTR -8264[rbp], 0
	mov	rax, QWORD PTR -8288[rbp]
	mov	QWORD PTR -8232[rbp], rax
	mov	rax, QWORD PTR -8240[rbp]
	mov	QWORD PTR -8224[rbp], rax
	jmp	.L48
.L50:
	add	DWORD PTR -8264[rbp], 1
.L48:
	mov	rax, QWORD PTR -8240[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8240[rbp], rdx
	movzx	ecx, BYTE PTR [rax]
	mov	rax, QWORD PTR -8232[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8232[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	cmp	cl, al
	jne	.L49
	mov	eax, DWORD PTR -8264[rbp]
	cmp	eax, DWORD PTR -8292[rbp]
	jl	.L50
.L49:
	mov	eax, DWORD PTR -8264[rbp]
	cmp	eax, DWORD PTR -8292[rbp]
	jne	.L51
	mov	rax, QWORD PTR -8248[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	edx, DWORD PTR -8252[rbp]
	movsx	rdx, edx
	sub	rax, rdx
	mov	rcx, rax
	lea	rdx, -8208[rbp]
	mov	rax, QWORD PTR -8224[rbp]
	sub	rax, rdx
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -8292[rbp]
	cdqe
	add	rax, rdx
	mov	QWORD PTR -8216[rbp], rax
	mov	rcx, QWORD PTR -8312[rbp]
	mov	rdx, QWORD PTR -8304[rbp]
	mov	rsi, QWORD PTR -8216[rbp]
	mov	rax, QWORD PTR -8248[rbp]
	mov	rdi, rax
	call	PerformPatch
	test	eax, eax
	je	.L64
	mov	DWORD PTR -8260[rbp], 1
.L51:
	mov	rax, QWORD PTR -8224[rbp]
	add	rax, 1
	mov	QWORD PTR -8240[rbp], rax
.L47:
	lea	rdx, -8208[rbp]
	mov	rax, QWORD PTR -8240[rbp]
	sub	rax, rdx
	mov	rcx, rax
	mov	eax, DWORD PTR -8292[rbp]
	cdqe
	lea	rdx, [rcx+rax]
	mov	eax, DWORD PTR -8252[rbp]
	cdqe
	cmp	rdx, rax
	jle	.L53
	mov	eax, DWORD PTR -8252[rbp]
	cmp	eax, DWORD PTR -8292[rbp]
	jg	.L54
	mov	DWORD PTR -8256[rbp], 1
	jmp	.L44
.L54:
	mov	eax, DWORD PTR -8292[rbp]
	neg	eax
	movsx	rcx, eax
	mov	rax, QWORD PTR -8248[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	cmp	eax, -1
	jne	.L44
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8280[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L42
.L44:
	cmp	DWORD PTR -8256[rbp], 0
	je	.L55
	mov	rax, QWORD PTR -8248[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	QWORD PTR -8248[rbp], 0
	cmp	DWORD PTR -8260[rbp], 0
	jne	.L56
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -8288[rbp]
	mov	edx, DWORD PTR -8292[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L42
.L56:
	mov	eax, 1
	jmp	.L61
.L63:
	nop
	jmp	.L42
.L64:
	nop
.L42:
	cmp	QWORD PTR -8248[rbp], 0
	je	.L58
	mov	rax, QWORD PTR -8248[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L58:
	cmp	QWORD PTR -8280[rbp], 0
	je	.L59
	mov	rax, QWORD PTR -8280[rbp]
	jmp	.L60
.L59:
	lea	rax, .LC15[rip]
.L60:
	mov	rcx, QWORD PTR stderr[rip]
	mov	rdx, rax
	lea	rsi, .LC16[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
.L61:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L62
	call	__stack_chk_fail@PLT
.L62:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	PatchFilename, .-PatchFilename
	.globl	basename
	.type	basename, @function
basename:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 47
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L66
	mov	rax, QWORD PTR -24[rbp]
	jmp	.L67
.L66:
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
.L67:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	basename, .-basename
	.section	.rodata
.LC17:
	.string	"patch_brand"
.LC18:
	.string	"im:"
.LC19:
	.string	"Intel"
	.align 8
.LC20:
	.string	"THIS_IS_THE_ICS_BRAND:Intel"
	.string	"           "
	.align 8
.LC21:
	.string	"THIS_IS_THE_ICS_VERSION_NUMBER:@(#)000.000.000.000B000"
	.align 8
.LC22:
	.string	"THIS_IS_THE_ICS_INTERNAL_VERSION_NUMBER:@(#)000.000.000.000B000I0000"
.LC23:
	.string	"Patching %s with brand '%s'\n"
.LC24:
	.string	""
	.align 8
.LC25:
	.string	"Patching %s with version strings %s and %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB15:
	.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, 1192
	.cfi_offset 3, -24
	mov	DWORD PTR -1188[rbp], edi
	mov	QWORD PTR -1200[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1176[rbp], 0
	mov	DWORD PTR -1168[rbp], 0
	mov	BYTE PTR -1177[rbp], 0
	mov	DWORD PTR -1164[rbp], 0
	mov	rax, QWORD PTR -1200[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	basename
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	DWORD PTR -1164[rbp], eax
	jmp	.L69
.L73:
	cmp	DWORD PTR -1160[rbp], 105
	je	.L70
	cmp	DWORD PTR -1160[rbp], 109
	je	.L71
	jmp	.L94
.L70:
	mov	DWORD PTR -1168[rbp], 1
	jmp	.L69
.L71:
	mov	rax, QWORD PTR optarg[rip]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -1177[rbp], al
	jmp	.L69
.L94:
	nop
.L69:
	mov	rcx, QWORD PTR -1200[rbp]
	mov	eax, DWORD PTR -1188[rbp]
	lea	rdx, .LC18[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -1160[rbp], eax
	cmp	DWORD PTR -1160[rbp], -1
	jne	.L73
	mov	edx, DWORD PTR optind[rip]
	mov	eax, DWORD PTR -1188[rbp]
	sub	eax, edx
	mov	DWORD PTR -1156[rbp], eax
	cmp	DWORD PTR -1164[rbp], 0
	je	.L74
	cmp	DWORD PTR -1156[rbp], 0
	jg	.L75
	mov	rax, QWORD PTR -1200[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	UsageBrand
.L75:
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1200[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -1152[rbp], rax
	mov	rax, QWORD PTR -1152[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L76
	lea	rax, .LC19[rip]
	mov	QWORD PTR -1152[rbp], rax
.L76:
	movsx	edx, BYTE PTR -1177[rbp]
	mov	rax, QWORD PTR -1152[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	append_marker
	mov	QWORD PTR -1152[rbp], rax
	cmp	QWORD PTR -1152[rbp], 0
	jne	.L77
	mov	edi, 1
	call	exit@PLT
.L77:
	mov	QWORD PTR -1144[rbp], 0
	mov	rdx, QWORD PTR -1152[rbp]
	lea	rax, -1056[rbp]
	mov	rcx, rdx
	mov	edx, 40
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	BuildBrandPattern
	test	rax, rax
	jne	.L78
	mov	edi, 2
	call	exit@PLT
.L74:
	cmp	DWORD PTR -1156[rbp], 0
	jg	.L79
	mov	rax, QWORD PTR -1200[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	Usage
.L79:
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1200[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -1168[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	ParseReleaseTag
	mov	QWORD PTR -1152[rbp], rax
	cmp	QWORD PTR -1152[rbp], 0
	jne	.L80
	mov	edi, 2
	call	exit@PLT
.L80:
	movsx	edx, BYTE PTR -1177[rbp]
	mov	rax, QWORD PTR -1152[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	append_marker
	mov	QWORD PTR -1152[rbp], rax
	cmp	QWORD PTR -1152[rbp], 0
	jne	.L81
	mov	edi, 1
	call	exit@PLT
.L81:
	movsx	edx, BYTE PTR -1177[rbp]
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -1200[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	esi, edx
	mov	rdi, rax
	call	append_marker
	mov	QWORD PTR -1144[rbp], rax
	cmp	QWORD PTR -1144[rbp], 0
	jne	.L82
	mov	edi, 1
	call	exit@PLT
.L82:
	mov	rdx, QWORD PTR -1152[rbp]
	lea	rax, -1056[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	BuildPattern
	test	rax, rax
	jne	.L83
	mov	edi, 2
	call	exit@PLT
.L83:
	mov	rdx, QWORD PTR -1144[rbp]
	lea	rax, -1136[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	call	BuildPattern
	test	rax, rax
	jne	.L78
	mov	edi, 2
	call	exit@PLT
.L78:
	cmp	DWORD PTR -1156[rbp], 1
	jne	.L84
	mov	rax, QWORD PTR -1152[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L84:
	mov	eax, DWORD PTR optind[rip]
	add	eax, 1
	mov	DWORD PTR -1172[rbp], eax
	jmp	.L85
.L92:
	cmp	DWORD PTR -1164[rbp], 0
	je	.L86
	mov	eax, DWORD PTR -1172[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1200[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -1152[rbp]
	mov	rsi, rax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L87
.L86:
	cmp	QWORD PTR -1144[rbp], 0
	je	.L88
	mov	rax, QWORD PTR -1144[rbp]
	jmp	.L89
.L88:
	lea	rax, .LC24[rip]
.L89:
	mov	edx, DWORD PTR -1172[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -1200[rbp]
	add	rdx, rcx
	mov	rsi, QWORD PTR [rdx]
	mov	rdx, QWORD PTR -1152[rbp]
	mov	rcx, rax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
.L87:
	mov	rax, QWORD PTR -1152[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rbx, 1[rax]
	lea	rax, -1056[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edi, eax
	mov	eax, DWORD PTR -1172[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1200[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -1152[rbp]
	lea	rsi, -1056[rbp]
	mov	r8, rbx
	mov	rcx, rdx
	mov	edx, edi
	mov	rdi, rax
	call	PatchFilename
	test	eax, eax
	jne	.L90
	mov	DWORD PTR -1176[rbp], 1
.L90:
	cmp	QWORD PTR -1144[rbp], 0
	je	.L91
	mov	rax, QWORD PTR -1144[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rbx, 1[rax]
	lea	rax, -1136[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edi, eax
	mov	eax, DWORD PTR -1172[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1200[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -1144[rbp]
	lea	rsi, -1136[rbp]
	mov	r8, rbx
	mov	rcx, rdx
	mov	edx, edi
	mov	rdi, rax
	call	PatchFilename
	test	eax, eax
	jne	.L91
	mov	DWORD PTR -1176[rbp], 1
.L91:
	add	DWORD PTR -1172[rbp], 1
.L85:
	mov	eax, DWORD PTR -1172[rbp]
	cmp	eax, DWORD PTR -1188[rbp]
	jl	.L92
	mov	eax, DWORD PTR -1176[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE15:
	.size	main, .-main
	.local	version.0
	.comm	version.0,100,32
	.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	"18600.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Usage:     %s [-i][-m marker] release_tag [file"
	.ascii	" ...]\012\000"
	.text
	.align	2
	.global	Usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	Usage, %function
Usage:
	@ 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	r3, .L2
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L2+4
	mov	r0, r3
	bl	fprintf
	mov	r0, #2
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	Usage, .-Usage
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\012Usage:     %s [-m marker] brand [file ...]\012\000"
	.text
	.align	2
	.global	UsageBrand
	.syntax unified
	.arm
	.fpu softvfp
	.type	UsageBrand, %function
UsageBrand:
	@ 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	r3, .L5
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L5+4
	mov	r0, r3
	bl	fprintf
	mov	r0, #2
	bl	exit
.L6:
	.align	2
.L5:
	.word	stderr
	.word	.LC1
	.size	UsageBrand, .-UsageBrand
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012Invalid release tag format, empty string\012\000"
	.align	2
.LC3:
	.ascii	"\012Invalid release tag format yields: %s\012\000"
	.text
	.align	2
	.global	ParseReleaseTag
	.syntax unified
	.arm
	.fpu softvfp
	.type	ParseReleaseTag, %function
ParseReleaseTag:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L9
.L8:
	ldr	r3, .L31
	ldr	r3, [r3]
	mov	r2, #42
	mov	r1, #1
	ldr	r0, .L31+4
	bl	fwrite
	mov	r3, #0
	b	.L10
.L9:
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	b	.L11
.L13:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L11:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L12
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L13
.L12:
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, .L31+8
	str	r3, [fp, #-20]
	b	.L14
.L28:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #73
	cmp	r3, #22
	ldrls	pc, [pc, r3, asl #2]
	b	.L15
.L17:
	.word	.L20
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L19
	.word	.L15
	.word	.L15
	.word	.L18
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L15
	.word	.L16
.L20:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L21
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L25
.L21:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	mov	r2, #46
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	mov	r2, #48
	strb	r2, [r3]
.L23:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L24
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	mov	r2, #46
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	mov	r2, #48
	strb	r2, [r3]
.L24:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	mov	r2, #46
	strb	r2, [r3]
	b	.L25
.L16:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	mov	r2, #46
	strb	r2, [r3]
	b	.L25
.L19:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	mov	r2, #46
	strb	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L25
.L18:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	mov	r2, #46
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	mov	r2, #48
	strb	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-12]
.L26:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	mov	r2, #46
	strb	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L25
.L15:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldr	r2, [fp, #-24]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	nop
.L25:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L14:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L27
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L28
.L27:
	ldr	r3, .L31+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L29
	ldr	r3, .L31+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L30
.L29:
	ldr	r3, .L31
	ldr	r3, [r3]
	ldr	r2, .L31+8
	ldr	r1, .L31+12
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	b	.L10
.L30:
	ldr	r3, .L31+8
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	stderr
	.word	.LC2
	.word	version.5444
	.word	.LC3
	.size	ParseReleaseTag, .-ParseReleaseTag
	.align	2
	.global	append_marker
	.syntax unified
	.arm
	.fpu softvfp
	.type	append_marker, %function
append_marker:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, r1
	strb	r3, [fp, #-17]
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L34
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	strcpy
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L34
	sub	r3, fp, #17
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	strncat
.L34:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	append_marker, .-append_marker
	.section	.rodata
	.align	2
.LC4:
	.ascii	"0123456789\000"
	.align	2
.LC5:
	.ascii	"\012Invalid release tag format, too long, yields: %"
	.ascii	"s\012\000"
	.text
	.align	2
	.global	BuildPattern
	.syntax unified
	.arm
	.fpu softvfp
	.type	BuildPattern, %function
BuildPattern:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	strcpy
	ldr	r1, .L39
	ldr	r0, [fp, #-24]
	bl	strcspn
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-16]
	sub	r4, r2, r3
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	cmp	r4, r3
	bcs	.L37
	ldr	r3, .L39+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	ldr	r1, .L39+8
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	b	.L38
.L37:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
.L38:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC4
	.word	stderr
	.word	.LC5
	.size	BuildPattern, .-BuildPattern
	.section	.rodata
	.align	2
.LC6:
	.ascii	":\000"
	.align	2
.LC7:
	.ascii	"\012Invalid brand, too long: '%s'\012\000"
	.text
	.align	2
	.global	BuildBrandPattern
	.syntax unified
	.arm
	.fpu softvfp
	.type	BuildBrandPattern, %function
BuildBrandPattern:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	strcpy
	ldr	r1, .L44
	ldr	r0, [fp, #-24]
	bl	strcspn
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-32]
	sub	r3, r2, r3
	sub	r4, r3, #1
	ldr	r0, [fp, #-36]
	bl	strlen
	mov	r3, r0
	cmp	r4, r3
	bcs	.L42
	ldr	r3, .L44+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	ldr	r1, .L44+8
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	b	.L43
.L42:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
.L43:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC6
	.word	stderr
	.word	.LC7
	.size	BuildBrandPattern, .-BuildBrandPattern
	.section	.rodata
	.align	2
.LC8:
	.ascii	"\012Read seek on file (stream) failed\012\000"
	.align	2
.LC9:
	.ascii	"\012Write of patched data failed\012\000"
	.align	2
.LC10:
	.ascii	"\012Write seek on file (stream) failed\012\000"
	.text
	.align	2
	.global	PerformPatch
	.syntax unified
	.arm
	.fpu softvfp
	.type	PerformPatch, %function
PerformPatch:
	@ 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]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L47
	ldr	r0, [fp, #-16]
	bl	ftell
	str	r0, [fp, #-8]
	mov	r2, #0
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	bne	.L48
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	fwrite
	mov	r2, r0
	ldr	r3, [fp, #-28]
	cmp	r3, r2
	bne	.L49
	mov	r2, #0
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	bne	.L50
	mov	r3, #1
	b	.L51
.L50:
	ldr	r3, .L52
	ldr	r3, [r3]
	mov	r2, #35
	mov	r1, #1
	ldr	r0, .L52+4
	bl	fwrite
	b	.L47
.L49:
	ldr	r3, .L52
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L52+8
	bl	fwrite
	b	.L47
.L48:
	ldr	r3, .L52
	ldr	r3, [r3]
	mov	r2, #36
	mov	r1, #1
	ldr	r0, .L52+12
	bl	fwrite
.L47:
	mov	r3, #0
.L51:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	stderr
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	PerformPatch, .-PerformPatch
	.section	.rodata
	.align	2
.LC11:
	.ascii	"r+\000"
	.align	2
.LC12:
	.ascii	"\012Premature EOF: %s\012\000"
	.align	2
.LC13:
	.ascii	"\012Can't seek: %s\012\000"
	.align	2
.LC14:
	.ascii	"\012Version string search pattern not found: %.*s\012"
	.ascii	"\000"
	.align	2
.LC15:
	.ascii	"NULL\000"
	.align	2
.LC16:
	.ascii	"Patch failed for filename: %s\012\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	PatchFilename
	.syntax unified
	.arm
	.fpu softvfp
	.type	PatchFilename, %function
PatchFilename:
	@ args = 4, pretend = 0, frame = 8248
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8192
	sub	sp, sp, #60
	sub	ip, fp, #8192
	sub	ip, ip, #12
	str	r0, [ip, #-44]
	sub	r0, fp, #8192
	sub	r0, r0, #12
	str	r1, [r0, #-48]
	sub	r1, fp, #8192
	sub	r1, r1, #12
	str	r2, [r1, #-52]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-56]
	ldr	r3, .L78
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-40]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-24]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-20]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	beq	.L76
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L76
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, .L78+4
	ldr	r0, [r3, #-44]
	bl	fopen
	str	r0, [r4, #-40]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	cmp	r3, #0
	bne	.L57
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-44]
	bl	perror
	b	.L55
.L68:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r0, fp, #8192
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-40]
	mov	r2, #8192
	mov	r1, #1
	bl	fread
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-16]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-36]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	bne	.L58
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-20]
	b	.L57
.L58:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	bge	.L60
	ldr	r3, .L78+8
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-44]
	ldr	r1, .L78+12
	mov	r0, r3
	bl	fprintf
	b	.L55
.L66:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-28]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	str	r3, [r2, #-32]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	str	r3, [r2, #-12]
	b	.L61
.L63:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	add	r3, r3, #1
	str	r3, [r2, #-28]
.L61:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-36]
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	add	r1, r3, #1
	str	r1, [r0, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L62
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-28]
	ldr	r3, [r3, #-52]
	cmp	r2, r3
	blt	.L63
.L62:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-28]
	ldr	r3, [r3, #-52]
	cmp	r2, r3
	bne	.L64
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-40]
	bl	ftell
	mov	r2, r0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	sub	r2, r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, [r1, #-12]
	sub	r3, r1, r3
	add	r3, r2, r3
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-52]
	add	r3, r2, r3
	str	r3, [r1, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	ldr	r3, [fp, #4]
	ldr	r2, [r2, #-56]
	ldr	r1, [r1, #-8]
	ldr	r0, [r0, #-40]
	bl	PerformPatch
	mov	r3, r0
	cmp	r3, #0
	beq	.L77
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-24]
.L64:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	add	r3, r3, #1
	str	r3, [r2, #-36]
.L60:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [r2, #-36]
	sub	r2, r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	add	r3, r2, r3
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-16]
	cmp	r2, r3
	bge	.L66
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, [r2, #-16]
	ldr	r3, [r3, #-52]
	cmp	r2, r3
	bgt	.L67
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-20]
	b	.L57
.L67:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	rsb	r3, r3, #0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [r0, #-40]
	bl	fseek
	mov	r2, r0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	str	r3, [r1, #-20]
	cmn	r2, #1
	bne	.L57
	ldr	r3, .L78+8
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r2, [r2, #-44]
	ldr	r1, .L78+16
	mov	r0, r3
	bl	fprintf
	b	.L55
.L57:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	cmp	r3, #0
	beq	.L68
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-40]
	bl	fclose
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-40]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	cmp	r3, #0
	bne	.L69
	ldr	r3, .L78+8
	ldr	r0, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r2, fp, #8192
	sub	r2, r2, #12
	ldr	r3, [r3, #-48]
	ldr	r2, [r2, #-52]
	ldr	r1, .L78+20
	bl	fprintf
	b	.L55
.L69:
	mov	r3, #1
	b	.L74
.L76:
	nop
	b	.L55
.L77:
	nop
.L55:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	cmp	r3, #0
	beq	.L71
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-40]
	bl	fclose
.L71:
	ldr	r3, .L78+8
	ldr	r0, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	beq	.L72
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	b	.L73
.L72:
	ldr	r3, .L78+24
.L73:
	mov	r2, r3
	ldr	r1, .L78+28
	bl	fprintf
	mov	r3, #0
.L74:
	ldr	r2, .L78
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L75
	bl	__stack_chk_fail
.L75:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L79:
	.align	2
.L78:
	.word	.LC17
	.word	.LC11
	.word	stderr
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	PatchFilename, .-PatchFilename
	.align	2
	.global	basename
	.syntax unified
	.arm
	.fpu softvfp
	.type	basename, %function
basename:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r1, #47
	ldr	r0, [fp, #-16]
	bl	strrchr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L81
	ldr	r3, [fp, #-16]
	b	.L82
.L81:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
.L82:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	basename, .-basename
	.section	.rodata
	.align	2
.LC18:
	.ascii	"patch_brand\000"
	.align	2
.LC19:
	.ascii	"im:\000"
	.align	2
.LC20:
	.ascii	"Intel\000"
	.align	2
.LC21:
	.ascii	"THIS_IS_THE_ICS_BRAND:Intel\000           \000"
	.align	2
.LC22:
	.ascii	"THIS_IS_THE_ICS_VERSION_NUMBER:@(#)000.000.000.000B"
	.ascii	"000\000"
	.align	2
.LC23:
	.ascii	"THIS_IS_THE_ICS_INTERNAL_VERSION_NUMBER:@(#)000.000"
	.ascii	".000.000B000I0000\000"
	.align	2
.LC24:
	.ascii	"Patching %s with brand '%s'\012\000"
	.align	2
.LC25:
	.ascii	"\000"
	.align	2
.LC26:
	.ascii	"Patching %s with version strings %s and %s\012\000"
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #1152
	str	r0, [fp, #-1152]
	str	r1, [fp, #-1156]
	ldr	r3, .L110
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1144]
	mov	r3, #0
	str	r3, [fp, #-1128]
	mov	r3, #0
	strb	r3, [fp, #-1145]
	mov	r3, #0
	str	r3, [fp, #-1124]
	ldr	r3, [fp, #-1156]
	ldr	r3, [r3]
	mov	r0, r3
	bl	basename
	mov	r3, r0
	ldr	r1, .L110+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-1124]
	b	.L84
.L88:
	ldr	r3, [fp, #-1120]
	cmp	r3, #105
	beq	.L85
	ldr	r3, [fp, #-1120]
	cmp	r3, #109
	beq	.L86
	b	.L109
.L85:
	mov	r3, #1
	str	r3, [fp, #-1128]
	b	.L84
.L86:
	ldr	r3, .L110+8
	ldr	r3, [r3]
	ldrb	r3, [r3]
	strb	r3, [fp, #-1145]
	b	.L84
.L109:
	nop
.L84:
	ldr	r2, .L110+12
	ldr	r1, [fp, #-1156]
	ldr	r0, [fp, #-1152]
	bl	getopt
	str	r0, [fp, #-1120]
	ldr	r3, [fp, #-1120]
	cmn	r3, #1
	bne	.L88
	ldr	r3, .L110+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-1152]
	sub	r3, r2, r3
	str	r3, [fp, #-1116]
	ldr	r3, [fp, #-1124]
	cmp	r3, #0
	beq	.L89
	ldr	r3, [fp, #-1116]
	cmp	r3, #0
	bgt	.L90
	ldr	r3, [fp, #-1156]
	ldr	r3, [r3]
	mov	r0, r3
	bl	UsageBrand
.L90:
	ldr	r3, .L110+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1156]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-1140]
	ldr	r3, [fp, #-1140]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L91
	ldr	r3, .L110+20
	str	r3, [fp, #-1140]
.L91:
	ldrb	r3, [fp, #-1145]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-1140]
	bl	append_marker
	str	r0, [fp, #-1140]
	ldr	r3, [fp, #-1140]
	cmp	r3, #0
	bne	.L92
	mov	r0, #1
	bl	exit
.L92:
	mov	r3, #0
	str	r3, [fp, #-1136]
	sub	r0, fp, #1024
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-1140]
	mov	r2, #40
	ldr	r1, .L110+24
	bl	BuildBrandPattern
	mov	r3, r0
	cmp	r3, #0
	bne	.L93
	mov	r0, #2
	bl	exit
.L89:
	ldr	r3, [fp, #-1116]
	cmp	r3, #0
	bgt	.L94
	ldr	r3, [fp, #-1156]
	ldr	r3, [r3]
	mov	r0, r3
	bl	Usage
.L94:
	ldr	r3, .L110+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1156]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-1128]
	mov	r0, r3
	bl	ParseReleaseTag
	str	r0, [fp, #-1140]
	ldr	r3, [fp, #-1140]
	cmp	r3, #0
	bne	.L95
	mov	r0, #2
	bl	exit
.L95:
	ldrb	r3, [fp, #-1145]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-1140]
	bl	append_marker
	str	r0, [fp, #-1140]
	ldr	r3, [fp, #-1140]
	cmp	r3, #0
	bne	.L96
	mov	r0, #1
	bl	exit
.L96:
	ldr	r3, .L110+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1156]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r2, [fp, #-1145]	@ zero_extendqisi2
	mov	r1, r2
	mov	r0, r3
	bl	append_marker
	str	r0, [fp, #-1136]
	ldr	r3, [fp, #-1136]
	cmp	r3, #0
	bne	.L97
	mov	r0, #1
	bl	exit
.L97:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, [fp, #-1140]
	ldr	r1, .L110+28
	mov	r0, r3
	bl	BuildPattern
	mov	r3, r0
	cmp	r3, #0
	bne	.L98
	mov	r0, #2
	bl	exit
.L98:
	sub	r3, fp, #1088
	sub	r3, r3, #12
	sub	r3, r3, #12
	ldr	r2, [fp, #-1136]
	ldr	r1, .L110+32
	mov	r0, r3
	bl	BuildPattern
	mov	r3, r0
	cmp	r3, #0
	bne	.L93
	mov	r0, #2
	bl	exit
.L93:
	ldr	r3, [fp, #-1116]
	cmp	r3, #1
	bne	.L99
	ldr	r0, [fp, #-1140]
	bl	puts
	mov	r0, #0
	bl	exit
.L99:
	ldr	r3, .L110+16
	ldr	r3, [r3]
	add	r3, r3, #1
	str	r3, [fp, #-1132]
	b	.L100
.L107:
	ldr	r3, [fp, #-1124]
	cmp	r3, #0
	beq	.L101
	ldr	r3, [fp, #-1132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1156]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-1140]
	mov	r1, r3
	ldr	r0, .L110+36
	bl	printf
	b	.L102
.L101:
	ldr	r3, [fp, #-1132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1156]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-1136]
	cmp	r3, #0
	beq	.L103
	ldr	r3, [fp, #-1136]
	b	.L104
.L103:
	ldr	r3, .L110+40
.L104:
	ldr	r2, [fp, #-1140]
	ldr	r0, .L110+44
	bl	printf
.L102:
	ldr	r3, [fp, #-1132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1156]
	add	r3, r2, r3
	ldr	r4, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r5, r3
	ldr	r0, [fp, #-1140]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	sub	r1, fp, #1024
	sub	r1, r1, #12
	sub	r1, r1, #4
	str	r3, [sp]
	ldr	r3, [fp, #-1140]
	mov	r2, r5
	mov	r0, r4
	bl	PatchFilename
	mov	r3, r0
	cmp	r3, #0
	bne	.L105
	mov	r3, #1
	str	r3, [fp, #-1144]
.L105:
	ldr	r3, [fp, #-1136]
	cmp	r3, #0
	beq	.L106
	ldr	r3, [fp, #-1132]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1156]
	add	r3, r2, r3
	ldr	r4, [r3]
	sub	r3, fp, #1088
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r5, r3
	ldr	r0, [fp, #-1136]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	sub	r1, fp, #1088
	sub	r1, r1, #12
	sub	r1, r1, #12
	str	r3, [sp]
	ldr	r3, [fp, #-1136]
	mov	r2, r5
	mov	r0, r4
	bl	PatchFilename
	mov	r3, r0
	cmp	r3, #0
	bne	.L106
	mov	r3, #1
	str	r3, [fp, #-1144]
.L106:
	ldr	r3, [fp, #-1132]
	add	r3, r3, #1
	str	r3, [fp, #-1132]
.L100:
	ldr	r2, [fp, #-1132]
	ldr	r3, [fp, #-1152]
	cmp	r2, r3
	blt	.L107
	ldr	r3, [fp, #-1144]
	mov	r0, r3
	bl	exit
.L111:
	.align	2
.L110:
	.word	.LC27
	.word	.LC18
	.word	optarg
	.word	.LC19
	.word	optind
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.size	main, .-main
	.local	version.5444
	.comm	version.5444,100,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
