	.file	"264362.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"unload4mod1.so"
.LC1:
	.string	"1st dlopen failed"
.LC2:
	.string	"foo"
.LC3:
	.string	"dlsym failed"
.LC4:
	.string	"foo (10) returned %d != 28\n"
.LC5:
	.string	"unload4mod3.so"
.LC6:
	.string	"mod3fn2"
.LC7:
	.string	"second dlsym failed"
	.align 8
.LC8:
	.string	"mod3fn2 (10) returned %d != 22\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	esi, 170
	mov	edi, -6
	call	mallopt@PLT
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	dlopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L2
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	dlsym@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L4
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	edi, 10
	call	rax
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 28
	je	.L5
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L3
.L5:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	dlclose@PLT
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	dlopen@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	dlsym@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L6
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L3
.L6:
	mov	rax, QWORD PTR -8[rbp]
	mov	edi, 10
	call	rax
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 22
	je	.L7
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L3
.L7:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	dlclose@PLT
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.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	"264362.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"unload4mod1.so\000"
	.align	2
.LC1:
	.ascii	"1st dlopen failed\000"
	.align	2
.LC2:
	.ascii	"foo\000"
	.align	2
.LC3:
	.ascii	"dlsym failed\000"
	.align	2
.LC4:
	.ascii	"foo (10) returned %d != 28\012\000"
	.align	2
.LC5:
	.ascii	"unload4mod3.so\000"
	.align	2
.LC6:
	.ascii	"mod3fn2\000"
	.align	2
.LC7:
	.ascii	"second dlsym failed\000"
	.align	2
.LC8:
	.ascii	"mod3fn2 (10) returned %d != 22\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r1, #170
	mvn	r0, #5
	bl	mallopt
	mov	r1, #1
	ldr	r0, .L8
	bl	dlopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L8+4
	bl	puts
	mov	r3, #1
	b	.L3
.L2:
	ldr	r1, .L8+8
	ldr	r0, [fp, #-16]
	bl	dlsym
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L8+12
	bl	puts
	mov	r3, #1
	b	.L3
.L4:
	ldr	r3, [fp, #-12]
	mov	r0, #10
	blx	r3
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #28
	beq	.L5
	ldr	r1, [fp, #-8]
	ldr	r0, .L8+16
	bl	printf
	mov	r3, #1
	b	.L3
.L5:
	ldr	r0, [fp, #-16]
	bl	dlclose
	mov	r1, #1
	ldr	r0, .L8+20
	bl	dlopen
	str	r0, [fp, #-16]
	ldr	r1, .L8+24
	ldr	r0, [fp, #-16]
	bl	dlsym
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L8+28
	bl	puts
	mov	r3, #1
	b	.L3
.L6:
	ldr	r3, [fp, #-12]
	mov	r0, #10
	blx	r3
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #22
	beq	.L7
	ldr	r1, [fp, #-8]
	ldr	r0, .L8+32
	bl	printf
	mov	r3, #1
	b	.L3
.L7:
	ldr	r0, [fp, #-16]
	bl	dlclose
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
