	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kadm5_c_modify_principal       ## -- Begin function kadm5_c_modify_principal
	.p2align	4, 0x90
_kadm5_c_modify_principal:              ## @kadm5_c_modify_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	__kadm5_connect
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rax
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_krb5_storage_from_mem
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r13
	movq	_kadm_modify@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_krb5_store_int32
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_kadm5_store_principal_ent
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_krb5_store_int32
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	__kadm5_client_send
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_krb5_storage_free
	testq	%rbx, %rbx
	jne	LBB0_9
## %bb.5:
	leaq	-1076(%rbp), %rsi
	movq	%r12, %rdi
	callq	__kadm5_client_recv
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	leaq	-1076(%rbp), %rdi
	callq	_krb5_storage_from_data
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	leaq	-1088(%rbp), %rsi
	movq	%rax, %rdi
	callq	_krb5_ret_int32
	movl	(%r12), %edi
	callq	_krb5_clear_error_message
	movq	%rbx, %rdi
	callq	_krb5_storage_free
	leaq	-1076(%rbp), %rdi
	callq	_krb5_data_free
	movq	-1088(%rbp), %rbx
	jmp	LBB0_9
LBB0_2:
	movl	(%r12), %edi
	callq	_krb5_clear_error_message
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_9
LBB0_7:
	movl	(%r12), %edi
	callq	_krb5_clear_error_message
	leaq	-1076(%rbp), %rdi
	callq	_krb5_data_free
	jmp	LBB0_3
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_kadm_modify,4,2                ## @kadm_modify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kadm5_c_modify_principal       ; -- Begin function kadm5_c_modify_principal
	.p2align	2
_kadm5_c_modify_principal:              ; @kadm5_c_modify_principal
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #1056
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	__kadm5_connect
	mov	x21, x0
	cbz	x0, LBB0_3
LBB0_1:
	ldur	x8, [x29, #-56]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.2:
	mov	x0, x21
	add	sp, sp, #1056
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	add	x0, sp, #24
	mov	w1, #1024
	bl	_krb5_storage_from_mem
	cbz	x0, LBB0_8
; %bb.4:
	mov	x23, x0
Lloh6:
	adrp	x8, _kadm_modify@GOTPAGE
Lloh7:
	ldr	x8, [x8, _kadm_modify@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_krb5_store_int32
	mov	x0, x23
	mov	x1, x22
	bl	_kadm5_store_principal_ent
	mov	x0, x23
	mov	x1, x20
	bl	_krb5_store_int32
	mov	x0, x19
	mov	x1, x23
	bl	__kadm5_client_send
	mov	x21, x0
	mov	x0, x23
	bl	_krb5_storage_free
	cbnz	x21, LBB0_1
; %bb.5:
	add	x1, sp, #12
	mov	x0, x19
	bl	__kadm5_client_recv
	mov	x21, x0
	cbnz	x0, LBB0_1
; %bb.6:
	add	x0, sp, #12
	bl	_krb5_storage_from_data
	cbz	x0, LBB0_10
; %bb.7:
	mov	x20, x0
	add	x1, sp, #16
	bl	_krb5_ret_int32
	ldr	w0, [x19]
	bl	_krb5_clear_error_message
	mov	x0, x20
	bl	_krb5_storage_free
	add	x0, sp, #12
	bl	_krb5_data_free
	ldr	x21, [sp, #16]
	b	LBB0_1
LBB0_8:
	ldr	w0, [x19]
	bl	_krb5_clear_error_message
LBB0_9:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	x21, [x8]
	b	LBB0_1
LBB0_10:
	ldr	w0, [x19]
	bl	_krb5_clear_error_message
	add	x0, sp, #12
	bl	_krb5_data_free
	b	LBB0_9
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_kadm_modify,4,2                ; @kadm_modify
.subsections_via_symbols
