	.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
	movslq	(%rdi), %r15
	movl	$8, %ebx
	subl	%r15d, %ebx
	movl	4(%rdi), %eax
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
	movq	%rsi, %r12
	movq	%r15, %rsi
	shlq	$2, %rsi
	addq	(%r12), %rsi
	movl	%ebx, %edx
	callq	_png_push_fill_buffer
	addl	%ebx, (%r14)
	movq	(%r12), %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_png_sig_cmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	cmpl	$3, %r15d
	jg	LBB0_5
## %bb.2:
	movq	(%r12), %rdi
	addl	$-4, %ebx
	movl	%r15d, %esi
	movl	%ebx, %edx
	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:
	cmpl	$8, (%r14)
	jl	LBB0_8
## %bb.7:
	movq	_PNG_READ_CHUNK_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%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	x20, x1
	mov	x19, x0
	mov	w8, #8
	ldp	w21, w9, [x0]
                                        ; kill: def $w21 killed $w21 def $x21
	sxtw	x21, w21
	sub	w8, w8, w21
	cmp	w9, w8
	csel	w22, w9, w8, lt
	ldr	x8, [x1]
	add	x1, x8, x21, lsl #2
	mov	x2, x22
	bl	_png_push_fill_buffer
	ldr	w8, [x19]
	add	w8, w8, w22
	str	w8, [x19]
	ldr	x0, [x20]
	mov	x1, x21
	mov	x2, x22
	bl	_png_sig_cmp
	cbz	x0, LBB0_6
; %bb.1:
	cmp	w21, #3
	b.gt	LBB0_4
; %bb.2:
	ldr	x0, [x20]
	sub	w2, w22, #4
	mov	x1, x21
	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	w8, [x19]
	cmp	w8, #8
	b.lt	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, #8]
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
