	.file	"514945.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Calling function %s\n"
.LC1:
	.string	"%s is NULL\n"
	.align 8
.LC2:
	.string	"\nGetting address information for %s:%s\n"
.LC3:
	.string	"dladdr"
.LC4:
	.string	"Pathname of shared object:"
.LC5:
	.string	"%20s %10s\n"
	.align 8
.LC6:
	.string	"Address where shared object is loaded:"
.LC7:
	.string	"%20s %10p\n"
.LC8:
	.string	"NULL"
	.align 8
.LC9:
	.string	"Name of symbol overlapping address:"
	.align 8
.LC10:
	.string	"Exact address of symbol above:"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 104
	.cfi_offset 3, -24
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -100[rbp], 3
	je	.L2
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	mov	edi, 1
	call	helpAndExit
.L2:
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 1
	mov	rdi, rax
	call	dlopen@PLT
	mov	QWORD PTR -80[rbp], rax
	cmp	QWORD PTR -80[rbp], 0
	jne	.L3
	call	dlerror@PLT
	mov	rdi, rax
	call	fatal
.L3:
	call	dlerror@PLT
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	lea	rbx, -88[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	dlsym@PLT
	mov	QWORD PTR [rbx], rax
	call	dlerror@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	je	.L4
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	fatal
.L4:
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -88[rbp]
	test	rax, rax
	jne	.L5
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -88[rbp]
	call	rax
.L6:
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -88[rbp]
	lea	rdx, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	dladdr@PLT
	test	eax, eax
	jne	.L7
	lea	rdi, .LC3[rip]
	call	pexit
.L7:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, rax
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, rax
	lea	rsi, .LC6[rip]
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -48[rbp]
	test	rax, rax
	je	.L8
	mov	rax, QWORD PTR -48[rbp]
	jmp	.L9
.L8:
	lea	rax, .LC8[rip]
.L9:
	mov	rdx, rax
	lea	rsi, .LC9[rip]
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, rax
	lea	rsi, .LC10[rip]
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.type	fatal, @function
fatal:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	fatal, .-fatal
	.type	pexit, @function
pexit:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	pexit, .-pexit
	.section	.rodata
	.align 8
.LC11:
	.string	"Usage: %s [lib-path] [func-name]\n"
	.text
	.type	helpAndExit, @function
helpAndExit:
.LFB9:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR stderr[rip]
	mov	QWORD PTR -8[rbp], rax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L14
	mov	rax, QWORD PTR stdout[rip]
	mov	QWORD PTR -8[rbp], rax
.L14:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE9:
	.size	helpAndExit, .-helpAndExit
	.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	"514945.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Calling function %s\012\000"
	.align	2
.LC1:
	.ascii	"%s is NULL\012\000"
	.align	2
.LC2:
	.ascii	"\012Getting address information for %s:%s\012\000"
	.align	2
.LC3:
	.ascii	"dladdr\000"
	.align	2
.LC4:
	.ascii	"Pathname of shared object:\000"
	.align	2
.LC5:
	.ascii	"%20s %10s\012\000"
	.align	2
.LC6:
	.ascii	"Address where shared object is loaded:\000"
	.align	2
.LC7:
	.ascii	"%20s %10p\012\000"
	.align	2
.LC8:
	.ascii	"NULL\000"
	.align	2
.LC9:
	.ascii	"Name of symbol overlapping address:\000"
	.align	2
.LC10:
	.ascii	"Exact address of symbol above:\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	cmp	r3, #3
	beq	.L2
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #1
	bl	helpAndExit
.L2:
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	dlopen
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L3
	bl	dlerror
	mov	r3, r0
	mov	r0, r3
	bl	fatal
.L3:
	bl	dlerror
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r4, fp, #44
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	dlsym
	mov	r3, r0
	str	r3, [r4]
	bl	dlerror
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L4
	ldr	r0, [fp, #-36]
	bl	fatal
.L4:
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+4
	bl	printf
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+8
	bl	printf
	b	.L6
.L5:
	ldr	r3, [fp, #-44]
	blx	r3
.L6:
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L11+12
	bl	printf
	ldr	r3, [fp, #-44]
	sub	r2, fp, #32
	mov	r1, r2
	mov	r0, r3
	bl	dladdr
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L11+16
	bl	pexit
.L7:
	ldr	r3, [fp, #-32]
	mov	r2, r3
	ldr	r1, .L11+20
	ldr	r0, .L11+24
	bl	printf
	ldr	r3, [fp, #-28]
	mov	r2, r3
	ldr	r1, .L11+28
	ldr	r0, .L11+32
	bl	printf
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-24]
	b	.L9
.L8:
	ldr	r3, .L11+36
.L9:
	mov	r2, r3
	ldr	r1, .L11+40
	ldr	r0, .L11+24
	bl	printf
	ldr	r3, [fp, #-20]
	mov	r2, r3
	ldr	r1, .L11+44
	ldr	r0, .L11+32
	bl	printf
	mov	r0, #0
	bl	exit
.L12:
	.align	2
.L11:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fatal, %function
fatal:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L14
	ldr	r3, [r3]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L15:
	.align	2
.L14:
	.word	stderr
	.size	fatal, .-fatal
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pexit, %function
pexit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	pexit, .-pexit
	.section	.rodata
	.align	2
.LC12:
	.ascii	"Usage: %s [lib-path] [func-name]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	helpAndExit, %function
helpAndExit:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L18
	ldr	r3, .L19+4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L18:
	ldr	r2, [fp, #-20]
	ldr	r1, .L19+8
	ldr	r0, [fp, #-8]
	bl	fprintf
	ldr	r0, [fp, #-16]
	bl	exit
.L20:
	.align	2
.L19:
	.word	stderr
	.word	stdout
	.word	.LC12
	.size	helpAndExit, .-helpAndExit
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
