	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memstream_close                ## -- Begin function memstream_close
	.p2align	4, 0x90
_memstream_close:                       ## @memstream_close
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	cmpq	$0, 8(%rdi)
	setne	%al
	movl	(%rdi,%rax,4), %eax
	movq	_last_file_size@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_1:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_last_file_size,4,2             ## @last_file_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memstream_close                ; -- Begin function memstream_close
	.p2align	2
_memstream_close:                       ; @memstream_close
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x0, #8]
	cmp	x8, #0
	cset	w8, ne
	ldr	w8, [x0, w8, uxtw #2]
Lloh0:
	adrp	x9, _last_file_size@GOTPAGE
Lloh1:
	ldr	x9, [x9, _last_file_size@GOTPAGEOFF]
Lloh2:
	str	w8, [x9]
	b	_free
LBB0_2:
	ret
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_last_file_size,4,2             ; @last_file_size
.subsections_via_symbols
