	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_memory_keytab
_test_memory_keytab:                    ## @test_memory_keytab
	.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	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movl	%edi, %ebx
	leaq	-36(%rbp), %rdx
	callq	_krb5_kt_resolve
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rcx
	movl	%ebx, %edi
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_2:
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	leaq	-48(%rbp), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	callq	_krb5_parse_name
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rcx
	movl	%ebx, %edi
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_4:
	movl	$1, -56(%rbp)
	movq	_ETYPE_AES256_CTS_HMAC_SHA1_96@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-52(%rbp), %rdx
	movl	%ebx, %edi
	callq	_krb5_generate_random_keyblock
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rcx
	movl	%ebx, %edi
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_6:
	movl	-36(%rbp), %esi
	leaq	-56(%rbp), %rdx
	movl	%ebx, %edi
	callq	_krb5_kt_add_entry
	leaq	-60(%rbp), %rdx
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_krb5_kt_resolve
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rcx
	movl	%ebx, %edi
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_8:
	movl	-36(%rbp), %esi
	movl	-48(%rbp), %edx
	movl	(%r12), %r8d
	leaq	-88(%rbp), %r9
	movl	%ebx, %edi
	xorl	%ecx, %ecx
	callq	_krb5_kt_get_entry
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rcx
	movl	%ebx, %edi
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_10:
	leaq	-88(%rbp), %rsi
	movl	%ebx, %edi
	callq	_krb5_kt_free_entry
	movl	-36(%rbp), %esi
	movl	%ebx, %edi
	callq	_krb5_kt_close
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rcx
	movl	%ebx, %edi
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_12:
	movl	-60(%rbp), %esi
	movl	-48(%rbp), %edx
	movl	(%r12), %r8d
	leaq	-88(%rbp), %r9
	movl	%ebx, %edi
	xorl	%ecx, %ecx
	callq	_krb5_kt_get_entry
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rcx
	movl	%ebx, %edi
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_14:
	leaq	-88(%rbp), %rsi
	movl	%ebx, %edi
	callq	_krb5_kt_free_entry
	movl	-60(%rbp), %esi
	movl	%ebx, %edi
	callq	_krb5_kt_close
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.5(%rip), %rcx
	movl	%ebx, %edi
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_16:
	leaq	-40(%rbp), %rdx
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_krb5_kt_resolve
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_.str(%rip), %rcx
	movl	%ebx, %edi
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_18:
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	leaq	-64(%rbp), %rdx
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edi
	callq	_krb5_parse_name
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	leaq	L_.str.2(%rip), %rcx
	movl	%ebx, %edi
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_20:
	movl	$1, -72(%rbp)
	movl	(%r12), %esi
	leaq	-68(%rbp), %r15
	movl	%ebx, %edi
	movq	%r15, %rdx
	callq	_krb5_generate_random_keyblock
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	leaq	L_.str.3(%rip), %rcx
	movl	%ebx, %edi
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_22:
	movl	-40(%rbp), %esi
	leaq	-72(%rbp), %rdx
	movl	%ebx, %edi
	callq	_krb5_kt_add_entry
	leaq	-36(%rbp), %rdx
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_krb5_kt_resolve
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	leaq	L_.str(%rip), %rcx
	movl	%ebx, %edi
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_24:
	movl	-36(%rbp), %esi
	movl	-48(%rbp), %edx
	movl	(%r12), %r8d
	leaq	-88(%rbp), %r9
	movl	%ebx, %edi
	xorl	%ecx, %ecx
	callq	_krb5_kt_get_entry
	testq	%rax, %rax
	jne	LBB0_26
## %bb.25:
	leaq	L_.str.7(%rip), %rdx
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_krb5_errx
LBB0_26:
	movl	-36(%rbp), %esi
	leaq	-56(%rbp), %rdx
	movl	%ebx, %edi
	callq	_krb5_kt_remove_entry
	movl	-36(%rbp), %esi
	movl	%ebx, %edi
	callq	_krb5_kt_close
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	leaq	L_.str.5(%rip), %rcx
	movl	%ebx, %edi
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_28:
	leaq	-56(%rbp), %rsi
	movl	%ebx, %edi
	callq	_krb5_kt_free_entry
	movl	-40(%rbp), %esi
	leaq	-72(%rbp), %rdx
	movl	%ebx, %edi
	callq	_krb5_kt_remove_entry
	movl	-40(%rbp), %esi
	movl	%ebx, %edi
	callq	_krb5_kt_close
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	leaq	L_.str.5(%rip), %rcx
	movl	%ebx, %edi
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_30:
	movl	-64(%rbp), %esi
	movl	%ebx, %edi
	callq	_krb5_free_principal
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_krb5_free_keyblock_contents
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"krb5_kt_resolve"

L_.str.1:                               ## @.str.1
	.asciz	"lha@SU.SE"

L_.str.2:                               ## @.str.2
	.asciz	"krb5_parse_name"

	.comm	_ETYPE_AES256_CTS_HMAC_SHA1_96,4,2 ## @ETYPE_AES256_CTS_HMAC_SHA1_96
L_.str.3:                               ## @.str.3
	.asciz	"krb5_generate_random_keyblock"

L_.str.4:                               ## @.str.4
	.asciz	"krb5_kt_get_entry"

L_.str.5:                               ## @.str.5
	.asciz	"krb5_kt_close"

L_.str.6:                               ## @.str.6
	.asciz	"lha3@SU.SE"

L_.str.7:                               ## @.str.7
	.asciz	"krb5_kt_get_entry when if should fail"

	.no_dead_strip	_test_memory_keytab
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_memory_keytab
_test_memory_keytab:                    ; @test_memory_keytab
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	sub	x2, x29, #52
	bl	_krb5_kt_resolve
	cbz	x0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_krb5_err
LBB0_2:
	add	x23, sp, #40
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	add	x2, x23, #8
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_krb5_parse_name
	cbz	x0, LBB0_4
; %bb.3:
	mov	x2, x0
Lloh4:
	adrp	x3, l_.str.2@PAGE
Lloh5:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_krb5_err
LBB0_4:
	mov	w8, #1
	str	w8, [sp, #40]
Lloh6:
	adrp	x22, _ETYPE_AES256_CTS_HMAC_SHA1_96@GOTPAGE
Lloh7:
	ldr	x22, [x22, _ETYPE_AES256_CTS_HMAC_SHA1_96@GOTPAGEOFF]
	ldr	w1, [x22]
	orr	x2, x23, #0x4
	mov	x0, x19
	bl	_krb5_generate_random_keyblock
	cbz	x0, LBB0_6
; %bb.5:
	mov	x2, x0
Lloh8:
	adrp	x3, l_.str.3@PAGE
Lloh9:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_krb5_err
LBB0_6:
	ldur	w1, [x29, #-52]
	add	x2, sp, #40
	mov	x0, x19
	bl	_krb5_kt_add_entry
	add	x2, sp, #56
	mov	x0, x19
	mov	x1, x20
	bl	_krb5_kt_resolve
	cbz	x0, LBB0_8
; %bb.7:
	mov	x2, x0
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_krb5_err
LBB0_8:
	ldur	w1, [x29, #-52]
	ldr	w2, [sp, #48]
	ldr	w4, [x22]
	add	x5, sp, #24
	mov	x0, x19
	mov	w3, #0
	bl	_krb5_kt_get_entry
	cbz	x0, LBB0_10
; %bb.9:
	mov	x2, x0
Lloh12:
	adrp	x3, l_.str.4@PAGE
Lloh13:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_krb5_err
LBB0_10:
	add	x1, sp, #24
	mov	x0, x19
	bl	_krb5_kt_free_entry
	ldur	w1, [x29, #-52]
	mov	x0, x19
	bl	_krb5_kt_close
	cbz	x0, LBB0_12
; %bb.11:
	mov	x2, x0
Lloh14:
	adrp	x3, l_.str.5@PAGE
Lloh15:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_krb5_err
LBB0_12:
	ldr	w1, [sp, #56]
	ldr	w2, [sp, #48]
	ldr	w4, [x22]
	add	x5, sp, #24
	mov	x0, x19
	mov	w3, #0
	bl	_krb5_kt_get_entry
	cbz	x0, LBB0_14
; %bb.13:
	mov	x2, x0
Lloh16:
	adrp	x3, l_.str.4@PAGE
Lloh17:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_krb5_err
LBB0_14:
	add	x1, sp, #24
	mov	x0, x19
	bl	_krb5_kt_free_entry
	ldr	w1, [sp, #56]
	mov	x0, x19
	bl	_krb5_kt_close
	cbz	x0, LBB0_16
; %bb.15:
	mov	x2, x0
Lloh18:
	adrp	x3, l_.str.5@PAGE
Lloh19:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_krb5_err
LBB0_16:
	add	x2, sp, #52
	mov	x0, x19
	mov	x1, x21
	bl	_krb5_kt_resolve
	cbz	x0, LBB0_18
; %bb.17:
	mov	x2, x0
Lloh20:
	adrp	x3, l_.str@PAGE
Lloh21:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_krb5_err
LBB0_18:
	add	x21, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	add	x2, x21, #8
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_krb5_parse_name
	cbz	x0, LBB0_20
; %bb.19:
	mov	x2, x0
Lloh24:
	adrp	x3, l_.str.2@PAGE
Lloh25:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_krb5_err
LBB0_20:
	mov	w8, #1
	str	w8, [sp, #8]
	ldr	w1, [x22]
	orr	x21, x21, #0x4
	mov	x0, x19
	mov	x2, x21
	bl	_krb5_generate_random_keyblock
	cbz	x0, LBB0_22
; %bb.21:
	mov	x2, x0
Lloh26:
	adrp	x3, l_.str.3@PAGE
Lloh27:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_krb5_err
LBB0_22:
	ldr	w1, [sp, #52]
	add	x2, sp, #8
	mov	x0, x19
	bl	_krb5_kt_add_entry
	sub	x2, x29, #52
	mov	x0, x19
	mov	x1, x20
	bl	_krb5_kt_resolve
	cbz	x0, LBB0_24
; %bb.23:
	mov	x2, x0
Lloh28:
	adrp	x3, l_.str@PAGE
Lloh29:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_krb5_err
LBB0_24:
	ldur	w1, [x29, #-52]
	ldr	w2, [sp, #48]
	ldr	w4, [x22]
	add	x5, sp, #24
	mov	x0, x19
	mov	w3, #0
	bl	_krb5_kt_get_entry
	cbnz	x0, LBB0_26
; %bb.25:
Lloh30:
	adrp	x2, l_.str.7@PAGE
Lloh31:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_krb5_errx
LBB0_26:
	ldur	w1, [x29, #-52]
	add	x2, sp, #40
	mov	x0, x19
	bl	_krb5_kt_remove_entry
	ldur	w1, [x29, #-52]
	mov	x0, x19
	bl	_krb5_kt_close
	cbz	x0, LBB0_28
; %bb.27:
	mov	x2, x0
Lloh32:
	adrp	x3, l_.str.5@PAGE
Lloh33:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_krb5_err
LBB0_28:
	add	x1, sp, #40
	mov	x0, x19
	bl	_krb5_kt_free_entry
	ldr	w1, [sp, #52]
	add	x2, sp, #8
	mov	x0, x19
	bl	_krb5_kt_remove_entry
	ldr	w1, [sp, #52]
	mov	x0, x19
	bl	_krb5_kt_close
	cbz	x0, LBB0_30
; %bb.29:
	mov	x2, x0
Lloh34:
	adrp	x3, l_.str.5@PAGE
Lloh35:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_krb5_err
LBB0_30:
	ldr	w1, [sp, #16]
	mov	x0, x19
	bl	_krb5_free_principal
	mov	x0, x19
	mov	x1, x21
	bl	_krb5_free_keyblock_contents
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"krb5_kt_resolve"

l_.str.1:                               ; @.str.1
	.asciz	"lha@SU.SE"

l_.str.2:                               ; @.str.2
	.asciz	"krb5_parse_name"

	.comm	_ETYPE_AES256_CTS_HMAC_SHA1_96,4,2 ; @ETYPE_AES256_CTS_HMAC_SHA1_96
l_.str.3:                               ; @.str.3
	.asciz	"krb5_generate_random_keyblock"

l_.str.4:                               ; @.str.4
	.asciz	"krb5_kt_get_entry"

l_.str.5:                               ; @.str.5
	.asciz	"krb5_kt_close"

l_.str.6:                               ; @.str.6
	.asciz	"lha3@SU.SE"

l_.str.7:                               ; @.str.7
	.asciz	"krb5_kt_get_entry when if should fail"

	.no_dead_strip	_test_memory_keytab
.subsections_via_symbols
