	.file	"938396.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"5012"
.LC1:
	.string	"1234"
.LC2:
	.string	"-874"
.LC3:
	.string	"+122"
	.section	.data.rel.local,"aw"
	.align 32
	.type	intpat, @object
	.size	intpat, 32
intpat:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.section	.rodata
.LC4:
	.string	"State buf: %s\n"
.LC5:
	.string	"State Input: %s\n"
	.text
	.globl	core_init_state
	.type	core_init_state, @function
core_init_state:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	eax, esi
	mov	QWORD PTR -48[rbp], rdx
	mov	WORD PTR -40[rbp], ax
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -8[rbp], rax
	sub	DWORD PTR -36[rbp], 1
	mov	DWORD PTR -24[rbp], 0
	jmp	.L2
.L6:
	cmp	DWORD PTR -24[rbp], 0
	je	.L3
	mov	DWORD PTR -20[rbp], 0
	jmp	.L4
.L5:
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -20[rbp]
	add	rcx, rdx
	mov	rdx, QWORD PTR -48[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -20[rbp], 1
.L4:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jb	.L5
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 44
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	add	eax, 1
	mov	DWORD PTR -28[rbp], eax
.L3:
	movzx	eax, WORD PTR -40[rbp]
	add	eax, 1
	mov	WORD PTR -40[rbp], ax
	mov	DWORD PTR -24[rbp], 8
	movsx	eax, WORD PTR -40[rbp]
	and	eax, 7
	cmp	eax, 2
	jg	.L2
	movzx	eax, WORD PTR -40[rbp]
	sar	ax, 3
	cwde
	and	eax, 3
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, intpat[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -24[rbp], 4
.L2:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	add	eax, 1
	cmp	DWORD PTR -36[rbp], eax
	ja	.L6
	add	DWORD PTR -36[rbp], 1
	jmp	.L7
.L8:
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -28[rbp], 1
.L7:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jb	.L8
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	core_init_state, .-core_init_state
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 1
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 666
	call	core_init_state
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"938396.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"5012\000"
	.align	2
.LC1:
	.ascii	"1234\000"
	.align	2
.LC2:
	.ascii	"-874\000"
	.align	2
.LC3:
	.ascii	"+122\000"
	.data
	.align	2
	.type	intpat, %object
	.size	intpat, 16
intpat:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.section	.rodata
	.align	2
.LC4:
	.ascii	"State buf: %s\012\000"
	.align	2
.LC5:
	.ascii	"State Input: %s\012\000"
	.text
	.align	2
	.global	core_init_state
	.syntax unified
	.arm
	.fpu softvfp
	.type	core_init_state, %function
core_init_state:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	mov	r3, r1
	str	r2, [fp, #-40]
	strh	r3, [fp, #-34]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L2
.L6:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L3
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L4
.L5:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r2, r2, r3
	ldr	r1, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r1, r3
	ldr	r1, [fp, #-40]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L4:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bcc	.L5
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	mov	r2, #44
	strb	r2, [r3]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L3:
	ldrsh	r3, [fp, #-34]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-34]	@ movhi
	mov	r3, #8
	str	r3, [fp, #-20]
	ldrh	r3, [fp, #-34]
	and	r3, r3, #7
	cmp	r3, #2
	bgt	.L2
	ldrsh	r3, [fp, #-34]
	asr	r3, r3, #3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #3
	ldr	r2, .L9
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-12]
	mov	r3, #4
	str	r3, [fp, #-20]
.L2:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	add	r3, r3, #1
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bhi	.L6
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L7
.L8:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L7:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bcc	.L8
	ldr	r1, [fp, #-12]
	ldr	r0, .L9+4
	bl	printf
	ldr	r1, [fp, #-8]
	ldr	r0, .L9+8
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	intpat
	.word	.LC4
	.word	.LC5
	.size	core_init_state, .-core_init_state
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	mov	r0, #1
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	mov	r1, #0
	ldr	r0, .L13
	bl	core_init_state
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	666
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
