	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Vdp1FakeDrawCommands           ## -- Begin function Vdp1FakeDrawCommands
	.p2align	4, 0x90
_Vdp1FakeDrawCommands:                  ## @Vdp1FakeDrawCommands
	.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	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rsi), %esi
	callq	_T1ReadWord
	testl	$32768, %eax                    ## imm = 0x8000
	jne	LBB0_22
## %bb.1:
	movl	%eax, %ebx
	xorl	%r12d, %r12d
	movl	$-1, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	$16384, %ebx                    ## imm = 0x4000
	jne	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %eax
	andl	$15, %eax
	cmpl	$8, %eax
	jb	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	$-8, %eax
	cmpl	$3, %eax
	ja	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_VIDCore@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$24, %rax
	jmp	LBB0_10
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_VIDCore@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$16, %rax
	jmp	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_VIDCore@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$8, %rax
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*(%rax)
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	shrl	$12, %ebx
	andl	$3, %ebx
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %esi
	addl	$32, %esi
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %esi
	addl	$2, %esi
	movq	%r14, %rdi
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %esi
	leal	32(%rsi), %eax
	cmpl	$-1, %r13d
	cmovel	%eax, %r13d
	addl	$2, %esi
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_T1ReadWord
	movl	%eax, %esi
	shll	$3, %esi
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %r13d
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %esi
	jmp	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %esi
	addl	$32, %esi
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1, %r13d
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, (%r15)
	movq	%r14, %rdi
	callq	_T1ReadWord
	testl	$32768, %eax                    ## imm = 0x8000
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	leal	1(%r12), %eax
	cmpl	$1999, %r12d                    ## imm = 0x7CF
	movl	%eax, %r12d
	jb	LBB0_2
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_VDP1LOG
	orb	$2, 4(%r15)
	movq	_VIDCore@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	callq	*(%rcx)
	movl	(%r15), %eax
	sarl	$3, %eax
	movl	%eax, 8(%r15)
	movl	%eax, 12(%r15)
	jmp	LBB0_22
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_9
.set L0_1_set_12, LBB0_12-LJTI0_1
.set L0_1_set_13, LBB0_13-LJTI0_1
.set L0_1_set_15, LBB0_15-LJTI0_1
.set L0_1_set_16, LBB0_16-LJTI0_1
LJTI0_1:
	.long	L0_1_set_12
	.long	L0_1_set_13
	.long	L0_1_set_15
	.long	L0_1_set_16
	.end_data_region
                                        ## -- End function
	.comm	_VIDCore,8,3                    ## @VIDCore
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vdp1\t: Bad command: %x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Vdp1FakeDrawCommands           ; -- Begin function Vdp1FakeDrawCommands
	.p2align	2
_Vdp1FakeDrawCommands:                  ; @Vdp1FakeDrawCommands
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w1, [x1]
	bl	_T1ReadWord
	tbnz	w0, #15, LBB0_19
; %bb.1:
	mov	x21, x0
	mov	w23, #0
	mov	w26, #-1
Lloh0:
	adrp	x24, lJTI0_0@PAGE
Lloh1:
	add	x24, x24, lJTI0_0@PAGEOFF
Lloh2:
	adrp	x22, _VIDCore@GOTPAGE
Lloh3:
	ldr	x22, [x22, _VIDCore@GOTPAGEOFF]
Lloh4:
	adrp	x25, lJTI0_1@PAGE
Lloh5:
	add	x25, x25, lJTI0_1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	tbnz	w21, #14, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w8, w21, #0xf
	subs	w8, w8, #8
	b.lo	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #3
	b.hi	LBB0_20
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	adr	x9, LBB0_6
	ldrb	w10, [x24, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
	add	x8, x8, #24
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
	add	x8, x8, #16
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
	add	x8, x8, #8
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x19
	blr	x8
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ubfx	w8, w21, #12, #2
	adr	x9, LBB0_11
	ldrb	w10, [x25, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19]
	add	w9, w8, #32
	cmn	w26, #1
	csel	w26, w9, w26, eq
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w1, w8, #2
	mov	x0, x20
	bl	_T1ReadWord
	lsl	w1, w0, #3
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w26, #1
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, x26
	mov	w26, #-1
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19]
	add	w1, w8, #32
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w1, [x19]
	mov	x0, x20
	bl	_T1ReadWord
	tbnz	w0, #15, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
	add	w8, w23, #1
	cmp	w23, #1999
	mov	x23, x8
	b.lo	LBB0_2
LBB0_19:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_20:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_VDP1LOG
	ldr	w8, [x19, #4]
	orr	w8, w8, #0x2
	str	w8, [x19, #4]
	ldr	x8, [x22]
	ldr	x8, [x8]
	blr	x8
	ldr	w8, [x19]
	asr	w8, w8, #3
	stp	w8, w8, [x19, #8]
	b	LBB0_19
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
lJTI0_1:
	.byte	(LBB0_16-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_12-LBB0_11)>>2
	.byte	(LBB0_14-LBB0_11)>>2
                                        ; -- End function
	.comm	_VIDCore,8,3                    ; @VIDCore
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vdp1\t: Bad command: %x\n"

.subsections_via_symbols
