	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CheckPWChallengeAuth
_CheckPWChallengeAuth:                  ## @CheckPWChallengeAuth
	.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	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_uaSCRAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_uaMD5@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	movq	%rsi, %r15
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_Assert
	movl	8(%r14), %edi
	movq	%r15, %rsi
	callq	_get_role_password
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_get_password_type
	jmp	LBB0_3
LBB0_1:
	movq	_Password_encryption@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_3:
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	cmpq	(%r12), %rcx
	jne	LBB0_6
## %bb.4:
	movq	_PASSWORD_TYPE_MD5@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_CheckMD5Auth
	jmp	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_CheckSCRAMAuth
LBB0_7:
	movl	%eax, %r14d
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_pfree
	jmp	LBB0_10
LBB0_9:
	movq	_STATUS_OK@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r14d
	setne	%dil
	callq	_Assert
	movq	_STATUS_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uaSCRAM,8,3                    ## @uaSCRAM
	.comm	_uaMD5,8,3                      ## @uaMD5
	.comm	_Password_encryption,8,3        ## @Password_encryption
	.comm	_PASSWORD_TYPE_MD5,8,3          ## @PASSWORD_TYPE_MD5
	.comm	_STATUS_OK,4,2                  ## @STATUS_OK
	.comm	_STATUS_ERROR,4,2               ## @STATUS_ERROR
	.no_dead_strip	_CheckPWChallengeAuth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CheckPWChallengeAuth
_CheckPWChallengeAuth:                  ; @CheckPWChallengeAuth
	.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	x19, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _uaSCRAM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _uaSCRAM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x22, _uaMD5@GOTPAGE
Lloh4:
	ldr	x22, [x22, _uaMD5@GOTPAGEOFF]
	ldr	x9, [x22]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_Assert
	ldr	w0, [x21, #8]
	mov	x1, x19
	bl	_get_role_password
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_get_password_type
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _Password_encryption@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Password_encryption@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
LBB0_3:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x9, [x22]
Lloh8:
	adrp	x10, _PASSWORD_TYPE_MD5@GOTPAGE
Lloh9:
	ldr	x10, [x10, _PASSWORD_TYPE_MD5@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x0, x10, #0, eq
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_CheckSCRAMAuth
	mov	x19, x0
	cbz	x20, LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_pfree
	b	LBB0_8
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_CheckMD5Auth
	mov	x19, x0
	cbnz	x20, LBB0_5
LBB0_7:
Lloh11:
	adrp	x8, _STATUS_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _STATUS_OK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w19, w8
	cset	w0, ne
	bl	_Assert
Lloh14:
	adrp	x8, _STATUS_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _STATUS_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
LBB0_8:
	mov	x0, x19
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_uaSCRAM,8,3                    ; @uaSCRAM
	.comm	_uaMD5,8,3                      ; @uaMD5
	.comm	_Password_encryption,8,3        ; @Password_encryption
	.comm	_PASSWORD_TYPE_MD5,8,3          ; @PASSWORD_TYPE_MD5
	.comm	_STATUS_OK,4,2                  ; @STATUS_OK
	.comm	_STATUS_ERROR,4,2               ; @STATUS_ERROR
	.no_dead_strip	_CheckPWChallengeAuth
.subsections_via_symbols
