	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mock_scram_secret
_mock_scram_secret:                     ## @mock_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	$24, %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, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_scram_mock_salt
	movq	%rax, %r14
	movq	_SCRAM_DEFAULT_SALT_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_pg_b64_enc_len
	movl	%eax, %r15d
	leal	1(%r15), %edi
	callq	_palloc
	movq	%rax, %rbx
	movl	(%r12), %esi
	movq	%r14, %rdi
	movq	%rax, %rdx
	movl	%r15d, %ecx
	callq	_pg_b64_encode
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_2:
	movslq	%r14d, %rax
	movb	$0, (%rbx,%rax)
	movq	%rbx, (%r13)
	movq	_SCRAM_DEFAULT_ITERATIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_SCRAM_KEY_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_memset
	movl	(%rbx), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SCRAM_DEFAULT_SALT_LEN,4,2     ## @SCRAM_DEFAULT_SALT_LEN
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not encode salt"

	.comm	_SCRAM_DEFAULT_ITERATIONS,4,2   ## @SCRAM_DEFAULT_ITERATIONS
	.comm	_SCRAM_KEY_LEN,4,2              ## @SCRAM_KEY_LEN
	.no_dead_strip	_mock_scram_secret
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mock_scram_secret
_mock_scram_secret:                     ; @mock_scram_secret
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	bl	_scram_mock_salt
	mov	x24, x0
Lloh0:
	adrp	x26, _SCRAM_DEFAULT_SALT_LEN@GOTPAGE
Lloh1:
	ldr	x26, [x26, _SCRAM_DEFAULT_SALT_LEN@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_pg_b64_enc_len
	mov	x25, x0
	add	w0, w0, #1
	bl	_palloc
	mov	x23, x0
	ldr	w1, [x26]
	mov	x0, x24
	mov	x2, x23
	mov	x3, x25
	bl	_pg_b64_encode
	mov	x24, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	strb	wzr, [x23, w24, sxtw]
Lloh7:
	adrp	x8, _SCRAM_DEFAULT_ITERATIONS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SCRAM_DEFAULT_ITERATIONS@GOTPAGEOFF]
	str	x23, [x22]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x21]
Lloh10:
	adrp	x21, _SCRAM_KEY_LEN@GOTPAGE
Lloh11:
	ldr	x21, [x21, _SCRAM_KEY_LEN@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #0
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_memset
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SCRAM_DEFAULT_SALT_LEN,4,2     ; @SCRAM_DEFAULT_SALT_LEN
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not encode salt"

	.comm	_SCRAM_DEFAULT_ITERATIONS,4,2   ; @SCRAM_DEFAULT_ITERATIONS
	.comm	_SCRAM_KEY_LEN,4,2              ; @SCRAM_KEY_LEN
	.no_dead_strip	_mock_scram_secret
.subsections_via_symbols
