	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intfstream_open_memory         ## -- Begin function intfstream_open_memory
	.p2align	4, 0x90
_intfstream_open_memory:                ## @intfstream_open_memory
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	_INTFSTREAM_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	%rdi, -40(%rbp)
	movl	%ecx, -48(%rbp)
	movl	$0, -56(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_intfstream_init
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_intfstream_open
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_intfstream_close
	movq	%rbx, %rdi
	callq	_free
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTFSTREAM_MEMORY,4,2          ## @INTFSTREAM_MEMORY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intfstream_open_memory         ; -- Begin function intfstream_open_memory
	.p2align	2
_intfstream_open_memory:                ; @intfstream_open_memory
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x21, x1
Lloh0:
	adrp	x8, _INTFSTREAM_MEMORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTFSTREAM_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	x0, [sp, #16]
	str	w3, [sp, #8]
	str	wzr, [sp]
	mov	x0, sp
	bl	_intfstream_init
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	x1, #0
	mov	x2, x21
	mov	x3, x20
	bl	_intfstream_open
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_intfstream_close
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INTFSTREAM_MEMORY,4,2          ; @INTFSTREAM_MEMORY
.subsections_via_symbols
