	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_scram_secret             ## -- Begin function parse_scram_secret
	.p2align	4, 0x90
_parse_scram_secret:                    ## @parse_scram_secret
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r13
	callq	_pstrdup
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_strtok
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	callq	_strtok
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	callq	_strtok
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movq	%rax, %r12
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	callq	_strtok
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	callq	_strtok
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
LBB0_12:
	movq	$0, (%rbx)
	xorl	%eax, %eax
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_errno@GOTPCREL(%rip), %r15
	movq	$0, (%r15)
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, (%r13)
	movq	-80(%rbp), %rax
	cmpb	$0, (%rax)
	jne	LBB0_12
## %bb.7:
	cmpq	$0, (%r15)
	jne	LBB0_12
## %bb.8:
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, %edi
	callq	_pg_b64_dec_len
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_palloc
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_pg_b64_decode
	testl	%eax, %eax
	js	LBB0_12
## %bb.9:
	movq	%r12, %rdi
	callq	_pstrdup
	movq	%rax, (%rbx)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, %edi
	callq	_pg_b64_dec_len
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_palloc
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	callq	_pg_b64_decode
	movq	_SCRAM_KEY_LEN@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_12
## %bb.10:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_strlen
	movl	%eax, %edi
	callq	_pg_b64_dec_len
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_palloc
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_strlen
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	callq	_pg_b64_decode
	cmpl	(%r12), %eax
	jne	LBB0_12
## %bb.11:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movl	$1, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"$"

L_.str.1:                               ## @.str.1
	.asciz	":"

L_.str.2:                               ## @.str.2
	.space	1

L_.str.3:                               ## @.str.3
	.asciz	"SCRAM-SHA-256"

	.comm	_errno,8,3                      ## @errno
	.comm	_SCRAM_KEY_LEN,4,2              ## @SCRAM_KEY_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parse_scram_secret             ; -- Begin function parse_scram_secret
	.p2align	2
_parse_scram_secret:                    ; @parse_scram_secret
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x21, x3
	mov	x20, x2
	mov	x25, x1
	bl	_pstrdup
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strtok
	cbz	x0, LBB0_6
; %bb.1:
	mov	x27, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_strtok
	cbz	x0, LBB0_6
; %bb.2:
	mov	x26, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, #0
	bl	_strtok
	cbz	x0, LBB0_6
; %bb.3:
	mov	x24, x0
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_strtok
	cbz	x0, LBB0_6
; %bb.4:
	mov	x23, x0
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_strtok
	cbz	x0, LBB0_6
; %bb.5:
	mov	x22, x0
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x27
	bl	_strcmp
	cbz	x0, LBB0_8
LBB0_6:
	mov	w0, #0
	str	xzr, [x20]
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
Lloh12:
	adrp	x27, _errno@GOTPAGE
Lloh13:
	ldr	x27, [x27, _errno@GOTPAGEOFF]
	str	xzr, [x27]
	add	x1, sp, #8
	mov	x0, x26
	mov	w2, #10
	bl	_strtol
	str	w0, [x25]
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_6
; %bb.9:
	ldr	x8, [x27]
	cbnz	x8, LBB0_6
; %bb.10:
	mov	x0, x24
	bl	_strlen
	bl	_pg_b64_dec_len
	mov	x25, x0
	bl	_palloc
	mov	x26, x0
	mov	x0, x24
	bl	_strlen
	mov	x1, x0
	mov	x0, x24
	mov	x2, x26
	mov	x3, x25
	bl	_pg_b64_decode
	tbnz	w0, #31, LBB0_6
; %bb.11:
	mov	x0, x24
	bl	_pstrdup
	str	x0, [x20]
	mov	x0, x23
	bl	_strlen
	bl	_pg_b64_dec_len
	mov	x25, x0
	bl	_palloc
	mov	x24, x0
	mov	x0, x23
	bl	_strlen
	mov	x1, x0
	mov	x0, x23
	mov	x2, x24
	mov	x3, x25
	bl	_pg_b64_decode
Lloh14:
	adrp	x25, _SCRAM_KEY_LEN@GOTPAGE
Lloh15:
	ldr	x25, [x25, _SCRAM_KEY_LEN@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.12:
	mov	x2, x0
	mov	x0, x21
	mov	x1, x24
	bl	_memcpy
	mov	x0, x22
	bl	_strlen
	bl	_pg_b64_dec_len
	mov	x23, x0
	bl	_palloc
	mov	x21, x0
	mov	x0, x22
	bl	_strlen
	mov	x1, x0
	mov	x0, x22
	mov	x2, x21
	mov	x3, x23
	bl	_pg_b64_decode
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.13:
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_memcpy
	mov	w0, #1
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"$"

l_.str.1:                               ; @.str.1
	.asciz	":"

l_.str.2:                               ; @.str.2
	.space	1

l_.str.3:                               ; @.str.3
	.asciz	"SCRAM-SHA-256"

	.comm	_errno,8,3                      ; @errno
	.comm	_SCRAM_KEY_LEN,4,2              ; @SCRAM_KEY_LEN
.subsections_via_symbols
