	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gdi_alpha_blend
_gdi_alpha_blend:                       ## @gdi_alpha_blend
	.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
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movq	_TECHNOLOGY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDeviceCaps
	movq	_DT_RASPRINTER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movl	(%r14), %edi
	movq	_SHADEBLENDCAPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDeviceCaps
	movq	_SB_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movl	(%r14), %edi
	movq	_SRCCOPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	movl	40(%rbp), %eax
	pushq	%rax
	movl	32(%rbp), %eax
	pushq	%rax
	movl	24(%rbp), %eax
	pushq	%rax
	movl	16(%rbp), %eax
	pushq	%rax
	callq	_StretchBlt
	addq	$88, %rsp
	jmp	LBB0_3
LBB0_4:
	movq	_AC_SRC_OVER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	$0, -64(%rbp)
	movl	$255, -72(%rbp)
	movq	_AC_SRC_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movl	(%r14), %edi
	subq	$64, %rsp
	movq	-56(%rbp), %rax
	movq	%rax, 48(%rsp)
	movups	-72(%rbp), %xmm0
	movups	%xmm0, 32(%rsp)
	movl	40(%rbp), %eax
	movl	%eax, 24(%rsp)
	movl	32(%rbp), %eax
	movl	%eax, 16(%rsp)
	movl	24(%rbp), %eax
	movl	%eax, 8(%rsp)
	movl	16(%rbp), %eax
	movl	%eax, (%rsp)
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_GdiAlphaBlend
	addq	$104, %rsp
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TECHNOLOGY,4,2                 ## @TECHNOLOGY
	.comm	_DT_RASPRINTER,8,3              ## @DT_RASPRINTER
	.comm	_SHADEBLENDCAPS,4,2             ## @SHADEBLENDCAPS
	.comm	_SB_NONE,8,3                    ## @SB_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"alpha blending not supported by device, fallback to StretchBlt\n"

	.comm	_SRCCOPY,4,2                    ## @SRCCOPY
	.comm	_AC_SRC_OVER,4,2                ## @AC_SRC_OVER
	.comm	_AC_SRC_ALPHA,4,2               ## @AC_SRC_ALPHA
	.no_dead_strip	_gdi_alpha_blend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gdi_alpha_blend
_gdi_alpha_blend:                       ; @gdi_alpha_blend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x26, x0
	ldp	w27, w28, [x29, #16]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _TECHNOLOGY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TECHNOLOGY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetDeviceCaps
Lloh3:
	adrp	x8, _DT_RASPRINTER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DT_RASPRINTER@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x26]
Lloh6:
	adrp	x8, _SHADEBLENDCAPS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SHADEBLENDCAPS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_GetDeviceCaps
Lloh9:
	adrp	x8, _SB_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SB_NONE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldr	w0, [x26]
Lloh14:
	adrp	x8, _SRCCOPY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SRCCOPY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	stp	w28, w8, [sp, #4]
	str	w27, [sp]
	mov	x1, x25
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	mov	x7, x19
	bl	_StretchBlt
	b	LBB0_4
LBB0_3:
Lloh17:
	adrp	x8, _AC_SRC_OVER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AC_SRC_OVER@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _AC_SRC_ALPHA@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AC_SRC_ALPHA@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	ldr	w0, [x26]
	mov	w10, #255
	stp	w10, w9, [sp, #24]
	str	xzr, [sp, #32]
	str	w8, [sp, #40]
	add	x8, sp, #24
	str	x8, [sp, #8]
	stp	w27, w28, [sp]
	mov	x1, x25
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	mov	x7, x19
	bl	_GdiAlphaBlend
LBB0_4:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TECHNOLOGY,4,2                 ; @TECHNOLOGY
	.comm	_DT_RASPRINTER,8,3              ; @DT_RASPRINTER
	.comm	_SHADEBLENDCAPS,4,2             ; @SHADEBLENDCAPS
	.comm	_SB_NONE,8,3                    ; @SB_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"alpha blending not supported by device, fallback to StretchBlt\n"

	.comm	_SRCCOPY,4,2                    ; @SRCCOPY
	.comm	_AC_SRC_OVER,4,2                ; @AC_SRC_OVER
	.comm	_AC_SRC_ALPHA,4,2               ; @AC_SRC_ALPHA
	.no_dead_strip	_gdi_alpha_blend
.subsections_via_symbols
