	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function BN_BLINDING_invert_ex
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_1:
	.quad	2                               ## 0x2
	.quad	2                               ## 0x2
LCPI0_2:
	.quad	4                               ## 0x4
	.quad	4                               ## 0x4
LCPI0_3:
	.quad	6                               ## 0x6
	.quad	6                               ## 0x6
LCPI0_4:
	.quad	8                               ## 0x8
	.quad	8                               ## 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_BN_BLINDING_invert_ex
	.p2align	4, 0x90
_BN_BLINDING_invert_ex:                 ## @BN_BLINDING_invert_ex
	.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	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_bn_check_top
	testq	%r15, %r15
	jne	LBB0_3
## %bb.1:
	movq	16(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_2
LBB0_3:
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.4:
	movq	8(%r15), %rax
	cmpq	%rax, (%r12)
	jb	LBB0_18
## %bb.5:
	movq	8(%r12), %r9
	testq	%rax, %rax
	je	LBB0_17
## %bb.6:
	movq	16(%r12), %rsi
	cmpq	$4, %rax
	jae	LBB0_8
## %bb.7:
	xorl	%edi, %edi
	jmp	LBB0_15
LBB0_19:
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r14, %r8
	callq	_BN_mod_mul
	jmp	LBB0_20
LBB0_2:
	movq	_BN_F_BN_BLINDING_INVERT_EX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BN_R_NOT_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BNerr
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_8:
	movq	%rax, %rdi
	andq	$-4, %rdi
	movq	%r9, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	leaq	-4(%rdi), %rdx
	movq	%rdx, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.10:
	movq	%r8, %rdx
	andq	$-2, %rdx
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	xorl	%ebx, %ebx
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [2,2]
	movdqa	LCPI0_2(%rip), %xmm9            ## xmm9 = [4,4]
	movdqa	LCPI0_3(%rip), %xmm10           ## xmm10 = [6,6]
	movdqa	LCPI0_4(%rip), %xmm11           ## xmm11 = [8,8]
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm1, %xmm7
	psubq	%xmm0, %xmm7
	movdqa	%xmm7, %xmm2
	paddq	%xmm8, %xmm2
	movdqa	%xmm7, %xmm6
	psrad	$31, %xmm6
	pshufd	$245, %xmm6, %xmm6              ## xmm6 = xmm6[1,1,3,3]
	movdqu	(%rsi,%rbx,8), %xmm3
	pand	%xmm6, %xmm3
	movdqu	16(%rsi,%rbx,8), %xmm6
	movdqu	32(%rsi,%rbx,8), %xmm4
	movdqu	48(%rsi,%rbx,8), %xmm5
	psrad	$31, %xmm2
	pshufd	$245, %xmm2, %xmm2              ## xmm2 = xmm2[1,1,3,3]
	pand	%xmm6, %xmm2
	movdqu	%xmm3, (%rsi,%rbx,8)
	movdqu	%xmm2, 16(%rsi,%rbx,8)
	movdqa	%xmm7, %xmm2
	paddq	%xmm9, %xmm2
	paddq	%xmm10, %xmm7
	psrad	$31, %xmm2
	pshufd	$245, %xmm2, %xmm2              ## xmm2 = xmm2[1,1,3,3]
	pand	%xmm4, %xmm2
	psrad	$31, %xmm7
	pshufd	$245, %xmm7, %xmm3              ## xmm3 = xmm7[1,1,3,3]
	pand	%xmm5, %xmm3
	movdqu	%xmm2, 32(%rsi,%rbx,8)
	movdqu	%xmm3, 48(%rsi,%rbx,8)
	addq	$8, %rbx
	paddq	%xmm11, %xmm1
	addq	$-2, %rdx
	jne	LBB0_11
## %bb.12:
	testb	$1, %r8b
	je	LBB0_14
LBB0_13:
	psubq	%xmm0, %xmm1
	movdqa	LCPI0_1(%rip), %xmm0            ## xmm0 = [2,2]
	paddq	%xmm1, %xmm0
	movdqu	(%rsi,%rbx,8), %xmm2
	movdqu	16(%rsi,%rbx,8), %xmm3
	psrad	$31, %xmm1
	pshufd	$245, %xmm1, %xmm1              ## xmm1 = xmm1[1,1,3,3]
	pand	%xmm2, %xmm1
	psrad	$31, %xmm0
	pshufd	$245, %xmm0, %xmm0              ## xmm0 = xmm0[1,1,3,3]
	pand	%xmm3, %xmm0
	movdqu	%xmm1, (%rsi,%rbx,8)
	movdqu	%xmm0, 16(%rsi,%rbx,8)
LBB0_14:
	cmpq	%rdi, %rax
	je	LBB0_17
LBB0_15:
	movq	%r9, %rdx
	negq	%rdx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%rdx,%rdi), %rbx
	sarq	$63, %rbx
	andq	%rbx, (%rsi,%rdi,8)
	incq	%rdi
	cmpq	%rdi, %rax
	jne	LBB0_16
LBB0_17:
	movq	%rax, %rdx
	subq	%r9, %rdx
	sarq	$63, %rdx
	movq	%rdx, %rsi
	notq	%rsi
	andl	%esi, %eax
	cltq
	andq	%r9, %rdx
	orq	%rax, %rdx
	movq	%rdx, 8(%r12)
	movq	_BN_FLG_FIXED_TOP@GOTPCREL(%rip), %rax
	andq	(%rax), %rsi
	orq	%rsi, 24(%r12)
LBB0_18:
	movq	%r12, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r14, %r8
	callq	_BN_mod_mul_montgomery
LBB0_20:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_bn_check_top
LBB0_21:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	xorl	%ebx, %ebx
	testb	$1, %r8b
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_BN_F_BN_BLINDING_INVERT_EX,4,2 ## @BN_F_BN_BLINDING_INVERT_EX
	.comm	_BN_R_NOT_INITIALIZED,4,2       ## @BN_R_NOT_INITIALIZED
	.comm	_BN_FLG_FIXED_TOP,8,3           ## @BN_FLG_FIXED_TOP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function BN_BLINDING_invert_ex
lCPI0_0:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_BN_BLINDING_invert_ex
	.p2align	2
_BN_BLINDING_invert_ex:                 ; @BN_BLINDING_invert_ex
	.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	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_bn_check_top
	cbnz	x21, LBB0_2
; %bb.1:
	ldr	x21, [x22, #16]
	cbz	x21, LBB0_8
LBB0_2:
	ldr	x3, [x22, #8]
	cbz	x3, LBB0_7
; %bb.3:
	ldr	x9, [x19]
	ldr	x8, [x21, #8]
	cmp	x9, x8
	b.lo	LBB0_15
; %bb.4:
	ldr	x9, [x19, #8]
	cbz	x8, LBB0_14
; %bb.5:
	ldr	x10, [x19, #16]
	cmp	x8, #8
	b.hs	LBB0_9
; %bb.6:
	mov	x11, #0
	b	LBB0_12
LBB0_7:
	ldr	w3, [x22]
	mov	x0, x19
	mov	x1, x19
	mov	x2, x21
	mov	x4, x20
	bl	_BN_mod_mul
	b	LBB0_16
LBB0_8:
Lloh0:
	adrp	x8, _BN_F_BN_BLINDING_INVERT_EX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BN_F_BN_BLINDING_INVERT_EX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _BN_R_NOT_INITIALIZED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BN_R_NOT_INITIALIZED@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_BNerr
	mov	w20, #0
	b	LBB0_17
LBB0_9:
	and	x11, x8, #0xfffffffffffffff8
	dup.2d	v0, x9
Lloh6:
	adrp	x12, lCPI0_0@PAGE
Lloh7:
	ldr	q1, [x12, lCPI0_0@PAGEOFF]
	add	x12, x10, #32
	mov	w13, #2
	dup.2d	v2, x13
	mov	w13, #4
	dup.2d	v3, x13
	mov	w13, #6
	dup.2d	v4, x13
	mov	w13, #8
	dup.2d	v5, x13
	mov	x13, x11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub.2d	v6, v1, v0
	add.2d	v7, v6, v2
	add.2d	v16, v6, v3
	add.2d	v17, v6, v4
	ldp	q18, q19, [x12, #-32]
	ldp	q20, q21, [x12]
	cmlt.2d	v6, v6, #0
	and.16b	v6, v6, v18
	cmlt.2d	v7, v7, #0
	and.16b	v7, v7, v19
	cmlt.2d	v16, v16, #0
	and.16b	v16, v16, v20
	cmlt.2d	v17, v17, #0
	and.16b	v17, v17, v21
	stp	q6, q7, [x12, #-32]
	stp	q16, q17, [x12], #64
	add.2d	v1, v1, v5
	subs	x13, x13, #8
	b.ne	LBB0_10
; %bb.11:
	cmp	x8, x11
	b.eq	LBB0_14
LBB0_12:
	sub	x12, x8, x11
	add	x10, x10, x11, lsl #3
	sub	x11, x11, x9
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10]
	and	x13, x13, x11, asr #63
	str	x13, [x10], #8
	add	x11, x11, #1
	subs	x12, x12, #1
	b.ne	LBB0_13
LBB0_14:
	sub	x10, x8, x9
	asr	x10, x10, #63
	mvn	x11, x10
	and	w8, w8, w11
	sxtw	x8, w8
	and	x9, x10, x9
	orr	x8, x8, x9
Lloh8:
	adrp	x9, _BN_FLG_FIXED_TOP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BN_FLG_FIXED_TOP@GOTPAGEOFF]
	str	x8, [x19, #8]
Lloh10:
	ldr	x8, [x9]
	bic	x8, x8, x10
	ldr	x9, [x19, #24]
	orr	x8, x9, x8
	str	x8, [x19, #24]
LBB0_15:
	mov	x0, x19
	mov	x1, x19
	mov	x2, x21
	mov	x4, x20
	bl	_BN_mod_mul_montgomery
LBB0_16:
	mov	x20, x0
	mov	x0, x19
	bl	_bn_check_top
LBB0_17:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BN_F_BN_BLINDING_INVERT_EX,4,2 ; @BN_F_BN_BLINDING_INVERT_EX
	.comm	_BN_R_NOT_INITIALIZED,4,2       ; @BN_R_NOT_INITIALIZED
	.comm	_BN_FLG_FIXED_TOP,8,3           ; @BN_FLG_FIXED_TOP
.subsections_via_symbols
