	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addelem_uid
_addelem_uid:                           ## @addelem_uid
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpb	$0, (%rsi)
	je	LBB0_15
## %bb.1:
	movq	%rsi, %r12
	movq	%rsi, %rdi
	callq	_strlen
	movq	_MAXLOGNAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.4:
	movq	%r12, %rdi
	callq	_getpwnam
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_5
LBB0_11:
	movq	(%r14), %rax
	cmpq	8(%r14), %rax
	jl	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_expand_list
	movq	(%r14), %rax
LBB0_13:
	movl	(%r15), %ecx
	movq	16(%r14), %rdx
	leaq	1(%rax), %rsi
	movq	%rsi, (%r14)
	movl	%ecx, (%rdx,%rax,4)
	movl	$1, %ebx
	jmp	LBB0_14
LBB0_15:
	movl	24(%r14), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_xo_warnx
	jmp	LBB0_3
LBB0_2:
	movl	24(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_xo_warnx
LBB0_3:
	movq	_optfatal@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%ebx, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	movl	$10, %edx
	callq	_strtoul
	leaq	L_.str.2(%rip), %rdi
	cmpq	$0, (%rbx)
	je	LBB0_6
LBB0_10:
	movl	24(%r14), %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_xo_warnx
	movq	_optfatal@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_14
LBB0_6:
	movq	-40(%rbp), %rcx
	cmpb	$0, (%rcx)
	jne	LBB0_10
## %bb.7:
	movq	_UID_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_10
## %bb.8:
	movl	%eax, %edi
	callq	_getpwuid
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXLOGNAME,8,3                 ## @MAXLOGNAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid (zero-length) %s name"

L_.str.1:                               ## @.str.1
	.asciz	"%s name too long: %s"

	.comm	_optfatal,4,2                   ## @optfatal
	.comm	_errno,8,3                      ## @errno
	.comm	_UID_MAX,8,3                    ## @UID_MAX
L_.str.2:                               ## @.str.2
	.asciz	"No %s named '%s'"

L_.str.3:                               ## @.str.3
	.asciz	"No %s name or ID matches '%s'"

	.no_dead_strip	_addelem_uid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addelem_uid
_addelem_uid:                           ; @addelem_uid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldrb	w8, [x1]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x0, x1
	bl	_strlen
Lloh0:
	adrp	x8, _MAXLOGNAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXLOGNAME@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_7
; %bb.2:
	mov	x0, x20
	bl	_getpwnam
	mov	x21, x0
	cbz	x0, LBB0_8
LBB0_3:
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.lt	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_expand_list
	ldr	x8, [x19]
LBB0_5:
	ldr	w9, [x21]
	ldr	x10, [x19, #16]
	add	x11, x8, #1
	str	x11, [x19]
	str	w9, [x10, x8, lsl #2]
	mov	w0, #1
	b	LBB0_13
LBB0_6:
	ldr	w1, [x19, #24]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_12
LBB0_7:
	ldr	w1, [x19, #24]
	str	x20, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_8:
Lloh7:
	adrp	x21, _errno@GOTPAGE
Lloh8:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	str	xzr, [x21]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #10
	bl	_strtoul
	ldr	x8, [x21]
	cbnz	x8, LBB0_10
; %bb.9:
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
Lloh9:
	adrp	x9, _UID_MAX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _UID_MAX@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	w8, #0
	ccmp	x0, x9, #0, eq
	b.le	LBB0_14
LBB0_10:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_11:
	ldr	w1, [x19, #24]
	str	x20, [sp]
LBB0_12:
	bl	_xo_warnx
	mov	w0, #0
Lloh14:
	adrp	x8, _optfatal@GOTPAGE
Lloh15:
	ldr	x8, [x8, _optfatal@GOTPAGEOFF]
	mov	w9, #1
Lloh16:
	str	w9, [x8]
LBB0_13:
	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
	add	sp, sp, #64
	ret
LBB0_14:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_getpwuid
	mov	x21, x0
	cbnz	x0, LBB0_3
; %bb.15:
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXLOGNAME,8,3                 ; @MAXLOGNAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid (zero-length) %s name"

l_.str.1:                               ; @.str.1
	.asciz	"%s name too long: %s"

	.comm	_optfatal,4,2                   ; @optfatal
	.comm	_errno,8,3                      ; @errno
	.comm	_UID_MAX,8,3                    ; @UID_MAX
l_.str.2:                               ; @.str.2
	.asciz	"No %s named '%s'"

l_.str.3:                               ; @.str.3
	.asciz	"No %s name or ID matches '%s'"

	.no_dead_strip	_addelem_uid
.subsections_via_symbols
