	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_sprites
_draw_sprites:                          ## @draw_sprites
	.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	$80, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_Pico@GOTPCREL(%rip), %rax
	movq	8(%rax), %rdx
	movl	(%rdx), %r8d
	movl	4(%rdx), %esi
	notl	%r8d
	andl	$8, %r8d
	movl	20(%rdx), %r14d
	andl	$126, %r14d
	shlq	$7, %r14
	addq	(%rax), %r14
	xorl	%r9d, %r9d
	andl	$2, %esi
	sete	%r9b
	orl	$254, %r9d
	leal	8(,%rsi,4), %r11d
	movl	24(%rdx), %r10d
	andl	$4, %r10d
	shll	$10, %r10d
	xorl	%edx, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%rdx), %eax
	leal	1(%rax), %ebx
	cmpl	$209, %ebx
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	(%rbx,%r11), %ecx
	cmpl	%edi, %ecx
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%edi, %eax
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movzbl	128(%r14,%rdx,2), %eax
	addl	%r8d, %eax
	movslq	%esi, %rsi
	movl	%eax, -96(%rbp,%rsi,4)
	movzbl	129(%r14,%rdx,2), %eax
	andl	%r9d, %eax
	shll	$4, %eax
	movl	%edi, %ecx
	subl	%ebx, %ecx
	leal	(%r10,%rcx,2), %ecx
	addl	%eax, %ecx
	movl	%ecx, -64(%rbp,%rsi,4)
	incl	%esi
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$62, %rdx
	ja	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%rdx
	cmpl	$8, %esi
	jl	LBB0_1
LBB0_7:
	testl	%esi, %esi
	jle	LBB0_10
## %bb.8:
	movl	%esi, %ebx
	incq	%rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %eax
	movl	-96(%rbp,%rax,4), %edi
	movl	-64(%rbp,%rax,4), %esi
	movl	$16, %edx
	callq	_TileNormM4
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_9
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$80, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico,16,3                      ## @Pico
	.no_dead_strip	_draw_sprites
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_sprites
_draw_sprites:                          ; @draw_sprites
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x9, #0
	mov	x10, #0
	mov	w8, #0
Lloh0:
	adrp	x11, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x11, [x11, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	stur	x11, [x29, #-40]
Lloh3:
	adrp	x11, _Pico@GOTPAGE
Lloh4:
	ldr	x11, [x11, _Pico@GOTPAGEOFF]
	ldp	x13, x12, [x11]
	ldp	w11, w14, [x12]
	mvn	w11, w11
	and	w11, w11, #0x8
	ldp	w15, w16, [x12, #20]
	lsl	w12, w15, #7
	and	x12, x12, #0x3f00
	add	x12, x13, x12
	tst	w14, #0x2
	mov	w13, #254
	cinc	w13, w13, eq
	mov	w14, #16
	mov	w15, #8
	csel	w14, w15, w14, eq
	lsl	w15, w16, #10
	and	w15, w15, #0x1000
	add	x16, sp, #8
	add	x17, sp, #40
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w2, [x12, x10]
	add	w1, w2, #1
	cmp	w1, #209
	b.eq	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w3, w1, w14
	cmp	w3, w0
	ccmp	w2, w0, #0, gt
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x2, x12, x9
	ldrb	w3, [x2, #128]
	add	w3, w11, w3
	sbfiz	x4, x8, #2, #32
	str	w3, [x16, x4]
	ldrb	w2, [x2, #129]
	and	w2, w13, w2
	sub	w1, w0, w1
	add	w1, w15, w1, lsl #1
	add	w1, w1, w2, lsl #4
	str	w1, [x17, x4]
	add	w8, w8, #1
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	x10, #62
	b.hi	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x10, x10, #1
	add	x9, x9, #2
	cmp	w8, #8
	b.lt	LBB0_1
LBB0_6:
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	w8, w8
	add	x19, x8, #1
	add	x20, sp, #8
	add	x21, sp, #40
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w19, #2
	lsl	x8, x8, #2
	ldr	w0, [x20, x8]
	ldr	w1, [x21, x8]
	mov	w2, #16
	bl	_TileNormM4
	sub	x19, x19, #1
	cmp	x19, #1
	b.hi	LBB0_8
LBB0_9:
	ldur	x8, [x29, #-40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico,16,3                      ; @Pico
	.no_dead_strip	_draw_sprites
.subsections_via_symbols
