	.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:
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_CTXDBG_ENTRY
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	decq	%rax
	movq	%rax, 24(%rbx)
	jmp	LBB0_6
LBB0_7:
	retq
LBB0_3:
	leaq	20(%rbx), %rdi
	callq	_BN_STACK_pop
	movl	%eax, %r14d
	movl	(%rbx), %esi
	subl	%eax, %esi
	jbe	LBB0_5
## %bb.4:
	leaq	16(%rbx), %rdi
	callq	_BN_POOL_release
LBB0_5:
	movl	%r14d, (%rbx)
	movq	$0, 8(%rbx)
LBB0_6:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_CTXDBG_EXIT                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BN_CTX_end"

.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:
	cbz	x0, LBB0_3
; %bb.1:
	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
	.cfi_remember_state
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_CTXDBG_ENTRY
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.2:
	sub	x8, x8, #1
	str	x8, [x19, #24]
	b	LBB0_7
LBB0_3:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
LBB0_4:
	.cfi_restore_state
	add	x0, x19, #20
	bl	_BN_STACK_pop
	mov	x20, x0
	ldr	w8, [x19]
	subs	w1, w8, w0
	b.ls	LBB0_6
; %bb.5:
	add	x0, x19, #16
	bl	_BN_POOL_release
LBB0_6:
	str	w20, [x19]
	str	xzr, [x19, #8]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CTXDBG_EXIT
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BN_CTX_end"

.subsections_via_symbols
