	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function main
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_2:
	.quad	0x4000000000000000              ## double 2
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$2, %edi
	jne	LBB0_3
## %bb.1:
	movq	%rsi, %r14
	movq	8(%rsi), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gdImageCreateFromPng
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_fclose
	leaq	L_.str.3(%rip), %rcx
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_testDrawing
	leaq	L_.str.4(%rip), %rcx
	movl	%r14d, %edi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_testDrawing
	leaq	L_.str.5(%rip), %rcx
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_testDrawing
	leaq	L_.str.6(%rip), %rcx
	movl	%r14d, %edi
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_testDrawing
	leaq	L_.str.7(%rip), %rcx
	movsd	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_testDrawing
	leaq	L_.str.8(%rip), %rcx
	movl	%r14d, %edi
	movsd	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_testDrawing
	leaq	L_.str.9(%rip), %rcx
	movl	%r14d, %edi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_testDrawing
	leaq	L_.str.10(%rip), %rcx
	movl	%r14d, %edi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movl	$1, %esi
	movl	$1, %edx
	callq	_testDrawing
	leaq	L_.str.11(%rip), %rcx
	movl	%r14d, %edi
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_testDrawing
	leaq	L_.str.12(%rip), %rcx
	movl	%r14d, %edi
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	movl	$1, %esi
	movl	$1, %edx
	callq	_testDrawing
	leaq	L_.str.13(%rip), %rcx
	movl	%r14d, %edi
	movsd	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_testDrawing
	leaq	L_.str.14(%rip), %rcx
	movl	%r14d, %edi
	movsd	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero
	movl	$1, %esi
	movl	$1, %edx
	callq	_testDrawing
	movl	%r14d, %edi
	callq	_gdImageDestroy
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r14), %rdx
	leaq	L_.str.2(%rip), %rsi
	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: testac filename.png\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"Can't load %s.\n"

L_.str.3:                               ## @.str.3
	.asciz	"noblending-fullsize-truecolor.png"

L_.str.4:                               ## @.str.4
	.asciz	"blending-fullsize-truecolor.png"

L_.str.5:                               ## @.str.5
	.asciz	"noblending-halfsize-truecolor.png"

L_.str.6:                               ## @.str.6
	.asciz	"blending-halfsize-truecolor.png"

L_.str.7:                               ## @.str.7
	.asciz	"noblending-doublesize-truecolor.png"

L_.str.8:                               ## @.str.8
	.asciz	"blending-doublesize-truecolor.png"

L_.str.9:                               ## @.str.9
	.asciz	"noblending-fullsize-palette.png"

L_.str.10:                              ## @.str.10
	.asciz	"blending-fullsize-palette.png"

L_.str.11:                              ## @.str.11
	.asciz	"noblending-halfsize-palette.png"

L_.str.12:                              ## @.str.12
	.asciz	"blending-halfsize-palette.png"

L_.str.13:                              ## @.str.13
	.asciz	"noblending-doublesize-palette.png"

L_.str.14:                              ## @.str.14
	.asciz	"blending-doublesize-palette.png"

.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, #48
	.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
	cmp	w0, #2
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x1
	ldr	x0, [x1, #8]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, x0
	bl	_gdImageCreateFromPng
	mov	x19, x0
	mov	x0, x20
	bl	_fclose
Lloh2:
	adrp	x3, l_.str.3@PAGE
Lloh3:
	add	x3, x3, l_.str.3@PAGEOFF
	fmov	d0, #1.00000000
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_testDrawing
Lloh4:
	adrp	x3, l_.str.4@PAGE
Lloh5:
	add	x3, x3, l_.str.4@PAGEOFF
	fmov	d0, #1.00000000
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_testDrawing
Lloh6:
	adrp	x3, l_.str.5@PAGE
Lloh7:
	add	x3, x3, l_.str.5@PAGEOFF
	fmov	d0, #0.50000000
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_testDrawing
Lloh8:
	adrp	x3, l_.str.6@PAGE
Lloh9:
	add	x3, x3, l_.str.6@PAGEOFF
	fmov	d0, #0.50000000
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_testDrawing
Lloh10:
	adrp	x3, l_.str.7@PAGE
Lloh11:
	add	x3, x3, l_.str.7@PAGEOFF
	fmov	d0, #2.00000000
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_testDrawing
Lloh12:
	adrp	x3, l_.str.8@PAGE
Lloh13:
	add	x3, x3, l_.str.8@PAGEOFF
	fmov	d0, #2.00000000
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_testDrawing
Lloh14:
	adrp	x3, l_.str.9@PAGE
Lloh15:
	add	x3, x3, l_.str.9@PAGEOFF
	fmov	d0, #1.00000000
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_testDrawing
Lloh16:
	adrp	x3, l_.str.10@PAGE
Lloh17:
	add	x3, x3, l_.str.10@PAGEOFF
	fmov	d0, #1.00000000
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_testDrawing
Lloh18:
	adrp	x3, l_.str.11@PAGE
Lloh19:
	add	x3, x3, l_.str.11@PAGEOFF
	fmov	d0, #0.50000000
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_testDrawing
Lloh20:
	adrp	x3, l_.str.12@PAGE
Lloh21:
	add	x3, x3, l_.str.12@PAGEOFF
	fmov	d0, #0.50000000
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_testDrawing
Lloh22:
	adrp	x3, l_.str.13@PAGE
Lloh23:
	add	x3, x3, l_.str.13@PAGEOFF
	fmov	d0, #2.00000000
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_testDrawing
Lloh24:
	adrp	x3, l_.str.14@PAGE
Lloh25:
	add	x3, x3, l_.str.14@PAGEOFF
	fmov	d0, #2.00000000
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_testDrawing
	mov	x0, x19
	bl	_gdImageDestroy
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
Lloh26:
	adrp	x8, _stderr@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_5:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Usage: testac filename.png\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"Can't load %s.\n"

l_.str.3:                               ; @.str.3
	.asciz	"noblending-fullsize-truecolor.png"

l_.str.4:                               ; @.str.4
	.asciz	"blending-fullsize-truecolor.png"

l_.str.5:                               ; @.str.5
	.asciz	"noblending-halfsize-truecolor.png"

l_.str.6:                               ; @.str.6
	.asciz	"blending-halfsize-truecolor.png"

l_.str.7:                               ; @.str.7
	.asciz	"noblending-doublesize-truecolor.png"

l_.str.8:                               ; @.str.8
	.asciz	"blending-doublesize-truecolor.png"

l_.str.9:                               ; @.str.9
	.asciz	"noblending-fullsize-palette.png"

l_.str.10:                              ; @.str.10
	.asciz	"blending-fullsize-palette.png"

l_.str.11:                              ; @.str.11
	.asciz	"noblending-halfsize-palette.png"

l_.str.12:                              ; @.str.12
	.asciz	"blending-halfsize-palette.png"

l_.str.13:                              ; @.str.13
	.asciz	"noblending-doublesize-palette.png"

l_.str.14:                              ; @.str.14
	.asciz	"blending-doublesize-palette.png"

.subsections_via_symbols
