	.file	"extr_osal_dynamiclib_win32.c_osal_dynlib_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"LoadLibrary('%s') error: %s\n"
	.text
	.p2align 4
	.globl	osal_dynlib_open
	.type	osal_dynlib_open, @function
osal_dynlib_open:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L7
	mov	r12, rsi
	test	rsi, rsi
	je	.L7
	mov	rbx, rdi
	mov	rdi, rsi
	call	LoadLibrary@PLT
	mov	r8d, DWORD PTR M64ERR_SUCCESS[rip]
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	jne	.L1
	call	GetLastError@PLT
	mov	esi, DWORD PTR SUBLANG_DEFAULT[rip]
	mov	edi, DWORD PTR LANG_NEUTRAL[rip]
	mov	r13d, eax
	call	MAKELANGID@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	xor	r9d, r9d
	mov	edx, r13d
	push	0
	.cfi_def_cfa_offset 64
	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	r8d, 16[rsp]
	call	FormatMessage@PLT
	mov	rcx, QWORD PTR 16[rsp]
	mov	rdx, r12
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	LocalFree@PLT
	pop	rax
	.cfi_def_cfa_offset 56
	mov	r8d, DWORD PTR M64ERR_INPUT_NOT_FOUND[rip]
	pop	rdx
	.cfi_def_cfa_offset 48
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	r8d, DWORD PTR M64ERR_INPUT_ASSERT[rip]
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	osal_dynlib_open, .-osal_dynlib_open
	.comm	stderr,4,4
	.comm	SUBLANG_DEFAULT,4,4
	.comm	M64ERR_SUCCESS,4,4
	.comm	M64ERR_INPUT_NOT_FOUND,4,4
	.comm	M64ERR_INPUT_ASSERT,4,4
	.comm	LANG_NEUTRAL,4,4
	.comm	FORMAT_MESSAGE_FROM_SYSTEM,4,4
	.comm	FORMAT_MESSAGE_ALLOCATE_BUFFER,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_osal_dynamiclib_win32.c_osal_dynlib_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"LoadLibrary('%s') error: %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	osal_dynlib_open
	.syntax unified
	.arm
	.fpu softvfp
	.type	osal_dynlib_open, %function
osal_dynlib_open:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	cmpne	r0, #0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L10
	sub	sp, sp, #28
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bne	.L2
	ldr	r3, .L10+4
	ldr	r0, [r3]
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r4, r0
	mov	r0, r1
	mov	r5, r1
	bl	LoadLibrary
	cmp	r0, #0
	mov	r6, r0
	str	r0, [r4]
	ldrne	r3, .L10+8
	ldrne	r0, [r3]
	bne	.L1
.L9:
	bl	GetLastError
	ldr	r3, .L10+12
	mov	r7, r0
	ldr	r0, .L10+16
	ldr	r2, .L10+20
	ldr	r1, .L10+24
	ldr	r4, [r0]
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r0, [r2]
	orr	r4, r4, r3
	bl	MAKELANGID
	add	ip, sp, #16
	mov	r3, r0
	str	ip, [sp]
	mov	r2, r7
	mov	r1, r6
	mov	r0, r4
	str	r6, [sp, #8]
	str	r6, [sp, #4]
	bl	FormatMessage
	ldr	r3, .L10+28
	mov	r2, r5
	ldr	r0, [r3]
	ldr	r1, .L10+32
	ldr	r3, [sp, #16]
	bl	fprintf
	ldr	r0, [sp, #16]
	bl	LocalFree
	ldr	r3, .L10+36
	ldr	r0, [r3]
	b	.L1
.L8:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC1
	.word	M64ERR_INPUT_ASSERT
	.word	M64ERR_SUCCESS
	.word	FORMAT_MESSAGE_FROM_SYSTEM
	.word	FORMAT_MESSAGE_ALLOCATE_BUFFER
	.word	LANG_NEUTRAL
	.word	SUBLANG_DEFAULT
	.word	stderr
	.word	.LC0
	.word	M64ERR_INPUT_NOT_FOUND
	.size	osal_dynlib_open, .-osal_dynlib_open
	.comm	stderr,4,4
	.comm	SUBLANG_DEFAULT,4,4
	.comm	M64ERR_SUCCESS,4,4
	.comm	M64ERR_INPUT_NOT_FOUND,4,4
	.comm	M64ERR_INPUT_ASSERT,4,4
	.comm	LANG_NEUTRAL,4,4
	.comm	FORMAT_MESSAGE_FROM_SYSTEM,4,4
	.comm	FORMAT_MESSAGE_ALLOCATE_BUFFER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
