	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intfstream_close               ## -- Begin function intfstream_close
	.p2align	4, 0x90
_intfstream_close:                      ## @intfstream_close
	.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
	movl	$-1, %ebx
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movl	(%rdi), %eax
	xorl	%ebx, %ebx
	cmpl	$128, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$130, %eax
	je	LBB0_9
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.4:
	movl	12(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_9
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_filestream_close               ## TAILCALL
LBB0_6:
	movl	8(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_9
## %bb.7:
	callq	_memstream_close
	jmp	LBB0_9
LBB0_8:
	movl	$-1, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intfstream_close               ; -- Begin function intfstream_close
	.p2align	2
_intfstream_close:                      ; @intfstream_close
	.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_6
; %bb.1:
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.2:
	cmp	w8, #130
	b.eq	LBB0_10
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x0, #12]
	cbz	w0, LBB0_7
; %bb.5:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_filestream_close
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w0, [x0, #8]
	cbz	w0, LBB0_7
; %bb.9:
	bl	_memstream_close
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
