	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function file_open
_file_open:                             ## @file_open
	.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
	cmpq	$0, (%rsi)
	js	LBB0_1
LBB0_4:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %rbx
	movl	16(%rsi), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_O_BINARY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_open
	movq	%rax, (%rbx)
	testq	%rax, %rax
	js	LBB0_4
## %bb.2:
	movq	_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	callq	_calloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_ARCHIVE_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_BINARY,4,2                   ## @O_BINARY
	.comm	_BLOCK_SIZE,4,2                 ## @BLOCK_SIZE
	.comm	_ARCHIVE_FAILED,4,2             ## @ARCHIVE_FAILED
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_file_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function file_open
_file_open:                             ; @file_open
	.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
	ldr	x8, [x1]
	tbnz	x8, #63, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x1
Lloh2:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
	ldr	w0, [x1, #16]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _O_BINARY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _O_BINARY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_open
	str	x0, [x19]
	tbnz	x0, #63, LBB0_1
; %bb.4:
Lloh8:
	adrp	x8, _BLOCK_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BLOCK_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w0, #1
	bl	_calloc
	str	x0, [x19, #8]
	cbnz	x0, LBB0_1
; %bb.5:
Lloh11:
	adrp	x8, _ARCHIVE_FAILED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ARCHIVE_FAILED@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_BINARY,4,2                   ; @O_BINARY
	.comm	_BLOCK_SIZE,4,2                 ; @BLOCK_SIZE
	.comm	_ARCHIVE_FAILED,4,2             ; @ARCHIVE_FAILED
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_file_open
.subsections_via_symbols
