	.file	"extr_loadlib.c_ReportLastError.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ReportLastError() %d - %s\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"ERROR: ReportLastError() %d - returned TRUE but with no msg string!\n"
	.align 8
.LC2:
	.string	"ReportLastError() %d - unknown error\n"
	.text
	.p2align 4
	.globl	ReportLastError
	.type	ReportLastError, @function
ReportLastError:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	GetLastError@PLT
	cmp	QWORD PTR ERROR_SUCCESS[rip], rax
	mov	r12, rax
	jne	.L13
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	esi, DWORD PTR SUBLANG_DEFAULT[rip]
	mov	edi, DWORD PTR LANG_NEUTRAL[rip]
	mov	QWORD PTR [rsp], 0
	call	MAKELANGID@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdx, r12
	xor	r9d, r9d
	push	0
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR FORMAT_MESSAGE_ALLOCATE_BUFFER[rip]
	mov	ecx, eax
	xor	esi, esi
	or	edi, DWORD PTR FORMAT_MESSAGE_FROM_SYSTEM[rip]
	lea	r8, 16[rsp]
	call	FormatMessageA@PLT
	pop	rdx
	.cfi_def_cfa_offset 40
	pop	rcx
	.cfi_def_cfa_offset 32
	test	rax, rax
	je	.L3
	mov	rdx, QWORD PTR [rsp]
	mov	rsi, r12
	test	rdx, rdx
	je	.L4
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	dprintf@PLT
.L5:
	mov	rdi, QWORD PTR [rsp]
	test	rdi, rdi
	je	.L1
	call	LocalFree@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, r12
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	dprintf@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	dprintf@PLT
	jmp	.L5
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ReportLastError, .-ReportLastError
	.comm	SUBLANG_DEFAULT,4,4
	.comm	LANG_NEUTRAL,4,4
	.comm	FORMAT_MESSAGE_FROM_SYSTEM,4,4
	.comm	FORMAT_MESSAGE_ALLOCATE_BUFFER,4,4
	.comm	ERROR_SUCCESS,8,8
	.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_loadlib.c_ReportLastError.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ReportLastError() %d - %s\012\000"
	.align	2
.LC1:
	.ascii	"ERROR: ReportLastError() %d - returned TRUE but wit"
	.ascii	"h no msg string!\012\000"
	.align	2
.LC2:
	.ascii	"ReportLastError() %d - unknown error\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ReportLastError
	.syntax unified
	.arm
	.fpu softvfp
	.type	ReportLastError, %function
ReportLastError:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L15
	sub	sp, sp, #24
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	GetLastError
	ldr	r3, .L15+4
	mov	r4, r0
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L13
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L13:
	mov	r5, #0
	ldr	r0, .L15+8
	ldr	r3, .L15+12
	ldr	r2, .L15+16
	ldr	r1, .L15+20
	ldr	r6, [r0]
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r0, [r2]
	orr	r6, r6, r3
	str	r5, [sp, #16]
	bl	MAKELANGID
	add	r2, sp, #16
	mov	r3, r0
	str	r2, [sp]
	mov	r1, r5
	mov	r0, r6
	mov	r2, r4
	str	r5, [sp, #8]
	str	r5, [sp, #4]
	bl	FormatMessageA
	cmp	r0, r5
	beq	.L3
	ldr	r2, [sp, #16]
	mov	r1, r4
	cmp	r2, r5
	beq	.L4
	ldr	r0, .L15+24
	bl	dprintf
.L5:
	ldr	r0, [sp, #16]
	cmp	r0, #0
	beq	.L1
	bl	LocalFree
	b	.L1
.L3:
	mov	r1, r4
	ldr	r0, .L15+28
	bl	dprintf
	b	.L5
.L4:
	ldr	r0, .L15+32
	bl	dprintf
	b	.L5
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC3
	.word	ERROR_SUCCESS
	.word	FORMAT_MESSAGE_ALLOCATE_BUFFER
	.word	FORMAT_MESSAGE_FROM_SYSTEM
	.word	LANG_NEUTRAL
	.word	SUBLANG_DEFAULT
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.size	ReportLastError, .-ReportLastError
	.comm	SUBLANG_DEFAULT,4,4
	.comm	LANG_NEUTRAL,4,4
	.comm	FORMAT_MESSAGE_FROM_SYSTEM,4,4
	.comm	FORMAT_MESSAGE_ALLOCATE_BUFFER,4,4
	.comm	ERROR_SUCCESS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
