	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mem_buf_free
_mem_buf_free:                          ## @mem_buf_free
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	$1, %ebx
	cmpq	$0, 24(%rdi)
	je	LBB0_8
## %bb.3:
	cmpq	$0, 16(%rdi)
	je	LBB0_8
## %bb.4:
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	(%rax), %rax
	movq	_BIO_FLAGS_MEM_RDONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rdi)
	je	LBB0_7
## %bb.6:
	movq	$0, (%rax)
LBB0_7:
	movq	%rax, %rdi
	callq	_BUF_MEM_free
	jmp	LBB0_8
LBB0_1:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIO_FLAGS_MEM_RDONLY,4,2       ## @BIO_FLAGS_MEM_RDONLY
	.no_dead_strip	_mem_buf_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mem_buf_free
_mem_buf_free:                          ; @mem_buf_free
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x0, LBB0_8
; %bb.1:
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	x8, [x8]
	ldr	w9, [x0]
Lloh0:
	adrp	x10, _BIO_FLAGS_MEM_RDONLY@GOTPAGE
Lloh1:
	ldr	x10, [x10, _BIO_FLAGS_MEM_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.5:
	str	xzr, [x8]
LBB0_6:
	mov	x0, x8
	bl	_BUF_MEM_free
LBB0_7:
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_FLAGS_MEM_RDONLY,4,2       ; @BIO_FLAGS_MEM_RDONLY
	.no_dead_strip	_mem_buf_free
.subsections_via_symbols
