	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_contrast_change
_compute_contrast_change:               ## @compute_contrast_change
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.1:
	cmpq	$1, %rcx
	jne	LBB0_3
## %bb.2:
	xorl	%r9d, %r9d
LBB0_13:
	testb	$1, %cl
	je	LBB0_19
## %bb.14:
	movss	(%rdi,%r9,4), %xmm0             ## xmm0 = mem[0],zero,zero,zero
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	ucomiss	(%rsi,%rax,4), %xmm0
	jbe	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_15
## %bb.17:
	movq	%rcx, %rax
LBB0_18:
	addl	%r9d, %eax
	shrl	%eax
	movl	%eax, (%rdx,%r9,4)
LBB0_19:
	popq	%rbp
	retq
LBB0_3:
	movq	%rcx, %r8
	andq	$-2, %r8
	xorl	%r9d, %r9d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	addl	%r10d, %eax
	shrl	%eax
	movl	%eax, (%rdx,%r10,4)
	addq	$2, %r9
	cmpq	%r8, %r9
	je	LBB0_13
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
	movss	(%rdi,%r9,4), %xmm0             ## xmm0 = mem[0],zero,zero,zero
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	ucomiss	(%rsi,%rax,4), %xmm0
	jbe	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, %rax
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	%r9d, %eax
	shrl	%eax
	movl	%eax, (%rdx,%r9,4)
	movq	%r9, %r10
	orq	$1, %r10
	movss	(%rdi,%r10,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	ucomiss	(%rsi,%rax,4), %xmm0
	jbe	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_compute_contrast_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_contrast_change
_compute_contrast_change:               ; @compute_contrast_change
	.cfi_startproc
; %bb.0:
	cbz	x3, LBB0_7
; %bb.1:
	mov	x8, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w9, w8
	lsr	w9, w9, #1
	str	w9, [x2, x8, lsl #2]
	add	x8, x8, #1
	cmp	x8, x3
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x9, #0
	ldr	s0, [x0, x8, lsl #2]
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	s1, [x1, x9, lsl #2]
	fcmp	s1, s0
	b.pl	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x9, x9, #1
	cmp	x3, x9
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x9, x3
	b	LBB0_2
LBB0_7:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_compute_contrast_change
.subsections_via_symbols
