	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DrawSpriteInterlace
_DrawSpriteInterlace:                   ## @DrawSpriteInterlace
	.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), %eax
	movl	4(%rdi), %r12d
	movl	%eax, %r14d
	shrl	$24, %r14d
	movl	%eax, %ecx
	andl	$1023, %ecx                     ## imm = 0x3FF
	shrl	$26, %eax
	andl	$3, %eax
	andl	$3, %r14d
	leal	1(%rax), %r13d
	leal	1(%r14), %edx
	movq	_DrawScanline@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	addl	%edi, %edi
	subl	%ecx, %edi
	addl	$256, %edi                      ## imm = 0x100
	movl	%r12d, %r15d
	shrl	$16, %r15d
	andl	$511, %r15d                     ## imm = 0x1FF
	addl	$-120, %r15d
	movl	%r12d, %ebx
	shll	$19, %ebx
	sarl	$31, %ebx
	movl	$32, %esi
	movl	%r14d, %ecx
	shll	%cl, %esi
	decl	%esi
	andl	%ebx, %esi
	xorl	%edi, %esi
	movl	%r12d, %ecx
	andl	$1023, %ecx                     ## imm = 0x3FF
	movl	%esi, %edi
	shrl	$4, %edi
	movl	%r12d, %ebx
	shll	$20, %ebx
	sarl	$31, %ebx
	imull	%edx, %eax
	andl	%ebx, %eax
	addl	%ecx, %eax
	addl	%edi, %eax
	testl	$2048, %r12d                    ## imm = 0x800
	notl	%r14d
	cmovel	%edx, %r14d
	shll	$5, %eax
	andl	$15, %esi
	leal	(%rax,%rsi,2), %ebx
	shll	$5, %r14d
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	shrl	$9, %r12d
	andl	$48, %r12d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_TileNorm
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	addl	%r14d, %ebx
	addl	$8, %r15d
	decl	%r13d
	je	LBB0_7
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$327, %r15d                     ## imm = 0x147
	ja	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	andl	$32767, %ebx                    ## imm = 0x7FFF
	testl	$2048, -44(%rbp)                ## 4-byte Folded Reload
                                        ## imm = 0x800
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_TileFlip
	jmp	LBB0_6
LBB0_7:
	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	_DrawSpriteInterlace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DrawSpriteInterlace
_DrawSpriteInterlace:                   ; @DrawSpriteInterlace
	.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	w8, w21, [x0]
	and	w9, w8, #0x3ff
	ubfx	w23, w8, #26, #2
	ubfx	w8, w8, #24, #2
	add	w10, w8, #1
Lloh0:
	adrp	x11, _DrawScanline@GOTPAGE
Lloh1:
	ldr	x11, [x11, _DrawScanline@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	lsl	w11, w11, #1
	sub	w9, w11, w9
	add	w9, w9, #256
	ubfx	w22, w21, #16, #9
	lsl	w11, w21, #19
	mov	w12, #32
	lsl	w12, w12, w8
	sub	w12, w12, #1
	and	w11, w12, w11, asr #31
	eor	w9, w11, w9
	and	w11, w21, #0x3ff
	lsl	w12, w21, #20
	mul	w10, w10, w23
	mvn	w13, w8
	and	w10, w10, w12, asr #31
	add	w10, w10, w11
	add	w10, w10, w9, lsr #4
	tst	w21, #0x800
	csinc	w24, w13, w8, ne
	ubfiz	w20, w9, #1, #4
	bfi	w20, w10, #5, #27
	lsr	w8, w21, #9
	and	w19, w8, #0x30
	cmp	w22, #121
	b.hs	LBB0_8
LBB0_1:
	cbz	w23, LBB0_22
; %bb.2:
	lsl	w24, w24, #5
	add	w20, w20, w24
	cmp	w22, #113
	b.hs	LBB0_11
LBB0_3:
	cmp	w23, #1
	b.eq	LBB0_22
; %bb.4:
	add	w20, w20, w24
	cmp	w22, #105
	b.lo	LBB0_17
; %bb.5:
	sub	w0, w22, #104
	cmp	w0, #327
	b.hi	LBB0_22
; %bb.6:
	and	w20, w20, #0x7fff
	mov	x1, x20
	mov	x2, x19
	tbnz	w21, #11, LBB0_16
; %bb.7:
	bl	_TileNorm
	b	LBB0_17
LBB0_8:
	sub	w0, w22, #120
	cmp	w0, #327
	b.hi	LBB0_22
; %bb.9:
	and	w20, w20, #0x7ffe
	mov	x1, x20
	mov	x2, x19
	tbnz	w21, #11, LBB0_14
; %bb.10:
	bl	_TileNorm
	b	LBB0_1
LBB0_11:
	sub	w0, w22, #112
	cmp	w0, #327
	b.hi	LBB0_22
; %bb.12:
	and	w20, w20, #0x7fff
	mov	x1, x20
	mov	x2, x19
	tbnz	w21, #11, LBB0_15
; %bb.13:
	bl	_TileNorm
	b	LBB0_3
LBB0_14:
	bl	_TileFlip
	b	LBB0_1
LBB0_15:
	bl	_TileFlip
	b	LBB0_3
LBB0_16:
	bl	_TileFlip
LBB0_17:
	cmp	w23, #2
	b.eq	LBB0_22
; %bb.18:
	cmp	w22, #97
	b.lo	LBB0_22
; %bb.19:
	sub	w0, w22, #96
	cmp	w0, #327
	b.hi	LBB0_22
; %bb.20:
	add	w8, w20, w24
	and	w1, w8, #0x7fff
	mov	x2, x19
	tbnz	w21, #11, LBB0_23
; %bb.21:
	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
	b	_TileNorm
LBB0_22:
	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
LBB0_23:
	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
	b	_TileFlip
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DrawScanline,4,2               ; @DrawScanline
	.no_dead_strip	_DrawSpriteInterlace
.subsections_via_symbols
