	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check                          ## -- Begin function check
	.p2align	4, 0x90
_check:                                 ## @check
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_file_reader_init
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_file_reader_readline
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_keys_array_alloc
	movq	%rax, %r12
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_preproc
	movq	%rbx, %rdi
	callq	_file_reader_readline
	testq	%rax, %rax
	je	LBB0_6
## %bb.26:
	movq	%rax, %r14
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_keys_array_alloc
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_preproc
	movl	$1, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	_debug_sort@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	_stdout@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%r14, %rsi
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %r13
	movq	%r13, %rcx
	callq	_bwsprintf
	movl	(%r15), %edi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rcx
	callq	_bwsprintf
LBB0_29:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	%r14, %r15
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_key_coll
	movl	%eax, %r14d
	movq	_debug_sort@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_27 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_printf
LBB0_31:                                ##   in Loop: Header=BB0_27 Depth=1
	testl	%r14d, %r14d
	movq	-104(%rbp), %r13                ## 8-byte Reload
	jne	LBB0_37
## %bb.32:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	_sort_opts_vals@GOTPCREL(%rip), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_37
## %bb.33:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpq	$0, 8(%rax)
	jne	LBB0_37
## %bb.34:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpl	$0, 16(%rax)
	jne	LBB0_37
## %bb.35:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_top_level_str_coll
	movl	%eax, %r14d
	movq	_debug_sort@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_39
## %bb.36:                              ##   in Loop: Header=BB0_27 Depth=1
	leaq	L_.str.4(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_printf
LBB0_37:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	_debug_sort@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_27 Depth=1
	movl	$10, %edi
	callq	_putchar
LBB0_39:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	_sort_opts_vals@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%rax)
	setne	%al
	testl	%r14d, %r14d
	setle	%cl
	testb	%cl, %al
	jne	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_27 Depth=1
	testl	%r14d, %r14d
	js	LBB0_41
## %bb.48:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_clean_keys_array
	movq	%r12, %rdi
	callq	_sort_free
	movq	%r13, %rdi
	callq	_bwsfree
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_file_reader_readline
	testq	%rax, %rax
	je	LBB0_49
## %bb.50:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%rax, %r14
	incq	-48(%rbp)                       ## 8-byte Folded Spill
	xorl	%eax, %eax
	callq	_keys_array_alloc
	movq	%rbx, %r12
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_preproc
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_27
LBB0_1:
	xorl	%r13d, %r13d
	movl	$2, %edi
	xorl	%esi, %esi
	callq	_err
	movl	$1, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
LBB0_3:
	movl	$1, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
LBB0_4:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	testq	%r15, %r15
	jne	LBB0_15
	jmp	LBB0_18
LBB0_6:
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$1, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	testq	%r12, %r12
	jne	LBB0_8
	jmp	LBB0_9
LBB0_41:
	movl	$1, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_sort_opts_vals@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_43
## %bb.42:
	movl	$1, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %r14
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_46
LBB0_49:
	movl	$1, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %r13
	movq	%rbx, %r12
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_46
LBB0_43:
	movq	%r15, %rdi
	callq	_bwsdup
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_debug_sort@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_44
## %bb.47:
	movq	%r13, %rdi
	callq	_bwsdup
	jmp	LBB0_45
LBB0_44:
	xorl	%eax, %eax
LBB0_45:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %r14
LBB0_46:
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	testq	%r12, %r12
	je	LBB0_9
LBB0_8:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_clean_keys_array
	movq	%r12, %rdi
	callq	_sort_free
LBB0_9:
	movq	%r13, %rdi
	callq	_bwsfree
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	testq	%r12, %r12
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_clean_keys_array
	movq	%r12, %rdi
	callq	_sort_free
LBB0_11:
	testq	%r14, %r14
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_bwsfree
LBB0_13:
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_18
LBB0_15:
	cmpb	$0, (%r15)
	je	LBB0_18
## %bb.16:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_19
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	%rax, %rdi
	callq	_bwsfree
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_file_reader_readline
	testq	%rax, %rax
	jne	LBB0_17
LBB0_19:
	movq	%rbx, %rdi
	callq	_file_reader_free
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_24
## %bb.20:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_bws_disorder_warnx
	testq	%r13, %r13
	je	LBB0_23
## %bb.21:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_bws_disorder_warnx
	cmpq	%r14, %r13
	je	LBB0_23
## %bb.22:
	movq	%r13, %rdi
	callq	_bwsfree
LBB0_23:
	movq	%r14, %rdi
	callq	_bwsfree
LBB0_24:
	testl	%r12d, %r12d
	jne	LBB0_25
## %bb.51:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_debug_sort,8,3                 ## @debug_sort
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"s1=<"

L_.str.1:                               ## @.str.1
	.asciz	">"

L_.str.2:                               ## @.str.2
	.asciz	"s2=<"

L_.str.3:                               ## @.str.3
	.asciz	"; cmp1=%d"

	.comm	_sort_opts_vals,32,3            ## @sort_opts_vals
L_.str.4:                               ## @.str.4
	.asciz	"; cmp2=%d"

L_.str.6:                               ## @.str.6
	.asciz	"-"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check                          ; -- Begin function check
	.p2align	2
_check:                                 ; @check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x27, x0
	bl	_file_reader_init
	mov	x20, x0
	cbz	x0, LBB0_18
; %bb.1:
	mov	x0, x20
	bl	_file_reader_readline
	cbz	x0, LBB0_19
; %bb.2:
	mov	x23, x0
	bl	_keys_array_alloc
	mov	x24, x0
	mov	x0, x23
	mov	x1, x24
	bl	_preproc
	mov	x0, x20
	bl	_file_reader_readline
	mov	x28, x0
	cbz	x0, LBB0_20
; %bb.3:
	str	x27, [sp, #8]                   ; 8-byte Folded Spill
	bl	_keys_array_alloc
	mov	x19, x0
	mov	x0, x28
	mov	x1, x19
	bl	_preproc
Lloh0:
	adrp	x26, _debug_sort@GOTPAGE
Lloh1:
	ldr	x26, [x26, _debug_sort@GOTPAGEOFF]
Lloh2:
	adrp	x25, _sort_opts_vals@GOTPAGE
Lloh3:
	ldr	x25, [x25, _sort_opts_vals@GOTPAGEOFF]
	mov	w21, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x27, x28
	ldr	x8, [x26]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh4:
	adrp	x22, _stdout@GOTPAGE
Lloh5:
	ldr	x22, [x22, _stdout@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x27
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
Lloh8:
	adrp	x28, l_.str.1@PAGE
Lloh9:
	add	x28, x28, l_.str.1@PAGEOFF
	mov	x3, x28
	bl	_bwsprintf
	ldr	w0, [x22]
	mov	x1, x23
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x3, x28
	bl	_bwsprintf
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x24
	mov	w2, #0
	bl	_key_coll
	mov	x28, x0
	ldr	x8, [x26]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x28, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w28, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25, #24]
	ldr	x9, [x25, #8]
	ldr	w10, [x25, #16]
	cmp	x8, #0
	ccmp	x9, #0, #0, ne
	ccmp	w10, #0, #0, eq
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x27
	mov	x1, x23
	bl	_top_level_str_coll
	mov	x28, x0
	ldr	x8, [x26]
	cbz	x8, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x28
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x26]
	cbz	x8, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #10
	bl	_putchar
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25, #8]
	cmp	w28, #1
	ccmp	x8, #0, #4, lt
	b.ne	LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	tbnz	w28, #31, LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_clean_keys_array
	mov	x0, x24
	bl	_sort_free
	mov	x0, x23
	bl	_bwsfree
	mov	x0, x20
	bl	_file_reader_readline
	mov	x28, x0
	cbz	x0, LBB0_23
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	bl	_keys_array_alloc
	mov	x22, x0
	mov	x0, x28
	mov	x1, x22
	bl	_preproc
	mov	x23, x27
	mov	x24, x19
	mov	x19, x22
	b	LBB0_4
LBB0_18:
	mov	w0, #2
	mov	x1, #0
	bl	_err
LBB0_19:
	mov	x26, #0
	mov	x25, #0
	mov	w22, #0
	mov	w21, #1
	b	LBB0_34
LBB0_20:
	mov	x26, #0
	mov	x25, #0
	mov	x19, #0
	mov	w22, #0
	mov	w21, #1
	cbnz	x24, LBB0_29
	b	LBB0_30
LBB0_21:
	ldr	w8, [x25]
	cbz	w8, LBB0_24
; %bb.22:
	mov	x26, #0
	mov	x25, #0
	mov	w22, #1
	mov	x28, x27
	mov	w21, #1
	b	LBB0_28
LBB0_23:
	mov	x26, #0
	mov	x25, #0
	mov	w22, #0
	mov	x23, x27
	mov	x24, x19
	mov	w21, #1
	mov	x19, #0
	b	LBB0_28
LBB0_24:
	mov	x0, x27
	bl	_bwsdup
	mov	x25, x0
	ldr	x8, [x26]
	cbz	x8, LBB0_26
; %bb.25:
	mov	x0, x23
	bl	_bwsdup
	mov	x26, x0
	b	LBB0_27
LBB0_26:
	mov	x26, #0
LBB0_27:
	mov	w22, #1
	mov	x28, x27
LBB0_28:
	ldr	x27, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x24, LBB0_30
LBB0_29:
	mov	x0, x23
	mov	x1, x24
	bl	_clean_keys_array
	mov	x0, x24
	bl	_sort_free
LBB0_30:
	mov	x0, x23
	bl	_bwsfree
	cbz	x19, LBB0_32
; %bb.31:
	mov	x0, x28
	mov	x1, x19
	bl	_clean_keys_array
	mov	x0, x19
	bl	_sort_free
LBB0_32:
	cbz	x28, LBB0_34
; %bb.33:
	mov	x0, x28
	bl	_bwsfree
LBB0_34:
	cbz	x27, LBB0_38
; %bb.35:
	ldrb	w8, [x27]
	cbz	w8, LBB0_38
; %bb.36:
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x27
	bl	_strcmp
	cbnz	x0, LBB0_39
	b	LBB0_38
LBB0_37:                                ;   in Loop: Header=BB0_38 Depth=1
	bl	_bwsfree
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_file_reader_readline
	cbnz	x0, LBB0_37
LBB0_39:
	mov	x0, x20
	bl	_file_reader_free
	cbz	x25, LBB0_44
; %bb.40:
	mov	x0, x25
	mov	x1, x27
	mov	x2, x21
	bl	_bws_disorder_warnx
	cbz	x26, LBB0_43
; %bb.41:
	mov	x0, x26
	mov	x1, x27
	mov	x2, x21
	bl	_bws_disorder_warnx
	cmp	x26, x25
	b.eq	LBB0_43
; %bb.42:
	mov	x0, x26
	bl	_bwsfree
LBB0_43:
	mov	x0, x25
	bl	_bwsfree
LBB0_44:
	cbnz	w22, LBB0_46
; %bb.45:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_46:
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_debug_sort,8,3                 ; @debug_sort
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"s1=<"

l_.str.1:                               ; @.str.1
	.asciz	">"

l_.str.2:                               ; @.str.2
	.asciz	"s2=<"

l_.str.3:                               ; @.str.3
	.asciz	"; cmp1=%d"

	.comm	_sort_opts_vals,32,3            ; @sort_opts_vals
l_.str.4:                               ; @.str.4
	.asciz	"; cmp2=%d"

l_.str.6:                               ; @.str.6
	.asciz	"-"

.subsections_via_symbols
