	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sigorder
_sigorder:                              ## @sigorder
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	leaq	(,%rdx,4), %rdx
	callq	_memcpy
	movq	_asc@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_qsort
	movl	$1, %eax
	cmpq	$1, %r14
	je	LBB0_12
## %bb.1:
	leaq	-1(%r14), %r10
	leaq	1(%r14), %r9
	xorl	%ecx, %ecx
	movq	_SIGRTMIN@GOTPCREL(%rip), %r8
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	movq	%rax, %r11
	cmpq	%r10, %r11
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	(%rbx,%rax,4), %edx
	cmpl	(%r8), %edx
	jge	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%rax), %r11
	testq	%rcx, %rcx
	cmoveq	%r11, %rcx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx,%rcx,4), %esi
	leaq	1(%rcx), %rdi
	cmpl	%esi, %edx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpq	%r14, %rcx
	movq	%rdi, %rcx
	jb	LBB0_5
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rdi, %r9
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	decq	%rdi
	movl	%esi, 4(%rbx,%rax,4)
	movq	%rdi, %rcx
	movq	%r11, %rax
	cmpq	%r10, %r11
	jne	LBB0_2
LBB0_10:
	movq	%r10, %rax
LBB0_11:
	incq	%rax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_asc,4,2                        ## @asc
	.comm	_SIGRTMIN,4,2                   ## @SIGRTMIN
	.no_dead_strip	_sigorder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sigorder
_sigorder:                              ; @sigorder
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x0
	lsl	x2, x2, #2
	bl	_memcpy
Lloh0:
	adrp	x8, _asc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _asc@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #4
	bl	_qsort
	subs	x8, x19, #1
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_12
LBB0_2:
	mov	x13, #0
	mov	x11, #0
	add	x9, x19, #1
Lloh3:
	adrp	x10, _SIGRTMIN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SIGRTMIN@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x12, x11, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x11, x12
	cmp	x12, x8
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w14, [x20, x11, lsl #2]
	ldr	w12, [x10]
	cmp	w14, w12
	b.ge	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x12, x11, #1
	cmp	x13, #0
	csinc	x16, x13, x11, ne
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w15, [x20, x16, lsl #2]
	add	x13, x16, #1
	cmp	w14, w15
	ccmp	x16, x19, #2, eq
	mov	x16, x13
	b.lo	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x9, x13
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x13, x13, #1
	str	w15, [x20, x12, lsl #2]
	b	LBB0_4
LBB0_10:
	mov	x11, x8
LBB0_11:
	add	x0, x11, #1
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_asc,4,2                        ; @asc
	.comm	_SIGRTMIN,4,2                   ; @SIGRTMIN
	.no_dead_strip	_sigorder
.subsections_via_symbols
