	.file	"29826344.c"
	.intel_syntax noprefix
	.text
	.local	height
	.comm	height,4,4
	.section	.rodata
.LC0:
	.string	"Error reading line"
	.text
	.globl	get_line
	.type	get_line, @function
get_line:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rdx, QWORD PTR stdin[rip]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L3
.L2:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L4
.L3:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_line, .-get_line
	.globl	allocate_row
	.type	allocate_row, @function
allocate_row:
.LFB7:
	.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, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -20[rbp], 0
	jmp	.L6
.L8:
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L7
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	lea	rbx, [rdx+rax]
	mov	esi, 1
	mov	edi, 161
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
.L7:
	add	DWORD PTR -20[rbp], 1
.L6:
	cmp	DWORD PTR -20[rbp], 2
	jle	.L8
	nop
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	allocate_row, .-allocate_row
	.globl	draw_trailing_space
	.type	draw_trailing_space, @function
draw_trailing_space:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	DWORD PTR -8[rbp], 0
	jmp	.L10
.L13:
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L11
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 32
.L11:
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -4[rbp], edx
	test	eax, eax
	jne	.L12
	add	DWORD PTR -8[rbp], 1
.L10:
	cmp	DWORD PTR -8[rbp], 2
	jle	.L13
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	draw_trailing_space, .-draw_trailing_space
	.globl	draw_house
	.type	draw_house, @function
draw_house:
.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
	mov	DWORD PTR -28[rbp], esi
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 40
	add	eax, eax
	add	eax, 1
	mov	DWORD PTR -4[rbp], eax
	jmp	.L15
.L16:
	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	.L15
	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	puts@PLT
.L15:
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -4[rbp], edx
	test	eax, eax
	jne	.L16
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	draw_house, .-draw_house
	.globl	draw_init
	.type	draw_init, @function
draw_init:
.LFB10:
	.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	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	QWORD PTR -16[rbp], rdx
	mov	QWORD PTR -24[rbp], rcx
	mov	QWORD PTR -32[rbp], r8
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, [rax+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	allocate_row
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	draw_trailing_space
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	draw_init, .-draw_init
	.section	.rodata
.LC1:
	.string	"/   \\"
.LC2:
	.string	"   "
	.text
	.globl	merge_roof
	.type	merge_roof, @function
merge_roof:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	DWORD PTR -36[rbp], ecx
	mov	eax, DWORD PTR -20[rbp]
	add	eax, eax
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, 0[0+rax*4]
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sub	rax, 2
	add	rax, rdx
	mov	edx, 5
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sub	rax, 1
	add	rax, rdx
	mov	edx, 3
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -16[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L19
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -16[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 32
.L19:
	mov	eax, DWORD PTR -36[rbp]
	lea	ecx, -2[rax]
	mov	eax, DWORD PTR -20[rbp]
	lea	edi, 1[rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	call	draw_roof
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	merge_roof, .-merge_roof
	.section	.rodata
.LC3:
	.string	"A"
.LC4:
	.string	"/ \\"
	.text
	.globl	draw_roof
	.type	draw_roof, @function
draw_roof:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	DWORD PTR -36[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, -12[rbp]
	lea	rcx, -16[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	esi, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	draw_init
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, DWORD PTR -36[rbp]
	add	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	lea	ecx, 2[rax]
	mov	eax, DWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	draw_trailing_space
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 2
	add	rax, rdx
	mov	edx, 1
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -12[rbp]
	lea	esi, 1[rax]
	mov	eax, DWORD PTR -16[rbp]
	lea	ecx, -1[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, rax
	mov	edi, ecx
	call	draw_trailing_space
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	add	rax, rdx
	mov	edx, 3
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jle	.L23
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sub	rax, 1
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 92
	jne	.L23
	mov	ecx, DWORD PTR -36[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	esi, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	merge_roof
.L23:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	draw_roof, .-draw_roof
	.section	.rodata
.LC5:
	.string	"   |"
.LC6:
	.string	"---+"
	.text
	.globl	draw_box
	.type	draw_box, @function
draw_box:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	QWORD PTR -48[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, -12[rbp]
	lea	rcx, -16[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	esi, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	r8, rdi
	mov	edi, eax
	call	draw_init
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	sete	al
	mov	BYTE PTR -19[rbp], al
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jle	.L25
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 124
	jne	.L25
	mov	eax, 1
	jmp	.L26
.L25:
	mov	eax, 0
.L26:
	mov	BYTE PTR -18[rbp], al
	and	BYTE PTR -18[rbp], 1
	cmp	BYTE PTR -18[rbp], 0
	je	.L27
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 124
	jne	.L27
	mov	eax, 1
	jmp	.L28
.L27:
	mov	eax, 0
.L28:
	mov	BYTE PTR -17[rbp], al
	and	BYTE PTR -17[rbp], 1
	cmp	BYTE PTR -19[rbp], 0
	je	.L29
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	memcpy@PLT
	jmp	.L30
.L29:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	memcpy@PLT
.L30:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	memcpy@PLT
	call	rand@PLT
	and	eax, 1
	test	eax, eax
	je	.L31
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 2
	add	rax, rdx
	mov	BYTE PTR [rax], 111
.L31:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -16[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	add	rax, rdx
	mov	edx, 4
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	memcpy@PLT
	cmp	BYTE PTR -18[rbp], 0
	je	.L32
	cmp	BYTE PTR -17[rbp], 0
	je	.L33
	cmp	BYTE PTR -19[rbp], 0
	je	.L33
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 32
	jmp	.L34
.L33:
	cmp	BYTE PTR -17[rbp], 0
	jne	.L35
	cmp	BYTE PTR -19[rbp], 0
	je	.L36
.L35:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 43
	jmp	.L34
.L36:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 45
.L34:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 32
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -16[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 45
	jmp	.L37
.L32:
	cmp	BYTE PTR -19[rbp], 0
	je	.L38
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 124
	jmp	.L39
.L38:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 43
.L39:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 124
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -16[rax]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, rdx
	mov	BYTE PTR [rax], 43
.L37:
	movzx	eax, BYTE PTR -19[rbp]
	xor	eax, 1
	test	al, al
	je	.L42
	mov	eax, DWORD PTR -36[rbp]
	lea	edi, 1[rax]
	mov	rdx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	ecx, 0
	mov	esi, eax
	call	draw_roof
.L42:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	draw_box, .-draw_box
	.section	.rodata
.LC7:
	.string	"height: %d\n"
.LC8:
	.string	"| |"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	lea	rax, -64[rbp]
	mov	esi, 40
	mov	rdi, rax
	call	get_line
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR height[rip], eax
	mov	eax, DWORD PTR height[rip]
	add	eax, 40
	add	eax, eax
	add	eax, 1
	cdqe
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	eax, DWORD PTR height[rip]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -80[rbp], 0
	mov	eax, DWORD PTR height[rip]
	mov	DWORD PTR -76[rbp], eax
	jmp	.L44
.L49:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L45
.L48:
	cmp	BYTE PTR -81[rbp], 42
	jne	.L46
	mov	rdx, QWORD PTR -72[rbp]
	mov	ecx, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -76[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	draw_box
.L46:
	add	DWORD PTR -80[rbp], 1
.L45:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	BYTE PTR -81[rbp], al
	cmp	BYTE PTR -81[rbp], 10
	je	.L47
	cmp	BYTE PTR -81[rbp], -1
	jne	.L48
.L47:
	sub	DWORD PTR -76[rbp], 1
.L44:
	cmp	DWORD PTR -76[rbp], 0
	jg	.L49
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 8
	mov	rbx, QWORD PTR [rax]
	call	rand@PLT
	cdq
	idiv	DWORD PTR -80[rbp]
	mov	eax, edx
	sal	eax, 2
	cdqe
	add	rax, 1
	add	rax, rbx
	mov	edx, 3
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	memcpy@PLT
	mov	edx, DWORD PTR height[rip]
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	draw_house
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L51
	call	__stack_chk_fail@PLT
.L51:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.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	"29826344.c"
	.text
	.local	height
	.comm	height,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error reading line\000"
	.text
	.align	2
	.global	get_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_line, %function
get_line:
	@ 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, .L5
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L3
.L2:
	ldr	r3, .L5+4
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L5+8
	bl	fwrite
	mov	r3, #0
	b	.L4
.L3:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	stdin
	.word	stderr
	.word	.LC0
	.size	get_line, .-get_line
	.align	2
	.global	allocate_row
	.syntax unified
	.arm
	.fpu softvfp
	.type	allocate_row, %function
allocate_row:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L8
.L10:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L9
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r4, r2, r3
	mov	r1, #1
	mov	r0, #161
	bl	calloc
	mov	r3, r0
	str	r3, [r4]
.L9:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L8:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	ble	.L10
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	allocate_row, .-allocate_row
	.align	2
	.global	draw_trailing_space
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_trailing_space, %function
draw_trailing_space:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L12
.L15:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	b	.L13
.L14:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L13
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
.L13:
	ldr	r3, [fp, #-8]
	sub	r2, r3, #1
	str	r2, [fp, #-8]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L12:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L15
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	draw_trailing_space, .-draw_trailing_space
	.align	2
	.global	draw_house
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_house, %function
draw_house:
	@ 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, #-20]
	add	r3, r3, #40
	lsl	r3, r3, #1
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L17
.L18:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
.L17:
	ldr	r3, [fp, #-8]
	sub	r2, r3, #1
	str	r2, [fp, #-8]
	cmp	r3, #0
	bne	.L18
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	draw_house, .-draw_house
	.align	2
	.global	draw_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_init, %function
draw_init:
	@ args = 4, 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #2
	ldr	r3, [fp, #4]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	allocate_row
	ldr	r3, [fp, #-20]
	ldr	r0, [r3]
	ldr	r3, [fp, #4]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	mov	r1, r3
	bl	draw_trailing_space
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	draw_init, .-draw_init
	.section	.rodata
	.align	2
.LC1:
	.ascii	"/   \\\000"
	.align	2
.LC2:
	.ascii	"   \000"
	.text
	.align	2
	.global	merge_roof
	.syntax unified
	.arm
	.fpu softvfp
	.type	merge_roof, %function
merge_roof:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #5
	ldr	r1, .L22
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-12]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	add	r3, r2, r3
	mov	r2, #3
	ldr	r1, .L22+4
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-12]
	sub	r3, r3, #-1073741822
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L21
	ldr	r3, [fp, #-12]
	sub	r3, r3, #-1073741822
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3]
.L21:
	ldr	r3, [fp, #-16]
	add	r0, r3, #1
	ldr	r3, [fp, #-28]
	sub	r3, r3, #2
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	bl	draw_roof
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC1
	.word	.LC2
	.size	merge_roof, .-merge_roof
	.section	.rodata
	.align	2
.LC3:
	.ascii	"A\000"
	.align	2
.LC4:
	.ascii	"/ \\\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	draw_roof
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_roof, %function
draw_roof:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r2, fp, #16
	sub	r3, fp, #12
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	draw_init
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #2
	ldr	r2, [fp, #-32]
	mov	r1, r3
	bl	draw_trailing_space
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #1
	ldr	r1, .L28+4
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-16]
	sub	r0, r3, #1
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r2, [fp, #-32]
	mov	r1, r3
	bl	draw_trailing_space
	ldr	r3, [fp, #-16]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	add	r3, r2, r3
	mov	r2, #3
	ldr	r1, .L28+8
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L27
	ldr	r3, [fp, #-16]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #92
	bne	.L27
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	merge_roof
.L27:
	nop
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC5
	.word	.LC3
	.word	.LC4
	.size	draw_roof, .-draw_roof
	.section	.rodata
	.align	2
.LC6:
	.ascii	"   |\000"
	.align	2
.LC7:
	.ascii	"---+\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	draw_box
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_box, %function
draw_box:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r2, fp, #16
	sub	r3, fp, #12
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	draw_init
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	moveq	r3, #1
	movne	r3, #0
	strb	r3, [fp, #-19]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L31
	ldr	r3, [fp, #-16]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #124
	bne	.L31
	mov	r3, #1
	b	.L32
.L31:
	mov	r3, #0
.L32:
	strb	r3, [fp, #-18]
	ldrb	r3, [fp, #-18]
	and	r3, r3, #1
	strb	r3, [fp, #-18]
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L33
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #124
	bne	.L33
	mov	r3, #1
	b	.L34
.L33:
	mov	r3, #0
.L34:
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-17]
	and	r3, r3, #1
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L35
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	add	r3, r2, r3
	mov	r2, #4
	ldr	r1, .L49+4
	mov	r0, r3
	bl	memcpy
	b	.L36
.L35:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	add	r3, r2, r3
	mov	r2, #4
	ldr	r1, .L49+8
	mov	r0, r3
	bl	memcpy
.L36:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	add	r3, r2, r3
	mov	r2, #4
	ldr	r1, .L49+4
	mov	r0, r3
	bl	memcpy
	bl	rand
	mov	r3, r0
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L37
	ldr	r3, [fp, #-16]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #2
	add	r3, r2, r3
	mov	r2, #111
	strb	r2, [r3]
.L37:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #-1073741822
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	add	r3, r2, r3
	mov	r2, #4
	ldr	r1, .L49+8
	mov	r0, r3
	bl	memcpy
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L38
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L39
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	mov	r2, #32
	strb	r2, [r3]
	b	.L40
.L39:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L41
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L42
.L41:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	mov	r2, #43
	strb	r2, [r3]
	b	.L40
.L42:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	mov	r2, #45
	strb	r2, [r3]
.L40:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #-1073741822
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	mov	r2, #45
	strb	r2, [r3]
	b	.L43
.L38:
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L44
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	mov	r2, #124
	strb	r2, [r3]
	b	.L45
.L44:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	mov	r2, #43
	strb	r2, [r3]
.L45:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	mov	r2, #124
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #-1073741822
	lsl	r3, r3, #2
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	add	r3, r3, r2
	mov	r2, #43
	strb	r2, [r3]
.L43:
	ldrb	r3, [fp, #-19]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L48
	ldr	r3, [fp, #-24]
	add	r0, r3, #1
	mov	r3, #0
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	bl	draw_roof
.L48:
	nop
	ldr	r3, .L49
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC8
	.word	.LC6
	.word	.LC7
	.size	draw_box, .-draw_box
	.section	.rodata
	.align	2
.LC9:
	.ascii	"height: %d\012\000"
	.global	__aeabi_idivmod
	.align	2
.LC10:
	.ascii	"| |\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	sub	r3, fp, #56
	mov	r1, #40
	mov	r0, r3
	bl	get_line
	mov	r3, r0
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L59+4
	str	r3, [r2]
	ldr	r3, .L59+4
	ldr	r3, [r3]
	add	r3, r3, #40
	lsl	r3, r3, #1
	add	r3, r3, #1
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-60]
	ldr	r3, .L59+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L59+8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-68]
	ldr	r3, .L59+4
	ldr	r3, [r3]
	str	r3, [fp, #-64]
	b	.L52
.L56:
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L53
.L55:
	ldrb	r3, [fp, #-69]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L54
	ldr	r2, [fp, #-60]
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-64]
	bl	draw_box
.L54:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L53:
	ldr	r3, .L59+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	mov	r3, r0
	strb	r3, [fp, #-69]
	ldrb	r3, [fp, #-69]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L55
	ldr	r3, [fp, #-64]
	sub	r3, r3, #1
	str	r3, [fp, #-64]
.L52:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bgt	.L56
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r4, [r3]
	bl	rand
	mov	r3, r0
	ldr	r1, [fp, #-68]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, #1
	add	r3, r4, r3
	mov	r2, #3
	ldr	r1, .L59+16
	mov	r0, r3
	bl	memcpy
	ldr	r3, .L59+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-60]
	bl	draw_house
	mov	r3, #0
	ldr	r2, .L59
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L58
	bl	__stack_chk_fail
.L58:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC11
	.word	height
	.word	.LC9
	.word	stdin
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
