	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function BuildHistograms
_BuildHistograms:                       ## @BuildHistograms
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	testq	%r8, %r8
	je	LBB0_8
## %bb.1:
	movq	%r9, %r12
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	-88(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	cmpq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rax,2), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movups	(%rcx,%rax,8), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	16(%rcx,%rax,8), %rax
	movq	%rax, -48(%rbp)
	movl	-64(%rbp), %esi
	movq	16(%rbp), %rdi
	callq	_HistogramAddCommand
	movq	-56(%rbp), %r15
	testq	%r15, %r15
	je	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rax
	andq	%r13, %rax
	movl	(%r14,%rax,4), %esi
	movq	%r12, %rdi
	callq	_HistogramAddLiteral
	incq	%rbx
	decq	%r15
	jne	LBB0_3
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	callq	_CommandCopyLen
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_CommandCopyLen
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, -64(%rbp)
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %esi
	movq	24(%rbp), %rdi
	callq	_HistogramAddDistance
	jmp	LBB0_7
LBB0_8:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_BuildHistograms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function BuildHistograms
_BuildHistograms:                       ; @BuildHistograms
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x7, [sp, #8]                    ; 8-byte Folded Spill
	cbz	x4, LBB0_8
; %bb.1:
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x26, x0
	mov	x28, #0
	mov	w19, #24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x27, x25
	add	x28, x28, #1
	cmp	x28, x22
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	madd	x8, x28, x19, x23
	ldr	q0, [x8]
	str	q0, [sp, #16]
	ldr	x8, [x8, #16]
	str	x8, [sp, #32]
	ldr	w1, [sp, #16]
	mov	x0, x20
	bl	_HistogramAddCommand
	ldr	x27, [sp, #24]
	cbz	x27, LBB0_5
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	x8, x25, x24
	ldr	w1, [x26, x8, lsl #2]
	mov	x0, x21
	bl	_HistogramAddLiteral
	add	x25, x25, #1
	subs	x27, x27, #1
	b.ne	LBB0_4
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #16
	bl	_CommandCopyLen
	mov	x27, x0
	add	x0, sp, #16
	bl	_CommandCopyLen
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #16]
	cmp	w8, #128
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [sp, #32]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_HistogramAddDistance
	b	LBB0_2
LBB0_8:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_BuildHistograms
.subsections_via_symbols
