	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getpwuid                       ## -- Begin function getpwuid
	.p2align	4, 0x90
_getpwuid:                              ## @getpwuid
	.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
	subq	$424, %rsp                      ## imm = 0x1A8
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	cmpb	$1, _getpwuid.initialized(%rip)
	jne	LBB0_2
## %bb.1:
	movq	_getpwuid.p(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	leaq	-416(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -420(%rbp)
	leaq	-420(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_GetUserNameW
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	_getpwuid.user_name(%rip), %rbx
	leaq	-416(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$100, %edx
	callq	_xwcstoutf
	testq	%rax, %rax
	js	LBB0_3
## %bb.5:
	movl	$24, %edi
	callq	_xmalloc
	movq	%rax, _getpwuid.p(%rip)
	movq	%rbx, (%rax)
	movq	_NameDisplay@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_extended_user_info
	testq	%rax, %rax
	leaq	L_.str(%rip), %rcx
	cmovneq	%rax, %rcx
	movq	_getpwuid.p(%rip), %rax
	movq	%rcx, 8(%rax)
	movq	$0, 16(%rax)
	movb	$1, _getpwuid.initialized(%rip)
	jmp	LBB0_6
LBB0_3:
	movb	$1, _getpwuid.initialized(%rip)
	xorl	%eax, %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$424, %rsp                      ## imm = 0x1A8
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_getpwuid.initialized,1,2 ## @getpwuid.initialized
.zerofill __DATA,__bss,_getpwuid.user_name,100,4 ## @getpwuid.user_name
.zerofill __DATA,__bss,_getpwuid.p,8,3  ## @getpwuid.p
	.comm	_NameDisplay,4,2                ## @NameDisplay
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getpwuid                       ; -- Begin function getpwuid
	.p2align	2
_getpwuid:                              ; @getpwuid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #464
	.cfi_def_cfa_offset 464
	stp	x22, x21, [sp, #416]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #432]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #448]            ; 16-byte Folded Spill
	add	x29, sp, #448
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	adrp	x20, _getpwuid.initialized@PAGE
	ldrb	w8, [x20, _getpwuid.initialized@PAGEOFF]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _getpwuid.p@PAGE
Lloh4:
	ldr	x0, [x8, _getpwuid.p@PAGEOFF]
	b	LBB0_7
LBB0_2:
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	str	w0, [sp, #4]
	add	x0, sp, #8
	add	x1, sp, #4
	bl	_GetUserNameW
	cbz	w0, LBB0_5
; %bb.3:
Lloh5:
	adrp	x19, _getpwuid.user_name@PAGE
Lloh6:
	add	x19, x19, _getpwuid.user_name@PAGEOFF
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #100
	bl	_xwcstoutf
	tbnz	x0, #63, LBB0_5
; %bb.4:
	mov	w0, #24
	bl	_xmalloc
	adrp	x21, _getpwuid.p@PAGE
	str	x0, [x21, _getpwuid.p@PAGEOFF]
	str	x19, [x0]
Lloh7:
	adrp	x8, _NameDisplay@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NameDisplay@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_get_extended_user_info
	mov	x8, x0
	ldr	x0, [x21, _getpwuid.p@PAGEOFF]
Lloh10:
	adrp	x9, l_.str@PAGE
Lloh11:
	add	x9, x9, l_.str@PAGEOFF
	cmp	x8, #0
	csel	x8, x9, x8, eq
	stp	x8, xzr, [x0, #8]
	b	LBB0_6
LBB0_5:
	mov	x0, #0
LBB0_6:
	mov	w8, #1
	strb	w8, [x20, _getpwuid.initialized@PAGEOFF]
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #448]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #432]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #416]            ; 16-byte Folded Reload
	add	sp, sp, #464
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_getpwuid.initialized,1,2 ; @getpwuid.initialized
.zerofill __DATA,__bss,_getpwuid.user_name,100,0 ; @getpwuid.user_name
.zerofill __DATA,__bss,_getpwuid.p,8,3  ; @getpwuid.p
	.comm	_NameDisplay,4,2                ; @NameDisplay
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown"

.subsections_via_symbols
