	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReadPngData
_ReadPngData:                           ## @ReadPngData
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	%esi, %edi
	movl	%edx, %esi
	callq	_png_get_rowbytes
	movq	%rax, %r15
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_png_get_image_height
	movq	%rax, %rbx
	movl	8(%r12), %edi
	movq	%r15, %rsi
	callq	_HPDF_GetMem
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	testq	%rbx, %rbx
	jle	LBB0_7
## %bb.2:
	decq	%rbx
	movq	_HPDF_OK@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_png_read_rows
	movq	(%r12), %rax
	movq	(%rax), %rax
	cmpq	(%r13), %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	12(%r12), %edi
	movq	-48(%rbp), %rsi
	movq	%r15, %rdx
	callq	_HPDF_Stream_Write
	subq	$1, %rbx
	setb	%cl
	cmpq	(%r13), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	testb	%cl, %cl
	je	LBB0_3
LBB0_6:
	movq	-48(%rbp), %rax
LBB0_7:
	movl	8(%r12), %edi
	movq	%rax, %rsi
	callq	_HPDF_FreeMem
LBB0_8:
	movq	(%r12), %rax
	movq	(%rax), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_OK,8,3                    ## @HPDF_OK
	.no_dead_strip	_ReadPngData
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReadPngData
_ReadPngData:                           ; @ReadPngData
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	mov	x1, x2
	bl	_png_get_rowbytes
	mov	x21, x0
	mov	x0, x20
	mov	x1, x22
	bl	_png_get_image_height
	mov	x22, x0
	ldr	w0, [x19, #8]
	mov	x1, x21
	bl	_HPDF_GetMem
	str	x0, [sp, #8]
	cbz	x0, LBB0_8
; %bb.1:
	subs	x22, x22, #1
	b.lt	LBB0_6
; %bb.2:
Lloh0:
	adrp	x23, _HPDF_OK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HPDF_OK@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, #0
	mov	w3, #1
	bl	_png_read_rows
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #12]
	ldr	x1, [sp, #8]
	mov	x2, x21
	bl	_HPDF_Stream_Write
	ldr	x8, [x23]
	cmp	x0, x8
	ccmp	x22, #0, #4, eq
	sub	x22, x22, #1
	b.ne	LBB0_3
LBB0_5:
	ldr	x1, [sp, #8]
	b	LBB0_7
LBB0_6:
	mov	x1, x0
LBB0_7:
	ldr	w0, [x19, #8]
	bl	_HPDF_FreeMem
LBB0_8:
	ldr	x8, [x19]
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.no_dead_strip	_ReadPngData
.subsections_via_symbols
