	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_n_color
_draw_n_color:                          ## @draw_n_color
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.1:
	movl	%ecx, %r10d
	movl	$-1, %r11d
	movl	%r8d, %ecx
	shll	%cl, %r11d
	movl	24(%rbp), %eax
	movq	16(%rbp), %r12
	notl	%r11d
	movslq	%esi, %r14
	movl	%r10d, %r10d
	movl	%edx, %r13d
	shlq	$2, %r14
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	addq	%r14, %rdi
	cmpq	%r10, %r15
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %ecx
	shrl	%ecx
	leal	(%rcx,%rcx,2), %ecx
	movl	(%r12,%rcx,4), %ecx
	movl	%ecx, (%r9)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%edx, %edx
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movl	%eax, %ecx
	andl	%r11d, %ecx
	movslq	%ecx, %rsi
	movl	%r8d, %ecx
	sarl	%cl, %eax
	movl	(%r9,%rsi,4), %ecx
	movl	%ecx, (%rdi,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r13
	je	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	%ebx, %ecx
	shrl	%ecx
	movl	4(%r12,%rcx,4), %ecx
	movl	%ecx, 4(%r9)
	jmp	LBB0_8
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_draw_n_color
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_n_color
_draw_n_color:                          ; @draw_n_color
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	cmp	w3, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x8, #0
	mov	w9, #-1
	lsl	w9, w9, w4
	mvn	w9, w9
	mov	w10, w3
	mov	w11, w2
	sbfiz	x12, x1, #2, #32
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	add	x0, x0, x12
	cmp	x8, x10
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cbz	x6, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ubfx	x13, x8, #1, #31
	add	w13, w13, w13, lsl #1
	ldr	w13, [x6, w13, uxtw #2]
	str	w13, [x5]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w2, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x13, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	and	w14, w7, w9
	ldr	w14, [x5, w14, sxtw #2]
	str	w14, [x0, x13, lsl #2]
	asr	w7, w7, w4
	add	x13, x13, #1
	cmp	x11, x13
	b.eq	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	x6, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ubfx	x14, x13, #1, #31
	add	w14, w14, #1
	ldr	w14, [x6, w14, uxtw #2]
	str	w14, [x5, #4]
	b	LBB0_7
LBB0_10:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_draw_n_color
.subsections_via_symbols
