	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DrawAllSprites
_DrawAllSprites:                        ## @DrawAllSprites
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_rendstatus@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_PDRAW_SPRITES_MOVED@GOTPCREL(%rip), %rax
	movq	_PDRAW_DIRTY_SPRITES@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	(%rax), %eax
	orl	%edi, %eax
	testl	%ebx, %eax
	je	LBB0_2
## %bb.1:
	andl	%ebx, %edi
	callq	_PrepareSprites
	movl	(%r13), %eax
	movq	_PDRAW_SPRITES_MOVED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	%ebx, %eax
	movq	_rendstatus@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_2:
	movzbl	(%r12), %ebx
	andq	$127, %rbx
	je	LBB0_7
## %bb.3:
	incq	%rbx
	movq	_HighPreSpr@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	decq	%rbx
	cmpq	$1, %rbx
	jbe	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	1(%r12,%rbx), %eax
	movl	%eax, %ecx
	shrl	$7, %ecx
	cmpl	%r15d, %ecx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	%eax, %eax
	movzbl	%al, %edi
	addq	(%r13), %rdi
	movl	%r14d, %esi
	callq	_DrawSprite
	jmp	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rendstatus,4,2                 ## @rendstatus
	.comm	_PDRAW_SPRITES_MOVED,4,2        ## @PDRAW_SPRITES_MOVED
	.comm	_PDRAW_DIRTY_SPRITES,4,2        ## @PDRAW_DIRTY_SPRITES
	.comm	_HighPreSpr,8,3                 ## @HighPreSpr
	.no_dead_strip	_DrawAllSprites
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DrawAllSprites
_DrawAllSprites:                        ; @DrawAllSprites
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _rendstatus@GOTPAGE
Lloh1:
	ldr	x22, [x22, _rendstatus@GOTPAGEOFF]
	ldr	w23, [x22]
Lloh2:
	adrp	x24, _PDRAW_SPRITES_MOVED@GOTPAGE
Lloh3:
	ldr	x24, [x24, _PDRAW_SPRITES_MOVED@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh4:
	adrp	x25, _PDRAW_DIRTY_SPRITES@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PDRAW_DIRTY_SPRITES@GOTPAGEOFF]
	ldr	w8, [x25]
	orr	w9, w8, w9
	tst	w9, w23
	b.eq	LBB0_2
; %bb.1:
	and	w0, w8, w23
	bl	_PrepareSprites
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	bic	w8, w23, w8
	str	w8, [x22]
LBB0_2:
	ldrb	w8, [x21]
	ands	w8, w8, #0x7f
	b.eq	LBB0_7
; %bb.3:
	add	x21, x21, #2
Lloh6:
	adrp	x22, _HighPreSpr@GOTPAGE
Lloh7:
	ldr	x22, [x22, _HighPreSpr@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x23, #1
	mov	x8, x23
	cmp	x9, #1
	b.ls	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x23, x8, #1
	ldrb	w8, [x21, x8]
	cmp	w20, w8, lsr #7
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	lsl	w8, w8, #1
	and	x8, x8, #0xfe
	ldr	x9, [x22]
	add	x0, x9, x8
	mov	x1, x19
	bl	_DrawSprite
	b	LBB0_4
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_rendstatus,4,2                 ; @rendstatus
	.comm	_PDRAW_SPRITES_MOVED,4,2        ; @PDRAW_SPRITES_MOVED
	.comm	_PDRAW_DIRTY_SPRITES,4,2        ; @PDRAW_DIRTY_SPRITES
	.comm	_HighPreSpr,8,3                 ; @HighPreSpr
	.no_dead_strip	_DrawAllSprites
.subsections_via_symbols
