	.file	"88010.c"
	.intel_syntax noprefix
	.text
	.local	_time
	.comm	_time,8,8
	.local	call_next
	.comm	call_next,4,4
	.data
	.align 8
	.type	default_value, @object
	.size	default_value, 8
default_value:
	.quad	-666666
	.section	.rodata
	.align 8
.LC0:
	.string	"dlsym() error, failed to lookup %s(): '%s'\n"
	.text
	.globl	do_lookup
	.type	do_lookup, @function
do_lookup:
.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	QWORD PTR -24[rbp], rdi
	call	dlerror@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	rdi, -1
	call	dlsym@PLT
	mov	QWORD PTR -16[rbp], rax
	call	dlerror@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L2
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -16[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	do_lookup, .-do_lookup
	.section	.rodata
.LC1:
	.string	"time wrapper called\n"
.LC2:
	.string	"time"
	.align 8
.LC3:
	.string	"libc_wrapper: failed to load time()\n"
	.text
	.globl	time
	.type	time, @function
time:
.LFB1:
	.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 stdout[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR call_next[rip]
	test	eax, eax
	je	.L5
	mov	rax, QWORD PTR _time[rip]
	test	rax, rax
	jne	.L6
	lea	rdi, .LC2[rip]
	call	do_lookup
	mov	QWORD PTR _time[rip], rax
	mov	rax, QWORD PTR _time[rip]
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 36
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rax, -1
	jmp	.L7
.L6:
	mov	rax, QWORD PTR _time[rip]
	mov	edi, 0
	call	rax
	jmp	.L7
.L5:
	mov	rax, QWORD PTR default_value[rip]
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	time, .-time
	.section	.rodata
	.align 8
.LC4:
	.string	"interposed call to local_global_func()\n"
	.text
	.globl	local_global_func
	.type	local_global_func, @function
local_global_func:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 39
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	local_global_func, .-local_global_func
	.section	.rodata
.LC5:
	.string	"set_call_next wrapper called\n"
	.text
	.globl	set_call_next
	.type	set_call_next, @function
set_call_next:
.LFB3:
	.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	DWORD PTR -4[rbp], edi
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR call_next[rip], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	set_call_next, .-set_call_next
	.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	"88010.c"
	.text
	.local	_time
	.comm	_time,4,4
	.local	call_next
	.comm	call_next,4,4
	.data
	.align	2
	.type	default_value, %object
	.size	default_value, 4
default_value:
	.word	-666666
	.section	.rodata
	.align	2
.LC0:
	.ascii	"dlsym() error, failed to lookup %s(): '%s'\012\000"
	.text
	.align	2
	.global	do_lookup
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_lookup, %function
do_lookup:
	@ 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]
	bl	dlerror
	ldr	r1, [fp, #-16]
	mvn	r0, #0
	bl	dlsym
	str	r0, [fp, #-12]
	bl	dlerror
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L4
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	ldr	r1, .L4+4
	bl	fprintf
	mov	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-12]
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	stdout
	.word	.LC0
	.size	do_lookup, .-do_lookup
	.section	.rodata
	.align	2
.LC1:
	.ascii	"time wrapper called\012\000"
	.align	2
.LC2:
	.ascii	"time\000"
	.align	2
.LC3:
	.ascii	"libc_wrapper: failed to load time()\012\000"
	.text
	.align	2
	.global	time
	.syntax unified
	.arm
	.fpu softvfp
	.type	time, %function
time:
	@ 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, .L10
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L10+4
	bl	fwrite
	ldr	r3, .L10+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L10+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L10+16
	bl	do_lookup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L10+12
	str	r2, [r3]
	ldr	r3, .L10+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L8
	ldr	r3, .L10
	ldr	r3, [r3]
	mov	r2, #36
	mov	r1, #1
	ldr	r0, .L10+20
	bl	fwrite
	mvn	r3, #0
	b	.L9
.L8:
	ldr	r3, .L10+12
	ldr	r3, [r3]
	mov	r0, #0
	blx	r3
	mov	r3, r0
	b	.L9
.L7:
	ldr	r3, .L10+24
	ldr	r3, [r3]
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	stdout
	.word	.LC1
	.word	call_next
	.word	_time
	.word	.LC2
	.word	.LC3
	.word	default_value
	.size	time, .-time
	.section	.rodata
	.align	2
.LC4:
	.ascii	"interposed call to local_global_func()\012\000"
	.text
	.align	2
	.global	local_global_func
	.syntax unified
	.arm
	.fpu softvfp
	.type	local_global_func, %function
local_global_func:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L14
	ldr	r3, [r3]
	mov	r2, #39
	mov	r1, #1
	ldr	r0, .L14+4
	bl	fwrite
	mov	r3, #1
	mov	r0, r3
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	stdout
	.word	.LC4
	.size	local_global_func, .-local_global_func
	.section	.rodata
	.align	2
.LC5:
	.ascii	"set_call_next wrapper called\012\000"
	.text
	.align	2
	.global	set_call_next
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_call_next, %function
set_call_next:
	@ 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, .L17
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L17+4
	bl	fwrite
	ldr	r2, .L17+8
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	stdout
	.word	.LC5
	.word	call_next
	.size	set_call_next, .-set_call_next
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
