	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_dithering
_remove_dithering:                      ## @remove_dithering
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movl	(%rdi), %r10d
	testl	%r10d, %r10d
	jle	LBB0_10
## %bb.1:
	movq	48(%rdi), %r9
	incq	%r10
	movl	$1, %edx
	movq	_CPL_CH@GOTPCREL(%rip), %r8
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%r10, %rdx
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	cmpl	$0, (%r9,%rdx,4)
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%rdi), %rax
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r8), %rax
	movq	8(%rdi), %rcx
	movq	16(%rdi), %r11
	movslq	(%rcx,%rax,4), %rcx
	cmpl	(%r11,%rax,4), %ecx
	jge	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rdi), %rsi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	incq	%rcx
	movslq	(%r11,%rax,4), %rbx
	cmpq	%rbx, %rcx
	jge	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rsi,%rax,8), %rbx
	cmpl	$0, (%rbx,%rcx,4)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	24(%rdi), %rax
	movq	(%rax,%rdx,8), %rax
	movq	$0, (%rax,%rcx,8)
	movq	(%r8), %rax
	jmp	LBB0_8
LBB0_10:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CPL_CH,8,3                     ## @CPL_CH
	.no_dead_strip	_remove_dithering
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_dithering
_remove_dithering:                      ; @remove_dithering
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.1:
	ldr	x8, [x0, #48]
	add	x9, x9, #1
	mov	w10, #1
Lloh0:
	adrp	x11, _CPL_CH@GOTPAGE
Lloh1:
	ldr	x11, [x11, _CPL_CH@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	cmp	x10, x9
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	w12, [x8, x10, lsl #2]
	cbnz	w12, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x0, #40]
	ldr	x12, [x12, x10, lsl #3]
	cbz	x12, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x14, [x11]
	lsl	x15, x14, #2
	ldp	x13, x12, [x0, #8]
	ldrsw	x13, [x13, x15]
	ldr	w15, [x12, x15]
	cmp	w13, w15
	b.ge	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x15, [x0, #32]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x13, x13, #1
	ldrsw	x16, [x12, x14, lsl #2]
	cmp	x13, x16
	b.ge	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x16, [x15, x14, lsl #3]
	ldr	w16, [x16, x13, lsl #2]
	cbnz	w16, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x14, [x0, #24]
	ldr	x14, [x14, x10, lsl #3]
	str	xzr, [x14, x13, lsl #3]
	ldr	x14, [x11]
	b	LBB0_7
LBB0_10:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CPL_CH,8,3                     ; @CPL_CH
	.no_dead_strip	_remove_dithering
.subsections_via_symbols
