	.file	"49220.c"
	.intel_syntax noprefix
	.text
	.globl	GENERATIONS
	.section	.rodata
	.align 4
	.type	GENERATIONS, @object
	.size	GENERATIONS, 4
GENERATIONS:
	.long	3
	.globl	INDENT_LENGTH
	.align 4
	.type	INDENT_LENGTH, @object
	.size	INDENT_LENGTH, 4
INDENT_LENGTH:
	.long	4
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	eax, 3
	mov	edi, eax
	call	create_family
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	print_family
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free_family
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	create_family
	.type	create_family, @function
create_family:
.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	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L4
	mov	eax, 0
	jmp	.L5
.L4:
	cmp	DWORD PTR -36[rbp], 1
	jle	.L6
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	mov	edi, eax
	call	create_family
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 1
	mov	edi, eax
	call	create_family
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rbx, QWORD PTR [rax]
	call	rand@PLT
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cdqe
	movzx	edx, BYTE PTR 16[rbx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR 16[rax], dl
	mov	rax, QWORD PTR -24[rbp]
	mov	rbx, QWORD PTR 8[rax]
	call	rand@PLT
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cdqe
	movzx	edx, BYTE PTR 16[rbx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR 17[rax], dl
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], 0
	call	random_allele
	mov	rdx, QWORD PTR -24[rbp]
	mov	BYTE PTR 16[rdx], al
	call	random_allele
	mov	rdx, QWORD PTR -24[rbp]
	mov	BYTE PTR 17[rdx], al
.L7:
	mov	rax, QWORD PTR -24[rbp]
.L5:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	create_family, .-create_family
	.globl	free_family
	.type	free_family, @function
free_family:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L11
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free_family
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free_family
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L8
.L11:
	nop
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	free_family, .-free_family
	.section	.rodata
	.align 8
.LC0:
	.string	"Generation %i, blood type %c%c\n"
	.text
	.globl	print_family
	.type	print_family, @function
print_family:
.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
	cmp	QWORD PTR -24[rbp], 0
	je	.L17
	mov	DWORD PTR -4[rbp], 0
	jmp	.L15
.L16:
	mov	edi, 32
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L15:
	mov	eax, 4
	imul	eax, DWORD PTR -28[rbp]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L16
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 17[rax]
	movsx	ecx, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 16[rax]
	movsx	edx, al
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, edx
	mov	rdi, rax
	call	print_family
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, edx
	mov	rdi, rax
	call	print_family
	jmp	.L12
.L17:
	nop
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	print_family, .-print_family
	.globl	random_allele
	.type	random_allele, @function
random_allele:
.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, 16
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -4[rbp], edx
	mov	ecx, DWORD PTR -4[rbp]
	mov	edx, ecx
	add	edx, edx
	add	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L19
	mov	eax, 65
	jmp	.L20
.L19:
	cmp	DWORD PTR -4[rbp], 1
	jne	.L21
	mov	eax, 66
	jmp	.L20
.L21:
	mov	eax, 79
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	random_allele, .-random_allele
	.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	"49220.c"
	.text
	.global	GENERATIONS
	.section	.rodata
	.align	2
	.type	GENERATIONS, %object
	.size	GENERATIONS, 4
GENERATIONS:
	.word	3
	.global	INDENT_LENGTH
	.align	2
	.type	INDENT_LENGTH, %object
	.size	INDENT_LENGTH, 4
INDENT_LENGTH:
	.word	4
	.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, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #3
	mov	r0, r3
	bl	create_family
	str	r0, [fp, #-8]
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	print_family
	ldr	r0, [fp, #-8]
	bl	free_family
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.align	2
	.global	create_family
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_family, %function
create_family:
	@ 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]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L4
	mov	r3, #0
	b	.L5
.L4:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	ble	.L6
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	mov	r0, r3
	bl	create_family
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	mov	r0, r3
	bl	create_family
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r4, [r3]
	bl	rand
	mov	r3, r0
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	add	r3, r4, r3
	ldrb	r2, [r3, #8]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	strb	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r4, [r3, #4]
	bl	rand
	mov	r3, r0
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	add	r3, r4, r3
	ldrb	r2, [r3, #8]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	strb	r2, [r3, #9]
	b	.L7
.L6:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #4]
	bl	random_allele
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	strb	r2, [r3, #8]
	bl	random_allele
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	strb	r2, [r3, #9]
.L7:
	ldr	r3, [fp, #-16]
.L5:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	create_family, .-create_family
	.align	2
	.global	free_family
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_family, %function
free_family:
	@ 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, [fp, #-8]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free_family
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free_family
	ldr	r0, [fp, #-8]
	bl	free
	b	.L8
.L11:
	nop
.L8:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	free_family, .-free_family
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Generation %i, blood type %c%c\012\000"
	.text
	.align	2
	.global	print_family
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_family, %function
print_family:
	@ 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
	beq	.L17
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L15
.L16:
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L15:
	mov	r2, #4
	ldr	r3, [fp, #-20]
	mul	r3, r2, r3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L16
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	ldr	r1, [fp, #-20]
	ldr	r0, .L18
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	print_family
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	print_family
	b	.L12
.L17:
	nop
.L12:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC0
	.size	print_family, .-print_family
	.align	2
	.global	random_allele
	.syntax unified
	.arm
	.fpu softvfp
	.type	random_allele, %function
random_allele:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	rand
	mov	r2, r0
	ldr	r3, .L24
	smull	r0, r1, r3, r2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #1
	add	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L21
	mov	r3, #65
	b	.L22
.L21:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L23
	mov	r3, #66
	b	.L22
.L23:
	mov	r3, #79
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	1431655766
	.size	random_allele, .-random_allele
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
