	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sort_coins
_sort_coins:                            ## @sort_coins
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	cmpq	$2, %rsi
	jb	LBB0_12
## %bb.1:
	movq	%rsi, %r14
	addq	$4, -48(%rbp)                   ## 8-byte Folded Spill
	movq	%rsi, %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	addq	%r15, %r15
	leaq	(%r15,%r15,4), %rax
	addq	$-117, %rax
	movl	$11, %edx
	cmpq	$26, %rax
	jb	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r15,%r15,4), %rax
	movabsq	$5675921253449092805, %rcx      ## imm = 0x4EC4EC4EC4EC4EC5
	mulq	%rcx
	shrq	$2, %rdx
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	testq	%rdx, %rdx
	movq	%rdx, %r15
	movl	$1, %eax
	cmoveq	%rax, %r15
	movq	%r14, %r13
	subq	%r15, %r13
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$1, %r15
	ja	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	testb	%al, %al
	jne	LBB0_4
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%r15,8), %r12
	xorl	%eax, %eax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=2
	addq	$8, %r12
	addq	$8, %rbx
	decq	%r13
	je	LBB0_2
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	-4(%r12), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movss	-4(%rbx), %xmm1                 ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=2
	movss	%xmm1, -4(%r12)
	movss	%xmm0, -4(%rbx)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_uivector_swap
	movb	$1, %al
	jmp	LBB0_11
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sort_coins
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sort_coins
_sort_coins:                            ; @sort_coins
	.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	x1, #2
	b.lo	LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x21, #20165
	movk	x21, #50412, lsl #16
	movk	x21, #60494, lsl #32
	movk	x21, #20164, lsl #48
	mov	w22, #11
	mov	x23, x1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x23, #1
	ccmp	w8, #0, #0, ls
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	x8, x23, x23, lsl #2
	lsl	x8, x8, #1
	umulh	x9, x8, x21
	lsr	x9, x9, #2
	sub	x8, x8, #117
	cmp	x8, #26
	csel	x8, x22, x9, lo
	cmp	x8, #0
	csinc	x23, x8, xzr, ne
	mov	w8, #0
	subs	x24, x19, x23
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	x25, x23, #3
	mov	x26, x20
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x26, x26, #8
	subs	x24, x24, #1
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	s0, [x26, x25]
	ldr	s1, [x26]
	fcmp	s0, s1
	b.pl	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x1, x26, x25
	str	s1, [x1], #4
	str	s0, [x26]
	add	x0, x26, #4
	bl	_uivector_swap
	mov	w8, #1
	b	LBB0_5
LBB0_8:
	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	_sort_coins
.subsections_via_symbols
