	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_random_password
_set_random_password:                   ## @set_random_password
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$160, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	-160(%rbp), %r14
	movq	%r14, %rdi
	movl	$128, %esi
	callq	_random_password
	movq	_kadm_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_kadm5_chpass_principal
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-168(%rbp), %rdx
	movl	%ebx, %esi
	callq	_krb5_unparse_name
	movq	-168(%rbp), %rsi
	leaq	L_.str(%rip), %rdi
	leaq	-160(%rbp), %rdx
	callq	_printf
	movq	-168(%rbp), %rdi
	callq	_free
LBB0_2:
	leaq	-160(%rbp), %rdi
	xorl	%esi, %esi
	movl	$128, %edx
	callq	_memset
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	movl	%r14d, %eax
	addq	$160, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_kadm_handle,4,2                ## @kadm_handle
	.comm	_context,4,2                    ## @context
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s's password set to \"%s\"\n"

	.no_dead_strip	_set_random_password
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_random_password
_set_random_password:                   ; @set_random_password
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	add	x0, sp, #8
	mov	w1, #128
	bl	_random_password
Lloh3:
	adrp	x8, _kadm_handle@GOTPAGE
Lloh4:
	ldr	x8, [x8, _kadm_handle@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	x1, x20
	bl	_kadm5_chpass_principal
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _context@GOTPAGE
Lloh7:
	ldr	x8, [x8, _context@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x2, sp
	mov	x1, x20
	bl	_krb5_unparse_name
	ldr	x1, [sp]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_printf
	ldr	x0, [sp]
	bl	_free
LBB0_2:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #128
	bl	_memset
	ldur	x8, [x29, #-24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_kadm_handle,4,2                ; @kadm_handle
	.comm	_context,4,2                    ; @context
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s's password set to \"%s\"\n"

	.no_dead_strip	_set_random_password
.subsections_via_symbols
