	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_curve448_scalar_decode_long    ## -- Begin function curve448_scalar_decode_long
	.p2align	4, 0x90
_curve448_scalar_decode_long:           ## @curve448_scalar_decode_long
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	_C448_SCALAR_BYTES@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movq	%rdx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_2
## %bb.3:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_4
LBB0_10:
	movq	_curve448_scalar_zero@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_curve448_scalar_copy           ## TAILCALL
LBB0_2:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_4:
	xorl	%eax, %eax
	testq	%rdx, %rdx
	cmoveq	%rcx, %rax
	addq	%rdx, %rax
	movq	%r15, %rbx
	subq	%rax, %rbx
	leaq	(%rbx,%r13), %rsi
	movq	%rax, %rdx
	callq	_scalar_decode_short
	cmpq	$4, %r15
	jne	LBB0_5
## %bb.11:
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_assert
	movq	_curve448_scalar_one@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	callq	_curve448_scalar_mul
	jmp	LBB0_9
LBB0_5:
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.6:
	movq	_sc_r2@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	subq	(%r12), %rbx
	movl	(%r15), %edx
	callq	_sc_montmul
	leaq	(%rbx,%r13), %rsi
	callq	_curve448_scalar_decode
	callq	_curve448_scalar_add
	testq	%rbx, %rbx
	jne	LBB0_7
LBB0_8:
	movl	%r14d, %edi
	callq	_curve448_scalar_copy
	callq	_curve448_scalar_destroy
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_curve448_scalar_destroy        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_curve448_scalar_zero,4,2       ## @curve448_scalar_zero
	.comm	_C448_SCALAR_BYTES,8,3          ## @C448_SCALAR_BYTES
	.comm	_curve448_scalar_one,4,2        ## @curve448_scalar_one
	.comm	_sc_r2,4,2                      ## @sc_r2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_curve448_scalar_decode_long    ; -- Begin function curve448_scalar_decode_long
	.p2align	2
_curve448_scalar_decode_long:           ; @curve448_scalar_decode_long
	.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
	mov	x19, x0
	cbz	x2, LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x20, x1
Lloh0:
	adrp	x22, _C448_SCALAR_BYTES@GOTPAGE
Lloh1:
	ldr	x22, [x22, _C448_SCALAR_BYTES@GOTPAGEOFF]
	ldr	x8, [x22]
	udiv	x9, x2, x8
	msub	x9, x9, x8, x2
	cmp	x9, #0
	csel	x8, x8, xzr, eq
	add	x2, x8, x9
	sub	x23, x21, x2
	add	x1, x1, x23
	bl	_scalar_decode_short
	cmp	x21, #4
	b.ne	LBB0_4
; %bb.2:
	cmp	x23, #0
	cset	w0, eq
	bl	_assert
Lloh2:
	adrp	x8, _curve448_scalar_one@GOTPAGE
Lloh3:
	ldr	x8, [x8, _curve448_scalar_one@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_curve448_scalar_mul
	b	LBB0_8
LBB0_3:
Lloh5:
	adrp	x8, _curve448_scalar_zero@GOTPAGE
Lloh6:
	ldr	x8, [x8, _curve448_scalar_zero@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_curve448_scalar_copy
LBB0_4:
	cbz	x23, LBB0_7
; %bb.5:
Lloh8:
	adrp	x21, _sc_r2@GOTPAGE
Lloh9:
	ldr	x21, [x21, _sc_r2@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	sub	x23, x23, x8
	ldr	w2, [x21]
	bl	_sc_montmul
	add	x1, x20, x23
	bl	_curve448_scalar_decode
	bl	_curve448_scalar_add
	cbnz	x23, LBB0_6
LBB0_7:
	mov	x0, x19
	bl	_curve448_scalar_copy
	bl	_curve448_scalar_destroy
LBB0_8:
	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
	b	_curve448_scalar_destroy
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_curve448_scalar_zero,4,2       ; @curve448_scalar_zero
	.comm	_C448_SCALAR_BYTES,8,3          ; @C448_SCALAR_BYTES
	.comm	_curve448_scalar_one,4,2        ; @curve448_scalar_one
	.comm	_sc_r2,4,2                      ; @sc_r2
.subsections_via_symbols
