	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function BN_POOL_get
_BN_POOL_get:                           ## @BN_POOL_get
	.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
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	cmpl	4(%rdi), %ecx
	jne	LBB0_10
## %bb.1:
	movl	%esi, %r12d
	movl	$24, %edi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_BN_CTX_POOL_SIZE@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.5:
	movq	(%rax), %rbx
	xorl	%r14d, %r14d
	movq	_BN_FLG_SECURE@GOTPCREL(%rip), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	addq	$4, %rbx
	movl	(%r13), %eax
	incl	%r14d
	cmpl	%eax, %r14d
	jae	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_bn_init
	movl	(%r15), %esi
	testl	%r12d, %esi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_BN_set_flags
	jmp	LBB0_8
LBB0_10:
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.12:
	movq	_BN_CTX_POOL_SIZE@GOTPCREL(%rip), %rsi
	movl	%ecx, %eax
	cltd
	idivl	(%rsi)
	movq	8(%rbx), %rax
	testl	%edx, %edx
	jne	LBB0_15
## %bb.13:
	movq	8(%rax), %rax
	jmp	LBB0_14
LBB0_2:
	movq	_BN_F_BN_POOL_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BNerr
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_11:
	movq	16(%rbx), %rax
LBB0_14:
	movq	%rax, 8(%rbx)
LBB0_15:
	movq	(%rax), %rsi
	leal	1(%rcx), %eax
	movl	%eax, (%rbx)
	movq	_BN_CTX_POOL_SIZE@GOTPCREL(%rip), %rdi
	movl	%ecx, %eax
	cltd
	idivl	(%rdi)
	movslq	%edx, %rax
	leaq	(%rsi,%rax,4), %rax
	jmp	LBB0_16
LBB0_4:
	xorl	%eax, %eax
LBB0_9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	24(%rdi), %rcx
	movq	24(%rdi), %rdx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rdx, 16(%rbx)
	movq	$0, 8(%rbx)
	addq	$8, %rdx
	xorl	%esi, %esi
	cmpq	$0, 16(%rdi)
	setne	%sil
	cmoveq	%rcx, %rdx
	movq	%rbx, (%rdx)
	movq	%rbx, 16(%rdi,%rsi,8)
	movq	%rbx, 8(%rdi)
	addl	%eax, 4(%rdi)
	incl	(%rdi)
	movq	(%rbx), %rax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BN_F_BN_POOL_GET,4,2           ## @BN_F_BN_POOL_GET
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_BN_CTX_POOL_SIZE,4,2           ## @BN_CTX_POOL_SIZE
	.comm	_BN_FLG_SECURE,4,2              ## @BN_FLG_SECURE
	.no_dead_strip	_BN_POOL_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function BN_POOL_get
_BN_POOL_get:                           ; @BN_POOL_get
	.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
	mov	x19, x0
	ldp	w8, w9, [x0]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.1:
	mov	x21, x1
	mov	w0, #24
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_11
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x23, _BN_CTX_POOL_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BN_CTX_POOL_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_10
; %bb.3:
	mov	w24, #0
	ldr	x22, [x20]
Lloh2:
	adrp	x25, _BN_FLG_SECURE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _BN_FLG_SECURE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #4
	ldr	w8, [x23]
	add	w24, w24, #1
	cmp	w24, w8
	b.hs	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_bn_init
	ldr	w1, [x25]
	tst	w1, w21
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_BN_set_flags
	b	LBB0_4
LBB0_7:
Lloh4:
	adrp	x9, _BN_CTX_POOL_SIZE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BN_CTX_POOL_SIZE@GOTPAGEOFF]
	cbz	w8, LBB0_12
; %bb.8:
	ldr	w10, [x9]
	sdiv	w11, w8, w10
	msub	w11, w11, w10, w8
	ldr	x10, [x19, #8]
	cbnz	w11, LBB0_14
; %bb.9:
	ldr	x10, [x10, #8]
	b	LBB0_13
LBB0_10:
	mov	x9, x19
	ldr	x10, [x9, #24]!
	stp	xzr, x10, [x20, #8]
	ldr	x11, [x19, #16]
	add	x10, x10, #8
	cmp	x11, #0
	csel	x9, x9, x10, eq
	mov	w10, #24
	mov	w11, #16
	csel	x10, x11, x10, eq
	str	x20, [x9]
	str	x20, [x19, x10]
	str	x20, [x19, #8]
	ldp	w10, w9, [x19]
	add	w8, w9, w8
	add	w9, w10, #1
	stp	w9, w8, [x19]
	ldr	x0, [x20]
	b	LBB0_15
LBB0_11:
Lloh6:
	adrp	x8, _BN_F_BN_POOL_GET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BN_F_BN_POOL_GET@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_BNerr
	mov	x0, #0
	b	LBB0_15
LBB0_12:
	ldr	x10, [x19, #16]
LBB0_13:
	str	x10, [x19, #8]
LBB0_14:
	ldr	x10, [x10]
	add	w11, w8, #1
	str	w11, [x19]
	ldr	w9, [x9]
	sdiv	w11, w8, w9
	msub	w8, w11, w9, w8
	add	x0, x10, w8, sxtw #2
LBB0_15:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BN_F_BN_POOL_GET,4,2           ; @BN_F_BN_POOL_GET
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_BN_CTX_POOL_SIZE,4,2           ; @BN_CTX_POOL_SIZE
	.comm	_BN_FLG_SECURE,4,2              ; @BN_FLG_SECURE
	.no_dead_strip	_BN_POOL_get
.subsections_via_symbols
