	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_delegation
_do_delegation:                         ## @do_delegation
	.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, %r12
	movq	%r8, %r13
	movl	%edx, %r14d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %ebx
	movl	16(%rbp), %r15d
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%r12, %rdi
	callq	_krb5_data_zero
	leaq	-64(%rbp), %rdx
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_krb5_cc_get_principal
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	leaq	-72(%rbp), %rsi
	movq	-64(%rbp), %rax
	movl	(%rax), %edx
	movq	_KRB5_TGS_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	movl	%edx, %r8d
	xorl	%r9d, %r9d
	callq	_krb5_make_principal
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:
	notl	%r15d
	movq	24(%rbp), %rax
	andl	(%rax), %r15d
LBB0_6:
	movl	%r15d, (%rax)
	movq	-64(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movl	%ebx, %edi
	callq	_krb5_free_principal
LBB0_8:
	movq	-72(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:
	movl	%ebx, %edi
	callq	_krb5_free_principal
LBB0_10:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	$0, -56(%rbp)
	leaq	-112(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -112(%rbp)
	cmpl	$2, (%r13)
	jl	LBB0_5
## %bb.3:
	movups	-112(%rbp), %xmm0
	movups	-96(%rbp), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_KDCOptions2int
	movq	8(%r13), %rcx
	movl	4(%rcx), %r8d
	movq	%r12, (%rsp)
	leaq	-80(%rbp), %r9
	movl	%ebx, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_krb5_get_forwarded_creds
	testq	%rax, %rax
	jne	LBB0_4
LBB0_5:
	movq	24(%rbp), %rax
	orl	(%rax), %r15d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_KRB5_TGS_NAME,4,2              ## @KRB5_TGS_NAME
	.no_dead_strip	_do_delegation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_delegation
_do_delegation:                         ; @do_delegation
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x20, x7
	mov	x21, x6
	mov	x22, x5
	mov	x25, x4
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	add	x26, sp, #64
	add	x0, sp, #64
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x0, x22
	bl	_krb5_data_zero
	add	x2, x26, #16
	mov	x0, x19
	mov	x1, x23
	bl	_krb5_cc_get_principal
	cbnz	x0, LBB0_2
; %bb.1:
	add	x1, x26, #8
	ldr	x8, [sp, #80]
	ldr	w2, [x8]
Lloh0:
	adrp	x8, _KRB5_TGS_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KRB5_TGS_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x4, x2
	mov	x5, #0
	bl	_krb5_make_principal
	cbz	x0, LBB0_8
LBB0_2:
	ldr	w8, [x20]
	bic	w8, w8, w21
LBB0_3:
	str	w8, [x20]
	ldr	x1, [sp, #80]
	cbz	x1, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_krb5_free_principal
LBB0_5:
	ldr	x1, [sp, #72]
	cbz	x1, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_krb5_free_principal
LBB0_7:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_8:
	str	xzr, [sp, #88]
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	movi.2s	v0, #1
	str	d0, [sp, #32]
	ldr	w8, [x25]
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.9:
	ldp	q0, q1, [sp, #32]
	stp	q0, q1, [sp]
	mov	x0, sp
	bl	_KDCOptions2int
	mov	x3, x0
	ldr	x8, [x25, #8]
	ldr	w4, [x8, #4]
	add	x5, sp, #64
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	mov	x6, x22
	bl	_krb5_get_forwarded_creds
	cbnz	x0, LBB0_2
LBB0_10:
	ldr	w8, [x20]
	orr	w8, w8, w21
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KRB5_TGS_NAME,4,2              ; @KRB5_TGS_NAME
	.no_dead_strip	_do_delegation
.subsections_via_symbols
