	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sort_pins_by_sequence
_sort_pins_by_sequence:                 ## @sort_pins_by_sequence
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_compare_seq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rsi, %rdi
	movl	%edx, %esi
	movl	$4, %edx
	xorl	%r8d, %r8d
	callq	_sort
	testl	%r15d, %r15d
	jle	LBB0_15
## %bb.1:
	movl	%r15d, %r8d
	xorl	%ecx, %ecx
	cmpl	$8, %r15d
	jb	LBB0_11
## %bb.2:
	movq	%r14, %rax
	subq	%rbx, %rax
	cmpq	$32, %rax
	jb	LBB0_11
## %bb.3:
	movl	%r8d, %ecx
	andl	$-8, %ecx
	leaq	-8(%rcx), %rax
	movq	%rax, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movl	%esi, %edx
	andl	$3, %edx
	cmpq	$24, %rax
	jae	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	jmp	LBB0_7
LBB0_5:
	andq	$-4, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rbx,%rdi,4), %xmm0
	movups	16(%rbx,%rdi,4), %xmm1
	movups	%xmm0, (%r14,%rdi,4)
	movups	%xmm1, 16(%r14,%rdi,4)
	movups	32(%rbx,%rdi,4), %xmm0
	movups	48(%rbx,%rdi,4), %xmm1
	movups	%xmm0, 32(%r14,%rdi,4)
	movups	%xmm1, 48(%r14,%rdi,4)
	movups	64(%rbx,%rdi,4), %xmm0
	movups	80(%rbx,%rdi,4), %xmm1
	movups	%xmm0, 64(%r14,%rdi,4)
	movups	%xmm1, 80(%r14,%rdi,4)
	movups	96(%rbx,%rdi,4), %xmm0
	movups	112(%rbx,%rdi,4), %xmm1
	movups	%xmm0, 96(%r14,%rdi,4)
	movups	%xmm1, 112(%r14,%rdi,4)
	addq	$32, %rdi
	addq	$-4, %rsi
	jne	LBB0_6
LBB0_7:
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.8:
	leaq	(%r14,%rdi,4), %rsi
	addq	$16, %rsi
	leaq	(%rbx,%rdi,4), %rdi
	addq	$16, %rdi
	shlq	$5, %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movups	-16(%rdi,%rax), %xmm0
	movups	(%rdi,%rax), %xmm1
	movups	%xmm0, -16(%rsi,%rax)
	movups	%xmm1, (%rsi,%rax)
	addq	$32, %rax
	cmpq	%rax, %rdx
	jne	LBB0_9
LBB0_10:
	cmpq	%r8, %rcx
	je	LBB0_15
LBB0_11:
	movq	%rcx, %rdx
	notq	%rdx
	addq	%r8, %rdx
	movq	%r8, %rsi
	andq	$3, %rsi
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rcx,4), %eax
	movl	%eax, (%r14,%rcx,4)
	incq	%rcx
	decq	%rsi
	jne	LBB0_12
LBB0_13:
	cmpq	$3, %rdx
	jb	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rcx,4), %eax
	movl	%eax, (%r14,%rcx,4)
	movl	4(%rbx,%rcx,4), %eax
	movl	%eax, 4(%r14,%rcx,4)
	movl	8(%rbx,%rcx,4), %eax
	movl	%eax, 8(%r14,%rcx,4)
	movl	12(%rbx,%rcx,4), %eax
	movl	%eax, 12(%r14,%rcx,4)
	addq	$4, %rcx
	cmpq	%rcx, %r8
	jne	LBB0_14
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_compare_seq,4,2                ## @compare_seq
	.no_dead_strip	_sort_pins_by_sequence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sort_pins_by_sequence
_sort_pins_by_sequence:                 ; @sort_pins_by_sequence
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _compare_seq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _compare_seq@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x1
	mov	x1, x2
	mov	w2, #4
	mov	x4, #0
	bl	_sort
	cmp	w21, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x9, #0
	mov	w8, w21
	cmp	w21, #16
	b.lo	LBB0_6
; %bb.2:
	sub	x10, x20, x19
	cmp	x10, #64
	b.lo	LBB0_6
; %bb.3:
	and	x9, x8, #0xfffffff0
	add	x10, x20, #32
	add	x11, x19, #32
	mov	x12, x9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x12, x12, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x9, x8
	b.eq	LBB0_8
LBB0_6:
	lsl	x11, x9, #2
	add	x10, x20, x11
	add	x11, x19, x11
	sub	x8, x8, x9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x11], #4
	str	w9, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_compare_seq,4,2                ; @compare_seq
	.no_dead_strip	_sort_pins_by_sequence
.subsections_via_symbols
