	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReadTransparentPngData
_ReadTransparentPngData:                ## @ReadTransparentPngData
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	%esi, %edi
	movl	%edx, %esi
	callq	_png_get_image_height
	movl	%eax, %r13d
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_png_get_image_width
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_png_get_color_type
	movq	_PNG_COLOR_MASK_ALPHA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movl	(%r15), %edi
	leal	(,%r13,8), %esi
	callq	_HPDF_GetMem
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movslq	%r13d, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_png_get_rowbytes
	movq	%r13, -128(%rbp)                ## 8-byte Spill
	testl	%r13d, %r13d
	je	LBB0_14
## %bb.5:
	movl	%eax, %r15d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$2, %rax
	movl	$1, %r13d
	cmovaeq	%rax, %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_HPDF_GetMem
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.12:
	decq	%r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %r13
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_HPDF_GetMem
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx,%rbx,8)
	incq	%rbx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.8:
	cmpq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	setb	-64(%rbp)                       ## 1-byte Folded Spill
	jmp	LBB0_9
LBB0_1:
	movq	_HPDF_INVALID_PNG_IMAGE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_44
LBB0_6:
	movb	$1, -64(%rbp)                   ## 1-byte Folded Spill
	xorl	%ebx, %ebx
LBB0_9:
	testq	%rbx, %rbx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	(%r15,%rbx,8), %rsi
	callq	_HPDF_FreeMem
	decq	%rbx
	jne	LBB0_10
LBB0_11:
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_HPDF_FreeMem
	cmpb	$0, -64(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_14
LBB0_3:
	movq	_HPDF_FAILD_TO_ALLOC_MEM@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_44
LBB0_14:
	movl	%r14d, %edi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_png_read_image
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_39
## %bb.15:
	movl	-88(%rbp), %eax                 ## 4-byte Reload
	cmpl	$129, %eax
	je	LBB0_26
## %bb.16:
	cmpl	$128, %eax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_39
## %bb.17:
	cmpl	$0, -128(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_43
## %bb.18:
	movq	%r12, -136(%rbp)                ## 8-byte Spill
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leal	(,%rdx,4), %eax
	leal	(%rax,%rax,2), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movslq	%edx, %rdx
	cmpq	$2, %rdx
	movl	$1, %esi
	movl	$1, %eax
	cmovaeq	%rdx, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$2, %rax
	cmovaeq	%rax, %rsi
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	shlq	$3, %rdx
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
                                        ## implicit-def: $rbx
	.p2align	4, 0x90
LBB0_19:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdx,%rax,8), %rbx
	leal	(%r15,%rbx), %edi
	leal	(%rbx,%r13), %esi
	movl	$3, %edx
	callq	_memmove
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rbx,%r12,4), %rax
	movq	%rax, (%rcx,%r12)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %r12
	addl	$24, %r15d
	addl	$32, %r13d
	decq	%r14
	jne	LBB0_21
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	%rax, %r12
	movq	%rcx, %r14
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	4(%r15), %edi
	movq	%rbx, %rsi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_HPDF_Stream_Write
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r12, %rax
	incq	%rax
	movq	%r14, %rcx
	addq	-120(%rbp), %rcx                ## 8-byte Folded Reload
	cmpq	-112(%rbp), %rax                ## 8-byte Folded Reload
	jne	LBB0_19
## %bb.24:
	movq	-136(%rbp), %r12                ## 8-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_40
LBB0_39:
	movq	_HPDF_INVALID_PNG_IMAGE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_40:
	cmpl	$0, -128(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_43
## %bb.41:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$2, %rax
	movl	$1, %r14d
	cmovaeq	%rax, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	(%r13,%rbx,8), %rsi
	callq	_HPDF_FreeMem
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_42
LBB0_43:
	movl	(%r15), %edi
	movq	%r13, %rsi
	callq	_HPDF_FreeMem
LBB0_44:
	movq	%r12, %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	cmpl	$0, -128(%rbp)                  ## 4-byte Folded Reload
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_43
## %bb.27:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leal	(,%rcx,4), %edx
	movl	%edx, -88(%rbp)                 ## 4-byte Spill
	movslq	%ecx, %rdx
	cmpq	$2, %rdx
	movl	$1, %r14d
	cmovaeq	%rdx, %r14
	movl	$1, %esi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$2, %rcx
	cmovaeq	%rcx, %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rcx
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	andq	$-2, %r14
	leaq	8(%rax), %r15
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	leaq	(,%rdx,8), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
                                        ## implicit-def: $rbx
	.p2align	4, 0x90
LBB0_28:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_34 Depth 2
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_37
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	cmpl	$1, -80(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_33
## %bb.30:                              ##   in Loop: Header=BB0_28 Depth=1
                                        ## implicit-def: $rbx
	xorl	%eax, %eax
	jmp	LBB0_35
LBB0_33:                                ##   in Loop: Header=BB0_28 Depth=1
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_34:                                ##   Parent Loop BB0_28 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi,%r13,8), %rdx
	movq	(%rdx,%rcx,2), %rsi
	movq	%rsi, (%rdx,%rcx)
	movq	8(%rdx,%rcx,2), %rdx
	movq	%rdx, -8(%r15,%rcx)
	movq	(%rdi,%r13,8), %rbx
	movq	16(%rbx,%rcx,2), %rdx
	movq	%rdx, 8(%rbx,%rcx)
	movq	24(%rbx,%rcx,2), %rdx
	movq	%rdx, (%r15,%rcx)
	addq	$2, %rax
	addq	$16, %rcx
	cmpq	%rax, %r14
	jne	LBB0_34
LBB0_35:                                ##   in Loop: Header=BB0_28 Depth=1
	testb	$1, -112(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	%r13, %rcx
	imulq	-104(%rbp), %rcx                ## 8-byte Folded Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%r13,8), %rbx
	movq	%rax, %rdx
	shlq	$4, %rdx
	movq	(%rbx,%rdx), %rsi
	movq	%rsi, (%rbx,%rax,8)
	movq	8(%rbx,%rdx), %rdx
	addq	%rax, %rcx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rdx, (%rax,%rcx,8)
LBB0_37:                                ##   in Loop: Header=BB0_28 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movq	%rbx, %rsi
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	callq	_HPDF_Stream_Write
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_38
## %bb.31:                              ##   in Loop: Header=BB0_28 Depth=1
	incq	%r13
	addq	-120(%rbp), %r15                ## 8-byte Folded Reload
	cmpq	-64(%rbp), %r13                 ## 8-byte Folded Reload
	jne	LBB0_28
	jmp	LBB0_32
LBB0_25:
	movq	_HPDF_FILE_IO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_40
LBB0_38:
	movq	_HPDF_FILE_IO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_32:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_40
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_OK,8,3                    ## @HPDF_OK
	.comm	_PNG_COLOR_MASK_ALPHA,4,2       ## @PNG_COLOR_MASK_ALPHA
	.comm	_HPDF_INVALID_PNG_IMAGE,8,3     ## @HPDF_INVALID_PNG_IMAGE
	.comm	_HPDF_FAILD_TO_ALLOC_MEM,8,3    ## @HPDF_FAILD_TO_ALLOC_MEM
	.comm	_HPDF_FILE_IO_ERROR,8,3         ## @HPDF_FILE_IO_ERROR
	.no_dead_strip	_ReadTransparentPngData
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReadTransparentPngData
_ReadTransparentPngData:                ; @ReadTransparentPngData
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x27, x2
	mov	x25, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _HPDF_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HPDF_OK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]                   ; 8-byte Folded Spill
	mov	x0, x1
	mov	x1, x2
	bl	_png_get_image_height
	mov	x22, x0
	mov	x0, x25
	mov	x1, x27
	bl	_png_get_image_width
	mov	x23, x0
	mov	x0, x25
	mov	x1, x27
	bl	_png_get_color_type
Lloh3:
	adrp	x8, _PNG_COLOR_MASK_ALPHA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PNG_COLOR_MASK_ALPHA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.1:
	mov	x26, x0
	ldr	w0, [x20]
	lsl	w1, w22, #3
	bl	_HPDF_GetMem
	cbz	x0, LBB0_12
; %bb.2:
	mov	x21, x0
	sxtw	x8, w22
	stp	x23, x8, [sp, #32]              ; 16-byte Folded Spill
	mov	x0, x25
	mov	x1, x27
	bl	_png_get_rowbytes
	str	x22, [sp, #48]                  ; 8-byte Folded Spill
	cbz	w22, LBB0_13
; %bb.3:
	mov	x27, x0
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x8, #1
	csinc	x23, x8, xzr, hi
	ldr	w0, [x20]
	mov	x1, x27
	bl	_HPDF_GetMem
	str	x0, [x21]
	mov	x28, #0
	cbz	x0, LBB0_9
; %bb.4:
	add	x22, x21, #8
	sub	x23, x23, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x23, x28
	b.eq	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x20]
	mov	x1, x27
	bl	_HPDF_GetMem
	str	x0, [x22, x28, lsl #3]
	add	x28, x28, #1
	cbnz	x0, LBB0_5
; %bb.7:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x28, x8
	cset	w24, lo
	cbnz	x28, LBB0_10
	b	LBB0_11
LBB0_8:
Lloh6:
	adrp	x8, _HPDF_INVALID_PNG_IMAGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HPDF_INVALID_PNG_IMAGE@GOTPAGEOFF]
Lloh8:
	ldr	x23, [x8]
	b	LBB0_41
LBB0_9:
	mov	w24, #1
	cbz	x28, LBB0_11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	ldr	x1, [x21, x28, lsl #3]
	bl	_HPDF_FreeMem
	subs	x28, x28, #1
	b.ne	LBB0_10
LBB0_11:
	ldr	w0, [x20]
	mov	x1, x21
	bl	_HPDF_FreeMem
	tbz	w24, #0, LBB0_13
LBB0_12:
Lloh9:
	adrp	x8, _HPDF_FAILD_TO_ALLOC_MEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HPDF_FAILD_TO_ALLOC_MEM@GOTPAGEOFF]
Lloh11:
	ldr	x23, [x8]
	b	LBB0_41
LBB0_13:
	mov	x0, x25
	mov	x1, x21
	bl	_png_read_image
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh12:
	adrp	x23, _HPDF_OK@GOTPAGE
Lloh13:
	ldr	x23, [x23, _HPDF_OK@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.14:
	cmp	w26, #129
	ldr	x22, [sp, #48]                  ; 8-byte Folded Reload
	b.eq	LBB0_25
; %bb.15:
	cmp	w26, #128
	ldr	x24, [sp, #32]                  ; 8-byte Folded Reload
	b.ne	LBB0_33
; %bb.16:
	cbz	w22, LBB0_34
; %bb.17:
	mov	x27, #0
	add	w8, w24, w24, lsl #1
	lsl	w8, w8, #2
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	sxtw	x8, w24
	cmp	x8, #1
	csinc	x9, x8, xzr, hi
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x8, #1
	csinc	x8, x8, xzr, hi
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	sbfiz	x8, x24, #3, #32
	stp	x9, x8, [sp]                    ; 16-byte Folded Spill
                                        ; implicit-def: $x26
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_20 Depth 2
	cbz	w24, LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	w25, #0
	mov	w28, #0
	mov	w24, #3
	mov	x23, x19
	ldr	x22, [sp]                       ; 8-byte Folded Reload
LBB0_20:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x26, [x21, x27, lsl #3]
	add	w0, w28, w26
	add	w1, w25, w26
	mov	w2, #3
	bl	_memmove
	ldr	x8, [x26, x24, lsl #3]
	str	x8, [x23], #8
	add	w28, w28, #24
	add	x24, x24, #4
	add	w25, w25, #32
	subs	x22, x22, #1
	b.ne	LBB0_20
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x22, [sp, #48]                  ; 8-byte Folded Reload
Lloh14:
	adrp	x23, _HPDF_OK@GOTPAGE
Lloh15:
	ldr	x23, [x23, _HPDF_OK@GOTPAGEOFF]
	ldr	x24, [sp, #32]                  ; 8-byte Folded Reload
LBB0_22:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	w0, [x20, #4]
	mov	x1, x26
	ldr	w2, [sp, #28]                   ; 4-byte Folded Reload
	bl	_HPDF_Stream_Write
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_35
; %bb.23:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x27, x27, #1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x19, x19, x8
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x27, x8
	b.ne	LBB0_18
	b	LBB0_32
LBB0_24:
Lloh16:
	adrp	x8, _HPDF_INVALID_PNG_IMAGE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HPDF_INVALID_PNG_IMAGE@GOTPAGEOFF]
Lloh18:
	ldr	x23, [x8]
	ldr	x22, [sp, #48]                  ; 8-byte Folded Reload
	b	LBB0_37
LBB0_25:
	ldr	x24, [sp, #32]                  ; 8-byte Folded Reload
	cbz	w22, LBB0_34
; %bb.26:
	mov	x27, #0
	mov	x8, x24
	sxtw	x8, w8
	lsl	w9, w24, #2
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
	cmp	x8, #1
	csinc	x28, x8, xzr, hi
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x9, #1
	csinc	x9, x9, xzr, hi
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
	lsl	x25, x8, #3
                                        ; implicit-def: $x26
LBB0_27:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_29 Depth 2
	cbz	w24, LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	x8, #0
	mov	x9, #0
LBB0_29:                                ;   Parent Loop BB0_27 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x26, [x21, x27, lsl #3]
	add	x10, x26, x8
	ldr	x11, [x10]
	lsl	x12, x9, #3
	str	x11, [x26, x12]
	ldr	x10, [x10, #8]
	str	x10, [x19, x12]
	add	x9, x9, #1
	add	x8, x8, #16
	cmp	x28, x9
	b.ne	LBB0_29
LBB0_30:                                ;   in Loop: Header=BB0_27 Depth=1
	ldr	w0, [x20, #4]
	mov	x1, x26
	ldr	w2, [sp, #28]                   ; 4-byte Folded Reload
	bl	_HPDF_Stream_Write
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_35
; %bb.31:                               ;   in Loop: Header=BB0_27 Depth=1
	add	x27, x27, #1
	add	x19, x19, x25
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x27, x8
	b.ne	LBB0_27
LBB0_32:
	ldr	x23, [sp, #56]                  ; 8-byte Folded Reload
	b	LBB0_37
LBB0_33:
Lloh19:
	adrp	x8, _HPDF_INVALID_PNG_IMAGE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HPDF_INVALID_PNG_IMAGE@GOTPAGEOFF]
	b	LBB0_36
LBB0_34:
	ldr	x23, [sp, #56]                  ; 8-byte Folded Reload
	b	LBB0_40
LBB0_35:
Lloh21:
	adrp	x8, _HPDF_FILE_IO_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HPDF_FILE_IO_ERROR@GOTPAGEOFF]
LBB0_36:
	ldr	x23, [x8]
LBB0_37:
	cbz	w22, LBB0_40
; %bb.38:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x8, #1
	csinc	x19, x8, xzr, hi
	mov	x22, x21
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	ldr	x1, [x22], #8
	bl	_HPDF_FreeMem
	subs	x19, x19, #1
	b.ne	LBB0_39
LBB0_40:
	ldr	w0, [x20]
	mov	x1, x21
	bl	_HPDF_FreeMem
LBB0_41:
	mov	x0, x23
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.comm	_PNG_COLOR_MASK_ALPHA,4,2       ; @PNG_COLOR_MASK_ALPHA
	.comm	_HPDF_INVALID_PNG_IMAGE,8,3     ; @HPDF_INVALID_PNG_IMAGE
	.comm	_HPDF_FAILD_TO_ALLOC_MEM,8,3    ; @HPDF_FAILD_TO_ALLOC_MEM
	.comm	_HPDF_FILE_IO_ERROR,8,3         ; @HPDF_FILE_IO_ERROR
	.no_dead_strip	_ReadTransparentPngData
.subsections_via_symbols
