	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kcm_op_add_ntlm_cred
_kcm_op_add_ntlm_cred:                  ## @kcm_op_add_ntlm_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r12
	movq	%rsi, %rbx
	movl	$1, %edi
	movl	$40, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_RAND_bytes
	leaq	32(%r15), %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_krb5_ret_stringz
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:
	leaq	28(%r15), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_krb5_ret_stringz
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:
	movq	%r15, %rsi
	addq	$24, %rsi
	movq	%r12, %rdi
	callq	_krb5_ret_data
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_5
LBB0_9:
	movq	%r15, %rdi
	callq	_free_cred
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_10:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r13), %edi
	movl	(%rbx), %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_find_ntlm_cred
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %r14
	movl	24(%rax), %eax
	movl	24(%r15), %ecx
	movl	%ecx, 24(%r14)
	movl	%eax, 24(%r15)
	movq	%r15, %rdi
	callq	_free_cred
	movq	%r14, %r15
	jmp	LBB0_8
LBB0_7:
	movq	_ntlm_head@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 16(%r15)
	movq	%r15, (%rax)
LBB0_8:
	movl	4(%rbx), %eax
	movl	%eax, 8(%r15)
	movl	(%rbx), %eax
	movl	%eax, 4(%r15)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_krb5_storage_write
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_ntlm_head,8,3                  ## @ntlm_head
	.no_dead_strip	_kcm_op_add_ntlm_cred
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kcm_op_add_ntlm_cred
_kcm_op_add_ntlm_cred:                  ; @kcm_op_add_ntlm_cred
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x4
	mov	x22, x3
	mov	x20, x1
	mov	w0, #1
	mov	w1, #40
	bl	_calloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	mov	x23, x0
	ldr	w0, [x23], #32
	mov	w1, #4
	bl	_RAND_bytes
	mov	x0, x22
	mov	x1, x23
	bl	_krb5_ret_stringz
	mov	x24, x0
	cbnz	x0, LBB0_4
; %bb.2:
	add	x25, x21, #28
	mov	x0, x22
	mov	x1, x25
	bl	_krb5_ret_stringz
	mov	x24, x0
	cbnz	x0, LBB0_4
; %bb.3:
	add	x1, x21, #24
	mov	x0, x22
	bl	_krb5_ret_data
	mov	x24, x0
	cbz	x0, LBB0_7
LBB0_4:
	mov	x0, x21
	bl	_free_cred
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
LBB0_6:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w0, [x23]
	ldr	w1, [x25]
	mov	x2, x20
	bl	_find_ntlm_cred
	cbz	x0, LBB0_9
; %bb.8:
	mov	x22, x0
	ldr	w8, [x0, #24]
	ldr	w9, [x21, #24]
	str	w9, [x0, #24]
	str	w8, [x21, #24]
	mov	x0, x21
	bl	_free_cred
	mov	x21, x22
	b	LBB0_10
LBB0_9:
Lloh3:
	adrp	x8, _ntlm_head@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ntlm_head@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x21, #16]
	str	x21, [x8]
LBB0_10:
	ldr	d0, [x20]
	stur	d0, [x21, #4]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #4
	bl	_krb5_storage_write
	mov	x24, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_ntlm_head,8,3                  ; @ntlm_head
	.no_dead_strip	_kcm_op_add_ntlm_cred
.subsections_via_symbols
