	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_ecdsa_i31_bits2int          ## -- Begin function br_ecdsa_i31_bits2int
	.p2align	4, 0x90
_br_ecdsa_i31_bits2int:                 ## @br_ecdsa_i31_bits2int
	.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	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	sarl	$5, %ecx
	movl	%r14d, %eax
	subl	%ecx, %eax
	leal	(,%rdx,8), %ecx
	xorl	%r13d, %r13d
	cmpl	%eax, %ecx
	jle	LBB0_2
## %bb.1:
	leal	7(%rax), %ecx
	sarl	$3, %ecx
	movslq	%ecx, %r12
	negl	%eax
	andl	$7, %eax
	movl	%eax, %r13d
LBB0_2:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_br_i31_zero
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_br_i31_decode
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_br_i31_rshift
	movl	%r14d, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_ecdsa_i31_bits2int          ; -- Begin function br_ecdsa_i31_bits2int
	.p2align	2
_br_ecdsa_i31_bits2int:                 ; @br_ecdsa_i31_bits2int
	.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, x3
	mov	x20, x1
	mov	x21, x0
	sub	w8, w3, w3, asr #5
	add	w9, w8, #7
	sbfx	x9, x9, #3, #29
	neg	w10, w8
	and	w10, w10, #0x7
	cmp	w8, w2, lsl #3
	csel	x22, x2, x9, ge
	csel	w23, wzr, w10, ge
	mov	x1, x3
	bl	_br_i31_zero
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_br_i31_decode
	mov	x0, x21
	mov	x1, x23
	bl	_br_i31_rshift
	str	w19, [x21]
	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
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
