	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CompareImages                  ## -- Begin function CompareImages
	.p2align	4, 0x90
_CompareImages:                         ## @CompareImages
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_gdImageCompare
	movl	%eax, %ebx
	movq	_GD_CMP_IMAGE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	_GD_CMP_SIZE_X@GOTPCREL(%rip), %rax
	movq	_GD_CMP_SIZE_Y@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	(%rax), %ecx
	testl	%ebx, %ecx
	je	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_6:
	movq	_GD_CMP_NUM_COLORS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:
	movl	(%r12), %edx
	movl	(%r15), %ecx
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_8:
	movq	_GD_CMP_COLOR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_11
## %bb.9:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_10
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.2(%rip), %rdi
LBB0_10:
	movq	%r14, %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GD_CMP_IMAGE,4,2               ## @GD_CMP_IMAGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%%%s: ERROR images differ: BAD\n"

L_.str.1:                               ## @.str.1
	.asciz	"%%%s: WARNING images differ: WARNING - Probably OK\n"

L_.str.2:                               ## @.str.2
	.asciz	"%%%s: OK\n"

	.comm	_GD_CMP_SIZE_X,4,2              ## @GD_CMP_SIZE_X
	.comm	_GD_CMP_SIZE_Y,4,2              ## @GD_CMP_SIZE_Y
L_.str.3:                               ## @.str.3
	.asciz	"-%s: INFO image sizes differ\n"

	.comm	_GD_CMP_NUM_COLORS,4,2          ## @GD_CMP_NUM_COLORS
L_.str.4:                               ## @.str.4
	.asciz	"-%s: INFO number of pallette entries differ %d Vs. %d\n"

	.comm	_GD_CMP_COLOR,4,2               ## @GD_CMP_COLOR
L_.str.5:                               ## @.str.5
	.asciz	"-%s: INFO actual colours of pixels differ\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CompareImages                  ; -- Begin function CompareImages
	.p2align	2
_CompareImages:                         ; @CompareImages
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	mov	x1, x2
	bl	_gdImageCompare
	mov	x20, x0
Lloh0:
	adrp	x8, _GD_CMP_IMAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GD_CMP_IMAGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	cbz	w20, LBB0_11
; %bb.3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	mov	x1, x19
	bl	_printf
Lloh7:
	adrp	x8, _GD_CMP_SIZE_X@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GD_CMP_SIZE_X@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _GD_CMP_SIZE_Y@GOTPAGE
Lloh11:
	ldr	x9, [x9, _GD_CMP_SIZE_Y@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	add	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_printf
LBB0_6:
Lloh15:
	adrp	x8, _GD_CMP_NUM_COLORS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GD_CMP_NUM_COLORS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x22]
	ldr	w9, [x21]
	stp	x8, x9, [sp]
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_printf
LBB0_8:
Lloh20:
	adrp	x8, _GD_CMP_COLOR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GD_CMP_COLOR@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
Lloh23:
	adrp	x0, l_.str.5@PAGE
Lloh24:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_12:
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_printf
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GD_CMP_IMAGE,4,2               ; @GD_CMP_IMAGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%%%s: ERROR images differ: BAD\n"

l_.str.1:                               ; @.str.1
	.asciz	"%%%s: WARNING images differ: WARNING - Probably OK\n"

l_.str.2:                               ; @.str.2
	.asciz	"%%%s: OK\n"

	.comm	_GD_CMP_SIZE_X,4,2              ; @GD_CMP_SIZE_X
	.comm	_GD_CMP_SIZE_Y,4,2              ; @GD_CMP_SIZE_Y
l_.str.3:                               ; @.str.3
	.asciz	"-%s: INFO image sizes differ\n"

	.comm	_GD_CMP_NUM_COLORS,4,2          ; @GD_CMP_NUM_COLORS
l_.str.4:                               ; @.str.4
	.asciz	"-%s: INFO number of pallette entries differ %d Vs. %d\n"

	.comm	_GD_CMP_COLOR,4,2               ; @GD_CMP_COLOR
l_.str.5:                               ; @.str.5
	.asciz	"-%s: INFO actual colours of pixels differ\n"

.subsections_via_symbols
