	.file	"223287.c"
	.intel_syntax noprefix
	.text
	.globl	is_stack
	.type	is_stack, @function
is_stack:
.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, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	pthread_self@PLT
	mov	QWORD PTR -72[rbp], rax
	lea	rdx, -64[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	pthread_getattr_np@PLT
	lea	rdx, -80[rbp]
	lea	rcx, -88[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	pthread_attr_getstack@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdx, QWORD PTR -88[rbp]
	cmp	rax, rdx
	jb	.L2
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -80[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -104[rbp]
	cmp	rdx, rax
	jbe	.L2
	mov	eax, 1
	jmp	.L4
.L2:
	mov	eax, 0
.L4:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	is_stack, .-is_stack
	.section	.rodata
.LC0:
	.string	"p1: %d\np2: %d\nstr[3]: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 48
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edi, 4
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	lea	rax, -52[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	WORD PTR -27[rbp], 29537
	mov	BYTE PTR -25[rbp], 100
	lea	rax, -27[rbp]
	mov	rdi, rax
	call	is_stack
	mov	r12d, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	is_stack
	mov	ebx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	is_stack
	mov	ecx, r12d
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -24[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	add	rsp, 48
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"223287.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	is_stack
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_stack, %function
is_stack:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	pthread_self
	str	r0, [fp, #-48]
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	pthread_getattr_np
	sub	r2, fp, #52
	sub	r1, fp, #56
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_getstack
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-56]
	cmp	r3, r2
	bcc	.L2
	ldr	r3, [fp, #-56]
	mov	r2, r3
	ldr	r3, [fp, #-52]
	add	r2, r2, r3
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	bls	.L2
	mov	r3, #1
	b	.L4
.L2:
	mov	r3, #0
.L4:
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.size	is_stack, .-is_stack
	.section	.rodata
	.align	2
.LC2:
	.ascii	"p1: %d\012p2: %d\012str[3]: %d\012\000"
	.align	2
.LC1:
	.ascii	"asd"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	sub	r3, fp, #32
	str	r3, [fp, #-24]
	ldr	r2, .L11+4
	sub	r3, fp, #20
	ldr	r2, [r2]
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	ldr	r0, [fp, #-28]
	bl	is_stack
	mov	r4, r0
	ldr	r0, [fp, #-24]
	bl	is_stack
	mov	r5, r0
	sub	r3, fp, #20
	mov	r0, r3
	bl	is_stack
	mov	r3, r0
	mov	r2, r5
	mov	r1, r4
	ldr	r0, .L11+8
	bl	printf
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
