	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_su_pwd
_get_su_pwd:                            ## @get_su_pwd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$224, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_pwprompt@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movl	$10, %edi
	callq	_putchar
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	leaq	L_.str.1(%rip), %rdi
	leaq	-128(%rbp), %r14
	movq	%r14, %rsi
	movl	$100, %edx
	xorl	%ecx, %ecx
	callq	_simple_prompt
	leaq	L_.str.2(%rip), %rdi
	leaq	-240(%rbp), %rbx
	movq	%rbx, %rsi
	movl	$100, %edx
	xorl	%ecx, %ecx
	callq	_simple_prompt
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_2
LBB0_13:
	leaq	-128(%rbp), %rdi
	callq	_pg_strdup
	movq	_superuser_password@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$224, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_pwfilename@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %rbx
	leaq	-128(%rbp), %rdi
	movl	$100, %esi
	movq	%rax, %rdx
	callq	_fgets
	movq	%rbx, %rdi
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	callq	_fclose
	leaq	-128(%rbp), %rdi
	callq	_strlen
	testl	%eax, %eax
	jle	LBB0_13
## %bb.9:
	movl	%eax, %eax
	incq	%rax
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movb	$0, -128(%rbp,%rcx)
	decq	%rax
	cmpq	$1, %rax
	jbe	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rax), %ecx
	movzbl	-128(%rbp,%rcx), %edx
	cmpb	$13, %dl
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpb	$10, %dl
	je	LBB0_12
	jmp	LBB0_13
LBB0_15:
	callq	___stack_chk_fail
LBB0_2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_4:
	movl	(%r14), %esi
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_5
LBB0_7:
	callq	_ferror
	testq	%rax, %rax
	movl	(%r14), %esi
	leaq	L_.str.7(%rip), %rax
	leaq	L_.str.6(%rip), %rdi
	cmoveq	%rax, %rdi
LBB0_5:
	callq	_pg_log_error
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_pwprompt,8,3                   ## @pwprompt
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Enter new superuser password: "

L_.str.2:                               ## @.str.2
	.asciz	"Enter it again: "

	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"Passwords didn't match.\n"

	.comm	_pwfilename,4,2                 ## @pwfilename
L_.str.4:                               ## @.str.4
	.asciz	"r"

L_.str.5:                               ## @.str.5
	.asciz	"could not open file \"%s\" for reading: %m"

L_.str.6:                               ## @.str.6
	.asciz	"could not read password from file \"%s\": %m"

L_.str.7:                               ## @.str.7
	.asciz	"password file \"%s\" is empty"

	.comm	_superuser_password,4,2         ## @superuser_password
	.no_dead_strip	_get_su_pwd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_su_pwd
_get_su_pwd:                            ; @get_su_pwd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _pwprompt@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pwprompt@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	w0, #10
	bl	_putchar
Lloh6:
	adrp	x8, _stdout@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_fflush
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #100
	mov	w2, #100
	mov	w3, #0
	bl	_simple_prompt
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, sp
	mov	w2, #100
	mov	w3, #0
	bl	_simple_prompt
	add	x0, sp, #100
	mov	x1, sp
	bl	_strcmp
	cbnz	x0, LBB0_11
LBB0_2:
	add	x0, sp, #100
	bl	_pg_strdup
Lloh13:
	adrp	x8, _superuser_password@GOTPAGE
Lloh14:
	ldr	x8, [x8, _superuser_password@GOTPAGEOFF]
Lloh15:
	str	w0, [x8]
	ldur	x8, [x29, #-24]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.3:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_4:
Lloh19:
	adrp	x20, _pwfilename@GOTPAGE
Lloh20:
	ldr	x20, [x20, _pwfilename@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_12
; %bb.5:
	mov	x19, x0
	add	x0, sp, #100
	mov	w1, #100
	mov	x2, x19
	bl	_fgets
	cbz	w0, LBB0_13
; %bb.6:
	mov	x0, x19
	bl	_fclose
	add	x19, sp, #100
	add	x0, sp, #100
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.7:
	mov	w8, w0
	add	x8, x8, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	w9, w8, #2
	ldrb	w10, [x19, x9]
	cmp	w10, #13
	ccmp	w10, #10, #4, ne
	b.ne	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	strb	wzr, [x19, x9]
	sub	x8, x8, #1
	cmp	x8, #1
	b.hi	LBB0_8
	b	LBB0_2
LBB0_10:
	bl	___stack_chk_fail
LBB0_11:
Lloh23:
	adrp	x8, _stderr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh25:
	ldr	w19, [x8]
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x19
	bl	_fprintf
	mov	w0, #1
	bl	_exit
LBB0_12:
	ldr	w1, [x20]
Lloh28:
	adrp	x0, l_.str.5@PAGE
Lloh29:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_ferror
	ldr	w1, [x20]
Lloh30:
	adrp	x8, l_.str.6@PAGE
Lloh31:
	add	x8, x8, l_.str.6@PAGEOFF
Lloh32:
	adrp	x9, l_.str.7@PAGE
Lloh33:
	add	x9, x9, l_.str.7@PAGEOFF
	cmp	x0, #0
	csel	x0, x9, x8, eq
LBB0_14:
	bl	_pg_log_error
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_pwprompt,8,3                   ; @pwprompt
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Enter new superuser password: "

l_.str.2:                               ; @.str.2
	.asciz	"Enter it again: "

	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"Passwords didn't match.\n"

	.comm	_pwfilename,4,2                 ; @pwfilename
l_.str.4:                               ; @.str.4
	.asciz	"r"

l_.str.5:                               ; @.str.5
	.asciz	"could not open file \"%s\" for reading: %m"

l_.str.6:                               ; @.str.6
	.asciz	"could not read password from file \"%s\": %m"

l_.str.7:                               ; @.str.7
	.asciz	"password file \"%s\" is empty"

	.comm	_superuser_password,4,2         ; @superuser_password
	.no_dead_strip	_get_su_pwd
.subsections_via_symbols
