	.file	"281087.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%dA%dB"
	.text
	.globl	getHint
	.type	getHint, @function
getHint:
.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, 144
	mov	QWORD PTR -136[rbp], rdi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -116[rbp], 0
	mov	DWORD PTR -112[rbp], 0
	mov	edi, 5
	call	malloc@PLT
	mov	QWORD PTR -104[rbp], rax
	jmp	.L2
.L5:
	mov	rax, QWORD PTR -136[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -144[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	jne	.L3
	add	DWORD PTR -116[rbp], 1
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	movsx	rdx, eax
	mov	edx, DWORD PTR -96[rbp+rdx*4]
	add	edx, 1
	cdqe
	mov	DWORD PTR -96[rbp+rax*4], edx
	mov	rax, QWORD PTR -144[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	movsx	rdx, eax
	mov	edx, DWORD PTR -48[rbp+rdx*4]
	add	edx, 1
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], edx
.L4:
	add	QWORD PTR -136[rbp], 1
	add	QWORD PTR -144[rbp], 1
.L2:
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L5
	mov	DWORD PTR -108[rbp], 0
	jmp	.L6
.L8:
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	test	eax, eax
	je	.L7
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	test	eax, eax
	je	.L7
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	mov	edx, DWORD PTR -48[rbp+rax*4]
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	mov	eax, DWORD PTR -96[rbp+rax*4]
	cmp	edx, eax
	cmovle	eax, edx
	add	DWORD PTR -112[rbp], eax
.L7:
	add	DWORD PTR -108[rbp], 1
.L6:
	cmp	DWORD PTR -108[rbp], 9
	jle	.L8
	mov	ecx, DWORD PTR -112[rbp]
	mov	edx, DWORD PTR -116[rbp]
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getHint, .-getHint
	.section	.rodata
.LC1:
	.string	"1807"
.LC2:
	.string	"7810"
.LC3:
	.string	"1123"
.LC4:
	.string	"0111"
.LC5:
	.string	"case 1: %s\n"
.LC6:
	.string	"case 2: %s\n"
	.text
	.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
	lea	rax, .LC1[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -24[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -16[rbp], rax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	getHint
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	getHint
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	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	"281087.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%dA%dB\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getHint
	.syntax unified
	.arm
	.fpu softvfp
	.type	getHint, %function
getHint:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #88
	mov	r2, #40
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #48
	mov	r2, #40
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-100]
	mov	r0, #5
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-92]
	b	.L2
.L5:
	ldr	r3, [fp, #-112]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-116]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L3
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
	b	.L4
.L3:
	ldr	r3, [fp, #-112]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, r3, #48
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-84]
	add	r1, r3, #1
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-84]
	ldr	r3, [fp, #-116]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, r3, #48
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-44]
	add	r1, r3, #1
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-44]
.L4:
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L2:
	ldr	r3, [fp, #-112]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L5
	mov	r3, #0
	str	r3, [fp, #-96]
	b	.L6
.L8:
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-84]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-44]
	ldr	r3, [fp, #-96]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-84]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	ldr	r2, [fp, #-100]
	add	r3, r2, r3
	str	r3, [fp, #-100]
.L7:
	ldr	r3, [fp, #-96]
	add	r3, r3, #1
	str	r3, [fp, #-96]
.L6:
	ldr	r3, [fp, #-96]
	cmp	r3, #9
	ble	.L8
	ldr	r3, [fp, #-100]
	ldr	r2, [fp, #-104]
	ldr	r1, .L11+4
	ldr	r0, [fp, #-92]
	bl	sprintf
	ldr	r3, [fp, #-92]
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	.LC0
	.size	getHint, .-getHint
	.section	.rodata
	.align	2
.LC2:
	.ascii	"1807\000"
	.align	2
.LC3:
	.ascii	"7810\000"
	.align	2
.LC4:
	.ascii	"1123\000"
	.align	2
.LC5:
	.ascii	"0111\000"
	.align	2
.LC6:
	.ascii	"case 1: %s\012\000"
	.align	2
.LC7:
	.ascii	"case 2: %s\012\000"
	.text
	.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
	ldr	r3, .L15
	str	r3, [fp, #-20]
	ldr	r3, .L15+4
	str	r3, [fp, #-16]
	ldr	r3, .L15+8
	str	r3, [fp, #-12]
	ldr	r3, .L15+12
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	getHint
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L15+16
	bl	printf
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	getHint
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L15+20
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
