	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r15d
	leaq	L_.str(%rip), %r12
	movq	_optarg@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_1
LBB0_24:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_getopt
	cmpl	$100, %eax
	je	LBB0_24
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_1
LBB0_4:
	movq	_optind@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_usage
LBB0_6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pw_init
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_8:
	xorl	%eax, %eax
	callq	_pw_lock
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_pw_fini
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_10:
	movl	%ebx, %edi
	callq	_pw_tmp
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	callq	_pw_fini
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_12:
	movl	%ebx, %edi
	callq	_close
	movl	$63, %edi
	callq	_umask
	leaq	L_.str.7(%rip), %r12
	movq	_stdout@GOTPCREL(%rip), %r13
	movq	_stdin@GOTPCREL(%rip), %r15
	leaq	-48(%rbp), %rbx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	callq	_pw_edit
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$-1, %eax
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	xorl	%eax, %eax
	callq	_pw_fini
	movl	$1, %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_err
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	xorl	%eax, %eax
	callq	_pw_fini
	xorl	%edi, %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_errx
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	xorl	%edi, %edi
	callq	_pw_mkdb
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_13 Depth=1
	xorl	%eax, %eax
	callq	_pw_fini
	xorl	%edi, %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_errx
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	callq	_printf
	movl	(%r13), %edi
	callq	_fflush
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_fgetln
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpq	$0, -48(%rbp)
	jne	LBB0_22
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	xorl	%eax, %eax
	callq	_pw_fini
	movl	$1, %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_err
	cmpq	$0, -48(%rbp)
	je	LBB0_13
LBB0_22:                                ##   in Loop: Header=BB0_13 Depth=1
	movzbl	(%r14), %eax
	orb	$32, %al
	cmpb	$110, %al
	jne	LBB0_13
## %bb.23:
	xorl	%eax, %eax
	callq	_pw_fini
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"d:"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_optind,8,3                     ## @optind
L_.str.1:                               ## @.str.1
	.asciz	"pw_init()"

L_.str.2:                               ## @.str.2
	.asciz	"pw_lock()"

L_.str.3:                               ## @.str.3
	.asciz	"pw_tmp()"

L_.str.4:                               ## @.str.4
	.asciz	"pw_edit()"

L_.str.5:                               ## @.str.5
	.asciz	"no changes made"

L_.str.6:                               ## @.str.6
	.asciz	"password list updated"

L_.str.7:                               ## @.str.7
	.asciz	"re-edit the password file? "

	.comm	_stdout,4,2                     ## @stdout
	.comm	_stdin,4,2                      ## @stdin
L_.str.8:                               ## @.str.8
	.asciz	"fgetln()"

.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:
	sub	sp, sp, #96
	.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
	mov	x21, x1
	mov	x20, x0
	mov	x19, #0
Lloh0:
	adrp	x23, _optarg@GOTPAGE
Lloh1:
	ldr	x23, [x23, _optarg@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x19, [x23]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_getopt
	cmp	w0, #100
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_2
LBB0_5:
Lloh4:
	adrp	x8, _optind@GOTPAGE
Lloh5:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_7
; %bb.6:
	bl	_usage
LBB0_7:
	mov	x0, x19
	mov	x1, #0
	bl	_pw_init
	cmn	w0, #1
	b.ne	LBB0_9
; %bb.8:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_9:
	bl	_pw_lock
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_11
; %bb.10:
	bl	_pw_fini
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_11:
	mov	x0, x19
	bl	_pw_tmp
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_13
; %bb.12:
	bl	_pw_fini
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_13:
	mov	x0, x19
	bl	_close
	mov	w0, #63
	bl	_umask
Lloh13:
	adrp	x19, l_.str.5@PAGE
Lloh14:
	add	x19, x19, l_.str.5@PAGEOFF
Lloh15:
	adrp	x20, l_.str.6@PAGE
Lloh16:
	add	x20, x20, l_.str.6@PAGEOFF
Lloh17:
	adrp	x21, l_.str.7@PAGE
Lloh18:
	add	x21, x21, l_.str.7@PAGEOFF
Lloh19:
	adrp	x25, _stdout@GOTPAGE
Lloh20:
	ldr	x25, [x25, _stdout@GOTPAGEOFF]
Lloh21:
	adrp	x26, _stdin@GOTPAGE
Lloh22:
	ldr	x26, [x26, _stdin@GOTPAGEOFF]
Lloh23:
	adrp	x22, l_.str.8@PAGE
Lloh24:
	add	x22, x22, l_.str.8@PAGEOFF
Lloh25:
	adrp	x23, l_.str.4@PAGE
Lloh26:
	add	x23, x23, l_.str.4@PAGEOFF
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	w0, #0
	bl	_pw_edit
	cbz	w0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	cmn	w0, #1
	b.ne	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	bl	_pw_fini
	mov	w0, #1
	mov	x1, x23
	bl	_err
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	bl	_pw_fini
	mov	w0, #0
	mov	x1, x19
	bl	_errx
LBB0_18:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, #0
	bl	_pw_mkdb
	cbnz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	bl	_pw_fini
	mov	w0, #0
	mov	x1, x20
	bl	_errx
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x21
	bl	_printf
	ldr	w0, [x25]
	bl	_fflush
	ldr	w0, [x26]
	add	x1, sp, #8
	bl	_fgetln
	mov	x24, x0
	cbz	x0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_23
	b	LBB0_14
LBB0_22:                                ;   in Loop: Header=BB0_14 Depth=1
	bl	_pw_fini
	mov	w0, #1
	mov	x1, x22
	bl	_err
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_14
LBB0_23:                                ;   in Loop: Header=BB0_14 Depth=1
	ldrb	w8, [x24]
	orr	w8, w8, #0x20
	cmp	w8, #110
	b.ne	LBB0_14
; %bb.24:
	bl	_pw_fini
	mov	w0, #0
	bl	_exit
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"d:"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_optind,8,3                     ; @optind
l_.str.1:                               ; @.str.1
	.asciz	"pw_init()"

l_.str.2:                               ; @.str.2
	.asciz	"pw_lock()"

l_.str.3:                               ; @.str.3
	.asciz	"pw_tmp()"

l_.str.4:                               ; @.str.4
	.asciz	"pw_edit()"

l_.str.5:                               ; @.str.5
	.asciz	"no changes made"

l_.str.6:                               ; @.str.6
	.asciz	"password list updated"

l_.str.7:                               ; @.str.7
	.asciz	"re-edit the password file? "

	.comm	_stdout,4,2                     ; @stdout
	.comm	_stdin,4,2                      ; @stdin
l_.str.8:                               ; @.str.8
	.asciz	"fgetln()"

.subsections_via_symbols
