	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alpha_blend_pixels_hrgn
_alpha_blend_pixels_hrgn:               ## @alpha_blend_pixels_hrgn
	.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, %r13d
	movl	%r8d, %r15d
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	(%rax), %rax
	movq	_ImageTypeBitmap@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.2:
	addl	%r14d, %r15d
	addl	%r12d, %r13d
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	callq	_CreateRectRgn
	testq	%rax, %rax
	je	LBB0_24
## %bb.3:
	movq	%rax, %r15
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_get_clip_hrgn
	movq	%rax, %r14
	movq	_Ok@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_21
## %bb.4:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.5:
	movq	_RGN_AND@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r15, %rsi
	callq	_CombineRgn
	movq	-56(%rbp), %rdi
	callq	_DeleteObject
LBB0_6:
	movq	24(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:
	movq	_RGN_AND@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r15, %rsi
	callq	_CombineRgn
LBB0_8:
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_GetRegionData
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_heap_alloc_zero
	testq	%rax, %rax
	je	LBB0_23
## %bb.9:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	movq	%rax, %r13
	callq	_GetRegionData
	movq	_Ok@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_14
## %bb.10:
	cmpq	$0, (%r13)
	je	LBB0_14
## %bb.11:
	movq	8(%r13), %rbx
	addq	$12, %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	-12(%rbx), %esi
	movl	-8(%rbx), %edx
	movl	%esi, %eax
	subl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%edx, %ecx
	subl	%r12d, %ecx
	movl	16(%rbp), %edi
	movq	%rdi, %r10
	imull	%r10d, %ecx
	leal	(%rcx,%rax,4), %eax
	cltq
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rcx
	movl	-4(%rbx), %r8d
	subl	%esi, %r8d
	movl	(%rbx), %r9d
	subl	%edx, %r9d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	32(%rbp), %eax
	pushq	%rax
	pushq	%r10
	callq	_alpha_blend_bmp_pixels
	addq	$16, %rsp
	movq	%rax, %r14
	movq	_Ok@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%r15
	addq	$16, %rbx
	cmpq	(%r13), %r15
	jb	LBB0_12
LBB0_14:
	movq	%r13, %rdi
	callq	_heap_free
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_22
LBB0_15:
	movq	_ImageTypeMetafile@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.16:
	leaq	L_.str(%rip), %rdi
	callq	_ERR
	movq	_NotImplemented@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_17:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_get_clip_hrgn
	movq	%rax, %r14
	movq	_Ok@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_26
## %bb.18:
	movl	(%rbx), %edi
	callq	_SaveDC
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	(%rbx), %edi
	movq	-56(%rbp), %rsi
	movq	_RGN_COPY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ExtSelectClipRgn
	movq	24(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.19:
	movl	(%rbx), %edi
	movq	_RGN_AND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ExtSelectClipRgn
LBB0_20:
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r12d, %edx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, %r8d
	movl	%r13d, %r9d
	movl	32(%rbp), %eax
	pushq	%rax
	movl	16(%rbp), %eax
	pushq	%rax
	callq	_alpha_blend_hdc_pixels
	addq	$16, %rsp
	movq	%rax, %r14
	movl	(%rbx), %edi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	callq	_RestoreDC
	movq	-56(%rbp), %rdi
	jmp	LBB0_22
LBB0_21:
	movq	%r15, %rdi
LBB0_22:
	callq	_DeleteObject
	jmp	LBB0_26
LBB0_23:
	movq	%r15, %rdi
	callq	_DeleteObject
LBB0_24:
	movq	_OutOfMemory@GOTPCREL(%rip), %rax
LBB0_25:
	movq	(%rax), %r14
LBB0_26:
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Ok,8,3                         ## @Ok
	.comm	_ImageTypeBitmap,8,3            ## @ImageTypeBitmap
	.comm	_OutOfMemory,8,3                ## @OutOfMemory
	.comm	_RGN_AND,4,2                    ## @RGN_AND
	.comm	_ImageTypeMetafile,8,3          ## @ImageTypeMetafile
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"This should not be used for metafiles; fix caller\n"

	.comm	_NotImplemented,8,3             ## @NotImplemented
	.comm	_RGN_COPY,4,2                   ## @RGN_COPY
	.no_dead_strip	_alpha_blend_pixels_hrgn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alpha_blend_pixels_hrgn
_alpha_blend_pixels_hrgn:               ; @alpha_blend_pixels_hrgn
	.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	x27, x7
	mov	x20, x6
	mov	x26, x5
	mov	x28, x4
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	ldr	w22, [x29, #16]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_18
; %bb.1:
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _ImageTypeBitmap@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ImageTypeBitmap@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.2:
	add	w2, w28, w24
	add	w3, w26, w23
	mov	x0, x24
	mov	x1, x23
	bl	_CreateRectRgn
	cbz	x0, LBB0_24
; %bb.3:
	mov	x26, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_get_clip_hrgn
	mov	x25, x0
Lloh3:
	adrp	x28, _Ok@GOTPAGE
Lloh4:
	ldr	x28, [x28, _Ok@GOTPAGEOFF]
	ldr	x8, [x28]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.4:
	str	x21, [sp]                       ; 8-byte Folded Spill
	ldr	x2, [sp, #8]
Lloh5:
	adrp	x21, _RGN_AND@GOTPAGE
Lloh6:
	ldr	x21, [x21, _RGN_AND@GOTPAGEOFF]
	cbz	x2, LBB0_6
; %bb.5:
	ldr	w3, [x21]
	mov	x0, x26
	mov	x1, x26
	bl	_CombineRgn
	ldr	x0, [sp, #8]
	bl	_DeleteObject
LBB0_6:
	cbz	x27, LBB0_8
; %bb.7:
	ldr	w3, [x21]
	mov	x0, x26
	mov	x1, x26
	mov	x2, x27
	bl	_CombineRgn
LBB0_8:
	mov	x0, x26
	mov	w1, #0
	mov	x2, #0
	bl	_GetRegionData
	mov	x21, x0
	bl	_heap_alloc_zero
	cbz	x0, LBB0_23
; %bb.9:
	mov	x27, x0
	mov	x0, x26
	mov	x1, x21
	mov	x2, x27
	bl	_GetRegionData
	ldr	x8, [x28]
	cmp	x25, x8
	b.ne	LBB0_14
; %bb.10:
	ldr	x8, [x27]
	cbz	x8, LBB0_14
; %bb.11:
	mov	x21, #0
	ldr	x8, [x27, #8]
	add	x28, x8, #8
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldp	w1, w2, [x28, #-8]
	sub	w8, w1, w24
	sub	w9, w2, w23
	mul	w9, w9, w20
	add	w8, w9, w8, lsl #2
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	add	x3, x9, w8, sxtw #2
	ldp	w8, w9, [x28]
	sub	w4, w8, w1
	sub	w5, w9, w2
	mov	x0, x19
	mov	x6, x20
	mov	x7, x22
	bl	_alpha_blend_bmp_pixels
	mov	x25, x0
Lloh7:
	adrp	x8, _Ok@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Ok@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x21, x21, #1
	ldr	x8, [x27]
	add	x28, x28, #16
	cmp	x21, x8
	b.lo	LBB0_12
LBB0_14:
	mov	x0, x27
	bl	_heap_free
LBB0_15:
	mov	x0, x26
	b	LBB0_22
LBB0_16:
Lloh10:
	adrp	x9, _ImageTypeMetafile@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ImageTypeMetafile@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.17:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
Lloh15:
	adrp	x8, _NotImplemented@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NotImplemented@GOTPAGEOFF]
	b	LBB0_25
LBB0_18:
	add	x1, sp, #8
	mov	x0, x19
	bl	_get_clip_hrgn
	mov	x25, x0
Lloh17:
	adrp	x8, _Ok@GOTPAGE
Lloh18:
	ldr	x8, [x8, _Ok@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_26
; %bb.19:
	mov	x25, x21
	ldr	w0, [x19]
	bl	_SaveDC
	mov	x21, x0
	ldr	w0, [x19]
	ldr	x1, [sp, #8]
Lloh20:
	adrp	x8, _RGN_COPY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RGN_COPY@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	bl	_ExtSelectClipRgn
	cbz	x27, LBB0_21
; %bb.20:
	ldr	w0, [x19]
Lloh23:
	adrp	x8, _RGN_AND@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RGN_AND@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x1, x27
	bl	_ExtSelectClipRgn
LBB0_21:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	mov	x3, x25
	mov	x4, x28
	mov	x5, x26
	mov	x6, x20
	mov	x7, x22
	bl	_alpha_blend_hdc_pixels
	mov	x25, x0
	ldr	w0, [x19]
	mov	x1, x21
	bl	_RestoreDC
	ldr	x0, [sp, #8]
LBB0_22:
	bl	_DeleteObject
	b	LBB0_26
LBB0_23:
	mov	x0, x26
	bl	_DeleteObject
LBB0_24:
Lloh26:
	adrp	x8, _OutOfMemory@GOTPAGE
Lloh27:
	ldr	x8, [x8, _OutOfMemory@GOTPAGEOFF]
LBB0_25:
	ldr	x25, [x8]
LBB0_26:
	mov	x0, x25
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_Ok,8,3                         ; @Ok
	.comm	_ImageTypeBitmap,8,3            ; @ImageTypeBitmap
	.comm	_OutOfMemory,8,3                ; @OutOfMemory
	.comm	_RGN_AND,4,2                    ; @RGN_AND
	.comm	_ImageTypeMetafile,8,3          ; @ImageTypeMetafile
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"This should not be used for metafiles; fix caller\n"

	.comm	_NotImplemented,8,3             ; @NotImplemented
	.comm	_RGN_COPY,4,2                   ; @RGN_COPY
	.no_dead_strip	_alpha_blend_pixels_hrgn
.subsections_via_symbols
