	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_graphics_userblt               ## -- Begin function graphics_userblt
	.p2align	4, 0x90
_graphics_userblt:                      ## @graphics_userblt
	.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, %r14d
	movl	%r8d, %r12d
	movq	%rsi, %r15
	leaq	-44(%rbp), %rsi
	leaq	-68(%rbp), %rdx
	callq	_convert_image_type
	movq	%rax, %rbx
	movq	_VCOS_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_9
## %bb.1:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	40(%rbp), %ebx
	movq	24(%rbp), %r14
	movl	16(%rbp), %r12d
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_gx_priv_save
	movq	(%r14), %rax
	movq	_GX_PBUFFER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	12(%r14), %edi
	movl	-44(%rbp), %ecx
	movq	%r15, %rsi
	movl	%r12d, %edx
	movl	32(%rbp), %r8d
	movl	%ebx, %r9d
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_vgImageSubData
	addq	$16, %rsp
	jmp	LBB0_6
LBB0_3:
	movl	32(%rbp), %ecx
	movq	_GX_WINDOW@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_5
## %bb.4:
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	leal	-1(%r10), %eax
	imull	%r12d, %eax
	cltq
	leaq	(%r15,%rax,4), %rdi
	negl	%r12d
	movl	-44(%rbp), %edx
	movl	8(%r14), %r8d
	addl	%r10d, %ebx
	subl	%ebx, %r8d
	subq	$8, %rsp
	movl	%r12d, %esi
	movq	-56(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%r10
	callq	_vgWritePixels
	addq	$16, %rsp
	jmp	LBB0_6
LBB0_5:
	xorl	%edi, %edi
	callq	_vcos_assert
LBB0_6:
	xorl	%eax, %eax
	callq	_vgGetError
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	xorl	%edi, %edi
	callq	_vcos_assert
	movq	_VCOS_EINVAL@GOTPCREL(%rip), %r13
LBB0_8:
	movq	(%r13), %rbx
	leaq	-48(%rbp), %rdi
	callq	_gx_priv_restore
LBB0_9:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VCOS_SUCCESS,8,3               ## @VCOS_SUCCESS
	.comm	_GX_PBUFFER,8,3                 ## @GX_PBUFFER
	.comm	_GX_WINDOW,8,3                  ## @GX_WINDOW
	.comm	_VCOS_EINVAL,8,3                ## @VCOS_EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_graphics_userblt               ; -- Begin function graphics_userblt
	.p2align	2
_graphics_userblt:                      ; @graphics_userblt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x22, x7
	mov	x21, x6
	mov	x19, x5
	mov	x20, x4
	mov	x23, x1
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_convert_image_type
	mov	x24, x0
Lloh0:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.1:
	ldp	w24, w25, [x29, #16]
	add	x0, sp, #4
	mov	x1, x22
	bl	_gx_priv_save
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _GX_PBUFFER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GX_PBUFFER@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x22, #12]
	ldr	w3, [sp, #12]
	mov	x1, x23
	mov	x2, x21
	mov	x4, x24
	mov	x5, x25
	mov	x6, x20
	mov	x7, x19
	bl	_vgImageSubData
	bl	_vgGetError
	cbnz	x0, LBB0_5
	b	LBB0_7
LBB0_3:
Lloh6:
	adrp	x9, _GX_WINDOW@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GX_WINDOW@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	sub	w8, w19, #1
	mul	w8, w8, w21
	add	x0, x23, w8, sxtw #2
	neg	w1, w21
	ldr	w2, [sp, #12]
	ldr	w8, [x22, #8]
	add	w9, w25, w19
	sub	w4, w8, w9
	mov	x3, x24
	mov	x5, x20
	mov	x6, x19
	bl	_vgWritePixels
	bl	_vgGetError
	cbz	x0, LBB0_7
LBB0_5:
	mov	w0, #0
	bl	_vcos_assert
Lloh9:
	adrp	x8, _VCOS_EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VCOS_EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	bl	_vcos_assert
	bl	_vgGetError
	cbnz	x0, LBB0_5
LBB0_7:
Lloh11:
	adrp	x8, _VCOS_SUCCESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VCOS_SUCCESS@GOTPAGEOFF]
LBB0_8:
	ldr	x24, [x8]
	add	x0, sp, #4
	bl	_gx_priv_restore
LBB0_9:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_VCOS_SUCCESS,8,3               ; @VCOS_SUCCESS
	.comm	_GX_PBUFFER,8,3                 ; @GX_PBUFFER
	.comm	_GX_WINDOW,8,3                  ; @GX_WINDOW
	.comm	_VCOS_EINVAL,8,3                ; @VCOS_EINVAL
.subsections_via_symbols
