	.file	"387980.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"malloc error"
	.text
	.globl	assign_node
	.type	assign_node, @function
assign_node:
.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	DWORD PTR -32[rbp], edx
	mov	BYTE PTR -1[rbp], 0
	mov	BYTE PTR -1[rbp], 0
	jmp	.L2
.L5:
	movzx	eax, BYTE PTR -1[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	cdqe
	movzx	ecx, BYTE PTR -1[rbp]
	mov	BYTE PTR [rdx+rax], cl
	movzx	eax, BYTE PTR -1[rbp]
	mov	edx, DWORD PTR -28[rbp]
	sub	edx, 1
	cmp	eax, edx
	je	.L9
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L2:
	movzx	eax, BYTE PTR -1[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jg	.L5
	jmp	.L4
.L9:
	nop
.L4:
	cmp	DWORD PTR -32[rbp], 0
	jne	.L6
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 256[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 256[rax]
	test	rax, rax
	jne	.L7
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 256[rax], 0
.L7:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	assign_node, .-assign_node
	.section	.rodata
.LC1:
	.string	"assign first level"
.LC2:
	.string	"assign second level"
	.text
	.globl	init_address_table
	.type	init_address_table, @function
init_address_table:
.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, 64
	mov	DWORD PTR -8[rbp], 4
	mov	edi, 264
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	test	rax, rax
	jne	.L11
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	DWORD PTR -44[rbp], 256
	mov	DWORD PTR -56[rbp], 0
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	assign_node
	mov	DWORD PTR -56[rbp], 0
	jmp	.L12
.L18:
	cmp	DWORD PTR -56[rbp], 0
	jne	.L13
	lea	rdi, .LC2[rip]
	call	puts@PLT
.L13:
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 256[rax]
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	QWORD PTR -40[rbp], rax
	mov	ecx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	assign_node
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	jmp	.L14
.L17:
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 256[rax]
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	QWORD PTR -32[rbp], rax
	mov	ecx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	assign_node
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR 256[rax]
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 5
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	QWORD PTR -24[rbp], rax
	mov	ecx, DWORD PTR -44[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 1
	mov	esi, ecx
	mov	rdi, rax
	call	assign_node
	add	DWORD PTR -48[rbp], 1
.L15:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L16
	add	DWORD PTR -52[rbp], 1
.L14:
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L17
	add	DWORD PTR -56[rbp], 1
.L12:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L18
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	init_address_table, .-init_address_table
	.globl	main
	.type	main, @function
main:
.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	eax, 0
	call	init_address_table
	call	getchar@PLT
	mov	BYTE PTR -1[rbp], al
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"387980.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"malloc error\000"
	.text
	.align	2
	.global	assign_node
	.syntax unified
	.arm
	.fpu softvfp
	.type	assign_node, %function
assign_node:
	@ 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]
	mov	r3, #0
	strb	r3, [fp, #-5]
	mov	r3, #0
	strb	r3, [fp, #-5]
	b	.L2
.L5:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, [fp, #-16]
	ldrb	r1, [fp, #-5]
	strb	r1, [r2, r3]
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	cmp	r2, r3
	beq	.L9
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L2:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bgt	.L5
	b	.L4
.L9:
	nop
.L4:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L6
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #256]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #256]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L10
	bl	puts
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #256]
.L7:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.size	assign_node, .-assign_node
	.section	.rodata
	.align	2
.LC1:
	.ascii	"assign first level\000"
	.align	2
.LC2:
	.ascii	"assign second level\000"
	.text
	.align	2
	.global	init_address_table
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_address_table, %function
init_address_table:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	mov	r3, #4
	str	r3, [fp, #-8]
	mov	r0, #260
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L21
	bl	puts
	mov	r0, #1
	bl	exit
.L13:
	mov	r3, #256
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r0, .L21+4
	bl	puts
	ldr	r3, [fp, #-12]
	mov	r2, #0
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	assign_node
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L14
.L20:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L15
	ldr	r0, .L21+8
	bl	puts
.L15:
	ldr	r3, [fp, #-12]
	ldr	r1, [r3, #256]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r3, [fp, #-24]
	mov	r2, #0
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	assign_node
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L16
.L19:
	ldr	r3, [fp, #-24]
	ldr	r1, [r3, #256]
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r3, [fp, #-20]
	mov	r2, #0
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-20]
	bl	assign_node
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L17
.L18:
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #256]
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #6
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r3, [fp, #-16]
	mov	r2, #1
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-16]
	bl	assign_node
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L17:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L18
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L16:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L19
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L14:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L20
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	init_address_table, .-init_address_table
	.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
	bl	init_address_table
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-5]
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
