	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_bin2bn                      ## -- Begin function BN_bin2bn
	.p2align	4, 0x90
_BN_bin2bn:                             ## @BN_bin2bn
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	%rdx, %r14
	xorl	%r15d, %r15d
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r15
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_18
LBB0_3:
	movq	%r14, %rdi
	callq	_bn_check_top
	testl	%r12d, %r12d
	jle	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rbx)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	leal	-1(%r12), %eax
	cmpl	$1, %r12d
	movl	%eax, %r12d
	jg	LBB0_4
	jmp	LBB0_15
LBB0_6:
	je	LBB0_15
LBB0_7:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leal	-1(%r12), %eax
	movq	_BN_BYTES@GOTPCREL(%rip), %rcx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%edx, %r13d
	movl	%eax, %r15d
	incl	%r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_bn_wexpand
	testq	%rax, %rax
	je	LBB0_17
## %bb.8:
	movl	%r15d, (%r14)
	movq	$0, 16(%r14)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
## %bb.9:
	movq	_BN_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edx
	andl	$-2, %edx
	xorl	%eax, %eax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	decl	%r13d
	leaq	2(%rsi), %rbx
	addl	$-2, %edx
	je	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rsi
	shlq	$8, %rax
	movzbl	(%rbx), %edi
	orq	%rax, %rdi
	testl	%r13d, %r13d
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%r14), %rax
	decl	%r15d
	movq	%rdi, (%rax,%r15,8)
	movl	%ecx, %r13d
	xorl	%edi, %edi
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	shlq	$8, %rdi
	movzbl	1(%rsi), %eax
	orq	%rdi, %rax
	decl	%r13d
	jne	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%r14), %rdi
	decl	%r15d
	movq	%rax, (%rdi,%r15,8)
	movl	%ecx, %r13d
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_15:
	movl	$0, (%r14)
	jmp	LBB0_23
LBB0_16:
	addq	$2, %rsi
	movq	%rsi, %rbx
	testb	$1, %r12b
	jne	LBB0_20
	jmp	LBB0_22
LBB0_17:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_free
LBB0_18:
	xorl	%r14d, %r14d
	jmp	LBB0_23
LBB0_19:
	xorl	%eax, %eax
	testb	$1, %r12b
	je	LBB0_22
LBB0_20:
	testl	%r13d, %r13d
	jne	LBB0_22
## %bb.21:
	shlq	$8, %rax
	movzbl	(%rbx), %ecx
	orq	%rax, %rcx
	movq	8(%r14), %rax
	decl	%r15d
	movq	%rcx, (%rax,%r15,8)
LBB0_22:
	movq	%r14, %rdi
	callq	_bn_correct_top
LBB0_23:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BN_BYTES,4,2                   ## @BN_BYTES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_bin2bn                      ; -- Begin function BN_bin2bn
	.p2align	2
_BN_bin2bn:                             ; @BN_bin2bn
	.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
	mov	x20, x1
	mov	x21, x0
	cbz	x2, LBB0_2
; %bb.1:
	mov	x19, x2
	mov	x23, #0
	b	LBB0_3
LBB0_2:
	bl	_BN_new
	mov	x23, x0
	mov	x19, x0
	cbz	x0, LBB0_15
LBB0_3:
	mov	x0, x19
	bl	_bn_check_top
	cmp	w20, #1
	b.lt	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21]
	cbnz	w8, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	subs	w20, w20, #1
	b.gt	LBB0_4
	b	LBB0_12
LBB0_6:
	cbz	w20, LBB0_12
LBB0_7:
	sub	w25, w20, #1
Lloh0:
	adrp	x24, _BN_BYTES@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BN_BYTES@GOTPAGEOFF]
	ldr	w26, [x24]
	udiv	w27, w25, w26
	add	w22, w27, #1
	mov	x0, x19
	mov	x1, x22
	bl	_bn_wexpand
	cbz	x0, LBB0_14
; %bb.8:
	mov	x10, #0
	str	w22, [x19]
	str	xzr, [x19, #16]
	msub	w9, w27, w26, w25
	ldr	w8, [x24]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	sub	w9, w9, #1
	mov	x10, x11
	cbz	w20, LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	w20, w20, #1
	ldrb	w11, [x21], #1
	bfi	x11, x10, #8, #56
	cbnz	w9, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x19, #8]
	sub	w22, w22, #1
	str	x11, [x9, w22, uxtw #3]
	mov	x9, x8
	mov	x11, #0
	b	LBB0_9
LBB0_12:
	str	wzr, [x19]
	b	LBB0_15
LBB0_13:
	mov	x0, x19
	bl	_bn_correct_top
	b	LBB0_15
LBB0_14:
	mov	x0, x23
	bl	_BN_free
	mov	x19, #0
LBB0_15:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BN_BYTES,4,2                   ; @BN_BYTES
.subsections_via_symbols
