	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_do_write_intrapixel        ## -- Begin function png_do_write_intrapixel
	.p2align	4, 0x90
_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_17
## %bb.1:
	movq	8(%r14), %r9
	movl	16(%r14), %ecx
	cmpl	$16, %ecx
	je	LBB0_12
## %bb.2:
	cmpl	$8, %ecx
	jne	LBB0_17
## %bb.3:
	movq	_PNG_COLOR_TYPE_RGB@GOTPCREL(%rip), %rsi
	movl	$3, %ecx
	cmpl	(%rsi), %edx
	je	LBB0_5
## %bb.4:
	movq	_PNG_COLOR_TYPE_RGB_ALPHA@GOTPCREL(%rip), %rsi
	movl	$4, %ecx
	cmpl	(%rsi), %edx
	jne	LBB0_17
LBB0_5:
	testq	%r9, %r9
	jle	LBB0_17
## %bb.6:
	cmpq	$1, %r9
	je	LBB0_10
## %bb.7:
	movq	%r9, %rsi
	andq	$-2, %rsi
	leaq	(,%rcx,8), %r8
	shlq	$2, %rcx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	(%rbx), %ebx
	movl	4(%rdi), %edx
	subl	%edx, %ebx
	movzbl	%bl, %ebx
	movl	%ebx, (%rdi)
	movl	8(%rdi), %ebx
	subl	%edx, %ebx
	movzbl	%bl, %edx
	movl	%edx, 8(%rdi)
	leaq	(%rdi,%rcx), %rbx
	movl	(%rdi,%rcx), %edx
	movl	4(%rdi,%rcx), %eax
	subl	%eax, %edx
	movzbl	%dl, %edx
	movl	%edx, (%rdi,%rcx)
	movl	8(%rdi,%rcx), %edx
	subl	%eax, %edx
	movzbl	%dl, %eax
	movl	%eax, 8(%rdi,%rcx)
	addq	%rcx, %rbx
	addq	$-2, %rsi
	jne	LBB0_8
## %bb.9:
	addq	%r8, %rdi
	movq	%rdi, %rbx
LBB0_10:
	testb	$1, %r9b
	je	LBB0_17
## %bb.11:
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	subl	%ecx, %eax
	movzbl	%al, %eax
	movl	%eax, (%rbx)
	movl	8(%rbx), %eax
	subl	%ecx, %eax
	movzbl	%al, %eax
	movl	%eax, 8(%rbx)
	jmp	LBB0_17
LBB0_12:
	movq	_PNG_COLOR_TYPE_RGB@GOTPCREL(%rip), %rax
	movl	$6, %esi
	cmpl	(%rax), %edx
	je	LBB0_14
## %bb.13:
	movq	_PNG_COLOR_TYPE_RGB_ALPHA@GOTPCREL(%rip), %rax
	movl	$8, %esi
	cmpl	(%rax), %edx
	jne	LBB0_17
LBB0_14:
	testq	%r9, %r9
	jle	LBB0_17
## %bb.15:
	addq	$20, %rbx
	shlq	$2, %rsi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	-20(%rbx), %edx
	shll	$8, %edx
	orl	-16(%rbx), %edx
	movl	-12(%rbx), %eax
	shll	$8, %eax
	orl	-8(%rbx), %eax
	movl	-4(%rbx), %ecx
	shll	$8, %ecx
	orl	(%rbx), %ecx
	subl	%eax, %edx
	subl	%eax, %ecx
	movzbl	%dh, %eax
	movl	%eax, -20(%rbx)
	movzbl	%dl, %eax
	movl	%eax, -16(%rbx)
	movzbl	%ch, %eax
	movl	%eax, -4(%rbx)
	movzbl	%cl, %eax
	movl	%eax, (%rbx)
	addq	%rsi, %rbx
	decq	%r9
	jne	LBB0_16
LBB0_17:
	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\n"

	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_do_write_intrapixel        ; -- Begin function png_do_write_intrapixel
	.p2align	2
_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_15
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	w10, [x20, #16]
	cmp	w10, #16
	b.eq	LBB0_5
; %bb.2:
	cmp	w10, #8
	b.ne	LBB0_15
; %bb.3:
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_7
; %bb.4:
	mov	w10, #3
	cmp	x8, #1
	b.ge	LBB0_9
	b	LBB0_15
LBB0_5:
Lloh8:
	adrp	x10, _PNG_COLOR_TYPE_RGB@GOTPAGE
Lloh9:
	ldr	x10, [x10, _PNG_COLOR_TYPE_RGB@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_11
; %bb.6:
	mov	w10, #6
	cmp	x8, #1
	b.ge	LBB0_13
	b	LBB0_15
LBB0_7:
Lloh11:
	adrp	x10, _PNG_COLOR_TYPE_RGB_ALPHA@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PNG_COLOR_TYPE_RGB_ALPHA@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_15
; %bb.8:
	mov	w10, #4
	cmp	x8, #1
	b.lt	LBB0_15
LBB0_9:
	add	x9, x19, #8
	lsl	x10, x10, #2
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldp	w11, w12, [x9, #-8]
	sub	w11, w11, w12
	and	w11, w11, #0xff
	stur	w11, [x9, #-8]
	ldr	w11, [x9]
	sub	w11, w11, w12
	and	w11, w11, #0xff
	str	w11, [x9]
	add	x9, x9, x10
	subs	x8, x8, #1
	b.ne	LBB0_10
	b	LBB0_15
LBB0_11:
Lloh14:
	adrp	x10, _PNG_COLOR_TYPE_RGB_ALPHA@GOTPAGE
Lloh15:
	ldr	x10, [x10, _PNG_COLOR_TYPE_RGB_ALPHA@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_15
; %bb.12:
	mov	w10, #8
	cmp	x8, #1
	b.lt	LBB0_15
LBB0_13:
	add	x9, x19, #20
	lsl	x10, x10, #2
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldp	w11, w12, [x9, #-20]
	orr	w11, w12, w11, lsl #8
	ldp	w12, w13, [x9, #-12]
	orr	w12, w13, w12, lsl #8
	ldp	w13, w14, [x9, #-4]
	orr	w13, w14, w13, lsl #8
	sub	w11, w11, w12
	sub	w12, w13, w12
	ubfx	w13, w11, #8, #8
	and	w11, w11, #0xff
	stp	w13, w11, [x9, #-20]
	ubfx	w11, w12, #8, #8
	stur	w11, [x9, #-4]
	and	w11, w12, #0xff
	str	w11, [x9]
	add	x9, x9, x10
	subs	x8, x8, #1
	b.ne	LBB0_14
LBB0_15:
	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
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in png_do_write_intrapixel\n"

	.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
.subsections_via_symbols
