	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_open                           ## -- Begin function open
	.p2align	4, 0x90
_open:                                  ## @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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movq	_EROFS@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	_sourceptr@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_EMFILE@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_files_start@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	(%r13), %r12d
	xorl	%r14d, %r14d
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.6:
	movq	%rdi, %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	4(%r13), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movslq	%r12d, %rax
	movl	(%r13,%rax), %r12d
	addq	%rax, %r13
	testl	%r12d, %r12d
	jne	LBB0_7
	jmp	LBB0_10
LBB0_8:
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%ebx, %eax
	addl	$4, %eax
	cltq
	andq	$-4, %rax
	movq	_sourcebeg@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_sourceptr@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	(%r13), %ecx
	addl	%r13d, %ecx
	subl	%eax, %ecx
	movq	_sourcesize@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	movq	_sourceleft@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	movq	_sourcedesc@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EROFS,4,2                      ## @EROFS
	.comm	_errno,4,2                      ## @errno
	.comm	_sourceptr,8,3                  ## @sourceptr
	.comm	_EMFILE,4,2                     ## @EMFILE
	.comm	_files_start,8,3                ## @files_start
	.comm	_sourcebeg,8,3                  ## @sourcebeg
	.comm	_sourcesize,4,2                 ## @sourcesize
	.comm	_sourceleft,4,2                 ## @sourceleft
	.comm	_sourcedesc,4,2                 ## @sourcedesc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_open                           ; -- Begin function open
	.p2align	2
_open:                                  ; @open
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EROFS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EROFS@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh2:
	adrp	x21, _sourceptr@GOTPAGE
Lloh3:
	ldr	x21, [x21, _sourceptr@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.3:
Lloh4:
	adrp	x8, _EMFILE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EMFILE@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _errno@GOTPAGE
Lloh7:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh9:
	adrp	x8, _files_start@GOTPAGE
Lloh10:
	ldr	x8, [x8, _files_start@GOTPAGEOFF]
Lloh11:
	ldr	x22, [x8]
	ldr	w23, [x22]
	cbz	w23, LBB0_10
; %bb.7:
	mov	x19, x0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x20, x22, #4
	mov	x0, x20
	mov	x1, x19
	bl	_strcmp
	cbz	w0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, w23, sxtw
	ldr	w23, [x22]
	cbnz	w23, LBB0_8
LBB0_10:
	mov	w0, #0
	b	LBB0_5
LBB0_11:
	mov	x0, x20
	bl	_strlen
	add	w8, w20, w0
	add	w8, w8, #4
	sxtw	x8, w8
	and	x8, x8, #0xfffffffffffffffc
Lloh12:
	adrp	x9, _sourcebeg@GOTPAGE
Lloh13:
	ldr	x9, [x9, _sourcebeg@GOTPAGEOFF]
Lloh14:
	str	x8, [x9]
	str	x8, [x21]
	ldr	w9, [x22]
	add	w9, w22, w9
	sub	w8, w9, w8
Lloh15:
	adrp	x9, _sourcesize@GOTPAGE
Lloh16:
	ldr	x9, [x9, _sourcesize@GOTPAGEOFF]
Lloh17:
	str	w8, [x9]
Lloh18:
	adrp	x9, _sourceleft@GOTPAGE
Lloh19:
	ldr	x9, [x9, _sourceleft@GOTPAGEOFF]
Lloh20:
	str	w8, [x9]
Lloh21:
	adrp	x8, _sourcedesc@GOTPAGE
Lloh22:
	ldr	x8, [x8, _sourcedesc@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EROFS,4,2                      ; @EROFS
	.comm	_errno,4,2                      ; @errno
	.comm	_sourceptr,8,3                  ; @sourceptr
	.comm	_EMFILE,4,2                     ; @EMFILE
	.comm	_files_start,8,3                ; @files_start
	.comm	_sourcebeg,8,3                  ; @sourcebeg
	.comm	_sourcesize,4,2                 ; @sourcesize
	.comm	_sourceleft,4,2                 ; @sourceleft
	.comm	_sourcedesc,4,2                 ; @sourcedesc
.subsections_via_symbols
