	.file	"109686.c"
	.intel_syntax noprefix
	.text
	.globl	num_libs
	.bss
	.align 4
	.type	num_libs, @object
	.size	num_libs, 4
num_libs:
	.zero	4
	.globl	num_symbols
	.align 4
	.type	num_symbols, @object
	.size	num_symbols, 4
num_symbols:
	.zero	4
	.globl	libs
	.align 8
	.type	libs, @object
	.size	libs, 8
libs:
	.zero	8
	.globl	target_symbols
	.align 8
	.type	target_symbols, @object
	.size	target_symbols, 8
target_symbols:
	.zero	8
	.globl	fptr
	.align 8
	.type	fptr, @object
	.size	fptr, 8
fptr:
	.zero	8
	.globl	popen_fptr
	.align 8
	.type	popen_fptr, @object
	.size	popen_fptr, 8
popen_fptr:
	.zero	8
	.globl	symbol_tables
	.align 8
	.type	symbol_tables, @object
	.size	symbol_tables, 8
symbol_tables:
	.zero	8
	.text
	.globl	clean_up
	.type	clean_up, @function
clean_up:
.LFB6:
	.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	rax, QWORD PTR target_symbols[rip]
	test	rax, rax
	je	.L2
	mov	DWORD PTR -12[rbp], 0
	jmp	.L3
.L4:
	mov	rdx, QWORD PTR target_symbols[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rdx, QWORD PTR target_symbols[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	add	DWORD PTR -12[rbp], 1
.L3:
	mov	eax, DWORD PTR num_symbols[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L4
.L2:
	mov	rax, QWORD PTR target_symbols[rip]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR target_symbols[rip], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L5
.L11:
	mov	rax, QWORD PTR libs[rip]
	test	rax, rax
	je	.L6
	mov	rdx, QWORD PTR libs[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rdx, QWORD PTR libs[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 0
.L6:
	mov	rax, QWORD PTR symbol_tables[rip]
	test	rax, rax
	je	.L7
	mov	DWORD PTR -4[rbp], 0
	jmp	.L8
.L10:
	mov	rdx, QWORD PTR symbol_tables[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L9
	mov	rdx, QWORD PTR symbol_tables[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rdx, QWORD PTR symbol_tables[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR [rax], 0
.L9:
	add	DWORD PTR -4[rbp], 1
.L8:
	mov	rdx, QWORD PTR symbol_tables[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L10
	mov	rdx, QWORD PTR symbol_tables[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rdx, QWORD PTR symbol_tables[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	QWORD PTR 8[rax], 0
.L7:
	add	DWORD PTR -8[rbp], 1
.L5:
	mov	eax, DWORD PTR num_libs[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L11
	mov	rax, QWORD PTR libs[rip]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR libs[rip], 0
	mov	rax, QWORD PTR popen_fptr[rip]
	test	rax, rax
	je	.L12
	mov	rax, QWORD PTR popen_fptr[rip]
	mov	rdi, rax
	call	pclose@PLT
	mov	QWORD PTR popen_fptr[rip], 0
.L12:
	mov	rax, QWORD PTR fptr[rip]
	test	rax, rax
	je	.L14
	mov	rax, QWORD PTR fptr[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	QWORD PTR fptr[rip], 0
.L14:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	clean_up, .-clean_up
	.globl	clean_up_str_array
	.type	clean_up_str_array, @function
clean_up_str_array:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	cmp	QWORD PTR -24[rbp], 0
	je	.L20
	mov	DWORD PTR -4[rbp], 0
	jmp	.L17
.L19:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L18
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
.L18:
	add	DWORD PTR -4[rbp], 1
.L17:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L19
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -24[rbp], 0
.L20:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	clean_up_str_array, .-clean_up_str_array
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"Failed to run command: %s\n"
	.align 8
.LC2:
	.string	"Failed to allocate memory for command array: %d\n"
	.align 8
.LC3:
	.string	"Failed to allocate memory for command output"
	.text
	.globl	get_command_output
	.type	get_command_output, @function
get_command_output:
.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, 1120
	mov	QWORD PTR -1096[rbp], rdi
	mov	QWORD PTR -1104[rbp], rsi
	mov	QWORD PTR -1112[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1096[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	popen@PLT
	mov	QWORD PTR popen_fptr[rip], rax
	mov	rax, QWORD PTR popen_fptr[rip]
	test	rax, rax
	jne	.L22
	mov	eax, 0
	call	clean_up
	mov	rax, QWORD PTR -1096[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	mov	QWORD PTR -1064[rbp], 0
	mov	DWORD PTR -1076[rbp], 0
	mov	DWORD PTR -1072[rbp], 0
	jmp	.L23
.L29:
	cmp	QWORD PTR -1064[rbp], 0
	jne	.L24
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -1064[rbp], rax
	cmp	QWORD PTR -1064[rbp], 0
	jne	.L25
	mov	eax, 0
	call	clean_up
	mov	eax, DWORD PTR -1076[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L25:
	mov	eax, DWORD PTR -1076[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
.L24:
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -1068[rbp], eax
	mov	edx, DWORD PTR -1072[rbp]
	mov	eax, DWORD PTR -1068[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	eax, DWORD PTR -1076[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -1056[rbp], rax
	cmp	QWORD PTR -1056[rbp], 0
	jne	.L26
	mov	eax, 0
	call	clean_up
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	mov	eax, DWORD PTR -1076[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1064[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -1056[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -1068[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR -1040[rbp+rax]
	cmp	al, 10
	jne	.L27
	mov	eax, DWORD PTR -1068[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -1076[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -1072[rbp]
	cdqe
	add	rcx, rax
	lea	rax, -1040[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	eax, DWORD PTR -1076[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	ecx, DWORD PTR -1072[rbp]
	mov	eax, DWORD PTR -1068[rbp]
	add	eax, ecx
	cdqe
	sub	rax, 1
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -1072[rbp], 0
	add	DWORD PTR -1076[rbp], 1
	mov	eax, DWORD PTR -1076[rbp]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1064[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -1048[rbp], rax
	cmp	QWORD PTR -1048[rbp], 0
	jne	.L28
	mov	eax, 0
	call	clean_up
	mov	eax, DWORD PTR -1076[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L28:
	mov	rax, QWORD PTR -1048[rbp]
	mov	QWORD PTR -1064[rbp], rax
	mov	eax, DWORD PTR -1076[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, rdx
	mov	QWORD PTR [rax], 0
	jmp	.L23
.L27:
	mov	eax, DWORD PTR -1068[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -1076[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -1064[rbp]
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -1072[rbp]
	cdqe
	add	rcx, rax
	lea	rax, -1040[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	eax, DWORD PTR -1068[rbp]
	add	DWORD PTR -1072[rbp], eax
.L23:
	mov	rdx, QWORD PTR popen_fptr[rip]
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L29
	mov	rax, QWORD PTR -1104[rbp]
	mov	edx, DWORD PTR -1076[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR popen_fptr[rip]
	mov	rdi, rax
	call	pclose@PLT
	mov	rdx, QWORD PTR -1112[rbp]
	mov	DWORD PTR [rdx], eax
	mov	QWORD PTR popen_fptr[rip], 0
	mov	rax, QWORD PTR -1064[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_command_output, .-get_command_output
	.section	.rodata
	.align 8
.LC4:
	.string	"LD_LIBRARY_PATH=%s ldd %s | awk 'NF == 4 {print $3}; NF == 2 {print $1}'"
	.align 8
.LC5:
	.string	"Failed to allocate memory for target ldd: %s %s\n"
	.text
	.globl	get_ldd
	.type	get_ldd, @function
get_ldd:
.LFB9:
	.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, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rbx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L33
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	clean_up
	mov	edi, 1
	call	exit@PLT
.L33:
	mov	rcx, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -52[rbp], -1
	lea	rdx, -52[rbp]
	mov	rcx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	get_command_output
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -40[rbp], 0
	mov	eax, DWORD PTR -52[rbp]
	test	eax, eax
	jne	.L34
	mov	rax, QWORD PTR -32[rbp]
	jmp	.L36
.L34:
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	clean_up_str_array
	mov	eax, 0
.L36:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	get_ldd, .-get_ldd
	.section	.rodata
	.align 8
.LC6:
	.string	"nm -D -u %s 2>/dev/null | awk '{print $NF}'"
	.align 8
.LC7:
	.string	"Failed to allocate memory for target_symbols: %s\n"
	.text
	.globl	get_target_symbols
	.type	get_target_symbols, @function
get_target_symbols:
.LFB10:
	.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, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, .LC6[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L39
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	clean_up
	mov	edi, 1
	call	exit@PLT
.L39:
	mov	rdx, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, -52[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	get_command_output
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -40[rbp], 0
	mov	eax, DWORD PTR -52[rbp]
	test	eax, eax
	jne	.L40
	mov	rax, QWORD PTR -32[rbp]
	jmp	.L42
.L40:
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	clean_up_str_array
	mov	eax, 0
.L42:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	get_target_symbols, .-get_target_symbols
	.section	.rodata
	.align 8
.LC8:
	.string	"nm -D --defined-only %s 2>/dev/null | awk '{print $NF}'"
	.align 8
.LC9:
	.string	"Failed to allocate memory for lib_symbols: %s\n"
	.text
	.globl	get_lib_symbols
	.type	get_lib_symbols, @function
get_lib_symbols:
.LFB11:
	.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, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, .LC8[rip]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L45
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	clean_up
	mov	edi, 1
	call	exit@PLT
.L45:
	mov	rdx, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, -52[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	get_command_output
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -40[rbp], 0
	mov	eax, DWORD PTR -52[rbp]
	test	eax, eax
	jne	.L46
	mov	rax, QWORD PTR -32[rbp]
	jmp	.L48
.L46:
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	clean_up_str_array
	mov	eax, 0
.L48:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	get_lib_symbols, .-get_lib_symbols
	.section	.rodata
	.align 8
.LC10:
	.string	"%s: A small tool to resolve undefined symbols in linked dynamic libraries.\n"
	.align 8
.LC11:
	.string	"USAGE : %s <target_shared_library> <LD_LIBRARY_PATH> <output_file.json>\n"
.LC12:
	.string	"w"
.LC13:
	.string	"{}\n"
.LC14:
	.string	"\n\t\"%s\":\"%s\","
.LC15:
	.string	"\n}\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 88
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -116[rbp], 3
	jg	.L51
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L51:
	mov	DWORD PTR num_symbols[rip], 0
	mov	eax, DWORD PTR num_symbols[rip]
	mov	DWORD PTR num_libs[rip], eax
	mov	QWORD PTR target_symbols[rip], 0
	mov	rax, QWORD PTR target_symbols[rip]
	mov	QWORD PTR libs[rip], rax
	mov	QWORD PTR symbol_tables[rip], 0
	mov	QWORD PTR fptr[rip], 0
	mov	rax, QWORD PTR fptr[rip]
	mov	QWORD PTR popen_fptr[rip], rax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 16
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, num_libs[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	get_ldd
	mov	QWORD PTR libs[rip], rax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, num_symbols[rip]
	mov	rdi, rax
	call	get_target_symbols
	mov	QWORD PTR target_symbols[rip], rax
	mov	eax, DWORD PTR num_libs[rip]
	test	eax, eax
	je	.L52
	mov	eax, DWORD PTR num_symbols[rip]
	test	eax, eax
	jne	.L53
.L52:
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	QWORD PTR -64[rbp], 0
	mov	eax, 0
	call	clean_up
	mov	edi, 0
	call	exit@PLT
.L53:
	mov	eax, DWORD PTR num_libs[rip]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -88[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L54:
	cmp	rsp, rdx
	je	.L55
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L54
.L55:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L56
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L56:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR symbol_tables[rip], rax
	mov	DWORD PTR -100[rbp], 0
	jmp	.L57
.L58:
	mov	rdx, QWORD PTR symbol_tables[rip]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR symbol_tables[rip]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	QWORD PTR 8[rax], 0
	add	DWORD PTR -100[rbp], 1
.L57:
	mov	eax, DWORD PTR num_libs[rip]
	cmp	DWORD PTR -100[rbp], eax
	jl	.L58
	mov	DWORD PTR -104[rbp], 0
	jmp	.L59
.L60:
	mov	rdx, QWORD PTR symbol_tables[rip]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rcx, rax
	mov	rdx, QWORD PTR libs[rip]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, QWORD PTR symbol_tables[rip]
	mov	edx, DWORD PTR -104[rbp]
	movsx	rdx, edx
	sal	rdx, 4
	lea	rbx, [rsi+rdx]
	mov	rsi, rcx
	mov	rdi, rax
	call	get_lib_symbols
	mov	QWORD PTR 8[rbx], rax
	add	DWORD PTR -104[rbp], 1
.L59:
	mov	eax, DWORD PTR num_libs[rip]
	cmp	DWORD PTR -104[rbp], eax
	jl	.L60
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rax
	mov	edi, 123
	call	fputc@PLT
	mov	DWORD PTR -108[rbp], 0
	mov	DWORD PTR -112[rbp], 0
	jmp	.L61
.L68:
	mov	DWORD PTR -96[rbp], 0
	jmp	.L62
.L67:
	mov	DWORD PTR -92[rbp], 0
	jmp	.L63
.L66:
	mov	rdx, QWORD PTR symbol_tables[rip]
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR target_symbols[rip]
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L64
	mov	DWORD PTR -108[rbp], 1
	mov	rdx, QWORD PTR libs[rip]
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	rdx, QWORD PTR target_symbols[rip]
	mov	eax, DWORD PTR -112[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L65
.L64:
	add	DWORD PTR -92[rbp], 1
.L63:
	mov	rdx, QWORD PTR symbol_tables[rip]
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -92[rbp], eax
	jl	.L66
	add	DWORD PTR -96[rbp], 1
.L62:
	mov	eax, DWORD PTR num_libs[rip]
	cmp	DWORD PTR -96[rbp], eax
	jl	.L67
	nop
.L65:
	add	DWORD PTR -112[rbp], 1
.L61:
	mov	eax, DWORD PTR num_symbols[rip]
	cmp	DWORD PTR -112[rbp], eax
	jl	.L68
	cmp	DWORD PTR -108[rbp], 1
	jne	.L69
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, 1
	mov	rsi, -1
	mov	rdi, rax
	call	fseek@PLT
.L69:
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, rax
	mov	edx, 3
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	QWORD PTR -72[rbp], 0
	mov	eax, 0
	call	clean_up
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE12:
	.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	"109686.c"
	.text
	.comm	num_libs,4,4
	.comm	num_symbols,4,4
	.comm	libs,4,4
	.comm	target_symbols,4,4
	.comm	fptr,4,4
	.comm	popen_fptr,4,4
	.comm	symbol_tables,4,4
	.align	2
	.global	clean_up
	.syntax unified
	.arm
	.fpu softvfp
	.type	clean_up, %function
clean_up:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L15
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L3
.L4:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L3:
	ldr	r3, .L15+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L4
.L2:
	ldr	r3, .L15
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L15
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L5
.L11:
	ldr	r3, .L15+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L15+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L15+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
.L6:
	ldr	r3, .L15+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L8
.L10:
	ldr	r3, .L15+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L15+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L15+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
.L9:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L8:
	ldr	r3, .L15+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L10
	ldr	r3, .L15+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
	ldr	r3, .L15+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
.L7:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L5:
	ldr	r3, .L15+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L11
	ldr	r3, .L15+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L15+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L15+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L15+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	pclose
	ldr	r3, .L15+20
	mov	r2, #0
	str	r2, [r3]
.L12:
	ldr	r3, .L15+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L15+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L15+24
	mov	r2, #0
	str	r2, [r3]
.L14:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	target_symbols
	.word	num_symbols
	.word	libs
	.word	symbol_tables
	.word	num_libs
	.word	popen_fptr
	.word	fptr
	.size	clean_up, .-clean_up
	.align	2
	.global	clean_up_str_array
	.syntax unified
	.arm
	.fpu softvfp
	.type	clean_up_str_array, %function
clean_up_str_array:
	@ 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, [fp, #-16]
	cmp	r3, #0
	beq	.L22
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L19
.L21:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
.L20:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L19:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L21
	ldr	r0, [fp, #-16]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-16]
.L22:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	clean_up_str_array, .-clean_up_str_array
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"Failed to run command: %s\012\000"
	.align	2
.LC2:
	.ascii	"Failed to allocate memory for command array: %d\012"
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"Failed to allocate memory for command output\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_command_output
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_command_output, %function
get_command_output:
	@ args = 0, pretend = 0, frame = 1072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1072
	str	r0, [fp, #-1064]
	str	r1, [fp, #-1068]
	str	r2, [fp, #-1072]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L34+4
	ldr	r0, [fp, #-1064]
	bl	popen
	mov	r3, r0
	ldr	r2, .L34+8
	str	r3, [r2]
	ldr	r3, .L34+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L24
	bl	clean_up
	ldr	r1, [fp, #-1064]
	ldr	r0, .L34+12
	bl	printf
	mov	r0, #1
	bl	exit
.L24:
	mov	r3, #0
	str	r3, [fp, #-1056]
	mov	r3, #0
	str	r3, [fp, #-1052]
	mov	r3, #0
	str	r3, [fp, #-1048]
	b	.L25
.L31:
	ldr	r3, [fp, #-1056]
	cmp	r3, #0
	bne	.L26
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1056]
	ldr	r3, [fp, #-1056]
	cmp	r3, #0
	bne	.L27
	bl	clean_up
	ldr	r1, [fp, #-1052]
	ldr	r0, .L34+16
	bl	printf
	mov	r0, #1
	bl	exit
.L27:
	ldr	r3, [fp, #-1052]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1056]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
.L26:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-1044]
	ldr	r3, [fp, #-1052]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1056]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r2, [fp, #-1048]
	ldr	r3, [fp, #-1044]
	add	r3, r2, r3
	mov	r1, r3
	bl	realloc
	str	r0, [fp, #-1040]
	ldr	r3, [fp, #-1040]
	cmp	r3, #0
	bne	.L28
	bl	clean_up
	ldr	r0, .L34+20
	bl	puts
	mov	r0, #1
	bl	exit
.L28:
	ldr	r3, [fp, #-1052]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1056]
	add	r3, r2, r3
	ldr	r2, [fp, #-1040]
	str	r2, [r3]
	ldr	r3, [fp, #-1044]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-1028]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L29
	ldr	r3, [fp, #-1052]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1056]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-1048]
	add	r0, r2, r3
	ldr	r2, [fp, #-1044]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	bl	memcpy
	ldr	r3, [fp, #-1052]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1056]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r1, [fp, #-1048]
	ldr	r3, [fp, #-1044]
	add	r3, r1, r3
	sub	r3, r3, #1
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-1048]
	ldr	r3, [fp, #-1052]
	add	r3, r3, #1
	str	r3, [fp, #-1052]
	ldr	r3, [fp, #-1052]
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-1056]
	bl	realloc
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	bne	.L30
	bl	clean_up
	ldr	r1, [fp, #-1052]
	ldr	r0, .L34+16
	bl	printf
	mov	r0, #1
	bl	exit
.L30:
	ldr	r3, [fp, #-1036]
	str	r3, [fp, #-1056]
	ldr	r3, [fp, #-1052]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1056]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	b	.L25
.L29:
	ldr	r3, [fp, #-1052]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1056]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-1048]
	add	r0, r2, r3
	ldr	r2, [fp, #-1044]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	bl	memcpy
	ldr	r2, [fp, #-1048]
	ldr	r3, [fp, #-1044]
	add	r3, r2, r3
	str	r3, [fp, #-1048]
.L25:
	ldr	r3, .L34+8
	ldr	r2, [r3]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-1068]
	ldr	r2, [fp, #-1052]
	str	r2, [r3]
	ldr	r3, .L34+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	pclose
	mov	r2, r0
	ldr	r3, [fp, #-1072]
	str	r2, [r3]
	ldr	r3, .L34+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-1056]
	ldr	r2, .L34
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC4
	.word	.LC0
	.word	popen_fptr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	get_command_output, .-get_command_output
	.section	.rodata
	.align	2
.LC5:
	.ascii	"LD_LIBRARY_PATH=%s ldd %s | awk 'NF == 4 {print $3}"
	.ascii	"; NF == 2 {print $1}'\000"
	.align	2
.LC6:
	.ascii	"Failed to allocate memory for target ldd: %s %s\012"
	.ascii	"\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_ldd
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_ldd, %function
get_ldd:
	@ 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, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L42+4
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-44]
	bl	strlen
	mov	r4, r0
	ldr	r0, [fp, #-40]
	bl	strlen
	mov	r3, r0
	add	r4, r4, r3
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L37
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-40]
	ldr	r0, .L42+8
	bl	printf
	bl	clean_up
	mov	r0, #1
	bl	exit
.L37:
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	sprintf
	mvn	r3, #0
	str	r3, [fp, #-32]
	sub	r3, fp, #32
	mov	r2, r3
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-24]
	bl	get_command_output
	str	r0, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L38
	ldr	r3, [fp, #-20]
	b	.L40
.L38:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	clean_up_str_array
	mov	r3, #0
.L40:
	ldr	r2, .L42
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L41
	bl	__stack_chk_fail
.L41:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC7
	.word	.LC5
	.word	.LC6
	.size	get_ldd, .-get_ldd
	.section	.rodata
	.align	2
.LC8:
	.ascii	"nm -D -u %s 2>/dev/null | awk '{print $NF}'\000"
	.align	2
.LC9:
	.ascii	"Failed to allocate memory for target_symbols: %s\012"
	.ascii	"\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_target_symbols
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_target_symbols, %function
get_target_symbols:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L50+4
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-40]
	bl	strlen
	mov	r4, r0
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L45
	ldr	r1, [fp, #-40]
	ldr	r0, .L50+8
	bl	printf
	bl	clean_up
	mov	r0, #1
	bl	exit
.L45:
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	sprintf
	sub	r3, fp, #32
	mov	r2, r3
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-24]
	bl	get_command_output
	str	r0, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L46
	ldr	r3, [fp, #-20]
	b	.L48
.L46:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	clean_up_str_array
	mov	r3, #0
.L48:
	ldr	r2, .L50
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC10
	.word	.LC8
	.word	.LC9
	.size	get_target_symbols, .-get_target_symbols
	.section	.rodata
	.align	2
.LC11:
	.ascii	"nm -D --defined-only %s 2>/dev/null | awk '{print $"
	.ascii	"NF}'\000"
	.align	2
.LC12:
	.ascii	"Failed to allocate memory for lib_symbols: %s\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_lib_symbols
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_lib_symbols, %function
get_lib_symbols:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L58
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L58+4
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-40]
	bl	strlen
	mov	r4, r0
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L53
	ldr	r1, [fp, #-40]
	ldr	r0, .L58+8
	bl	printf
	bl	clean_up
	mov	r0, #1
	bl	exit
.L53:
	ldr	r2, [fp, #-40]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	sprintf
	sub	r3, fp, #32
	mov	r2, r3
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-24]
	bl	get_command_output
	str	r0, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L54
	ldr	r3, [fp, #-20]
	b	.L56
.L54:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	clean_up_str_array
	mov	r3, #0
.L56:
	ldr	r2, .L58
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L57
	bl	__stack_chk_fail
.L57:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L59:
	.align	2
.L58:
	.word	.LC13
	.word	.LC11
	.word	.LC12
	.size	get_lib_symbols, .-get_lib_symbols
	.section	.rodata
	.align	2
.LC14:
	.ascii	"%s: A small tool to resolve undefined symbols in li"
	.ascii	"nked dynamic libraries.\012\000"
	.align	2
.LC15:
	.ascii	"USAGE : %s <target_shared_library> <LD_LIBRARY_PATH"
	.ascii	"> <output_file.json>\012\000"
	.align	2
.LC16:
	.ascii	"w\000"
	.align	2
.LC17:
	.ascii	"{}\012\000"
	.align	2
.LC18:
	.ascii	"\012\011\"%s\":\"%s\",\000"
	.align	2
.LC19:
	.ascii	"\012}\012\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L78
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-64]
	cmp	r3, #3
	bgt	.L61
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L78+4
	bl	printf
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L78+8
	bl	printf
	mov	r0, #1
	bl	exit
.L61:
	ldr	r3, .L78+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L78+12
	ldr	r3, [r3]
	ldr	r2, .L78+16
	str	r3, [r2]
	ldr	r3, .L78+20
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L78+20
	ldr	r3, [r3]
	ldr	r2, .L78+24
	str	r3, [r2]
	ldr	r3, .L78+28
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L78+32
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L78+32
	ldr	r3, [r3]
	ldr	r2, .L78+36
	str	r3, [r2]
	ldr	r3, [fp, #-68]
	add	r3, r3, #4
	ldr	r0, [r3]
	ldr	r3, [fp, #-68]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r2, .L78+16
	mov	r1, r3
	bl	get_ldd
	mov	r3, r0
	ldr	r2, .L78+24
	str	r3, [r2]
	ldr	r3, [fp, #-68]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L78+12
	mov	r0, r3
	bl	get_target_symbols
	mov	r3, r0
	ldr	r2, .L78+20
	str	r3, [r2]
	ldr	r3, .L78+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L62
	ldr	r3, .L78+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L63
.L62:
	ldr	r3, [fp, #-68]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L78+40
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L78+44
	bl	fwrite
	ldr	r0, [fp, #-20]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-20]
	bl	clean_up
	mov	r0, #0
	bl	exit
.L63:
	ldr	r3, .L78+16
	ldr	ip, [r3]
	sub	r3, ip, #1
	str	r3, [fp, #-32]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r3, ip
	lsl	r3, r3, #3
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-28]
	ldr	r2, .L78+28
	ldr	r3, [fp, #-28]
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L64
.L65:
	ldr	r3, .L78+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L78+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L64:
	ldr	r3, .L78+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L65
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L66
.L67:
	ldr	r3, .L78+24
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, .L78+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r1, r3
	ldr	r3, .L78+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #3
	add	r4, r2, r3
	bl	get_lib_symbols
	mov	r3, r0
	str	r3, [r4, #4]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L66:
	ldr	r3, .L78+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L67
	ldr	r3, [fp, #-68]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L78+40
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r1, [fp, #-24]
	mov	r0, #123
	bl	fputc
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L68
.L75:
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L69
.L74:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L70
.L73:
	ldr	r3, .L78+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, .L78+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L71
	mov	r3, #1
	str	r3, [fp, #-52]
	ldr	r3, .L78+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, .L78+24
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r1
	ldr	r1, .L78+48
	ldr	r0, [fp, #-24]
	bl	fprintf
	b	.L72
.L71:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L70:
	ldr	r3, .L78+28
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	blt	.L73
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L69:
	ldr	r3, .L78+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L74
	nop
.L72:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L68:
	ldr	r3, .L78+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	blt	.L75
	ldr	r3, [fp, #-52]
	cmp	r3, #1
	bne	.L76
	mov	r2, #1
	mvn	r1, #0
	ldr	r0, [fp, #-24]
	bl	fseek
.L76:
	ldr	r3, [fp, #-24]
	mov	r2, #3
	mov	r1, #1
	ldr	r0, .L78+52
	bl	fwrite
	ldr	r0, [fp, #-24]
	bl	fclose
	mov	r3, #0
	str	r3, [fp, #-24]
	bl	clean_up
	mov	r0, #0
	bl	exit
.L79:
	.align	2
.L78:
	.word	.LC20
	.word	.LC14
	.word	.LC15
	.word	num_symbols
	.word	num_libs
	.word	target_symbols
	.word	libs
	.word	symbol_tables
	.word	fptr
	.word	popen_fptr
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
