	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function color_tree_add
_color_tree_add:                        ## @color_tree_add
	.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
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r9d
	movl	%esi, %r13d
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	%r14d
	movq	%rax, %r15
	cmpl	$8, %r14d
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %eax
	movl	%r14d, %ecx
	shrl	%cl, %eax
	movl	%edx, %edi
	shrl	%cl, %edi
	movl	%r9d, %ebx
	shrl	%cl, %ebx
	andl	$1, %eax
	andl	$1, %edi
	andl	$1, %ebx
	xorl	%ecx, %ecx
	btl	%r14d, %r8d
	setb	%cl
	leal	(%rcx,%rdi,4), %ecx
	leal	(%rcx,%rax,8), %eax
	leal	(%rax,%rbx,2), %r12d
	movq	8(%r15), %rax
	movq	(%rax,%r12,8), %rax
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$16, %edi
	movl	%edx, %ebx
	callq	_lodepng_malloc
	movq	8(%r15), %rcx
	movq	%rax, (%rcx,%r12,8)
	movq	8(%r15), %rax
	movq	(%rax,%r12,8), %rdi
	callq	_color_tree_init
	movl	%ebx, %edx
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movq	8(%r15), %rax
	movq	(%rax,%r12,8), %rax
	jmp	LBB0_3
LBB0_4:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_color_tree_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function color_tree_add
_color_tree_add:                        ; @color_tree_add
	.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, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	mov	w25, #0
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w25, w25, #1
	mov	x24, x8
	cmp	w25, #8
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w23, w25
	lsr	w9, w22, w25
	lsr	w10, w21, w25
	lsr	w11, w20, w25
	and	w26, w11, #0x1
	bfi	w26, w9, #2, #1
	bfi	w26, w8, #3, #1
	bfi	w26, w10, #1, #1
	ldr	x8, [x24, #8]
	ldr	x8, [x8, w26, uxtw #3]
	cbnz	x8, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #16
	bl	_lodepng_malloc
	ldr	x8, [x24, #8]
	lsl	x26, x26, #3
	str	x0, [x8, x26]
	ldr	x8, [x24, #8]
	ldr	x0, [x8, x26]
	bl	_color_tree_init
	ldr	x8, [x24, #8]
	ldr	x8, [x8, x26]
	b	LBB0_1
LBB0_4:
	str	w19, [x8]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_color_tree_add
.subsections_via_symbols
