	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_strip
_draw_strip:                            ## @draw_strip
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	jle	LBB0_11
## %bb.1:
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movl	%esi, %r15d
	incl	%r14d
	movl	$-1, %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$-1, -52(%rbp)                  ## 4-byte Folded Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_TileNormM4
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testl	%eax, %eax
	cmovnel	%r12d, %r13d
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	$8, %r15d
	incl	%ebx
	decl	%r14d
	cmpl	$1, %r14d
	jle	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	andl	$31, %eax
	movzwl	(%rdi,%rax,2), %r12d
	cmpl	%r12d, %r13d
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %eax
	xorl	%r12d, %eax
	testl	$4096, %eax                     ## imm = 0x1000
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r12d, -52(%rbp)                ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %eax
	shll	$4, %eax
	andl	$8176, %eax                     ## imm = 0x1FF0
	movl	%ebx, %ecx
	sarl	$16, %ecx
	addl	%eax, %ecx
	movl	%ecx, %eax
	xorl	$14, %eax
	testl	$1024, %r12d                    ## imm = 0x400
	cmovel	%ecx, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r12d, %eax
	shrl	$7, %eax
	andl	$16, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %edi
	testl	$512, %r12d                     ## imm = 0x200
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_TileFlipM4
	jmp	LBB0_9
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_draw_strip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_strip
_draw_strip:                            ; @draw_strip
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cmp	w2, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	mov	w22, #0
	mov	w23, #0
	add	w24, w2, #1
	mov	w25, #-1
	mov	w26, #-1
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_TileNormM4
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w0, #0
	csel	w25, w25, w27, eq
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w20, w20, #8
	add	w19, w19, #1
	sub	w24, w24, #1
	cmp	w24, #1
	b.le	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	and	w8, w19, #0x1f
	ldrh	w27, [x21, w8, uxtw #1]
	cmp	w25, w27
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	eor	w8, w19, w27
	tbnz	w8, #12, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ubfiz	w8, w27, #4, #9
	add	w8, w8, w19, asr #16
	eor	w9, w8, #0xe
	tst	w27, #0x400
	csel	w8, w8, w9, eq
	lsr	w9, w27, #7
	and	w9, w9, #0x10
	cmp	w26, w27
	csel	w26, w26, w27, eq
	csel	w23, w23, w8, eq
	csel	w22, w22, w9, eq
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	tbz	w27, #9, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_TileFlipM4
	b	LBB0_3
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_draw_strip
.subsections_via_symbols
