	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function user
_user:                                  ## @user
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_users@GOTPCREL(%rip), %r15
	movq	_nusers@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usrrehash
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	(%r12), %edx
	testl	%edx, %edx
	jle	LBB0_15
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rax
	leal	-1(%rdx), %ebx
	andl	%r14d, %ebx
	shlq	$4, %rbx
	addq	%rax, %rbx
	movq	%rdx, %rcx
	shlq	$4, %rcx
	addq	%rax, %rcx
	incl	%edx
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=2
	cmpl	%r14d, 8(%rbx)
	je	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=2
	cmpq	%rax, %rbx
	cmovbeq	%rcx, %rbx
	addq	$-16, %rbx
	decl	%edx
	cmpl	$1, %edx
	ja	LBB0_3
	jmp	LBB0_15
LBB0_4:
	movl	%r14d, 8(%rbx)
	movl	%r14d, %edi
	callq	_getpwuid
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %r15
	movl	(%rax), %edi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edi
	callq	_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_strcpy
	jmp	LBB0_9
LBB0_5:
	movl	$7, %edi
	callq	_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movl	%r14d, %edx
	callq	_sprintf
LBB0_9:
	movq	(%rbx), %rax
LBB0_10:
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_12:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_users,8,3                      ## @users
	.comm	_nusers,4,2                     ## @nusers
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"#%d"

L_.str.1:                               ## @.str.1
	.asciz	"allocate users"

	.no_dead_strip	_user
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function user
_user:                                  ; @user
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
Lloh0:
	adrp	x21, _users@GOTPAGE
Lloh1:
	ldr	x21, [x21, _users@GOTPAGEOFF]
Lloh2:
	adrp	x22, _nusers@GOTPAGE
Lloh3:
	ldr	x22, [x22, _nusers@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_usrrehash
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	w10, [x22]
	cmp	w10, #1
	b.lt	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	sub	w9, w10, #1
	and	w9, w9, w20
	add	x19, x8, w9, uxtw #4
	add	x9, x8, x10, lsl #4
	add	w10, w10, #1
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x11, [x19]
	cbz	x11, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w11, [x19, #8]
	cmp	w11, w20
	b.eq	LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	cmp	x19, x8
	csel	x11, x19, x9, hi
	sub	x19, x11, #16
	sub	w10, w10, #1
	cmp	w10, #1
	b.hi	LBB0_4
	b	LBB0_1
LBB0_7:
	str	w20, [x19, #8]
	mov	x0, x20
	bl	_getpwuid
	cbz	x0, LBB0_10
; %bb.8:
	mov	x21, x0
	ldr	w0, [x0]
	bl	_strlen
	add	w0, w0, #1
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_13
; %bb.9:
	ldr	w1, [x21]
	bl	_strcpy
	b	LBB0_12
LBB0_10:
	mov	w0, #7
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_13
; %bb.11:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_sprintf
LBB0_12:
	ldr	x0, [x19]
LBB0_13:
	cbnz	x0, LBB0_15
; %bb.14:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_users,8,3                      ; @users
	.comm	_nusers,4,2                     ; @nusers
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#%d"

l_.str.1:                               ; @.str.1
	.asciz	"allocate users"

	.no_dead_strip	_user
.subsections_via_symbols
