	.file	"extr_suggest.c_FormatError.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	FormatError
	.type	FormatError, @function
FormatError:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 568
	.cfi_def_cfa_offset 624
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 552[rsp], rax
	xor	eax, eax
	test	ecx, ecx
	je	.L5
	mov	rbp, rsi
	mov	r12d, edx
	mov	ebx, ecx
	test	edi, edi
	je	.L4
	mov	DWORD PTR [rsi], 0
.L4:
	mov	rdi, rbp
	call	lstrlen@PLT
	sub	r12d, eax
	test	r12d, r12d
	jle	.L5
	cdqe
	mov	edi, ebx
	lea	r13, 0[rbp+rax*4]
	call	FormatSuggest@PLT
	mov	r8d, ebx
	mov	rbp, rax
	and	r8d, DWORD PTR DE_BEGIN[rip]
	je	.L41
	xor	eax, eax
.L6:
	mov	edx, DWORD PTR CHAR_NULL[rip]
	mov	DWORD PTR 0[r13], edx
	test	rbp, rbp
	je	.L5
	mov	edx, DWORD PTR 8[rbp]
	test	edx, edx
	je	.L5
	movsx	rdx, eax
	lea	r13, 0[r13+rdx*4]
	sub	r12d, eax
	jne	.L42
	.p2align 4,,10
	.p2align 3
.L5:
	xor	r8d, r8d
.L1:
	mov	rax, QWORD PTR 552[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L43
	add	rsp, 568
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L41:
	.cfi_restore_state
	test	rax, rax
	je	.L7
	mov	eax, DWORD PTR 4[rax]
	test	DWORD PTR SUG_IGN_FORMATMESSAGE[rip], eax
	je	.L7
	mov	eax, DWORD PTR CHAR_NULL[rip]
	mov	DWORD PTR 0[r13], eax
	mov	eax, DWORD PTR 8[rbp]
	test	eax, eax
	je	.L5
.L19:
	mov	esi, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR hAppInstance[rip]
	mov	ecx, r12d
	mov	rdx, r13
	mov	DWORD PTR 12[rsp], r8d
	call	LoadString@PLT
	mov	r8d, DWORD PTR 12[rsp]
	add	r8d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	DWORD PTR ERROR_EXTENDED_ERROR[rip], ebx
	je	.L44
	mov	edi, DWORD PTR lcid[rip]
	lea	r15d, 0[0+r12*4]
	call	LANGIDFROMLCID@PLT
	mov	r14, rax
.L14:
	sub	rsp, 8
	.cfi_def_cfa_offset 632
	mov	edi, DWORD PTR FORMAT_MESSAGE_FROM_SYSTEM[rip]
	xor	esi, esi
	mov	r9d, r15d
	push	0
	.cfi_def_cfa_offset 640
	or	edi, DWORD PTR FORMAT_MESSAGE_IGNORE_INSERTS[rip]
	mov	r8, r13
	mov	rcx, r14
	or	edi, DWORD PTR FORMAT_MESSAGE_MAX_WIDTH_MASK[rip]
	mov	edx, ebx
	call	FormatMessage@PLT
	pop	rsi
	.cfi_def_cfa_offset 632
	pop	rdi
	.cfi_def_cfa_offset 624
	test	eax, eax
	jne	.L11
	mov	esi, DWORD PTR SUBLANG_NEUTRAL[rip]
	mov	edi, DWORD PTR LANG_NEUTRAL[rip]
	call	MAKELANGID@PLT
	cmp	rax, r14
	je	.L12
	xor	eax, eax
	call	GetLastError@PLT
	cmp	rax, QWORD PTR ERROR_RESOURCE_LANG_NOT_FOUND[rip]
	mov	esi, DWORD PTR SUBLANG_NEUTRAL[rip]
	mov	edi, DWORD PTR LANG_NEUTRAL[rip]
	je	.L45
.L39:
	call	MAKELANGID@PLT
	mov	eax, 2
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, DWORD PTR SUBLANG_NEUTRAL[rip]
	mov	edi, DWORD PTR LANG_NEUTRAL[rip]
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR SUBLANG_NEUTRAL[rip]
	mov	edi, DWORD PTR LANG_NEUTRAL[rip]
	mov	DWORD PTR 12[rsp], eax
	call	MAKELANGID@PLT
	test	rbp, rbp
	mov	r8d, DWORD PTR 12[rsp]
	je	.L16
	mov	ecx, DWORD PTR 8[rbp]
	test	ecx, ecx
	jne	.L46
.L16:
	movsx	rax, r8d
	mov	ebx, DWORD PTR CHAR_NEWLINE[rip]
	sal	rax, 2
	lea	rdx, -4[r13+rax]
	cmp	DWORD PTR [rdx], ebx
	jne	.L20
	mov	ecx, DWORD PTR CHAR_NULL[rip]
	mov	DWORD PTR [rdx], ecx
.L20:
	cmp	r8d, 1
	jle	.L1
	lea	rax, -8[r13+rax]
	cmp	DWORD PTR [rax], 13
	jne	.L1
	mov	edx, DWORD PTR CHAR_NULL[rip]
	mov	DWORD PTR [rax], edx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L45:
	call	MAKELANGID@PLT
	mov	r14, rax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L42:
	xor	r8d, r8d
	test	eax, eax
	je	.L19
.L18:
	mov	edx, DWORD PTR CHAR_NEWLINE[rip]
	neg	eax
	cdqe
	mov	DWORD PTR 0[r13+rax*4], edx
	mov	eax, DWORD PTR CHAR_NEWLINE[rip]
	mov	DWORD PTR -4[r13], eax
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L44:
	cmp	QWORD PTR WAITNET_LOADED[rip], 0
	jne	.L47
.L10:
	mov	rdi, r13
	call	lstrlen@PLT
	mov	r8d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L47:
	lea	r14, 32[rsp]
	mov	rdi, r14
	call	COUNTOF@PLT
	lea	rdi, 28[rsp]
	mov	rcx, r14
	mov	edx, r12d
	mov	r8d, eax
	mov	rsi, r13
	call	WNetGetLastError@PLT
	jmp	.L10
.L43:
	call	__stack_chk_fail@PLT
.L46:
	lea	eax, 2[r8]
	movsx	rdx, eax
	sub	r12d, eax
	mov	eax, 2
	lea	r13, 0[r13+rdx*4]
	jne	.L18
	jmp	.L16
	.cfi_endproc
.LFE0:
	.size	FormatError, .-FormatError
	.comm	lcid,4,4
	.comm	hAppInstance,4,4
	.comm	WAITNET_LOADED,8,8
	.comm	SUG_IGN_FORMATMESSAGE,4,4
	.comm	SUBLANG_NEUTRAL,4,4
	.comm	LANG_NEUTRAL,4,4
	.comm	FORMAT_MESSAGE_MAX_WIDTH_MASK,4,4
	.comm	FORMAT_MESSAGE_IGNORE_INSERTS,4,4
	.comm	FORMAT_MESSAGE_FROM_SYSTEM,4,4
	.comm	ERROR_RESOURCE_LANG_NOT_FOUND,8,8
	.comm	ERROR_EXTENDED_ERROR,4,4
	.comm	DE_BEGIN,4,4
	.comm	CHAR_NULL,4,4
	.comm	CHAR_NEWLINE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_suggest.c_FormatError.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	FormatError
	.syntax unified
	.arm
	.fpu softvfp
	.type	FormatError, %function
FormatError:
	@ args = 0, pretend = 0, frame = 520
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r5, r3, #0
	ldr	r3, .L52
	sub	sp, sp, #540
	ldr	r3, [r3]
	str	r3, [sp, #532]
	mov	r3,#0
	beq	.L5
	cmp	r0, #0
	movne	r3, #0
	mov	r0, r1
	strne	r3, [r1]
	mov	r6, r2
	mov	r7, r1
	bl	lstrlen
	sub	r6, r6, r0
	cmp	r6, #0
	mov	r8, r0
	ble	.L5
	mov	r0, r5
	bl	FormatSuggest
	ldr	r3, .L52+4
	mov	r9, r0
	ldr	r4, [r3]
	add	r10, r7, r8, lsl #2
	ands	r4, r5, r4
	beq	.L44
	mov	r3, #0
.L6:
	ldr	r2, .L52+8
	cmp	r9, #0
	ldr	r2, [r2]
	str	r2, [r7, r8, lsl #2]
	beq	.L5
	ldr	r1, [r9, #8]
	cmp	r1, #0
	beq	.L5
	subs	r6, r6, r3
	add	r10, r10, r3, lsl #2
	bne	.L45
.L5:
	mov	r4, #0
.L1:
	ldr	r3, .L52
	ldr	r2, [r3]
	ldr	r3, [sp, #532]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L46
	mov	r0, r4
	add	sp, sp, #540
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L44:
	cmp	r0, #0
	beq	.L7
	ldr	r3, .L52+12
	ldr	r2, [r0, #4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L7
	ldr	r3, .L52+8
	ldr	r3, [r3]
	str	r3, [r7, r8, lsl #2]
	ldr	r1, [r0, #8]
	cmp	r1, #0
	beq	.L5
.L19:
	ldr	r0, .L52+16
	mov	r3, r6
	mov	r2, r10
	ldr	r0, [r0]
	bl	LoadString
	add	r4, r4, r0
	b	.L1
.L7:
	ldr	r3, .L52+20
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L47
	ldr	r3, .L52+24
	mov	r4, r5
	ldr	r0, [r3]
	bl	LANGIDFROMLCID
	lsl	r3, r6, #2
	mov	fp, r0
	mov	r5, r3
.L14:
	ldr	r3, .L52+28
	ldr	r2, .L52+32
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L52+36
	orr	r3, r3, r2
	mov	r2, #0
	ldr	r0, [r1]
	str	r2, [sp, #8]
	orr	r0, r3, r0
	mov	r2, r4
	mov	r3, fp
	mov	r1, #0
	str	r5, [sp, #4]
	str	r10, [sp]
	bl	FormatMessage
	cmp	r0, #0
	bne	.L11
	ldr	r3, .L52+40
	ldr	r1, [r3]
	ldr	r3, .L52+44
	ldr	r0, [r3]
	bl	MAKELANGID
	cmp	r0, fp
	beq	.L12
	bl	GetLastError
	ldr	r3, .L52+48
	ldr	r3, [r3]
	cmp	r0, r3
	ldr	r3, .L52+40
	ldr	r1, [r3]
	ldr	r3, .L52+44
	ldr	r0, [r3]
	beq	.L48
.L42:
	bl	MAKELANGID
	mov	r3, #2
	b	.L6
.L12:
	ldr	r3, .L52+40
	ldr	r1, [r3]
	ldr	r3, .L52+44
	ldr	r0, [r3]
	b	.L42
.L11:
	ldr	r3, .L52+40
	mov	r4, r0
	ldr	r1, [r3]
	ldr	r3, .L52+44
	ldr	r0, [r3]
	bl	MAKELANGID
	cmp	r9, #0
	beq	.L16
	ldr	r3, [r9, #8]
	cmp	r3, #0
	bne	.L49
.L16:
	ldr	r2, .L52+52
	sub	r3, r4, #-1073741823
	ldr	r1, [r2]
	ldr	r0, [r10, r3, lsl #2]
	lsl	r2, r3, #2
	cmp	r0, r1
	ldreq	r1, .L52+8
	ldreq	r1, [r1]
	streq	r1, [r10, r3, lsl #2]
	cmp	r4, #1
	ble	.L1
	sub	r2, r2, #4
	ldr	r3, [r10, r2]
	cmp	r3, #13
	ldreq	r3, .L52+8
	ldreq	r3, [r3]
	streq	r3, [r10, r2]
	b	.L1
.L48:
	bl	MAKELANGID
	mov	fp, r0
	b	.L14
.L45:
	cmp	r3, #0
	movne	r4, #0
	beq	.L50
.L18:
	ldr	r1, .L52+52
	lsl	r2, r3, #30
	ldr	r0, [r1]
	sub	r3, r2, r3
	str	r0, [r10, r3, lsl #2]
	ldr	r3, [r1]
	str	r3, [r10, #-4]
	ldr	r1, [r9, #8]
	b	.L19
.L47:
	ldr	r3, .L52+56
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L51
.L10:
	mov	r0, r10
	bl	lstrlen
	mov	r4, r0
	b	.L1
.L51:
	add	r0, sp, #20
	bl	COUNTOF
	mov	r2, r6
	str	r0, [sp]
	mov	r1, r10
	add	r3, sp, #20
	add	r0, sp, #16
	bl	WNetGetLastError
	b	.L10
.L46:
	bl	__stack_chk_fail
.L49:
	add	r3, r4, #2
	subs	r6, r6, r3
	add	r10, r10, r3, lsl #2
	movne	r3, #2
	bne	.L18
	b	.L16
.L50:
	mov	r4, r3
	b	.L19
.L53:
	.align	2
.L52:
	.word	.LC0
	.word	DE_BEGIN
	.word	CHAR_NULL
	.word	SUG_IGN_FORMATMESSAGE
	.word	hAppInstance
	.word	ERROR_EXTENDED_ERROR
	.word	lcid
	.word	FORMAT_MESSAGE_FROM_SYSTEM
	.word	FORMAT_MESSAGE_IGNORE_INSERTS
	.word	FORMAT_MESSAGE_MAX_WIDTH_MASK
	.word	SUBLANG_NEUTRAL
	.word	LANG_NEUTRAL
	.word	ERROR_RESOURCE_LANG_NOT_FOUND
	.word	CHAR_NEWLINE
	.word	WAITNET_LOADED
	.size	FormatError, .-FormatError
	.comm	lcid,4,4
	.comm	hAppInstance,4,4
	.comm	WAITNET_LOADED,4,4
	.comm	SUG_IGN_FORMATMESSAGE,4,4
	.comm	SUBLANG_NEUTRAL,4,4
	.comm	LANG_NEUTRAL,4,4
	.comm	FORMAT_MESSAGE_MAX_WIDTH_MASK,4,4
	.comm	FORMAT_MESSAGE_IGNORE_INSERTS,4,4
	.comm	FORMAT_MESSAGE_FROM_SYSTEM,4,4
	.comm	ERROR_RESOURCE_LANG_NOT_FOUND,4,4
	.comm	ERROR_EXTENDED_ERROR,4,4
	.comm	DE_BEGIN,4,4
	.comm	CHAR_NULL,4,4
	.comm	CHAR_NEWLINE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
