	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_passphrase
_setup_passphrase:                      ## @setup_passphrase
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movq	_SHA512_DIGEST_LENGTH@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	addl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	movq	%r15, %rbx
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_open
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_4:
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_read
	movq	%r14, %r12
	movl	%eax, %r14d
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_6:
	movl	%r15d, %edi
	callq	_close
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_g_bde_hash_pass
	movl	(%r15), %esi
	movl	(%r13), %edx
	movq	%r12, %rdi
	callq	_memcpy
	movl	(%r15), %esi
	movl	(%r13), %edx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_memcpy
	movl	(%r13), %ebx
	movq	%r12, %r14
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	testq	%r12, %r12
	je	LBB0_8
LBB0_16:
	movq	%r12, %rdi
	callq	_strlen
	movq	_BUFSIZ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_18
## %bb.17:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_18:
	movslq	%ebx, %rax
	movq	%r14, %r15
	addq	%rax, %r15
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_strcpy
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_1:
	xorl	%ebx, %ebx
	testq	%r12, %r12
	jne	LBB0_16
LBB0_8:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	leaq	L_.str.3(%rip), %rax
	movq	%r15, %rcx
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movslq	%ebx, %rax
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	%r14, %r15
	addq	%rax, %r15
	movl	%ebx, -92(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	subl	%ebx, %esi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	addq	%rax, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	_RPP_ECHO_OFF@GOTPCREL(%rip), %r12
	movq	_RPP_REQUIRE_TTY@GOTPCREL(%rip), %rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	callq	_strlen
	leaq	L_str(%rip), %rdi
	cmpl	$3, %eax
	jge	LBB0_20
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	callq	_puts
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %ecx
	orl	(%r12), %ecx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_readpassphrase
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_12
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %r14
	movl	(%rbx), %ecx
	movq	%r12, %r13
	orl	(%r12), %ecx
	leaq	L_.str.5(%rip), %rdi
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_readpassphrase
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_strcmp
	leaq	L_str.8(%rip), %rdi
	testq	%rax, %rax
	movq	%r13, %r12
	movq	%r14, %rbx
	jne	LBB0_15
	jmp	LBB0_19
LBB0_20:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	_SHA512_DIGEST_LENGTH@GOTPCREL(%rip), %r13
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movl	-92(%rbp), %ebx                 ## 4-byte Reload
LBB0_21:
	movq	%r15, %rdi
	callq	_strlen
	addl	%eax, %ebx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_g_bde_hash_pass
	movq	_sha2@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%r12), %esi
	movl	(%r13), %edx
	callq	_memcpy
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.comm	_SHA512_DIGEST_LENGTH,4,2       ## @SHA512_DIGEST_LENGTH
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"Passphrase too long"

	.comm	_sha2,8,3                       ## @sha2
L_.str.2:                               ## @.str.2
	.asciz	"Enter new passphrase:"

L_.str.3:                               ## @.str.3
	.asciz	"Enter passphrase: "

	.comm	_RPP_ECHO_OFF,4,2               ## @RPP_ECHO_OFF
	.comm	_RPP_REQUIRE_TTY,4,2            ## @RPP_REQUIRE_TTY
L_.str.4:                               ## @.str.4
	.asciz	"readpassphrase"

L_.str.5:                               ## @.str.5
	.asciz	"Reenter new passphrase: "

L_str:                                  ## @str
	.asciz	"Too short passphrase."

L_str.8:                                ## @str.8
	.asciz	"They didn't match."

	.no_dead_strip	_setup_passphrase
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_passphrase
_setup_passphrase:                      ; @setup_passphrase
	.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
	sub	sp, sp, #32
	mov	x25, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x27, _BUFSIZ@GOTPAGE
Lloh4:
	ldr	x27, [x27, _BUFSIZ@GOTPAGEOFF]
	stur	x8, [x29, #-88]
	ldr	w8, [x27]
Lloh5:
	adrp	x20, _SHA512_DIGEST_LENGTH@GOTPAGE
Lloh6:
	ldr	x20, [x20, _SHA512_DIGEST_LENGTH@GOTPAGEOFF]
	ldr	w9, [x20]
	add	w23, w9, w8
	mov	x9, x23
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x12, x9, #0x1fffffff0
	sub	x28, x8, x12
	mov	sp, x28
	mov	x9, x23
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x24, x8, x12
	mov	sp, x24
	cbz	x3, LBB0_9
; %bb.1:
Lloh11:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x25
	mov	w2, #0
	bl	_open
	mov	x26, x0
	tbz	w0, #31, LBB0_3
; %bb.2:
	str	x25, [sp, #-16]!
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
	add	sp, sp, #16
LBB0_3:
	ldr	w2, [x27]
	mov	x0, x26
	mov	x1, x28
	bl	_read
	mov	x27, x0
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.4:
	str	x25, [sp, #-16]!
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
	add	sp, sp, #16
LBB0_5:
	mov	x0, x26
	bl	_close
	mov	x0, x19
	mov	x1, x28
	mov	x2, x27
	bl	_g_bde_hash_pass
	ldr	w1, [x19]
	ldr	w2, [x20]
	mov	x0, x28
	bl	_memcpy
	ldr	w1, [x19]
	ldr	w2, [x20]
	mov	x0, x24
	bl	_memcpy
	ldr	w26, [x20]
Lloh18:
	adrp	x27, _BUFSIZ@GOTPAGE
Lloh19:
	ldr	x27, [x27, _BUFSIZ@GOTPAGEOFF]
	cbz	x22, LBB0_10
LBB0_6:
	mov	x0, x22
	bl	_strlen
	ldr	w8, [x27]
	cmp	w0, w8
	b.lt	LBB0_8
; %bb.7:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_8:
	add	x25, x28, w26, sxtw
	mov	x0, x25
	mov	x1, x22
	bl	_strcpy
	b	LBB0_20
LBB0_9:
	mov	w26, #0
	cbnz	x22, LBB0_6
LBB0_10:
	stp	x28, x19, [x29, #-104]          ; 16-byte Folded Spill
Lloh22:
	adrp	x8, l_.str.2@PAGE
Lloh23:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh24:
	adrp	x9, l_.str.3@PAGE
Lloh25:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w21, #0
	csel	x22, x9, x8, eq
	sxtw	x8, w26
	add	x25, x28, x8
	stur	x26, [x29, #-112]               ; 8-byte Folded Spill
	sub	w23, w23, w26
	add	x24, x24, x8
Lloh26:
	adrp	x19, _RPP_ECHO_OFF@GOTPAGE
Lloh27:
	ldr	x19, [x19, _RPP_ECHO_OFF@GOTPAGEOFF]
Lloh28:
	adrp	x28, _RPP_REQUIRE_TTY@GOTPAGE
Lloh29:
	ldr	x28, [x28, _RPP_REQUIRE_TTY@GOTPAGEOFF]
Lloh30:
	adrp	x20, l_str@PAGE
Lloh31:
	add	x20, x20, l_str@PAGEOFF
Lloh32:
	adrp	x27, l_.str.5@PAGE
Lloh33:
	add	x27, x27, l_.str.5@PAGEOFF
Lloh34:
	adrp	x26, l_str.8@PAGE
Lloh35:
	add	x26, x26, l_str.8@PAGEOFF
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x25
	bl	_strlen
	mov	x8, x0
	mov	x0, x20
	cmp	w8, #3
	b.ge	LBB0_19
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	bl	_puts
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	ldr	w9, [x28]
	orr	w3, w9, w8
	mov	x0, x22
	mov	x1, x25
	mov	x2, x23
	bl	_readpassphrase
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	cbnz	w21, LBB0_16
	b	LBB0_11
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	w0, #1
Lloh36:
	adrp	x1, l_.str.4@PAGE
Lloh37:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_err
	cbz	w21, LBB0_11
LBB0_16:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x28]
	orr	w3, w9, w8
	mov	x0, x27
	mov	x1, x24
	mov	x2, x23
	bl	_readpassphrase
	cbnz	x0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w0, #1
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_err
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x25
	mov	x1, x24
	bl	_strcmp
	mov	x8, x0
	mov	x0, x26
	cbnz	x8, LBB0_12
	b	LBB0_11
LBB0_19:
	ldp	x28, x19, [x29, #-104]          ; 16-byte Folded Reload
Lloh40:
	adrp	x20, _SHA512_DIGEST_LENGTH@GOTPAGE
Lloh41:
	ldr	x20, [x20, _SHA512_DIGEST_LENGTH@GOTPAGEOFF]
	ldur	x26, [x29, #-112]               ; 8-byte Folded Reload
LBB0_20:
	mov	x0, x25
	bl	_strlen
	add	w2, w0, w26
	mov	x0, x19
	mov	x1, x28
	bl	_g_bde_hash_pass
Lloh42:
	adrp	x8, _sha2@GOTPAGE
Lloh43:
	ldr	x8, [x8, _sha2@GOTPAGEOFF]
Lloh44:
	ldr	x0, [x8]
	ldr	w1, [x19]
	ldr	w2, [x20]
	bl	_memcpy
	ldur	x8, [x29, #-88]
Lloh45:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh46:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.comm	_SHA512_DIGEST_LENGTH,4,2       ; @SHA512_DIGEST_LENGTH
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"Passphrase too long"

	.comm	_sha2,8,3                       ; @sha2
l_.str.2:                               ; @.str.2
	.asciz	"Enter new passphrase:"

l_.str.3:                               ; @.str.3
	.asciz	"Enter passphrase: "

	.comm	_RPP_ECHO_OFF,4,2               ; @RPP_ECHO_OFF
	.comm	_RPP_REQUIRE_TTY,4,2            ; @RPP_REQUIRE_TTY
l_.str.4:                               ; @.str.4
	.asciz	"readpassphrase"

l_.str.5:                               ; @.str.5
	.asciz	"Reenter new passphrase: "

l_str:                                  ; @str
	.asciz	"Too short passphrase."

l_str.8:                                ; @str.8
	.asciz	"They didn't match."

	.no_dead_strip	_setup_passphrase
.subsections_via_symbols
