	.file	"48576199.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%c\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -41[rbp], 1634429296
	mov	WORD PTR -33[rbp], 0
	mov	BYTE PTR -31[rbp], 65
	mov	QWORD PTR -30[rbp], 1634760043
	mov	WORD PTR -22[rbp], 0
	mov	BYTE PTR -20[rbp], 65
	mov	rax, QWORD PTR -30[rbp]
	movzx	esi, WORD PTR -22[rbp]
	movzx	ecx, BYTE PTR -20[rbp]
	sal	rcx, 16
	or	rcx, rsi
	mov	rdx, rcx
	mov	rsi, QWORD PTR -41[rbp]
	movzx	edi, BYTE PTR -33[rbp]
	movzx	ecx, BYTE PTR -32[rbp]
	sal	rcx, 8
	or	rdi, rcx
	movzx	ecx, BYTE PTR -31[rbp]
	sal	rcx, 16
	or	rcx, rdi
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, rax
	mov	rdi, rsi
	mov	rsi, r8
	call	fight
	mov	QWORD PTR -19[rbp], rax
	movzx	esi, dl
	movzx	ecx, BYTE PTR -11[rbp]
	and	ecx, 0
	or	ecx, esi
	mov	BYTE PTR -11[rbp], cl
	mov	rcx, rdx
	shr	rcx, 8
	movzx	esi, cl
	movzx	ecx, BYTE PTR -10[rbp]
	and	ecx, 0
	or	ecx, esi
	mov	BYTE PTR -10[rbp], cl
	mov	rax, rdx
	shr	rax, 16
	movzx	edx, al
	movzx	eax, BYTE PTR -9[rbp]
	and	eax, 0
	or	eax, edx
	mov	BYTE PTR -9[rbp], al
	movzx	eax, BYTE PTR -9[rbp]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -19[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	type_to_int
	.type	type_to_int, @function
type_to_int:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 117
	je	.L5
	cmp	eax, 117
	jg	.L6
	cmp	eax, 112
	je	.L7
	cmp	eax, 112
	jg	.L6
	cmp	eax, 97
	je	.L8
	cmp	eax, 105
	je	.L9
	jmp	.L6
.L7:
	mov	eax, 1
	jmp	.L10
.L8:
	mov	eax, 2
	jmp	.L10
.L5:
	mov	eax, 3
	jmp	.L10
.L9:
	mov	eax, 4
	jmp	.L10
.L6:
	mov	eax, 0
.L10:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	type_to_int, .-type_to_int
	.globl	fight
	.type	fight, @function
fight:
.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, 112
	mov	rax, rdx
	mov	rdx, rcx
	mov	QWORD PTR -80[rbp], rdi
	movzx	edi, sil
	movzx	ecx, BYTE PTR -72[rbp]
	and	ecx, 0
	or	ecx, edi
	mov	BYTE PTR -72[rbp], cl
	mov	rcx, rsi
	shr	rcx, 8
	movzx	edi, cl
	movzx	ecx, BYTE PTR -71[rbp]
	and	ecx, 0
	or	ecx, edi
	mov	BYTE PTR -71[rbp], cl
	shr	rsi, 16
	mov	rcx, rsi
	movzx	esi, cl
	movzx	ecx, BYTE PTR -70[rbp]
	and	ecx, 0
	or	ecx, esi
	mov	BYTE PTR -70[rbp], cl
	mov	QWORD PTR -96[rbp], rax
	movzx	esi, dl
	movzx	ecx, BYTE PTR -88[rbp]
	and	ecx, 0
	or	ecx, esi
	mov	BYTE PTR -88[rbp], cl
	mov	rcx, rdx
	shr	rcx, 8
	movzx	esi, cl
	movzx	ecx, BYTE PTR -87[rbp]
	and	ecx, 0
	or	ecx, esi
	mov	BYTE PTR -87[rbp], cl
	mov	rax, rdx
	shr	rax, 16
	movzx	edx, al
	movzx	eax, BYTE PTR -86[rbp]
	and	eax, 0
	or	eax, edx
	mov	BYTE PTR -86[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 4123106164818064178
	mov	QWORD PTR -21[rbp], rax
	mov	DWORD PTR -13[rbp], 1263618644
	mov	BYTE PTR -9[rbp], 65
	mov	DWORD PTR -44[rbp], 0
	jmp	.L12
.L15:
	movzx	edx, BYTE PTR -70[rbp]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	movzx	eax, BYTE PTR -21[rbp+rax]
	cmp	dl, al
	jne	.L13
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -52[rbp], eax
.L13:
	movzx	edx, BYTE PTR -86[rbp]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	movzx	eax, BYTE PTR -21[rbp+rax]
	cmp	dl, al
	jne	.L14
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -48[rbp], eax
.L14:
	add	DWORD PTR -44[rbp], 1
.L12:
	cmp	DWORD PTR -44[rbp], 13
	jle	.L15
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	type_to_int
	mov	DWORD PTR -40[rbp], eax
	lea	rax, -96[rbp]
	mov	rdi, rax
	call	type_to_int
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jle	.L16
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -32[rbp], rax
	movzx	eax, WORD PTR -72[rbp]
	mov	WORD PTR -24[rbp], ax
	movzx	eax, BYTE PTR -70[rbp]
	mov	BYTE PTR -22[rbp], al
	jmp	.L21
.L16:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jle	.L18
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -32[rbp], rax
	movzx	eax, WORD PTR -88[rbp]
	mov	WORD PTR -24[rbp], ax
	movzx	eax, BYTE PTR -86[rbp]
	mov	BYTE PTR -22[rbp], al
	jmp	.L21
.L18:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L19
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -32[rbp], rax
	movzx	eax, WORD PTR -72[rbp]
	mov	WORD PTR -24[rbp], ax
	movzx	eax, BYTE PTR -70[rbp]
	mov	BYTE PTR -22[rbp], al
	jmp	.L21
.L19:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jge	.L20
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -32[rbp], rax
	movzx	eax, WORD PTR -88[rbp]
	mov	WORD PTR -24[rbp], ax
	movzx	eax, BYTE PTR -86[rbp]
	mov	BYTE PTR -22[rbp], al
	jmp	.L21
.L20:
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -32[rbp], rax
	movzx	eax, WORD PTR -72[rbp]
	mov	WORD PTR -24[rbp], ax
	movzx	eax, BYTE PTR -70[rbp]
	mov	BYTE PTR -22[rbp], al
.L21:
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -24[rbp]
	and	ecx, 16777215
	mov	rdx, rcx
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	fight, .-fight
	.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	"48576199.c"
	.text
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%c\012\000"
	.align	2
.LC0:
	.ascii	"pika\000"
	.space	5
	.byte	65
	.align	2
.LC1:
	.ascii	"kupa\000"
	.space	5
	.byte	65
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L4+4
	sub	r3, fp, #44
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	ldr	r2, .L4+8
	sub	r3, fp, #32
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	sub	ip, fp, #20
	mov	r3, sp
	sub	r2, fp, #32
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	sub	r3, fp, #44
	ldm	r3, {r1, r2, r3}
	mov	r0, ip
	bl	fight
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L4+12
	bl	printf
	sub	r3, fp, #20
	mov	r0, r3
	bl	puts
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.align	2
	.global	type_to_int
	.syntax unified
	.arm
	.fpu softvfp
	.type	type_to_int, %function
type_to_int:
	@ 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]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #97
	cmp	r3, #20
	ldrls	pc, [pc, r3, asl #2]
	b	.L7
.L9:
	.word	.L12
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L11
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L10
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L8
.L10:
	mov	r3, #1
	b	.L13
.L12:
	mov	r3, #2
	b	.L13
.L8:
	mov	r3, #3
	b	.L13
.L11:
	mov	r3, #4
	b	.L13
.L7:
	mov	r3, #0
.L13:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	type_to_int, .-type_to_int
	.section	.rodata
	.align	2
.LC4:
	.ascii	"23456789TJQKA"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fight
	.syntax unified
	.arm
	.fpu softvfp
	.type	fight, %function
fight:
	@ args = 12, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	sub	r0, fp, #60
	stm	r0, {r1, r2, r3}
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L26+4
	sub	ip, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strb	r3, [ip]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L15
.L18:
	ldrb	r2, [fp, #-50]	@ zero_extendqisi2
	sub	r1, fp, #24
	ldr	r3, [fp, #-36]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L16
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-44]
.L16:
	ldrb	r2, [fp, #14]	@ zero_extendqisi2
	sub	r1, fp, #24
	ldr	r3, [fp, #-36]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L17
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-40]
.L17:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L15:
	ldr	r3, [fp, #-36]
	cmp	r3, #13
	ble	.L18
	sub	r3, fp, #60
	mov	r0, r3
	bl	type_to_int
	str	r0, [fp, #-32]
	add	r3, fp, #4
	mov	r0, r3
	bl	type_to_int
	str	r0, [fp, #-28]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	ble	.L19
	ldr	r3, [fp, #-48]
	mov	r0, r3
	sub	r3, fp, #60
	mov	r2, #11
	mov	r1, r3
	bl	memcpy
	b	.L14
.L19:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	ble	.L21
	ldr	r3, [fp, #-48]
	mov	r0, r3
	add	r3, fp, #4
	mov	r2, #11
	mov	r1, r3
	bl	memcpy
	b	.L14
.L21:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	ble	.L22
	ldr	r3, [fp, #-48]
	mov	r0, r3
	sub	r3, fp, #60
	mov	r2, #11
	mov	r1, r3
	bl	memcpy
	b	.L14
.L22:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bge	.L23
	ldr	r3, [fp, #-48]
	mov	r0, r3
	add	r3, fp, #4
	mov	r2, #11
	mov	r1, r3
	bl	memcpy
	b	.L14
.L23:
	ldr	r3, [fp, #-48]
	mov	r0, r3
	sub	r3, fp, #60
	mov	r2, #11
	mov	r1, r3
	bl	memcpy
.L14:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	ldr	r0, [fp, #-48]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC5
	.word	.LC4
	.size	fight, .-fight
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
