	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReadPngData_Interlaced
_ReadPngData_Interlaced:                ## @ReadPngData_Interlaced
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r13
	movl	%esi, %edi
	movl	%edx, %esi
	callq	_png_get_rowbytes
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_png_get_image_height
	movl	%eax, %ebx
	movl	8(%r13), %edi
	leal	(,%rbx,8), %r12d
	movl	%r12d, %esi
	callq	_HPDF_GetMem
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %r14
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movslq	%ebx, %r15
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_HPDF_MemSet
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.3:
	cmpq	$2, %r15
	movl	$1, %r12d
	cmovaeq	%r15, %r12
	decq	%r12
	xorl	%ebx, %ebx
	movq	_HPDF_OK@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r13), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_HPDF_GetMem
	movq	%rax, (%r14,%rbx,8)
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%rbx), %rdx
	cmpq	%rbx, %r12
	movq	%rdx, %rbx
	jne	LBB0_4
LBB0_6:
	cmpq	%rcx, %rax
	je	LBB0_7
	jmp	LBB0_12
LBB0_2:
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_12
LBB0_7:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	callq	_png_read_image
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	_HPDF_OK@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_12
## %bb.8:
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$2, %rax
	movl	$1, %r15d
	cmovaeq	%rax, %r15
	decq	%r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	12(%r13), %edi
	movq	(%r14,%rbx,8), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_HPDF_Stream_Write
	cmpq	(%r12), %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	1(%rbx), %rax
	cmpq	%rbx, %r15
	movq	%rax, %rbx
	jne	LBB0_10
LBB0_12:
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_15
## %bb.13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$2, %rax
	movl	$1, %r15d
	cmovaeq	%rax, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r13), %edi
	movq	(%r14,%rbx,8), %rsi
	callq	_HPDF_FreeMem
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_14
LBB0_15:
	movl	8(%r13), %edi
	movq	%r14, %rsi
	callq	_HPDF_FreeMem
LBB0_16:
	movq	(%r13), %rax
	movq	(%rax), %rax
	addq	$24, %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_Interlaced
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReadPngData_Interlaced
_ReadPngData_Interlaced:                ; @ReadPngData_Interlaced
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	mov	x1, x2
	bl	_png_get_rowbytes
	mov	x21, x0
	mov	x0, x22
	mov	x1, x20
	bl	_png_get_image_height
	mov	x24, x0
	ldr	w0, [x19, #8]
	lsl	w23, w24, #3
	mov	x1, x23
	bl	_HPDF_GetMem
	cbz	x0, LBB0_14
; %bb.1:
	mov	x20, x0
	sxtw	x24, w24
	mov	w1, #0
	mov	x2, x23
	bl	_HPDF_MemSet
Lloh0:
	adrp	x23, _HPDF_OK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HPDF_OK@GOTPAGEOFF]
	cbz	w24, LBB0_5
; %bb.2:
	cmp	x24, #1
	csinc	x8, x24, xzr, hi
	sub	x25, x8, #1
	mov	x26, x20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	mov	x1, x21
	bl	_HPDF_GetMem
	str	x0, [x26], #8
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x23]
	cmp	x8, x9
	ccmp	x25, #0, #4, eq
	sub	x25, x25, #1
	b.ne	LBB0_3
; %bb.4:
	cmp	x8, x9
	b.eq	LBB0_6
	b	LBB0_10
LBB0_5:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_6:
	mov	x0, x22
	mov	x1, x20
	bl	_png_read_image
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
	cbz	w24, LBB0_13
; %bb.8:
	cmp	x24, #1
	csinc	x8, x24, xzr, hi
	sub	x22, x8, #1
	mov	x25, x20
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #12]
	ldr	x1, [x25], #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_9
LBB0_10:
	cbz	w24, LBB0_13
; %bb.11:
	cmp	x24, #1
	csinc	x21, x24, xzr, hi
	mov	x22, x20
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	ldr	x1, [x22], #8
	bl	_HPDF_FreeMem
	subs	x21, x21, #1
	b.ne	LBB0_12
LBB0_13:
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_HPDF_FreeMem
LBB0_14:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.no_dead_strip	_ReadPngData_Interlaced
.subsections_via_symbols
