	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_cursor_image
_copy_cursor_image:                     ## @copy_cursor_image
	.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
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	_AST_MAX_HWC_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_AST_MAX_HWC_HEIGHT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	subl	%r14d, %ecx
	imull	%eax, %ecx
	subl	%edx, %eax
	addl	%eax, %eax
	movslq	%eax, %rdx
	movl	%r15d, %eax
	sarl	%eax
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rsi,%rdx,4), %rdx
	addl	%ecx, %ecx
	movslq	%ecx, %rcx
	leaq	(%rdx,%rcx,4), %rbx
	cmpl	$2, %eax
	movl	$1, %ecx
	cmovgel	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %rbx
	incl	%r13d
	cmpl	%r14d, %r13d
	je	LBB0_10
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpl	$2, %r15d
	jl	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %r15d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$-1, %edi
	movq	%rbx, %rsi
	callq	_writel
	addq	$16, %rbx
	decl	%r14d
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	subl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r15d, %r14d
	movl	-48(%rbp), %r15d                ## 4-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, %r15b
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$4294967295, %edi               ## imm = 0xFFFFFFFF
	movq	%rbx, %rsi
	callq	_writew
	decl	%r12d
	addq	$8, %rbx
	jmp	LBB0_9
LBB0_1:
	xorl	%r12d, %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AST_MAX_HWC_WIDTH,4,2          ## @AST_MAX_HWC_WIDTH
	.comm	_AST_MAX_HWC_HEIGHT,4,2         ## @AST_MAX_HWC_HEIGHT
	.no_dead_strip	_copy_cursor_image
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_cursor_image
_copy_cursor_image:                     ; @copy_cursor_image
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cmp	w3, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	w23, #0
	mov	w21, #0
Lloh0:
	adrp	x8, _AST_MAX_HWC_WIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AST_MAX_HWC_WIDTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AST_MAX_HWC_HEIGHT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AST_MAX_HWC_HEIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sub	w9, w9, w3
	mul	w9, w8, w9
	sub	w8, w8, w2
	lsl	w8, w8, #1
	sxtw	x24, w8
	add	x8, x1, x24, lsl #2
	lsl	w9, w9, #1
	add	x22, x8, w9, sxtw #2
	asr	w8, w2, #1
	cmp	w8, #1
	csinc	w25, w8, wzr, gt
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, x24, lsl #2
	add	w23, w23, #1
	cmp	w23, w19
	b.eq	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w20, #2
	b.lt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x25
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	w0, #-1
	mov	x1, x22
	bl	_writel
	add	x22, x22, #16
	subs	w26, w26, #1
	b.ne	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w21, w21, w25
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	tbz	w20, #0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #-1
	mov	x1, x22
	bl	_writew
	sub	w21, w21, #1
	add	x22, x22, #8
	b	LBB0_2
LBB0_9:
	mov	w21, #0
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AST_MAX_HWC_WIDTH,4,2          ; @AST_MAX_HWC_WIDTH
	.comm	_AST_MAX_HWC_HEIGHT,4,2         ; @AST_MAX_HWC_HEIGHT
	.no_dead_strip	_copy_cursor_image
.subsections_via_symbols
