	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_password_type              ## -- Begin function get_password_type
	.p2align	4, 0x90
_get_password_type:                     ## @get_password_type
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SCRAM_KEY_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	(%rbx), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	%r13, %rdi
	callq	_strlen
	movq	_MD5_PASSWD_LEN@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_4
## %bb.2:
	leaq	3(%r13), %rdi
	movq	_MD5_PASSWD_CHARSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strspn
	movl	(%rbx), %ecx
	addl	$-3, %ecx
	cmpl	%ecx, %eax
	jne	LBB0_4
## %bb.3:
	movq	_PASSWORD_TYPE_MD5@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	leaq	-52(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_parse_scram_secret
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movq	_PASSWORD_TYPE_PLAINTEXT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_PASSWORD_TYPE_SCRAM_SHA_256@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SCRAM_KEY_LEN,4,2              ## @SCRAM_KEY_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"md5"

	.comm	_MD5_PASSWD_LEN,4,2             ## @MD5_PASSWD_LEN
	.comm	_MD5_PASSWD_CHARSET,4,2         ## @MD5_PASSWD_CHARSET
	.comm	_PASSWORD_TYPE_MD5,4,2          ## @PASSWORD_TYPE_MD5
	.comm	_PASSWORD_TYPE_SCRAM_SHA_256,4,2 ## @PASSWORD_TYPE_SCRAM_SHA_256
	.comm	_PASSWORD_TYPE_PLAINTEXT,4,2    ## @PASSWORD_TYPE_PLAINTEXT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_password_type              ; -- Begin function get_password_type
	.p2align	2
_get_password_type:                     ; @get_password_type
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #32
	mov	x19, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x12, _SCRAM_KEY_LEN@GOTPAGE
Lloh4:
	ldr	x12, [x12, _SCRAM_KEY_LEN@GOTPAGEOFF]
	ldr	w8, [x12]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w8, [x12]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #3
	bl	_strncmp
	cbnz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_strlen
Lloh11:
	adrp	x23, _MD5_PASSWD_LEN@GOTPAGE
Lloh12:
	ldr	x23, [x23, _MD5_PASSWD_LEN@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
	add	x0, x19, #3
Lloh13:
	adrp	x8, _MD5_PASSWD_CHARSET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MD5_PASSWD_CHARSET@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_strspn
	ldr	w8, [x23]
	sub	w8, w8, #3
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
Lloh16:
	adrp	x8, _PASSWORD_TYPE_MD5@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PASSWORD_TYPE_MD5@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	sub	x1, x29, #68
	sub	x2, x29, #64
	mov	x0, x19
	mov	x3, x20
	mov	x4, x21
	bl	_parse_scram_secret
Lloh18:
	adrp	x8, _PASSWORD_TYPE_SCRAM_SHA_256@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PASSWORD_TYPE_SCRAM_SHA_256@GOTPAGEOFF]
Lloh20:
	adrp	x9, _PASSWORD_TYPE_PLAINTEXT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PASSWORD_TYPE_PLAINTEXT@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
LBB0_5:
	ldr	w0, [x8]
	mov	sp, x22
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_SCRAM_KEY_LEN,4,2              ; @SCRAM_KEY_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"md5"

	.comm	_MD5_PASSWD_LEN,4,2             ; @MD5_PASSWD_LEN
	.comm	_MD5_PASSWD_CHARSET,4,2         ; @MD5_PASSWD_CHARSET
	.comm	_PASSWORD_TYPE_MD5,4,2          ; @PASSWORD_TYPE_MD5
	.comm	_PASSWORD_TYPE_SCRAM_SHA_256,4,2 ; @PASSWORD_TYPE_SCRAM_SHA_256
	.comm	_PASSWORD_TYPE_PLAINTEXT,4,2    ; @PASSWORD_TYPE_PLAINTEXT
.subsections_via_symbols
