	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_cmd_by_category
_print_cmd_by_category:                 ## @print_cmd_by_category
	.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	%rsi, %r14
	movq	%rdi, %r12
	xorl	%ebx, %ebx
	cmpq	$0, (%rdi)
	movl	$0, %esi
	je	LBB0_3
## %bb.1:
	leaq	16(%r12), %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	orl	-8(%rax), %esi
	cmpq	$0, (%rax)
	leaq	16(%rax), %rax
	jne	LBB0_2
LBB0_3:
	leaq	-48(%rbp), %rdi
	callq	_extract_cmds
	movq	-48(%rbp), %rdi
	movq	(%rdi), %rax
	movl	$0, %r15d
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rdi
	movq	8(%rdi,%rbx,8), %rax
	incq	%rbx
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	_strlen
	cmpl	%eax, %r15d
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_strlen
	movl	%eax, %r15d
	jmp	LBB0_7
LBB0_8:
	movq	_cmd_name_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %esi
	callq	_QSORT
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:
	addq	$16, %r12
	leaq	L_.str(%rip), %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	-8(%r12), %ebx
	callq	__
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_printf
	movq	-48(%rbp), %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_print_command_list
	movq	(%r12), %rdi
	addq	$16, %r12
	testq	%rdi, %rdi
	jne	LBB0_10
LBB0_11:
	movq	-48(%rbp), %rdi
	callq	_free
	testq	%r14, %r14
	je	LBB0_13
## %bb.12:
	movl	%r15d, (%r14)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cmd_name_cmp,4,2               ## @cmd_name_cmp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n%s\n"

	.no_dead_strip	_print_cmd_by_category
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_cmd_by_category
_print_cmd_by_category:                 ; @print_cmd_by_category
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	mov	w1, #0
	add	x8, x20, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w9, [x8, #-8]
	orr	w1, w9, w1
	ldr	x9, [x8], #16
	cbnz	x9, LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w1, #0
LBB0_4:
	add	x0, sp, #8
	bl	_extract_cmds
	ldr	x0, [sp, #8]
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.5:
	mov	x22, #0
	mov	w21, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x1, x22, #1
	ldr	x0, [sp, #8]
	add	x8, x0, x22, lsl #3
	ldr	x8, [x8, #8]
	mov	x22, x1
	cbz	x8, LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x8
	bl	_strlen
	cmp	w21, w0
	b.ge	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #8]
	ldr	x0, [x8, x22, lsl #3]
	bl	_strlen
	mov	x21, x0
	b	LBB0_6
LBB0_9:
	mov	w1, #0
	mov	w21, #0
LBB0_10:
Lloh0:
	adrp	x8, _cmd_name_cmp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cmd_name_cmp@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_QSORT
	ldr	x0, [x20]
	cbz	x0, LBB0_13
; %bb.11:
	add	x23, x20, #16
Lloh3:
	adrp	x20, l_.str@PAGE
Lloh4:
	add	x20, x20, l_.str@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldur	w22, [x23, #-8]
	bl	__
	mov	x1, x0
	mov	x0, x20
	bl	_printf
	ldr	x0, [sp, #8]
	mov	x1, x22
	mov	x2, x21
	bl	_print_command_list
	ldr	x0, [x23], #16
	cbnz	x0, LBB0_12
LBB0_13:
	ldr	x0, [sp, #8]
	bl	_free
	cbz	x19, LBB0_15
; %bb.14:
	str	w21, [x19]
LBB0_15:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_cmd_name_cmp,4,2               ; @cmd_name_cmp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n%s\n"

	.no_dead_strip	_print_cmd_by_category
.subsections_via_symbols
