	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DrawStrip
_DrawStrip:                             ## @DrawStrip
	.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
	leal	-1(%r14), %ecx
	andl	$7, %ecx
	incl	%ecx
	movl	8(%rdi), %r13d
	movl	%r13d, %ebx
	subl	%edx, %ebx
	xorl	%eax, %eax
	cmpl	$8, %ecx
	setne	%al
	addl	%eax, %ebx
	jle	LBB0_1
## %bb.2:
	shll	$5, %esi
	andl	$64, %esi
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movl	4(%rdi), %esi
	addl	%esi, %esi
	andl	$14, %esi
	leal	(%rcx,%rdx,8), %r12d
	negl	%r14d
	sarl	$3, %r14d
	addl	%edx, %r14d
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	shll	$25, %esi
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	addl	%eax, %r13d
	subl	%edx, %r13d
	incl	%r13d
	movl	%r12d, %ebx
	shll	$16, %ebx
	movl	$-1, %esi
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movq	_Pico@GOTPCREL(%rip), %r8
	movl	$-1, -52(%rbp)                  ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %eax
	orl	-64(%rbp), %eax                 ## 4-byte Folded Reload
	orl	%r15d, %eax
	movl	%eax, %ecx
	xorl	$469762048, %ecx                ## imm = 0x1C000000
	testl	$4096, %r15d                    ## imm = 0x1000
	cmovel	%eax, %ecx
	movslq	%ecx, %rax
	movq	24(%rdi), %rcx
	leaq	8(%rcx), %rdx
	movq	%rdx, 24(%rdi)
	movq	%rax, (%rcx)
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	$8, %r12d
	incl	%r14d
	decl	%r13d
	addl	$524288, %ebx                   ## imm = 0x80000
	cmpl	$1, %r13d
	jle	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r8), %rax
	movslq	12(%rdi), %rcx
	movl	16(%rdi), %edx
	andl	%r14d, %edx
	movslq	%edx, %rdx
	addq	%rcx, %rdx
	movl	(%rax,%rdx,4), %r15d
	cmpl	%esi, %r15d
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	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, %eax
	shll	$4, %eax
	andl	$32752, %eax                    ## imm = 0x7FF0
	addl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, %ecx
	xorl	$14, %ecx
	testl	$4096, %r15d                    ## imm = 0x1000
	cmovel	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %eax
	shrl	$9, %eax
	andl	$48, %eax
	orl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	testl	$2048, %r15d                    ## imm = 0x800
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_TileNorm
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_TileFlip
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	cmovnel	%r15d, %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	_Pico@GOTPCREL(%rip), %r8
	jmp	LBB0_12
LBB0_13:
	movq	24(%rdi), %rax
	movq	$0, (%rax)
	cmpl	$-1, -52(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_15
	jmp	LBB0_14
LBB0_1:
	movq	24(%rdi), %rax
	movq	$0, (%rax)
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	_Pico,8,3                       ## @Pico
	.comm	_PDRAW_PLANE_HI_PRIO,4,2        ## @PDRAW_PLANE_HI_PRIO
	.comm	_rendstatus,4,2                 ## @rendstatus
	.no_dead_strip	_DrawStrip
.subsections_via_symbols

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