	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__krb5_get_default_principal_local ## -- Begin function _krb5_get_default_principal_local
	.p2align	4, 0x90
__krb5_get_default_principal_local:     ## @_krb5_get_default_principal_local
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	$0, (%rsi)
	xorl	%eax, %eax
	callq	_getuid
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	%rax, %rdi
	callq	_getpwuid
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	jne	LBB0_10
	jmp	LBB0_12
LBB0_1:
	xorl	%eax, %eax
	callq	_getlogin
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_get_env_user
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.14:
	leaq	L_.str(%rip), %r8
	movl	%r14d, %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_krb5_make_principal            ## TAILCALL
LBB0_7:
	xorl	%eax, %eax
	callq	_get_env_user
	testq	%rax, %rax
	je	LBB0_8
## %bb.13:
	movl	%r14d, %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movq	%rax, %rcx
	jmp	LBB0_11
LBB0_4:
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_10
LBB0_8:
	xorl	%eax, %eax
	callq	_getlogin
	movq	%rax, %rcx
	testq	%rcx, %rcx
	je	LBB0_12
LBB0_10:
	movl	%r14d, %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
LBB0_11:
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_krb5_make_principal            ## TAILCALL
LBB0_12:
	movq	_ENOTTY@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_N_
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_krb5_set_error_message
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"root"

	.comm	_ENOTTY,4,2                     ## @ENOTTY
L_.str.1:                               ## @.str.1
	.asciz	"unable to figure out current principal"

L_.str.2:                               ## @.str.2
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__krb5_get_default_principal_local ; -- Begin function _krb5_get_default_principal_local
	.p2align	2
__krb5_get_default_principal_local:     ; @_krb5_get_default_principal_local
	.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	x20, x1
	mov	x19, x0
	str	xzr, [x1]
	bl	_getuid
	cbz	x0, LBB0_3
; %bb.1:
	bl	_getpwuid
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x3, [x0]
	cbnz	x3, LBB0_11
	b	LBB0_12
LBB0_3:
	bl	_getlogin
	mov	x21, x0
	cbnz	x0, LBB0_5
; %bb.4:
	bl	_get_env_user
	mov	x21, x0
	cbz	x0, LBB0_9
LBB0_5:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.6:
Lloh2:
	adrp	x4, l_.str@PAGE
Lloh3:
	add	x4, x4, l_.str@PAGEOFF
	str	xzr, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	mov	x3, x21
	bl	_krb5_make_principal
	b	LBB0_13
LBB0_7:
	bl	_get_env_user
	cbz	x0, LBB0_10
; %bb.8:
	mov	x3, x0
	b	LBB0_11
LBB0_9:
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:
	bl	_getlogin
	mov	x3, x0
	cbz	x3, LBB0_12
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	mov	x4, #0
	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
	b	_krb5_make_principal
LBB0_12:
Lloh6:
	adrp	x21, _ENOTTY@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ENOTTY@GOTPAGEOFF]
	ldr	w20, [x21]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_N_
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_krb5_set_error_message
	ldr	w0, [x21]
LBB0_13:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"root"

	.comm	_ENOTTY,4,2                     ; @ENOTTY
l_.str.1:                               ; @.str.1
	.asciz	"unable to figure out current principal"

l_.str.2:                               ; @.str.2
	.space	1

.subsections_via_symbols
