	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function png_setup_up_row_only
LCPI0_0:
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_png_setup_up_row_only:                 ## @png_setup_up_row_only
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_PNG_FILTER_VALUE_UP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rdi), %r10
	movq	%rax, (%r10)
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.1:
	movq	(%rdi), %r8
	movq	16(%rdi), %r11
	cmpq	$4, %rsi
	jae	LBB0_3
## %bb.2:
	xorl	%edi, %edi
LBB0_13:
	movq	%rdi, %r9
	notq	%r9
	addq	%rsi, %r9
	movq	%rsi, %rcx
	andq	$3, %rcx
	je	LBB0_17
## %bb.14:
	shlq	$3, %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r11,%rax), %edx
	subl	8(%r8,%rax), %edx
	movzbl	%dl, %edx
	movq	%rdx, 8(%r10,%rax)
	incq	%rdi
	addq	$8, %rax
	cmpq	%rax, %rcx
	jne	LBB0_15
## %bb.16:
	addq	%rax, %r8
	addq	%rax, %r10
	addq	%rax, %r11
LBB0_17:
	cmpq	$3, %r9
	jb	LBB0_20
## %bb.18:
	subq	%rdi, %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r11,%rax,8), %ecx
	subl	8(%r8,%rax,8), %ecx
	movzbl	%cl, %ecx
	movq	%rcx, 8(%r10,%rax,8)
	movl	16(%r11,%rax,8), %ecx
	subl	16(%r8,%rax,8), %ecx
	movzbl	%cl, %ecx
	movq	%rcx, 16(%r10,%rax,8)
	movl	24(%r11,%rax,8), %ecx
	subl	24(%r8,%rax,8), %ecx
	movzbl	%cl, %ecx
	movq	%rcx, 24(%r10,%rax,8)
	movl	32(%r11,%rax,8), %ecx
	subl	32(%r8,%rax,8), %ecx
	movzbl	%cl, %ecx
	movq	%rcx, 32(%r10,%rax,8)
	addq	$4, %rax
	cmpq	%rax, %rsi
	jne	LBB0_19
	jmp	LBB0_20
LBB0_3:
	leaq	8(%r10), %rax
	movq	%rax, %rcx
	subq	%r11, %rcx
	addq	$-8, %rcx
	xorl	%edi, %edi
	cmpq	$32, %rcx
	jb	LBB0_13
## %bb.4:
	subq	%r8, %rax
	addq	$-8, %rax
	cmpq	$32, %rax
	jb	LBB0_13
## %bb.5:
	movq	%rsi, %rdi
	andq	$-4, %rdi
	leaq	-4(%rdi), %rax
	movq	%rax, %r9
	shrq	$2, %r9
	incq	%r9
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r9, %rax
	andq	$-2, %rax
	xorl	%ecx, %ecx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [255,0,0,0,0,0,0,0,255,0,0,0,0,0,0,0]
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	8(%r11,%rcx,8), %xmm1
	movdqu	24(%r11,%rcx,8), %xmm2
	movdqu	8(%r8,%rcx,8), %xmm3
	psubq	%xmm3, %xmm1
	movdqu	24(%r8,%rcx,8), %xmm3
	psubq	%xmm3, %xmm2
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	movdqu	%xmm1, 8(%r10,%rcx,8)
	movdqu	%xmm2, 24(%r10,%rcx,8)
	movdqu	40(%r11,%rcx,8), %xmm1
	movdqu	56(%r11,%rcx,8), %xmm2
	movdqu	40(%r8,%rcx,8), %xmm3
	psubq	%xmm3, %xmm1
	movdqu	56(%r8,%rcx,8), %xmm3
	psubq	%xmm3, %xmm2
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	movdqu	%xmm1, 40(%r10,%rcx,8)
	movdqu	%xmm2, 56(%r10,%rcx,8)
	addq	$8, %rcx
	addq	$-2, %rax
	jne	LBB0_8
## %bb.9:
	testb	$1, %r9b
	je	LBB0_11
LBB0_10:
	movdqu	8(%r11,%rcx,8), %xmm0
	movdqu	24(%r11,%rcx,8), %xmm1
	movdqu	8(%r8,%rcx,8), %xmm2
	psubq	%xmm2, %xmm0
	movdqu	24(%r8,%rcx,8), %xmm2
	psubq	%xmm2, %xmm1
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [255,0,0,0,0,0,0,0,255,0,0,0,0,0,0,0]
	pand	%xmm2, %xmm0
	pand	%xmm2, %xmm1
	movdqu	%xmm0, 8(%r10,%rcx,8)
	movdqu	%xmm1, 24(%r10,%rcx,8)
LBB0_11:
	cmpq	%rsi, %rdi
	jne	LBB0_12
LBB0_20:
	popq	%rbp
	retq
LBB0_12:
	leaq	(%r8,%rdi,8), %r8
	leaq	(%r10,%rdi,8), %r10
	leaq	(%r11,%rdi,8), %r11
	jmp	LBB0_13
LBB0_6:
	xorl	%ecx, %ecx
	testb	$1, %r9b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_FILTER_VALUE_UP,8,3        ## @PNG_FILTER_VALUE_UP
	.no_dead_strip	_png_setup_up_row_only
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function png_setup_up_row_only
_png_setup_up_row_only:                 ; @png_setup_up_row_only
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _PNG_FILTER_VALUE_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PNG_FILTER_VALUE_UP@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0, #8]
	str	x8, [x9]
	cbz	x1, LBB0_10
; %bb.1:
	ldr	x10, [x0]
	ldr	x11, [x0, #16]
	cmp	x1, #8
	b.hs	LBB0_3
; %bb.2:
	mov	x8, #0
	b	LBB0_8
LBB0_3:
	mov	x8, #0
	add	x12, x9, #8
	sub	x13, x12, x11
	sub	x13, x13, #8
	cmp	x13, #64
	b.lo	LBB0_8
; %bb.4:
	sub	x12, x12, x10
	sub	x12, x12, #8
	cmp	x12, #64
	b.lo	LBB0_8
; %bb.5:
	and	x8, x1, #0xfffffffffffffff8
	lsl	x14, x8, #3
	add	x12, x10, x14
	add	x13, x9, x14
	add	x14, x11, x14
	add	x11, x11, #40
	add	x9, x9, #40
	add	x10, x10, #40
	movi.2d	v0, #0x000000000000ff
	mov	x15, x8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x11, #-32]
	ldp	q3, q4, [x11], #64
	ldp	q5, q6, [x10, #-32]
	ldp	q7, q16, [x10], #64
	sub.2d	v1, v1, v5
	sub.2d	v2, v2, v6
	sub.2d	v3, v3, v7
	sub.2d	v4, v4, v16
	and.16b	v1, v1, v0
	and.16b	v2, v2, v0
	and.16b	v3, v3, v0
	and.16b	v4, v4, v0
	stp	q1, q2, [x9, #-32]
	stp	q3, q4, [x9], #64
	subs	x15, x15, #8
	b.ne	LBB0_6
; %bb.7:
	mov	x10, x12
	mov	x9, x13
	mov	x11, x14
	cmp	x8, x1
	b.eq	LBB0_10
LBB0_8:
	sub	x8, x1, x8
	add	x10, x10, #8
	add	x9, x9, #8
	add	x11, x11, #8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11], #8
	ldr	w13, [x10], #8
	sub	w12, w12, w13
	and	x12, x12, #0xff
	str	x12, [x9], #8
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_FILTER_VALUE_UP,8,3        ; @PNG_FILTER_VALUE_UP
	.no_dead_strip	_png_setup_up_row_only
.subsections_via_symbols
