	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	_MAXNETNAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -48(%rbp)                 ## 8-byte Spill
	movq	_HEXKEYBYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	incl	%ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_KEYCHECKSUMSIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	cmpl	$3, %r15d
	jne	LBB0_3
## %bb.1:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	callq	_usage
LBB0_4:
	xorl	%eax, %eax
	callq	_geteuid
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_6:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	movq	16(%r14), %rsi
	testq	%rax, %rax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_10
## %bb.7:
	movq	%rsi, %rdi
	callq	_getpwnam
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	16(%r14), %rdx
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_9:
	movl	(%rbx), %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_user2netname
	jmp	LBB0_11
LBB0_10:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_host2netname
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.5(%rip), %rdi
	callq	_getpass
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rax, %rdx
	callq	_genkeys
	movq	_HEXKEYBYTES@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_memcpy
	movslq	(%r15), %rax
	movq	%r14, %rdi
	addq	%rax, %rdi
	movq	_KEYCHECKSUMSIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r13, %rsi
	callq	_memcpy
	movslq	(%r15), %rax
	movslq	(%r12), %rcx
	addq	%rax, %rcx
	movb	$0, (%r14,%rcx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_xencrypt
	movl	(%r15), %eax
	movl	(%r12), %ecx
	leal	(%rax,%rcx), %edx
	incl	%edx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_memcpy
	leaq	L_.str.6(%rip), %rdi
	callq	_getpass
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_xdecrypt
	movslq	(%r15), %rax
	movq	%rbx, %rsi
	addq	%rax, %rsi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_14
LBB0_13:
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_setpublicmap
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_err_string
	leaq	L_.str.8(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_errx
LBB0_16:
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXNETNAMELEN,4,2              ## @MAXNETNAMELEN
	.comm	_HEXKEYBYTES,4,2                ## @HEXKEYBYTES
	.comm	_KEYCHECKSUMSIZE,4,2            ## @KEYCHECKSUMSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-u"

L_.str.1:                               ## @.str.1
	.asciz	"-h"

L_.str.2:                               ## @.str.2
	.asciz	"must be superuser"

L_.str.3:                               ## @.str.3
	.asciz	"unknown user: %s"

L_.str.4:                               ## @.str.4
	.asciz	"Adding new key for %s.\n"

L_.str.5:                               ## @.str.5
	.asciz	"New password:"

L_.str.6:                               ## @.str.6
	.asciz	"Retype password:"

L_.str.7:                               ## @.str.7
	.asciz	"password incorrect"

L_.str.8:                               ## @.str.8
	.asciz	"unable to update publickey database (%u): %s"

	.comm	_YPDBPATH,4,2                   ## @YPDBPATH
L_str:                                  ## @str
	.asciz	"Your new key has been successfully stored away."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x1
Lloh0:
	adrp	x8, _MAXNETNAMELEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXNETNAMELEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w8, w8, #1
	mov	x9, x8
Lloh3:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh4:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh5:
	adrp	x26, _HEXKEYBYTES@GOTPAGE
Lloh6:
	ldr	x26, [x26, _HEXKEYBYTES@GOTPAGEOFF]
	ldr	w8, [x26]
	add	w8, w8, #1
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x1fffffff0
	sub	x20, x9, x12
	mov	sp, x20
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x22, x9, x12
	mov	sp, x22
Lloh11:
	adrp	x27, _KEYCHECKSUMSIZE@GOTPAGE
Lloh12:
	ldr	x27, [x27, _KEYCHECKSUMSIZE@GOTPAGEOFF]
	ldr	w9, [x27]
	add	w8, w8, w9
	mov	x9, x8
Lloh13:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh14:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x1fffffff0
	sub	x21, x9, x12
	mov	sp, x21
	mov	x9, x8
Lloh15:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh16:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x23, x8, x12
	mov	sp, x23
	cmp	w0, #3
	b.ne	LBB0_3
; %bb.1:
	ldr	x0, [x24, #8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x24, #8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_4
LBB0_3:
	bl	_usage
LBB0_4:
	bl	_geteuid
	cbz	x0, LBB0_6
; %bb.5:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_6:
	ldr	x0, [x24, #8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	ldr	x1, [x24, #16]
	cbnz	x0, LBB0_10
; %bb.7:
	mov	x0, x1
	bl	_getpwnam
	mov	x25, x0
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x24, #16]
	str	x8, [sp, #-16]!
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_errx
	add	sp, sp, #16
LBB0_9:
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, #0
	bl	_user2netname
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	mov	x2, #0
	bl	_host2netname
LBB0_11:
	str	x19, [sp, #-16]!
Lloh27:
	adrp	x0, l_.str.4@PAGE
Lloh28:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	add	sp, sp, #16
Lloh29:
	adrp	x0, l_.str.5@PAGE
Lloh30:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_getpass
	mov	x24, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x24
	bl	_genkeys
	ldr	w2, [x26]
	mov	x0, x21
	mov	x1, x22
	bl	_memcpy
	ldrsw	x8, [x26]
	add	x0, x21, x8
	ldr	w2, [x27]
	mov	x1, x22
	bl	_memcpy
	ldrsw	x8, [x26]
	ldrsw	x9, [x27]
	add	x8, x9, x8
	strb	wzr, [x21, x8]
	mov	x0, x21
	mov	x1, x24
	bl	_xencrypt
	ldr	w8, [x26]
	ldr	w9, [x27]
	add	w8, w8, w9
	add	w2, w8, #1
	mov	x0, x23
	mov	x1, x21
	bl	_memcpy
Lloh31:
	adrp	x0, l_.str.6@PAGE
Lloh32:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_getpass
	mov	x1, x0
	mov	x0, x23
	bl	_xdecrypt
	ldrsw	x8, [x26]
	add	x1, x23, x8
	ldr	w2, [x27]
	mov	x0, x23
	bl	_memcmp
	cbnz	x0, LBB0_13
; %bb.12:
	ldr	w2, [x26]
	mov	x0, x23
	mov	x1, x22
	bl	_memcmp
	cbz	x0, LBB0_14
LBB0_13:
Lloh33:
	adrp	x1, l_.str.7@PAGE
Lloh34:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_14:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_setpublicmap
	cbz	w0, LBB0_16
; %bb.15:
	mov	x19, x0
	bl	_err_string
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp, #-16]!
Lloh35:
	adrp	x1, l_.str.8@PAGE
Lloh36:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #1
	bl	_errx
	add	sp, sp, #16
LBB0_16:
Lloh37:
	adrp	x0, l_str@PAGE
Lloh38:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXNETNAMELEN,4,2              ; @MAXNETNAMELEN
	.comm	_HEXKEYBYTES,4,2                ; @HEXKEYBYTES
	.comm	_KEYCHECKSUMSIZE,4,2            ; @KEYCHECKSUMSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-u"

l_.str.1:                               ; @.str.1
	.asciz	"-h"

l_.str.2:                               ; @.str.2
	.asciz	"must be superuser"

l_.str.3:                               ; @.str.3
	.asciz	"unknown user: %s"

l_.str.4:                               ; @.str.4
	.asciz	"Adding new key for %s.\n"

l_.str.5:                               ; @.str.5
	.asciz	"New password:"

l_.str.6:                               ; @.str.6
	.asciz	"Retype password:"

l_.str.7:                               ; @.str.7
	.asciz	"password incorrect"

l_.str.8:                               ; @.str.8
	.asciz	"unable to update publickey database (%u): %s"

	.comm	_YPDBPATH,4,2                   ; @YPDBPATH
l_str:                                  ; @str
	.asciz	"Your new key has been successfully stored away."

.subsections_via_symbols
