	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function DrawSpritesHiAS
LCPI0_0:
	.space	16,127
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_DrawSpritesHiAS:                       ## @DrawSpritesHiAS
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movzbl	(%rdi), %eax
	andq	$127, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_24
## %bb.1:
	movq	_PDRAW_SPR_LO_ON_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_rendstatus@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	xorl	%esi, %esi
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	incq	%rsi
	cmpq	-72(%rbp), %rsi                 ## 8-byte Folded Reload
	je	LBB0_22
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movb	3(%rax,%rsi), %dl
	leal	(%rdx,%rdx), %ecx
	movq	_HighPreSpr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movzbl	%cl, %ecx
	movl	4(%rax,%rcx,4), %r13d
	movl	%r13d, %r12d
	shrl	$9, %r12d
	andl	$48, %r12d
	testl	$32768, %r13d                   ## imm = 0x8000
	jne	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_TileFlipAS_onlymark@GOTPCREL(%rip), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	testl	$2048, %r13d                    ## imm = 0x800
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_TileNormAS_onlymark@GOTPCREL(%rip), %rdi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$48, %r12d
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_TileFlipAS_noop@GOTPCREL(%rip), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	testl	$2048, %r13d                    ## imm = 0x800
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_TileNormAS_noop@GOTPCREL(%rip), %rdi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_TileFlipAS@GOTPCREL(%rip), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	testl	$2048, %r13d                    ## imm = 0x800
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_TileNormAS@GOTPCREL(%rip), %rdi
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$48, %r12d
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	andb	$127, %dl
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movslq	%edi, %rsi
	incl	%edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movb	%dl, 3(%rdi,%rsi)
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, %eax
	shrl	$24, %eax
	andl	$7, %eax
	movl	%eax, %r14d
	negl	%r14d
	testl	$2048, %r13d                    ## imm = 0x800
	cmovel	%eax, %r14d
	cmpl	$268435456, %ecx                ## imm = 0x10000000
	jb	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	shll	$4, %r14d
	orl	$128, %r12d
	movl	%r13d, %edx
	shll	$20, %edx
	sarl	$31, %edx
	movl	%ecx, %r15d
	sarl	$28, %r15d
	leal	2047(%r15), %esi
	imull	%eax, %esi
	andl	%edx, %esi
	addl	%r13d, %esi
	movq	_DrawScanline@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movswl	%cx, %ecx
	subl	%ecx, %edx
	testl	$4096, %r13d                    ## 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, %r13d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=2
	addl	%r14d, %ebx
	addl	$8, %r13d
	decl	%r15d
	je	LBB0_21
LBB0_17:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%r13d, %r13d
	jle	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	cmpl	$327, %r13d                     ## imm = 0x147
	ja	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=2
	andl	$32767, %ebx                    ## imm = 0x7FFF
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	jmp	LBB0_20
LBB0_22:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_24
## %bb.23:
	movq	_SPRL_MAY_HAVE_OP@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testb	%al, 1(%rcx)
	je	LBB0_24
## %bb.25:
	movq	_HighCol@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [2139062143,2139062143,2139062143,2139062143]
	movups	8(%rax), %xmm1
	movups	24(%rax), %xmm2
	movups	40(%rax), %xmm3
	movups	56(%rax), %xmm4
	andps	%xmm0, %xmm1
	movups	%xmm1, 8(%rax)
	andps	%xmm0, %xmm2
	movups	%xmm2, 24(%rax)
	andps	%xmm0, %xmm3
	movups	%xmm3, 40(%rax)
	andps	%xmm0, %xmm4
	movups	%xmm4, 56(%rax)
	movups	72(%rax), %xmm1
	andps	%xmm0, %xmm1
	movups	%xmm1, 72(%rax)
	movups	88(%rax), %xmm1
	andps	%xmm0, %xmm1
	movups	%xmm1, 88(%rax)
	movups	104(%rax), %xmm1
	andps	%xmm0, %xmm1
	movups	%xmm1, 104(%rax)
	movups	120(%rax), %xmm1
	andps	%xmm0, %xmm1
	movups	%xmm1, 120(%rax)
	movups	136(%rax), %xmm1
	andps	%xmm0, %xmm1
	movups	%xmm1, 136(%rax)
	movups	152(%rax), %xmm1
	andps	%xmm0, %xmm1
	movups	%xmm1, 152(%rax)
	movups	168(%rax), %xmm1
	andps	%xmm0, %xmm1
	movups	%xmm1, 168(%rax)
	movups	184(%rax), %xmm1
	andps	%xmm0, %xmm1
	movups	%xmm1, 184(%rax)
	movups	200(%rax), %xmm1
	andps	%xmm0, %xmm1
	movups	%xmm1, 200(%rax)
	movups	216(%rax), %xmm1
	andps	%xmm0, %xmm1
	movups	%xmm1, 216(%rax)
	movups	232(%rax), %xmm1
	andps	%xmm0, %xmm1
	movups	%xmm1, 232(%rax)
	movups	248(%rax), %xmm1
	andps	%xmm0, %xmm1
	movups	%xmm1, 248(%rax)
	movups	264(%rax), %xmm1
	andps	%xmm0, %xmm1
	movups	%xmm1, 264(%rax)
	movups	280(%rax), %xmm1
	andps	%xmm0, %xmm1
	movups	%xmm1, 280(%rax)
	movups	296(%rax), %xmm1
	andps	%xmm0, %xmm1
	movups	%xmm1, 296(%rax)
	movups	312(%rax), %xmm1
	andps	%xmm0, %xmm1
	movups	%xmm1, 312(%rax)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movb	%al, (%rdi)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DrawSpritesSHi                 ## TAILCALL
LBB0_24:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PDRAW_SPR_LO_ON_HI,4,2         ## @PDRAW_SPR_LO_ON_HI
	.comm	_rendstatus,4,2                 ## @rendstatus
	.comm	_HighPreSpr,8,3                 ## @HighPreSpr
	.comm	_DrawScanline,4,2               ## @DrawScanline
	.comm	_SPRL_MAY_HAVE_OP,1,0           ## @SPRL_MAY_HAVE_OP
	.comm	_HighCol,8,3                    ## @HighCol
	.no_dead_strip	_DrawSpritesHiAS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DrawSpritesHiAS
_DrawSpritesHiAS:                       ; @DrawSpritesHiAS
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldrb	w8, [x0]
	ands	w8, w8, #0x7f
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	b.eq	LBB0_20
; %bb.1:
	mov	x20, x1
	mov	x26, #0
	mov	w24, #0
Lloh0:
	adrp	x8, _PDRAW_SPR_LO_ON_HI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PDRAW_SPR_LO_ON_HI@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _rendstatus@GOTPAGE
Lloh4:
	ldr	x9, [x9, _rendstatus@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	str	x0, [sp]                        ; 8-byte Folded Spill
	add	x27, x0, #3
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x26, x8
	b.eq	LBB0_17
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldrb	w11, [x27, x26]
	lsl	w8, w11, #1
Lloh5:
	adrp	x9, _HighPreSpr@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HighPreSpr@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	and	x8, x8, #0xfe
	add	x10, x9, x8, lsl #2
	ldr	w8, [x10, #4]
	lsr	w9, w8, #9
	and	w9, w9, #0x30
	tbnz	w8, #15, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	tst	w8, #0x800
Lloh8:
	adrp	x12, _TileFlipAS_onlymark@GOTPAGE
Lloh9:
	ldr	x12, [x12, _TileFlipAS_onlymark@GOTPAGEOFF]
Lloh10:
	adrp	x13, _TileNormAS_onlymark@GOTPAGE
Lloh11:
	ldr	x13, [x13, _TileNormAS_onlymark@GOTPAGEOFF]
	csel	x19, x13, x12, eq
	cbnz	w20, LBB0_9
	b	LBB0_11
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	w20, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, #48
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	tst	w8, #0x800
Lloh12:
	adrp	x12, _TileFlipAS_noop@GOTPAGE
Lloh13:
	ldr	x12, [x12, _TileFlipAS_noop@GOTPAGEOFF]
Lloh14:
	adrp	x13, _TileNormAS_noop@GOTPAGE
Lloh15:
	ldr	x13, [x13, _TileNormAS_noop@GOTPAGEOFF]
	csel	x19, x13, x12, eq
	cbnz	w20, LBB0_9
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	tst	w8, #0x800
Lloh16:
	adrp	x12, _TileFlipAS@GOTPAGE
Lloh17:
	ldr	x12, [x12, _TileFlipAS@GOTPAGEOFF]
Lloh18:
	adrp	x13, _TileNormAS@GOTPAGE
Lloh19:
	ldr	x13, [x13, _TileNormAS@GOTPAGEOFF]
	csel	x19, x13, x12, eq
	cbz	w20, LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, #48
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	and	w11, w11, #0x7f
	strb	w11, [x27, w24, sxtw]
	add	w24, w24, #1
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x10]
	ubfx	w10, w11, #24, #3
	tst	w8, #0x800
	cneg	w12, w10, ne
	lsr	w13, w11, #28
	cbz	w13, LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	lsl	w28, w12, #4
	orr	w21, w9, #0x80
	lsl	w9, w8, #20
	asr	w25, w11, #28
	add	w12, w25, #2047
	mul	w12, w10, w12
	and	w9, w12, w9, asr #31
	add	w9, w9, w8
Lloh20:
	adrp	x12, _DrawScanline@GOTPAGE
Lloh21:
	ldr	x12, [x12, _DrawScanline@GOTPAGEOFF]
Lloh22:
	ldr	w12, [x12]
	sub	w11, w12, w11, sxth
	mvn	w12, w11
	add	w10, w12, w10, lsl #3
	tst	w8, #0x1000
	csel	w10, w11, w10, eq
	add	w9, w9, w10, lsr #3
	ubfiz	w22, w10, #1, #3
	bfi	w22, w9, #4, #11
	asr	w23, w8, #16
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	add	w23, w23, #8
	add	w22, w22, w28
	subs	w25, w25, #1
	b.eq	LBB0_2
LBB0_14:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w23, #1
	b.lt	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	cmp	w23, #327
	b.hi	LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	and	w22, w22, #0x7fff
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	blr	x19
	b	LBB0_13
LBB0_17:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	cbz	w20, LBB0_20
; %bb.18:
	ldrb	w8, [x0, #1]
Lloh23:
	adrp	x9, _SPRL_MAY_HAVE_OP@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SPRL_MAY_HAVE_OP@GOTPAGEOFF]
	ldrb	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.19:
Lloh25:
	adrp	x8, _HighCol@GOTPAGE
Lloh26:
	ldr	x8, [x8, _HighCol@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x8]
	add	x8, x9, #8
	ld4.4s	{ v0, v1, v2, v3 }, [x8]
	movi.16b	v4, #127
	and.16b	v16, v0, v4
	and.16b	v17, v1, v4
	and.16b	v18, v2, v4
	and.16b	v19, v3, v4
	st4.4s	{ v16, v17, v18, v19 }, [x8]
	add	x10, x9, #72
	ld4.4s	{ v0, v1, v2, v3 }, [x10]
	and.16b	v16, v0, v4
	and.16b	v17, v1, v4
	and.16b	v18, v2, v4
	and.16b	v19, v3, v4
	st4.4s	{ v16, v17, v18, v19 }, [x10]
	add	x10, x9, #136
	ld4.4s	{ v0, v1, v2, v3 }, [x10]
	and.16b	v16, v0, v4
	and.16b	v17, v1, v4
	and.16b	v18, v2, v4
	and.16b	v19, v3, v4
	st4.4s	{ v16, v17, v18, v19 }, [x10]
	add	x9, x9, #200
	ld4.4s	{ v0, v1, v2, v3 }, [x9]
	and.16b	v16, v0, v4
	and.16b	v17, v1, v4
	and.16b	v18, v2, v4
	and.16b	v19, v3, v4
	st4.4s	{ v16, v17, v18, v19 }, [x9]
	add	x8, x8, #256
	ld4.4s	{ v0, v1, v2, v3 }, [x8]
	and.16b	v16, v0, v4
	and.16b	v17, v1, v4
	and.16b	v18, v2, v4
	and.16b	v19, v3, v4
	st4.4s	{ v16, v17, v18, v19 }, [x8]
	strb	w24, [x0]
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_DrawSpritesSHi
LBB0_20:
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_PDRAW_SPR_LO_ON_HI,4,2         ; @PDRAW_SPR_LO_ON_HI
	.comm	_rendstatus,4,2                 ; @rendstatus
	.comm	_HighPreSpr,8,3                 ; @HighPreSpr
	.comm	_DrawScanline,4,2               ; @DrawScanline
	.comm	_SPRL_MAY_HAVE_OP,1,0           ; @SPRL_MAY_HAVE_OP
	.comm	_HighCol,8,3                    ; @HighCol
	.no_dead_strip	_DrawSpritesHiAS
.subsections_via_symbols
