	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_push_crc_finish            ## -- Begin function png_push_crc_finish
	.p2align	4, 0x90
_png_push_crc_finish:                   ## @png_push_crc_finish
	.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	%rdi, %rbx
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	8(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	cmpq	%r14, %rax
	cmovlq	%rax, %r14
	movl	40(%rbx), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_png_calculate_crc
	subl	%r14d, 16(%rbx)
	movdqu	(%rbx), %xmm0
	movq	%r14, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	psubq	%xmm1, %xmm0
	movdqu	%xmm0, (%rbx)
	addl	%r14d, 40(%rbx)
	movq	%xmm0, %rax
	testq	%rax, %rax
	je	LBB0_5
LBB0_3:
	movq	24(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_7
## %bb.4:
	cmpq	%r14, %rax
	cmovlq	%rax, %r14
	movl	36(%rbx), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_png_calculate_crc
	subl	%r14d, 16(%rbx)
	subq	%r14, 24(%rbx)
	addl	%r14d, 36(%rbx)
	subq	%r14, (%rbx)
	jne	LBB0_7
LBB0_5:
	cmpl	$3, 16(%rbx)
	jg	LBB0_6
## %bb.8:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_png_push_save_buffer           ## TAILCALL
LBB0_6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_png_crc_finish
	movq	_PNG_READ_CHUNK_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_READ_CHUNK_MODE,4,2        ## @PNG_READ_CHUNK_MODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_push_crc_finish            ; -- Begin function png_push_crc_finish
	.p2align	2
_png_push_crc_finish:                   ; @png_push_crc_finish
	.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, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_3
; %bb.2:
	cmp	x8, x9
	csel	x20, x8, x9, lt
	ldr	w1, [x19, #40]
	mov	x0, x19
	mov	x2, x20
	bl	_png_calculate_crc
	ldr	w8, [x19, #16]
	sub	w8, w8, w20
	str	w8, [x19, #16]
	ldr	q0, [x19]
	dup.2d	v1, x20
	sub.2d	v0, v0, v1
	str	q0, [x19]
	ldr	w8, [x19, #40]
	add	w8, w8, w20
	str	w8, [x19, #40]
	fmov	x8, d0
	cbz	x8, LBB0_5
LBB0_3:
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_8
; %bb.4:
	cmp	x8, x9
	csel	x20, x8, x9, lt
	ldr	w1, [x19, #36]
	mov	x0, x19
	mov	x2, x20
	bl	_png_calculate_crc
	ldr	x8, [x19]
	ldr	w9, [x19, #16]
	sub	w9, w9, w20
	ldr	x10, [x19, #24]
	sub	x10, x10, x20
	str	w9, [x19, #16]
	str	x10, [x19, #24]
	ldr	w9, [x19, #36]
	add	w9, w9, w20
	str	w9, [x19, #36]
	subs	x8, x8, x20
	str	x8, [x19]
	b.ne	LBB0_8
LBB0_5:
	ldr	w8, [x19, #16]
	cmp	w8, #3
	b.gt	LBB0_7
; %bb.6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_png_push_save_buffer
LBB0_7:
	mov	x0, x19
	mov	w1, #0
	bl	_png_crc_finish
Lloh0:
	adrp	x8, _PNG_READ_CHUNK_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PNG_READ_CHUNK_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #32]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_READ_CHUNK_MODE,4,2        ; @PNG_READ_CHUNK_MODE
.subsections_via_symbols
