	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_build_sorted_word_list         ## -- Begin function build_sorted_word_list
	.p2align	4, 0x90
_build_sorted_word_list:                ## @build_sorted_word_list
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rdi,%rdx,8), %r13
	movq	_PRIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	movq	%rsi, %r12
	xorl	%r15d, %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_PRIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	(%r12), %rcx
	movq	(%rcx,%r15,8), %r14
	testq	%r14, %r14
	jne	LBB0_3
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	8(%r14), %r14
	testq	%r14, %r14
	je	LBB0_6
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, (%r14)
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, (%rbx)
	addq	$8, %rbx
	xorl	%edi, %edi
	cmpq	%r13, %rbx
	setbe	%dil
	callq	_assert
	jmp	LBB0_5
LBB0_8:
	cmpq	%r13, %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_10
## %bb.9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%r14, %rcx
	callq	_fprintf
LBB0_10:
	xorl	%edi, %edi
	cmpq	%r13, %rbx
	sete	%dil
	callq	_assert
	decq	%r14
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_word_sort                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PRIME,4,2                      ## @PRIME
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"expected %lld words, found %lld\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_build_sorted_word_list         ; -- Begin function build_sorted_word_list
	.p2align	2
_build_sorted_word_list:                ; @build_sorted_word_list
	.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
	mov	x19, x2
	mov	x20, x0
	add	x22, x0, x2, lsl #3
Lloh0:
	adrp	x24, _PRIME@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PRIME@GOTPAGEOFF]
	ldr	w8, [x24]
	mov	x23, x0
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x21, x1
	mov	x25, #0
	mov	x23, x20
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x9, [x21]
	ldr	x26, [x9, x25, lsl #3]
	cbnz	x26, LBB0_6
	b	LBB0_3
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	x26, [x26, #8]
	cbz	x26, LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x26]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	str	x26, [x23], #8
	cmp	x23, x22
	cset	w0, ls
	bl	_assert
	b	LBB0_5
LBB0_8:
	cmp	x23, x22
	b.eq	LBB0_10
; %bb.9:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x19
	bl	_fprintf
LBB0_10:
	cmp	x23, x22
	cset	w0, eq
	bl	_assert
	sub	x1, x19, #1
	mov	x0, x20
	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
	b	_word_sort
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PRIME,4,2                      ; @PRIME
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"expected %lld words, found %lld\n"

.subsections_via_symbols
