	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_copy_map_points2d           ## -- Begin function gl_copy_map_points2d
	.p2align	4, 0x90
_gl_copy_map_points2d:                  ## @gl_copy_map_points2d
	.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
	movq	%r9, %rbx
	movl	%r8d, %r14d
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movl	%esi, %r13d
	callq	_components
	movl	%eax, %r12d
	xorl	%eax, %eax
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_21
## %bb.2:
	movl	%r15d, %eax
	xorl	$2, %eax
	movl	%r14d, %ecx
	xorl	$2, %ecx
	movl	%r14d, %edx
	imull	%r15d, %edx
	xorl	%esi, %esi
	orl	%eax, %ecx
	cmovnel	%edx, %esi
	cmpl	%r14d, %r15d
	movl	%r14d, %edi
	cmovgl	%r15d, %edi
	imull	%r12d, %edi
	imull	%r12d, %edx
	cmpl	%esi, %edi
	cmovlel	%esi, %edi
	addl	%edx, %edi
	shll	$3, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_21
## %bb.3:
	testl	%r15d, %r15d
	jle	LBB0_21
## %bb.4:
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	%r14d, %ecx
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	imull	%edx, %ecx
	subl	%ecx, %r13d
	movslq	%edx, %rcx
	movslq	%r13d, %rdx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%r12d, %esi
	movl	%esi, %r15d
	andl	$-4, %r15d
	leaq	-4(%r15), %r9
	movq	%r9, %r11
	shrq	$2, %r11
	incq	%r11
	movq	%r11, %rdx
	andq	$-2, %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	shlq	$2, %rcx
	xorl	%r13d, %r13d
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%r13d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %rbx
	cmpl	-52(%rbp), %r13d                ## 4-byte Folded Reload
	je	LBB0_20
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_13 Depth 3
                                        ##       Child Loop BB0_17 Depth 3
	testl	%r14d, %r14d
	jle	LBB0_19
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r8d, %r8d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=2
	incl	%r8d
	addq	%rcx, %rbx
	cmpl	%r14d, %r8d
	je	LBB0_19
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_13 Depth 3
                                        ##       Child Loop BB0_17 Depth 3
	testl	%r12d, %r12d
	jle	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$4, %r12d
	jae	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	xorl	%eax, %eax
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	testq	%r9, %r9
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	pmovsxdq	(%rbx,%rax,4), %xmm0
	pmovsxdq	8(%rbx,%rax,4), %xmm1
	movdqu	%xmm0, (%rdx,%rax,8)
	movdqu	%xmm1, 16(%rdx,%rax,8)
	pmovsxdq	16(%rbx,%rax,4), %xmm0
	pmovsxdq	24(%rbx,%rax,4), %xmm1
	movdqu	%xmm0, 32(%rdx,%rax,8)
	movdqu	%xmm1, 48(%rdx,%rax,8)
	addq	$8, %rax
	addq	$-2, %r10
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=2
	testb	$1, %r11b
	je	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=2
	pmovsxdq	(%rbx,%rax,4), %xmm0
	pmovsxdq	8(%rbx,%rax,4), %xmm1
	movdqu	%xmm0, (%rdx,%rax,8)
	movdqu	%xmm1, 16(%rdx,%rax,8)
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=2
	leaq	(%rdx,%r15,8), %rdx
	movq	%r15, %rax
	cmpq	%rsi, %r15
	je	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movslq	(%rbx,%rax,4), %rdi
	movq	%rdi, (%rdx)
	addq	$8, %rdx
	incq	%rax
	cmpq	%rax, %rsi
	jne	LBB0_17
	jmp	LBB0_18
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	xorl	%eax, %eax
	testb	$1, %r11b
	jne	LBB0_15
	jmp	LBB0_16
LBB0_20:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
LBB0_21:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_copy_map_points2d           ; -- Begin function gl_copy_map_points2d
	.p2align	2
_gl_copy_map_points2d:                  ; @gl_copy_map_points2d
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x23, x3
	mov	x21, x2
	mov	x24, x1
	bl	_components
	mov	x22, x0
	mov	x0, #0
	cbz	x19, LBB0_3
; %bb.1:
	cbz	w22, LBB0_3
; %bb.2:
	cmp	w20, #2
	ccmp	w21, #2, #0, eq
	mul	w8, w20, w21
	csel	w9, wzr, w8, eq
	cmp	w21, w20
	csel	w10, w21, w20, gt
	mul	w10, w22, w10
	cmp	w10, w9
	csel	w9, w10, w9, gt
	madd	w8, w22, w8, w9
	lsl	w0, w8, #3
	bl	_malloc
	cmp	x0, #0
	ccmp	w21, #1, #8, ne
	b.ge	LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	w8, #0
	msub	w9, w20, w23, w24
	sxtw	x9, w9
	mov	w10, w22
	and	x11, x10, #0xfffffff8
	lsl	x12, x10, #2
	and	x12, x12, #0x3ffffffe0
	sbfiz	x13, x23, #2, #32
	mov	x16, x0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x15, x16
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w8, w8, #1
	add	x19, x19, x9, lsl #2
	mov	x16, x15
	cmp	w8, w21
	b.eq	LBB0_3
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;       Child Loop BB0_15 Depth 3
                                        ;       Child Loop BB0_17 Depth 3
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w14, #0
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=2
	mov	x15, x16
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	w14, w14, #1
	add	x19, x19, x13
	mov	x16, x15
	cmp	w14, w20
	b.eq	LBB0_6
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_15 Depth 3
                                        ;       Child Loop BB0_17 Depth 3
	cmp	w22, #1
	b.lt	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	cmp	w22, #8
	b.hs	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x17, #0
	mov	x15, x16
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=2
	mov	x17, #0
	add	x15, x16, x11, lsl #3
	add	x16, x16, #32
LBB0_15:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	x1, x19, x17
	ldp	d0, d1, [x1]
	ldp	d2, d3, [x1, #16]
	sshll.2d	v0, v0, #0
	sshll.2d	v1, v1, #0
	sshll.2d	v2, v2, #0
	sshll.2d	v3, v3, #0
	stp	q0, q1, [x16, #-32]
	stp	q2, q3, [x16], #64
	add	x17, x17, #32
	cmp	x12, x17
	b.ne	LBB0_15
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x17, x11
	cmp	x11, x10
	b.eq	LBB0_10
LBB0_17:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrsw	x16, [x19, x17, lsl #2]
	str	x16, [x15], #8
	add	x17, x17, #1
	cmp	x10, x17
	b.ne	LBB0_17
	b	LBB0_10
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
