	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CRYPT_EncodeEnsureSpace        ## -- Begin function CRYPT_EncodeEnsureSpace
	.p2align	4, 0x90
_CRYPT_EncodeEnsureSpace:               ## @CRYPT_EncodeEnsureSpace
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rcx, %r15
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_CRYPT_ENCODE_ALLOC_FLAG@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_7
## %bb.1:
	movq	%rdx, %r12
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.2:
	movq	(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	%ebx, %edi
	callq	*%rax
	jmp	LBB0_5
LBB0_4:
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_LocalAlloc
LBB0_5:
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movl	%ebx, (%r15)
	jmp	LBB0_10
LBB0_7:
	cmpl	%ebx, (%r15)
	movl	%ebx, (%r15)
	jge	LBB0_10
## %bb.8:
	movq	_ERROR_MORE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SetLastError
LBB0_9:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_CRYPT_ENCODE_ALLOC_FLAG,4,2    ## @CRYPT_ENCODE_ALLOC_FLAG
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_ERROR_MORE_DATA,4,2            ## @ERROR_MORE_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CRYPT_EncodeEnsureSpace        ; -- Begin function CRYPT_EncodeEnsureSpace
	.p2align	2
_CRYPT_EncodeEnsureSpace:               ; @CRYPT_EncodeEnsureSpace
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x4
	mov	x21, x3
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x8, _CRYPT_ENCODE_ALLOC_FLAG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRYPT_ENCODE_ALLOC_FLAG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.1:
	mov	x22, x2
	cbz	x1, LBB0_4
; %bb.2:
	ldr	x8, [x1]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	blr	x8
	str	x0, [x22]
	cbnz	x0, LBB0_5
	b	LBB0_8
LBB0_4:
	mov	w0, #0
	mov	x1, x20
	bl	_LocalAlloc
	str	x0, [x22]
	cbz	x0, LBB0_8
LBB0_5:
	str	w20, [x21]
	b	LBB0_9
LBB0_6:
	ldr	w8, [x21]
	str	w20, [x21]
	cmp	w8, w20
	b.ge	LBB0_9
; %bb.7:
Lloh6:
	adrp	x8, _ERROR_MORE_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR_MORE_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_SetLastError
LBB0_8:
Lloh9:
	adrp	x8, _FALSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_CRYPT_ENCODE_ALLOC_FLAG,4,2    ; @CRYPT_ENCODE_ALLOC_FLAG
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_ERROR_MORE_DATA,4,2            ; @ERROR_MORE_DATA
.subsections_via_symbols
