	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_username                       ## -- Begin function username
	.p2align	4, 0x90
_username:                              ## @username
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_username.myname(%rip), %rax
	testq	%rax, %rax
	jne	LBB0_18
## %bb.1:
	xorl	%eax, %eax
	callq	_getlogin
	movq	%rax, _username.myname(%rip)
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	cmpb	$0, (%rax)
	je	LBB0_3
## %bb.6:
	movq	_RealUid@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movq	%rax, %rdi
	callq	_sm_getpwnam
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.8:
	cmpq	8(%rax), %rbx
	je	LBB0_10
LBB0_9:
	movq	%rbx, %rdi
	jmp	LBB0_4
LBB0_3:
	movq	_RealUid@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_4:
	callq	_sm_getpwuid
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	(%rax), %rdi
	movq	%rdi, _username.myname(%rip)
	testq	%rdi, %rdi
	jne	LBB0_12
	jmp	LBB0_13
LBB0_10:
	movq	_username.myname(%rip), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
LBB0_12:
	cmpb	$0, (%rdi)
	je	LBB0_13
## %bb.14:
	leaq	L_.str.2(%rip), %rsi
	callq	_strpbrk
	movq	_username.myname(%rip), %rdi
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	xorl	%esi, %esi
	callq	_addquotes
	jmp	LBB0_17
LBB0_13:
	leaq	L_.str(%rip), %rdi
	callq	_syserr
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	callq	_sm_pstrdup_x
LBB0_17:
	movq	%rax, _username.myname(%rip)
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_username.myname,8,3 ## @username.myname
	.comm	_RealUid,8,3                    ## @RealUid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"554 5.3.0 Who are you?"

L_.str.1:                               ## @.str.1
	.asciz	"postmaster"

L_.str.2:                               ## @.str.2
	.asciz	",;:/|\"\\"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_username                       ; -- Begin function username
	.p2align	2
_username:                              ; @username
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	adrp	x20, _username.myname@PAGE
	ldr	x0, [x20, _username.myname@PAGEOFF]
	cbnz	x0, LBB0_16
; %bb.1:
	bl	_getlogin
	str	x0, [x20, _username.myname@PAGEOFF]
	cbz	x0, LBB0_8
; %bb.2:
	ldrb	w8, [x0]
	cbz	w8, LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _RealUid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RealUid@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	bl	_sm_getpwnam
	cbz	x0, LBB0_6
; %bb.4:
	cbz	x19, LBB0_7
; %bb.5:
	ldr	x8, [x0, #8]
	cmp	x19, x8
	b.eq	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_sm_getpwuid
	cbnz	x0, LBB0_9
LBB0_7:
	ldr	x0, [x20, _username.myname@PAGEOFF]
	cbnz	x0, LBB0_10
	b	LBB0_13
LBB0_8:
Lloh3:
	adrp	x8, _RealUid@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RealUid@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	bl	_sm_getpwuid
	cbz	x0, LBB0_7
LBB0_9:
	ldr	x0, [x0]
	str	x0, [x20, _username.myname@PAGEOFF]
	cbz	x0, LBB0_13
LBB0_10:
	ldrb	w8, [x0]
	cbz	w8, LBB0_13
; %bb.11:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strpbrk
	mov	x8, x0
	ldr	x0, [x20, _username.myname@PAGEOFF]
	cbz	x8, LBB0_14
; %bb.12:
	mov	x1, #0
	bl	_addquotes
	b	LBB0_15
LBB0_13:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_syserr
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_14:
	bl	_sm_pstrdup_x
LBB0_15:
	str	x0, [x20, _username.myname@PAGEOFF]
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_username.myname,8,3 ; @username.myname
	.comm	_RealUid,8,3                    ; @RealUid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"554 5.3.0 Who are you?"

l_.str.1:                               ; @.str.1
	.asciz	"postmaster"

l_.str.2:                               ; @.str.2
	.asciz	",;:/|\"\\"

.subsections_via_symbols
