	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_random_entry
_create_random_entry:                   ## @create_random_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$568, %rsp                      ## imm = 0x238
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movl	%esi, -596(%rbp)                ## 4-byte Spill
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-560(%rbp), %rdi
	movl	$512, %esi                      ## imm = 0x200
	callq	_random_password
	movq	_context@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	-568(%rbp), %rdx
	movl	%r14d, %esi
	callq	_krb5_unparse_name
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_krb5_warn
	jmp	LBB0_19
LBB0_2:
	leaq	-592(%rbp), %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movl	%r14d, -576(%rbp)
	movq	_KADM5_PRINCIPAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-596(%rbp), %eax                ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, -592(%rbp)
	movq	_KADM5_MAX_LIFE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
LBB0_4:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	movl	%r15d, -588(%rbp)
	movq	_KADM5_MAX_RLIFE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
LBB0_6:
	movq	_KRB5_KDB_DISALLOW_ALL_TIX@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	orl	%r13d, -584(%rbp)
	movq	_KADM5_ATTRIBUTES@GOTPCREL(%rip), %r12
	orl	(%r12), %edx
	movq	_kadm_handle@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	-592(%rbp), %rsi
	leaq	-560(%rbp), %rcx
	callq	_kadm5_create_principal
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:
	movl	(%r15), %edi
	leaq	-608(%rbp), %rdx
	leaq	-572(%rbp), %rcx
	movl	%r14d, %esi
	callq	_kadm5_randkey_principal
	testq	%rax, %rax
	je	LBB0_9
LBB0_7:
	movq	%rax, %rbx
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-568(%rbp), %rcx
	leaq	L_.str.1(%rip), %rdx
LBB0_17:
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_krb5_warn
LBB0_18:
	movq	-568(%rbp), %rdi
	callq	_free
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movq	%rbx, %rax
	addq	$568, %rsp                      ## imm = 0x238
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	cmpl	$0, -572(%rbp)
	movq	_context@GOTPCREL(%rip), %r13
	jle	LBB0_12
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	-608(%rbp), %rsi
	addq	%rbx, %rsi
	callq	_krb5_free_keyblock_contents
	incq	%rbx
	movslq	-572(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_12:
	movq	-608(%rbp), %rdi
	callq	_free
	movl	(%r15), %edi
	movl	(%r12), %ecx
	movq	_KADM5_PRINCIPAL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	leaq	-592(%rbp), %rdx
	movl	%r14d, %esi
	callq	_kadm5_get_principal
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%rax, %rbx
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-568(%rbp), %rcx
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_17
LBB0_14:
	movq	_KRB5_KDB_DISALLOW_ALL_TIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, -584(%rbp)
	movl	$1, -580(%rbp)
	movl	(%r15), %edi
	movq	_KADM5_KVNO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r12), %edx
	leaq	-592(%rbp), %r14
	movq	%r14, %rsi
	callq	_kadm5_modify_principal
	movq	%rax, %rbx
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_kadm5_free_principal_ent
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.16:
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-568(%rbp), %rcx
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_17
LBB0_15:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_context,4,2                    ## @context
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to unparse principal name"

	.comm	_KADM5_PRINCIPAL,4,2            ## @KADM5_PRINCIPAL
	.comm	_KADM5_MAX_LIFE,4,2             ## @KADM5_MAX_LIFE
	.comm	_KADM5_MAX_RLIFE,4,2            ## @KADM5_MAX_RLIFE
	.comm	_KRB5_KDB_DISALLOW_ALL_TIX,4,2  ## @KRB5_KDB_DISALLOW_ALL_TIX
	.comm	_KADM5_ATTRIBUTES,4,2           ## @KADM5_ATTRIBUTES
	.comm	_kadm_handle,4,2                ## @kadm_handle
L_.str.1:                               ## @.str.1
	.asciz	"create_random_entry(%s): randkey failed"

L_.str.2:                               ## @.str.2
	.asciz	"create_random_entry(%s): unable to get principal"

	.comm	_KADM5_KVNO,4,2                 ## @KADM5_KVNO
L_.str.3:                               ## @.str.3
	.asciz	"create_random_entry(%s): unable to modify principal"

	.no_dead_strip	_create_random_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_random_entry
_create_random_entry:                   ; @create_random_entry
	.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
	sub	sp, sp, #576
	mov	x21, x3
	mov	x22, x2
	mov	x23, 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, #-72]
	add	x0, sp, #56
	mov	w1, #512
	bl	_random_password
Lloh3:
	adrp	x24, _context@GOTPAGE
Lloh4:
	ldr	x24, [x24, _context@GOTPAGEOFF]
	ldr	w0, [x24]
	add	x2, sp, #8
	mov	x1, x19
	bl	_krb5_unparse_name
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x24]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x20
	bl	_krb5_warn
	b	LBB0_11
LBB0_2:
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	str	w19, [sp, #48]
Lloh7:
	adrp	x25, _KADM5_PRINCIPAL@GOTPAGE
Lloh8:
	ldr	x25, [x25, _KADM5_PRINCIPAL@GOTPAGEOFF]
	ldr	w8, [x25]
	cbz	w23, LBB0_4
; %bb.3:
	str	w23, [sp, #32]
Lloh9:
	adrp	x9, _KADM5_MAX_LIFE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _KADM5_MAX_LIFE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_4:
	cbz	w22, LBB0_6
; %bb.5:
	str	w22, [sp, #36]
Lloh12:
	adrp	x9, _KADM5_MAX_RLIFE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _KADM5_MAX_RLIFE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_6:
Lloh15:
	adrp	x23, _KRB5_KDB_DISALLOW_ALL_TIX@GOTPAGE
Lloh16:
	ldr	x23, [x23, _KRB5_KDB_DISALLOW_ALL_TIX@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w9, w9, w21
	ldr	w10, [sp, #40]
	orr	w9, w9, w10
Lloh17:
	adrp	x22, _KADM5_ATTRIBUTES@GOTPAGE
Lloh18:
	ldr	x22, [x22, _KADM5_ATTRIBUTES@GOTPAGEOFF]
	str	w9, [sp, #40]
	ldr	w9, [x22]
	orr	w2, w9, w8
Lloh19:
	adrp	x21, _kadm_handle@GOTPAGE
Lloh20:
	ldr	x21, [x21, _kadm_handle@GOTPAGEOFF]
	ldr	w0, [x21]
	add	x1, sp, #32
	add	x3, sp, #56
	bl	_kadm5_create_principal
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	w0, [x21]
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x1, x19
	bl	_kadm5_randkey_principal
	cbz	x0, LBB0_13
LBB0_8:
	mov	x20, x0
	ldr	w0, [x24]
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_9:
	mov	x1, x20
	bl	_krb5_warn
LBB0_10:
	ldr	x0, [sp, #8]
	bl	_free
LBB0_11:
	ldur	x8, [x29, #-72]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.12:
	mov	x0, x20
	add	sp, sp, #576
	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_13:
	ldr	w8, [sp, #20]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.14:
	mov	x20, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	ldr	x8, [sp, #24]
	add	x1, x8, x20
	bl	_krb5_free_keyblock_contents
	add	x20, x20, #1
	ldrsw	x8, [sp, #20]
	cmp	x20, x8
	b.lt	LBB0_15
LBB0_16:
	ldr	x0, [sp, #24]
	bl	_free
	ldr	w0, [x21]
	ldr	w8, [x25]
	ldr	w9, [x22]
	orr	w3, w9, w8
	add	x2, sp, #32
	mov	x1, x19
	bl	_kadm5_get_principal
	cbz	x0, LBB0_18
; %bb.17:
	mov	x20, x0
	ldr	w0, [x24]
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh26:
	adrp	x2, l_.str.2@PAGE
Lloh27:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_18:
	ldr	w8, [x23]
	ldr	w9, [sp, #40]
	bic	w8, w9, w8
	mov	w9, #1
	stp	w8, w9, [sp, #40]
	ldr	w0, [x21]
	ldr	w8, [x22]
Lloh28:
	adrp	x9, _KADM5_KVNO@GOTPAGE
Lloh29:
	ldr	x9, [x9, _KADM5_KVNO@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w2, w9, w8
	add	x1, sp, #32
	bl	_kadm5_modify_principal
	mov	x20, x0
	ldr	w0, [x21]
	add	x1, sp, #32
	bl	_kadm5_free_principal_ent
	cbz	x20, LBB0_10
; %bb.19:
	ldr	w0, [x24]
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh31:
	adrp	x2, l_.str.3@PAGE
Lloh32:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_context,4,2                    ; @context
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to unparse principal name"

	.comm	_KADM5_PRINCIPAL,4,2            ; @KADM5_PRINCIPAL
	.comm	_KADM5_MAX_LIFE,4,2             ; @KADM5_MAX_LIFE
	.comm	_KADM5_MAX_RLIFE,4,2            ; @KADM5_MAX_RLIFE
	.comm	_KRB5_KDB_DISALLOW_ALL_TIX,4,2  ; @KRB5_KDB_DISALLOW_ALL_TIX
	.comm	_KADM5_ATTRIBUTES,4,2           ; @KADM5_ATTRIBUTES
	.comm	_kadm_handle,4,2                ; @kadm_handle
l_.str.1:                               ; @.str.1
	.asciz	"create_random_entry(%s): randkey failed"

l_.str.2:                               ; @.str.2
	.asciz	"create_random_entry(%s): unable to get principal"

	.comm	_KADM5_KVNO,4,2                 ; @KADM5_KVNO
l_.str.3:                               ; @.str.3
	.asciz	"create_random_entry(%s): unable to modify principal"

	.no_dead_strip	_create_random_entry
.subsections_via_symbols
