	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_group                          ## -- Begin function group
	.p2align	4, 0x90
_group:                                 ## @group
	.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	(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.36:
	movq	%rdi, %r13
	cmpq	$0, 8(%rdi)
	je	LBB0_37
## %bb.38:
	movq	%r15, %rdi
	callq	_hash
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_findgroup
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_42
## %bb.39:
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_41
## %bb.40:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_41:
	movq	%r15, %rdi
	callq	_vcopy
	movq	%rax, 16(%r14)
	movq	$0, (%r14)
	movq	_groups@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r12d, %rcx
	movq	(%rax,%rcx,8), %rdx
	movq	%rdx, 8(%r14)
	movq	%r14, (%rax,%rcx,8)
LBB0_42:
	movq	8(%r13), %r12
	testq	%r12, %r12
	je	LBB0_47
## %bb.43:
	addq	$16, %r13
	leaq	L_.str(%rip), %r15
	jmp	LBB0_44
	.p2align	4, 0x90
LBB0_46:                                ##   in Loop: Header=BB0_44 Depth=1
	movq	%r12, %rdi
	callq	_vcopy
	movq	%rax, 8(%rbx)
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movq	%rbx, (%r14)
	movq	(%r13), %r12
	addq	$8, %r13
	testq	%r12, %r12
	je	LBB0_47
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_46
## %bb.45:                              ##   in Loop: Header=BB0_44 Depth=1
	movl	$1, %edi
	movq	%r15, %rsi
	callq	_err
	movq	-8(%r13), %r12
	jmp	LBB0_46
LBB0_1:
	movq	_HSHSIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_2
## %bb.3:
	movq	_groups@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.4:
	movl	$1, %edi
	xorl	%edx, %edx
LBB0_13:
	testb	$1, %al
	je	LBB0_17
## %bb.14:
	movq	(%rcx,%rdx,8), %rax
	testq	%rax, %rax
	je	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	incl	%edi
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_17
LBB0_37:
	movq	%r15, %rdi
	callq	_printgroup
	jmp	LBB0_47
LBB0_2:
	movl	$1, %edi
LBB0_17:
	shll	$3, %edi
	callq	_salloc
	movq	%rax, %rbx
	movl	(%r14), %r8d
	testl	%r8d, %r8d
	jle	LBB0_18
## %bb.19:
	cmpl	$1, %r8d
	jne	LBB0_21
## %bb.20:
	xorl	%edx, %edx
	movq	%rbx, %rax
LBB0_29:
	testb	$1, %r8b
	je	LBB0_33
## %bb.30:
	movq	_groups@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rdx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_33
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rcx), %rdx
	movq	%rdx, (%rax)
	addq	$8, %rax
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_31
	jmp	LBB0_33
LBB0_18:
	movq	%rbx, %rax
LBB0_33:
	movq	$0, (%rax)
	movq	%rbx, %rdi
	callq	_sort
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_47
## %bb.34:
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	callq	_printgroup
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_35
LBB0_47:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%eax, %esi
	andl	$-2, %esi
	movl	$1, %edi
	xorl	%edx, %edx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$2, %rdx
	cmpq	%rsi, %rdx
	je	LBB0_13
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
	movq	(%rcx,%rdx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%edi
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_7
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	leaq	(,%rdx,8), %rbx
	orq	$8, %rbx
	movq	(%rcx,%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	%edi
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_10
	jmp	LBB0_12
LBB0_21:
	movl	%r8d, %esi
	andl	$-2, %esi
	xorl	%edx, %edx
	movq	_groups@GOTPCREL(%rip), %r9
	movq	%rbx, %rax
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_22 Depth=1
	addq	$2, %rdx
	cmpq	%rsi, %rdx
	je	LBB0_29
LBB0_22:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_23 Depth 2
                                        ##     Child Loop BB0_26 Depth 2
	movq	(%r9), %rcx
	movq	(%rcx,%rdx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_25
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_22 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rcx), %rdi
	movq	%rdi, (%rax)
	addq	$8, %rax
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_23
LBB0_25:                                ##   in Loop: Header=BB0_22 Depth=1
	leaq	(,%rdx,8), %rcx
	movq	(%r9), %rdi
	orq	$8, %rcx
	movq	(%rdi,%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_28
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_22 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rcx), %rdi
	movq	%rdi, (%rax)
	addq	$8, %rax
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_26
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_HSHSIZE,4,2                    ## @HSHSIZE
	.comm	_groups,8,3                     ## @groups
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of memory"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_group                          ; -- Begin function group
	.p2align	2
_group:                                 ; @group
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x21, [x0]
	cbz	x21, LBB0_11
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_16
; %bb.2:
	mov	x0, x21
	bl	_hash
	mov	x22, x0
	mov	x0, x21
	bl	_findgroup
	mov	x19, x0
	cbnz	x0, LBB0_6
; %bb.3:
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	mov	x19, x0
	cbnz	x0, LBB0_5
; %bb.4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_5:
	mov	x0, x21
	bl	_vcopy
	str	x0, [x19, #16]
	str	xzr, [x19]
Lloh2:
	adrp	x8, _groups@GOTPAGE
Lloh3:
	ldr	x8, [x8, _groups@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	sbfiz	x9, x22, #3, #32
	ldr	x10, [x8, x9]
	str	x10, [x19, #8]
	str	x19, [x8, x9]
LBB0_6:
	ldr	x21, [x20, #8]
	cbz	x21, LBB0_27
; %bb.7:
	add	x23, x20, #16
Lloh5:
	adrp	x20, l_.str@PAGE
Lloh6:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
	bl	_vcopy
	ldr	x8, [x19]
	stp	x8, x0, [x22]
	str	x22, [x19]
	ldr	x21, [x23], #8
	cbz	x21, LBB0_27
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	mov	x22, x0
	cbnz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #1
	mov	x1, x20
	bl	_err
	ldur	x21, [x23, #-8]
	b	LBB0_8
LBB0_11:
Lloh7:
	adrp	x20, _HSHSIZE@GOTPAGE
Lloh8:
	ldr	x20, [x20, _HSHSIZE@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.12:
	mov	x10, #0
Lloh9:
	adrp	x9, _groups@GOTPAGE
Lloh10:
	ldr	x9, [x9, _groups@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x9]
	mov	w9, #1
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x10, x10, #1
	cmp	x10, x8
	b.eq	LBB0_18
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldr	x12, [x11, x10, lsl #3]
	cbz	x12, LBB0_13
LBB0_15:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w9, w9, #1
	ldr	x12, [x12, #8]
	cbnz	x12, LBB0_15
	b	LBB0_13
LBB0_16:
	mov	x0, x21
	bl	_printgroup
	b	LBB0_27
LBB0_17:
	mov	w9, #1
LBB0_18:
	lsl	w0, w9, #3
	bl	_salloc
	mov	x19, x0
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.19:
	mov	x9, #0
Lloh12:
	adrp	x11, _groups@GOTPAGE
Lloh13:
	ldr	x11, [x11, _groups@GOTPAGEOFF]
	mov	x10, x19
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_24
LBB0_21:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_22 Depth 2
	ldr	x12, [x11]
	ldr	x12, [x12, x9, lsl #3]
	cbz	x12, LBB0_20
LBB0_22:                                ;   Parent Loop BB0_21 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x13, [x12, #16]
	str	x13, [x10], #8
	ldr	x12, [x12, #8]
	cbnz	x12, LBB0_22
	b	LBB0_20
LBB0_23:
	mov	x10, x19
LBB0_24:
	str	xzr, [x10]
	mov	x0, x19
	bl	_sort
	ldr	x0, [x19]
	cbz	x0, LBB0_27
; %bb.25:
	add	x19, x19, #8
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	bl	_printgroup
	ldr	x0, [x19], #8
	cbnz	x0, LBB0_26
LBB0_27:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HSHSIZE,4,2                    ; @HSHSIZE
	.comm	_groups,8,3                     ; @groups
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of memory"

.subsections_via_symbols
