	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function gdImageCopyMerge
LCPI0_0:
	.quad	0x4059000000000000              ## double 100
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gdImageCopyMerge
	.p2align	4, 0x90
_gdImageCopyMerge:                      ## @gdImageCopyMerge
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -120(%rbp)                 ## 8-byte Spill
	movl	%ecx, %eax
	movl	%edx, -100(%rbp)                ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	24(%rbp), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.1:
	movl	%r9d, %r12d
	movq	%rsi, %rbx
	movl	32(%rbp), %edx
	movl	16(%rbp), %esi
	addl	%r9d, -60(%rbp)                 ## 4-byte Folded Spill
	cvtsi2sd	%edx, %xmm1
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	addl	%esi, %ecx
	movl	%ecx, -108(%rbp)                ## 4-byte Spill
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	divsd	%xmm0, %xmm1
	movsd	%xmm1, -96(%rbp)                ## 8-byte Spill
	movl	$100, %ecx
	subl	%edx, %ecx
	xorps	%xmm1, %xmm1
	cvtsi2sd	%ecx, %xmm1
	divsd	%xmm0, %xmm1
	movsd	%xmm1, -88(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	incl	%r12d
	cmpl	-60(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	16(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	%eax, %r14d
	movl	-100(%rbp), %r15d               ## 4-byte Reload
	movl	%r12d, -104(%rbp)               ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_gdImageGetPixel
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_gdImageRed
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	%xmm0, -80(%rbp)                ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_gdImageRed
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	-88(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	-80(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	-96(%rbp), %xmm1                ## 8-byte Folded Reload
	addsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_gdImageGreen
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_gdImageGreen
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	-88(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	-72(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	-96(%rbp), %xmm1                ## 8-byte Folded Reload
	addsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_gdImageBlue
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movsd	%xmm0, -128(%rbp)               ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	-104(%rbp), %r12d               ## 4-byte Reload
	callq	_gdImageBlue
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	-88(%rbp), %xmm0                ## 8-byte Folded Reload
	movsd	-128(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	-96(%rbp), %xmm1                ## 8-byte Folded Reload
	addsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	callq	_gdImageColorResolve
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %r13d
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	%r15d, %esi
	movl	%r13d, %ecx
	callq	_gdImageSetPixel
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	incl	%r15d
	incl	%r14d
	cmpl	-108(%rbp), %r14d               ## 4-byte Folded Reload
	jge	LBB0_10
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_gdImageGetPixel
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_gdImageGetTransparent
	cmpl	%r13d, %eax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	cmpq	%rbx, %rdi
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_8
LBB0_11:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdImageCopyMerge               ; -- Begin function gdImageCopyMerge
	.p2align	2
_gdImageCopyMerge:                      ; @gdImageCopyMerge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	str	w6, [sp, #24]                   ; 4-byte Folded Spill
	stp	w2, w4, [sp, #12]               ; 8-byte Folded Spill
	cmp	w7, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x20, x5
	mov	x21, x3
	mov	x24, x1
	mov	x25, x0
	ldr	w8, [x29, #16]
	add	w9, w7, w5
	str	w9, [sp, #20]                   ; 4-byte Folded Spill
	ldr	w9, [sp, #24]                   ; 4-byte Folded Reload
	ldr	w10, [sp, #16]                  ; 4-byte Folded Reload
	add	w22, w9, w10
	scvtf	d0, w8
	mov	x9, #4636737291354636288
	fmov	d1, x9
	fdiv	d8, d0, d1
	mov	w9, #100
	sub	w8, w9, w8
	scvtf	d0, w8
	fdiv	d9, d0, d1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	add	w20, w20, #1
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cmp	w20, w8
	b.ge	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w27, w26, [sp, #12]             ; 8-byte Folded Reload
	str	w20, [sp, #28]                  ; 4-byte Folded Spill
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x25
	mov	x1, x27
	mov	x2, x21
	mov	x3, x28
	bl	_gdImageSetPixel
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w27, w27, #1
	add	w26, w26, #1
	cmp	w26, w22
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	mov	x1, x26
	mov	x2, x20
	bl	_gdImageGetPixel
	mov	x28, x0
	mov	x0, x24
	bl	_gdImageGetTransparent
	cmp	w0, w28
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	x25, x24
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x25
	mov	x1, x27
	mov	x2, x21
	bl	_gdImageGetPixel
	mov	x23, x0
	mov	x0, x24
	mov	x1, x28
	bl	_gdImageRed
	scvtf	d10, w0
	mov	x0, x25
	mov	x1, x23
	bl	_gdImageRed
	scvtf	d0, w0
	fmul	d0, d9, d0
	fmadd	d0, d10, d8, d0
	mov	x20, x21
	fcvtzs	w21, d0
	mov	x0, x24
	mov	x1, x28
	bl	_gdImageGreen
	scvtf	d10, w0
	mov	x0, x25
	mov	x1, x23
	bl	_gdImageGreen
	scvtf	d0, w0
	fmul	d0, d9, d0
	fmadd	d0, d10, d8, d0
	fcvtzs	w19, d0
	mov	x0, x24
	mov	x1, x28
	bl	_gdImageBlue
	scvtf	d10, w0
	mov	x0, x25
	mov	x1, x23
	bl	_gdImageBlue
	scvtf	d0, w0
	fmul	d0, d9, d0
	fmadd	d0, d10, d8, d0
	fcvtzs	w3, d0
	mov	x0, x25
	mov	x1, x21
	mov	x21, x20
	ldr	w20, [sp, #28]                  ; 4-byte Folded Reload
	mov	x2, x19
	bl	_gdImageColorResolve
	mov	x28, x0
	b	LBB0_5
LBB0_10:
	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
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
