	.file	"extr_cpddk.c_cp_g703_timer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cp_g703_timer
	.type	cp_g703_timer, @function
cp_g703_timer:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR [rdi]
	add	eax, 1
	cmp	QWORD PTR 16[rdi], 0
	mov	DWORD PTR [rdi], eax
	jne	.L22
	cmp	eax, 1
	jg	.L22
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	DWORD PTR 4[rbx], 0
	mov	esi, DWORD PTR 176[rbx]
	mov	edi, DWORD PTR 180[rbx]
	call	u@PLT
	mov	esi, DWORD PTR 176[rbx]
	mov	edi, DWORD PTR 180[rbx]
	movzx	edx, al
	mov	ebp, edx
	call	l@PLT
	mov	rdi, rbx
	call	cp_get_cd@PLT
	mov	esi, ebp
	and	esi, 1
	je	.L4
	add	QWORD PTR 112[rbx], 1
.L4:
	mov	edx, DWORD PTR 4[rbx]
	test	eax, eax
	jne	.L5
	or	edx, 64
	mov	DWORD PTR 4[rbx], edx
.L5:
	mov	ecx, ebp
	and	ecx, 16
	and	ebp, 2
	je	.L6
	or	dh, 16
	mov	DWORD PTR 4[rbx], edx
	test	cl, cl
	je	.L8
.L7:
	or	dh, 8
	mov	DWORD PTR 4[rbx], edx
.L10:
	add	QWORD PTR 80[rbx], 1
.L14:
.L15:
	mov	eax, DWORD PTR [rbx]
	lea	edx, 59[rax]
	cmp	edx, 118
	ja	.L16
	mov	eax, DWORD PTR 12[rbx]
	add	eax, eax
	cmp	eax, DWORD PTR 8[rbx]
	jle	.L17
	add	QWORD PTR 24[rbx], 1
.L17:
	mov	QWORD PTR 8[rbx], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	cmp	eax, 900
	jle	.L1
	mov	rcx, QWORD PTR 168[rbx]
	lea	rax, 4416[rcx]
	.p2align 4,,10
	.p2align 3
.L21:
	movdqu	xmm0, XMMWORD PTR [rax]
	movdqu	xmm1, XMMWORD PTR 16[rax]
	mov	rdx, rax
	sub	rax, 96
	movdqu	xmm2, XMMWORD PTR 128[rax]
	movdqu	xmm3, XMMWORD PTR 144[rax]
	movdqu	xmm4, XMMWORD PTR 160[rax]
	movdqu	xmm5, XMMWORD PTR 176[rax]
	movups	XMMWORD PTR 192[rax], xmm0
	movups	XMMWORD PTR 208[rax], xmm1
	movups	XMMWORD PTR 224[rax], xmm2
	movups	XMMWORD PTR 240[rax], xmm3
	movups	XMMWORD PTR 256[rax], xmm4
	movups	XMMWORD PTR 272[rax], xmm5
	cmp	rdx, rcx
	jne	.L21
	movdqu	xmm6, XMMWORD PTR 24[rbx]
	lea	rdi, 24[rbx]
	mov	edx, 96
	xor	esi, esi
	movups	XMMWORD PTR [rcx], xmm6
	movdqu	xmm7, XMMWORD PTR 40[rbx]
	movups	XMMWORD PTR 16[rcx], xmm7
	movdqu	xmm6, XMMWORD PTR 56[rbx]
	movups	XMMWORD PTR 32[rcx], xmm6
	movdqu	xmm7, XMMWORD PTR 72[rbx]
	movups	XMMWORD PTR 48[rcx], xmm7
	movdqu	xmm6, XMMWORD PTR 88[rbx]
	movups	XMMWORD PTR 64[rcx], xmm6
	movdqu	xmm7, XMMWORD PTR 104[rbx]
	movups	XMMWORD PTR 80[rcx], xmm7
	mov	rax, QWORD PTR 112[rbx]
	add	DWORD PTR 164[rbx], eax
	mov	rax, QWORD PTR 104[rbx]
	add	DWORD PTR 160[rbx], eax
	mov	rax, QWORD PTR 96[rbx]
	add	DWORD PTR 156[rbx], eax
	mov	rax, QWORD PTR 88[rbx]
	add	DWORD PTR 152[rbx], eax
	mov	rax, QWORD PTR 80[rbx]
	add	DWORD PTR 148[rbx], eax
	mov	rax, QWORD PTR 72[rbx]
	add	DWORD PTR 144[rbx], eax
	mov	rax, QWORD PTR 64[rbx]
	add	DWORD PTR 140[rbx], eax
	mov	rax, QWORD PTR 56[rbx]
	add	DWORD PTR 136[rbx], eax
	mov	rax, QWORD PTR 48[rbx]
	add	DWORD PTR 132[rbx], eax
	mov	rax, QWORD PTR 40[rbx]
	add	DWORD PTR 128[rbx], eax
	mov	rax, QWORD PTR 32[rbx]
	add	DWORD PTR 124[rbx], eax
	mov	rax, QWORD PTR 24[rbx]
	add	DWORD PTR 120[rbx], eax
	call	memset@PLT
	movsx	rax, DWORD PTR [rbx]
	mov	DWORD PTR [rbx], 0
	add	QWORD PTR 16[rbx], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	test	cl, cl
	jne	.L7
.L9:
	endbr64
	test	edx, edx
	jne	.L8
	mov	DWORD PTR 4[rbx], 1
.L8:
	test	eax, eax
	je	.L10
	mov	eax, DWORD PTR 8[rbx]
	add	eax, 1
	test	sil, sil
	je	.L39
	add	QWORD PTR 72[rbx], 1
	add	DWORD PTR 12[rbx], 1
	mov	DWORD PTR 8[rbx], eax
	jmp	.L15
.L18:
.L39:
	mov	DWORD PTR 8[rbx], eax
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	cp_g703_timer, .-cp_g703_timer
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cpddk.c_cp_g703_timer.c"
	.text
	.align	2
	.global	cp_g703_timer
	.syntax unified
	.arm
	.fpu softvfp
	.type	cp_g703_timer, %function
cp_g703_timer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	ldr	r2, [r0, #16]
	add	r3, r3, #1
	cmp	r3, #1
	cmple	r2, #0
	str	r3, [r0]
	bxeq	lr
.L3:
.L4:
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r0, #120]
	mov	r5, r0
	str	r3, [r0, #4]
	ldr	r0, [r0, #124]
	bl	u
	mov	r4, r0
	mov	r2, r0
	ldr	r1, [r5, #120]
	ldr	r0, [r5, #124]
	bl	l
	mov	r0, r5
	bl	cp_get_cd
	ands	r2, r4, #1
	ldrne	r3, [r5, #64]
	addne	r3, r3, #1
	strne	r3, [r5, #64]
	ldr	r3, [r5, #4]
	cmp	r0, #0
	orreq	r3, r3, #64
	streq	r3, [r5, #4]
	tst	r4, #2
	and	r4, r4, #16
	beq	.L5
	orr	r3, r3, #4096
	cmp	r4, #0
	str	r3, [r5, #4]
	beq	.L7
.L6:
	orr	r3, r3, #2048
	str	r3, [r5, #4]
.L9:
	ldr	r3, [r5, #48]
	add	r3, r3, #1
	str	r3, [r5, #48]
.L13:
.L14:
	ldr	r8, [r5]
	add	r3, r8, #59
	cmp	r3, #118
	bhi	.L15
.L16:
	ldr	r3, [r5, #8]
	ldr	r2, [r5, #12]
	cmp	r3, r2, lsl #1
	ldrlt	r3, [r5, #20]
	addlt	r3, r3, #1
	strlt	r3, [r5, #20]
	mov	r3, #0
	str	r3, [r5, #8]
	str	r3, [r5, #12]
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	cmp	r8, #900
	pople	{r4, r5, r6, r7, r8, pc}
	ldr	r7, [r5, #116]
	mov	r4, r7
	sub	r6, r7, #2256
.L20:
	add	lr, r4, #2208
	add	ip, r4, #2256
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	sub	r4, r4, #48
	cmp	r4, r6
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	bne	.L20
	mov	ip, r7
	add	lr, r5, #20
	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}
	ldr	r1, [r5, #112]
	ldr	lr, [r5, #64]
	ldr	ip, [r5, #60]
	ldr	r2, [r5, #108]
	ldr	r0, [r5, #56]
	ldr	r3, [r5, #104]
	add	r1, r1, lr
	add	r2, r2, ip
	add	r3, r3, r0
	str	r1, [r5, #112]
	str	r2, [r5, #108]
	str	r3, [r5, #104]
	ldr	r0, [r5, #100]
	ldr	r2, [r5, #52]
	ldr	ip, [r5, #96]
	ldr	r4, [r5, #92]
	ldr	r1, [r5, #44]
	ldr	lr, [r5, #88]
	add	r2, r0, r2
	ldr	r3, [r5, #48]
	ldr	r0, [r5, #40]
	ldr	r6, [r5, #80]
	add	r3, ip, r3
	add	lr, lr, r0
	ldr	ip, [r5, #84]
	ldr	r0, [r5, #32]
	add	r4, r4, r1
	ldr	r1, [r5, #36]
	add	r0, r6, r0
	add	ip, ip, r1
	ldr	r6, [r5, #28]
	ldr	r1, [r5, #76]
	str	r2, [r5, #100]
	add	r1, r1, r6
	ldr	r2, [r5, #72]
	ldr	r6, [r5, #24]
	str	r3, [r5, #96]
	add	r2, r2, r6
	ldr	r3, [r5, #68]
	ldr	r6, [r5, #20]
	str	r0, [r5, #80]
	add	r3, r3, r6
	str	r1, [r5, #76]
	str	r2, [r5, #72]
	str	r3, [r5, #68]
	mov	r2, #48
	mov	r1, #0
	str	r4, [r5, #92]
	str	lr, [r5, #88]
	str	ip, [r5, #84]
	add	r0, r5, #20
	bl	memset
	mov	r2, #0
	ldr	r3, [r5, #16]
	str	r2, [r5]
	add	r8, r3, r8
	str	r8, [r5, #16]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	cmp	r4, #0
	bne	.L6
.L8:
	cmp	r3, #0
	moveq	r3, #1
	streq	r3, [r5, #4]
.L7:
	clz	r4, r4
	cmp	r0, #0
	lsr	r4, r4, #5
	moveq	r4, #0
	cmp	r4, #0
	beq	.L9
	ldr	r3, [r5, #8]
	cmp	r2, #0
	add	r3, r3, #1
	beq	.L39
	ldr	r1, [r5, #44]
	ldr	r2, [r5, #12]
	add	r1, r1, #1
	add	r2, r2, #1
	str	r3, [r5, #8]
	str	r1, [r5, #44]
	str	r2, [r5, #12]
	b	.L14
.L17:
.L39:
	str	r3, [r5, #8]
	b	.L14
	.size	cp_g703_timer, .-cp_g703_timer
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
