	.file	"12689.c"
	.intel_syntax noprefix
	.text
	.globl	getquad
	.type	getquad, @function
getquad:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	eax, ecx
	mov	edx, r8d
	mov	WORD PTR -44[rbp], ax
	mov	eax, edx
	mov	WORD PTR -48[rbp], ax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], 47
	jle	.L2
	cmp	BYTE PTR -1[rbp], 57
	jg	.L2
	mov	eax, 2
	jmp	.L3
.L2:
	movsx	eax, BYTE PTR -1[rbp]
	cmp	eax, 100
	je	.L4
	cmp	eax, 100
	jg	.L5
	cmp	eax, 99
	je	.L6
	cmp	eax, 99
	jg	.L5
	cmp	eax, 98
	je	.L7
	cmp	eax, 98
	jg	.L5
	test	eax, eax
	je	.L11
	cmp	eax, 97
	jne	.L5
	movzx	eax, WORD PTR -48[rbp]
	shr	ax
	movzx	edi, ax
	movzx	eax, WORD PTR -44[rbp]
	shr	ax
	movzx	ecx, ax
	add	QWORD PTR -24[rbp], 1
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, edi
	mov	rdi, rax
	mov	eax, 0
	call	getquad
	jmp	.L10
.L7:
	mov	rax, QWORD PTR -32[rbp]
	movzx	edx, WORD PTR [rax]
	movzx	eax, WORD PTR -44[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	WORD PTR [rax], dx
	movzx	eax, WORD PTR -48[rbp]
	shr	ax
	movzx	edi, ax
	movzx	eax, WORD PTR -44[rbp]
	shr	ax
	movzx	ecx, ax
	add	QWORD PTR -24[rbp], 1
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, edi
	mov	rdi, rax
	mov	eax, 0
	call	getquad
	jmp	.L10
.L6:
	mov	rax, QWORD PTR -40[rbp]
	movzx	edx, WORD PTR [rax]
	movzx	eax, WORD PTR -48[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	WORD PTR [rax], dx
	movzx	eax, WORD PTR -48[rbp]
	shr	ax
	movzx	edi, ax
	movzx	eax, WORD PTR -44[rbp]
	shr	ax
	movzx	ecx, ax
	add	QWORD PTR -24[rbp], 1
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, edi
	mov	rdi, rax
	mov	eax, 0
	call	getquad
	jmp	.L10
.L4:
	mov	rax, QWORD PTR -32[rbp]
	movzx	edx, WORD PTR [rax]
	movzx	eax, WORD PTR -44[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	WORD PTR [rax], dx
	mov	rax, QWORD PTR -40[rbp]
	movzx	edx, WORD PTR [rax]
	movzx	eax, WORD PTR -48[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	WORD PTR [rax], dx
	movzx	eax, WORD PTR -48[rbp]
	shr	ax
	movzx	edi, ax
	movzx	eax, WORD PTR -44[rbp]
	shr	ax
	movzx	ecx, ax
	add	QWORD PTR -24[rbp], 1
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, edi
	mov	rdi, rax
	mov	eax, 0
	call	getquad
	jmp	.L10
.L5:
	mov	eax, 0
	jmp	.L3
.L11:
	nop
.L10:
	mov	eax, 1
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getquad, .-getquad
	.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	"12689.c"
	.text
	.align	2
	.global	getquad
	.syntax unified
	.arm
	.fpu softvfp
	.type	getquad, %function
getquad:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r2, r3
	ldr	r3, [fp, #4]
	strh	r2, [fp, #-28]	@ movhi
	strh	r3, [fp, #-32]	@ movhi
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L2
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L2
	mov	r3, #2
	b	.L3
.L2:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L12
	cmp	r3, #0
	blt	.L5
	cmp	r3, #100
	bgt	.L5
	cmp	r3, #97
	blt	.L5
	sub	r3, r3, #97
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L7:
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L6
.L10:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldrh	r3, [fp, #-28]
	lsr	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	ldrh	r3, [fp, #-32]
	lsr	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	getquad
	b	.L11
.L9:
	ldr	r3, [fp, #-20]
	ldrh	r2, [r3]
	ldrh	r3, [fp, #-28]	@ movhi
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-20]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldrh	r3, [fp, #-28]
	lsr	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	ldrh	r3, [fp, #-32]
	lsr	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	getquad
	b	.L11
.L8:
	ldr	r3, [fp, #-24]
	ldrh	r2, [r3]
	ldrh	r3, [fp, #-32]	@ movhi
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-24]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldrh	r3, [fp, #-28]
	lsr	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	ldrh	r3, [fp, #-32]
	lsr	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	getquad
	b	.L11
.L6:
	ldr	r3, [fp, #-20]
	ldrh	r2, [r3]
	ldrh	r3, [fp, #-28]	@ movhi
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-20]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-24]
	ldrh	r2, [r3]
	ldrh	r3, [fp, #-32]	@ movhi
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-24]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldrh	r3, [fp, #-28]
	lsr	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r2, r3
	ldrh	r3, [fp, #-32]
	lsr	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	getquad
	b	.L11
.L5:
	mov	r3, #0
	b	.L3
.L12:
	nop
.L11:
	mov	r3, #1
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	getquad, .-getquad
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
