	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function histogram_diff
_histogram_diff:                        ## @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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movl	%r8d, %r15d
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jg	LBB0_10
## %bb.1:
	xorl	%r12d, %r12d
	testl	%ebx, %ebx
	jle	LBB0_19
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_10 Depth=1
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_10 Depth=1
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_10 Depth=1
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movq	%r13, %r14
	movl	%r15d, %r13d
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	%ebx, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	%r13d, %r15d
	movq	%r14, %r13
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %ecx
	movl	%r13d, %r8d
	movl	%r15d, %r9d
	callq	_find_lcs
	testl	%eax, %eax
	js	LBB0_19
## %bb.5:                               ##   in Loop: Header=BB0_10 Depth=1
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_10 Depth=1
	movl	-80(%rbp), %ecx
	movl	-76(%rbp), %r9d
	movl	%ecx, %eax
	orl	%r9d, %eax
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_10 Depth=1
	subl	%r14d, %ecx
	subl	%r15d, %r9d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%r15d, %r8d
	callq	_histogram_diff
	testl	%eax, %eax
	jne	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, %edi
	callq	_LINE_END
	movq	%rax, %r13
	movl	-72(%rbp), %r14d
	subl	%r14d, %r13d
	incl	%r14d
	movl	$2, %edi
	callq	_LINE_END
	movq	%rax, %rbx
	movl	-68(%rbp), %r15d
	subl	%r15d, %ebx
	incl	%r15d
	testl	%r13d, %r13d
	jg	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	testl	%ebx, %ebx
	jle	LBB0_17
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_LINE_END
	movl	$-1, %r12d
	movq	_MAX_PTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_2
	jmp	LBB0_19
LBB0_11:
	xorl	%r12d, %r12d
	testl	%ebx, %ebx
	je	LBB0_19
## %bb.12:
	decl	%r15d
	movslq	%r15d, %rdi
	shlq	$2, %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rdi
	movl	%ebx, %edx
	shlq	$2, %rdx
	leaq	L_.memset_pattern.3(%rip), %rsi
	callq	_memset_pattern16
	jmp	LBB0_19
LBB0_13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movslq	%r14d, %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$-4, %rdi
	decl	%r13d
	leaq	4(,%r13,4), %rdx
	leaq	L_.memset_pattern.3(%rip), %rsi
	jmp	LBB0_16
LBB0_14:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movl	%r15d, %r8d
	movl	%ebx, %r9d
	callq	_fall_back_to_classic_diff
LBB0_18:
	movl	%eax, %r12d
	jmp	LBB0_19
LBB0_15:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r12), %rax
	movslq	%r14d, %rcx
	leaq	(%rax,%rcx,4), %rdi
	addq	$-4, %rdi
	decl	%r13d
	leaq	4(,%r13,4), %rdx
	leaq	L_.memset_pattern.3(%rip), %r14
	movq	%r14, %rsi
	callq	_memset_pattern16
	decl	%r15d
	movslq	%r15d, %rdi
	shlq	$2, %rdi
	addq	(%r12), %rdi
	decl	%ebx
	leaq	4(,%rbx,4), %rdx
	movq	%r14, %rsi
LBB0_16:
	callq	_memset_pattern16
LBB0_17:
	xorl	%r12d, %r12d
LBB0_19:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PTR,8,3                    ## @MAX_PTR
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern.3
L_.memset_pattern.3:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1

	.no_dead_strip	_histogram_diff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function histogram_diff
_histogram_diff:                        ; @histogram_diff
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x5
	mov	x20, x4
	mov	x23, x3
	mov	x24, x2
	mov	x19, x1
	mov	x22, x0
	cmp	w3, #0
	b.gt	LBB0_4
; %bb.1:
	cmp	w21, #1
	b.ge	LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
Lloh0:
	adrp	x25, _MAX_PTR@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MAX_PTR@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_LINE_END
	ldr	x8, [x25]
	cmp	x0, x8
	b.ge	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w23, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w21, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	x2, sp
	mov	x0, x22
	mov	x1, x19
	mov	x3, x24
	mov	x4, x23
	mov	x5, x20
	mov	x6, x21
	bl	_find_lcs
	tbnz	w0, #31, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w0, LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldp	w8, w9, [sp]
	orr	w10, w8, w9
	cbz	w10, LBB0_20
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	sub	w3, w8, w24
	sub	w5, w9, w20
	mov	x0, x22
	mov	x1, x19
	mov	x2, x24
	mov	x4, x20
	bl	_histogram_diff
	cbnz	w0, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
	bl	_LINE_END
	ldr	w8, [sp, #8]
	sub	w23, w0, w8
	add	w24, w8, #1
	mov	w0, #2
	bl	_LINE_END
	ldr	w8, [sp, #12]
	sub	w21, w0, w8
	add	w20, w8, #1
	cmp	w23, #0
	b.gt	LBB0_5
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w21, #0
	b.gt	LBB0_5
	b	LBB0_2
LBB0_14:
	mov	w0, #-1
	b	LBB0_3
LBB0_15:
	cbz	w21, LBB0_2
; %bb.16:
	ldr	x8, [x19]
	sub	w9, w20, #1
	add	x0, x8, w9, sxtw #2
	mov	w8, w21
	lsl	x2, x8, #2
	b	LBB0_18
LBB0_17:
	ldr	x8, [x19, #8]
	add	x8, x8, w24, sxtw #2
	sub	x0, x8, #4
	sub	w8, w23, #1
	lsl	x8, x8, #2
	add	x2, x8, #4
LBB0_18:
Lloh2:
	adrp	x1, l_.memset_pattern.3@PAGE
Lloh3:
	add	x1, x1, l_.memset_pattern.3@PAGEOFF
	bl	_memset_pattern16
	b	LBB0_2
LBB0_19:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x24
	mov	x3, x23
	mov	x4, x20
	mov	x5, x21
	bl	_fall_back_to_classic_diff
	b	LBB0_3
LBB0_20:
	ldr	x8, [x19, #8]
	add	x8, x8, w24, sxtw #2
	sub	x0, x8, #4
	sub	w8, w23, #1
	lsl	x8, x8, #2
	add	x2, x8, #4
Lloh4:
	adrp	x22, l_.memset_pattern.3@PAGE
Lloh5:
	add	x22, x22, l_.memset_pattern.3@PAGEOFF
	mov	x1, x22
	bl	_memset_pattern16
	ldr	x8, [x19]
	sub	w9, w20, #1
	add	x0, x8, w9, sxtw #2
	sub	w8, w21, #1
	lsl	x8, x8, #2
	add	x2, x8, #4
	mov	x1, x22
	bl	_memset_pattern16
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PTR,8,3                    ; @MAX_PTR
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern.3
l_.memset_pattern.3:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1

	.no_dead_strip	_histogram_diff
.subsections_via_symbols
