	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_order
_prepare_order:                         ## @prepare_order
	.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	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_order@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_29
## %bb.1:
	movq	%rdi, %rbx
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_strbuf_read_file
	testq	%rax, %rax
	js	LBB0_2
## %bb.4:
	movq	%rax, %r14
	xorl	%r15d, %r15d
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
	testq	%r14, %r14
	je	LBB0_3
## %bb.5:
	movq	%rax, %r12
	movq	%rax, %r13
	addq	%r14, %r13
	movq	%rax, %rcx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	%rdx, %rax
	movq	%rax, %rcx
	cmpq	%r13, %rax
	jae	LBB0_15
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	%rcx, %rax
	cmpq	%r13, %rcx
	jae	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$10, (%rax)
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	incq	%rax
	cmpq	%r13, %rax
	jb	LBB0_7
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edx
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	(%rcx), %cl
	cmpb	$10, %cl
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$35, %cl
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	incl	%r15d
	jmp	LBB0_14
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_die_errno
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_strbuf_detach
LBB0_3:
	movq	_order_cnt@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_order@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_ALLOC_ARRAY
	jmp	LBB0_29
LBB0_15:
	movq	_order_cnt@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
	movq	_order@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movl	%r15d, %esi
	callq	_ALLOC_ARRAY
	testq	%r14, %r14
	je	LBB0_29
## %bb.16:
	movq	%rbx, %rcx
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_26:                                ##   in Loop: Header=BB0_17 Depth=1
	movb	$0, (%rbx)
LBB0_27:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	(%rcx), %rax
	movslq	%r14d, %r14
	movq	%r12, (%rax,%r14,8)
	incl	%r14d
LBB0_28:                                ##   in Loop: Header=BB0_17 Depth=1
	addq	%r15, %rbx
	movq	%rbx, %r12
	cmpq	%r13, %rbx
	jae	LBB0_29
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	movq	%r12, %rbx
	cmpq	%r13, %r12
	jae	LBB0_21
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$10, (%rbx)
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=2
	incq	%rbx
	cmpq	%r13, %rbx
	jb	LBB0_18
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	xorl	%r15d, %r15d
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	$1, %r15d
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=1
	movb	(%r12), %al
	cmpb	$10, %al
	je	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpb	$35, %al
	je	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpb	$10, (%rbx)
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%ebx, %esi
	subl	%r12d, %esi
	movq	%r12, %rdi
	callq	_xmemdupz
	movq	_order@GOTPCREL(%rip), %rcx
	movq	%rax, %r12
	jmp	LBB0_27
LBB0_29:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_order,8,3                      ## @order
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read orderfile '%s'"

	.comm	_order_cnt,4,2                  ## @order_cnt
	.no_dead_strip	_prepare_order
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_order
_prepare_order:                         ; @prepare_order
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x21, _order@GOTPAGE
Lloh4:
	ldr	x21, [x21, _order@GOTPAGEOFF]
	ldr	x8, [x21]
	cbnz	x8, LBB0_37
; %bb.1:
	mov	x19, x0
	add	x0, sp, #8
	mov	x1, x19
	mov	w2, #0
	bl	_strbuf_read_file
	tbnz	x0, #63, LBB0_16
; %bb.2:
	mov	x20, x0
	add	x0, sp, #8
	mov	x1, #0
	bl	_strbuf_detach
	cbz	x20, LBB0_17
; %bb.3:
	mov	x19, x0
	mov	w1, #0
	add	x22, x0, x20
	add	x8, x20, x0
	sub	x8, x8, #1
	mov	x9, x0
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w11, #0
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x10, x9
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w9, [x9]
	cmp	w9, #35
	cinc	w12, w1, ne
	cmp	w9, #10
	csel	w1, w1, w12, eq
	add	x9, x10, w11, uxtw
	cmp	x9, x22
	b.hs	LBB0_18
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	cmp	x9, x22
	b.hs	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w10, [x9]
	cmp	w10, #10
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w11, #1
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x12, x9, #1
	sub	x10, x8, x9
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x11, x12
	cbz	x10, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x12, x11
	ldrb	w13, [x12], #1
	sub	x10, x10, #1
	cmp	w13, #10
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	sub	x10, x12, #1
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x10, x22
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	x11, x22
	cset	w11, lo
	b	LBB0_6
LBB0_16:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_die_errno
	add	x0, sp, #8
	mov	x1, #0
	bl	_strbuf_detach
LBB0_17:
Lloh7:
	adrp	x8, _order_cnt@GOTPAGE
Lloh8:
	ldr	x8, [x8, _order_cnt@GOTPAGEOFF]
Lloh9:
	str	wzr, [x8]
	ldr	x0, [x21]
	mov	w1, #0
	bl	_ALLOC_ARRAY
	b	LBB0_37
LBB0_18:
Lloh10:
	adrp	x8, _order_cnt@GOTPAGE
Lloh11:
	ldr	x8, [x8, _order_cnt@GOTPAGEOFF]
Lloh12:
	str	w1, [x8]
	ldr	x0, [x21]
	bl	_ALLOC_ARRAY
	cbz	x20, LBB0_37
; %bb.19:
	mov	w23, #0
	add	x8, x20, x19
	sub	x20, x8, #1
	b	LBB0_23
LBB0_20:                                ;   in Loop: Header=BB0_23 Depth=1
	strb	wzr, [x24]
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x21]
	str	x19, [x8, w23, sxtw #3]
	add	w23, w23, #1
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x19, x24, w25, uxtw
	cmp	x19, x22
	b.hs	LBB0_37
LBB0_23:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_28 Depth 2
	cmp	x19, x22
	b.hs	LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldrb	w8, [x19]
	cmp	w8, #10
	b.ne	LBB0_27
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	w25, #1
	mov	x24, x19
	b	LBB0_33
LBB0_26:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	w25, #0
	mov	x24, x19
	b	LBB0_33
LBB0_27:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x10, x19, #1
	sub	x9, x20, x19
LBB0_28:                                ;   Parent Loop BB0_23 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x8, x10
	cbz	x9, LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=2
	mov	x10, x8
	ldrb	w11, [x10], #1
	sub	x9, x9, #1
	cmp	w11, #10
	b.ne	LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_23 Depth=1
	sub	x24, x10, #1
	b	LBB0_32
LBB0_31:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x24, x22
LBB0_32:                                ;   in Loop: Header=BB0_23 Depth=1
	cmp	x8, x22
	cset	w25, lo
LBB0_33:                                ;   in Loop: Header=BB0_23 Depth=1
	ldrb	w8, [x19]
	cmp	w8, #10
	b.eq	LBB0_22
; %bb.34:                               ;   in Loop: Header=BB0_23 Depth=1
	cmp	w8, #35
	b.eq	LBB0_22
; %bb.35:                               ;   in Loop: Header=BB0_23 Depth=1
	ldrb	w8, [x24]
	cmp	w8, #10
	b.eq	LBB0_20
; %bb.36:                               ;   in Loop: Header=BB0_23 Depth=1
	sub	w1, w24, w19
	mov	x0, x19
	bl	_xmemdupz
	mov	x19, x0
	b	LBB0_21
LBB0_37:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_order,8,3                      ; @order
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read orderfile '%s'"

	.comm	_order_cnt,4,2                  ; @order_cnt
	.no_dead_strip	_prepare_order
.subsections_via_symbols
