	.file	"extr_dl.c_uv__dlerror.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%1"
	.text
	.p2align 4
	.type	uv__dlerror, @function
uv__dlerror:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rdi, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L2
	call	LocalFree@PLT
	mov	QWORD PTR 0[rbp], 0
.L2:
	xor	eax, eax
	test	r12, r12
	jne	.L25
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L26
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	esi, DWORD PTR SUBLANG_ENGLISH_US[rip]
	mov	edi, DWORD PTR LANG_ENGLISH[rip]
	call	MAKELANGID@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	r8d, ebp
	xor	r9d, r9d
	push	0
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR FORMAT_MESSAGE_ALLOCATE_BUFFER[rip]
	mov	ecx, eax
	mov	rdx, r12
	or	edi, DWORD PTR FORMAT_MESSAGE_FROM_SYSTEM[rip]
	xor	esi, esi
	or	edi, DWORD PTR FORMAT_MESSAGE_IGNORE_INSERTS[rip]
	call	FormatMessageA@PLT
	pop	rdi
	.cfi_def_cfa_offset 72
	pop	r8
	.cfi_def_cfa_offset 64
	test	rax, rax
	je	.L4
.L8:
	cmp	QWORD PTR ERROR_BAD_EXE_FORMAT[rip], r12
	je	.L27
.L6:
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	xor	eax, eax
	call	GetLastError@PLT
	cmp	rax, QWORD PTR ERROR_MUI_FILE_NOT_FOUND[rip]
	je	.L10
	xor	eax, eax
	call	GetLastError@PLT
	cmp	rax, QWORD PTR ERROR_RESOURCE_TYPE_NOT_FOUND[rip]
	je	.L10
.L9:
	mov	rsi, r12
	mov	rdi, rbp
	call	uv__format_fallback_error@PLT
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	edi, DWORD PTR FORMAT_MESSAGE_ALLOCATE_BUFFER[rip]
	xor	ecx, ecx
	xor	esi, esi
	push	0
	.cfi_def_cfa_offset 80
	or	edi, DWORD PTR FORMAT_MESSAGE_FROM_SYSTEM[rip]
	xor	r9d, r9d
	mov	r8d, ebp
	or	edi, DWORD PTR FORMAT_MESSAGE_IGNORE_INSERTS[rip]
	mov	rdx, r12
	call	FormatMessageA@PLT
	pop	rcx
	.cfi_def_cfa_offset 72
	pop	rsi
	.cfi_def_cfa_offset 64
	test	rax, rax
	je	.L9
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L27:
	mov	r13, QWORD PTR 0[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	strstr@PLT
	test	rax, rax
	je	.L6
	mov	QWORD PTR [rsp], rbx
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	xor	edx, edx
	mov	edi, DWORD PTR FORMAT_MESSAGE_ALLOCATE_BUFFER[rip]
	lea	rax, 8[rsp]
	or	edi, DWORD PTR FORMAT_MESSAGE_ARGUMENT_ARRAY[rip]
	xor	r9d, r9d
	xor	ecx, ecx
	push	rax
	.cfi_def_cfa_offset 80
	or	edi, DWORD PTR FORMAT_MESSAGE_FROM_STRING[rip]
	mov	r8d, ebp
	mov	rsi, r13
	mov	QWORD PTR 0[rbp], 0
	call	FormatMessageA@PLT
	mov	rdi, r13
	mov	rbx, rax
	call	LocalFree@PLT
	pop	rax
	.cfi_def_cfa_offset 72
	pop	rdx
	.cfi_def_cfa_offset 64
	test	rbx, rbx
	jne	.L6
	jmp	.L9
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	uv__dlerror, .-uv__dlerror
	.comm	SUBLANG_ENGLISH_US,4,4
	.comm	LANG_ENGLISH,4,4
	.comm	FORMAT_MESSAGE_IGNORE_INSERTS,4,4
	.comm	FORMAT_MESSAGE_FROM_SYSTEM,4,4
	.comm	FORMAT_MESSAGE_FROM_STRING,4,4
	.comm	FORMAT_MESSAGE_ARGUMENT_ARRAY,4,4
	.comm	FORMAT_MESSAGE_ALLOCATE_BUFFER,4,4
	.comm	ERROR_RESOURCE_TYPE_NOT_FOUND,8,8
	.comm	ERROR_MUI_FILE_NOT_FOUND,8,8
	.comm	ERROR_BAD_EXE_FORMAT,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_dl.c_uv__dlerror.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%1\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uv__dlerror, %function
uv__dlerror:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	ldr	r0, [r0]
	ldr	r3, .L29
	sub	sp, sp, #24
	cmp	r0, #0
	mov	r6, r1
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	beq	.L2
	bl	LocalFree
	mov	r3, #0
	str	r3, [r5]
.L2:
	cmp	r4, #0
	bne	.L26
.L3:
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L26:
	ldr	r8, .L29+4
	ldr	r10, .L29+8
	ldr	r9, .L29+12
	ldr	r0, [r10]
	ldr	r2, .L29+16
	ldr	r7, [r8]
	ldr	r1, .L29+20
	ldr	r3, [r9]
	ldr	r1, [r1]
	orr	r7, r7, r0
	ldr	r0, [r2]
	orr	r7, r7, r3
	bl	MAKELANGID
	mov	r1, #0
	mov	r3, r0
	mov	r2, r4
	mov	r0, r7
	str	r5, [sp]
	str	r1, [sp, #8]
	str	r1, [sp, #4]
	bl	FormatMessageA
	cmp	r0, #0
	beq	.L4
.L8:
	ldr	r3, .L29+24
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L28
.L6:
	mvn	r4, #0
	b	.L3
.L4:
	bl	GetLastError
	ldr	r3, .L29+28
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L10
	bl	GetLastError
	ldr	r3, .L29+32
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L10
.L9:
	mov	r1, r4
	mov	r0, r5
	bl	uv__format_fallback_error
	mvn	r4, #0
	b	.L3
.L10:
	mov	r3, #0
	ldr	r1, [r10]
	ldr	r2, [r8]
	ldr	r0, [r9]
	orr	r2, r2, r1
	orr	r0, r2, r0
	mov	r1, r3
	mov	r2, r4
	str	r5, [sp]
	str	r3, [sp, #8]
	str	r3, [sp, #4]
	bl	FormatMessageA
	cmp	r0, #0
	beq	.L9
	b	.L8
.L28:
	ldr	r7, [r5]
	ldr	r1, .L29+36
	mov	r0, r7
	bl	strstr
	cmp	r0, #0
	beq	.L6
	mov	r3, #0
	ldr	r1, .L29+40
	ldr	r0, .L29+44
	ldr	r1, [r1]
	ldr	r2, [r8]
	ldr	r0, [r0]
	orr	r2, r2, r1
	add	r1, sp, #16
	str	r5, [sp]
	orr	r0, r2, r0
	str	r3, [r5]
	mov	r2, r3
	str	r3, [sp, #4]
	str	r1, [sp, #8]
	mov	r1, r7
	str	r6, [sp, #16]
	bl	FormatMessageA
	mov	r6, r0
	mov	r0, r7
	bl	LocalFree
	cmp	r6, #0
	bne	.L6
	b	.L9
.L27:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	.LC1
	.word	FORMAT_MESSAGE_ALLOCATE_BUFFER
	.word	FORMAT_MESSAGE_FROM_SYSTEM
	.word	FORMAT_MESSAGE_IGNORE_INSERTS
	.word	LANG_ENGLISH
	.word	SUBLANG_ENGLISH_US
	.word	ERROR_BAD_EXE_FORMAT
	.word	ERROR_MUI_FILE_NOT_FOUND
	.word	ERROR_RESOURCE_TYPE_NOT_FOUND
	.word	.LC0
	.word	FORMAT_MESSAGE_ARGUMENT_ARRAY
	.word	FORMAT_MESSAGE_FROM_STRING
	.size	uv__dlerror, .-uv__dlerror
	.comm	SUBLANG_ENGLISH_US,4,4
	.comm	LANG_ENGLISH,4,4
	.comm	FORMAT_MESSAGE_IGNORE_INSERTS,4,4
	.comm	FORMAT_MESSAGE_FROM_SYSTEM,4,4
	.comm	FORMAT_MESSAGE_FROM_STRING,4,4
	.comm	FORMAT_MESSAGE_ARGUMENT_ARRAY,4,4
	.comm	FORMAT_MESSAGE_ALLOCATE_BUFFER,4,4
	.comm	ERROR_RESOURCE_TYPE_NOT_FOUND,4,4
	.comm	ERROR_MUI_FILE_NOT_FOUND,4,4
	.comm	ERROR_BAD_EXE_FORMAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
