	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$344, %rsp                      ## imm = 0x158
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$2, %edi
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %r13
	movq	8(%rsi), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gdImageCreateFromPng
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_rewind
	movq	%rbx, %rdi
	callq	_gdImageCreateFromPng
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_fclose
	movl	(%r15), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.4(%rip), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_CompareImages
	movq	8(%r13), %rcx
	leaq	L_.str.5(%rip), %rdx
	leaq	-304(%rbp), %r14
	movq	%r14, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_snprintf
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_gdImagePng
	movq	%rbx, %rdi
	callq	_fclose
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	testq	%rax, %rax
	movq	%r13, -320(%rbp)                ## 8-byte Spill
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gdImageCreateFromPng
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_fclose
	leaq	L_.str.8(%rip), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_CompareImages
	leaq	-304(%rbp), %r13
	movq	%r13, %rdi
	callq	_unlink
	movq	%r14, %rdi
	callq	_gdImageDestroy
	leaq	-308(%rbp), %rsi
	movq	%r12, %rdi
	callq	_gdImagePngPtr
	movl	-308(%rbp), %edi
	movq	%rax, %rsi
	callq	_gdNewDynamicCtx
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gdImageCreateFromPngCtx
	movq	%rax, %r14
	leaq	L_.str.9(%rip), %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_CompareImages
	movq	%r14, %rdi
	callq	_gdImageDestroy
	movq	%rbx, %rdi
	callq	*(%rbx)
	movq	-320(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rcx
	leaq	L_.str.10(%rip), %rdx
	movq	%r13, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_snprintf
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	callq	_fopen
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	$128, %edx
	movl	$2, %ecx
	callq	_gdImageGd2
	movq	%rbx, %rdi
	callq	_fclose
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gdImageCreateFromGd2
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_fclose
	leaq	L_.str.12(%rip), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_CompareImages
	leaq	-304(%rbp), %r13
	movq	%r13, %rdi
	callq	_unlink
	movq	%r14, %rdi
	callq	_gdImageDestroy
	leaq	-308(%rbp), %rcx
	movq	%r12, %rdi
	movl	$128, %esi
	movl	$2, %edx
	callq	_gdImageGd2Ptr
	movl	-308(%rbp), %edi
	movq	%rax, %rsi
	callq	_gdNewDynamicCtx
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gdImageCreateFromGd2Ctx
	movq	%rax, %r14
	leaq	L_.str.13(%rip), %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_CompareImages
	movq	%r14, %rdi
	callq	_gdImageDestroy
	movq	%rbx, %rdi
	callq	*(%rbx)
	movq	-320(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rcx
	leaq	L_.str.14(%rip), %rdx
	movq	%r13, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_snprintf
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	callq	_fopen
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_gdImageGd
	movq	%rbx, %rdi
	callq	_fclose
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gdImageCreateFromGd
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_fclose
	leaq	L_.str.16(%rip), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_CompareImages
	leaq	-304(%rbp), %rdi
	callq	_unlink
	movq	%r14, %rdi
	callq	_gdImageDestroy
	leaq	-308(%rbp), %rsi
	movq	%r12, %rdi
	callq	_gdImageGdPtr
	movl	-308(%rbp), %edi
	movq	%rax, %rsi
	callq	_gdNewDynamicCtx
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gdImageCreateFromGdCtx
	movq	%rax, %r14
	leaq	L_.str.17(%rip), %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_CompareImages
	movq	%r14, %rdi
	callq	_gdImageDestroy
	movq	%rbx, %rdi
	callq	*(%rbx)
	movq	-320(%rbp), %r13                ## 8-byte Reload
	movq	8(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	movq	%rax, %rbx
	movq	_freadWrapper@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -368(%rbp)
	movq	%rbx, -376(%rbp)
	leaq	-376(%rbp), %rdi
	callq	_gdImageCreateFromPngSource
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_fclose
	testq	%r14, %r14
	movq	%r13, %rbx
	je	LBB0_11
## %bb.12:
	leaq	L_.str.19(%rip), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_CompareImages
	movq	%r14, %rdi
	callq	_gdImageDestroy
	jmp	LBB0_13
LBB0_11:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_13:
	movq	8(%rbx), %rcx
	leaq	L_.str.20(%rip), %rdx
	leaq	-304(%rbp), %r14
	movq	%r14, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_snprintf
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	movq	%rax, %rbx
	movq	_fwriteWrapper@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -352(%rbp)
	movq	%rbx, -360(%rbp)
	leaq	-360(%rbp), %rsi
	movq	%r12, %rdi
	callq	_gdImagePngToSink
	movq	%rbx, %rdi
	callq	_fclose
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gdImageCreateFromPng
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_fclose
	leaq	L_.str.22(%rip), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_CompareImages
	movq	%r14, %rdi
	callq	_gdImageDestroy
	jmp	LBB0_16
LBB0_14:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.21(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_16:
	leaq	-304(%rbp), %rdi
	callq	_unlink
	leaq	L_.str.23(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gdImageCreateFromPng
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_fclose
	leaq	L_.str.25(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movq	%rax, %rbx
	movq	%r12, -336(%rbp)                ## 8-byte Spill
	movq	%r15, -328(%rbp)                ## 8-byte Spill
	movq	%rax, %rdi
	movl	$200, %esi
	movl	$300, %edx                      ## imm = 0x12C
	movl	$150, %ecx
	movl	$100, %r8d
	callq	_gdImageCreateFromGd2Part
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_fclose
	leaq	L_.str.27(%rip), %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_CompareImages
	movq	%r14, %rdi
	callq	_gdImageDestroy
	movq	%r12, %rdi
	callq	_gdImageDestroy
	leaq	L_.str.28(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gdImageCreateFromPng
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_fclose
	movl	$100, %edi
	movl	$60, %esi
	callq	_gdImageCreate
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$255, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_gdImageColorAllocate
	movl	%eax, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$255, %ecx
	callq	_gdImageColorAllocate
	movl	%eax, %r13d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$49, %ecx
	movl	$30, %r8d
	movl	%r14d, %r9d
	callq	_gdImageFilledRectangle
	movq	%rbx, %rdi
	movl	$50, %esi
	movl	$30, %edx
	movl	$99, %ecx
	movl	$59, %r8d
	movl	%r13d, %r9d
	callq	_gdImageFilledRectangle
	subq	$8, %rsp
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$150, %edx
	movl	$200, %ecx
	movl	$10, %r8d
	movl	$10, %r9d
	pushq	$50
	pushq	$50
	pushq	$90
	callq	_gdImageCopyMerge
	addq	$24, %rsp
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$180, %edx
	movl	$70, %ecx
	movl	$10, %r8d
	movl	$10, %r9d
	pushq	$50
	pushq	$50
	pushq	$90
	callq	_gdImageCopyMerge
	addq	$24, %rsp
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$250, %edx
	movl	$160, %ecx
	movl	$10, %r8d
	movl	$10, %r9d
	pushq	$50
	pushq	$50
	pushq	$90
	callq	_gdImageCopyMergeGray
	addq	$24, %rsp
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$80, %edx
	movl	$70, %ecx
	movl	$10, %r8d
	movl	$10, %r9d
	pushq	$50
	pushq	$50
	pushq	$90
	callq	_gdImageCopyMergeGray
	addq	$32, %rsp
	movq	%rbx, %rdi
	callq	_gdImageDestroy
	leaq	L_.str.30(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_23
## %bb.24:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gdImageCreateFromPng
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_fclose
	movl	(%r12), %esi
	leaq	L_.str.32(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.33(%rip), %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_CompareImages
	movq	%r12, %rdi
	callq	_gdImageDestroy
	movq	%r14, %rdi
	callq	_gdImageDestroy
	movq	_stderr@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str.34(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	-336(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_gdImageColorClosest
	movl	%eax, %ebx
	movl	(%r13), %edi
	leaq	L_.str.35(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
	cmpl	$-1, %ebx
	movq	-328(%rbp), %r15                ## 8-byte Reload
	je	LBB0_25
## %bb.26:
	leaq	L_.str.37(%rip), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_27
## %bb.29:
	movq	%rax, %r14
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_gdImageWBMP
	movq	%r14, %rdi
	callq	_fclose
	leaq	L_.str.37(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_30
## %bb.31:
	movq	%rax, -344(%rbp)                ## 8-byte Spill
	movq	%rax, %rdi
	callq	_gdImageCreateFromWBMP
	movq	%rax, %rbx
	movl	(%r13), %r14d
	movq	%rax, %rdi
	callq	_gdImageColorsTotal
	leaq	L_.str.40(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r13), %edi
	leaq	L_.str.41(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	%rbx, %rdi
	callq	_gdImageColorsTotal
	testl	%eax, %eax
	jle	LBB0_34
## %bb.32:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	movl	%eax, -320(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_gdImageRed
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_gdImageGreen
	movq	%r13, %r15
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_gdImageBlue
	movl	-320(%rbp), %edi                ## 4-byte Reload
	leaq	L_.str.42(%rip), %rsi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movq	%r15, %r13
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_fprintf
	incl	%r14d
	movq	%rbx, %rdi
	callq	_gdImageColorsTotal
	cmpl	%eax, %r14d
	jl	LBB0_33
LBB0_34:
	movq	-344(%rbp), %rdi                ## 8-byte Reload
	callq	_fclose
	testq	%rbx, %rbx
	je	LBB0_35
## %bb.36:
	leaq	L_.str.44(%rip), %rdi
	movq	-328(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_CompareImages
	leaq	L_.str.45(%rip), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	movq	-336(%rbp), %r12                ## 8-byte Reload
	je	LBB0_37
## %bb.38:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_gdImagePng
	movq	%r14, %rdi
	callq	_fclose
	movq	%rbx, %rdi
	callq	_gdImageDestroy
	jmp	LBB0_39
LBB0_25:
	movl	(%r13), %edi
	leaq	L_.str.36(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_39:
	movq	%r12, %rdi
	callq	_gdImageDestroy
	movq	%r15, %rdi
	callq	_gdImageDestroy
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_41
## %bb.40:
	xorl	%eax, %eax
	addq	$344, %rsp                      ## imm = 0x158
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_28
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_28
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_28
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_28
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.15(%rip), %rsi
	jmp	LBB0_28
LBB0_17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.24(%rip), %rsi
	jmp	LBB0_28
LBB0_19:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.26(%rip), %rsi
	jmp	LBB0_28
LBB0_21:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.29(%rip), %rsi
	jmp	LBB0_28
LBB0_23:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.31(%rip), %rsi
	jmp	LBB0_28
LBB0_41:
	callq	___stack_chk_fail
LBB0_27:
	movl	(%r13), %edi
	leaq	L_.str.38(%rip), %rsi
	jmp	LBB0_28
LBB0_30:
	movl	(%r13), %edi
	leaq	L_.str.39(%rip), %rsi
	jmp	LBB0_28
LBB0_35:
	movl	(%r13), %edi
	leaq	L_.str.43(%rip), %rsi
	jmp	LBB0_28
LBB0_37:
	movl	(%r13), %edi
	leaq	L_.str.46(%rip), %rsi
LBB0_28:
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Usage: gdtest filename.png\n"

L_.str.1:                               ## @.str.1
	.asciz	"rb"

L_.str.2:                               ## @.str.2
	.asciz	"Input file does not exist!\n"

L_.str.3:                               ## @.str.3
	.asciz	"Reference File has %d Palette entries\n"

L_.str.4:                               ## @.str.4
	.asciz	"Initial Versions"

L_.str.5:                               ## @.str.5
	.asciz	"%s.png"

L_.str.6:                               ## @.str.6
	.asciz	"wb"

L_.str.7:                               ## @.str.7
	.asciz	"PNG Output file does not exist!\n"

L_.str.8:                               ## @.str.8
	.asciz	"GD->PNG File->GD"

L_.str.9:                               ## @.str.9
	.asciz	"GD->PNG ptr->GD"

L_.str.10:                              ## @.str.10
	.asciz	"%s.gd2"

L_.str.11:                              ## @.str.11
	.asciz	"GD2 Output file does not exist!\n"

L_.str.12:                              ## @.str.12
	.asciz	"GD->GD2 File->GD"

L_.str.13:                              ## @.str.13
	.asciz	"GD->GD2 ptr->GD"

L_.str.14:                              ## @.str.14
	.asciz	"%s.gd"

L_.str.15:                              ## @.str.15
	.asciz	"GD Output file does not exist!\n"

L_.str.16:                              ## @.str.16
	.asciz	"GD->GD File->GD"

L_.str.17:                              ## @.str.17
	.asciz	"GD->GD ptr->GD"

	.comm	_freadWrapper,4,2               ## @freadWrapper
L_.str.19:                              ## @.str.19
	.asciz	"GD Source"

L_.str.20:                              ## @.str.20
	.asciz	"%s.snk"

	.comm	_fwriteWrapper,4,2              ## @fwriteWrapper
L_.str.21:                              ## @.str.21
	.asciz	"GD Sink: ERROR - GD Sink Output file does not exist!\n"

L_.str.22:                              ## @.str.22
	.asciz	"GD Sink"

L_.str.23:                              ## @.str.23
	.asciz	"test/gdtest_200_300_150_100.png"

L_.str.24:                              ## @.str.24
	.asciz	"gdtest_200_300_150_100.png does not exist!\n"

L_.str.25:                              ## @.str.25
	.asciz	"test/gdtest.gd2"

L_.str.26:                              ## @.str.26
	.asciz	"gdtest.gd2 does not exist!\n"

L_.str.27:                              ## @.str.27
	.asciz	"GD2Part (gdtest_200_300_150_100.png, gdtest.gd2(part))"

L_.str.28:                              ## @.str.28
	.asciz	"test/gdtest.png"

L_.str.29:                              ## @.str.29
	.asciz	"gdtest.png does not exist!\n"

L_.str.30:                              ## @.str.30
	.asciz	"test/gdtest_merge.png"

L_.str.31:                              ## @.str.31
	.asciz	"gdtest_merge.png does not exist!\n"

L_.str.32:                              ## @.str.32
	.asciz	"[Merged Image has %d colours]\n"

L_.str.33:                              ## @.str.33
	.asciz	"Merged (gdtest.png, gdtest_merge.png)"

L_.str.34:                              ## @.str.34
	.asciz	"NOTE: the WBMP output image will NOT match the original unless the original\nis also black and white. This is OK!\n"

L_.str.35:                              ## @.str.35
	.asciz	"Foreground index is %d\n"

L_.str.36:                              ## @.str.36
	.asciz	"Source image has no colors, skipping wbmp test.\n"

L_.str.37:                              ## @.str.37
	.asciz	"test/gdtest.wbmp"

L_.str.38:                              ## @.str.38
	.asciz	"Can't create file test/gdtest.wbmp.\n"

L_.str.39:                              ## @.str.39
	.asciz	"Can't open file test/gdtest.wbmp.\n"

L_.str.40:                              ## @.str.40
	.asciz	"WBMP has %d colors\n"

L_.str.41:                              ## @.str.41
	.asciz	"WBMP colors are:\n"

L_.str.42:                              ## @.str.42
	.asciz	"%02X%02X%02X\n"

L_.str.43:                              ## @.str.43
	.asciz	"gdImageCreateFromWBMP failed.\n"

L_.str.44:                              ## @.str.44
	.asciz	"WBMP test (gdtest.png, gdtest.wbmp)"

L_.str.45:                              ## @.str.45
	.asciz	"test/gdtest_wbmp_to_png.png"

L_.str.46:                              ## @.str.46
	.asciz	"Can't create file test/gdtest_wbmp_to_png.png.\n"

L_str:                                  ## @str
	.asciz	"GD Source: ERROR Null returned by gdImageCreateFromPngSource"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #432
	.cfi_def_cfa_offset 432
	stp	x28, x27, [sp, #336]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #352]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #368]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #384]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #400]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #416]            ; 16-byte Folded Spill
	add	x29, sp, #416
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	cmp	w0, #2
	b.ne	LBB0_27
; %bb.1:
	mov	x21, x1
	ldr	x0, [x1, #8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_28
; %bb.2:
	mov	x22, x0
	bl	_gdImageCreateFromPng
	mov	x19, x0
	mov	x0, x22
	bl	_rewind
	mov	x0, x22
	bl	_gdImageCreateFromPng
	mov	x20, x0
	mov	x0, x22
	bl	_fclose
	ldr	w8, [x20]
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.3@PAGE
Lloh6:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
Lloh7:
	adrp	x0, l_.str.4@PAGE
Lloh8:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_CompareImages
	ldr	x3, [x21, #8]
Lloh9:
	adrp	x2, l_.str.5@PAGE
Lloh10:
	add	x2, x2, l_.str.5@PAGEOFF
	add	x0, sp, #64
	mov	w1, #256
	bl	_snprintf
Lloh11:
	adrp	x1, l_.str.6@PAGE
Lloh12:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x0, sp, #64
	bl	_fopen
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_gdImagePng
	mov	x0, x22
	bl	_fclose
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #64
	bl	_fopen
	cbz	x0, LBB0_29
; %bb.3:
	mov	x22, x0
	bl	_gdImageCreateFromPng
	mov	x23, x0
	mov	x0, x22
	bl	_fclose
Lloh15:
	adrp	x0, l_.str.8@PAGE
Lloh16:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x1, x20
	mov	x2, x23
	bl	_CompareImages
	add	x0, sp, #64
	bl	_unlink
	mov	x0, x23
	bl	_gdImageDestroy
	add	x1, sp, #60
	mov	x0, x19
	bl	_gdImagePngPtr
	mov	x1, x0
	ldr	w0, [sp, #60]
	bl	_gdNewDynamicCtx
	mov	x22, x0
	bl	_gdImageCreateFromPngCtx
	mov	x23, x0
Lloh17:
	adrp	x0, l_.str.9@PAGE
Lloh18:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	x1, x20
	mov	x2, x23
	bl	_CompareImages
	mov	x0, x23
	bl	_gdImageDestroy
	ldr	x8, [x22]
	mov	x0, x22
	blr	x8
	ldr	x3, [x21, #8]
Lloh19:
	adrp	x2, l_.str.10@PAGE
Lloh20:
	add	x2, x2, l_.str.10@PAGEOFF
	add	x0, sp, #64
	mov	w1, #256
	bl	_snprintf
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x0, sp, #64
	bl	_fopen
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	mov	w2, #128
	mov	w3, #2
	bl	_gdImageGd2
	mov	x0, x22
	bl	_fclose
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #64
	bl	_fopen
	cbz	x0, LBB0_30
; %bb.4:
	mov	x22, x0
	bl	_gdImageCreateFromGd2
	mov	x23, x0
	mov	x0, x22
	bl	_fclose
Lloh25:
	adrp	x0, l_.str.12@PAGE
Lloh26:
	add	x0, x0, l_.str.12@PAGEOFF
	mov	x1, x20
	mov	x2, x23
	bl	_CompareImages
	add	x0, sp, #64
	bl	_unlink
	mov	x0, x23
	bl	_gdImageDestroy
	add	x3, sp, #60
	mov	x0, x19
	mov	w1, #128
	mov	w2, #2
	bl	_gdImageGd2Ptr
	mov	x1, x0
	ldr	w0, [sp, #60]
	bl	_gdNewDynamicCtx
	mov	x22, x0
	bl	_gdImageCreateFromGd2Ctx
	mov	x23, x0
Lloh27:
	adrp	x0, l_.str.13@PAGE
Lloh28:
	add	x0, x0, l_.str.13@PAGEOFF
	mov	x1, x20
	mov	x2, x23
	bl	_CompareImages
	mov	x0, x23
	bl	_gdImageDestroy
	ldr	x8, [x22]
	mov	x0, x22
	blr	x8
	ldr	x3, [x21, #8]
Lloh29:
	adrp	x2, l_.str.14@PAGE
Lloh30:
	add	x2, x2, l_.str.14@PAGEOFF
	add	x0, sp, #64
	mov	w1, #256
	bl	_snprintf
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x0, sp, #64
	bl	_fopen
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_gdImageGd
	mov	x0, x22
	bl	_fclose
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #64
	bl	_fopen
	cbz	x0, LBB0_31
; %bb.5:
	mov	x22, x0
	bl	_gdImageCreateFromGd
	mov	x23, x0
	mov	x0, x22
	bl	_fclose
Lloh35:
	adrp	x0, l_.str.16@PAGE
Lloh36:
	add	x0, x0, l_.str.16@PAGEOFF
	mov	x1, x20
	mov	x2, x23
	bl	_CompareImages
	add	x0, sp, #64
	bl	_unlink
	mov	x0, x23
	bl	_gdImageDestroy
	add	x1, sp, #60
	mov	x0, x19
	bl	_gdImageGdPtr
	mov	x1, x0
	ldr	w0, [sp, #60]
	bl	_gdNewDynamicCtx
	mov	x22, x0
	bl	_gdImageCreateFromGdCtx
	mov	x23, x0
Lloh37:
	adrp	x0, l_.str.17@PAGE
Lloh38:
	add	x0, x0, l_.str.17@PAGEOFF
	mov	x1, x20
	mov	x2, x23
	bl	_CompareImages
	mov	x0, x23
	bl	_gdImageDestroy
	ldr	x8, [x22]
	mov	x0, x22
	blr	x8
	ldr	x0, [x21, #8]
Lloh39:
	adrp	x1, l_.str.1@PAGE
Lloh40:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	mov	x23, x0
Lloh41:
	adrp	x8, _freadWrapper@GOTPAGE
Lloh42:
	ldr	x8, [x8, _freadWrapper@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	str	w8, [sp, #48]
	str	x0, [sp, #40]
	add	x0, sp, #40
	bl	_gdImageCreateFromPngSource
	mov	x22, x0
	mov	x0, x23
	bl	_fclose
	cbz	x22, LBB0_7
; %bb.6:
Lloh44:
	adrp	x0, l_.str.19@PAGE
Lloh45:
	add	x0, x0, l_.str.19@PAGEOFF
	mov	x1, x20
	mov	x2, x22
	bl	_CompareImages
	mov	x0, x22
	bl	_gdImageDestroy
	b	LBB0_8
LBB0_7:
Lloh46:
	adrp	x0, l_str@PAGE
Lloh47:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_8:
	ldr	x3, [x21, #8]
Lloh48:
	adrp	x2, l_.str.20@PAGE
Lloh49:
	add	x2, x2, l_.str.20@PAGEOFF
	add	x0, sp, #64
	mov	w1, #256
	bl	_snprintf
Lloh50:
	adrp	x1, l_.str.6@PAGE
Lloh51:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x0, sp, #64
	bl	_fopen
	mov	x21, x0
Lloh52:
	adrp	x8, _fwriteWrapper@GOTPAGE
Lloh53:
	ldr	x8, [x8, _fwriteWrapper@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	str	x0, [sp, #24]
	add	x1, sp, #24
	mov	x0, x19
	bl	_gdImagePngToSink
	mov	x0, x21
	bl	_fclose
Lloh55:
	adrp	x1, l_.str.1@PAGE
Lloh56:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #64
	bl	_fopen
	cbz	x0, LBB0_10
; %bb.9:
	mov	x21, x0
	bl	_gdImageCreateFromPng
	mov	x22, x0
	mov	x0, x21
	bl	_fclose
Lloh57:
	adrp	x0, l_.str.22@PAGE
Lloh58:
	add	x0, x0, l_.str.22@PAGEOFF
	mov	x1, x20
	mov	x2, x22
	bl	_CompareImages
	mov	x0, x22
	bl	_gdImageDestroy
	b	LBB0_11
LBB0_10:
Lloh59:
	adrp	x8, _stderr@GOTPAGE
Lloh60:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
Lloh62:
	adrp	x1, l_.str.21@PAGE
Lloh63:
	add	x1, x1, l_.str.21@PAGEOFF
	bl	_fprintf
LBB0_11:
	add	x0, sp, #64
	bl	_unlink
Lloh64:
	adrp	x0, l_.str.23@PAGE
Lloh65:
	add	x0, x0, l_.str.23@PAGEOFF
Lloh66:
	adrp	x1, l_.str.1@PAGE
Lloh67:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_32
; %bb.12:
	mov	x22, x0
	bl	_gdImageCreateFromPng
	mov	x21, x0
	mov	x0, x22
	bl	_fclose
Lloh68:
	adrp	x0, l_.str.25@PAGE
Lloh69:
	add	x0, x0, l_.str.25@PAGEOFF
Lloh70:
	adrp	x1, l_.str.1@PAGE
Lloh71:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_33
; %bb.13:
	mov	x22, x0
	mov	w1, #200
	mov	w2, #300
	mov	w3, #150
	mov	w4, #100
	bl	_gdImageCreateFromGd2Part
	mov	x23, x0
	mov	x0, x22
	bl	_fclose
Lloh72:
	adrp	x0, l_.str.27@PAGE
Lloh73:
	add	x0, x0, l_.str.27@PAGEOFF
	mov	x1, x21
	mov	x2, x23
	bl	_CompareImages
	mov	x0, x21
	bl	_gdImageDestroy
	mov	x0, x23
	bl	_gdImageDestroy
Lloh74:
	adrp	x0, l_.str.28@PAGE
Lloh75:
	add	x0, x0, l_.str.28@PAGEOFF
Lloh76:
	adrp	x1, l_.str.1@PAGE
Lloh77:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_34
; %bb.14:
	mov	x22, x0
	bl	_gdImageCreateFromPng
	mov	x21, x0
	mov	x0, x22
	bl	_fclose
	mov	w0, #100
	mov	w1, #60
	bl	_gdImageCreate
	mov	x22, x0
	mov	w1, #255
	mov	w2, #0
	mov	w3, #0
	bl	_gdImageColorAllocate
	mov	x23, x0
	mov	x0, x22
	mov	w1, #0
	mov	w2, #0
	mov	w3, #255
	bl	_gdImageColorAllocate
	mov	x24, x0
	mov	x0, x22
	mov	w1, #0
	mov	w2, #0
	mov	w3, #49
	mov	w4, #30
	mov	x5, x23
	bl	_gdImageFilledRectangle
	mov	w23, #50
	mov	x0, x22
	mov	w1, #50
	mov	w2, #30
	mov	w3, #99
	mov	x5, x24
	mov	w4, #59
	bl	_gdImageFilledRectangle
	str	w23, [sp]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #150
	mov	w3, #200
	mov	w4, #10
	mov	w5, #10
	mov	w6, #90
	mov	w7, #50
	bl	_gdImageCopyMerge
	str	w23, [sp]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #180
	mov	w3, #70
	mov	w4, #10
	mov	w5, #10
	mov	w6, #90
	mov	w7, #50
	bl	_gdImageCopyMerge
	str	w23, [sp]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #250
	mov	w3, #160
	mov	w4, #10
	mov	w5, #10
	mov	w6, #90
	mov	w7, #50
	bl	_gdImageCopyMergeGray
	str	w23, [sp]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #80
	mov	w3, #70
	mov	w4, #10
	mov	w5, #10
	mov	w6, #90
	mov	w7, #50
	bl	_gdImageCopyMergeGray
	mov	x0, x22
	bl	_gdImageDestroy
Lloh78:
	adrp	x0, l_.str.30@PAGE
Lloh79:
	add	x0, x0, l_.str.30@PAGEOFF
Lloh80:
	adrp	x1, l_.str.1@PAGE
Lloh81:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_35
; %bb.15:
	mov	x22, x0
	bl	_gdImageCreateFromPng
	mov	x23, x0
	mov	x0, x22
	bl	_fclose
	ldr	w8, [x21]
	str	x8, [sp]
Lloh82:
	adrp	x0, l_.str.32@PAGE
Lloh83:
	add	x0, x0, l_.str.32@PAGEOFF
	bl	_printf
Lloh84:
	adrp	x0, l_.str.33@PAGE
Lloh85:
	add	x0, x0, l_.str.33@PAGEOFF
	mov	x1, x21
	mov	x2, x23
	bl	_CompareImages
	mov	x0, x21
	bl	_gdImageDestroy
	mov	x0, x23
	bl	_gdImageDestroy
Lloh86:
	adrp	x28, _stderr@GOTPAGE
Lloh87:
	ldr	x28, [x28, _stderr@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh88:
	adrp	x1, l_.str.34@PAGE
Lloh89:
	add	x1, x1, l_.str.34@PAGEOFF
	bl	_fprintf
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_gdImageColorClosest
	mov	x21, x0
	ldr	w0, [x28]
	str	x21, [sp]
Lloh90:
	adrp	x1, l_.str.35@PAGE
Lloh91:
	add	x1, x1, l_.str.35@PAGEOFF
	bl	_fprintf
	cmn	w21, #1
	b.eq	LBB0_24
; %bb.16:
Lloh92:
	adrp	x0, l_.str.37@PAGE
Lloh93:
	add	x0, x0, l_.str.37@PAGEOFF
Lloh94:
	adrp	x1, l_.str.6@PAGE
Lloh95:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_37
; %bb.17:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_gdImageWBMP
	mov	x0, x22
	bl	_fclose
Lloh96:
	adrp	x0, l_.str.37@PAGE
Lloh97:
	add	x0, x0, l_.str.37@PAGEOFF
Lloh98:
	adrp	x1, l_.str.1@PAGE
Lloh99:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_38
; %bb.18:
	mov	x22, x0
	bl	_gdImageCreateFromWBMP
	mov	x21, x0
	ldr	w23, [x28]
	bl	_gdImageColorsTotal
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh100:
	adrp	x1, l_.str.40@PAGE
Lloh101:
	add	x1, x1, l_.str.40@PAGEOFF
	mov	x0, x23
	bl	_fprintf
	ldr	w0, [x28]
Lloh102:
	adrp	x1, l_.str.41@PAGE
Lloh103:
	add	x1, x1, l_.str.41@PAGEOFF
	bl	_fprintf
	mov	x0, x21
	bl	_gdImageColorsTotal
	cmp	w0, #1
	b.lt	LBB0_21
; %bb.19:
	mov	w23, #0
Lloh104:
	adrp	x24, l_.str.42@PAGE
Lloh105:
	add	x24, x24, l_.str.42@PAGEOFF
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	w25, [x28]
	mov	x0, x21
	mov	x1, x23
	bl	_gdImageRed
	mov	x26, x0
	mov	x0, x21
	mov	x1, x23
	bl	_gdImageGreen
	mov	x27, x0
	mov	x0, x21
	mov	x1, x23
	bl	_gdImageBlue
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x27, x0, [sp, #8]
	str	x26, [sp]
	mov	x0, x25
	mov	x1, x24
	bl	_fprintf
	add	w23, w23, #1
	mov	x0, x21
	bl	_gdImageColorsTotal
	cmp	w23, w0
	b.lt	LBB0_20
LBB0_21:
	mov	x0, x22
	bl	_fclose
	cbz	x21, LBB0_39
; %bb.22:
Lloh106:
	adrp	x0, l_.str.44@PAGE
Lloh107:
	add	x0, x0, l_.str.44@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_CompareImages
Lloh108:
	adrp	x0, l_.str.45@PAGE
Lloh109:
	add	x0, x0, l_.str.45@PAGEOFF
Lloh110:
	adrp	x1, l_.str.6@PAGE
Lloh111:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_40
; %bb.23:
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_gdImagePng
	mov	x0, x22
	bl	_fclose
	mov	x0, x21
	bl	_gdImageDestroy
	b	LBB0_25
LBB0_24:
	ldr	w0, [x28]
Lloh112:
	adrp	x1, l_.str.36@PAGE
Lloh113:
	add	x1, x1, l_.str.36@PAGEOFF
	bl	_fprintf
LBB0_25:
	mov	x0, x19
	bl	_gdImageDestroy
	mov	x0, x20
	bl	_gdImageDestroy
	ldur	x8, [x29, #-96]
Lloh114:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh115:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh116:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.26:
	mov	w0, #0
	ldp	x29, x30, [sp, #416]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #400]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #384]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #368]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #352]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #336]            ; 16-byte Folded Reload
	add	sp, sp, #432
	ret
LBB0_27:
Lloh117:
	adrp	x8, _stderr@GOTPAGE
Lloh118:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh119:
	ldr	w0, [x8]
Lloh120:
	adrp	x1, l_.str@PAGE
Lloh121:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_41
LBB0_28:
Lloh122:
	adrp	x8, _stderr@GOTPAGE
Lloh123:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh124:
	ldr	w0, [x8]
Lloh125:
	adrp	x1, l_.str.2@PAGE
Lloh126:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_41
LBB0_29:
Lloh127:
	adrp	x8, _stderr@GOTPAGE
Lloh128:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh129:
	ldr	w0, [x8]
Lloh130:
	adrp	x1, l_.str.7@PAGE
Lloh131:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_41
LBB0_30:
Lloh132:
	adrp	x8, _stderr@GOTPAGE
Lloh133:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh134:
	ldr	w0, [x8]
Lloh135:
	adrp	x1, l_.str.11@PAGE
Lloh136:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_41
LBB0_31:
Lloh137:
	adrp	x8, _stderr@GOTPAGE
Lloh138:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh139:
	ldr	w0, [x8]
Lloh140:
	adrp	x1, l_.str.15@PAGE
Lloh141:
	add	x1, x1, l_.str.15@PAGEOFF
	b	LBB0_41
LBB0_32:
Lloh142:
	adrp	x8, _stderr@GOTPAGE
Lloh143:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh144:
	ldr	w0, [x8]
Lloh145:
	adrp	x1, l_.str.24@PAGE
Lloh146:
	add	x1, x1, l_.str.24@PAGEOFF
	b	LBB0_41
LBB0_33:
Lloh147:
	adrp	x8, _stderr@GOTPAGE
Lloh148:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh149:
	ldr	w0, [x8]
Lloh150:
	adrp	x1, l_.str.26@PAGE
Lloh151:
	add	x1, x1, l_.str.26@PAGEOFF
	b	LBB0_41
LBB0_34:
Lloh152:
	adrp	x8, _stderr@GOTPAGE
Lloh153:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh154:
	ldr	w0, [x8]
Lloh155:
	adrp	x1, l_.str.29@PAGE
Lloh156:
	add	x1, x1, l_.str.29@PAGEOFF
	b	LBB0_41
LBB0_35:
Lloh157:
	adrp	x8, _stderr@GOTPAGE
Lloh158:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh159:
	ldr	w0, [x8]
Lloh160:
	adrp	x1, l_.str.31@PAGE
Lloh161:
	add	x1, x1, l_.str.31@PAGEOFF
	b	LBB0_41
LBB0_36:
	bl	___stack_chk_fail
LBB0_37:
	ldr	w0, [x28]
Lloh162:
	adrp	x1, l_.str.38@PAGE
Lloh163:
	add	x1, x1, l_.str.38@PAGEOFF
	b	LBB0_41
LBB0_38:
	ldr	w0, [x28]
Lloh164:
	adrp	x1, l_.str.39@PAGE
Lloh165:
	add	x1, x1, l_.str.39@PAGEOFF
	b	LBB0_41
LBB0_39:
	ldr	w0, [x28]
Lloh166:
	adrp	x1, l_.str.43@PAGE
Lloh167:
	add	x1, x1, l_.str.43@PAGEOFF
	b	LBB0_41
LBB0_40:
	ldr	w0, [x28]
Lloh168:
	adrp	x1, l_.str.46@PAGE
Lloh169:
	add	x1, x1, l_.str.46@PAGEOFF
LBB0_41:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh94, Lloh95
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpAdd	Lloh98, Lloh99
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpAdd	Lloh104, Lloh105
	.loh AdrpAdd	Lloh110, Lloh111
	.loh AdrpAdd	Lloh108, Lloh109
	.loh AdrpAdd	Lloh106, Lloh107
	.loh AdrpAdd	Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpAdd	Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpAdd	Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpAdd	Lloh130, Lloh131
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh129
	.loh AdrpAdd	Lloh135, Lloh136
	.loh AdrpLdrGotLdr	Lloh132, Lloh133, Lloh134
	.loh AdrpAdd	Lloh140, Lloh141
	.loh AdrpLdrGotLdr	Lloh137, Lloh138, Lloh139
	.loh AdrpAdd	Lloh145, Lloh146
	.loh AdrpLdrGotLdr	Lloh142, Lloh143, Lloh144
	.loh AdrpAdd	Lloh150, Lloh151
	.loh AdrpLdrGotLdr	Lloh147, Lloh148, Lloh149
	.loh AdrpAdd	Lloh155, Lloh156
	.loh AdrpLdrGotLdr	Lloh152, Lloh153, Lloh154
	.loh AdrpAdd	Lloh160, Lloh161
	.loh AdrpLdrGotLdr	Lloh157, Lloh158, Lloh159
	.loh AdrpAdd	Lloh162, Lloh163
	.loh AdrpAdd	Lloh164, Lloh165
	.loh AdrpAdd	Lloh166, Lloh167
	.loh AdrpAdd	Lloh168, Lloh169
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Usage: gdtest filename.png\n"

l_.str.1:                               ; @.str.1
	.asciz	"rb"

l_.str.2:                               ; @.str.2
	.asciz	"Input file does not exist!\n"

l_.str.3:                               ; @.str.3
	.asciz	"Reference File has %d Palette entries\n"

l_.str.4:                               ; @.str.4
	.asciz	"Initial Versions"

l_.str.5:                               ; @.str.5
	.asciz	"%s.png"

l_.str.6:                               ; @.str.6
	.asciz	"wb"

l_.str.7:                               ; @.str.7
	.asciz	"PNG Output file does not exist!\n"

l_.str.8:                               ; @.str.8
	.asciz	"GD->PNG File->GD"

l_.str.9:                               ; @.str.9
	.asciz	"GD->PNG ptr->GD"

l_.str.10:                              ; @.str.10
	.asciz	"%s.gd2"

l_.str.11:                              ; @.str.11
	.asciz	"GD2 Output file does not exist!\n"

l_.str.12:                              ; @.str.12
	.asciz	"GD->GD2 File->GD"

l_.str.13:                              ; @.str.13
	.asciz	"GD->GD2 ptr->GD"

l_.str.14:                              ; @.str.14
	.asciz	"%s.gd"

l_.str.15:                              ; @.str.15
	.asciz	"GD Output file does not exist!\n"

l_.str.16:                              ; @.str.16
	.asciz	"GD->GD File->GD"

l_.str.17:                              ; @.str.17
	.asciz	"GD->GD ptr->GD"

	.comm	_freadWrapper,4,2               ; @freadWrapper
l_.str.19:                              ; @.str.19
	.asciz	"GD Source"

l_.str.20:                              ; @.str.20
	.asciz	"%s.snk"

	.comm	_fwriteWrapper,4,2              ; @fwriteWrapper
l_.str.21:                              ; @.str.21
	.asciz	"GD Sink: ERROR - GD Sink Output file does not exist!\n"

l_.str.22:                              ; @.str.22
	.asciz	"GD Sink"

l_.str.23:                              ; @.str.23
	.asciz	"test/gdtest_200_300_150_100.png"

l_.str.24:                              ; @.str.24
	.asciz	"gdtest_200_300_150_100.png does not exist!\n"

l_.str.25:                              ; @.str.25
	.asciz	"test/gdtest.gd2"

l_.str.26:                              ; @.str.26
	.asciz	"gdtest.gd2 does not exist!\n"

l_.str.27:                              ; @.str.27
	.asciz	"GD2Part (gdtest_200_300_150_100.png, gdtest.gd2(part))"

l_.str.28:                              ; @.str.28
	.asciz	"test/gdtest.png"

l_.str.29:                              ; @.str.29
	.asciz	"gdtest.png does not exist!\n"

l_.str.30:                              ; @.str.30
	.asciz	"test/gdtest_merge.png"

l_.str.31:                              ; @.str.31
	.asciz	"gdtest_merge.png does not exist!\n"

l_.str.32:                              ; @.str.32
	.asciz	"[Merged Image has %d colours]\n"

l_.str.33:                              ; @.str.33
	.asciz	"Merged (gdtest.png, gdtest_merge.png)"

l_.str.34:                              ; @.str.34
	.asciz	"NOTE: the WBMP output image will NOT match the original unless the original\nis also black and white. This is OK!\n"

l_.str.35:                              ; @.str.35
	.asciz	"Foreground index is %d\n"

l_.str.36:                              ; @.str.36
	.asciz	"Source image has no colors, skipping wbmp test.\n"

l_.str.37:                              ; @.str.37
	.asciz	"test/gdtest.wbmp"

l_.str.38:                              ; @.str.38
	.asciz	"Can't create file test/gdtest.wbmp.\n"

l_.str.39:                              ; @.str.39
	.asciz	"Can't open file test/gdtest.wbmp.\n"

l_.str.40:                              ; @.str.40
	.asciz	"WBMP has %d colors\n"

l_.str.41:                              ; @.str.41
	.asciz	"WBMP colors are:\n"

l_.str.42:                              ; @.str.42
	.asciz	"%02X%02X%02X\n"

l_.str.43:                              ; @.str.43
	.asciz	"gdImageCreateFromWBMP failed.\n"

l_.str.44:                              ; @.str.44
	.asciz	"WBMP test (gdtest.png, gdtest.wbmp)"

l_.str.45:                              ; @.str.45
	.asciz	"test/gdtest_wbmp_to_png.png"

l_.str.46:                              ; @.str.46
	.asciz	"Can't create file test/gdtest_wbmp_to_png.png.\n"

l_str:                                  ; @str
	.asciz	"GD Source: ERROR Null returned by gdImageCreateFromPngSource"

.subsections_via_symbols
