	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_user
_add_user:                              ## @add_user
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%edx, %r13d
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_rand
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_rand
	movl	%eax, %esi
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%r13d
                                        ## kill: def $edx killed $edx def $rdx
	movq	(%r12,%rdx,8), %rcx
	movslq	%esi, %r8
	imulq	$274877907, %r8, %rax           ## imm = 0x10624DD3
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$38, %rax
	addl	%edx, %eax
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	subl	%eax, %r8d
	leaq	L_.str(%rip), %rdx
	leaq	-112(%rbp), %r12
	movq	%r12, %rdi
	movl	$64, %esi
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_snprintf
	movq	_KADM5_PRINCIPAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	-120(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	%r15d, %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_krb5_parse_name
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rcx
	movl	%r15d, %edi
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_2:
	leaq	-120(%rbp), %rsi
	leaq	-112(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_kadm5_create_principal
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rcx
	movl	%r15d, %edi
	movl	$1, %esi
	movq	%rax, %rdx
	callq	_krb5_err
LBB0_4:
	leaq	-120(%rbp), %rsi
	movq	%r14, %rdi
	callq	_kadm5_free_principal_ent
	leaq	L_.str.3(%rip), %rdi
	leaq	-112(%rbp), %rsi
	callq	_printf
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%d"

	.comm	_KADM5_PRINCIPAL,4,2            ## @KADM5_PRINCIPAL
L_.str.1:                               ## @.str.1
	.asciz	"krb5_parse_name"

L_.str.2:                               ## @.str.2
	.asciz	"kadm5_create_principal"

L_.str.3:                               ## @.str.3
	.asciz	"%s\n"

	.no_dead_strip	_add_user
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_user
_add_user:                              ; @add_user
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x3
	mov	x22, x2
	mov	x19, x1
	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, #-56]
	bl	_rand
	mov	x23, x0
	bl	_rand
	udiv	w8, w23, w22
	msub	w8, w8, w22, w23
	ldr	x3, [x21, w8, uxtw #3]
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	mov	w9, #1000
	msub	w4, w8, w9, w0
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #64
	bl	_snprintf
Lloh5:
	adrp	x8, _KADM5_PRINCIPAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KADM5_PRINCIPAL@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x20
	bl	_krb5_parse_name
	cbz	x0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w1, #1
	bl	_krb5_err
LBB0_2:
	mov	x1, sp
	add	x3, sp, #8
	mov	x0, x19
	mov	x2, x21
	bl	_kadm5_create_principal
	cbz	x0, LBB0_4
; %bb.3:
	mov	x2, x0
Lloh10:
	adrp	x3, l_.str.2@PAGE
Lloh11:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	w1, #1
	bl	_krb5_err
LBB0_4:
	mov	x1, sp
	mov	x0, x19
	bl	_kadm5_free_principal_ent
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	add	x1, sp, #8
	bl	_printf
	ldur	x8, [x29, #-56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%d"

	.comm	_KADM5_PRINCIPAL,4,2            ; @KADM5_PRINCIPAL
l_.str.1:                               ; @.str.1
	.asciz	"krb5_parse_name"

l_.str.2:                               ; @.str.2
	.asciz	"kadm5_create_principal"

l_.str.3:                               ; @.str.3
	.asciz	"%s\n"

	.no_dead_strip	_add_user
.subsections_via_symbols
