	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_dec2bn                      ## -- Begin function BN_dec2bn
	.p2align	4, 0x90
_BN_dec2bn:                             ## @BN_dec2bn
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.1:
	movq	%rsi, %r12
	movb	(%rsi), %al
	xorl	%ecx, %ecx
	testb	%al, %al
	je	LBB0_13
## %bb.2:
	movq	%rdi, %r15
	cmpb	$45, %al
	jne	LBB0_4
## %bb.3:
	incq	%r12
	movl	$1, %ecx
LBB0_4:
	movq	_INT_MAX@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpl	$-3, (%r13)
	jl	LBB0_11
## %bb.5:
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r12,%rbx), %edi
	callq	_ossl_isdigit
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r13), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	leaq	1(%rbx), %r14
	sarl	$2, %ecx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	movq	%r14, %rbx
	jl	LBB0_6
## %bb.9:
	testl	%r14d, %r14d
	jne	LBB0_14
	jmp	LBB0_10
LBB0_7:
	movq	%rbx, %r14
	testl	%r14d, %r14d
	je	LBB0_10
LBB0_14:
	movl	(%r13), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	cmpl	%r14d, %ecx
	jge	LBB0_15
LBB0_10:
	xorl	%edi, %edi
LBB0_11:
	cmpq	$0, (%r15)
	jne	LBB0_13
## %bb.12:
	callq	_BN_free
LBB0_13:
	xorl	%r13d, %r13d
LBB0_32:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r14), %r13d
	testq	%r15, %r15
	je	LBB0_32
## %bb.16:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.18:
	movq	%rbx, %rdi
	callq	_BN_zero
	jmp	LBB0_19
LBB0_17:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_32
LBB0_19:
	leal	(,%r14,4), %esi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_bn_expand
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	testl	%r14d, %r14d
	jle	LBB0_29
## %bb.22:
	movq	_BN_DEC_NUM@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%r14d, %eax
	cltd
	idivl	%esi
	movl	%esi, %ecx
	subl	%edx, %ecx
	testl	%edx, %edx
	cmovel	%edx, %ecx
	xorl	%r13d, %r13d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r13,%r13,4), %eax
	movsbl	(%r12), %edx
	leal	(%rdx,%rax,2), %r13d
	addl	$-48, %r13d
	incl	%ecx
	cmpl	%esi, %ecx
	jne	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	_BN_DEC_CONV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_BN_mul_word
	testl	%eax, %eax
	je	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_BN_add_word
	xorl	%r13d, %r13d
	movl	$0, %ecx
	testl	%eax, %eax
	je	LBB0_20
LBB0_27:                                ##   in Loop: Header=BB0_23 Depth=1
	cmpl	$2, %r14d
	jb	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_23 Depth=1
	incq	%r12
	movl	(%r15), %esi
	decl	%r14d
	jmp	LBB0_23
LBB0_20:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_29:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_bn_correct_top
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	%rbx, %rdi
	callq	_bn_check_top
	cmpq	$0, (%rbx)
	je	LBB0_31
## %bb.30:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 8(%rbx)
LBB0_31:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_32
LBB0_25:
	movq	%rbx, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_BN_DEC_NUM,4,2                 ## @BN_DEC_NUM
	.comm	_BN_DEC_CONV,4,2                ## @BN_DEC_CONV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_dec2bn                      ; -- Begin function BN_dec2bn
	.p2align	2
_BN_dec2bn:                             ; @BN_dec2bn
	.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
	cbz	x1, LBB0_12
; %bb.1:
	ldrb	w8, [x1]
	cbz	w8, LBB0_12
; %bb.2:
	mov	x19, x0
	mov	w9, #1
	cmp	w8, #45
	csel	w23, wzr, w9, ne
	cinc	x24, x1, eq
Lloh0:
	adrp	x20, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _INT_MAX@GOTPAGEOFF]
	ldr	w8, [x20]
	cmn	w8, #3
	b.lt	LBB0_9
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x24, x21]
	bl	_ossl_isdigit
	cbz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x21, #1
	ldr	w8, [x20]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	cmp	x21, w8, sxtw
	mov	x21, x25
	b.lt	LBB0_4
; %bb.6:
	cbnz	w25, LBB0_8
	b	LBB0_9
LBB0_7:
	mov	x25, x21
	cbz	w25, LBB0_9
LBB0_8:
	ldr	w8, [x20]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	cmp	w25, w8, asr #2
	b.le	LBB0_14
LBB0_9:
	mov	x21, #0
LBB0_10:
	ldr	x8, [x19]
	cbnz	x8, LBB0_12
; %bb.11:
	mov	x0, x21
	bl	_BN_free
LBB0_12:
	mov	w20, #0
LBB0_13:
	mov	x0, x20
	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_14:
	add	w20, w23, w25
	cbz	x19, LBB0_13
; %bb.15:
	ldr	x21, [x19]
	cbz	x21, LBB0_17
; %bb.16:
	mov	x0, x21
	bl	_BN_zero
	b	LBB0_18
LBB0_17:
	bl	_BN_new
	mov	x21, x0
	cbz	x0, LBB0_12
LBB0_18:
	lsl	w1, w25, #2
	mov	x0, x21
	bl	_bn_expand
	cbz	x0, LBB0_10
; %bb.19:
	cmp	w25, #1
	b.lt	LBB0_27
; %bb.20:
	mov	w22, #0
Lloh2:
	adrp	x26, _BN_DEC_NUM@GOTPAGE
Lloh3:
	ldr	x26, [x26, _BN_DEC_NUM@GOTPAGEOFF]
	ldr	w9, [x26]
	sdiv	w8, w25, w9
	msub	w8, w8, w9, w25
	sub	w10, w9, w8
	cmp	w8, #0
	csel	w8, wzr, w10, eq
	mov	w27, #10
Lloh4:
	adrp	x28, _BN_DEC_CONV@GOTPAGE
Lloh5:
	ldr	x28, [x28, _BN_DEC_CONV@GOTPAGEOFF]
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w10, [x24], #1
	madd	w10, w22, w27, w10
	sub	w22, w10, #48
	add	w8, w8, #1
	cmp	w8, w9
	b.ne	LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w1, [x28]
	mov	x0, x21
	bl	_BN_mul_word
	cbz	w0, LBB0_10
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_BN_add_word
	cbz	w0, LBB0_10
; %bb.24:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	w22, #0
	mov	w8, #0
LBB0_25:                                ;   in Loop: Header=BB0_21 Depth=1
	cmp	w25, #2
	b.lo	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	w9, [x26]
	sub	w25, w25, #1
	b	LBB0_21
LBB0_27:
	mov	x0, x21
	bl	_bn_correct_top
	str	x21, [x19]
	mov	x0, x21
	bl	_bn_check_top
	ldr	x8, [x21]
	cbz	x8, LBB0_13
; %bb.28:
	str	w23, [x21, #8]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_BN_DEC_NUM,4,2                 ; @BN_DEC_NUM
	.comm	_BN_DEC_CONV,4,2                ; @BN_DEC_CONV
.subsections_via_symbols
