	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_curve448_scalar_halve          ## -- Begin function curve448_scalar_halve
	.p2align	4, 0x90
_curve448_scalar_halve:                 ## @curve448_scalar_halve
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movq	_C448_SCALAR_LIMBS@GOTPCREL(%rip), %r8
	cmpl	$0, (%r8)
	je	LBB0_1
## %bb.4:
	movq	(%rsi), %r9
	movl	(%r9), %ecx
	movl	%ecx, %edx
	andl	$1, %edx
	negl	%edx
	movq	_sc_p@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r10
	movq	(%rdi), %rsi
	movl	(%r10), %eax
	andl	%edx, %eax
	addl	%ecx, %eax
	movl	%eax, (%rsi)
	movq	_C448_WORD_BITS@GOTPCREL(%rip), %r11
	movb	(%r11), %cl
	sarl	%cl, %eax
	movl	(%r8), %ecx
	cmpl	$2, %ecx
	jb	LBB0_7
## %bb.5:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	addl	(%r9,%rbx,4), %eax
	movl	(%r10,%rbx,4), %ecx
	andl	%edx, %ecx
	addl	%ecx, %eax
	movl	%eax, (%rsi,%rbx,4)
	movzbl	(%r11), %ecx
	sarl	%cl, %eax
	incq	%rbx
	movl	(%r8), %ecx
	cmpq	%rcx, %rbx
	jb	LBB0_6
LBB0_7:
	cmpl	$1, %ecx
	jne	LBB0_2
## %bb.8:
	movq	(%rdi), %r10
	xorl	%edx, %edx
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
LBB0_2:
	movq	(%rdi), %r10
	movl	(%r10), %ebx
	xorl	%edx, %edx
	movq	_WBITS@GOTPCREL(%rip), %r9
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r10,%rdx,4), %esi
	movzbl	(%r9), %ecx
	decb	%cl
	movl	%esi, %edi
	shll	%cl, %edi
	sarl	%ebx
	orl	%ebx, %edi
	movl	%edi, (%r10,%rdx,4)
	incq	%rdx
	movl	(%r8), %ecx
	decl	%ecx
	movl	%esi, %ebx
	cmpq	%rcx, %rdx
	jb	LBB0_3
LBB0_9:
	movq	_WBITS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	decb	%cl
	shll	%cl, %eax
	movl	(%r10,%rdx,4), %ecx
	sarl	%ecx
	orl	%ecx, %eax
	movl	%eax, (%r10,%rdx,4)
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_C448_SCALAR_LIMBS,4,2          ## @C448_SCALAR_LIMBS
	.comm	_sc_p,8,3                       ## @sc_p
	.comm	_C448_WORD_BITS,4,2             ## @C448_WORD_BITS
	.comm	_WBITS,4,2                      ## @WBITS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_curve448_scalar_halve          ; -- Begin function curve448_scalar_halve
	.p2align	2
_curve448_scalar_halve:                 ; @curve448_scalar_halve
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _C448_SCALAR_LIMBS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _C448_SCALAR_LIMBS@GOTPAGEOFF]
	ldr	w10, [x9]
Lloh2:
	adrp	x8, _WBITS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WBITS@GOTPAGEOFF]
	cbz	w10, LBB0_6
; %bb.1:
	ldr	x11, [x1]
	ldr	w10, [x11]
	and	w14, w10, #0x1
Lloh4:
	adrp	x12, _sc_p@GOTPAGE
Lloh5:
	ldr	x12, [x12, _sc_p@GOTPAGEOFF]
Lloh6:
	ldr	x12, [x12]
	ldr	x12, [x12]
	ldr	x13, [x0]
	ldr	w15, [x12]
	neg	w14, w14
	and	w15, w15, w14
	add	w10, w10, w15
	str	w10, [x13]
Lloh7:
	adrp	x15, _C448_WORD_BITS@GOTPAGE
Lloh8:
	ldr	x15, [x15, _C448_WORD_BITS@GOTPAGEOFF]
	ldr	w16, [x15]
	asr	w10, w10, w16
	ldr	w17, [x9]
	cmp	w17, #2
	b.lo	LBB0_4
; %bb.2:
	mov	w16, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x17, x16, #2
	ldr	w1, [x11, x17]
	ldr	w2, [x12, x17]
	and	w2, w2, w14
	add	w10, w1, w10
	add	w10, w10, w2
	str	w10, [x13, x17]
	ldr	w17, [x15]
	asr	w10, w10, w17
	add	x16, x16, #1
	ldr	w17, [x9]
	cmp	x16, x17
	b.lo	LBB0_3
LBB0_4:
	cmp	w17, #1
	b.ne	LBB0_6
; %bb.5:
	mov	x12, #0
	ldr	x11, [x0]
	b	LBB0_8
LBB0_6:
	mov	x12, #0
	ldr	x11, [x0]
	ldr	w13, [x11]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x14, x11, x12, lsl #2
	add	x12, x12, #1
	ldr	w15, [x14, #4]
	ldr	w16, [x8]
	sub	w16, w16, #1
	lsl	w16, w15, w16
	orr	w13, w16, w13, asr #1
	str	w13, [x14]
	ldr	w13, [x9]
	sub	w14, w13, #1
	mov	x13, x15
	cmp	x12, x14
	b.lo	LBB0_7
LBB0_8:
	lsl	x9, x12, #2
	ldr	w12, [x11, x9]
	ldr	w8, [x8]
	sub	w8, w8, #1
	lsl	w8, w10, w8
	orr	w8, w8, w12, asr #1
	str	w8, [x11, x9]
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_C448_SCALAR_LIMBS,4,2          ; @C448_SCALAR_LIMBS
	.comm	_sc_p,8,3                       ; @sc_p
	.comm	_C448_WORD_BITS,4,2             ; @C448_WORD_BITS
	.comm	_WBITS,4,2                      ; @WBITS
.subsections_via_symbols
