	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r12
	testq	%rdx, %rdx
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_18
LBB0_2:
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.3:
	leal	16(,%r14,8), %esi
	movq	%r15, %rdi
	callq	_bn_expand
	testq	%rax, %rax
	je	LBB0_18
## %bb.4:
	leal	-1(%r14), %ecx
	movq	_BN_BYTES@GOTPCREL(%rip), %rdi
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	(%rdi)
                                        ## kill: def $eax killed $eax def $rax
	xorl	%esi, %esi
	incl	%eax
	movl	%eax, (%r15)
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.5:
	movl	(%rdi), %r8d
	movl	%r14d, %edi
	andl	$-2, %edi
	xorl	%esi, %esi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	decl	%edx
	leaq	2(%rbx), %r12
	addl	$-2, %edi
	je	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rbx
	shlq	$8, %rsi
	movzbl	(%r12), %ecx
	orq	%rsi, %rcx
	testl	%edx, %edx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r15), %rdx
	decl	%eax
	movq	%rcx, (%rdx,%rax,8)
	movl	%r8d, %edx
	xorl	%ecx, %ecx
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	shlq	$8, %rcx
	movzbl	1(%rbx), %esi
	orq	%rcx, %rsi
	decl	%edx
	jne	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r15), %rcx
	decl	%eax
	movq	%rsi, (%rcx,%rax,8)
	movl	%r8d, %edx
	xorl	%esi, %esi
	jmp	LBB0_6
LBB0_18:
	xorl	%r15d, %r15d
	jmp	LBB0_19
LBB0_11:
	movl	$0, (%r15)
	jmp	LBB0_19
LBB0_13:
	addq	$2, %rbx
	movq	%rbx, %r12
LBB0_14:
	testb	$1, %r14b
	je	LBB0_17
## %bb.15:
	testl	%edx, %edx
	jne	LBB0_17
## %bb.16:
	shlq	$8, %rsi
	movzbl	(%r12), %ecx
	orq	%rsi, %rcx
	movq	8(%r15), %rdx
	decl	%eax
	movq	%rcx, (%rdx,%rax,8)
LBB0_17:
	movq	%r15, %rdi
	callq	_bn_fix_top
LBB0_19:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	cbnz	x2, LBB0_2
; %bb.1:
	bl	_BN_new
	mov	x19, x0
	cbz	x0, LBB0_11
LBB0_2:
	cbz	w20, LBB0_9
; %bb.3:
	lsl	w8, w20, #3
	add	w1, w8, #16
	mov	x0, x19
	bl	_bn_expand
	cbz	x0, LBB0_10
; %bb.4:
	mov	x11, #0
	sub	w9, w20, #1
Lloh0:
	adrp	x12, _BN_BYTES@GOTPAGE
Lloh1:
	ldr	x12, [x12, _BN_BYTES@GOTPAGEOFF]
	ldr	w10, [x12]
	udiv	w13, w9, w10
	add	w8, w13, #1
	str	w8, [x19]
	msub	w10, w13, w10, w9
	ldr	w9, [x12]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	w10, w10, #1
	mov	x11, x12
	cbz	w20, LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	w20, w20, #1
	ldrb	w12, [x21], #1
	bfi	x12, x11, #8, #56
	cbnz	w10, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x19, #8]
	sub	w8, w8, #1
	str	x12, [x10, w8, uxtw #3]
	mov	x10, x9
	mov	x12, #0
	b	LBB0_5
LBB0_8:
	mov	x0, x19
	bl	_bn_fix_top
	b	LBB0_11
LBB0_9:
	str	wzr, [x19]
	b	LBB0_11
LBB0_10:
	mov	x19, #0
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BN_BYTES,4,2                   ; @BN_BYTES
.subsections_via_symbols
