	.file	"176707052.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"NODE %u { childIdx: %u, char: '%c', eow: '%u', eoc: '%u' }\n"
	.text
	.globl	dumpNode
	.type	dumpNode, @function
dumpNode:
.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	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	sal	eax, 6
	sar	al, 7
	movsx	eax, al
	and	eax, 1
	mov	edi, eax
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	sal	eax, 7
	sar	al, 7
	movsx	eax, al
	and	eax, 1
	mov	esi, eax
	mov	rax, QWORD PTR -16[rbp]
	movzx	edx, BYTE PTR [rax]
	shr	dl, 2
	movzx	edx, dl
	movzx	eax, BYTE PTR 1[rax]
	and	eax, 3
	sal	rax, 6
	or	rax, rdx
	sal	rax, 56
	sar	rax, 56
	movsx	edx, al
	mov	rax, QWORD PTR -16[rbp]
	movzx	ecx, BYTE PTR 1[rax]
	shr	cl, 2
	movzx	r8d, cl
	movzx	ecx, BYTE PTR 2[rax]
	sal	rcx, 6
	or	rcx, r8
	movzx	eax, BYTE PTR 3[rax]
	sal	rax, 14
	or	rax, rcx
	sal	rax, 42
	sar	rax, 42
	mov	r10d, eax
	mov	eax, DWORD PTR -4[rbp]
	mov	r9d, edi
	mov	r8d, esi
	mov	ecx, edx
	mov	edx, r10d
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	dumpNode, .-dumpNode
	.globl	buildNode
	.type	buildNode, @function
buildNode:
.LFB7:
	.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	buildNode, .-buildNode
	.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
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -44[rbp], 1
	mov	edi, 100000000
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 100000000
	mov	rsi, rax
	mov	edi, 0
	mov	eax, 0
	call	read@PLT
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	mov	DWORD PTR -36[rbp], eax
	mov	DWORD PTR -48[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -48[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -48[rbp]
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -32[rbp]
	lea	rbx, [rcx+rdx]
	mov	edi, eax
	mov	eax, 0
	call	ntohl@PLT
	mov	DWORD PTR [rbx], eax
	add	DWORD PTR -48[rbp], 1
.L4:
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -48[rbp], eax
	jb	.L5
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -16[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 2
	mov	rsi, rdx
	mov	edi, eax
	call	dumpNode
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	sal	rax, 2
	lea	rdx, -16[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR 1[rax]
	shr	dl, 2
	movzx	ecx, dl
	movzx	edx, BYTE PTR 2[rax]
	sal	rdx, 6
	or	rdx, rcx
	movzx	eax, BYTE PTR 3[rax]
	sal	rax, 14
	or	rax, rdx
	sal	rax, 42
	sar	rax, 42
	sub	eax, 1
	mov	DWORD PTR -44[rbp], eax
.L6:
	add	DWORD PTR -44[rbp], 1
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -44[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	dumpNode
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	and	eax, 2
	test	al, al
	je	.L6
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	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	"176707052.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"NODE %u { childIdx: %u, char: '%c', eow: '%u', eoc:"
	.ascii	" '%u' }\012\000"
	.text
	.align	2
	.global	dumpNode
	.syntax unified
	.arm
	.fpu softvfp
	.type	dumpNode, %function
dumpNode:
	@ args = 0, pretend = 0, frame = 8
	@ 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]
	ldr	r3, [fp, #-12]
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	lsr	r2, r2, #2
	and	r2, r2, #255
	ldrb	r1, [r3, #2]	@ zero_extendqisi2
	lsl	r1, r1, #6
	orr	r2, r1, r2
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	lsl	r3, r3, #14
	orr	r3, r3, r2
	lsl	r3, r3, #10
	asr	r3, r3, #10
	mov	r1, r3
	ldr	r3, [fp, #-12]
	ldrb	r2, [r3]	@ zero_extendqisi2
	lsr	r2, r2, #2
	and	r2, r2, #255
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	and	r3, r3, #3
	lsl	r3, r3, #6
	orr	r3, r3, r2
	and	r3, r3, #255
	mov	r0, r3
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]
	lsl	r3, r3, #7
	lsl	r3, r3, #24
	asr	r3, r3, #24
	asr	r3, r3, #7
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #1
	ldr	r2, [fp, #-12]
	ldrb	r2, [r2]
	lsl	r2, r2, #6
	lsl	r2, r2, #24
	asr	r2, r2, #24
	asr	r2, r2, #7
	lsl	r2, r2, #24
	asr	r2, r2, #24
	and	r2, r2, #1
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	mov	r2, r1
	ldr	r1, [fp, #-8]
	ldr	r0, .L2
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	dumpNode, .-dumpNode
	.align	2
	.global	buildNode
	.syntax unified
	.arm
	.fpu softvfp
	.type	buildNode, %function
buildNode:
	@ 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]
	str	r1, [fp, #-12]
	nop
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	buildNode, .-buildNode
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #1
	str	r3, [fp, #-32]
	ldr	r0, .L10
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r2, .L10
	ldr	r1, [fp, #-28]
	mov	r0, #0
	bl	read
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L6
.L7:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r4, r2, r3
	mov	r0, r1
	bl	ntohl
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L6:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bcc	.L7
	ldr	r3, [fp, #-28]
	add	r3, r3, #8
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r0, r3, #2
	ldr	r3, [fp, #-20]
	sub	r3, r3, #-1073741820
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r1, r3
	bl	dumpNode
	ldr	r3, [fp, #-20]
	sub	r3, r3, #-1073741820
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	lsr	r2, r2, #2
	and	r2, r2, #255
	ldrb	r1, [r3, #2]	@ zero_extendqisi2
	lsl	r1, r1, #6
	orr	r2, r1, r2
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	lsl	r3, r3, #14
	orr	r3, r3, r2
	lsl	r3, r3, #10
	asr	r3, r3, #10
	sub	r3, r3, #1
	str	r3, [fp, #-32]
.L8:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	dumpNode
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #2
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L8
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L11:
	.align	2
.L10:
	.word	100000000
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
