	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_auth_password                  ## -- Begin function auth_password
	.p2align	4, 0x90
_auth_password:                         ## @auth_password
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	%rsi, %rdi
	callq	_strlen
	movq	%rax, %rcx
	movq	_MAX_PASSWORD_LEN@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jg	LBB0_6
## %bb.1:
	movl	(%r15), %edx
	movq	8(%r15), %rsi
	movq	_options@GOTPCREL(%rip), %rcx
	movq	_PERMIT_YES@GOTPCREL(%rip), %rdi
	movq	(%rcx), %rbx
	xorl	%eax, %eax
	cmpq	(%rdi), %rbx
	movl	$0, %ebx
	cmovel	%edx, %ebx
	cmpq	$0, (%rsi)
	cmovnel	%edx, %ebx
	cmpb	$0, (%r12)
	jne	LBB0_3
## %bb.2:
	cmpq	$0, 8(%rcx)
	je	LBB0_6
LBB0_3:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_sys_auth_passwd
	movl	%eax, %r12d
	cmpl	$0, 4(%r15)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_auth_restrict_session
LBB0_5:
	testl	%r12d, %r12d
	setne	%al
	testl	%ebx, %ebx
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PASSWORD_LEN,8,3           ## @MAX_PASSWORD_LEN
	.comm	_options,32,3                   ## @options
	.comm	_PERMIT_YES,8,3                 ## @PERMIT_YES
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_auth_password                  ; -- Begin function auth_password
	.p2align	2
_auth_password:                         ; @auth_password
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
	mov	x0, x1
	bl	_strlen
Lloh0:
	adrp	x8, _MAX_PASSWORD_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_PASSWORD_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_7
LBB0_2:
	ldr	w9, [x21]
	ldr	x8, [x21, #8]
	ldr	x10, [x8]
Lloh3:
	adrp	x8, _options@GOTPAGE
Lloh4:
	ldr	x8, [x8, _options@GOTPAGEOFF]
	ldr	x11, [x8]
Lloh5:
	adrp	x12, _PERMIT_YES@GOTPAGE
Lloh6:
	ldr	x12, [x12, _PERMIT_YES@GOTPAGEOFF]
Lloh7:
	ldr	x12, [x12]
	cmp	x11, x12
	csel	w11, w9, wzr, eq
	cmp	x10, #0
	csel	w22, w11, w9, eq
	ldrb	w9, [x20]
	cbnz	w9, LBB0_4
; %bb.3:
	mov	w0, #0
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_7
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_sys_auth_passwd
	mov	x20, x0
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_auth_restrict_session
LBB0_6:
	cmp	w20, #0
	ccmp	w22, #0, #4, ne
	cset	w0, ne
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PASSWORD_LEN,8,3           ; @MAX_PASSWORD_LEN
	.comm	_options,32,3                   ; @options
	.comm	_PERMIT_YES,8,3                 ; @PERMIT_YES
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
.subsections_via_symbols
