	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function png_do_write_intrapixel
_png_do_write_intrapixel:               ## @png_do_write_intrapixel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_png_debug
	movl	(%r14), %edx
	movq	_PNG_COLOR_MASK_COLOR@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_11
## %bb.1:
	cmpl	$8, 16(%r14)
	jne	LBB0_11
## %bb.2:
	movq	8(%r14), %rax
	movq	_PNG_COLOR_TYPE_RGB@GOTPCREL(%rip), %rsi
	movl	$3, %ecx
	cmpl	(%rsi), %edx
	je	LBB0_4
## %bb.3:
	movq	_PNG_COLOR_TYPE_RGB_ALPHA@GOTPCREL(%rip), %rsi
	movl	$4, %ecx
	cmpl	(%rsi), %edx
	jne	LBB0_11
LBB0_4:
	testq	%rax, %rax
	jle	LBB0_11
## %bb.5:
	cmpq	$1, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %rsi
	andq	$-2, %rsi
	leaq	(,%rcx,8), %rdx
	shlq	$2, %rcx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	4(%rbx), %ebx
	subl	%ebx, (%rdi)
	subl	%ebx, 8(%rdi)
	movl	4(%rdi,%rcx), %ebx
	subl	%ebx, (%rdi,%rcx)
	subl	%ebx, 8(%rdi,%rcx)
	leaq	(%rdi,%rcx), %rbx
	addq	%rcx, %rbx
	addq	$-2, %rsi
	jne	LBB0_7
## %bb.8:
	addq	%rdx, %rdi
	movq	%rdi, %rbx
LBB0_9:
	testb	$1, %al
	je	LBB0_11
## %bb.10:
	movl	4(%rbx), %eax
	subl	%eax, (%rbx)
	subl	%eax, 8(%rbx)
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in png_do_write_intrapixel"

	.comm	_PNG_COLOR_MASK_COLOR,4,2       ## @PNG_COLOR_MASK_COLOR
	.comm	_PNG_COLOR_TYPE_RGB,4,2         ## @PNG_COLOR_TYPE_RGB
	.comm	_PNG_COLOR_TYPE_RGB_ALPHA,4,2   ## @PNG_COLOR_TYPE_RGB_ALPHA
	.no_dead_strip	_png_do_write_intrapixel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function png_do_write_intrapixel
_png_do_write_intrapixel:               ; @png_do_write_intrapixel
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_png_debug
	ldr	w9, [x20]
Lloh2:
	adrp	x8, _PNG_COLOR_MASK_COLOR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PNG_COLOR_MASK_COLOR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_8
; %bb.1:
	ldr	w8, [x20, #16]
	cmp	w8, #8
	b.ne	LBB0_8
; %bb.2:
	ldr	x8, [x20, #8]
Lloh5:
	adrp	x10, _PNG_COLOR_TYPE_RGB@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PNG_COLOR_TYPE_RGB@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_4
; %bb.3:
	mov	w10, #3
	cmp	x8, #1
	b.ge	LBB0_6
	b	LBB0_8
LBB0_4:
Lloh8:
	adrp	x10, _PNG_COLOR_TYPE_RGB_ALPHA@GOTPAGE
Lloh9:
	ldr	x10, [x10, _PNG_COLOR_TYPE_RGB_ALPHA@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_8
; %bb.5:
	mov	w10, #4
	cmp	x8, #1
	b.lt	LBB0_8
LBB0_6:
	add	x9, x19, #8
	lsl	x10, x10, #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w11, w12, [x9, #-8]
	sub	w11, w11, w12
	stur	w11, [x9, #-8]
	ldr	w11, [x9]
	sub	w11, w11, w12
	str	w11, [x9]
	add	x9, x9, x10
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in png_do_write_intrapixel"

	.comm	_PNG_COLOR_MASK_COLOR,4,2       ; @PNG_COLOR_MASK_COLOR
	.comm	_PNG_COLOR_TYPE_RGB,4,2         ; @PNG_COLOR_TYPE_RGB
	.comm	_PNG_COLOR_TYPE_RGB_ALPHA,4,2   ; @PNG_COLOR_TYPE_RGB_ALPHA
	.no_dead_strip	_png_do_write_intrapixel
.subsections_via_symbols
