	.file	"275200.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"main"
.LC1:
	.string	"func_one"
.LC2:
	.string	"func_two"
	.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	lea	rdi, .LC0[rip]
	call	PrintIsItInCallstack
	lea	rdi, .LC1[rip]
	call	PrintIsItInCallstack
	lea	rdi, .LC2[rip]
	call	PrintIsItInCallstack
	call	func_one
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	func_one
	.type	func_one, @function
func_one:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	PrintIsItInCallstack
	lea	rdi, .LC1[rip]
	call	PrintIsItInCallstack
	lea	rdi, .LC2[rip]
	call	PrintIsItInCallstack
	call	func_two
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	func_one, .-func_one
	.globl	func_two
	.type	func_two, @function
func_two:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	PrintIsItInCallstack
	lea	rdi, .LC1[rip]
	call	PrintIsItInCallstack
	lea	rdi, .LC2[rip]
	call	PrintIsItInCallstack
	call	dump_frames
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	func_two, .-func_two
	.section	.rodata
.LC3:
	.string	"  Found %s\n"
	.align 8
.LC4:
	.string	"SEARCHING FOR ADDRESS OF func_one (%p)\n"
.LC5:
	.string	"  Looking at %p\n"
.LC6:
	.string	"    Found func_one: %p\n"
	.text
	.globl	dump_frames
	.type	dump_frames, @function
dump_frames:
.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, 1072
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -1040[rbp]
	mov	esi, 128
	mov	rdi, rax
	call	backtrace@PLT
	mov	DWORD PTR -1060[rbp], eax
	mov	edx, DWORD PTR -1060[rbp]
	lea	rax, -1040[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	backtrace_symbols@PLT
	mov	QWORD PTR -1056[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -1048[rbp], rax
	cmp	QWORD PTR -1056[rbp], 0
	je	.L6
	mov	DWORD PTR -1068[rbp], 0
	mov	DWORD PTR -1068[rbp], 0
	jmp	.L7
.L11:
	mov	eax, DWORD PTR -1068[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1056[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L16
	mov	eax, DWORD PTR -1068[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1056[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	puts@PLT
	mov	eax, DWORD PTR -1068[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1056[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -1048[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L10
	mov	rax, QWORD PTR -1048[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	add	DWORD PTR -1068[rbp], 1
.L7:
	mov	eax, DWORD PTR -1068[rbp]
	cmp	eax, DWORD PTR -1060[rbp]
	jl	.L11
	jmp	.L9
.L16:
	nop
.L9:
	mov	rax, QWORD PTR -1056[rbp]
	mov	rdi, rax
	call	free@PLT
.L6:
	lea	rsi, func_one[rip]
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -1064[rbp], 0
	jmp	.L12
.L14:
	mov	eax, DWORD PTR -1064[rbp]
	cdqe
	mov	rax, QWORD PTR -1040[rbp+rax*8]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -1064[rbp]
	cdqe
	mov	rax, QWORD PTR -1040[rbp+rax*8]
	lea	rdx, func_one[rip]
	cmp	rax, rdx
	jne	.L13
	lea	rsi, func_one[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	add	DWORD PTR -1064[rbp], 1
.L12:
	mov	eax, DWORD PTR -1064[rbp]
	cmp	eax, DWORD PTR -1060[rbp]
	jl	.L14
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	dump_frames, .-dump_frames
	.globl	IsFunctionInCallstack
	.type	IsFunctionInCallstack, @function
IsFunctionInCallstack:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1088
	mov	QWORD PTR -1080[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1060[rbp], 0
	lea	rax, -1040[rbp]
	mov	esi, 128
	mov	rdi, rax
	call	backtrace@PLT
	mov	DWORD PTR -1052[rbp], eax
	mov	edx, DWORD PTR -1052[rbp]
	lea	rax, -1040[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	backtrace_symbols@PLT
	mov	QWORD PTR -1048[rbp], rax
	cmp	QWORD PTR -1048[rbp], 0
	je	.L18
	mov	DWORD PTR -1056[rbp], 0
	mov	DWORD PTR -1056[rbp], 0
	jmp	.L19
.L23:
	mov	eax, DWORD PTR -1056[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L26
	mov	eax, DWORD PTR -1056[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -1080[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L22
	mov	DWORD PTR -1060[rbp], 1
	jmp	.L21
.L22:
	add	DWORD PTR -1056[rbp], 1
.L19:
	mov	eax, DWORD PTR -1056[rbp]
	cmp	eax, DWORD PTR -1052[rbp]
	jl	.L23
	jmp	.L21
.L26:
	nop
.L21:
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	free@PLT
.L18:
	mov	eax, DWORD PTR -1060[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	IsFunctionInCallstack, .-IsFunctionInCallstack
	.section	.rodata
.LC7:
	.string	"Yes."
.LC8:
	.string	"No."
.LC9:
	.string	"Is %s in callstack? %s\n"
	.text
	.globl	PrintIsItInCallstack
	.type	PrintIsItInCallstack, @function
PrintIsItInCallstack:
.LFB5:
	.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	IsFunctionInCallstack
	test	eax, eax
	je	.L28
	lea	rax, .LC7[rip]
	jmp	.L29
.L28:
	lea	rax, .LC8[rip]
.L29:
	mov	rcx, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	rsi, rcx
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	PrintIsItInCallstack, .-PrintIsItInCallstack
	.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	"275200.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"main\000"
	.align	2
.LC1:
	.ascii	"func_one\000"
	.align	2
.LC2:
	.ascii	"func_two\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r0, .L3
	bl	PrintIsItInCallstack
	ldr	r0, .L3+4
	bl	PrintIsItInCallstack
	ldr	r0, .L3+8
	bl	PrintIsItInCallstack
	bl	func_one
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.align	2
	.global	func_one
	.syntax unified
	.arm
	.fpu softvfp
	.type	func_one, %function
func_one:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L6
	bl	PrintIsItInCallstack
	ldr	r0, .L6+4
	bl	PrintIsItInCallstack
	ldr	r0, .L6+8
	bl	PrintIsItInCallstack
	bl	func_two
	nop
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	func_one, .-func_one
	.align	2
	.global	func_two
	.syntax unified
	.arm
	.fpu softvfp
	.type	func_two, %function
func_two:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L9
	bl	PrintIsItInCallstack
	ldr	r0, .L9+4
	bl	PrintIsItInCallstack
	ldr	r0, .L9+8
	bl	PrintIsItInCallstack
	bl	dump_frames
	nop
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	func_two, .-func_two
	.section	.rodata
	.align	2
.LC3:
	.ascii	"  Found %s\012\000"
	.align	2
.LC4:
	.ascii	"SEARCHING FOR ADDRESS OF func_one (%p)\012\000"
	.align	2
.LC5:
	.ascii	"  Looking at %p\012\000"
	.align	2
.LC6:
	.ascii	"    Found func_one: %p\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dump_frames
	.syntax unified
	.arm
	.fpu softvfp
	.type	dump_frames, %function
dump_frames:
	@ args = 0, pretend = 0, frame = 536
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #536
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #520
	mov	r1, #128
	mov	r0, r3
	bl	backtrace
	str	r0, [fp, #-532]
	sub	r3, fp, #520
	ldr	r1, [fp, #-532]
	mov	r0, r3
	bl	backtrace_symbols
	str	r0, [fp, #-528]
	ldr	r3, .L23+4
	str	r3, [fp, #-524]
	ldr	r3, [fp, #-528]
	cmp	r3, #0
	beq	.L12
	mov	r3, #0
	str	r3, [fp, #-540]
	mov	r3, #0
	str	r3, [fp, #-540]
	b	.L13
.L17:
	ldr	r3, [fp, #-540]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-528]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-540]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-528]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-540]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-528]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-524]
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r1, [fp, #-524]
	ldr	r0, .L23+8
	bl	printf
.L16:
	ldr	r3, [fp, #-540]
	add	r3, r3, #1
	str	r3, [fp, #-540]
.L13:
	ldr	r2, [fp, #-540]
	ldr	r3, [fp, #-532]
	cmp	r2, r3
	blt	.L17
	b	.L15
.L22:
	nop
.L15:
	ldr	r0, [fp, #-528]
	bl	free
.L12:
	ldr	r1, .L23+12
	ldr	r0, .L23+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-536]
	b	.L18
.L20:
	ldr	r3, [fp, #-536]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-516]
	mov	r1, r3
	ldr	r0, .L23+20
	bl	printf
	ldr	r3, [fp, #-536]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-516]
	ldr	r2, .L23+12
	cmp	r3, r2
	bne	.L19
	ldr	r1, .L23+12
	ldr	r0, .L23+24
	bl	printf
.L19:
	ldr	r3, [fp, #-536]
	add	r3, r3, #1
	str	r3, [fp, #-536]
.L18:
	ldr	r2, [fp, #-536]
	ldr	r3, [fp, #-532]
	cmp	r2, r3
	blt	.L20
	nop
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC7
	.word	.LC2
	.word	.LC3
	.word	func_one
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	dump_frames, .-dump_frames
	.section	.rodata
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	IsFunctionInCallstack
	.syntax unified
	.arm
	.fpu softvfp
	.type	IsFunctionInCallstack, %function
IsFunctionInCallstack:
	@ args = 0, pretend = 0, frame = 544
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #544
	str	r0, [fp, #-544]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-536]
	sub	r3, fp, #520
	mov	r1, #128
	mov	r0, r3
	bl	backtrace
	str	r0, [fp, #-528]
	sub	r3, fp, #520
	ldr	r1, [fp, #-528]
	mov	r0, r3
	bl	backtrace_symbols
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	beq	.L26
	mov	r3, #0
	str	r3, [fp, #-532]
	mov	r3, #0
	str	r3, [fp, #-532]
	b	.L27
.L31:
	ldr	r3, [fp, #-532]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-524]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L34
	ldr	r3, [fp, #-532]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-524]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, [fp, #-544]
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	mov	r3, #1
	str	r3, [fp, #-536]
	b	.L29
.L30:
	ldr	r3, [fp, #-532]
	add	r3, r3, #1
	str	r3, [fp, #-532]
.L27:
	ldr	r2, [fp, #-532]
	ldr	r3, [fp, #-528]
	cmp	r2, r3
	blt	.L31
	b	.L29
.L34:
	nop
.L29:
	ldr	r0, [fp, #-524]
	bl	free
.L26:
	ldr	r3, [fp, #-536]
	ldr	r2, .L35
	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}
.L36:
	.align	2
.L35:
	.word	.LC8
	.size	IsFunctionInCallstack, .-IsFunctionInCallstack
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Yes.\000"
	.align	2
.LC10:
	.ascii	"No.\000"
	.align	2
.LC11:
	.ascii	"Is %s in callstack? %s\012\000"
	.text
	.align	2
	.global	PrintIsItInCallstack
	.syntax unified
	.arm
	.fpu softvfp
	.type	PrintIsItInCallstack, %function
PrintIsItInCallstack:
	@ 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	IsFunctionInCallstack
	mov	r3, r0
	cmp	r3, #0
	beq	.L38
	ldr	r3, .L40
	b	.L39
.L38:
	ldr	r3, .L40+4
.L39:
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L40+8
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	PrintIsItInCallstack, .-PrintIsItInCallstack
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
