	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function column_all_dark
_column_all_dark:                       ## @column_all_dark
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movl	4(%rax), %edi
	addl	%esi, %edx
	subl	%edx, %edi
	testl	%edi, %edi
	jle	LBB0_5
## %bb.1:
	movslq	(%rax), %r14
	movslq	%esi, %rdx
	imulq	%r14, %rdx
	shlq	$2, %rdx
	addq	8(%rax), %rdx
	movslq	%ecx, %rax
	leaq	(%rdx,%rax,4), %r15
	shlq	$2, %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leal	1(%rdi), %ebx
	xorl	%r13d, %r13d
	movq	%r15, %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_clampBlack
	addl	%eax, %r13d
	addq	%r14, %r12
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_2
## %bb.3:
	movq	%r14, %rbx
	movl	%r13d, %eax
	cltd
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	idivl	%r12d
	movl	%eax, %r14d
	movq	_DARK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	setl	%al
	jge	LBB0_9
## %bb.4:
	incl	%r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_clampBlack
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_absdiff
	cmpl	$17, %eax
	jge	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	%rbx, %r15
	decl	%r12d
	cmpl	$2, %r12d
	jge	LBB0_7
LBB0_8:
	cmpl	$17, %eax
	setl	%al
	jmp	LBB0_9
LBB0_5:
	movq	_DARK@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	setg	%al
LBB0_9:
	movzbl	%al, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DARK,4,2                       ## @DARK
	.no_dead_strip	_column_all_dark
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function column_all_dark
_column_all_dark:                       ; @column_all_dark
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x0]
	ldr	w9, [x8, #4]
	add	w10, w2, w1
	sub	w22, w9, w10
	cmp	w22, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w19, #0
	ldrsw	x9, [x8]
	ldr	x8, [x8, #8]
	mul	w10, w9, w1
	add	x8, x8, w10, sxtw #2
	add	x20, x8, w3, sxtw #2
	lsl	x21, x9, #2
	add	w23, w22, #1
	mov	x24, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	bl	_clampBlack
	add	w19, w19, w0
	add	x24, x24, x21
	sub	w23, w23, #1
	cmp	w23, #1
	b.hi	LBB0_2
; %bb.3:
	sdiv	w19, w19, w22
Lloh0:
	adrp	x8, _DARK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DARK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w19, w8
	cset	w0, lt
	b.ge	LBB0_9
; %bb.4:
	add	w22, w22, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_clampBlack
	mov	x1, x0
	mov	x0, x19
	bl	_absdiff
	cmp	w0, #17
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, x21
	sub	w22, w22, #1
	cmp	w22, #2
	b.ge	LBB0_5
LBB0_7:
	cmp	w0, #17
	cset	w0, lt
	b	LBB0_9
LBB0_8:
Lloh3:
	adrp	x8, _DARK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DARK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, gt
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DARK,4,2                       ; @DARK
	.no_dead_strip	_column_all_dark
.subsections_via_symbols
