	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scram_SaltedPassword           ## -- Begin function scram_SaltedPassword
	.p2align	4, 0x90
_scram_SaltedPassword:                  ## @scram_SaltedPassword
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_strlen
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	$1, %edi
	callq	_pg_hton32
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movl	%eax, -68(%rbp)
	movq	_SCRAM_KEY_LEN@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movl	(%r15), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leaq	-52(%rbp), %rdi
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	%r14, %rsi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_scram_HMAC_init
	leaq	-52(%rbp), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_scram_HMAC_update
	leaq	-68(%rbp), %rsi
	leaq	-52(%rbp), %rdi
	movq	%rdi, %r14
	movl	$4, %edx
	callq	_scram_HMAC_update
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_scram_HMAC_final
	movl	(%r15), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_memcpy
	cmpl	$2, -60(%rbp)                   ## 4-byte Folded Reload
	jge	LBB0_1
LBB0_6:
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	$2, %r14d
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	leal	1(%r14), %eax
	cmpl	-60(%rbp), %r14d                ## 4-byte Folded Reload
	movl	%eax, %r14d
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	leaq	-52(%rbp), %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_scram_HMAC_init
	movl	(%r15), %edx
	leaq	-52(%rbp), %rdi
	movq	%r12, %rsi
	callq	_scram_HMAC_update
	movq	%rbx, %rdi
	leaq	-52(%rbp), %rsi
	callq	_scram_HMAC_final
	movl	(%r15), %edx
	testl	%edx, %edx
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx,%rax,4), %ecx
	xorl	%ecx, (%r13,%rax,4)
	incq	%rax
	movslq	(%r15), %rdx
	cmpq	%rdx, %rax
	jl	LBB0_4
	jmp	LBB0_5
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.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	_scram_SaltedPassword           ; -- Begin function scram_SaltedPassword
	.p2align	2
_scram_SaltedPassword:                  ; @scram_SaltedPassword
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x19, x4
	mov	x20, x3
	mov	x25, x2
	mov	x26, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_strlen
	mov	x22, x0
	mov	w0, #1
	bl	_pg_hton32
	mov	x27, sp
	stur	w0, [x29, #-92]
Lloh3:
	adrp	x28, _SCRAM_KEY_LEN@GOTPAGE
Lloh4:
	ldr	x28, [x28, _SCRAM_KEY_LEN@GOTPAGEOFF]
	ldr	w8, [x28]
	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	x23, x9, x8
	mov	sp, x23
	ldr	w8, [x28]
	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	x24, x9, x8
	mov	sp, x24
	sub	x0, x29, #96
	mov	x1, x21
	mov	x2, x22
	bl	_scram_HMAC_init
	sub	x0, x29, #96
	mov	x1, x26
	mov	x2, x25
	bl	_scram_HMAC_update
	sub	x0, x29, #96
	sub	x1, x29, #92
	mov	w2, #4
	bl	_scram_HMAC_update
	sub	x1, x29, #96
	mov	x0, x24
	bl	_scram_HMAC_final
	ldr	w2, [x28]
	mov	x0, x19
	mov	x1, x24
	bl	_memcpy
	cmp	w20, #2
	b.ge	LBB0_3
LBB0_1:
	mov	sp, x27
	ldur	x8, [x29, #-88]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.2:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	w25, #2
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	mov	x1, x23
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	add	w8, w25, #1
	cmp	w25, w20
	mov	x25, x8
	b.eq	LBB0_1
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	sub	x0, x29, #96
	mov	x1, x21
	mov	x2, x22
	bl	_scram_HMAC_init
	ldr	w2, [x28]
	sub	x0, x29, #96
	mov	x1, x24
	bl	_scram_HMAC_update
	sub	x1, x29, #96
	mov	x0, x23
	bl	_scram_HMAC_final
	ldr	w2, [x28]
	cmp	w2, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, #0
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x9, x8, #2
	ldr	w10, [x23, x9]
	ldr	w11, [x19, x9]
	eor	w10, w11, w10
	str	w10, [x19, x9]
	add	x8, x8, #1
	ldrsw	x2, [x28]
	cmp	x8, x2
	b.lt	LBB0_7
	b	LBB0_4
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SCRAM_KEY_LEN,4,2              ; @SCRAM_KEY_LEN
.subsections_via_symbols
