	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Vdp1DebugGetCommandNumberAddr
_Vdp1DebugGetCommandNumberAddr:         ## @Vdp1DebugGetCommandNumberAddr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_Vdp1Ram@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_T1ReadWord
                                        ## kill: def $eax killed $eax def $rax
	testl	$32768, %eax                    ## imm = 0x8000
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_11
## %bb.1:
	movl	$0, %ecx
	testq	%r14, %r14
	je	LBB0_12
## %bb.2:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	-1(%rcx), %r13
	xorl	%r14d, %r14d
	leaq	LJTI0_0(%rip), %r15
	movl	$4294967295, %r12d              ## imm = 0xFFFFFFFF
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ecx
	notl	%ecx
	testb	$12, %cl
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	shrl	$12, %eax
	andl	$3, %eax
	movslq	(%r15,%rax,4), %rax
	addq	%r15, %rax
	jmpq	*%rax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$32, %rbx
	cmpq	$524256, %rbx                   ## imm = 0x7FFE0
	jle	LBB0_9
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	32(%rbx), %rax
	movl	$4294967295, %ecx               ## imm = 0xFFFFFFFF
	cmpq	%rcx, %r12
	cmoveq	%rax, %r12
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_Vdp1Ram@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$2, %rbx
	movq	%rbx, %rsi
	callq	_T1ReadWord
	shll	$3, %eax
	movslq	%eax, %rbx
	cmpq	$524256, %rbx                   ## imm = 0x7FFE0
	jle	LBB0_9
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$32, %rbx
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	cmpq	%rax, %r12
	cmovneq	%r12, %rbx
	movl	$4294967295, %r12d              ## imm = 0xFFFFFFFF
	cmpq	$524256, %rbx                   ## imm = 0x7FFE0
	jg	LBB0_14
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_Vdp1Ram@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_T1ReadWord
                                        ## kill: def $eax killed $eax def $rax
	leaq	1(%r14), %rcx
	testl	$32768, %eax                    ## imm = 0x8000
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r14, %r13
	movq	%rcx, %r14
	jne	LBB0_3
	jmp	LBB0_12
LBB0_14:
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	jmp	LBB0_15
LBB0_11:
	xorl	%ecx, %ecx
LBB0_12:
	cmpq	-48(%rbp), %rcx                 ## 8-byte Folded Reload
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	cmoveq	%rbx, %rax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_Vdp1Ram,4,2                    ## @Vdp1Ram
	.no_dead_strip	_Vdp1DebugGetCommandNumberAddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Vdp1DebugGetCommandNumberAddr
_Vdp1DebugGetCommandNumberAddr:         ; @Vdp1DebugGetCommandNumberAddr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x22, _Vdp1Ram@GOTPAGE
Lloh1:
	ldr	x22, [x22, _Vdp1Ram@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, #0
	bl	_T1ReadWord
	mov	x21, #0
	mov	x8, #0
	tbnz	w0, #15, LBB0_11
; %bb.1:
	cbz	x19, LBB0_11
; %bb.2:
	mov	x24, #0
	mov	x21, #0
	sub	x23, x19, #1
	mov	w20, #-1
	mov	w25, #524256
	mov	w27, #-1
Lloh2:
	adrp	x26, lJTI0_0@PAGE
Lloh3:
	add	x26, x26, lJTI0_0@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mvn	w8, w0
	tst	w8, #0xc
	b.eq	LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ubfx	w8, w0, #12, #2
	adr	x9, LBB0_5
	ldrb	w10, [x26, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #32
	cmp	x21, x25
	b.le	LBB0_9
	b	LBB0_12
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x21, #32
	cmp	x27, x20
	csel	x27, x8, x27, eq
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22]
	add	x1, x21, #2
	bl	_T1ReadWord
	lsl	w8, w0, #3
	sxtw	x21, w8
	cmp	x21, x25
	b.le	LBB0_9
	b	LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x21, #32
	cmp	x27, x20
	csel	x21, x8, x27, eq
	mov	w27, #-1
	cmp	x21, x25
	b.gt	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x22]
	mov	x1, x21
	bl	_T1ReadWord
	add	x8, x24, #1
	tbnz	w0, #15, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	x23, x24
	mov	x24, x8
	b.ne	LBB0_3
LBB0_11:
	mov	w9, #-1
	cmp	x8, x19
	csel	x20, x21, x9, eq
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
                                        ; -- End function
	.comm	_Vdp1Ram,4,2                    ; @Vdp1Ram
	.no_dead_strip	_Vdp1DebugGetCommandNumberAddr
.subsections_via_symbols
