	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function select_point
_select_point:                          ## @select_point
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movl	%edi, %r12d
	movq	(%rcx), %rbx
	movq	%rcx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.1:
	movl	%r15d, %r8d
	movq	_NLIMBS@GOTPCREL(%rip), %r10
	movl	(%r10), %edi
	xorl	%r9d, %r9d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r9
	cmpq	%r8, %r9
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%edi, %edi
	movl	$0, %edi
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r9,%r9,2), %rax
	movq	(%r14,%rax,8), %rsi
	movl	%r9d, %eax
	xorl	%r12d, %eax
	movl	%eax, %edx
	shrl	$4, %edx
	orl	%eax, %edx
	movl	%edx, %edi
	shrl	$2, %edi
	orl	%edx, %edi
	movl	%edi, %eax
	shrl	%eax
	orl	%edi, %eax
	andl	$1, %eax
	decl	%eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rsi,%rdx,4), %edi
	andl	%eax, %edi
	orl	%edi, (%rbx,%rdx,4)
	incq	%rdx
	movl	(%r10), %edi
	leal	(%rdi,%rdi,2), %ecx
	cmpq	%rcx, %rdx
	jb	LBB0_4
	jmp	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NLIMBS,4,2                     ## @NLIMBS
	.no_dead_strip	_select_point
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function select_point
_select_point:                          ; @select_point
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x22, [x3]
	mov	x0, x3
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	cbz	w21, LBB0_6
; %bb.1:
	mov	x8, #0
	mov	w9, w21
Lloh0:
	adrp	x10, _NLIMBS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _NLIMBS@GOTPAGEOFF]
	ldr	w12, [x10]
	mov	w11, #24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	cmp	x8, x9
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cbz	w12, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x13, #0
	mul	x12, x8, x11
	ldr	x14, [x19, x12]
	eor	w12, w8, w20
	orr	w12, w12, w12, lsr #4
	orr	w12, w12, w12, lsr #2
	orr	w12, w12, w12, lsr #1
	and	w12, w12, #0x1
	sub	w15, w12, #1
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x12, x13, #2
	ldr	w16, [x14, x12]
	and	w16, w16, w15
	ldr	w17, [x22, x12]
	orr	w16, w17, w16
	str	w16, [x22, x12]
	add	x13, x13, #1
	ldr	w12, [x10]
	add	w16, w12, w12, lsl #1
	cmp	x13, x16
	b.lo	LBB0_5
	b	LBB0_2
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NLIMBS,4,2                     ; @NLIMBS
	.no_dead_strip	_select_point
.subsections_via_symbols
