	.file	"863379.c"
	.intel_syntax noprefix
	.text
	.globl	stack_create
	.type	stack_create, @function
stack_create:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -52[rbp], 0
	jne	.L2
	mov	eax, 0
	jmp	.L5
.L2:
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L4
	mov	eax, 0
	jmp	.L5
.L4:
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	DWORD PTR -28[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR -40[rbp]
.L5:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	stack_create, .-stack_create
	.globl	stack_destroy
	.type	stack_destroy, @function
stack_destroy:
.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	QWORD PTR -32[rbp], rsi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L8
	mov	eax, 0
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L10
	cmp	QWORD PTR -32[rbp], 0
	jne	.L12
	mov	eax, 0
	jmp	.L9
.L13:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	rdx
	xor	eax, 1
	test	al, al
	je	.L12
	mov	eax, 0
	jmp	.L9
.L12:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L13
.L10:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 1
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	stack_destroy, .-stack_destroy
	.globl	stack_push
	.type	stack_push, @function
stack_push:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L15
	mov	eax, 0
	jmp	.L16
.L15:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L17
	mov	eax, 0
	jmp	.L16
.L17:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jb	.L18
	mov	eax, 0
	jmp	.L16
.L18:
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L19
	mov	eax, 0
	jmp	.L16
.L19:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	eax, 1
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	stack_push, .-stack_push
	.globl	stack_pop
	.type	stack_pop, @function
stack_pop:
.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	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L21
	mov	eax, 0
	jmp	.L22
.L21:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L23
	mov	eax, 0
	jmp	.L22
.L23:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -16[rbp]
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	stack_pop, .-stack_pop
	.globl	stack_peek
	.type	stack_peek, @function
stack_peek:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L25
	mov	eax, 0
	jmp	.L26
.L25:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L27
	mov	eax, 0
	jmp	.L26
.L27:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 8[rax]
.L26:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	stack_peek, .-stack_peek
	.globl	stack_get_length
	.type	stack_get_length, @function
stack_get_length:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L29
	mov	eax, 0
	jmp	.L30
.L29:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
.L30:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	stack_get_length, .-stack_get_length
	.globl	stack_get_max_length
	.type	stack_get_max_length, @function
stack_get_max_length:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L32
	mov	eax, 0
	jmp	.L33
.L32:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
.L33:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	stack_get_max_length, .-stack_get_max_length
	.globl	stack_is_empty
	.type	stack_is_empty, @function
stack_is_empty:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L35
	mov	eax, 1
	jmp	.L36
.L35:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L37
	mov	eax, 1
	jmp	.L36
.L37:
	mov	eax, 0
.L36:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	stack_is_empty, .-stack_is_empty
	.globl	stack_is_full
	.type	stack_is_full, @function
stack_is_full:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L39
	mov	eax, 0
	jmp	.L40
.L39:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jb	.L41
	mov	eax, 1
	jmp	.L40
.L41:
	mov	eax, 0
.L40:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	stack_is_full, .-stack_is_full
	.section	.rodata
.LC0:
	.string	"destroyed: %p\n"
	.text
	.globl	destroy_my_obj_callback
	.type	destroy_my_obj_callback, @function
destroy_my_obj_callback:
.LFB15:
	.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	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	destroy_my_obj_callback, .-destroy_my_obj_callback
	.section	.rodata
.LC1:
	.string	"max len: %u\n"
.LC2:
	.string	"len: %u\n"
.LC3:
	.string	"peek: %p\n"
.LC4:
	.string	"yes"
.LC5:
	.string	"no"
.LC6:
	.string	"added?: %s\n"
.LC7:
	.string	"is_empty: %s\n"
.LC8:
	.string	"is_full: %s\n"
.LC9:
	.string	"pop: %p\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB16:
	.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	edi, 2
	call	stack_create
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_get_max_length
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_get_length
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_peek
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 16
	mov	rdi, rax
	call	stack_push
	mov	BYTE PTR -9[rbp], al
	cmp	BYTE PTR -9[rbp], 0
	je	.L45
	lea	rax, .LC4[rip]
	jmp	.L46
.L45:
	lea	rax, .LC5[rip]
.L46:
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_peek
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_get_length
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_is_empty
	test	al, al
	je	.L47
	lea	rax, .LC4[rip]
	jmp	.L48
.L47:
	lea	rax, .LC5[rip]
.L48:
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_is_full
	test	al, al
	je	.L49
	lea	rax, .LC4[rip]
	jmp	.L50
.L49:
	lea	rax, .LC5[rip]
.L50:
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 17
	mov	rdi, rax
	call	stack_push
	mov	BYTE PTR -9[rbp], al
	cmp	BYTE PTR -9[rbp], 0
	je	.L51
	lea	rax, .LC4[rip]
	jmp	.L52
.L51:
	lea	rax, .LC5[rip]
.L52:
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_peek
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_get_length
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 18
	mov	rdi, rax
	call	stack_push
	mov	BYTE PTR -9[rbp], al
	cmp	BYTE PTR -9[rbp], 0
	je	.L53
	lea	rax, .LC4[rip]
	jmp	.L54
.L53:
	lea	rax, .LC5[rip]
.L54:
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_peek
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_get_length
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_is_empty
	test	al, al
	je	.L55
	lea	rax, .LC4[rip]
	jmp	.L56
.L55:
	lea	rax, .LC5[rip]
.L56:
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_is_full
	test	al, al
	je	.L57
	lea	rax, .LC4[rip]
	jmp	.L58
.L57:
	lea	rax, .LC5[rip]
.L58:
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_pop
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_get_length
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_pop
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_get_length
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_pop
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_get_length
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_is_empty
	test	al, al
	je	.L59
	lea	rax, .LC4[rip]
	jmp	.L60
.L59:
	lea	rax, .LC5[rip]
.L60:
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_is_full
	test	al, al
	je	.L61
	lea	rax, .LC4[rip]
	jmp	.L62
.L61:
	lea	rax, .LC5[rip]
.L62:
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 19
	mov	rdi, rax
	call	stack_push
	mov	BYTE PTR -9[rbp], al
	cmp	BYTE PTR -9[rbp], 0
	je	.L63
	lea	rax, .LC4[rip]
	jmp	.L64
.L63:
	lea	rax, .LC5[rip]
.L64:
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_peek
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_get_length
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 20
	mov	rdi, rax
	call	stack_push
	mov	BYTE PTR -9[rbp], al
	cmp	BYTE PTR -9[rbp], 0
	je	.L65
	lea	rax, .LC4[rip]
	jmp	.L66
.L65:
	lea	rax, .LC5[rip]
.L66:
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_peek
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	stack_get_length
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, destroy_my_obj_callback[rip]
	mov	rdi, rax
	call	stack_destroy
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.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	"863379.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	stack_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	stack_create, %function
stack_create:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L2
	mov	r3, #0
	b	.L5
.L2:
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L4
	mov	r3, #0
	b	.L5
.L4:
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #20
	mov	r2, #12
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	memcpy
	ldr	r3, [fp, #-24]
.L5:
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.size	stack_create, .-stack_create
	.align	2
	.global	stack_destroy
	.syntax unified
	.arm
	.fpu softvfp
	.type	stack_destroy, %function
stack_destroy:
	@ 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
	bne	.L10
	mov	r3, #0
	b	.L11
.L10:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L14
	mov	r3, #0
	b	.L11
.L15:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	ldr	r0, [fp, #-12]
	blx	r3
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L14
	mov	r3, #0
	b	.L11
.L14:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L15
.L12:
	ldr	r0, [fp, #-16]
	bl	free
	mov	r3, #1
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	stack_destroy, .-stack_destroy
	.align	2
	.global	stack_push
	.syntax unified
	.arm
	.fpu softvfp
	.type	stack_push, %function
stack_push:
	@ 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
	bne	.L17
	mov	r3, #0
	b	.L18
.L17:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L19
	mov	r3, #0
	b	.L18
.L19:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L20
	mov	r3, #0
	b	.L18
.L20:
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L21
	mov	r3, #0
	b	.L18
.L21:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	mov	r3, #1
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	stack_push, .-stack_push
	.align	2
	.global	stack_pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	stack_pop, %function
stack_pop:
	@ 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]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L23
	mov	r3, #0
	b	.L24
.L23:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L25
	mov	r3, #0
	b	.L24
.L25:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-12]
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	stack_pop, .-stack_pop
	.align	2
	.global	stack_peek
	.syntax unified
	.arm
	.fpu softvfp
	.type	stack_peek, %function
stack_peek:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L27
	mov	r3, #0
	b	.L28
.L27:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L29
	mov	r3, #0
	b	.L28
.L29:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #4]
.L28:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	stack_peek, .-stack_peek
	.align	2
	.global	stack_get_length
	.syntax unified
	.arm
	.fpu softvfp
	.type	stack_get_length, %function
stack_get_length:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L31
	mov	r3, #0
	b	.L32
.L31:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
.L32:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	stack_get_length, .-stack_get_length
	.align	2
	.global	stack_get_max_length
	.syntax unified
	.arm
	.fpu softvfp
	.type	stack_get_max_length, %function
stack_get_max_length:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L34
	mov	r3, #0
	b	.L35
.L34:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
.L35:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	stack_get_max_length, .-stack_get_max_length
	.align	2
	.global	stack_is_empty
	.syntax unified
	.arm
	.fpu softvfp
	.type	stack_is_empty, %function
stack_is_empty:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L37
	mov	r3, #1
	b	.L38
.L37:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L39
	mov	r3, #1
	b	.L38
.L39:
	mov	r3, #0
.L38:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	stack_is_empty, .-stack_is_empty
	.align	2
	.global	stack_is_full
	.syntax unified
	.arm
	.fpu softvfp
	.type	stack_is_full, %function
stack_is_full:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L41
	mov	r3, #0
	b	.L42
.L41:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r2, r3
	bcc	.L43
	mov	r3, #1
	b	.L42
.L43:
	mov	r3, #0
.L42:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	stack_is_full, .-stack_is_full
	.section	.rodata
	.align	2
.LC1:
	.ascii	"destroyed: %p\012\000"
	.text
	.align	2
	.global	destroy_my_obj_callback
	.syntax unified
	.arm
	.fpu softvfp
	.type	destroy_my_obj_callback, %function
destroy_my_obj_callback:
	@ 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	r1, [fp, #-8]
	ldr	r0, .L46
	bl	printf
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC1
	.size	destroy_my_obj_callback, .-destroy_my_obj_callback
	.section	.rodata
	.align	2
.LC2:
	.ascii	"max len: %u\012\000"
	.align	2
.LC3:
	.ascii	"len: %u\012\000"
	.align	2
.LC4:
	.ascii	"peek: %p\012\000"
	.align	2
.LC5:
	.ascii	"yes\000"
	.align	2
.LC6:
	.ascii	"no\000"
	.align	2
.LC7:
	.ascii	"added?: %s\012\000"
	.align	2
.LC8:
	.ascii	"is_empty: %s\012\000"
	.align	2
.LC9:
	.ascii	"is_full: %s\012\000"
	.align	2
.LC10:
	.ascii	"pop: %p\012\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
	mov	r0, #2
	bl	stack_create
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	stack_get_max_length
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L72
	bl	printf
	ldr	r0, [fp, #-8]
	bl	stack_get_length
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L72+4
	bl	printf
	ldr	r0, [fp, #-8]
	bl	stack_peek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L72+8
	bl	printf
	mov	r0, #10
	bl	putchar
	mov	r1, #16
	ldr	r0, [fp, #-8]
	bl	stack_push
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L49
	ldr	r3, .L72+12
	b	.L50
.L49:
	ldr	r3, .L72+16
.L50:
	mov	r1, r3
	ldr	r0, .L72+20
	bl	printf
	ldr	r0, [fp, #-8]
	bl	stack_peek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L72+8
	bl	printf
	ldr	r0, [fp, #-8]
	bl	stack_get_length
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L72+4
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-8]
	bl	stack_is_empty
	mov	r3, r0
	cmp	r3, #0
	beq	.L51
	ldr	r3, .L72+12
	b	.L52
.L51:
	ldr	r3, .L72+16
.L52:
	mov	r1, r3
	ldr	r0, .L72+24
	bl	printf
	ldr	r0, [fp, #-8]
	bl	stack_is_full
	mov	r3, r0
	cmp	r3, #0
	beq	.L53
	ldr	r3, .L72+12
	b	.L54
.L53:
	ldr	r3, .L72+16
.L54:
	mov	r1, r3
	ldr	r0, .L72+28
	bl	printf
	mov	r0, #10
	bl	putchar
	mov	r1, #17
	ldr	r0, [fp, #-8]
	bl	stack_push
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L55
	ldr	r3, .L72+12
	b	.L56
.L55:
	ldr	r3, .L72+16
.L56:
	mov	r1, r3
	ldr	r0, .L72+20
	bl	printf
	ldr	r0, [fp, #-8]
	bl	stack_peek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L72+8
	bl	printf
	ldr	r0, [fp, #-8]
	bl	stack_get_length
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L72+4
	bl	printf
	mov	r0, #10
	bl	putchar
	mov	r1, #18
	ldr	r0, [fp, #-8]
	bl	stack_push
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L57
	ldr	r3, .L72+12
	b	.L58
.L57:
	ldr	r3, .L72+16
.L58:
	mov	r1, r3
	ldr	r0, .L72+20
	bl	printf
	ldr	r0, [fp, #-8]
	bl	stack_peek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L72+8
	bl	printf
	ldr	r0, [fp, #-8]
	bl	stack_get_length
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L72+4
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-8]
	bl	stack_is_empty
	mov	r3, r0
	cmp	r3, #0
	beq	.L59
	ldr	r3, .L72+12
	b	.L60
.L59:
	ldr	r3, .L72+16
.L60:
	mov	r1, r3
	ldr	r0, .L72+24
	bl	printf
	ldr	r0, [fp, #-8]
	bl	stack_is_full
	mov	r3, r0
	cmp	r3, #0
	beq	.L61
	ldr	r3, .L72+12
	b	.L62
.L61:
	ldr	r3, .L72+16
.L62:
	mov	r1, r3
	ldr	r0, .L72+28
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-8]
	bl	stack_pop
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L72+32
	bl	printf
	ldr	r0, [fp, #-8]
	bl	stack_get_length
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L72+4
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-8]
	bl	stack_pop
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L72+32
	bl	printf
	ldr	r0, [fp, #-8]
	bl	stack_get_length
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L72+4
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-8]
	bl	stack_pop
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L72+32
	bl	printf
	ldr	r0, [fp, #-8]
	bl	stack_get_length
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L72+4
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-8]
	bl	stack_is_empty
	mov	r3, r0
	cmp	r3, #0
	beq	.L63
	ldr	r3, .L72+12
	b	.L64
.L63:
	ldr	r3, .L72+16
.L64:
	mov	r1, r3
	ldr	r0, .L72+24
	bl	printf
	ldr	r0, [fp, #-8]
	bl	stack_is_full
	mov	r3, r0
	cmp	r3, #0
	beq	.L65
	ldr	r3, .L72+12
	b	.L66
.L65:
	ldr	r3, .L72+16
.L66:
	mov	r1, r3
	ldr	r0, .L72+28
	bl	printf
	mov	r0, #10
	bl	putchar
	mov	r1, #19
	ldr	r0, [fp, #-8]
	bl	stack_push
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L67
	ldr	r3, .L72+12
	b	.L68
.L67:
	ldr	r3, .L72+16
.L68:
	mov	r1, r3
	ldr	r0, .L72+20
	bl	printf
	ldr	r0, [fp, #-8]
	bl	stack_peek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L72+8
	bl	printf
	ldr	r0, [fp, #-8]
	bl	stack_get_length
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L72+4
	bl	printf
	mov	r0, #10
	bl	putchar
	mov	r1, #20
	ldr	r0, [fp, #-8]
	bl	stack_push
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L69
	ldr	r3, .L72+12
	b	.L70
.L69:
	ldr	r3, .L72+16
.L70:
	mov	r1, r3
	ldr	r0, .L72+20
	bl	printf
	ldr	r0, [fp, #-8]
	bl	stack_peek
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L72+8
	bl	printf
	ldr	r0, [fp, #-8]
	bl	stack_get_length
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L72+4
	bl	printf
	mov	r0, #10
	bl	putchar
	ldr	r1, .L72+36
	ldr	r0, [fp, #-8]
	bl	stack_destroy
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L73:
	.align	2
.L72:
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	destroy_my_obj_callback
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
