	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_ecdsa_i31_sign_raw          ## -- Begin function br_ecdsa_i31_sign_raw
	.p2align	4, 0x90
_br_ecdsa_i31_sign_raw:                 ## @br_ecdsa_i31_sign_raw
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -160(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_I31_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -152(%rbp)                ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_ORDER_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_POINT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdx
	movq	%r12, -144(%rbp)                ## 8-byte Spill
	movl	(%r12), %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	btl	%eax, %ecx
	jae	LBB0_5
## %bb.1:
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_5
## %bb.2:
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	cltq
	leaq	l_switch.table.br_ecdsa_i31_sign_raw(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	(%rax), %r12
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	8(%rax), %rsi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_br_i31_decode
	movl	4(%r13), %edi
	callq	_br_i31_ninv31
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edx
	movl	8(%rax), %esi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r13, %rcx
	callq	_br_i31_decode_mod
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_br_i31_iszero
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:
	xorl	%eax, %eax
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movq	_BR_HASHDESC_OUT_OFF@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrq	%cl, %rdx
	movq	_BR_HASHDESC_OUT_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rdx
	movl	(%r13), %ecx
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-136(%rbp), %rsi                ## 8-byte Reload
	callq	_br_ecdsa_i31_bits2int
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_br_i31_sub
	xorl	$1, %eax
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_br_i31_sub
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	callq	_br_i31_encode
	movq	%r14, %rdi
	addq	%r12, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_br_i31_encode
	leaq	(%r12,%r12), %rcx
	leaq	-164(%rbp), %rbx
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	callq	_br_hmac_drbg_init
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_br_hmac_drbg_generate
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_br_ecdsa_i31_bits2int
	movq	%r15, %rdi
	callq	_br_i31_iszero
	testq	%rax, %rax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_br_i31_sub
	testl	%eax, %eax
	je	LBB0_9
## %bb.11:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_br_i31_encode
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	-144(%rbp), %rax                ## 8-byte Reload
	callq	*8(%rax)
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r13), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_br_i31_zero
	incq	%rbx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	shrq	%rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_br_i31_decode
	movl	(%r13), %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_br_i31_sub
	xorl	$1, %eax
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_br_i31_sub
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_br_i31_from_monty
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_br_i31_from_monty
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_memcpy
	addb	$-2, -1(%r12,%r14)
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	movl	%ebx, %r8d
	movq	-152(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %r9
	pushq	-128(%rbp)                      ## 8-byte Folded Reload
	callq	_br_i31_modpow
	addq	$16, %rsp
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_br_i31_from_monty
	movq	%r14, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movl	%ebx, %r8d
	callq	_br_i31_montymul
	movq	%r14, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_br_i31_add
	movl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_br_i31_sub
	xorl	$1, %eax
	orl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_br_i31_sub
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	callq	_br_i31_montymul
	movq	-160(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_br_i31_encode
	addq	%r12, %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	callq	_br_i31_encode
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I31_LEN,4,2                    ## @I31_LEN
	.comm	_ORDER_LEN,4,2                  ## @ORDER_LEN
	.comm	_POINT_LEN,4,2                  ## @POINT_LEN
	.comm	_br_secp256r1,16,3              ## @br_secp256r1
	.comm	_br_secp384r1,16,3              ## @br_secp384r1
	.comm	_br_secp521r1,16,3              ## @br_secp521r1
	.comm	_BR_HASHDESC_OUT_OFF,8,3        ## @BR_HASHDESC_OUT_OFF
	.comm	_BR_HASHDESC_OUT_MASK,8,3       ## @BR_HASHDESC_OUT_MASK
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.br_ecdsa_i31_sign_raw
l_switch.table.br_ecdsa_i31_sign_raw:
	.quad	_br_secp521r1
	.quad	_br_secp384r1
	.quad	_br_secp256r1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_ecdsa_i31_sign_raw          ; -- Begin function br_ecdsa_i31_sign_raw
	.p2align	2
_br_ecdsa_i31_sign_raw:                 ; @br_ecdsa_i31_sign_raw
	.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, #80
	mov	x19, x3
	mov	x24, x2
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _I31_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I31_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x20, x9, x12
	mov	sp, x20
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x13, x9, x12
	mov	sp, x13
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x14, x9, x12
	mov	sp, x14
	mov	x9, x8
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x26, x9, x12
	mov	sp, x26
	mov	x9, x8
Lloh14:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh15:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x25, x9, x12
	mov	sp, x25
	mov	x9, x8
Lloh16:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh17:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x23, x9, x12
	mov	sp, x23
	mov	x9, x8
Lloh18:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh19:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x15, x9, x12
	mov	sp, x15
	mov	x9, x8
Lloh20:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh21:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x12, x8, x12
	mov	sp, x12
Lloh22:
	adrp	x8, _ORDER_LEN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ORDER_LEN@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	mov	x9, x8
Lloh25:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh26:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh27:
	adrp	x8, _POINT_LEN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _POINT_LEN@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	mov	x9, x8
Lloh30:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh31:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x28, x9, x8
	mov	sp, x28
	ldr	w9, [x0]
	ldr	w8, [x3]
	lsr	w9, w9, w8
	tbz	w9, #0, LBB0_4
; %bb.1:
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_4
; %bb.2:
	stp	x4, x1, [x29, #-112]            ; 16-byte Folded Spill
	stp	x12, x15, [x29, #-144]          ; 16-byte Folded Spill
	stp	x14, x13, [x29, #-128]          ; 16-byte Folded Spill
Lloh32:
	adrp	x9, l_switch.table.br_ecdsa_i31_sign_raw@PAGE
Lloh33:
	add	x9, x9, l_switch.table.br_ecdsa_i31_sign_raw@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldp	x27, x1, [x8]
	stur	x8, [x29, #-160]                ; 8-byte Folded Spill
	mov	x0, x20
	mov	x2, x27
	bl	_br_i31_decode
	ldr	w0, [x20, #4]
	bl	_br_i31_ninv31
	stur	w0, [x29, #-148]                ; 4-byte Folded Spill
	ldp	w2, w1, [x19, #4]
	mov	x0, x26
	mov	x3, x20
	bl	_br_i31_decode_mod
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x26
	bl	_br_i31_iszero
	cbz	x0, LBB0_7
LBB0_4:
	mov	x24, #0
LBB0_5:
	ldur	x8, [x29, #-88]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.6:
	mov	x0, x24
	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_7:
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	ldr	x8, [x8]
Lloh37:
	adrp	x9, _BR_HASHDESC_OUT_OFF@GOTPAGE
Lloh38:
	ldr	x9, [x9, _BR_HASHDESC_OUT_OFF@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	lsr	x8, x8, x9
Lloh40:
	adrp	x9, _BR_HASHDESC_OUT_MASK@GOTPAGE
Lloh41:
	ldr	x9, [x9, _BR_HASHDESC_OUT_MASK@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	and	x2, x8, x9
	ldr	w3, [x20]
	mov	x0, x25
	mov	x1, x24
	bl	_br_ecdsa_i31_bits2int
	mov	x0, x25
	mov	x1, x20
	mov	w2, #0
	bl	_br_i31_sub
	eor	w2, w0, #0x1
	mov	x0, x25
	mov	x1, x20
	bl	_br_i31_sub
	mov	x0, x21
	mov	x1, x27
	mov	x2, x26
	bl	_br_i31_encode
	add	x0, x21, x27
	mov	x1, x27
	mov	x2, x25
	bl	_br_i31_encode
	lsl	x24, x27, #1
	sub	x0, x29, #92
	ldur	x1, [x29, #-104]                ; 8-byte Folded Reload
	mov	x2, x21
	mov	x3, x24
	bl	_br_hmac_drbg_init
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #92
	mov	x1, x21
	mov	x2, x27
	bl	_br_hmac_drbg_generate
	ldr	w3, [x20]
	mov	x0, x23
	mov	x1, x21
	mov	x2, x27
	bl	_br_ecdsa_i31_bits2int
	mov	x0, x23
	bl	_br_i31_iszero
	cbnz	x0, LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x23
	mov	x1, x20
	mov	w2, #0
	bl	_br_i31_sub
	cbz	w0, LBB0_8
; %bb.10:
	mov	x0, x21
	mov	x1, x27
	mov	x2, x23
	bl	_br_i31_encode
	ldr	x8, [x22, #8]
	ldr	w3, [x19]
	mov	x0, x28
	mov	x1, x21
	mov	x2, x27
	blr	x8
	mov	x19, x0
	ldr	w1, [x20]
	ldur	x22, [x29, #-120]               ; 8-byte Folded Reload
	mov	x0, x22
	bl	_br_i31_zero
	add	x1, x28, #1
	lsr	x2, x19, #1
	mov	x0, x22
	bl	_br_i31_decode
	ldr	w8, [x20]
	str	w8, [x22]
	mov	x0, x22
	mov	x1, x20
	mov	w2, #0
	bl	_br_i31_sub
	eor	w2, w0, #0x1
	mov	x0, x22
	mov	x1, x20
	bl	_br_i31_sub
	mov	x0, x23
	mov	x1, x20
	ldur	w19, [x29, #-148]               ; 4-byte Folded Reload
	mov	x2, x19
	bl	_br_i31_from_monty
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	bl	_br_i31_from_monty
	ldur	x8, [x29, #-160]                ; 8-byte Folded Reload
	ldr	x1, [x8, #8]
	mov	x0, x21
	mov	x2, x27
	bl	_memcpy
	add	x8, x27, x21
	ldurb	w9, [x8, #-1]
	sub	w9, w9, #2
	sturb	w9, [x8, #-1]
	mov	x0, x23
	mov	x1, x21
	mov	x2, x27
	mov	x3, x20
	mov	x4, x19
	ldp	x6, x28, [x29, #-144]           ; 16-byte Folded Reload
	mov	x5, x28
	bl	_br_i31_modpow
	mov	x0, x25
	mov	x1, x20
	mov	x2, x19
	bl	_br_i31_from_monty
	mov	x0, x28
	mov	x1, x26
	mov	x2, x22
	mov	x3, x20
	mov	x4, x19
	bl	_br_i31_montymul
	mov	x0, x28
	mov	x1, x25
	mov	w2, #1
	bl	_br_i31_add
	mov	x21, x0
	mov	x0, x28
	mov	x1, x20
	mov	w2, #0
	bl	_br_i31_sub
	eor	w8, w0, #0x1
	orr	w2, w8, w21
	mov	x0, x28
	mov	x1, x20
	bl	_br_i31_sub
	ldur	x21, [x29, #-128]               ; 8-byte Folded Reload
	mov	x0, x21
	mov	x1, x28
	mov	x2, x23
	mov	x3, x20
	mov	x4, x19
	bl	_br_i31_montymul
	ldur	x19, [x29, #-112]               ; 8-byte Folded Reload
	mov	x0, x19
	mov	x1, x27
	mov	x2, x22
	bl	_br_i31_encode
	add	x0, x19, x27
	mov	x1, x27
	mov	x2, x21
	bl	_br_i31_encode
	b	LBB0_5
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_I31_LEN,4,2                    ; @I31_LEN
	.comm	_ORDER_LEN,4,2                  ; @ORDER_LEN
	.comm	_POINT_LEN,4,2                  ; @POINT_LEN
	.comm	_br_secp256r1,16,3              ; @br_secp256r1
	.comm	_br_secp384r1,16,3              ; @br_secp384r1
	.comm	_br_secp521r1,16,3              ; @br_secp521r1
	.comm	_BR_HASHDESC_OUT_OFF,8,3        ; @BR_HASHDESC_OUT_OFF
	.comm	_BR_HASHDESC_OUT_MASK,8,3       ; @BR_HASHDESC_OUT_MASK
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.br_ecdsa_i31_sign_raw
l_switch.table.br_ecdsa_i31_sign_raw:
	.quad	_br_secp521r1
	.quad	_br_secp384r1
	.quad	_br_secp256r1

.subsections_via_symbols
