	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pw_checkname                   ## -- Begin function pw_checkname
	.p2align	4, 0x90
_pw_checkname:                          ## @pw_checkname
	.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, %r12d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %r13
	leaq	L_.str.1(%rip), %r15
	movq	%r14, %rbx
	movb	(%r14), %al
	testb	%al, %al
	jne	LBB0_7
	jmp	LBB0_6
LBB0_3:
	movb	(%r14), %al
	leaq	L_.str.3(%rip), %r15
	cmpb	$45, %al
	jne	LBB0_4
## %bb.15:
	xorl	%esi, %esi
	movq	%r14, %rbx
	testl	%r12d, %r12d
	je	LBB0_17
	jmp	LBB0_22
LBB0_4:
	leaq	L_.str.2(%rip), %r13
	movq	%r14, %rbx
	testb	%al, %al
	je	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %esi
	movq	%r13, %rdi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movzbl	(%rbx), %ecx
	testl	%r12d, %r12d
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpb	$32, %cl
	jl	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	testl	%r12d, %r12d
	setne	%dl
	testb	%cl, %cl
	setns	%al
	xorl	%esi, %esi
	cmpb	$127, %cl
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	orb	%al, %dl
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movzbl	(%rbx), %eax
	testb	%al, %al
	jne	LBB0_7
LBB0_6:
	movb	$1, %sil
	testl	%r12d, %r12d
	je	LBB0_17
	jmp	LBB0_22
LBB0_8:
	xorl	%esi, %esi
LBB0_16:
	testl	%r12d, %r12d
	jne	LBB0_22
LBB0_17:
	testb	%sil, %sil
	jne	LBB0_22
## %bb.18:
	movb	(%rbx), %al
	cmpb	$36, %al
	jne	LBB0_24
## %bb.19:
	cmpb	$0, 1(%rbx)
	je	LBB0_20
## %bb.21:
	movb	$36, %al
	leaq	L_.str.4(%rip), %rcx
	jmp	LBB0_25
LBB0_11:
	xorl	%esi, %esi
	testl	%r12d, %r12d
	je	LBB0_17
LBB0_22:
	testb	%sil, %sil
	jne	LBB0_27
## %bb.23:
	movb	(%rbx), %al
LBB0_24:
	cmpb	$127, %al
	leaq	L_.str.5(%rip), %rdx
	leaq	L_.str.4(%rip), %rcx
	cmoveq	%rdx, %rcx
	cmpb	$32, %al
	jl	LBB0_26
LBB0_25:
	movq	%rcx, %rdx
LBB0_26:
	movsbl	%al, %ecx
	leaq	-56(%rbp), %r13
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_snprintf
	movq	_EX_DATAERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %ecx
	subl	%r14d, %ecx
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdx
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_errx
LBB0_27:
	testl	%r12d, %r12d
	jne	LBB0_30
LBB0_28:
	subq	%r14, %rbx
	movq	_LOGNAMESIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jle	LBB0_30
## %bb.29:
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_30
LBB0_20:
	incq	%rbx
	testl	%r12d, %r12d
	je	LBB0_28
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.31:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	":"

L_.str.1:                               ## @.str.1
	.asciz	"gecos field"

L_.str.2:                               ## @.str.2
	.asciz	" ,\t:+&#%$^()!@~*?<>=|\\/\""

L_.str.3:                               ## @.str.3
	.asciz	"userid/group name"

L_.str.4:                               ## @.str.4
	.asciz	"`%c'"

L_.str.5:                               ## @.str.5
	.asciz	"0x%02x"

	.comm	_EX_DATAERR,4,2                 ## @EX_DATAERR
L_.str.6:                               ## @.str.6
	.asciz	"invalid character %s at position %td in %s"

	.comm	_LOGNAMESIZE,4,2                ## @LOGNAMESIZE
	.comm	_EX_USAGE,4,2                   ## @EX_USAGE
L_.str.7:                               ## @.str.7
	.asciz	"name too long `%s' (max is %d)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pw_checkname                   ; -- Begin function pw_checkname
	.p2align	2
_pw_checkname:                          ; @pw_checkname
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cbz	w1, LBB0_2
; %bb.1:
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
	mov	x22, x19
Lloh5:
	adrp	x23, l_.str.1@PAGE
Lloh6:
	add	x23, x23, l_.str.1@PAGEOFF
	ldrb	w8, [x19]
	cbnz	w8, LBB0_5
	b	LBB0_11
LBB0_2:
	ldrb	w8, [x19]
Lloh7:
	adrp	x23, l_.str.3@PAGE
Lloh8:
	add	x23, x23, l_.str.3@PAGEOFF
	cmp	w8, #45
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #0
	mov	x22, x19
	cbz	w20, LBB0_14
	b	LBB0_19
LBB0_4:
Lloh9:
	adrp	x21, l_.str.2@PAGE
Lloh10:
	add	x21, x21, l_.str.2@PAGEOFF
	mov	x22, x19
	cbz	w8, LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w1, w8
	mov	x0, x21
	bl	_strchr
	cbnz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrsb	w9, [x22]
	cbnz	w20, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, #32
	b.lt	LBB0_18
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #0
	cmp	w20, #0
	ccmp	w9, #0, #0, eq
	cset	w10, ge
	cmp	w9, #127
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w10, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x22, #1]!
	cbnz	w8, LBB0_5
LBB0_11:
	mov	w8, #1
	cbz	w20, LBB0_14
	b	LBB0_19
LBB0_12:
	mov	w8, #0
LBB0_13:
	cbnz	w20, LBB0_19
LBB0_14:
	tbnz	w8, #0, LBB0_19
; %bb.15:
	ldrb	w8, [x22]
	cmp	w8, #36
	b.ne	LBB0_21
; %bb.16:
	mov	x8, x22
	ldrb	w9, [x8, #1]!
	cbz	w9, LBB0_27
; %bb.17:
	mov	w8, #36
Lloh11:
	adrp	x2, l_.str.4@PAGE
Lloh12:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_23
LBB0_18:
	mov	w8, #0
	cbz	w20, LBB0_14
LBB0_19:
	tbnz	w8, #0, LBB0_24
; %bb.20:
	ldrb	w8, [x22]
LBB0_21:
Lloh13:
	adrp	x9, l_.str.4@PAGE
Lloh14:
	add	x9, x9, l_.str.4@PAGEOFF
	sxtb	w10, w8
Lloh15:
	adrp	x2, l_.str.5@PAGE
Lloh16:
	add	x2, x2, l_.str.5@PAGEOFF
	cmp	w8, #127
	csel	x9, x2, x9, eq
	cmp	w10, #32
	b.lt	LBB0_23
; %bb.22:
	mov	x2, x9
LBB0_23:
	sxtb	w3, w8
	add	x0, sp, #16
	mov	w1, #8
	bl	_snprintf
Lloh17:
	adrp	x8, _EX_DATAERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EX_DATAERR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	sub	w3, w22, w19
	str	x23, [sp]
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x2, sp, #16
	bl	_errx
LBB0_24:
	cbnz	w20, LBB0_28
LBB0_25:
Lloh22:
	adrp	x8, _LOGNAMESIZE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LOGNAMESIZE@GOTPAGEOFF]
Lloh24:
	ldrsw	x3, [x8]
	sub	x8, x22, x19
	cmp	x8, x3
	b.le	LBB0_28
; %bb.26:
Lloh25:
	adrp	x8, _EX_USAGE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EX_USAGE@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.7@PAGE
Lloh29:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x2, x19
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_errx
	b	LBB0_28
LBB0_27:
	mov	x22, x8
	cbz	w20, LBB0_25
LBB0_28:
	ldr	x8, [sp, #24]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.29:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	":"

l_.str.1:                               ; @.str.1
	.asciz	"gecos field"

l_.str.2:                               ; @.str.2
	.asciz	" ,\t:+&#%$^()!@~*?<>=|\\/\""

l_.str.3:                               ; @.str.3
	.asciz	"userid/group name"

l_.str.4:                               ; @.str.4
	.asciz	"`%c'"

l_.str.5:                               ; @.str.5
	.asciz	"0x%02x"

	.comm	_EX_DATAERR,4,2                 ; @EX_DATAERR
l_.str.6:                               ; @.str.6
	.asciz	"invalid character %s at position %td in %s"

	.comm	_LOGNAMESIZE,4,2                ; @LOGNAMESIZE
	.comm	_EX_USAGE,4,2                   ; @EX_USAGE
l_.str.7:                               ; @.str.7
	.asciz	"name too long `%s' (max is %d)"

.subsections_via_symbols
