	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sk_reserve
_sk_reserve:                            ## @sk_reserve
	.cfi_startproc
## %bb.0:
	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	_max_nodes@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rdi), %ebx
	subl	%ebx, %eax
	cmpl	%esi, %eax
	jge	LBB0_2
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_2:
	movq	%rdi, %r14
	addl	%esi, %ebx
	movq	_min_nodes@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	cmovlel	%eax, %ebx
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	movl	16(%r14), %esi
	movl	$1, %eax
	testl	%edx, %edx
	je	LBB0_7
## %bb.4:
	cmpl	%esi, %ebx
	jne	LBB0_10
	jmp	LBB0_13
LBB0_5:
	leal	(,%rbx,8), %edi
	callq	_OPENSSL_zalloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	jne	LBB0_12
## %bb.6:
	movq	_CRYPTO_F_SK_RESERVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CRYPTOerr
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_7:
	cmpl	%esi, %ebx
	jle	LBB0_13
## %bb.8:
	movl	%ebx, %edi
	callq	_compute_growth
	testl	%eax, %eax
	je	LBB0_1
## %bb.9:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
LBB0_10:
	leal	(,%rbx,8), %esi
	callq	_OPENSSL_realloc
	movq	%rax, %rcx
	movl	$0, %eax
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.11:
	movq	%rcx, 8(%r14)
LBB0_12:
	movl	%ebx, 16(%r14)
	movl	$1, %eax
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max_nodes,4,2                  ## @max_nodes
	.comm	_min_nodes,4,2                  ## @min_nodes
	.comm	_CRYPTO_F_SK_RESERVE,4,2        ## @CRYPTO_F_SK_RESERVE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_sk_reserve
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sk_reserve
_sk_reserve:                            ; @sk_reserve
	.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
Lloh0:
	adrp	x8, _max_nodes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _max_nodes@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldr	w8, [x0]
	sub	w9, w9, w8
	cmp	w9, w1
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_14
LBB0_2:
	mov	x19, x0
Lloh3:
	adrp	x9, _min_nodes@GOTPAGE
Lloh4:
	ldr	x9, [x9, _min_nodes@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w8, w8, w1
	cmp	w8, w9
	csel	w20, w8, w9, gt
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w1, [x19, #16]
	cbz	w2, LBB0_7
; %bb.4:
	cmp	w20, w1
	b.ne	LBB0_10
	b	LBB0_13
LBB0_5:
	lsl	w0, w20, #3
	bl	_OPENSSL_zalloc
	str	x0, [x19, #8]
	cbnz	x0, LBB0_12
; %bb.6:
Lloh6:
	adrp	x8, _CRYPTO_F_SK_RESERVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CRYPTO_F_SK_RESERVE@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	_CRYPTOerr
	mov	w0, #0
	b	LBB0_14
LBB0_7:
	cmp	w20, w1
	b.le	LBB0_13
; %bb.8:
	mov	x0, x20
	bl	_compute_growth
	cbz	w0, LBB0_14
; %bb.9:
	mov	x20, x0
	ldr	x0, [x19, #8]
LBB0_10:
	lsl	w1, w20, #3
	bl	_OPENSSL_realloc
	cbz	x0, LBB0_14
; %bb.11:
	str	x0, [x19, #8]
LBB0_12:
	str	w20, [x19, #16]
LBB0_13:
	mov	w0, #1
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_max_nodes,4,2                  ; @max_nodes
	.comm	_min_nodes,4,2                  ; @min_nodes
	.comm	_CRYPTO_F_SK_RESERVE,4,2        ; @CRYPTO_F_SK_RESERVE
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.no_dead_strip	_sk_reserve
.subsections_via_symbols
