	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_CTX_end                     ## -- Begin function BN_CTX_end
	.p2align	4, 0x90
_BN_CTX_end:                            ## @BN_CTX_end
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setg	%dil
	callq	_assert
	movq	(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_BN_CTX_start
	movq	(%rbx), %rax
LBB0_3:
	movq	$0, 24(%rbx)
	leaq	-1(%rax), %rcx
	movq	%rcx, (%rbx)
	movq	_BN_CTX_NUM_POS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_5
## %bb.4:
	movq	8(%rbx), %rcx
	movl	-4(%rcx,%rax,4), %eax
	movl	%eax, 16(%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BN_CTX_NUM_POS,8,3             ## @BN_CTX_NUM_POS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BN_CTX_end                     ; -- Begin function BN_CTX_end
	.p2align	2
_BN_CTX_end:                            ; @BN_CTX_end
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
	ldr	x8, [x19]
	cbnz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_BN_CTX_start
	ldr	x8, [x19]
LBB0_3:
	str	xzr, [x19, #24]
	sub	x9, x8, #1
	str	x9, [x19]
Lloh0:
	adrp	x10, _BN_CTX_NUM_POS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _BN_CTX_NUM_POS@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x8, x10
	b.gt	LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x19, #16]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BN_CTX_NUM_POS,8,3             ; @BN_CTX_NUM_POS
.subsections_via_symbols
