	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DrawAllSpritesInterlace
_DrawAllSpritesInterlace:               ## @DrawAllSpritesInterlace
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$656, %rsp                      ## imm = 0x290
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_DrawScanline@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	addl	%r8d, %r8d
	movq	_Pico@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movq	8(%rax), %rax
	movl	48(%rax), %r10d
	andl	$1, %r10d
	xorl	$127, %r10d
	andl	20(%rax), %r10d
	shlq	$8, %r10
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r10,%rcx,4), %edx
	andl	$32764, %edx                    ## imm = 0x7FFC
	movl	(%r11,%rdx), %ecx
	movl	4(%r11,%rdx), %r14d
	movl	%r14d, %ebx
	shrl	$15, %ebx
	andl	$1, %ebx
	cmpl	%edi, %ebx
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %ebx
	andl	$1023, %ebx                     ## imm = 0x3FF
	addl	$-256, %ebx
	cmpl	%ebx, %r8d
	jl	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ecx, %esi
	shrl	$20, %esi
	andl	$48, %esi
	addl	%ebx, %esi
	addl	$16, %esi
	cmpl	%esi, %r8d
	jge	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	shrl	$16, %r14d
	andl	$511, %r14d                     ## imm = 0x1FF
	addl	$-448, %r14d                    ## imm = 0xFE40
	cmpl	$-351, %r14d                    ## imm = 0xFEA1
	jb	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	%r11, %rdx
	movslq	%r9d, %rsi
	incl	%r9d
	movq	%rdx, -672(%rbp,%rsi,8)
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	shrl	$16, %ecx
	andl	$127, %ecx
	je	LBB0_9
## %bb.1:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$78, %eax
	ja	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%eax
	cmpl	$20, %r9d
	jle	LBB0_3
LBB0_9:
	testl	%r9d, %r9d
	jle	LBB0_12
## %bb.10:
	movl	%r9d, %ebx
	incq	%rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %eax
	movq	-672(%rbp,%rax,8), %rdi
	callq	_DrawSpriteInterlace
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_11
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$656, %rsp                      ## imm = 0x290
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico,16,3                      ## @Pico
	.comm	_DrawScanline,4,2               ## @DrawScanline
	.no_dead_strip	_DrawAllSpritesInterlace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DrawAllSpritesInterlace
_DrawAllSpritesInterlace:               ; @DrawAllSpritesInterlace
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
	sub	sp, sp, #656
	mov	w8, #0
	mov	w9, #0
	mov	w14, #0
Lloh0:
	adrp	x10, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x10, [x10, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	stur	x10, [x29, #-40]
Lloh3:
	adrp	x10, _DrawScanline@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DrawScanline@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	lsl	w10, w10, #1
Lloh6:
	adrp	x11, _Pico@GOTPAGE
Lloh7:
	ldr	x11, [x11, _Pico@GOTPAGEOFF]
	ldp	x11, x12, [x11]
	ldr	w13, [x12, #20]
	ldr	w12, [x12, #48]
	and	w12, w12, #0x1
	eor	w12, w12, #0x7f
	and	x12, x12, x13
	lsl	x12, x12, #8
	add	x13, sp, #8
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w14, w12, w14, lsl #2
	and	x14, x14, #0x7ffc
	add	x15, x11, x14
	ldp	w14, w16, [x15]
	ubfx	w17, w16, #15, #1
	cmp	w17, w0
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	and	w17, w14, #0x3ff
	sub	w17, w17, #256
	cmp	w10, w17
	lsr	w1, w14, #20
	and	w1, w1, #0x30
	add	w17, w1, w17
	add	w17, w17, #16
	ccmp	w10, w17, #0, ge
	b.lt	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ubfx	w14, w14, #16, #7
	cbz	w14, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w9, #78
	b.hi	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w9, w9, #1
	cmp	w8, #20
	b.le	LBB0_1
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	ubfx	w16, w16, #16, #9
	sub	w16, w16, #448
	cmn	w16, #351
	b.lo	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	str	x15, [x13, w8, sxtw #3]
	add	w8, w8, #1
	b	LBB0_3
LBB0_8:
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	w8, w8
	add	x19, x8, #1
	add	x20, sp, #8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	w8, w19, #2
	ldr	x0, [x20, w8, uxtw #3]
	bl	_DrawSpriteInterlace
	sub	x19, x19, #1
	cmp	x19, #1
	b.hi	LBB0_10
LBB0_11:
	ldur	x8, [x29, #-40]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	add	sp, sp, #656
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico,16,3                      ; @Pico
	.comm	_DrawScanline,4,2               ; @DrawScanline
	.no_dead_strip	_DrawAllSpritesInterlace
.subsections_via_symbols
