	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_histogram_diff
_update_histogram_diff:                 ## @update_histogram_diff
	.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
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movl	16(%rsi), %eax
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %ecx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%esi
	cmpl	%ecx, %esi
	jge	LBB0_12
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%eax, %eax
	jle	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %rcx
	movq	24(%r15), %rdx
	movslq	(%rcx), %r14
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movslq	%esi, %rcx
	imulq	%rcx, %r14
	addq	(%rdx), %r14
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rsi), %rdx
	movq	24(%rsi), %rsi
	movslq	(%rdx), %r13
	imulq	%rcx, %r13
	addq	(%rsi), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%r12
	movslq	%eax, %rcx
	cmpq	%rcx, %r12
	jge	LBB0_10
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14,%r12,8), %rsi
	cmpq	(%r13,%r12,8), %rsi
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_color_inc
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	addl	%eax, %ebx
	movl	16(%r15), %eax
	jmp	LBB0_9
LBB0_7:
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_1:
	xorl	%ebx, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_update_histogram_diff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_histogram_diff
_update_histogram_diff:                 ; @update_histogram_diff
	.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
	ldr	w9, [x1]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	w20, #0
	mov	w23, #0
	ldr	w8, [x1, #16]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x21]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	cmp	w23, w9
	b.ge	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, #0
	ldr	x9, [x21, #24]
	ldr	x9, [x9]
	ldr	x10, [x21, #8]
	ldrsw	x10, [x10]
	sxtw	x11, w23
	madd	x25, x10, x11, x9
	ldr	x9, [x19, #24]
	ldr	x9, [x9]
	ldr	x10, [x19, #8]
	ldrsw	x10, [x10]
	madd	x26, x10, x11, x9
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x9, x24, #3
	ldr	x1, [x25, x9]
	ldr	x9, [x26, x9]
	cmp	x1, x9
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x22
	bl	_color_inc
	tbnz	w0, #31, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	add	w20, w0, w20
	ldr	w8, [x21, #16]
	b	LBB0_6
LBB0_10:
	mov	x20, x0
	b	LBB0_12
LBB0_11:
	mov	w20, #0
LBB0_12:
	mov	x0, x20
	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	_update_histogram_diff
.subsections_via_symbols
