	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kcm_op_set_default_cache
_kcm_op_set_default_cache:              ## @kcm_op_set_default_cache
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	movl	%edi, %r15d
	leaq	-40(%rbp), %rsi
	movq	%rcx, %rdi
	callq	_krb5_ret_stringz
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	movq	-40(%rbp), %rcx
	movl	%r15d, %edi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_KCM_LOG_REQUEST_NAME
	movq	_default_caches@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%rbx), %esi
	movl	20(%rbx), %edx
	movq	%r12, %rdi
	callq	_kcm_is_same_session
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
LBB0_5:
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movl	4(%r12), %eax
	movl	%eax, 20(%r14)
	movl	(%r12), %eax
	movl	%eax, 16(%r14)
	movq	-40(%rbp), %rdi
	callq	_strdup
	movq	%rax, (%r14)
	movq	(%r15), %rax
	movq	%rax, 8(%r14)
	movq	%r14, (%r15)
	jmp	LBB0_9
LBB0_8:
	movq	(%rbx), %rdi
	callq	_free
	movq	-40(%rbp), %rdi
	callq	_strdup
	movq	%rax, (%rbx)
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_default_caches,8,3             ## @default_caches
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.no_dead_strip	_kcm_op_set_default_cache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kcm_op_set_default_cache
_kcm_op_set_default_cache:              ; @kcm_op_set_default_cache
	.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, x2
	mov	x19, x1
	mov	x21, x0
	add	x1, sp, #8
	mov	x0, x3
	bl	_krb5_ret_stringz
	cbnz	x0, LBB0_8
; %bb.1:
	ldr	x3, [sp, #8]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_KCM_LOG_REQUEST_NAME
Lloh0:
	adrp	x21, _default_caches@GOTPAGE
Lloh1:
	ldr	x21, [x21, _default_caches@GOTPAGEOFF]
	ldr	x20, [x21]
	cbz	x20, LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w1, w2, [x20, #16]
	mov	x0, x19
	bl	_kcm_is_same_session
	cbnz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x20, [x20, #8]
	cbnz	x20, LBB0_2
LBB0_4:
	mov	w0, #24
	bl	_malloc
	cbz	x0, LBB0_7
; %bb.5:
	mov	x20, x0
	ldr	d0, [x19]
	str	d0, [x0, #16]
	ldr	x0, [sp, #8]
	bl	_strdup
	mov	x8, x0
	mov	x0, #0
	str	x8, [x20]
	ldr	x8, [x21]
	str	x8, [x20, #8]
	str	x20, [x21]
	b	LBB0_8
LBB0_6:
	ldr	x0, [x20]
	bl	_free
	ldr	x0, [sp, #8]
	bl	_strdup
	mov	x8, x0
	mov	x0, #0
	str	x8, [x20]
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
LBB0_8:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_default_caches,8,3             ; @default_caches
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.no_dead_strip	_kcm_op_set_default_cache
.subsections_via_symbols
