	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ofwo_setpass
_ofwo_setpass:                          ## @ofwo_setpass
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_OFWO_MAXPWD@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, %r12
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_RPP_ECHO_OFF@GOTPCREL(%rip), %r13
	movq	_RPP_REQUIRE_TTY@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	orl	(%r13), %ecx
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_readpassphrase
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %ecx
	orl	(%r13), %ecx
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_readpassphrase
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	cmpb	$0, (%r12)
	je	LBB0_4
LBB0_5:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_errx
	cmpb	$0, (%r12)
	jne	LBB0_5
LBB0_4:
	leaq	L_str.6(%rip), %rdi
	callq	_puts
	jmp	LBB0_8
LBB0_7:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_ofw_optnode
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_strlen
	leaq	1(%rax), %r8
	leaq	L_.str.5(%rip), %rdx
	movl	%ebx, %edi
	movl	%r14d, %esi
	movq	%r12, %rcx
	callq	_ofw_setprop
LBB0_8:
	movq	_EX_OK@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_OFWO_MAXPWD,4,2                ## @OFWO_MAXPWD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"New password:"

	.comm	_RPP_ECHO_OFF,4,2               ## @RPP_ECHO_OFF
	.comm	_RPP_REQUIRE_TTY,4,2            ## @RPP_REQUIRE_TTY
L_.str.1:                               ## @.str.1
	.asciz	"Retype new password:"

	.comm	_EX_USAGE,4,2                   ## @EX_USAGE
L_.str.2:                               ## @.str.2
	.asciz	"failed to get password."

	.comm	_EX_OK,4,2                      ## @EX_OK
L_.str.5:                               ## @.str.5
	.asciz	"security-password"

L_str:                                  ## @str
	.asciz	"Mismatch - password unchanged."

L_str.6:                                ## @str.6
	.asciz	"Password unchanged."

	.no_dead_strip	_ofwo_setpass
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ofwo_setpass
_ofwo_setpass:                          ; @ofwo_setpass
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	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, #-56]
Lloh3:
	adrp	x8, _OFWO_MAXPWD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OFWO_MAXPWD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w22, w8, #1
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x12, x9, #0x1fffffff0
	sub	x20, x8, x12
	mov	sp, x20
	mov	x9, x22
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x21, x8, x12
	mov	sp, x21
Lloh10:
	adrp	x23, _RPP_ECHO_OFF@GOTPAGE
Lloh11:
	ldr	x23, [x23, _RPP_ECHO_OFF@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh12:
	adrp	x24, _RPP_REQUIRE_TTY@GOTPAGE
Lloh13:
	ldr	x24, [x24, _RPP_REQUIRE_TTY@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w3, w9, w8
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x22
	bl	_readpassphrase
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w3, w9, w8
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	x2, x22
	bl	_readpassphrase
	cbz	x0, LBB0_5
; %bb.2:
	ldrb	w8, [x20]
	cbz	w8, LBB0_6
LBB0_3:
	mov	x0, x20
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.4:
Lloh18:
	adrp	x0, l_str@PAGE
Lloh19:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh20:
	adrp	x8, _EX_USAGE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EX_USAGE@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh22:
	adrp	x8, _EX_USAGE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EX_USAGE@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_errx
	ldrb	w8, [x20]
	cbnz	w8, LBB0_3
LBB0_6:
Lloh27:
	adrp	x0, l_str.6@PAGE
Lloh28:
	add	x0, x0, l_str.6@PAGEOFF
	bl	_puts
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_ofw_optnode
	mov	x21, x0
	mov	x0, x20
	bl	_strlen
	add	x4, x0, #1
Lloh29:
	adrp	x2, l_.str.5@PAGE
Lloh30:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_ofw_setprop
LBB0_8:
Lloh31:
	adrp	x8, _EX_OK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EX_OK@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldur	x8, [x29, #-56]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_OFWO_MAXPWD,4,2                ; @OFWO_MAXPWD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"New password:"

	.comm	_RPP_ECHO_OFF,4,2               ; @RPP_ECHO_OFF
	.comm	_RPP_REQUIRE_TTY,4,2            ; @RPP_REQUIRE_TTY
l_.str.1:                               ; @.str.1
	.asciz	"Retype new password:"

	.comm	_EX_USAGE,4,2                   ; @EX_USAGE
l_.str.2:                               ; @.str.2
	.asciz	"failed to get password."

	.comm	_EX_OK,4,2                      ; @EX_OK
l_.str.5:                               ; @.str.5
	.asciz	"security-password"

l_str:                                  ; @str
	.asciz	"Mismatch - password unchanged."

l_str.6:                                ; @str.6
	.asciz	"Password unchanged."

	.no_dead_strip	_ofwo_setpass
.subsections_via_symbols
