	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDSoftVdp1NormalSpriteDraw    ## -- Begin function VIDSoftVdp1NormalSpriteDraw
	.p2align	4, 0x90
_VIDSoftVdp1NormalSpriteDraw:           ## @VIDSoftVdp1NormalSpriteDraw
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	16(%rsi), %esi
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_Vdp1ReadCommand
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdi
	addq	-40(%rbp), %rdi
	addq	-48(%rbp), %rsi
	movl	-56(%rbp), %eax
	movzbl	%al, %ecx
                                        ## kill: def $eax killed $eax killed $rax def $rax
	shrl	$5, %eax
	andl	$504, %eax                      ## imm = 0x1F8
	leaq	(%rax,%rdi), %r8
	decq	%r8
	leaq	-1(%rcx,%rsi), %rcx
	movq	%rdi, %rdx
	movq	%rsi, %r9
	pushq	%r15
	pushq	%r12
	pushq	%rbx
	pushq	%r14
	pushq	%rcx
	pushq	%r8
	callq	_drawQuad
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDSoftVdp1NormalSpriteDraw    ; -- Begin function VIDSoftVdp1NormalSpriteDraw
	.p2align	2
_VIDSoftVdp1NormalSpriteDraw:           ; @VIDSoftVdp1NormalSpriteDraw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w1, [x1, #16]
	add	x22, sp, #40
	add	x0, sp, #40
	mov	x2, x21
	bl	_Vdp1ReadCommand
	ldp	x9, x8, [sp, #48]
	ldp	x11, x10, [x20]
	add	x0, x10, x8
	add	x1, x11, x9
	ldr	w8, [sp, #40]
	ubfx	x9, x8, #5, #27
	and	w9, w9, #0x1f8
	sub	w9, w9, #1
	add	x4, x0, w9, sxtw
	add	x8, x1, w8, uxtb
	sub	x3, x8, #1
	stp	x22, x19, [sp, #16]
	stp	x21, x20, [sp]
	mov	x2, x0
	mov	x5, x1
	mov	x6, x4
	mov	x7, x3
	bl	_drawQuad
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
