	.file	"153617.c"
	.intel_syntax noprefix
	.text
	.globl	piece_repr
	.data
	.type	piece_repr, @object
	.size	piece_repr, 7
piece_repr:
	.ascii	" prkbQK"
	.section	.rodata
.LC0:
	.string	"43m"
.LC1:
	.string	"40m"
.LC2:
	.string	"1;37m"
.LC3:
	.string	"1;30m"
.LC4:
	.string	"\033[%s\033[%s %c \033[m"
	.text
	.globl	put_piece
	.type	put_piece, @function
put_piece:
.LFB0:
	.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	edx, edi
	mov	eax, esi
	mov	BYTE PTR -4[rbp], dl
	mov	BYTE PTR -8[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	and	eax, 127
	cdqe
	lea	rdx, piece_repr[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	ecx, al
	cmp	BYTE PTR -8[rbp], 0
	je	.L2
	lea	rdx, .LC0[rip]
	jmp	.L3
.L2:
	lea	rdx, .LC1[rip]
.L3:
	movzx	eax, BYTE PTR -4[rbp]
	test	al, al
	jns	.L4
	lea	rax, .LC2[rip]
	jmp	.L5
.L4:
	lea	rax, .LC3[rip]
.L5:
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	put_piece, .-put_piece
	.section	.rodata
.LC5:
	.string	"%d  "
.LC6:
	.string	"\n   "
.LC7:
	.string	" %c "
.LC8:
	.string	"\n"
	.text
	.globl	put_board
	.type	put_board, @function
put_board:
.LFB1:
	.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	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L7
.L10:
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	neg	eax
	add	eax, 8
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	and	eax, 7
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	mov	eax, DWORD PTR -8[rbp]
	and	eax, 1
	test	eax, eax
	sete	cl
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	and	eax, 1
	test	eax, eax
	sete	al
	xor	eax, ecx
	movzx	edx, al
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, edx
	mov	edi, eax
	call	put_piece
	mov	eax, DWORD PTR -8[rbp]
	cdq
	shr	edx, 29
	add	eax, edx
	and	eax, 7
	sub	eax, edx
	cmp	eax, 7
	jne	.L9
	cmp	DWORD PTR -8[rbp], 0
	je	.L9
	mov	edi, 10
	call	putchar@PLT
.L9:
	add	DWORD PTR -8[rbp], 1
.L7:
	cmp	DWORD PTR -8[rbp], 63
	jle	.L10
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	BYTE PTR -9[rbp], 97
	jmp	.L11
.L12:
	movsx	eax, BYTE PTR -9[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -9[rbp]
	add	eax, 1
	mov	BYTE PTR -9[rbp], al
.L11:
	cmp	BYTE PTR -9[rbp], 104
	jle	.L12
	lea	rdi, .LC8[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	put_board, .-put_board
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 144964036906451714
	movabs	rdx, 72340172838076673
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	movabs	rax, -9114861777597660799
	movabs	rdx, -9042237913529285758
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	put_board
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"153617.c"
	.text
	.global	piece_repr
	.data
	.align	2
	.type	piece_repr, %object
	.size	piece_repr, 7
piece_repr:
	.ascii	" prkbQK"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"1;37m\000"
	.align	2
.LC1:
	.ascii	"1;30m\000"
	.align	2
.LC2:
	.ascii	"43m\000"
	.align	2
.LC3:
	.ascii	"40m\000"
	.align	2
.LC4:
	.ascii	"\033[%s\033[%s %c \033[m\000"
	.text
	.align	2
	.global	put_piece
	.syntax unified
	.arm
	.fpu softvfp
	.type	put_piece, %function
put_piece:
	@ 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	r3, r0
	mov	r2, r1
	strb	r3, [fp, #-5]
	mov	r3, r2
	strb	r3, [fp, #-6]
	ldrsb	r3, [fp, #-5]
	cmp	r3, #0
	bge	.L2
	ldr	r1, .L6
	b	.L3
.L2:
	ldr	r1, .L6+4
.L3:
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L4
	ldr	r2, .L6+8
	b	.L5
.L4:
	ldr	r2, .L6+12
.L5:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	and	r3, r3, #127
	ldr	r0, .L6+16
	ldrb	r3, [r0, r3]	@ zero_extendqisi2
	ldr	r0, .L6+20
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	piece_repr
	.word	.LC4
	.size	put_piece, .-put_piece
	.section	.rodata
	.align	2
.LC5:
	.ascii	"%d  \000"
	.align	2
.LC6:
	.ascii	"\012   \000"
	.align	2
.LC7:
	.ascii	" %c \000"
	.align	2
.LC8:
	.ascii	"\012\000"
	.text
	.align	2
	.global	put_board
	.syntax unified
	.arm
	.fpu softvfp
	.type	put_board, %function
put_board:
	@ 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, #-24]
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L9
.L12:
	ldr	r3, [fp, #-12]
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	rsb	r3, r3, #0
	add	r3, r3, #8
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	and	r3, r3, #7
	cmp	r3, #0
	bne	.L10
	ldr	r1, [fp, #-8]
	ldr	r0, .L15
	bl	printf
.L10:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r0, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	and	r3, r3, #1
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r2, r3, #255
	ldr	r3, [fp, #-12]
	add	r1, r3, #7
	cmp	r3, #0
	movlt	r3, r1
	movge	r3, r3
	asr	r3, r3, #3
	and	r3, r3, #1
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	eor	r3, r3, r2
	and	r3, r3, #255
	mov	r1, r3
	bl	put_piece
	ldr	r3, [fp, #-12]
	rsbs	r2, r3, #0
	and	r3, r3, #7
	and	r2, r2, #7
	rsbpl	r3, r2, #0
	cmp	r3, #7
	bne	.L11
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L11
	mov	r0, #10
	bl	putchar
.L11:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L9:
	ldr	r3, [fp, #-12]
	cmp	r3, #63
	ble	.L12
	ldr	r0, .L15+4
	bl	printf
	mov	r3, #97
	strb	r3, [fp, #-13]
	b	.L13
.L14:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L15+8
	bl	printf
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-13]
.L13:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #104
	bls	.L14
	ldr	r0, .L15+12
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	put_board, .-put_board
	.section	.rodata
	.align	2
.LC9:
	.ascii	"\002\003\004\005\006\004\003\002\001\001\001\001\001"
	.ascii	"\001\001\001\000\000\000\000\000\000\000\000\000\000"
	.ascii	"\000\000\000\000\000\000\000\000\000\000\000\000\000"
	.ascii	"\000\000\000\000\000\000\000\000\000\201\201\201\201"
	.ascii	"\201\201\201\201\202\203\204\205\206\204\203\202"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L20+4
	sub	ip, fp, #72
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #72
	mov	r0, r3
	bl	put_board
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC10
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
