	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_user_name                  ## -- Begin function get_user_name
	.p2align	4, 0x90
_get_user_name:                         ## @get_user_name
	.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
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_geteuid
	movq	%rax, %r12
	movq	$0, (%r14)
	movq	_errno@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	movq	%rax, %rdi
	callq	_getpwuid
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	(%rax), %rbx
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %r15d
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_strerror
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	__
LBB0_4:
	movl	%eax, %edx
	xorl	%ebx, %ebx
	movl	%r15d, %edi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_psprintf
	movq	%rax, (%r14)
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not look up effective user ID %ld: %s"

L_.str.1:                               ## @.str.1
	.asciz	"user does not exist"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_user_name                  ; -- Begin function get_user_name
	.p2align	2
_get_user_name:                         ; @get_user_name
	.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
	bl	_geteuid
	mov	x20, x0
	str	xzr, [x19]
Lloh0:
	adrp	x22, _errno@GOTPAGE
Lloh1:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	str	xzr, [x22]
	bl	_getpwuid
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x0]
	b	LBB0_6
LBB0_2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x21, x0
	ldr	x0, [x22]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_strerror
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
LBB0_5:
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x21
	mov	x1, x20
	bl	_psprintf
	mov	x8, x0
	mov	x0, #0
	str	x8, [x19]
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not look up effective user ID %ld: %s"

l_.str.1:                               ; @.str.1
	.asciz	"user does not exist"

.subsections_via_symbols
