	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DrawSprite
_DrawSprite:                            ## @DrawSprite
	.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
	movl	(%rdi), %ecx
	movl	4(%rdi), %r15d
	movl	%ecx, %eax
	shrl	$24, %eax
	andl	$7, %eax
	movl	%eax, %r12d
	negl	%r12d
	testl	$2048, %r15d                    ## imm = 0x800
	cmovel	%eax, %r12d
	movq	_TileFlipSH_markop@GOTPCREL(%rip), %r13
	cmoveq	_TileNormSH_markop@GOTPCREL(%rip), %r13
	movq	_TileFlip@GOTPCREL(%rip), %rdx
	cmoveq	_TileNorm@GOTPCREL(%rip), %rdx
	movl	%r15d, %edi
	notl	%edi
	testl	$24576, %edi                    ## imm = 0x6000
	cmovneq	%rdx, %r13
	testl	%esi, %esi
	cmoveq	%rdx, %r13
	cmpl	$268435456, %ecx                ## imm = 0x10000000
	jb	LBB0_6
## %bb.1:
	movl	%esi, %edi
	shll	$4, %r12d
	movl	%r15d, %edx
	shrl	$9, %edx
	andl	$48, %edx
	shll	$6, %edi
	orl	%edx, %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edx
	shll	$20, %edx
	sarl	$31, %edx
	movl	%ecx, %r14d
	sarl	$28, %r14d
	leal	2047(%r14), %esi
	imull	%eax, %esi
	andl	%edx, %esi
	addl	%r15d, %esi
	movq	_DrawScanline@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movswl	%cx, %ecx
	subl	%ecx, %edx
	testl	$4096, %r15d                    ## imm = 0x1000
	movl	%edx, %ecx
	notl	%ecx
	leal	(%rcx,%rax,8), %eax
	cmovel	%edx, %eax
	movl	%eax, %ecx
	shrl	$3, %ecx
	addl	%esi, %ecx
	shll	$4, %ecx
	andl	$32752, %ecx                    ## imm = 0x7FF0
	andl	$7, %eax
	leal	(%rcx,%rax,2), %ebx
	sarl	$16, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	andl	$32767, %ebx                    ## imm = 0x7FFF
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	*%r13
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	%r12d, %ebx
	addl	$8, %r15d
	decl	%r14d
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r15d, %r15d
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$327, %r15d                     ## imm = 0x147
	jbe	LBB0_4
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DrawScanline,4,2               ## @DrawScanline
	.no_dead_strip	_DrawSprite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DrawSprite
_DrawSprite:                            ; @DrawSprite
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldp	w9, w8, [x0]
	ubfx	w10, w9, #24, #3
	tst	w8, #0x800
Lloh0:
	adrp	x12, _TileFlipSH_markop@GOTPAGE
Lloh1:
	ldr	x12, [x12, _TileFlipSH_markop@GOTPAGEOFF]
Lloh2:
	adrp	x13, _TileNormSH_markop@GOTPAGE
Lloh3:
	ldr	x13, [x13, _TileNormSH_markop@GOTPAGEOFF]
	cneg	w11, w10, ne
	csel	x12, x13, x12, eq
Lloh4:
	adrp	x13, _TileFlip@GOTPAGE
Lloh5:
	ldr	x13, [x13, _TileFlip@GOTPAGEOFF]
Lloh6:
	adrp	x14, _TileNorm@GOTPAGE
Lloh7:
	ldr	x14, [x14, _TileNorm@GOTPAGEOFF]
	csel	x13, x14, x13, eq
	mov	w14, #24576
	bics	wzr, w14, w8
	ccmp	w1, #0, #4, eq
	csel	x22, x12, x13, ne
	lsr	w12, w9, #28
	cbz	w12, LBB0_6
; %bb.1:
	lsl	w23, w11, #4
	lsr	w11, w8, #9
	and	w19, w11, #0x30
	bfi	w19, w1, #6, #26
	lsl	w11, w8, #20
	asr	w24, w9, #28
	add	w12, w24, #2047
	mul	w12, w10, w12
	and	w11, w12, w11, asr #31
	add	w11, w11, w8
Lloh8:
	adrp	x12, _DrawScanline@GOTPAGE
Lloh9:
	ldr	x12, [x12, _DrawScanline@GOTPAGEOFF]
Lloh10:
	ldr	w12, [x12]
	sub	w9, w12, w9, sxth
	mvn	w12, w9
	add	w10, w12, w10, lsl #3
	tst	w8, #0x1000
	csel	w9, w9, w10, eq
	add	w10, w11, w9, lsr #3
	ubfiz	w20, w9, #1, #3
	bfi	w20, w10, #4, #11
	asr	w21, w8, #16
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	and	w20, w20, #0x7fff
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	blr	x22
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #8
	add	w20, w20, w23
	subs	w24, w24, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w21, #327
	b.ls	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DrawScanline,4,2               ; @DrawScanline
	.no_dead_strip	_DrawSprite
.subsections_via_symbols
