	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_show_commands                  ## -- Begin function show_commands
	.p2align	4, 0x90
_show_commands:                         ## @show_commands
	.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
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	_history_size@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	testl	%r14d, %r14d
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_history_base@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	addl	%ebx, %edi
	callq	_history_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_2
	jmp	LBB0_5
LBB0_4:
	movl	%ebx, %r14d
LBB0_5:
	testq	%r13, %r13
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_9
## %bb.6:
	cmpb	$43, (%r13)
	jne	LBB0_8
## %bb.7:
	cmpb	$0, 1(%r13)
	je	LBB0_23
LBB0_8:
	movq	%r13, %rdi
	callq	_parse_and_eval_long
	movl	%eax, %r13d
	movq	_history_base@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movq	_Hist_print@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	subl	%ecx, %r13d
	jmp	LBB0_10
LBB0_9:
	movq	_Hist_print@GOTPCREL(%rip), %rax
	movl	%r14d, %r13d
	subl	(%rax), %r13d
LBB0_10:
	movl	%r13d, _show_commands.num(%rip)
	testl	%r13d, %r13d
	jns	LBB0_12
LBB0_11:
	movl	$0, _show_commands.num(%rip)
	xorl	%r13d, %r13d
LBB0_12:
	movl	%r14d, %eax
	subl	%r13d, %eax
	movq	_Hist_print@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_14
## %bb.13:
	movl	%r14d, %eax
	subl	%ecx, %eax
	xorl	%r13d, %r13d
	testl	%eax, %eax
	cmovgl	%eax, %r13d
	movl	%r13d, _show_commands.num(%rip)
LBB0_14:
	leal	(%rcx,%r13), %eax
	testl	%ecx, %ecx
	jle	LBB0_19
## %bb.15:
	cmpl	%r14d, %r13d
	jge	LBB0_19
## %bb.16:
	movq	_history_base@GOTPCREL(%rip), %r15
	leaq	L_.str(%rip), %r12
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %ebx
	addl	%r13d, %ebx
	movl	%ebx, %edi
	callq	_history_get
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_printf_filtered
	incl	%r13d
	movq	_Hist_print@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	_show_commands.num(%rip), %eax
	cmpl	%eax, %r13d
	jge	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpl	%r14d, %r13d
	jl	LBB0_17
LBB0_19:
	movl	%eax, _show_commands.num(%rip)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_22
## %bb.20:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_22
## %bb.21:
	movw	$43, (%rax)
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movl	_show_commands.num(%rip), %r13d
	testl	%r13d, %r13d
	jns	LBB0_12
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_show_commands.num,4,2 ## @show_commands.num
	.comm	_history_size,4,2               ## @history_size
	.comm	_history_base,4,2               ## @history_base
	.comm	_Hist_print,4,2                 ## @Hist_print
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%5d  %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_show_commands                  ; -- Begin function show_commands
	.p2align	2
_show_commands:                         ; @show_commands
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _history_size@GOTPAGE
Lloh1:
	ldr	x21, [x21, _history_size@GOTPAGEOFF]
	ldr	w23, [x21]
Lloh2:
	adrp	x24, _history_base@GOTPAGE
Lloh3:
	ldr	x24, [x24, _history_base@GOTPAGEOFF]
	cmp	w23, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	add	w0, w22, w8
	bl	_history_get
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w22, w22, #1
	ldr	w8, [x21]
	cmp	w22, w8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x23, x22
LBB0_5:
Lloh4:
	adrp	x26, _Hist_print@GOTPAGE
Lloh5:
	ldr	x26, [x26, _Hist_print@GOTPAGEOFF]
	adrp	x25, _show_commands.num@PAGE
	cbz	x19, LBB0_9
; %bb.6:
	ldrb	w8, [x19]
	cmp	w8, #43
	b.ne	LBB0_8
; %bb.7:
	ldrb	w8, [x19, #1]
	cbz	w8, LBB0_21
LBB0_8:
	mov	x0, x19
	bl	_parse_and_eval_long
	ldr	w8, [x24]
	sub	w8, w0, w8
	ldr	w9, [x26]
	cmp	w9, #0
	cinc	w9, w9, lt
	sub	w27, w8, w9, asr #1
	str	w27, [x25, _show_commands.num@PAGEOFF]
	tbz	w27, #31, LBB0_11
	b	LBB0_10
LBB0_9:
	ldr	w8, [x26]
	sub	w27, w23, w8
	str	w27, [x25, _show_commands.num@PAGEOFF]
	tbz	w27, #31, LBB0_11
LBB0_10:
	mov	w27, #0
	str	wzr, [x25, _show_commands.num@PAGEOFF]
LBB0_11:
	ldr	w8, [x26]
	sub	w9, w23, w27
	cmp	w9, w8
	b.ge	LBB0_13
; %bb.12:
	sub	w9, w23, w8
	cmp	w9, #0
	csel	w27, w9, wzr, gt
	str	w27, [x25, _show_commands.num@PAGEOFF]
LBB0_13:
	cmp	w8, #1
	ccmp	w27, w23, #0, ge
	b.lt	LBB0_15
; %bb.14:
	add	w8, w8, w27
	b	LBB0_17
LBB0_15:
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	add	w22, w27, w8
	mov	x0, x22
	bl	_history_get
	ldr	w2, [x0]
	mov	x0, x21
	mov	x1, x22
	bl	_printf_filtered
	add	w27, w27, #1
	ldr	w8, [x25, _show_commands.num@PAGEOFF]
	ldr	w9, [x26]
	add	w8, w9, w8
	cmp	w27, w8
	ccmp	w27, w23, #0, lt
	b.lt	LBB0_16
LBB0_17:
	str	w8, [x25, _show_commands.num@PAGEOFF]
	cbz	x19, LBB0_20
; %bb.18:
	cbz	w20, LBB0_20
; %bb.19:
	mov	w8, #43
	strh	w8, [x19]
LBB0_20:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_21:
	ldr	w27, [x25, _show_commands.num@PAGEOFF]
	tbz	w27, #31, LBB0_11
	b	LBB0_10
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_show_commands.num,4,2 ; @show_commands.num
	.comm	_history_size,4,2               ; @history_size
	.comm	_history_base,4,2               ; @history_base
	.comm	_Hist_print,4,2                 ; @Hist_print
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%5d  %s\n"

.subsections_via_symbols
