	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDSoftVdp1ScaledSpriteDraw    ## -- Begin function VIDSoftVdp1ScaledSpriteDraw
	.p2align	4, 0x90
_VIDSoftVdp1ScaledSpriteDraw:           ## @VIDSoftVdp1ScaledSpriteDraw
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	8(%rsi), %esi
	leaq	-88(%rbp), %r12
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_Vdp1ReadCommand
	movl	-88(%rbp), %edx
	movl	-84(%rbp), %eax
	movl	(%r13), %edi
	addl	%edx, %edi
	movl	4(%r13), %esi
	addl	%eax, %esi
	movl	-80(%rbp), %ecx
	shrl	$8, %ecx
	andl	$15, %ecx
	addl	$-5, %ecx
	cmpl	$10, %ecx
	ja	LBB0_2
## %bb.1:
	leaq	LJTI0_0(%rip), %rbx
	movslq	(%rbx,%rcx,4), %rcx
	addq	%rbx, %rcx
	jmpq	*%rcx
LBB0_3:
	movl	-72(%rbp), %ecx
	movl	-64(%rbp), %r8d
	jmp	LBB0_14
LBB0_4:
	movl	-72(%rbp), %ecx
	movl	-64(%rbp), %r8d
	movl	%r8d, %eax
	shrl	$31, %eax
	addl	%r8d, %eax
	sarl	%eax
	subl	%eax, %edi
	jmp	LBB0_14
LBB0_5:
	movl	-72(%rbp), %ecx
	movl	-64(%rbp), %r8d
	subl	%r8d, %edi
	jmp	LBB0_14
LBB0_2:
	movl	-56(%rbp), %ecx
	movl	-48(%rbp), %r8d
	subl	%edx, %r8d
	subl	%eax, %ecx
	jmp	LBB0_14
LBB0_6:
	movl	-72(%rbp), %ecx
	movl	-64(%rbp), %r8d
	jmp	LBB0_7
LBB0_8:
	movl	-72(%rbp), %ecx
	movl	-64(%rbp), %r8d
	movl	%r8d, %eax
	shrl	$31, %eax
	addl	%r8d, %eax
	sarl	%eax
	subl	%eax, %edi
	jmp	LBB0_7
LBB0_9:
	movl	-72(%rbp), %ecx
	movl	-64(%rbp), %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	-72(%rbp), %ecx
	movl	-64(%rbp), %r8d
	jmp	LBB0_13
LBB0_11:
	movl	-72(%rbp), %ecx
	movl	-64(%rbp), %r8d
	movl	%r8d, %eax
	shrl	$31, %eax
	addl	%r8d, %eax
	sarl	%eax
	subl	%eax, %edi
	jmp	LBB0_13
LBB0_12:
	movl	-72(%rbp), %ecx
	movl	-64(%rbp), %r8d
	subl	%r8d, %edi
LBB0_13:
	subl	%ecx, %esi
LBB0_14:
	addl	%edi, %r8d
	addl	%esi, %ecx
	movl	%edi, %edx
	movl	%esi, %r9d
	pushq	%r15
	pushq	%r12
	pushq	%r13
	pushq	%r14
	pushq	%rcx
	pushq	%r8
	callq	_drawQuad
	addq	$104, %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_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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDSoftVdp1ScaledSpriteDraw    ; -- Begin function VIDSoftVdp1ScaledSpriteDraw
	.p2align	2
_VIDSoftVdp1ScaledSpriteDraw:           ; @VIDSoftVdp1ScaledSpriteDraw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w1, [x1, #8]
	add	x0, sp, #32
	mov	x2, x19
	bl	_Vdp1ReadCommand
	ldp	w8, w9, [sp, #32]
	ldp	w10, w11, [x20]
	add	w0, w10, w8
	add	w1, w11, w9
	ldr	w10, [sp, #40]
	ubfx	w10, w10, #8, #4
	sub	w10, w10, #5
	cmp	w10, #10
	b.hi	LBB0_5
; %bb.1:
Lloh0:
	adrp	x11, lJTI0_0@PAGE
Lloh1:
	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, [sp, #56]
	ldr	w9, [sp, #48]
	b	LBB0_14
LBB0_3:
	ldr	w8, [sp, #56]
	ldr	w9, [sp, #48]
	cmp	w8, #0
	cinc	w10, w8, lt
	sub	w0, w0, w10, asr #1
	b	LBB0_14
LBB0_4:
	ldr	w8, [sp, #56]
	ldr	w9, [sp, #48]
	sub	w0, w0, w8
	b	LBB0_14
LBB0_5:
	ldr	w10, [sp, #72]
	ldr	w11, [sp, #64]
	sub	w8, w10, w8
	sub	w9, w11, w9
	b	LBB0_14
LBB0_6:
	ldr	w8, [sp, #56]
	ldr	w9, [sp, #48]
	b	LBB0_9
LBB0_7:
	ldr	w8, [sp, #56]
	ldr	w9, [sp, #48]
	cmp	w8, #0
	cinc	w10, w8, lt
	sub	w0, w0, w10, asr #1
	b	LBB0_9
LBB0_8:
	ldr	w8, [sp, #56]
	ldr	w9, [sp, #48]
	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, [sp, #56]
	ldr	w9, [sp, #48]
	b	LBB0_13
LBB0_11:
	ldr	w8, [sp, #56]
	ldr	w9, [sp, #48]
	cmp	w8, #0
	cinc	w10, w8, lt
	sub	w0, w0, w10, asr #1
	b	LBB0_13
LBB0_12:
	ldr	w8, [sp, #56]
	ldr	w9, [sp, #48]
	sub	w0, w0, w8
LBB0_13:
	sub	w1, w1, w9
LBB0_14:
	add	w4, w8, w0
	add	w3, w9, w1
	add	x8, sp, #32
	stp	x8, x21, [sp, #16]
	stp	x19, x20, [sp]
	mov	x2, x0
	mov	x5, x1
	mov	x6, x4
	mov	x7, x3
	bl	_drawQuad
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.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
.subsections_via_symbols
