	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageCompare                 ## -- Begin function gdImageCompare
	.p2align	4, 0x90
_gdImageCompare:                        ## @gdImageCompare
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	(%rdi), %rax
	movq	8(%rdi), %rsi
	xorl	%ecx, %ecx
	movl	$0, %edx
	cmpq	(%r13), %rax
	je	LBB0_2
## %bb.1:
	movq	_GD_CMP_INTERLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_2:
	movl	$0, %r9d
	cmpq	8(%r13), %rsi
	je	LBB0_4
## %bb.3:
	movq	_GD_CMP_TRANSPARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
LBB0_4:
	orl	%edx, %r9d
	movq	16(%rdi), %rdx
	cmpq	16(%r13), %rdx
	je	LBB0_6
## %bb.5:
	movq	_GD_CMP_TRUECOLOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_6:
	orl	%ecx, %r9d
	movl	24(%rdi), %edx
	movl	24(%r13), %ecx
	cmpl	%ecx, %edx
	je	LBB0_8
## %bb.7:
	movq	_GD_CMP_SIZE_X@GOTPCREL(%rip), %rbx
	movq	_GD_CMP_IMAGE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	addl	(%rbx), %esi
	orl	%esi, %r9d
	cmpl	%edx, %ecx
	cmovll	%ecx, %edx
LBB0_8:
	movl	28(%rdi), %r8d
	movl	28(%r13), %ecx
	cmpl	%ecx, %r8d
	je	LBB0_10
## %bb.9:
	movl	%r8d, %ebx
	movq	_GD_CMP_SIZE_Y@GOTPCREL(%rip), %r8
	movq	_GD_CMP_IMAGE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	addl	(%r8), %esi
	movl	%ebx, %r8d
	orl	%esi, %r9d
	cmpl	%ebx, %ecx
	cmovll	%ecx, %r8d
LBB0_10:
	movq	32(%rdi), %rcx
	xorl	%eax, %eax
	cmpq	32(%r13), %rcx
	je	LBB0_12
## %bb.11:
	movq	_GD_CMP_NUM_COLORS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
LBB0_12:
	orl	%r9d, %eax
	testl	%r8d, %r8d
	jle	LBB0_32
## %bb.13:
	xorl	%ebx, %ebx
	movq	_GD_CMP_COLOR@GOTPCREL(%rip), %rsi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	testl	%edx, %edx
	jle	LBB0_30
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%r14d, %r14d
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, 16(%rdi)
	je	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_gdImageTrueColorPixel
	cmpq	$0, 16(%r13)
	je	LBB0_23
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	%r13, %rdi
	movl	%eax, %r15d
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_gdImageTrueColorPixel
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=2
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_gdImagePalettePixel
	cmpq	$0, 16(%r13)
	jne	LBB0_22
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=2
	movq	%r13, %rdi
	movl	%eax, %r15d
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_gdImagePalettePixel
LBB0_24:                                ##   in Loop: Header=BB0_16 Depth=2
	movl	%r15d, %ebx
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_gdImageRed
	movq	%rax, %r12
	movq	%r13, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_gdImageRed
	cmpq	%rax, %r12
	jne	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_gdImageGreen
	movq	%rax, %r12
	movq	%r13, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_gdImageGreen
	cmpq	%rax, %r12
	jne	LBB0_25
## %bb.27:                              ##   in Loop: Header=BB0_16 Depth=2
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_gdImageBlue
	movq	%rax, %r15
	movq	%r13, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_gdImageBlue
	cmpq	%rax, %r15
	jne	LBB0_28
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=2
	incl	%r14d
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	cmpl	%r14d, %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_16
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	_GD_CMP_COLOR@GOTPCREL(%rip), %rsi
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_GD_CMP_IMAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_GD_CMP_COLOR@GOTPCREL(%rip), %rsi
	addl	(%rsi), %ecx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	orl	%ecx, %eax
	movq	%r15, %rdi
	jmp	LBB0_29
LBB0_28:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_GD_CMP_IMAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_GD_CMP_COLOR@GOTPCREL(%rip), %rsi
	addl	(%rsi), %ecx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	orl	%ecx, %eax
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
LBB0_29:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
LBB0_30:                                ##   in Loop: Header=BB0_14 Depth=1
	testl	%eax, (%rsi)
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_14 Depth=1
	incl	%ebx
	cmpl	%r8d, %ebx
	jne	LBB0_14
LBB0_32:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GD_CMP_INTERLACE,4,2           ## @GD_CMP_INTERLACE
	.comm	_GD_CMP_TRANSPARENT,4,2         ## @GD_CMP_TRANSPARENT
	.comm	_GD_CMP_TRUECOLOR,4,2           ## @GD_CMP_TRUECOLOR
	.comm	_GD_CMP_SIZE_X,4,2              ## @GD_CMP_SIZE_X
	.comm	_GD_CMP_IMAGE,4,2               ## @GD_CMP_IMAGE
	.comm	_GD_CMP_SIZE_Y,4,2              ## @GD_CMP_SIZE_Y
	.comm	_GD_CMP_NUM_COLORS,4,2          ## @GD_CMP_NUM_COLORS
	.comm	_GD_CMP_COLOR,4,2               ## @GD_CMP_COLOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageCompare                 ; -- Begin function gdImageCompare
	.p2align	2
_gdImageCompare:                        ; @gdImageCompare
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x20, x0
	ldp	x8, x9, [x0]
	ldp	x10, x11, [x1]
	cmp	x8, x10
Lloh0:
	adrp	x8, _GD_CMP_INTERLACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GD_CMP_INTERLACE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _GD_CMP_TRANSPARENT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _GD_CMP_TRANSPARENT@GOTPAGEOFF]
	csel	w8, wzr, w8, eq
Lloh5:
	ldr	w10, [x10]
	cmp	x9, x11
	csel	w9, wzr, w10, eq
	orr	w8, w9, w8
	ldr	x9, [x0, #16]
	ldr	x10, [x1, #16]
Lloh6:
	adrp	x11, _GD_CMP_TRUECOLOR@GOTPAGE
Lloh7:
	ldr	x11, [x11, _GD_CMP_TRUECOLOR@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w9, wzr, w11, eq
	orr	w8, w8, w9
	ldr	w27, [x0, #24]
	ldr	w9, [x1, #24]
Lloh9:
	adrp	x12, _GD_CMP_IMAGE@GOTPAGE
Lloh10:
	ldr	x12, [x12, _GD_CMP_IMAGE@GOTPAGEOFF]
	cmp	w27, w9
	b.eq	LBB0_2
; %bb.1:
Lloh11:
	adrp	x10, _GD_CMP_SIZE_X@GOTPAGE
Lloh12:
	ldr	x10, [x10, _GD_CMP_SIZE_X@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	ldr	w11, [x12]
	add	w10, w11, w10
	orr	w8, w10, w8
	cmp	w9, w27
	csel	w27, w9, w27, lt
LBB0_2:
	ldr	w13, [x20, #28]
	ldr	w9, [x19, #28]
	cmp	w13, w9
	b.eq	LBB0_4
; %bb.3:
Lloh14:
	adrp	x10, _GD_CMP_SIZE_Y@GOTPAGE
Lloh15:
	ldr	x10, [x10, _GD_CMP_SIZE_Y@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	ldr	w11, [x12]
	add	w10, w11, w10
	orr	w8, w10, w8
	cmp	w9, w13
	csel	w13, w9, w13, lt
LBB0_4:
	ldr	x9, [x20, #32]
Lloh17:
	adrp	x10, _GD_CMP_NUM_COLORS@GOTPAGE
Lloh18:
	ldr	x10, [x10, _GD_CMP_NUM_COLORS@GOTPAGEOFF]
	ldr	x11, [x19, #32]
Lloh19:
	ldr	w10, [x10]
	cmp	x9, x11
	csel	w9, wzr, w10, eq
	orr	w21, w9, w8
	cmp	w13, #1
	b.lt	LBB0_21
; %bb.5:
	mov	w22, #0
Lloh20:
	adrp	x28, _GD_CMP_COLOR@GOTPAGE
Lloh21:
	ldr	x28, [x28, _GD_CMP_COLOR@GOTPAGEOFF]
	str	w13, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x28]
Lloh22:
	adrp	x9, _GD_CMP_IMAGE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _GD_CMP_IMAGE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	add	w8, w9, w8
	orr	w21, w8, w21
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w13, [sp, #12]                  ; 4-byte Folded Reload
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x28]
	and	w8, w8, w21
	add	w22, w22, #1
	cmp	w8, #0
	ccmp	w22, w13, #4, eq
	b.eq	LBB0_21
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	cmp	w27, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w23, #0
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_gdImageTrueColorPixel
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_gdImagePalettePixel
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	x24, x0
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_gdImageTrueColorPixel
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_gdImagePalettePixel
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	x25, x0
	mov	x0, x20
	mov	x1, x24
	bl	_gdImageRed
	mov	x26, x0
	mov	x0, x19
	mov	x1, x25
	bl	_gdImageRed
	cmp	x26, x0
	b.ne	LBB0_6
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x20
	mov	x1, x24
	bl	_gdImageGreen
	mov	x26, x0
	mov	x0, x19
	mov	x1, x25
	bl	_gdImageGreen
	cmp	x26, x0
	b.ne	LBB0_6
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x0, x20
	mov	x1, x24
	bl	_gdImageBlue
	mov	x24, x0
	mov	x0, x19
	mov	x1, x25
	bl	_gdImageBlue
	cmp	x24, x0
	b.ne	LBB0_6
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=2
	add	w23, w23, #1
	cmp	w27, w23
	b.ne	LBB0_11
	b	LBB0_7
LBB0_21:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_GD_CMP_INTERLACE,4,2           ; @GD_CMP_INTERLACE
	.comm	_GD_CMP_TRANSPARENT,4,2         ; @GD_CMP_TRANSPARENT
	.comm	_GD_CMP_TRUECOLOR,4,2           ; @GD_CMP_TRUECOLOR
	.comm	_GD_CMP_SIZE_X,4,2              ; @GD_CMP_SIZE_X
	.comm	_GD_CMP_IMAGE,4,2               ; @GD_CMP_IMAGE
	.comm	_GD_CMP_SIZE_Y,4,2              ; @GD_CMP_SIZE_Y
	.comm	_GD_CMP_NUM_COLORS,4,2          ; @GD_CMP_NUM_COLORS
	.comm	_GD_CMP_COLOR,4,2               ; @GD_CMP_COLOR
.subsections_via_symbols
