	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HuffmanTree_makeFromLengths
_HuffmanTree_makeFromLengths:           ## @HuffmanTree_makeFromLengths
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	leaq	(,%rdx,4), %rdi
	callq	_lodepng_malloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.2:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rcx,4), %edx
	movl	%edx, (%rax,%rcx,4)
	incl	%ecx
	cmpq	%rbx, %rcx
	jb	LBB0_3
LBB0_4:
	movl	%ebx, 8(%r15)
	movl	%r14d, 12(%r15)
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HuffmanTree_makeFromLengths2   ## TAILCALL
LBB0_5:
	movl	$83, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_HuffmanTree_makeFromLengths
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HuffmanTree_makeFromLengths
_HuffmanTree_makeFromLengths:           ; @HuffmanTree_makeFromLengths
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	lsl	x0, x2, #2
	bl	_lodepng_malloc
	str	x0, [x20]
	cbz	x0, LBB0_5
; %bb.1:
	cbz	x21, LBB0_4
; %bb.2:
	mov	x8, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x9, x8, #2
	ldr	w10, [x22, x9]
	str	w10, [x0, x9]
	add	w8, w8, #1
	cmp	x8, x21
	b.lo	LBB0_3
LBB0_4:
	stp	w21, w19, [x20, #8]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_HuffmanTree_makeFromLengths2
LBB0_5:
	mov	w0, #83
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_HuffmanTree_makeFromLengths
.subsections_via_symbols
