	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw_list_items
_tw_list_items:                         ## @tw_list_items
	.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
	testl	%esi, %esi
	je	LBB0_36
## %bb.1:
	movl	%esi, %r12d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%edi, %r15d
	movq	_STRlistmax@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_varval
	movq	%rax, %rbx
	movq	_STRNULL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_9
## %bb.2:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.3:
	addq	$8, %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	callq	_Isdigit
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	(%r14,%r14,4), %eax
	movl	-8(%rbx), %ecx
	leal	(%rcx,%rax,2), %r14d
	addl	$-48, %r14d
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_4
## %bb.6:
	testl	%r14d, %r14d
	jle	LBB0_9
## %bb.7:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.8:
	xorl	%ebx, %ebx
	movl	%r12d, %r13d
	cmpl	%r12d, %r14d
	jl	LBB0_22
LBB0_9:
	movq	_STRlistmaxrows@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_varval
	movq	%rax, %rbx
	xorl	%r13d, %r13d
	movq	_STRNULL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_21
## %bb.10:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.11:
	addq	$8, %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	callq	_Isdigit
	testl	%eax, %eax
	je	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	leal	(%r14,%r14,4), %eax
	movl	-8(%rbx), %ecx
	leal	(%rcx,%rax,2), %r14d
	addl	$-48, %r14d
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_12
## %bb.14:
	movl	%r12d, %ebx
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.15:
	movq	_TW_JOB@GOTPCREL(%rip), %rax
	movl	%r12d, %ebx
	cmpl	%r15d, (%rax)
	je	LBB0_17
## %bb.16:
	xorl	%eax, %eax
	callq	_tw_item_get
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_find_rows
	movl	%eax, %ebx
LBB0_17:
	testl	%r14d, %r14d
	jle	LBB0_20
## %bb.18:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_20
## %bb.19:
	xorl	%r13d, %r13d
	cmpl	%r14d, %ebx
	jg	LBB0_22
LBB0_20:
	xorl	%r13d, %r13d
LBB0_21:
	xorl	%ebx, %ebx
LBB0_22:
	movl	%r13d, %eax
	orl	%ebx, %eax
	je	LBB0_27
## %bb.23:
	testl	%r13d, %r13d
	je	LBB0_25
## %bb.24:
	leaq	L_.str(%rip), %rdx
	movl	$30, %edi
	movl	$5, %esi
	callq	_CGETS
	movq	%rax, %rdi
	jmp	LBB0_26
LBB0_25:
	leaq	L_.str.1(%rip), %rdx
	movl	$30, %edi
	movl	$6, %esi
	callq	_CGETS
	movq	%rax, %rdi
	movl	%ebx, %r13d
LBB0_26:
	callq	_strsave
	movq	%rax, %rbx
	movq	_xfree@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cleanup_push
	leaq	L_.str.2(%rip), %rdx
	movl	$30, %edi
	movl	$7, %esi
	callq	_CGETS
	movq	%rax, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_xprintf
	movq	%rbx, %rdi
	callq	_cleanup_until
	xorl	%eax, %eax
	callq	_flush
	movq	_SHIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-41(%rbp), %rsi
	movl	$1, %edx
	callq	_xread
	movsbl	-41(%rbp), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_xprintf
	leaq	L_.str.4(%rip), %rdx
	movl	$30, %edi
	movl	$13, %esi
	callq	_CGETS
	movsbl	-41(%rbp), %esi
	movq	%rax, %rdi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_36
LBB0_27:
	movq	_TW_SIGNAL@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_29
## %bb.28:
	xorl	%eax, %eax
	callq	_tw_item_get
	movq	_fcompare@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rdi
	movl	%r12d, %esi
	movl	$8, %edx
	callq	_qsort
LBB0_29:
	movq	_TW_JOB@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_30
## %bb.31:
	xorl	%eax, %eax
	callq	_tw_item_get
	testl	%r12d, %r12d
	jle	LBB0_36
## %bb.32:
	movq	%rax, %r15
	movl	%r12d, %r13d
	leaq	L_.str.5(%rip), %r14
	movq	_Tty_raw_mode@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_33 Depth=1
	movl	$10, %edi
	callq	_xputchar
	incq	%rbx
	cmpq	%rbx, %r13
	je	LBB0_36
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rbx,8), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_xprintf
	cmpq	$0, (%r12)
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=1
	movl	$13, %edi
	callq	_xputchar
	jmp	LBB0_35
LBB0_30:
	movq	_STRNULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	xorl	%eax, %eax
	callq	_tw_item_get
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	%r12d, %edx
	callq	_print_by_column
LBB0_36:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRlistmax,4,2                 ## @STRlistmax
	.comm	_STRNULL,8,3                    ## @STRNULL
	.comm	_STRlistmaxrows,4,2             ## @STRlistmaxrows
	.comm	_TW_JOB,4,2                     ## @TW_JOB
	.comm	_TRUE,4,2                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"items"

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

	.comm	_xfree,4,2                      ## @xfree
L_.str.2:                               ## @.str.2
	.asciz	"There are %d %s, list them anyway? [n/y] "

	.comm	_SHIN,4,2                       ## @SHIN
L_.str.3:                               ## @.str.3
	.asciz	"%c\r\n"

L_.str.4:                               ## @.str.4
	.asciz	"Yy"

	.comm	_TW_SIGNAL,4,2                  ## @TW_SIGNAL
	.comm	_fcompare,4,2                   ## @fcompare
L_.str.5:                               ## @.str.5
	.asciz	"%S"

	.comm	_Tty_raw_mode,8,3               ## @Tty_raw_mode
	.no_dead_strip	_tw_list_items
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw_list_items
_tw_list_items:                         ; @tw_list_items
	.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
	cbz	w1, LBB0_30
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _STRlistmax@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRlistmax@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_varval
Lloh3:
	adrp	x23, _STRNULL@GOTPAGE
Lloh4:
	ldr	x23, [x23, _STRNULL@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x0, x9
	b.eq	LBB0_7
; %bb.2:
	mov	x8, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_7
; %bb.3:
	mov	w22, #0
	add	x24, x8, #8
	mov	w25, #10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_Isdigit
	cbz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w8, [x24, #-8]
	madd	w8, w22, w25, w8
	sub	w22, w8, #48
	ldr	x0, [x24], #8
	cbnz	x0, LBB0_4
; %bb.6:
	cmp	w22, #1
	ccmp	w21, #0, #4, ge
	ccmp	w22, w19, #0, ne
	b.lt	LBB0_31
LBB0_7:
Lloh5:
	adrp	x8, _STRlistmaxrows@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STRlistmaxrows@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_varval
	ldr	x9, [x23]
	cmp	x0, x9
	b.eq	LBB0_15
; %bb.8:
	mov	x8, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_15
; %bb.9:
	mov	w24, #0
	add	x22, x8, #8
	mov	w25, #10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	bl	_Isdigit
	cbz	w0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldur	w8, [x22, #-8]
	madd	w8, w24, w25, w8
	sub	w24, w8, #48
	ldr	x0, [x22], #8
	cbnz	x0, LBB0_10
; %bb.12:
Lloh8:
	adrp	x8, _TW_JOB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TW_JOB@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w24, #0
	ccmp	w8, w20, #4, ne
	mov	x22, x19
	b.eq	LBB0_14
; %bb.13:
	bl	_tw_item_get
Lloh11:
	adrp	x8, _TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_find_rows
	mov	x22, x0
LBB0_14:
	cmp	w24, #1
	ccmp	w21, #0, #4, ge
	ccmp	w22, w24, #4, ne
	b.gt	LBB0_32
LBB0_15:
	mov	w21, #0
	mov	w22, #0
LBB0_16:
	orr	w8, w21, w22
	cbz	w8, LBB0_21
; %bb.17:
	cbz	w21, LBB0_19
; %bb.18:
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #30
	mov	w1, #5
	bl	_CGETS
	b	LBB0_20
LBB0_19:
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #30
	mov	w1, #6
	bl	_CGETS
	mov	x21, x22
LBB0_20:
	bl	_strsave
	mov	x22, x0
Lloh18:
	adrp	x8, _xfree@GOTPAGE
Lloh19:
	ldr	x8, [x8, _xfree@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_cleanup_push
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #30
	mov	w1, #7
	bl	_CGETS
	str	x22, [sp]
	mov	x1, x21
	bl	_xprintf
	mov	x0, x22
	bl	_cleanup_until
	bl	_flush
Lloh23:
	adrp	x8, _SHIN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SHIN@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	add	x1, sp, #15
	mov	w2, #1
	bl	_xread
	ldrsb	w1, [sp, #15]
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_xprintf
Lloh28:
	adrp	x2, l_.str.4@PAGE
Lloh29:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w0, #30
	mov	w1, #13
	bl	_CGETS
	ldrsb	w1, [sp, #15]
	bl	_strchr
	cbz	x0, LBB0_30
LBB0_21:
Lloh30:
	adrp	x8, _TW_SIGNAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TW_SIGNAL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_23
; %bb.22:
	bl	_tw_item_get
Lloh33:
	adrp	x8, _fcompare@GOTPAGE
Lloh34:
	ldr	x8, [x8, _fcompare@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
	mov	x1, x19
	mov	w2, #8
	bl	_qsort
LBB0_23:
Lloh36:
	adrp	x8, _TW_JOB@GOTPAGE
Lloh37:
	ldr	x8, [x8, _TW_JOB@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_29
; %bb.24:
	bl	_tw_item_get
	cmp	w19, #1
	b.lt	LBB0_30
; %bb.25:
	mov	x20, x0
	mov	w21, w19
Lloh39:
	adrp	x22, _Tty_raw_mode@GOTPAGE
Lloh40:
	ldr	x22, [x22, _Tty_raw_mode@GOTPAGEOFF]
Lloh41:
	adrp	x19, l_.str.5@PAGE
Lloh42:
	add	x19, x19, l_.str.5@PAGEOFF
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	mov	w0, #10
	bl	_xputchar
	add	x20, x20, #8
	subs	x21, x21, #1
	b.eq	LBB0_30
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_xprintf
	ldr	x8, [x22]
	cbz	x8, LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	w0, #13
	bl	_xputchar
	b	LBB0_26
LBB0_29:
	ldr	x20, [x23]
	bl	_tw_item_get
	mov	x1, x0
Lloh43:
	adrp	x8, _TRUE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh45:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_print_by_column
LBB0_30:
	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
LBB0_31:
	mov	w22, #0
	mov	x21, x19
	b	LBB0_16
LBB0_32:
	mov	w21, #0
	b	LBB0_16
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_STRlistmax,4,2                 ; @STRlistmax
	.comm	_STRNULL,8,3                    ; @STRNULL
	.comm	_STRlistmaxrows,4,2             ; @STRlistmaxrows
	.comm	_TW_JOB,4,2                     ; @TW_JOB
	.comm	_TRUE,4,2                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"items"

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

	.comm	_xfree,4,2                      ; @xfree
l_.str.2:                               ; @.str.2
	.asciz	"There are %d %s, list them anyway? [n/y] "

	.comm	_SHIN,4,2                       ; @SHIN
l_.str.3:                               ; @.str.3
	.asciz	"%c\r\n"

l_.str.4:                               ; @.str.4
	.asciz	"Yy"

	.comm	_TW_SIGNAL,4,2                  ; @TW_SIGNAL
	.comm	_fcompare,4,2                   ; @fcompare
l_.str.5:                               ; @.str.5
	.asciz	"%S"

	.comm	_Tty_raw_mode,8,3               ; @Tty_raw_mode
	.no_dead_strip	_tw_list_items
.subsections_via_symbols
