	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdLayerMultiply                ## -- Begin function gdLayerMultiply
	.p2align	4, 0x90
_gdLayerMultiply:                       ## @gdLayerMultiply
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movl	%edi, %r12d
	movq	_gdAlphaMax@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movl	%esi, %edi
	callq	_gdTrueColorGetAlpha
	subl	%eax, %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r14), %r15d
	movl	%r12d, %edi
	movl	%r12d, %r14d
	callq	_gdTrueColorGetAlpha
	subl	%eax, %r15d
	movq	_gdRedMax@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r13d, %edi
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	callq	_gdTrueColorGetRed
	movl	%r12d, %ecx
	subl	%eax, %ecx
	imull	%ebx, %ecx
	movl	%ecx, %eax
	cltd
	movq	_gdAlphaMax@GOTPCREL(%rip), %rbx
	idivl	(%rbx)
	subl	%eax, %r12d
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	movq	_gdRedMax@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r14d, %edi
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	callq	_gdTrueColorGetRed
	movl	%r12d, %ecx
	subl	%eax, %ecx
	imull	%r15d, %ecx
	movl	%ecx, %eax
	cltd
	idivl	(%rbx)
	subl	%eax, %r12d
	movq	_gdGreenMax@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_gdTrueColorGetGreen
	movl	%ebx, %esi
	movl	%ebx, %ecx
	subl	%eax, %ecx
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	imull	%ebx, %ecx
	movl	%ecx, %eax
	cltd
	movq	_gdAlphaMax@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	subl	%eax, %esi
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	_gdGreenMax@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r14d, %edi
	callq	_gdTrueColorGetGreen
	movl	%r13d, %ecx
	subl	%eax, %ecx
	imull	%r15d, %ecx
	movl	%ecx, %eax
	cltd
	movq	_gdAlphaMax@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	subl	%eax, %r13d
	movq	_gdBlueMax@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_gdTrueColorGetBlue
	movl	%r14d, %ecx
	subl	%eax, %ecx
	imull	%ebx, %ecx
	movl	%ecx, %eax
	cltd
	movq	_gdAlphaMax@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	subl	%eax, %r14d
	movq	_gdBlueMax@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_gdTrueColorGetBlue
	movl	%ebx, %ecx
	subl	%eax, %ecx
	imull	%r15d, %ecx
	movq	_gdAlphaMax@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	subl	%eax, %ebx
	movl	%esi, %ecx
	subl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%esi, %eax
	subl	%r15d, %eax
	imull	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, %ecx
	shll	$24, %ecx
	imull	-60(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r12d, %eax
	cltd
	movq	_gdRedMax@GOTPCREL(%rip), %rsi
	idivl	(%rsi)
	movl	%eax, %esi
	shll	$16, %esi
	imull	-56(%rbp), %r13d                ## 4-byte Folded Reload
	movl	%r13d, %eax
	cltd
	movq	_gdGreenMax@GOTPCREL(%rip), %rdi
	idivl	(%rdi)
	movl	%eax, %edi
	addl	%ecx, %esi
	shll	$8, %edi
	addl	%esi, %edi
	imull	%r14d, %ebx
	movl	%ebx, %eax
	cltd
	movq	_gdBlueMax@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	addl	%edi, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gdAlphaMax,4,2                 ## @gdAlphaMax
	.comm	_gdRedMax,4,2                   ## @gdRedMax
	.comm	_gdGreenMax,4,2                 ## @gdGreenMax
	.comm	_gdBlueMax,4,2                  ## @gdBlueMax
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdLayerMultiply                ; -- Begin function gdLayerMultiply
	.p2align	2
_gdLayerMultiply:                       ; @gdLayerMultiply
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _gdAlphaMax@GOTPAGE
Lloh1:
	ldr	x21, [x21, _gdAlphaMax@GOTPAGEOFF]
	ldr	w22, [x21]
	mov	x0, x1
	bl	_gdTrueColorGetAlpha
	sub	w22, w22, w0
	ldr	w23, [x21]
	mov	x0, x19
	bl	_gdTrueColorGetAlpha
	sub	w24, w23, w0
Lloh2:
	adrp	x8, _gdRedMax@GOTPAGE
Lloh3:
	ldr	x8, [x8, _gdRedMax@GOTPAGEOFF]
	ldr	w25, [x8]
	mov	x23, x8
	mov	x0, x20
	bl	_gdTrueColorGetRed
	sub	w8, w25, w0
	mul	w8, w8, w22
	ldr	w9, [x21]
	sdiv	w8, w8, w9
	sub	w8, w25, w8
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	w26, [x23]
	mov	x0, x19
	bl	_gdTrueColorGetRed
	sub	w8, w26, w0
	mul	w8, w8, w24
	ldr	w9, [x21]
	sdiv	w8, w8, w9
	sub	w26, w26, w8
Lloh4:
	adrp	x8, _gdGreenMax@GOTPAGE
Lloh5:
	ldr	x8, [x8, _gdGreenMax@GOTPAGEOFF]
	ldr	w28, [x8]
	mov	x23, x8
	mov	x0, x20
	bl	_gdTrueColorGetGreen
	sub	w8, w28, w0
	mul	w8, w8, w22
	ldr	w9, [x21]
	sdiv	w8, w8, w9
	sub	w28, w28, w8
	ldr	w23, [x23]
	mov	x0, x19
	bl	_gdTrueColorGetGreen
	sub	w8, w23, w0
	mul	w8, w8, w24
	ldr	w9, [x21]
	sdiv	w8, w8, w9
	sub	w23, w23, w8
Lloh6:
	adrp	x25, _gdBlueMax@GOTPAGE
Lloh7:
	ldr	x25, [x25, _gdBlueMax@GOTPAGEOFF]
	ldr	w27, [x25]
	mov	x0, x20
	bl	_gdTrueColorGetBlue
	sub	w8, w27, w0
	mul	w8, w8, w22
	ldr	w9, [x21]
	sdiv	w8, w8, w9
	sub	w20, w27, w8
	ldr	w27, [x25]
	mov	x0, x19
	bl	_gdTrueColorGetBlue
	sub	w8, w27, w0
	mul	w8, w8, w24
	ldr	w9, [x21]
	sdiv	w8, w8, w9
	sub	w8, w27, w8
	sub	w10, w9, w22
	sub	w11, w9, w24
	mul	w10, w10, w11
	sdiv	w9, w10, w9
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	mul	w10, w26, w10
Lloh8:
	adrp	x11, _gdRedMax@GOTPAGE
Lloh9:
	ldr	x11, [x11, _gdRedMax@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	sdiv	w10, w10, w11
	lsl	w10, w10, #16
	add	w9, w10, w9, lsl #24
	mul	w10, w23, w28
Lloh11:
	adrp	x11, _gdGreenMax@GOTPAGE
Lloh12:
	ldr	x11, [x11, _gdGreenMax@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	sdiv	w10, w10, w11
	add	w9, w9, w10, lsl #8
	mul	w8, w8, w20
	ldr	w10, [x25]
	sdiv	w8, w8, w10
	add	w0, w9, w8
	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 AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_gdAlphaMax,4,2                 ; @gdAlphaMax
	.comm	_gdRedMax,4,2                   ; @gdRedMax
	.comm	_gdGreenMax,4,2                 ; @gdGreenMax
	.comm	_gdBlueMax,4,2                  ; @gdBlueMax
.subsections_via_symbols
