	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DrawStripVSRam                 ## -- Begin function DrawStripVSRam
	.p2align	4, 0x90
_DrawStripVSRam:                        ## @DrawStripVSRam
	.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
                                        ## kill: def $edx killed $edx def $rdx
	movl	(%rdi), %r14d
	movl	4(%rdi), %r8d
	leal	-1(%r14), %ecx
	andl	$7, %ecx
	incl	%ecx
	xorl	%eax, %eax
	cmpl	$8, %ecx
	setne	%al
	movl	%edx, %r12d
	subl	%eax, %r12d
	cmpl	%r8d, %r12d
	jge	LBB0_1
## %bb.2:
	movq	_DrawScanline@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leal	(%rcx,%rdx,8), %r13d
	negl	%r14d
	sarl	$3, %r14d
	addl	%edx, %r14d
	movl	%esi, %r10d
	andl	$1, %r10d
	shll	$5, %esi
	andl	$64, %esi
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movl	%r13d, %ebx
	shll	$16, %ebx
	movl	$-1, %r11d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$-1, -52(%rbp)                  ## 4-byte Folded Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movl	%r10d, -56(%rbp)                ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %ecx
	orl	%ebx, %ecx
	shll	$25, %eax
	orl	%ecx, %eax
	movl	%eax, %ecx
	xorl	$469762048, %ecx                ## imm = 0x1C000000
	testl	$4096, %r15d                    ## imm = 0x1000
	cmovel	%eax, %ecx
	movslq	%ecx, %rcx
	movq	24(%rdi), %rdx
	leaq	8(%rdx), %rsi
	movq	%rsi, 24(%rdi)
	movq	%rcx, (%rdx)
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	$8, %r13d
	incl	%r14d
	incl	%r12d
	addl	$524288, %ebx                   ## imm = 0x80000
	cmpl	%r8d, %r12d
	jge	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %ecx
	andl	$-2, %ecx
	orl	%r10d, %ecx
	movslq	%ecx, %rcx
	movq	_Pico@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rsi
	movl	(%rdx,%rcx,4), %eax
	addl	%r9d, %eax
	movl	8(%rdi), %ecx
	andl	%ecx, %eax
	movl	%eax, %edx
	shrl	$3, %edx
	andl	$8191, %edx                     ## imm = 0x1FFF
	shrl	$24, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	addl	12(%rdi), %edx
	movl	16(%rdi), %ecx
	andl	%r14d, %ecx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	movl	(%rsi,%rcx,4), %r15d
	cmpl	%r11d, %r15d
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%eax, %eax
	andl	$14, %eax
	cmpl	$32768, %r15d                   ## imm = 0x8000
	jae	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	-52(%rbp), %r15d                ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %ecx
	shll	$4, %ecx
	andl	$32752, %ecx                    ## imm = 0x7FF0
	movl	$14, %edx
	subl	%eax, %edx
	testl	$4096, %r15d                    ## imm = 0x1000
	cmovel	%eax, %edx
	orl	%ecx, %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%r15d, %eax
	shrl	$9, %eax
	andl	$48, %eax
	orl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	$2048, %r15d                    ## imm = 0x800
	movl	%r11d, -64(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_TileNorm
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_TileFlip
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-64(%rbp), %r11d                ## 4-byte Reload
	movl	-56(%rbp), %r10d                ## 4-byte Reload
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	testl	%eax, %eax
	cmovnel	%r15d, %r11d
	movl	4(%rdi), %r8d
	jmp	LBB0_12
LBB0_1:
	movq	24(%rdi), %rax
	movq	$0, (%rax)
	jmp	LBB0_14
LBB0_13:
	movq	24(%rdi), %rax
	movq	$0, (%rax)
	cmpl	$-1, -52(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_15
LBB0_14:
	movq	_PDRAW_PLANE_HI_PRIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_rendstatus@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DrawScanline,4,2               ## @DrawScanline
	.comm	_Pico,16,3                      ## @Pico
	.comm	_PDRAW_PLANE_HI_PRIO,4,2        ## @PDRAW_PLANE_HI_PRIO
	.comm	_rendstatus,4,2                 ## @rendstatus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DrawStripVSRam                 ; -- Begin function DrawStripVSRam
	.p2align	2
_DrawStripVSRam:                        ; @DrawStripVSRam
	.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
	mov	x19, x0
	ldp	w9, w8, [x0]
	sub	w10, w9, #1
	and	w10, w10, #0x7
	add	w10, w10, #1
	cmp	w10, #8
	cset	w11, ne
	sub	w23, w2, w11
	cmp	w23, w8
	b.ge	LBB0_10
; %bb.1:
	mov	w24, #0
	mov	w26, #0
Lloh0:
	adrp	x11, _DrawScanline@GOTPAGE
Lloh1:
	ldr	x11, [x11, _DrawScanline@GOTPAGEOFF]
Lloh2:
	ldr	w16, [x11]
	add	w22, w10, w2, lsl #3
	neg	w9, w9
	add	w25, w2, w9, asr #3
	and	w17, w1, #0x1
	lsl	w9, w1, #5
	and	w9, w9, #0x40
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	lsl	w28, w22, #16
	mov	w27, #-1
Lloh3:
	adrp	x2, _Pico@GOTPAGE
Lloh4:
	ldr	x2, [x2, _Pico@GOTPAGEOFF]
	mov	w20, #-1
	stp	w17, w16, [sp, #4]              ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	orr	w10, w21, w28
	orr	w9, w10, w9, lsl #25
	eor	w10, w9, #0x1c000000
	tst	w21, #0x1000
	csel	w9, w9, w10, eq
	sxtw	x9, w9
	ldr	x10, [x19, #24]
	str	x9, [x10], #8
	str	x10, [x19, #24]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #8
	add	w25, w25, #1
	add	w23, w23, #1
	add	w28, w28, #128, lsl #12         ; =524288
	cmp	w23, w8
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	and	w9, w23, #0xfffffffe
	orr	w9, w9, w17
	ldp	x10, x11, [x2]
	ldr	w9, [x10, w9, sxtw #2]
	ldp	w10, w12, [x19, #8]
	add	w9, w9, w16
	and	w9, w9, w10
	ubfx	w13, w9, #3, #13
	asr	w10, w10, #24
	lsl	w10, w13, w10
	ldr	w13, [x19, #16]
	and	w13, w13, w25
	add	w10, w10, w12
	add	w10, w10, w13
	ldr	w21, [x11, w10, sxtw #2]
	cmp	w21, w27
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ubfiz	w9, w9, #1, #3
	cmp	w21, #8, lsl #12                ; =32768
	b.hs	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ubfiz	w8, w21, #4, #11
	mov	w10, #14
	sub	w10, w10, w9
	tst	w21, #0x1000
	csel	w9, w9, w10, eq
	orr	w8, w9, w8
	lsr	w9, w21, #9
	and	w9, w9, #0x30
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	orr	w9, w9, w10
	cmp	w21, w20
	csel	w20, w20, w21, eq
	csel	w26, w26, w9, eq
	csel	w24, w24, w8, eq
	mov	x0, x22
	mov	x1, x24
	mov	x2, x26
	tbnz	w21, #11, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_TileNorm
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_TileFlip
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh5:
	adrp	x2, _Pico@GOTPAGE
Lloh6:
	ldr	x2, [x2, _Pico@GOTPAGEOFF]
	ldp	w17, w16, [sp, #4]              ; 8-byte Folded Reload
	cmp	w0, #0
	csel	w27, w27, w21, eq
	ldr	w8, [x19, #4]
	b	LBB0_3
LBB0_10:
	ldr	x8, [x19, #24]
	str	xzr, [x8]
	b	LBB0_12
LBB0_11:
	ldr	x8, [x19, #24]
	str	xzr, [x8]
	cmn	w20, #1
	b.ne	LBB0_13
LBB0_12:
Lloh7:
	adrp	x8, _PDRAW_PLANE_HI_PRIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PDRAW_PLANE_HI_PRIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _rendstatus@GOTPAGE
Lloh11:
	ldr	x9, [x9, _rendstatus@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_13:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DrawScanline,4,2               ; @DrawScanline
	.comm	_Pico,16,3                      ; @Pico
	.comm	_PDRAW_PLANE_HI_PRIO,4,2        ; @PDRAW_PLANE_HI_PRIO
	.comm	_rendstatus,4,2                 ; @rendstatus
.subsections_via_symbols
