	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ec_GF2m_simple_ladder_pre
_ec_GF2m_simple_ladder_pre:             ## @ec_GF2m_simple_ladder_pre
	.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
	xorl	%ebx, %ebx
	cmpq	$0, (%rcx)
	je	LBB0_27
## %bb.1:
	movq	%rdx, %r12
	movq	%rdi, %r13
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	_BN_RAND_BOTTOM_ANY@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%r12), %r14d
	movl	12(%r13), %edi
	callq	_BN_num_bits
	leaq	-1(%rax), %rsi
	movq	_BN_RAND_TOP_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movl	%r14d, %edi
	callq	_BN_priv_rand
	testl	%eax, %eax
	je	LBB0_20
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r12), %edi
	callq	_BN_is_zero
	testq	%rax, %rax
	jne	LBB0_2
## %bb.4:
	movq	(%r13), %rbx
	movq	16(%rbx), %rax
	testq	%rax, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_7
## %bb.5:
	movl	16(%r12), %edx
	movq	%r13, %rdi
	movl	%edx, %esi
	movq	%r14, %rcx
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_26
## %bb.6:
	movq	(%r13), %rbx
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %edx
	movl	12(%r12), %esi
	movl	16(%r12), %ecx
	movq	%r13, %rdi
	movq	%r14, %r8
	callq	*(%rbx)
	testl	%eax, %eax
	je	LBB0_26
## %bb.8:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %ebx
	movl	12(%r13), %edi
	callq	_BN_num_bits
	leaq	-1(%rax), %rsi
	movq	_BN_RAND_TOP_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movl	%ebx, %edi
	callq	_BN_priv_rand
	testl	%eax, %eax
	je	LBB0_22
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	8(%r14), %edi
	callq	_BN_is_zero
	testq	%rax, %rax
	jne	LBB0_9
## %bb.11:
	movq	(%r13), %rbx
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movl	8(%r14), %edx
	movq	%r13, %rdi
	movl	%edx, %esi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_26
## %bb.13:
	movq	(%r13), %rbx
LBB0_14:
	movl	16(%r14), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %edx
	movq	%r13, %rdi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	*8(%rbx)
	testl	%eax, %eax
	je	LBB0_26
## %bb.15:
	movq	(%r13), %rax
	movl	12(%r14), %esi
	movl	16(%r14), %edx
	movq	%r13, %rdi
	movq	%r15, %rcx
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_26
## %bb.16:
	movl	12(%r14), %edi
	movl	8(%r13), %edx
	movl	%edi, %esi
	callq	_BN_GF2m_add
	testl	%eax, %eax
	movl	$0, %ebx
	je	LBB0_27
## %bb.17:
	movq	(%r13), %rax
	movl	8(%r14), %ecx
	movl	16(%r14), %edx
	movq	%r13, %rdi
	movl	%edx, %esi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %r8
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_27
## %bb.18:
	movq	(%r13), %rax
	movl	8(%r14), %ecx
	movl	12(%r14), %edx
	movq	%r13, %rdi
	movl	%edx, %esi
	movq	%r15, %r8
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_27
## %bb.19:
	movq	$0, (%r12)
	movq	$0, (%r14)
	movl	$1, %ebx
	jmp	LBB0_27
LBB0_20:
	movq	_EC_F_EC_GF2M_SIMPLE_LADDER_PRE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_BN_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
	jmp	LBB0_27
LBB0_22:
	movq	_EC_F_EC_GF2M_SIMPLE_LADDER_PRE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_BN_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
LBB0_26:
	xorl	%ebx, %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BN_RAND_TOP_ANY,4,2            ## @BN_RAND_TOP_ANY
	.comm	_BN_RAND_BOTTOM_ANY,4,2         ## @BN_RAND_BOTTOM_ANY
	.comm	_EC_F_EC_GF2M_SIMPLE_LADDER_PRE,4,2 ## @EC_F_EC_GF2M_SIMPLE_LADDER_PRE
	.comm	_ERR_R_BN_LIB,4,2               ## @ERR_R_BN_LIB
	.no_dead_strip	_ec_GF2m_simple_ladder_pre
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ec_GF2m_simple_ladder_pre
_ec_GF2m_simple_ladder_pre:             ; @ec_GF2m_simple_ladder_pre
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x3]
	cbz	x8, LBB0_20
; %bb.1:
	mov	x21, x4
	mov	x23, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x25, _BN_RAND_TOP_ANY@GOTPAGE
Lloh1:
	ldr	x25, [x25, _BN_RAND_TOP_ANY@GOTPAGEOFF]
Lloh2:
	adrp	x26, _BN_RAND_BOTTOM_ANY@GOTPAGE
Lloh3:
	ldr	x26, [x26, _BN_RAND_BOTTOM_ANY@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x20, #16]
	ldr	w0, [x22, #12]
	bl	_BN_num_bits
	sub	x1, x0, #1
	ldr	w2, [x25]
	ldr	w3, [x26]
	mov	x0, x24
	bl	_BN_priv_rand
	cbz	w0, LBB0_19
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20, #16]
	bl	_BN_is_zero
	cbnz	x0, LBB0_2
; %bb.4:
	ldr	x8, [x22]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_7
; %bb.5:
	ldr	w1, [x20, #16]
	mov	x0, x22
	mov	x2, x1
	mov	x3, x21
	blr	x9
	cbz	w0, LBB0_21
; %bb.6:
	ldr	x8, [x22]
LBB0_7:
	ldr	x8, [x8]
	ldr	w2, [x23, #12]
	ldp	w1, w3, [x20, #12]
	mov	x0, x22
	mov	x4, x21
	blr	x8
	cbz	w0, LBB0_21
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x19, #8]
	ldr	w0, [x22, #12]
	bl	_BN_num_bits
	sub	x1, x0, #1
	ldr	w2, [x25]
	ldr	w3, [x26]
	mov	x0, x24
	bl	_BN_priv_rand
	cbz	w0, LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x19, #8]
	bl	_BN_is_zero
	cbnz	x0, LBB0_8
; %bb.10:
	ldr	x8, [x22]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_13
; %bb.11:
	ldr	w1, [x19, #8]
	mov	x0, x22
	mov	x2, x1
	mov	x3, x21
	blr	x9
	cbz	w0, LBB0_21
; %bb.12:
	ldr	x8, [x22]
LBB0_13:
	ldr	x8, [x8, #8]
	ldr	w1, [x19, #16]
	ldr	w2, [x23, #12]
	mov	x0, x22
	mov	x3, x21
	blr	x8
	cbz	w0, LBB0_21
; %bb.14:
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	ldp	w1, w2, [x19, #12]
	mov	x0, x22
	mov	x3, x21
	blr	x8
	cbz	w0, LBB0_21
; %bb.15:
	ldr	w0, [x19, #12]
	ldr	w2, [x22, #8]
	mov	x1, x0
	bl	_BN_GF2m_add
	cbz	w0, LBB0_21
; %bb.16:
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	w1, [x19, #16]
	ldr	w3, [x19, #8]
	mov	x0, x22
	mov	x2, x1
	mov	x4, x21
	blr	x8
	cbz	w0, LBB0_21
; %bb.17:
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldp	w3, w1, [x19, #8]
	mov	x0, x22
	mov	x2, x1
	mov	x4, x21
	blr	x8
	cbz	w0, LBB0_21
; %bb.18:
	str	xzr, [x20]
	str	xzr, [x19]
	mov	w0, #1
	b	LBB0_21
LBB0_19:
Lloh4:
	adrp	x8, _EC_F_EC_GF2M_SIMPLE_LADDER_PRE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EC_F_EC_GF2M_SIMPLE_LADDER_PRE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x8, _ERR_R_BN_LIB@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERR_R_BN_LIB@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_ECerr
LBB0_20:
	mov	w0, #0
LBB0_21:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BN_RAND_TOP_ANY,4,2            ; @BN_RAND_TOP_ANY
	.comm	_BN_RAND_BOTTOM_ANY,4,2         ; @BN_RAND_BOTTOM_ANY
	.comm	_EC_F_EC_GF2M_SIMPLE_LADDER_PRE,4,2 ; @EC_F_EC_GF2M_SIMPLE_LADDER_PRE
	.comm	_ERR_R_BN_LIB,4,2               ; @ERR_R_BN_LIB
	.no_dead_strip	_ec_GF2m_simple_ladder_pre
.subsections_via_symbols
