	.file	"extr_alias.c_LibAliasLoadModule.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s\n"
.LC1:
	.string	"alias_mod"
.LC2:
	.string	"dll conflict\n"
.LC3:
	.string	"handlers"
	.text
	.p2align 4
	.globl	LibAliasLoadModule
	.type	LibAliasLoadModule, @function
LibAliasLoadModule:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, DWORD PTR RTLD_LAZY[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	dlopen@PLT
	test	rax, rax
	je	.L9
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	rbx, rax
	call	dlsym@PLT
	mov	rbp, rax
	xor	eax, eax
	call	dlerror@PLT
	test	rax, rax
	je	.L4
.L9:
	xor	eax, eax
	call	dlerror@PLT
	mov	rdx, rax
.L10:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	eax, DWORD PTR EINVAL[rip]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edi, 16
	call	malloc@PLT
	mov	r12, rax
	mov	eax, DWORD PTR ENOMEM[rip]
	test	r12, r12
	je	.L1
	mov	edi, DWORD PTR 8[r12]
	mov	edx, DWORD PTR DLL_LEN[rip]
	mov	esi, DWORD PTR 0[rbp]
	call	strncpy@PLT
	mov	QWORD PTR [r12], rbx
	mov	rdi, r12
	call	attach_dll@PLT
	cmp	rax, QWORD PTR EEXIST[rip]
	je	.L12
	mov	rdi, QWORD PTR [r12]
	lea	rsi, .LC3[rip]
	call	dlsym@PLT
	mov	rbp, rax
	xor	eax, eax
	call	dlerror@PLT
	mov	rdx, rax
	test	rax, rax
	jne	.L10
	mov	rdi, rbp
	call	LibAliasAttachHandlers@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, r12
	call	free@PLT
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	eax, DWORD PTR EEXIST[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	LibAliasLoadModule, .-LibAliasLoadModule
	.comm	stderr,4,4
	.comm	RTLD_LAZY,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	EEXIST,8,8
	.comm	DLL_LEN,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_alias.c_LibAliasLoadModule.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s\012\000"
	.align	2
.LC1:
	.ascii	"alias_mod\000"
	.align	2
.LC2:
	.ascii	"dll conflict\012\000"
	.align	2
.LC3:
	.ascii	"handlers\000"
	.text
	.align	2
	.global	LibAliasLoadModule
	.syntax unified
	.arm
	.fpu softvfp
	.type	LibAliasLoadModule, %function
LibAliasLoadModule:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	push	{r4, r5, r6, lr}
	ldr	r1, [r3]
	bl	dlopen
	subs	r4, r0, #0
	beq	.L9
	ldr	r1, .L13+4
	bl	dlsym
	mov	r6, r0
	bl	dlerror
	cmp	r0, #0
	beq	.L4
.L9:
	ldr	r3, .L13+8
	ldr	r4, [r3]
	bl	dlerror
	ldr	r1, .L13+12
	mov	r2, r0
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L13+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L4:
	mov	r0, #8
	bl	malloc
	subs	r5, r0, #0
	beq	.L11
	ldr	r3, .L13+20
	ldr	r1, [r6]
	ldr	r2, [r3]
	ldr	r0, [r5, #4]
	bl	strncpy
	str	r4, [r5]
	mov	r0, r5
	bl	attach_dll
	ldr	r4, .L13+24
	ldr	r3, [r4]
	cmp	r0, r3
	beq	.L12
	ldr	r0, [r5]
	ldr	r1, .L13+28
	bl	dlsym
	mov	r5, r0
	bl	dlerror
	subs	r4, r0, #0
	beq	.L7
	ldr	r3, .L13+8
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, .L13+12
	bl	fprintf
	ldr	r3, .L13+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L7:
	mov	r0, r5
	bl	LibAliasAttachHandlers
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L12:
	mov	r0, r5
	bl	free
	ldr	r3, .L13+8
	ldr	r1, .L13+32
	ldr	r0, [r3]
	bl	fprintf
	ldr	r0, [r4]
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, .L13+36
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	RTLD_LAZY
	.word	.LC1
	.word	stderr
	.word	.LC0
	.word	EINVAL
	.word	DLL_LEN
	.word	EEXIST
	.word	.LC3
	.word	.LC2
	.word	ENOMEM
	.size	LibAliasLoadModule, .-LibAliasLoadModule
	.comm	stderr,4,4
	.comm	RTLD_LAZY,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	EEXIST,4,4
	.comm	DLL_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
