	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pwdbopen
_pwdbopen:                              ## @pwdbopen
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_geteuid
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	__PATH_SMP_DB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DB_HASH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_dbopen
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_3
LBB0_2:
	movq	__PATH_MP_DB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DB_HASH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_dbopen
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_10
LBB0_3:
	movq	__PWD_VERSION_KEY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, -40(%rbp)
	callq	_strlen
	movl	%eax, -32(%rbp)
	leaq	-40(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	*(%r15)
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	$3, (%r14)
	movl	$3, %ebx
	jmp	LBB0_6
LBB0_5:
	movq	-56(%rbp), %rax
	movzbl	(%rax), %ebx
	movl	%ebx, (%r14)
	cmpl	$3, %ebx
	jb	LBB0_9
LBB0_6:
	movq	_pwdb_versions@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_nitems
	cmpl	%eax, %ebx
	jge	LBB0_8
## %bb.7:
	movq	%r15, %rbx
	jmp	LBB0_10
LBB0_8:
	movl	(%r14), %ebx
LBB0_9:
	movq	_LOG_CRIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_syslog
	movq	%r15, %rdi
	callq	*8(%r15)
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__PATH_SMP_DB,4,2               ## @_PATH_SMP_DB
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_DB_HASH,4,2                    ## @DB_HASH
	.comm	__PATH_MP_DB,4,2                ## @_PATH_MP_DB
	.comm	__PWD_VERSION_KEY,8,3           ## @_PWD_VERSION_KEY
	.comm	_pwdb_versions,4,2              ## @pwdb_versions
	.comm	_LOG_CRIT,4,2                   ## @LOG_CRIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported password database version %d"

	.no_dead_strip	_pwdbopen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pwdbopen
_pwdbopen:                              ; @pwdbopen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	bl	_geteuid
Lloh0:
	adrp	x21, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x21, [x21, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	adrp	x22, _DB_HASH@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DB_HASH@GOTPAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, __PATH_SMP_DB@GOTPAGE
Lloh5:
	ldr	x8, [x8, __PATH_SMP_DB@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w1, [x21]
	ldr	w3, [x22]
	mov	w2, #0
	mov	x4, #0
	bl	_dbopen
	mov	x20, x0
	cbnz	x0, LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, __PATH_MP_DB@GOTPAGE
Lloh8:
	ldr	x8, [x8, __PATH_MP_DB@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w1, [x21]
	ldr	w3, [x22]
	mov	w2, #0
	mov	x4, #0
	bl	_dbopen
	mov	x20, x0
	cbz	x0, LBB0_9
LBB0_3:
Lloh10:
	adrp	x8, __PWD_VERSION_KEY@GOTPAGE
Lloh11:
	ldr	x8, [x8, __PWD_VERSION_KEY@GOTPAGEOFF]
Lloh12:
	ldr	x0, [x8]
	str	x0, [sp, #16]
	bl	_strlen
	str	w0, [sp, #24]
	ldr	x8, [x20]
	add	x1, sp, #16
	mov	x2, sp
	mov	x0, x20
	mov	w3, #0
	blr	x8
	cbz	w0, LBB0_5
; %bb.4:
	mov	w21, #3
	str	w21, [x19]
	b	LBB0_6
LBB0_5:
	ldr	x8, [sp]
	ldrb	w21, [x8]
	str	w21, [x19]
	cmp	w21, #3
	b.lo	LBB0_8
LBB0_6:
Lloh13:
	adrp	x8, _pwdb_versions@GOTPAGE
Lloh14:
	ldr	x8, [x8, _pwdb_versions@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_nitems
	cmp	w21, w0
	b.lt	LBB0_9
; %bb.7:
	ldr	w21, [x19]
LBB0_8:
Lloh16:
	adrp	x8, _LOG_CRIT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LOG_CRIT@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_syslog
	ldr	x8, [x20, #8]
	mov	x0, x20
	blr	x8
	mov	x20, #0
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	__PATH_SMP_DB,4,2               ; @_PATH_SMP_DB
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_DB_HASH,4,2                    ; @DB_HASH
	.comm	__PATH_MP_DB,4,2                ; @_PATH_MP_DB
	.comm	__PWD_VERSION_KEY,8,3           ; @_PWD_VERSION_KEY
	.comm	_pwdb_versions,4,2              ; @pwdb_versions
	.comm	_LOG_CRIT,4,2                   ; @LOG_CRIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported password database version %d"

	.no_dead_strip	_pwdbopen
.subsections_via_symbols
