	.file	"extr_platform-nix.c_os_dlopen.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	".so"
.LC1:
	.string	"os_dlopen(%s->%s): %s\n"
	.text
	.p2align 4
	.globl	os_dlopen
	.type	os_dlopen, @function
os_dlopen:
.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	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -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	.L6
	lea	rbp, 4[rsp]
	mov	rsi, rdi
	mov	r12, rdi
	mov	rdi, rbp
	call	dstr_init_copy@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	dstr_find@PLT
	test	eax, eax
	je	.L9
.L3:
	mov	esi, DWORD PTR RTLD_LAZY[rip]
	mov	edi, DWORD PTR 4[rsp]
	call	dlopen@PLT
	mov	r13, rax
	test	rax, rax
	je	.L10
.L4:
	mov	rdi, rbp
	call	dstr_free@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	rax, r13
	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
.L9:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	dstr_cat@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	xor	r13d, r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	xor	eax, eax
	call	dlerror@PLT
	mov	ecx, DWORD PTR 4[rsp]
	mov	rdx, r12
	mov	edi, DWORD PTR LOG_ERROR[rip]
	mov	r8d, eax
	lea	rsi, .LC1[rip]
	call	blog@PLT
	jmp	.L4
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	os_dlopen, .-os_dlopen
	.comm	RTLD_LAZY,4,4
	.comm	RTLD_FIRST,4,4
	.comm	LOG_ERROR,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_platform-nix.c_os_dlopen.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	".so\000"
	.align	2
.LC1:
	.ascii	"os_dlopen(%s->%s): %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	os_dlopen
	.syntax unified
	.arm
	.fpu softvfp
	.type	os_dlopen, %function
os_dlopen:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L12
	sub	sp, sp, #20
	subs	r5, r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	moveq	r4, r5
	beq	.L1
	mov	r1, r5
	add	r0, sp, #8
	bl	dstr_init_copy
	ldr	r1, .L12+4
	add	r0, sp, #8
	bl	dstr_find
	cmp	r0, #0
	beq	.L9
.L3:
	ldr	r3, .L12+8
	ldr	r0, [sp, #8]
	ldr	r1, [r3]
	bl	dlopen
	subs	r4, r0, #0
	beq	.L10
.L4:
	add	r0, sp, #8
	bl	dstr_free
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	ldr	r1, .L12+4
	add	r0, sp, #8
	bl	dstr_cat
	b	.L3
.L10:
	ldr	r3, .L12+12
	ldr	r7, [sp, #8]
	ldr	r6, [r3]
	bl	dlerror
	mov	r2, r0
	mov	r3, r7
	str	r2, [sp]
	mov	r0, r6
	mov	r2, r5
	ldr	r1, .L12+16
	bl	blog
	b	.L4
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	.LC0
	.word	RTLD_LAZY
	.word	LOG_ERROR
	.word	.LC1
	.size	os_dlopen, .-os_dlopen
	.comm	RTLD_LAZY,4,4
	.comm	RTLD_FIRST,4,4
	.comm	LOG_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
