	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bn2binpad
_bn2binpad:                             ## @bn2binpad
	.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
	movq	%rcx, %r15
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_BN_num_bytes
	cmpl	$-1, %r14d
	je	LBB0_1
## %bb.2:
	cmpl	%r14d, %eax
	jle	LBB0_4
## %bb.3:
	movq	16(%r12), %rax
	movq	%rax, -64(%rbp)
	movups	(%r12), %xmm0
	movaps	%xmm0, -80(%rbp)
	leaq	-80(%rbp), %r13
	movq	%r13, %rdi
	callq	_bn_correct_top
	movq	%r13, %rdi
	callq	_BN_num_bytes
	movl	%eax, %ecx
	movl	$-1, %eax
	cmpl	%r14d, %ecx
	jle	LBB0_4
	jmp	LBB0_14
LBB0_1:
	movl	%eax, %r14d
LBB0_4:
	movq	_BN_BYTES@GOTPCREL(%rip), %r9
	movq	(%r9), %rcx
	movq	(%r12), %rax
	imulq	%rcx, %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.8:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movslq	%r14d, %rdx
	movq	_big@GOTPCREL(%rip), %r8
	movq	(%r8), %r11
	xorl	%esi, %esi
	cmpq	%r15, %r11
	movl	$0, %edi
	cmoveq	%rdx, %rdi
	addq	%rdi, %rbx
	movl	$1, %r13d
	movl	$1, %r10d
	subq	%rax, %r10
	cmpq	$2, %rdx
	cmovaeq	%rdx, %r13
	decq	%r13
	movq	8(%r12), %rdi
	imulq	%rcx, %rdi
	negq	%rdi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %r14
	movq	%rsi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rcx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r14,%rax,4), %eax
	shll	$3, %ecx
                                        ## kill: def $cl killed $cl killed $rcx
	sarl	%cl, %eax
	movq	%rdi, %rcx
	sarq	$63, %rcx
	andb	%al, %cl
	leaq	-1(%rbx), %rax
	cmpq	%r15, %r11
	movq	%rbx, %rdx
	cmoveq	%rax, %rdx
	movb	%cl, (%rdx)
	testq	%r13, %r13
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	cmpq	%r15, %r11
	cmoveq	%rax, %rbx
	leaq	(%r10,%rsi), %rax
	shrq	$63, %rax
	addq	%rax, %rsi
	movq	(%r9), %rcx
	movq	(%r8), %r11
	decq	%r13
	incq	%rdi
	jmp	LBB0_9
LBB0_13:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_14
LBB0_5:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_OPENSSL_cleanse
	movl	%r14d, %eax
	jmp	LBB0_14
LBB0_7:
	xorl	%eax, %eax
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BN_BYTES,8,3                   ## @BN_BYTES
	.comm	_big,8,3                        ## @big
	.no_dead_strip	_bn2binpad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bn2binpad
_bn2binpad:                             ; @bn2binpad
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	bl	_BN_num_bytes
	cmn	w19, #1
	b.eq	LBB0_4
; %bb.1:
	cmp	w0, w19
	b.le	LBB0_5
; %bb.2:
	ldr	q0, [x21]
	str	q0, [sp]
	ldr	x8, [x21, #16]
	str	x8, [sp, #16]
	mov	x0, sp
	bl	_bn_correct_top
	mov	x0, sp
	bl	_BN_num_bytes
	cmp	w0, w19
	b.le	LBB0_5
; %bb.3:
	mov	w19, #-1
	b	LBB0_11
LBB0_4:
	mov	x19, x0
LBB0_5:
	ldr	x9, [x21]
Lloh0:
	adrp	x8, _BN_BYTES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BN_BYTES@GOTPAGEOFF]
	ldr	x11, [x8]
	mul	x13, x11, x9
	cbz	x13, LBB0_10
; %bb.6:
	cbz	w19, LBB0_11
; %bb.7:
	mov	x9, #0
	ldr	x16, [x21, #8]
	sxtw	x14, w19
Lloh2:
	adrp	x10, _big@GOTPAGE
Lloh3:
	ldr	x10, [x10, _big@GOTPAGEOFF]
	ldr	x15, [x10]
	cmp	x15, x20
	csel	x12, x14, xzr, eq
	add	x12, x22, x12
	mov	w17, #1
	sub	x13, x17, x13
	cmp	x14, #1
	csinc	x14, x14, xzr, hi
	sub	x14, x14, #1
	mneg	x16, x16, x11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x17, [x21, #16]
	udiv	x0, x9, x11
	ldr	w17, [x17, x0, lsl #2]
	msub	w11, w0, w11, w9
	lsl	w11, w11, #3
	asr	w11, w17, w11
	asr	x17, x16, #63
	and	w17, w17, w11
	sub	x11, x12, #1
	cmp	x15, x20
	csel	x15, x11, x12, eq
	strb	w17, [x15]
	cbz	x14, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	csinc	x12, x11, x12, eq
	add	x11, x13, x9
	add	x9, x9, x11, lsr #63
	ldr	x11, [x8]
	ldr	x15, [x10]
	sub	x14, x14, #1
	add	x16, x16, #1
	b	LBB0_8
LBB0_10:
	mov	x0, x22
	mov	x1, x19
	bl	_OPENSSL_cleanse
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_BN_BYTES,8,3                   ; @BN_BYTES
	.comm	_big,8,3                        ; @big
	.no_dead_strip	_bn2binpad
.subsections_via_symbols
