	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gssd_get_user_cred
_gssd_get_user_cred:                    ## @gssd_get_user_cred
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movl	%esi, %edi
	callq	_getpwuid
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	callq	_gss_create_empty_oid_set
	movq	%rax, %rbx
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_8
## %bb.3:
	movq	_GSS_KRB5_MECH_OID_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_gss_add_oid_set_member
	cmpq	(%r13), %rax
	jne	LBB0_4
## %bb.5:
	movq	(%r12), %rdi
	movq	%rdi, -64(%rbp)
	callq	_strlen
	movl	%eax, -72(%rbp)
	movq	_GSS_C_NT_USER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-72(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	callq	_gss_import_name
	cmpq	(%r13), %rax
	jne	LBB0_4
## %bb.6:
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %ecx
	movq	_GSS_C_INITIATE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movq	%r15, %rdi
	xorl	%edx, %edx
	movq	%r14, %r9
	callq	_gss_acquire_cred
	movq	%rax, %rbx
	leaq	-56(%rbp), %r14
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_gss_release_name
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	jmp	LBB0_7
LBB0_1:
	movq	$0, (%r15)
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_8
LBB0_4:
	movq	%rax, %rbx
	leaq	-56(%rbp), %rdi
	leaq	-44(%rbp), %rsi
LBB0_7:
	callq	_gss_release_oid_set
LBB0_8:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GSS_S_FAILURE,8,3              ## @GSS_S_FAILURE
	.comm	_GSS_S_COMPLETE,8,3             ## @GSS_S_COMPLETE
	.comm	_GSS_KRB5_MECH_OID_X,4,2        ## @GSS_KRB5_MECH_OID_X
	.comm	_GSS_C_NT_USER_NAME,4,2         ## @GSS_C_NT_USER_NAME
	.comm	_GSS_C_INITIATE,4,2             ## @GSS_C_INITIATE
	.no_dead_strip	_gssd_get_user_cred
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gssd_get_user_cred
_gssd_get_user_cred:                    ; @gssd_get_user_cred
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x0
	mov	x0, x1
	bl	_getpwuid
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	add	x1, sp, #12
	mov	x0, x20
	bl	_gss_create_empty_oid_set
	mov	x21, x0
Lloh0:
	adrp	x23, _GSS_S_COMPLETE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GSS_S_COMPLETE@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.2:
Lloh2:
	adrp	x8, _GSS_KRB5_MECH_OID_X@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GSS_KRB5_MECH_OID_X@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_gss_add_oid_set_member
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	ldr	x0, [x22]
	str	x0, [sp, #40]
	bl	_strlen
	str	w0, [sp, #32]
Lloh5:
	adrp	x8, _GSS_C_NT_USER_NAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GSS_C_NT_USER_NAME@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x1, sp, #32
	add	x3, sp, #28
	mov	x0, x20
	bl	_gss_import_name
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.4:
	ldr	w1, [sp, #28]
	ldr	w3, [sp, #12]
Lloh8:
	adrp	x8, _GSS_C_INITIATE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GSS_C_INITIATE@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	mov	x0, x20
	mov	w2, #0
	mov	x5, x19
	mov	x6, #0
	mov	x7, #0
	bl	_gss_acquire_cred
	mov	x21, x0
	add	x0, sp, #16
	add	x1, sp, #28
	bl	_gss_release_name
	b	LBB0_7
LBB0_5:
	str	xzr, [x20]
Lloh11:
	adrp	x8, _GSS_S_FAILURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GSS_S_FAILURE@GOTPAGEOFF]
Lloh13:
	ldr	x21, [x8]
	b	LBB0_8
LBB0_6:
	mov	x21, x0
LBB0_7:
	add	x0, sp, #16
	add	x1, sp, #12
	bl	_gss_release_oid_set
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GSS_S_FAILURE,8,3              ; @GSS_S_FAILURE
	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
	.comm	_GSS_KRB5_MECH_OID_X,4,2        ; @GSS_KRB5_MECH_OID_X
	.comm	_GSS_C_NT_USER_NAME,4,2         ; @GSS_C_NT_USER_NAME
	.comm	_GSS_C_INITIATE,4,2             ; @GSS_C_INITIATE
	.no_dead_strip	_gssd_get_user_cred
.subsections_via_symbols
