	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_mod_entry
_do_mod_entry:                          ## @do_mod_entry
	.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
	movq	%rsi, %r14
	movl	%edi, %ebx
	movl	$0, -44(%rbp)
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_KADM5_PRINCIPAL@GOTPCREL(%rip), %rax
	movq	_KADM5_ATTRIBUTES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_KADM5_MAX_LIFE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_KADM5_MAX_RLIFE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_kadm_handle@GOTPCREL(%rip), %r12
	movq	_KADM5_PRINC_EXPIRE_TIME@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	(%r12), %edi
	movq	_KADM5_PW_EXPIRATION@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_kadm5_get_principal
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.1:
	movq	56(%r14), %r8
	movq	64(%r14), %rcx
	movq	%rcx, %rax
	orq	%r8, %rax
	jne	LBB0_10
## %bb.2:
	cmpq	$0, 48(%r14)
	jne	LBB0_9
## %bb.3:
	cmpq	$0, 40(%r14)
	jne	LBB0_9
## %bb.4:
	cmpq	$0, 32(%r14)
	jne	LBB0_9
## %bb.5:
	cmpl	$-1, (%r14)
	jne	LBB0_9
## %bb.6:
	cmpq	$0, 24(%r14)
	jne	LBB0_9
## %bb.7:
	cmpq	$0, 16(%r14)
	jne	LBB0_9
## %bb.8:
	cmpq	$0, 8(%r14)
	je	LBB0_18
LBB0_9:
	xorl	%r8d, %r8d
LBB0_10:
	movq	_context@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	48(%r14), %r9
	leaq	-40(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	pushq	32(%r14)
	pushq	40(%r14)
	callq	_set_entry
	addq	$16, %rsp
	movl	%eax, %ebx
	movl	(%r14), %eax
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, -40(%rbp)
	movq	_KADM5_KVNO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -44(%rbp)
LBB0_12:
	cmpq	$0, 24(%r14)
	je	LBB0_14
## %bb.13:
	leaq	24(%r14), %rdx
	movl	(%r15), %edi
	leaq	-40(%rbp), %rsi
	callq	_add_constrained_delegation
	movq	_KADM5_TL_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -44(%rbp)
LBB0_14:
	cmpq	$0, 16(%r14)
	je	LBB0_16
## %bb.15:
	leaq	16(%r14), %rdx
	movl	(%r15), %edi
	leaq	-40(%rbp), %rsi
	callq	_add_aliases
	movq	_KADM5_TL_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -44(%rbp)
LBB0_16:
	cmpq	$0, 8(%r14)
	je	LBB0_19
## %bb.17:
	addq	$8, %r14
	movl	(%r15), %edi
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdx
	callq	_add_pkinit_acl
	movq	_KADM5_TL_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -44(%rbp)
LBB0_19:
	testl	%ebx, %ebx
	jne	LBB0_23
LBB0_20:
	movl	(%r12), %edi
	movl	-44(%rbp), %edx
	leaq	-40(%rbp), %rsi
	callq	_kadm5_modify_principal
	testl	%eax, %eax
	je	LBB0_21
## %bb.22:
	movl	%eax, %ebx
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %esi
	callq	_krb5_warn
	jmp	LBB0_23
LBB0_21:
	xorl	%ebx, %ebx
LBB0_23:
	movl	(%r12), %edi
	leaq	-40(%rbp), %rsi
	callq	_kadm5_free_principal_ent
LBB0_24:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	leaq	-40(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_edit_entry
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jne	LBB0_23
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_kadm_handle,4,2                ## @kadm_handle
	.comm	_KADM5_PRINCIPAL,4,2            ## @KADM5_PRINCIPAL
	.comm	_KADM5_ATTRIBUTES,4,2           ## @KADM5_ATTRIBUTES
	.comm	_KADM5_MAX_LIFE,4,2             ## @KADM5_MAX_LIFE
	.comm	_KADM5_MAX_RLIFE,4,2            ## @KADM5_MAX_RLIFE
	.comm	_KADM5_PRINC_EXPIRE_TIME,4,2    ## @KADM5_PRINC_EXPIRE_TIME
	.comm	_KADM5_PW_EXPIRATION,4,2        ## @KADM5_PW_EXPIRATION
	.comm	_context,4,2                    ## @context
	.comm	_KADM5_KVNO,4,2                 ## @KADM5_KVNO
	.comm	_KADM5_TL_DATA,4,2              ## @KADM5_TL_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kadm5_modify_principal"

	.no_dead_strip	_do_mod_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_mod_entry
_do_mod_entry:                          ; @do_mod_entry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	str	wzr, [sp, #4]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x21, _kadm_handle@GOTPAGE
Lloh1:
	ldr	x21, [x21, _kadm_handle@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _KADM5_PRINCIPAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KADM5_PRINCIPAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _KADM5_ATTRIBUTES@GOTPAGE
Lloh6:
	ldr	x9, [x9, _KADM5_ATTRIBUTES@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _KADM5_MAX_LIFE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _KADM5_MAX_LIFE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _KADM5_MAX_RLIFE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _KADM5_MAX_RLIFE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _KADM5_PRINC_EXPIRE_TIME@GOTPAGE
Lloh15:
	ldr	x9, [x9, _KADM5_PRINC_EXPIRE_TIME@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _KADM5_PW_EXPIRATION@GOTPAGE
Lloh18:
	ldr	x9, [x9, _KADM5_PW_EXPIRATION@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w3, w8, w9
	add	x2, sp, #8
	mov	x1, x20
	bl	_kadm5_get_principal
	mov	x20, x0
	cbnz	w0, LBB0_22
; %bb.1:
	ldp	x4, x3, [x19, #56]
Lloh20:
	adrp	x22, _context@GOTPAGE
Lloh21:
	ldr	x22, [x22, _context@GOTPAGEOFF]
	orr	x8, x3, x4
	cbnz	x8, LBB0_10
; %bb.2:
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_9
; %bb.3:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_9
; %bb.4:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_9
; %bb.5:
	ldr	w8, [x19]
	cmn	w8, #1
	b.ne	LBB0_9
; %bb.6:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_23
LBB0_9:
	mov	x4, #0
LBB0_10:
	ldr	w0, [x22]
	ldp	x6, x5, [x19, #40]
	ldr	x7, [x19, #32]
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_set_entry
	mov	x20, x0
	ldr	w8, [x19]
	cmn	w8, #1
	b.eq	LBB0_12
; %bb.11:
	str	w8, [sp, #8]
Lloh22:
	adrp	x8, _KADM5_KVNO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _KADM5_KVNO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [sp, #4]
	orr	w8, w9, w8
	str	w8, [sp, #4]
LBB0_12:
	mov	x2, x19
	ldr	x8, [x2, #24]!
Lloh25:
	adrp	x23, _KADM5_TL_DATA@GOTPAGE
Lloh26:
	ldr	x23, [x23, _KADM5_TL_DATA@GOTPAGEOFF]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	w0, [x22]
	add	x1, sp, #8
	bl	_add_constrained_delegation
	ldr	w8, [x23]
	ldr	w9, [sp, #4]
	orr	w8, w9, w8
	str	w8, [sp, #4]
LBB0_14:
	mov	x2, x19
	ldr	x8, [x2, #16]!
	cbz	x8, LBB0_16
; %bb.15:
	ldr	w0, [x22]
	add	x1, sp, #8
	bl	_add_aliases
	ldr	w8, [x23]
	ldr	w9, [sp, #4]
	orr	w8, w9, w8
	str	w8, [sp, #4]
LBB0_16:
	ldr	x8, [x19, #8]!
	cbz	x8, LBB0_18
; %bb.17:
	ldr	w0, [x22]
	add	x1, sp, #8
	mov	x2, x19
	bl	_add_pkinit_acl
	ldr	w8, [x23]
	ldr	w9, [sp, #4]
	orr	w8, w9, w8
	str	w8, [sp, #4]
LBB0_18:
	cbnz	w20, LBB0_21
LBB0_19:
	ldr	w0, [x21]
	ldr	w2, [sp, #4]
	add	x1, sp, #8
	bl	_kadm5_modify_principal
	mov	x20, x0
	cbz	w0, LBB0_21
; %bb.20:
	ldr	w0, [x22]
Lloh27:
	adrp	x2, l_.str@PAGE
Lloh28:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x20
	bl	_krb5_warn
LBB0_21:
	ldr	w0, [x21]
	add	x1, sp, #8
	bl	_kadm5_free_principal_ent
LBB0_22:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_23:
	add	x0, sp, #8
	add	x1, sp, #4
	mov	x2, #0
	mov	w3, #0
	bl	_edit_entry
	mov	x20, x0
	cbnz	w20, LBB0_21
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_kadm_handle,4,2                ; @kadm_handle
	.comm	_KADM5_PRINCIPAL,4,2            ; @KADM5_PRINCIPAL
	.comm	_KADM5_ATTRIBUTES,4,2           ; @KADM5_ATTRIBUTES
	.comm	_KADM5_MAX_LIFE,4,2             ; @KADM5_MAX_LIFE
	.comm	_KADM5_MAX_RLIFE,4,2            ; @KADM5_MAX_RLIFE
	.comm	_KADM5_PRINC_EXPIRE_TIME,4,2    ; @KADM5_PRINC_EXPIRE_TIME
	.comm	_KADM5_PW_EXPIRATION,4,2        ; @KADM5_PW_EXPIRATION
	.comm	_context,4,2                    ; @context
	.comm	_KADM5_KVNO,4,2                 ; @KADM5_KVNO
	.comm	_KADM5_TL_DATA,4,2              ; @KADM5_TL_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kadm5_modify_principal"

	.no_dead_strip	_do_mod_entry
.subsections_via_symbols
