	.file	"extr_vdp1.c_Vdp1DebugGetCommandNumberAddr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	Vdp1DebugGetCommandNumberAddr, @function
Vdp1DebugGetCommandNumberAddr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	esi, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	edi, DWORD PTR Vdp1Ram[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	T1ReadWord@PLT
	test	ah, -128
	jne	.L12
	test	rbp, rbp
	je	.L13
	mov	edx, eax
	and	edx, 12
	cmp	edx, 12
	je	.L4
	mov	ebx, 4294967295
	mov	r14d, 1
	xor	r13d, r13d
	mov	r12, rbx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L25:
	cmp	eax, 1
	je	.L23
.L22:
	add	r13, 32
.L9:
	cmp	r13, 524256
	jg	.L4
.L26:
	mov	edi, DWORD PTR Vdp1Ram[rip]
	mov	rsi, r13
	call	T1ReadWord@PLT
	mov	rdx, r14
	test	ah, -128
	jne	.L2
	cmp	r14, rbp
	je	.L1
	mov	edx, eax
	add	r14, 1
	and	edx, 12
	cmp	edx, 12
	je	.L4
.L5:
	sar	eax, 12
	and	eax, 3
	cmp	eax, 2
	je	.L6
	cmp	eax, 3
	jne	.L25
	cmp	rbx, r12
	je	.L22
	mov	r13, rbx
	mov	rbx, r12
	cmp	r13, 524256
	jle	.L26
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r13d, 4294967295
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	lea	rax, 32[r13]
	cmp	rbx, r12
	cmove	rbx, rax
.L23:
	mov	edi, DWORD PTR Vdp1Ram[rip]
	lea	rsi, 2[r13]
	call	T1ReadWord@PLT
	lea	r13d, 0[0+rax*8]
	movsx	r13, r13d
	jmp	.L9
.L12:
	xor	edx, edx
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	rbp, rdx
	je	.L1
	mov	r13d, 4294967295
	jmp	.L1
.L13:
	xor	r13d, r13d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	Vdp1DebugGetCommandNumberAddr, .-Vdp1DebugGetCommandNumberAddr
	.comm	Vdp1Ram,4,4
	.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_vdp1.c_Vdp1DebugGetCommandNumberAddr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Vdp1DebugGetCommandNumberAddr, %function
Vdp1DebugGetCommandNumberAddr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r4, .L30
	mov	r5, r0
	mov	r1, #0
	ldr	r0, [r4]
	bl	T1ReadWord
	ands	r8, r0, #32768
	bne	.L12
	cmp	r5, #0
	beq	.L1
	and	r3, r0, #12
	cmp	r3, #12
	beq	.L4
	mov	r9, #1
	mvn	r7, #0
	ldr	r6, .L30+4
	b	.L5
.L28:
	cmp	r0, #1
	beq	.L10
.L24:
	add	r8, r8, #32
.L9:
	cmp	r8, r6
	bgt	.L4
.L29:
	mov	r1, r8
	ldr	r0, [r4]
	bl	T1ReadWord
	tst	r0, #32768
	mov	r3, r9
	bne	.L2
	cmp	r9, r5
	beq	.L1
	and	r3, r0, #12
	cmp	r3, #12
	add	r9, r9, #1
	beq	.L4
.L5:
	asr	r0, r0, #12
	and	r0, r0, #3
	cmp	r0, #2
	beq	.L6
	cmp	r0, #3
	bne	.L28
	cmn	r7, #1
	movne	r8, r7
	mvnne	r7, #0
	beq	.L24
	cmp	r8, r6
	ble	.L29
.L4:
	mvn	r8, #0
.L1:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	cmn	r7, #1
	addeq	r7, r8, #32
.L10:
	add	r1, r8, #2
	ldr	r0, [r4]
	bl	T1ReadWord
	lsl	r8, r0, #3
	b	.L9
.L12:
	mov	r3, #0
	mov	r8, r3
.L2:
	cmp	r5, r3
	bne	.L4
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L31:
	.align	2
.L30:
	.word	Vdp1Ram
	.word	524256
	.size	Vdp1DebugGetCommandNumberAddr, .-Vdp1DebugGetCommandNumberAddr
	.comm	Vdp1Ram,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
