	.file	"100758.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"${ORIGIN}/testobj1.so"
.LC1:
	.string	"while loading `%s': %s"
.LC2:
	.string	"testobj1.so"
.LC3:
	.string	"obj1func1"
	.align 8
.LC4:
	.string	"getting `obj1func1' in `%s': %s"
.LC5:
	.string	"fp(10) = %d\n"
.LC6:
	.string	"while close `%s': %s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	dlopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L2
	call	dlerror@PLT
	mov	rcx, rax
	mov	DWORD PTR -64[rbp], 1
	mov	DWORD PTR -60[rbp], 0
	lea	rax, .LC1[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -64[rbp]
	mov	r8, rcx
	lea	rcx, .LC2[rip]
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L2:
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	dlsym@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L3
	call	dlerror@PLT
	mov	rcx, rax
	mov	DWORD PTR -56[rbp], 1
	mov	DWORD PTR -52[rbp], 0
	lea	rax, .LC4[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	esi, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	r8, rcx
	lea	rcx, .LC2[rip]
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L3:
	mov	rax, QWORD PTR -32[rbp]
	mov	edi, 10
	call	rax
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	dlclose@PLT
	test	eax, eax
	je	.L4
	call	dlerror@PLT
	mov	rcx, rax
	mov	DWORD PTR -48[rbp], 1
	mov	DWORD PTR -44[rbp], 0
	lea	rax, .LC6[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	esi, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	r8, rcx
	lea	rcx, .LC2[rip]
	mov	edi, eax
	mov	eax, 0
	call	error@PLT
	nop
.L4:
	cmp	DWORD PTR -68[rbp], 42
	setne	al
	movzx	eax, al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.globl	foo
	.type	foo, @function
foo:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 10
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	foo, .-foo
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"100758.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"${ORIGIN}/testobj1.so\000"
	.align	2
.LC1:
	.ascii	"while loading `%s': %s\000"
	.align	2
.LC2:
	.ascii	"testobj1.so\000"
	.align	2
.LC3:
	.ascii	"obj1func1\000"
	.align	2
.LC4:
	.ascii	"getting `obj1func1' in `%s': %s\000"
	.align	2
.LC5:
	.ascii	"fp(10) = %d\012\000"
	.align	2
.LC6:
	.ascii	"while close `%s': %s\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	mov	r1, #1
	ldr	r0, .L6
	bl	dlopen
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L2
	bl	dlerror
	mov	r3, r0
	mov	r2, #1
	str	r2, [fp, #-40]
	mov	r2, #0
	str	r2, [fp, #-36]
	ldr	r2, .L6+4
	str	r2, [fp, #-32]
	str	r3, [sp]
	ldr	r3, .L6+8
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-40]
	bl	error
	nop
.L2:
	ldr	r1, .L6+12
	ldr	r0, [fp, #-52]
	bl	dlsym
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L3
	bl	dlerror
	mov	r3, r0
	mov	r2, #1
	str	r2, [fp, #-28]
	mov	r2, #0
	str	r2, [fp, #-24]
	ldr	r2, .L6+16
	str	r2, [fp, #-20]
	str	r3, [sp]
	ldr	r3, .L6+8
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	error
	nop
.L3:
	ldr	r3, [fp, #-48]
	mov	r0, #10
	blx	r3
	str	r0, [fp, #-44]
	ldr	r1, [fp, #-44]
	ldr	r0, .L6+20
	bl	printf
	ldr	r0, [fp, #-52]
	bl	dlclose
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	bl	dlerror
	mov	r3, r0
	mov	r2, #1
	str	r2, [fp, #-16]
	mov	r2, #0
	str	r2, [fp, #-12]
	ldr	r2, .L6+24
	str	r2, [fp, #-8]
	str	r3, [sp]
	ldr	r3, .L6+8
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	error
	nop
.L4:
	ldr	r3, [fp, #-44]
	cmp	r3, #42
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.align	2
	.global	foo
	.syntax unified
	.arm
	.fpu softvfp
	.type	foo, %function
foo:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #10
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	foo, .-foo
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
