	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_username
_find_username:                         ## @find_username
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	callq	_getlogin
	testq	%rax, %rax
	je	LBB0_1
LBB0_5:
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rdi
	cmovneq	%rax, %rdi
	popq	%rbp
	jmp	_xstrdup                        ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
	callq	_getuid
	movl	%eax, %edi
	callq	_getpwuid
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"USER"

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

L_.str.2:                               ## @.str.2
	.asciz	"root"

	.no_dead_strip	_find_username
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_username
_find_username:                         ; @find_username
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_getlogin
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, l_.str.2@PAGE
Lloh1:
	add	x8, x8, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x0, x8, x0, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_xstrdup
LBB0_2:
	bl	_getuid
	bl	_getpwuid
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x0]
	cbnz	x0, LBB0_1
LBB0_4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbnz	x0, LBB0_1
; %bb.5:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"USER"

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

l_.str.2:                               ; @.str.2
	.asciz	"root"

	.no_dead_strip	_find_username
.subsections_via_symbols
