	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function graphics_bitblt
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0xbff0000000000000              ## double -1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_2:
	.quad	0x3ff0000000000000              ## double 1
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_graphics_bitblt
	.p2align	4, 0x90
_graphics_bitblt:                       ## @graphics_bitblt
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, -192(%rbp)                ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_VG_INVALID_HANDLE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	-164(%rbp), %rdi
	movq	%r9, -184(%rbp)                 ## 8-byte Spill
	movq	%r9, %rsi
	callq	_gx_priv_save
	movq	(%r14), %rax
	movq	_GX_PBUFFER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%r14, %rdx
	movq	%r12, -176(%rbp)                ## 8-byte Spill
	movq	_GRAPHICS_RESOURCE_WIDTH@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	8(%rdx), %rbx
LBB0_4:
	movq	_GRAPHICS_RESOURCE_HEIGHT@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	movq	-192(%rbp), %rsi                ## 8-byte Reload
	jne	LBB0_6
## %bb.5:
	movq	16(%rdx), %r15
LBB0_6:
	movq	%r13, %rax
	orq	%rsi, %rax
	jne	LBB0_14
## %bb.7:
	cmpq	8(%rdx), %rbx
	jne	LBB0_14
## %bb.8:
	cmpq	16(%rdx), %r15
	jne	LBB0_14
## %bb.9:
	movq	32(%rdx), %r13
	xorl	%r14d, %r14d
	movq	%rdx, %r12
	jmp	LBB0_10
LBB0_1:
	xorl	%r14d, %r14d
	movq	%r12, %r13
	jmp	LBB0_16
LBB0_14:
	movq	%rdx, %r12
	movq	32(%rdx), %rdi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	movq	%r15, %r8
	callq	_vgChildImage
	movq	%rax, %r13
	movl	$1, %r14d
	movq	_VG_INVALID_HANDLE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_10
## %bb.15:
	movq	-176(%rbp), %r12                ## 8-byte Reload
	jmp	LBB0_16
LBB0_10:
	movq	16(%rbp), %rbx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_vgGetError
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_vcos_assert
	movq	_VG_MATRIX_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VG_MATRIX_IMAGE_USER_TO_SURFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vgSeti
	leaq	-128(%rbp), %rdi
	callq	_vgGetMatrix
	xorl	%eax, %eax
	callq	_vgLoadIdentity
	cvtsi2sd	%rbx, %xmm0
	movq	-184(%rbp), %rax                ## 8-byte Reload
	movq	16(%rax), %rax
	subq	24(%rbp), %rax
	cvtsi2sd	%rax, %xmm1
	callq	_vgTranslate
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	callq	_vgScale
	movsd	24(%r12), %xmm0                 ## xmm0 = mem[0],zero
	ucomisd	LCPI0_0(%rip), %xmm0
	movq	-176(%rbp), %r12                ## 8-byte Reload
	jne	LBB0_11
	jnp	LBB0_12
LBB0_11:
	movaps	LCPI0_2(%rip), %xmm1            ## xmm1 = [1.0E+0,1.0E+0]
	movaps	%xmm1, -160(%rbp)
	movabsq	$4607182418800017408, %rax      ## imm = 0x3FF0000000000000
	movq	%rax, -144(%rbp)
	movsd	%xmm0, -136(%rbp)
	xorl	%eax, %eax
	callq	_vgCreatePaint
	movq	%rax, %r12
	movq	_VG_PAINT_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-160(%rbp), %rcx
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_vgSetParameterfv
	movq	_VG_IMAGE_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VG_DRAW_IMAGE_MULTIPLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vgSeti
	movq	_VG_STROKE_PATH@GOTPCREL(%rip), %rax
	movq	_VG_FILL_PATH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r12, %rdi
	callq	_vgSetPaint
LBB0_12:
	xorl	%eax, %eax
	callq	_vgGetError
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_vcos_assert
	movq	%r13, %rdi
	callq	_vgDrawImage
	xorl	%eax, %eax
	callq	_vgGetError
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_vcos_assert
	leaq	-128(%rbp), %rdi
	callq	_vgLoadMatrix
	xorl	%eax, %eax
	callq	_vgGetError
	testl	%eax, %eax
	je	LBB0_17
## %bb.13:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_GX_LOG
LBB0_16:
	xorl	%edi, %edi
	callq	_vcos_assert
	movl	$-1, %r15d
LBB0_17:
	movq	_VG_INVALID_HANDLE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_19
## %bb.18:
	movq	%r12, %rdi
	callq	_vgDestroyPaint
LBB0_19:
	testl	%r14d, %r14d
	je	LBB0_21
## %bb.20:
	movq	%r13, %rdi
	callq	_vgDestroyImage
LBB0_21:
	leaq	-164(%rbp), %rdi
	callq	_gx_priv_restore
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r15d, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VG_INVALID_HANDLE,8,3          ## @VG_INVALID_HANDLE
	.comm	_GX_PBUFFER,8,3                 ## @GX_PBUFFER
	.comm	_GRAPHICS_RESOURCE_WIDTH,8,3    ## @GRAPHICS_RESOURCE_WIDTH
	.comm	_GRAPHICS_RESOURCE_HEIGHT,8,3   ## @GRAPHICS_RESOURCE_HEIGHT
	.comm	_VG_MATRIX_MODE,4,2             ## @VG_MATRIX_MODE
	.comm	_VG_MATRIX_IMAGE_USER_TO_SURFACE,4,2 ## @VG_MATRIX_IMAGE_USER_TO_SURFACE
	.comm	_VG_PAINT_COLOR,4,2             ## @VG_PAINT_COLOR
	.comm	_VG_IMAGE_MODE,4,2              ## @VG_IMAGE_MODE
	.comm	_VG_DRAW_IMAGE_MULTIPLY,4,2     ## @VG_DRAW_IMAGE_MULTIPLY
	.comm	_VG_STROKE_PATH,4,2             ## @VG_STROKE_PATH
	.comm	_VG_FILL_PATH,4,2               ## @VG_FILL_PATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vg error %x blitting area"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_graphics_bitblt                ; -- Begin function graphics_bitblt
	.p2align	2
_graphics_bitblt:                       ; @graphics_bitblt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	d9, d8, [sp, #128]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	mov	x22, x7
	mov	x24, x6
	mov	x23, x5
	mov	x20, x4
	mov	x25, x3
	mov	x26, x2
	mov	x27, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-104]
Lloh3:
	adrp	x28, _VG_INVALID_HANDLE@GOTPAGE
Lloh4:
	ldr	x28, [x28, _VG_INVALID_HANDLE@GOTPAGEOFF]
	ldr	x19, [x28]
	add	x0, sp, #12
	mov	x1, x5
	bl	_gx_priv_save
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _GX_PBUFFER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GX_PBUFFER@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
Lloh8:
	adrp	x8, _GRAPHICS_RESOURCE_WIDTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GRAPHICS_RESOURCE_WIDTH@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x25
	b.ne	LBB0_3
; %bb.2:
	ldr	x25, [x21, #8]
LBB0_3:
Lloh11:
	adrp	x8, _GRAPHICS_RESOURCE_HEIGHT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GRAPHICS_RESOURCE_HEIGHT@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_5
; %bb.4:
	ldr	x20, [x21, #16]
LBB0_5:
	orr	x8, x26, x27
	cbnz	x8, LBB0_10
; %bb.6:
	ldr	x8, [x21, #8]
	cmp	x25, x8
	b.ne	LBB0_10
; %bb.7:
	ldr	x8, [x21, #16]
	cmp	x20, x8
	b.ne	LBB0_10
; %bb.8:
	mov	w25, #0
	ldr	x20, [x21, #32]
	b	LBB0_11
LBB0_9:
	mov	w25, #0
	mov	x20, x19
	b	LBB0_15
LBB0_10:
	ldr	x0, [x21, #32]
	mov	x1, x27
	mov	x2, x26
	mov	x3, x25
	mov	x4, x20
	bl	_vgChildImage
	mov	x20, x0
	ldr	x8, [x28]
	mov	w25, #1
	cmp	x0, x8
	b.eq	LBB0_15
LBB0_11:
	bl	_vgGetError
	cmp	w0, #0
	cset	w0, eq
	bl	_vcos_assert
Lloh14:
	adrp	x8, _VG_MATRIX_MODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VG_MATRIX_MODE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _VG_MATRIX_IMAGE_USER_TO_SURFACE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VG_MATRIX_IMAGE_USER_TO_SURFACE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_vgSeti
	add	x0, sp, #48
	bl	_vgGetMatrix
	bl	_vgLoadIdentity
	scvtf	d0, x24
	ldr	x8, [x23, #16]
	sub	x8, x8, x22
	scvtf	d1, x8
	bl	_vgTranslate
	fmov	d8, #1.00000000
	fmov	d0, #1.00000000
	fmov	d1, #-1.00000000
	bl	_vgScale
	ldr	d0, [x21, #24]
	fcmp	d0, d8
	b.eq	LBB0_13
; %bb.12:
	fmov.2d	v1, #1.00000000
	str	q1, [sp, #16]
	mov	x8, #4607182418800017408
	str	x8, [sp, #32]
	str	d0, [sp, #40]
	bl	_vgCreatePaint
	mov	x19, x0
Lloh20:
	adrp	x8, _VG_PAINT_COLOR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VG_PAINT_COLOR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x3, sp, #16
	mov	w2, #4
	bl	_vgSetParameterfv
Lloh23:
	adrp	x8, _VG_IMAGE_MODE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VG_IMAGE_MODE@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _VG_DRAW_IMAGE_MULTIPLY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VG_DRAW_IMAGE_MULTIPLY@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_vgSeti
Lloh29:
	adrp	x8, _VG_STROKE_PATH@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VG_STROKE_PATH@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _VG_FILL_PATH@GOTPAGE
Lloh33:
	ldr	x9, [x9, _VG_FILL_PATH@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_vgSetPaint
LBB0_13:
	bl	_vgGetError
	cmp	w0, #0
	cset	w0, eq
	bl	_vcos_assert
	mov	x0, x20
	bl	_vgDrawImage
	bl	_vgGetError
	cmp	w0, #0
	cset	w0, eq
	bl	_vcos_assert
	add	x0, sp, #48
	bl	_vgLoadMatrix
	bl	_vgGetError
	cbz	w0, LBB0_22
; %bb.14:
	mov	x1, x0
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
	bl	_GX_LOG
LBB0_15:
	mov	w0, #0
	bl	_vcos_assert
	mov	w21, #-1
LBB0_16:
	ldr	x8, [x28]
	cmp	x19, x8
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_vgDestroyPaint
LBB0_18:
	cbz	w25, LBB0_20
; %bb.19:
	mov	x0, x20
	bl	_vgDestroyImage
LBB0_20:
	add	x0, sp, #12
	bl	_gx_priv_restore
	ldur	x8, [x29, #-104]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.21:
	mov	x0, x21
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #128]              ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_22:
	mov	w21, #0
	b	LBB0_16
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_VG_INVALID_HANDLE,8,3          ; @VG_INVALID_HANDLE
	.comm	_GX_PBUFFER,8,3                 ; @GX_PBUFFER
	.comm	_GRAPHICS_RESOURCE_WIDTH,8,3    ; @GRAPHICS_RESOURCE_WIDTH
	.comm	_GRAPHICS_RESOURCE_HEIGHT,8,3   ; @GRAPHICS_RESOURCE_HEIGHT
	.comm	_VG_MATRIX_MODE,4,2             ; @VG_MATRIX_MODE
	.comm	_VG_MATRIX_IMAGE_USER_TO_SURFACE,4,2 ; @VG_MATRIX_IMAGE_USER_TO_SURFACE
	.comm	_VG_PAINT_COLOR,4,2             ; @VG_PAINT_COLOR
	.comm	_VG_IMAGE_MODE,4,2              ; @VG_IMAGE_MODE
	.comm	_VG_DRAW_IMAGE_MULTIPLY,4,2     ; @VG_DRAW_IMAGE_MULTIPLY
	.comm	_VG_STROKE_PATH,4,2             ; @VG_STROKE_PATH
	.comm	_VG_FILL_PATH,4,2               ; @VG_FILL_PATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vg error %x blitting area"

.subsections_via_symbols
