	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function linebuffer_new
_linebuffer_new:                        ## @linebuffer_new
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$24, %edi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	_DEFAULT_LINEBUFFER_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_OPENSSL_malloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	(%r15), %eax
	movl	%eax, (%rbx)
	movq	$0, 8(%rbx)
	movl	$1, (%r14)
	movq	%rbx, 8(%r14)
	movq	$0, 16(%r14)
	movl	$1, %eax
	jmp	LBB0_6
LBB0_3:
	movq	_BIO_F_LINEBUFFER_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BIOerr
	jmp	LBB0_5
LBB0_4:
	movq	_BIO_F_LINEBUFFER_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BIOerr
	movq	%rbx, %rdi
	callq	_OPENSSL_free
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIO_F_LINEBUFFER_NEW,4,2       ## @BIO_F_LINEBUFFER_NEW
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_DEFAULT_LINEBUFFER_SIZE,4,2    ## @DEFAULT_LINEBUFFER_SIZE
	.no_dead_strip	_linebuffer_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function linebuffer_new
_linebuffer_new:                        ; @linebuffer_new
	.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, x0
	mov	w0, #24
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x21, _DEFAULT_LINEBUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DEFAULT_LINEBUFFER_SIZE@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_OPENSSL_malloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x21]
	str	w8, [x19]
	str	xzr, [x19, #8]
	mov	w0, #1
	str	w0, [x20]
	stp	x19, xzr, [x20, #8]
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _BIO_F_LINEBUFFER_NEW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BIO_F_LINEBUFFER_NEW@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_BIOerr
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _BIO_F_LINEBUFFER_NEW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BIO_F_LINEBUFFER_NEW@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_BIOerr
	mov	x0, x19
	bl	_OPENSSL_free
LBB0_5:
	mov	w0, #0
LBB0_6:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_F_LINEBUFFER_NEW,4,2       ; @BIO_F_LINEBUFFER_NEW
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_DEFAULT_LINEBUFFER_SIZE,4,2    ; @DEFAULT_LINEBUFFER_SIZE
	.no_dead_strip	_linebuffer_new
.subsections_via_symbols
