	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDGCDVdp1ScaledSpriteDraw     ## -- Begin function VIDGCDVdp1ScaledSpriteDraw
	.p2align	4, 0x90
_VIDGCDVdp1ScaledSpriteDraw:            ## @VIDGCDVdp1ScaledSpriteDraw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_Vdp1Regs@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	8(%rax), %esi
	movq	_Vdp1Ram@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_cmd@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_Vdp1ReadCommand
	movl	(%rbx), %edx
	movl	4(%rbx), %r9d
	movq	(%r14), %rcx
	movl	(%rcx), %edi
	addl	%edx, %edi
	movl	4(%rcx), %esi
	addl	%r9d, %esi
	movl	8(%rbx), %ecx
	shrl	$8, %ecx
	andl	$15, %ecx
	addl	$-5, %ecx
	cmpl	$10, %ecx
	ja	LBB0_2
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_3:
	movl	16(%rbx), %ecx
	movl	24(%rbx), %r8d
	jmp	LBB0_14
LBB0_4:
	movl	16(%rbx), %ecx
	movl	24(%rbx), %r8d
	movl	%r8d, %eax
	shrl	$31, %eax
	addl	%r8d, %eax
	sarl	%eax
	subl	%eax, %edi
	jmp	LBB0_14
LBB0_5:
	movl	16(%rbx), %ecx
	movl	24(%rbx), %r8d
	subl	%r8d, %edi
	jmp	LBB0_14
LBB0_2:
	movl	32(%rbx), %ecx
	movl	40(%rbx), %r8d
	subl	%edx, %r8d
	subl	%r9d, %ecx
	jmp	LBB0_14
LBB0_6:
	movl	16(%rbx), %ecx
	movl	24(%rbx), %r8d
	jmp	LBB0_7
LBB0_8:
	movl	16(%rbx), %ecx
	movl	24(%rbx), %r8d
	movl	%r8d, %eax
	shrl	$31, %eax
	addl	%r8d, %eax
	sarl	%eax
	subl	%eax, %edi
	jmp	LBB0_7
LBB0_9:
	movl	16(%rbx), %ecx
	movl	24(%rbx), %r8d
	subl	%r8d, %edi
LBB0_7:
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	subl	%eax, %esi
	jmp	LBB0_14
LBB0_10:
	movl	16(%rbx), %ecx
	movl	24(%rbx), %r8d
	jmp	LBB0_13
LBB0_11:
	movl	16(%rbx), %ecx
	movl	24(%rbx), %r8d
	movl	%r8d, %eax
	shrl	$31, %eax
	addl	%r8d, %eax
	sarl	%eax
	subl	%eax, %edi
	jmp	LBB0_13
LBB0_12:
	movl	16(%rbx), %ecx
	movl	24(%rbx), %r8d
	subl	%r8d, %edi
LBB0_13:
	subl	%ecx, %esi
LBB0_14:
	addl	%edi, %r8d
	addl	%esi, %ecx
	movl	%edi, %edx
	movl	%esi, %r9d
	pushq	%rcx
	pushq	%r8
	callq	_drawQuad
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_2
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_cmd,48,3                       ## @cmd
	.comm	_Vdp1Regs,8,3                   ## @Vdp1Regs
	.comm	_Vdp1Ram,4,2                    ## @Vdp1Ram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDGCDVdp1ScaledSpriteDraw     ; -- Begin function VIDGCDVdp1ScaledSpriteDraw
	.p2align	2
_VIDGCDVdp1ScaledSpriteDraw:            ; @VIDGCDVdp1ScaledSpriteDraw
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _Vdp1Regs@GOTPAGE
Lloh1:
	ldr	x20, [x20, _Vdp1Regs@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w1, [x8, #8]
Lloh2:
	adrp	x8, _Vdp1Ram@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Vdp1Ram@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x19, _cmd@GOTPAGE
Lloh6:
	ldr	x19, [x19, _cmd@GOTPAGEOFF]
	mov	x0, x19
	bl	_Vdp1ReadCommand
	ldr	x10, [x20]
	ldp	w8, w9, [x19]
	ldp	w11, w10, [x10]
	add	w0, w11, w8
	add	w1, w10, w9
	ldr	w10, [x19, #8]
	ubfx	w10, w10, #8, #4
	sub	w10, w10, #5
	cmp	w10, #10
	b.hi	LBB0_5
; %bb.1:
Lloh7:
	adrp	x11, lJTI0_0@PAGE
Lloh8:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
	ldr	w8, [x19, #24]
	ldr	w9, [x19, #16]
	b	LBB0_14
LBB0_3:
	ldr	w8, [x19, #24]
	ldr	w9, [x19, #16]
	cmp	w8, #0
	cinc	w10, w8, lt
	sub	w0, w0, w10, asr #1
	b	LBB0_14
LBB0_4:
	ldr	w8, [x19, #24]
	ldr	w9, [x19, #16]
	sub	w0, w0, w8
	b	LBB0_14
LBB0_5:
	ldr	w10, [x19, #40]
	sub	w8, w10, w8
	ldr	w10, [x19, #32]
	sub	w9, w10, w9
	b	LBB0_14
LBB0_6:
	ldr	w8, [x19, #24]
	ldr	w9, [x19, #16]
	b	LBB0_9
LBB0_7:
	ldr	w8, [x19, #24]
	ldr	w9, [x19, #16]
	cmp	w8, #0
	cinc	w10, w8, lt
	sub	w0, w0, w10, asr #1
	b	LBB0_9
LBB0_8:
	ldr	w8, [x19, #24]
	ldr	w9, [x19, #16]
	sub	w0, w0, w8
LBB0_9:
	cmp	w9, #0
	cinc	w10, w9, lt
	sub	w1, w1, w10, asr #1
	b	LBB0_14
LBB0_10:
	ldr	w8, [x19, #24]
	ldr	w9, [x19, #16]
	b	LBB0_13
LBB0_11:
	ldr	w8, [x19, #24]
	ldr	w9, [x19, #16]
	cmp	w8, #0
	cinc	w10, w8, lt
	sub	w0, w0, w10, asr #1
	b	LBB0_13
LBB0_12:
	ldr	w8, [x19, #24]
	ldr	w9, [x19, #16]
	sub	w0, w0, w8
LBB0_13:
	sub	w1, w1, w9
LBB0_14:
	add	w4, w8, w0
	add	w3, w9, w1
	mov	x2, x0
	mov	x5, x1
	mov	x6, x4
	mov	x7, x3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_drawQuad
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_cmd,48,3                       ; @cmd
	.comm	_Vdp1Regs,8,3                   ; @Vdp1Regs
	.comm	_Vdp1Ram,4,2                    ; @Vdp1Ram
.subsections_via_symbols
