	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_push_read_sig              ## -- Begin function png_push_read_sig
	.p2align	4, 0x90
_png_push_read_sig:                     ## @png_push_read_sig
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	8(%rdi), %rax
	movl	$8, %ebx
	subq	%r15, %rbx
	cmpq	%rbx, %rax
	cmovbq	%rax, %rbx
	movq	%rsi, %r12
	leaq	(,%r15,4), %rsi
	addq	(%r12), %rsi
	movq	%rbx, %rdx
	callq	_png_push_fill_buffer
	addq	%rbx, (%r14)
	movq	(%r12), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_png_sig_cmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	cmpq	$3, %r15
	ja	LBB0_5
## %bb.2:
	movq	(%r12), %rdi
	addq	$-4, %rbx
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_png_sig_cmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_error                      ## TAILCALL
LBB0_6:
	cmpq	$8, (%r14)
	jb	LBB0_8
## %bb.7:
	movq	_PNG_READ_CHUNK_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not a PNG file"

L_.str.1:                               ## @.str.1
	.asciz	"PNG file corrupted by ASCII conversion"

	.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_read_sig              ; -- Begin function png_push_read_sig
	.p2align	2
_png_push_read_sig:                     ; @png_push_read_sig
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
	mov	w8, #8
	ldp	x20, x9, [x0]
	sub	x8, x8, x20
	cmp	x9, x8
	csel	x22, x9, x8, lo
	ldr	x8, [x1]
	add	x1, x8, x20, lsl #2
	mov	x2, x22
	bl	_png_push_fill_buffer
	ldr	x8, [x19]
	add	x8, x8, x22
	str	x8, [x19]
	ldr	x0, [x21]
	mov	x1, x20
	mov	x2, x22
	bl	_png_sig_cmp
	cbz	x0, LBB0_6
; %bb.1:
	cmp	x20, #3
	b.hi	LBB0_4
; %bb.2:
	ldr	x0, [x21]
	sub	x2, x22, #4
	mov	x1, x20
	bl	_png_sig_cmp
	cbz	x0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_png_error
LBB0_6:
	ldr	x8, [x19]
	cmp	x8, #8
	b.lo	LBB0_8
; %bb.7:
Lloh4:
	adrp	x8, _PNG_READ_CHUNK_MODE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PNG_READ_CHUNK_MODE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not a PNG file"

l_.str.1:                               ; @.str.1
	.asciz	"PNG file corrupted by ASCII conversion"

	.comm	_PNG_READ_CHUNK_MODE,4,2        ; @PNG_READ_CHUNK_MODE
.subsections_via_symbols
