	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function memopen
_memopen:                               ## @memopen
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_pfd@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	jns	LBB0_3
## %bb.1:
	movq	__PATH_MEM@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_warn
	movq	(%rbx), %rax
LBB0_3:
	shrq	$63, %rax
	xorl	$1, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pfd,8,3                        ## @pfd
	.comm	__PATH_MEM,4,2                  ## @_PATH_MEM
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: cannot open"

	.no_dead_strip	_memopen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function memopen
_memopen:                               ; @memopen
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _pfd@GOTPAGE
Lloh1:
	ldr	x19, [x19, _pfd@GOTPAGEOFF]
	ldr	x0, [x19]
	tbz	x0, #63, LBB0_3
; %bb.1:
Lloh2:
	adrp	x20, __PATH_MEM@GOTPAGE
Lloh3:
	ldr	x20, [x20, __PATH_MEM@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh4:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_open
	str	x0, [x19]
	tbz	x0, #63, LBB0_3
; %bb.2:
	ldr	w1, [x20]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	ldr	x0, [x19]
LBB0_3:
	lsr	x8, x0, #63
	eor	w0, w8, #0x1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_pfd,8,3                        ; @pfd
	.comm	__PATH_MEM,4,2                  ; @_PATH_MEM
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: cannot open"

	.no_dead_strip	_memopen
.subsections_via_symbols
