	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function krb5_kt_store_principal
_krb5_kt_store_principal:               ## @krb5_kt_store_principal
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	_KRB5_STORAGE_PRINCIPAL_WRONG_NUM_COMPONENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_krb5_storage_is_flags
	movl	8(%r15), %esi
	cmpq	$1, %rax
	sbbl	$-1, %esi
	movq	%r14, %rdi
	callq	_krb5_store_int16
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movl	24(%r15), %esi
	movq	%r14, %rdi
	callq	_krb5_kt_store_string
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	cmpl	$0, 8(%r15)
	je	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_krb5_kt_store_string
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	8(%r15), %rax
	cmpq	%rax, %rbx
	jb	LBB0_5
LBB0_6:
	movq	_KRB5_STORAGE_PRINCIPAL_NO_NAME_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_krb5_storage_is_flags
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_krb5_store_int32
	testl	%eax, %eax
	jne	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KRB5_STORAGE_PRINCIPAL_WRONG_NUM_COMPONENTS,4,2 ## @KRB5_STORAGE_PRINCIPAL_WRONG_NUM_COMPONENTS
	.comm	_KRB5_STORAGE_PRINCIPAL_NO_NAME_TYPE,4,2 ## @KRB5_STORAGE_PRINCIPAL_NO_NAME_TYPE
	.no_dead_strip	_krb5_kt_store_principal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function krb5_kt_store_principal
_krb5_kt_store_principal:               ; @krb5_kt_store_principal
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _KRB5_STORAGE_PRINCIPAL_WRONG_NUM_COMPONENTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KRB5_STORAGE_PRINCIPAL_WRONG_NUM_COMPONENTS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_krb5_storage_is_flags
	cmp	x0, #0
	ldr	w8, [x20, #8]
	cinc	w1, w8, ne
	mov	x0, x19
	bl	_krb5_store_int16
	cbnz	w0, LBB0_9
; %bb.1:
	ldr	w1, [x20, #24]
	mov	x0, x19
	bl	_krb5_kt_store_string
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_6
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x19
	bl	_krb5_kt_store_string
	cbnz	w0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20, #8]
	cmp	x21, x8
	b.lo	LBB0_4
LBB0_6:
Lloh3:
	adrp	x8, _KRB5_STORAGE_PRINCIPAL_NO_NAME_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KRB5_STORAGE_PRINCIPAL_NO_NAME_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_krb5_storage_is_flags
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_krb5_store_int32
	cbnz	w0, LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_KRB5_STORAGE_PRINCIPAL_WRONG_NUM_COMPONENTS,4,2 ; @KRB5_STORAGE_PRINCIPAL_WRONG_NUM_COMPONENTS
	.comm	_KRB5_STORAGE_PRINCIPAL_NO_NAME_TYPE,4,2 ; @KRB5_STORAGE_PRINCIPAL_NO_NAME_TYPE
	.no_dead_strip	_krb5_kt_store_principal
.subsections_via_symbols
