	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__kafs_get_cred                 ## -- Begin function _kafs_get_cred
	.p2align	4, 0x90
__kafs_get_cred:                        ## @_kafs_get_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movl	%r8d, %r14d
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	movq	%rdx, %r13
	movq	%r12, %rdx
	movq	_AUTH_SUPERUSER@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	movq	%r13, %rcx
	movl	%r14d, %r8d
	movq	%rbx, %r9
	callq	__kafs_try_get_cred
	testl	%eax, %eax
	je	LBB0_13
## %bb.2:
	movl	(%r12), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movq	%r13, %rcx
	movl	%r14d, %r8d
	movq	%rbx, %r9
	callq	__kafs_try_get_cred
	xorl	%ecx, %ecx
	testl	%eax, %eax
	movq	-128(%rbp), %r12                ## 8-byte Reload
	je	LBB0_14
LBB0_3:
	leaq	-112(%rbp), %rdi
	movq	%r12, %rsi
	callq	__kafs_foldup
	movq	_AUTH_SUPERUSER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	movq	-136(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rcx
	movl	%r14d, %r8d
	movq	%rbx, %r9
	callq	__kafs_try_get_cred
	testl	%eax, %eax
	je	LBB0_13
## %bb.4:
	leaq	-112(%rbp), %rdi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	movq	_AUTH_SUPERUSER@GOTPCREL(%rip), %r13
	jne	LBB0_6
## %bb.5:
	movl	(%r13), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movl	%r14d, %r8d
	movq	%rbx, %r9
	callq	__kafs_try_get_cred
	xorl	%ecx, %ecx
	testl	%eax, %eax
	je	LBB0_14
LBB0_6:
	movl	(%r13), %esi
	leaq	-112(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	%r14d, %r8d
	movq	%rbx, %r9
	callq	__kafs_try_get_cred
	testl	%eax, %eax
	je	LBB0_13
## %bb.7:
	movl	(%r13), %esi
	leaq	-112(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rdx
	movl	%r14d, %r8d
	movq	%rbx, %r9
	callq	__kafs_try_get_cred
	testl	%eax, %eax
	je	LBB0_13
## %bb.8:
	movl	%eax, -128(%rbp)                ## 4-byte Spill
	leaq	-120(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	__kafs_realm_of_cell
	testq	%rax, %rax
	je	LBB0_16
LBB0_9:
	movl	-128(%rbp), %eax                ## 4-byte Reload
	movl	%eax, %ecx
	jmp	LBB0_14
LBB0_16:
	movq	-120(%rbp), %rdi
	movq	-136(%rbp), %rsi                ## 8-byte Reload
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.17:
	movq	-120(%rbp), %rdi
	leaq	-112(%rbp), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.18:
	movl	(%r13), %esi
	movq	-120(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rdx
	movl	%r14d, %r8d
	movq	%rbx, %r9
	callq	__kafs_try_get_cred
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	(%r13), %esi
	movq	-120(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	%r14d, %r8d
	movq	%rbx, %r9
	callq	__kafs_try_get_cred
	movl	%eax, %ebx
	movq	-120(%rbp), %rdi
	callq	_free
	xorl	%ecx, %ecx
	movl	%ebx, -128(%rbp)                ## 4-byte Spill
	testl	%ebx, %ebx
	jne	LBB0_9
	jmp	LBB0_14
LBB0_20:
	movq	-120(%rbp), %rdi
	callq	_free
LBB0_13:
	xorl	%ecx, %ecx
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.15:
	movl	%ecx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTH_SUPERUSER,4,2             ## @AUTH_SUPERUSER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__kafs_get_cred                 ; -- Begin function _kafs_get_cred
	.p2align	2
__kafs_get_cred:                        ; @_kafs_get_cred
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x20, x4
	mov	x23, x3
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
Lloh3:
	adrp	x25, _AUTH_SUPERUSER@GOTPAGE
Lloh4:
	ldr	x25, [x25, _AUTH_SUPERUSER@GOTPAGEOFF]
	cbz	x2, LBB0_3
; %bb.1:
	mov	x24, x2
	ldr	w1, [x25]
	mov	x0, x21
	mov	x2, x22
	mov	x3, x24
	mov	x4, x20
	mov	x5, x19
	bl	__kafs_try_get_cred
	cbz	w0, LBB0_14
; %bb.2:
	ldr	w1, [x25]
	mov	x0, x21
	mov	x2, #0
	mov	x3, x24
	mov	x4, x20
	mov	x5, x19
	bl	__kafs_try_get_cred
	cbz	w0, LBB0_14
LBB0_3:
	add	x0, sp, #8
	mov	x1, x22
	bl	__kafs_foldup
	ldr	w1, [x25]
	mov	x0, x21
	mov	x2, x22
	mov	x3, x23
	mov	x4, x20
	mov	x5, x19
	bl	__kafs_try_get_cred
	cbz	w0, LBB0_14
; %bb.4:
	add	x0, sp, #8
	mov	x1, x23
	bl	_strcmp
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	w1, [x25]
	mov	x0, x21
	mov	x2, #0
	mov	x3, x23
	mov	x4, x20
	mov	x5, x19
	bl	__kafs_try_get_cred
	cbz	w0, LBB0_14
LBB0_6:
	ldr	w1, [x25]
	add	x3, sp, #8
	mov	x0, x21
	mov	x2, #0
	mov	x4, x20
	mov	x5, x19
	bl	__kafs_try_get_cred
	cbz	w0, LBB0_14
; %bb.7:
	ldr	w1, [x25]
	add	x3, sp, #8
	mov	x0, x21
	mov	x2, x22
	mov	x4, x20
	mov	x5, x19
	bl	__kafs_try_get_cred
	mov	x24, x0
	cbz	w0, LBB0_15
; %bb.8:
	mov	x2, sp
	mov	x0, x21
	mov	x1, x22
	bl	__kafs_realm_of_cell
	cbnz	x0, LBB0_15
; %bb.9:
	ldr	x0, [sp]
	mov	x1, x23
	bl	_strcmp
	cbz	x0, LBB0_15
; %bb.10:
	ldr	x0, [sp]
	add	x1, sp, #8
	bl	_strcmp
	cbz	x0, LBB0_15
; %bb.11:
	ldr	w1, [x25]
	ldr	x3, [sp]
	mov	x0, x21
	mov	x2, x22
	mov	x4, x20
	mov	x5, x19
	bl	__kafs_try_get_cred
	cbz	w0, LBB0_13
; %bb.12:
	ldr	w1, [x25]
	ldr	x3, [sp]
	mov	x0, x21
	mov	x2, #0
	mov	x4, x20
	mov	x5, x19
	bl	__kafs_try_get_cred
	mov	x24, x0
	ldr	x0, [sp]
	bl	_free
	b	LBB0_15
LBB0_13:
	ldr	x0, [sp]
	bl	_free
LBB0_14:
	mov	w24, #0
LBB0_15:
	ldr	x8, [sp, #72]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x24
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTH_SUPERUSER,4,2             ; @AUTH_SUPERUSER
.subsections_via_symbols
