	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_cursor
_load_cursor:                           ## @load_cursor
	.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
	movl	4(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_28
## %bb.1:
	movq	%rdi, %r14
	movl	(%rdi), %ebx
	movq	32(%rdi), %r13
	leaq	16(%rdi), %r15
	movl	8(%rdi), %ecx
	xorl	%edx, %edx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r14), %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%edx
	cmpl	%eax, %edx
	jge	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, %rcx
	addq	$4, %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	%eax, (%rcx)
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	incl	%r12d
	movl	8(%r14), %ecx
	cmpl	%ecx, %r12d
	jge	LBB0_12
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	12(%r14), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_vmnc_get_pixel
	cmpl	$4, %ebx
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$2, %ebx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$1, %ebx
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%r13, %rcx
	addq	$4, %r13
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, %rcx
	addq	$4, %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
LBB0_14:
	testl	%eax, %eax
	jle	LBB0_28
## %bb.15:
	movq	24(%r14), %r12
	movl	8(%r14), %ecx
	xorl	%edx, %edx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_16 Depth=1
	movl	4(%r14), %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_27:                                ##   in Loop: Header=BB0_16 Depth=1
	incl	%edx
	cmpl	%eax, %edx
	jge	LBB0_28
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_27
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=2
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, %rcx
	addq	$4, %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=2
	movl	%eax, (%rcx)
LBB0_25:                                ##   in Loop: Header=BB0_18 Depth=2
	incl	%r13d
	movl	8(%r14), %ecx
	cmpl	%ecx, %r13d
	jge	LBB0_26
LBB0_18:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	12(%r14), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_vmnc_get_pixel
	cmpl	$4, %ebx
	je	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	cmpl	$2, %ebx
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=2
	cmpl	$1, %ebx
	jne	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	%r12, %rcx
	addq	$4, %r12
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=2
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, %rcx
	addq	$4, %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_24
LBB0_28:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_load_cursor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_cursor
_load_cursor:                           ; @load_cursor
	.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
	ldr	w8, [x0, #4]
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.1:
	mov	x19, x0
	mov	w22, #0
	ldr	w20, [x0]
	ldr	x23, [x0, #32]
	add	x21, x0, #16
	ldr	w9, [x0, #8]
	mov	x24, x23
	mov	x25, x23
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #4]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w22, #1
	cmp	w22, w8
	b.ge	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w26, #0
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=2
	mov	x8, x24
	add	x24, x24, #4
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	str	w0, [x8]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	w26, w26, #1
	ldr	w9, [x19, #8]
	cmp	w26, w9
	b.ge	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w2, [x19, #12]
	mov	x0, x21
	mov	x1, x20
	bl	_vmnc_get_pixel
	cmp	w20, #4
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w20, #2
	b.eq	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w20, #1
	b.ne	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x8, x25
	add	x25, x25, #4
	b	LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=2
	mov	x8, x23
	add	x23, x23, #4
	b	LBB0_7
LBB0_14:
	cmp	w8, #1
	b.lt	LBB0_28
; %bb.15:
	mov	w22, #0
	ldr	x23, [x19, #24]
	ldr	w9, [x19, #8]
	mov	x24, x23
	mov	x25, x23
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	w8, [x19, #4]
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	w22, w22, #1
	cmp	w22, w8
	b.ge	LBB0_28
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_23 Depth 2
	cmp	w9, #1
	b.lt	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	w26, #0
	b	LBB0_23
LBB0_20:                                ;   in Loop: Header=BB0_23 Depth=2
	mov	x8, x24
	add	x24, x24, #4
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=2
	str	w0, [x8]
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=2
	add	w26, w26, #1
	ldr	w9, [x19, #8]
	cmp	w26, w9
	b.ge	LBB0_16
LBB0_23:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w2, [x19, #12]
	mov	x0, x21
	mov	x1, x20
	bl	_vmnc_get_pixel
	cmp	w20, #4
	b.eq	LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=2
	cmp	w20, #2
	b.eq	LBB0_20
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=2
	cmp	w20, #1
	b.ne	LBB0_22
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=2
	mov	x8, x25
	add	x25, x25, #4
	b	LBB0_21
LBB0_27:                                ;   in Loop: Header=BB0_23 Depth=2
	mov	x8, x23
	add	x23, x23, #4
	b	LBB0_21
LBB0_28:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_load_cursor
.subsections_via_symbols
