	.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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_archive_clear_error
	movq	(%r13), %rax
	movq	_FNT_STDIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	xorl	%r14d, %r14d
	leaq	L_.str(%rip), %r12
	jmp	LBB0_2
LBB0_6:
	movq	_FNT_MBS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_O_BINARY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	40(%r13), %r12
	movq	_O_CLOEXEC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r12, %rdi
	callq	_open
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	___archive_ensure_cloexec_flag
	testl	%r14d, %r14d
	js	LBB0_8
LBB0_2:
	leaq	-56(%rbp), %rsi
	movl	%r14d, %edi
	callq	_fstat
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	(%r13), %rax
	movq	_FNT_WCS@GOTPCREL(%rip), %rcx
	movq	_errno@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.4:
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_9:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rbx
	jmp	LBB0_23
LBB0_11:
	movl	-56(%rbp), %ebx
	movl	%ebx, %edi
	callq	_S_ISREG
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %esi
	movq	%r15, %rdi
	callq	_archive_read_extract_set_skip_file
	movq	8(%r13), %rax
	movl	$65536, %ecx                    ## imm = 0x10000
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rdi
	cmpq	$67108863, %rcx                 ## imm = 0x3FFFFFF
	ja	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	leaq	(%rdi,%rdi), %rcx
	cmpq	%rax, %rdi
	jb	LBB0_14
LBB0_16:
	movq	%rdi, 8(%r13)
	jmp	LBB0_17
LBB0_10:
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	movq	%r12, %rcx
LBB0_5:
	xorl	%eax, %eax
	callq	_archive_set_error
LBB0_19:
	leal	-1(%r14), %eax
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rbx
	cmpl	$-3, %eax
	ja	LBB0_23
## %bb.20:
	movl	%r14d, %edi
	callq	_close
	jmp	LBB0_23
LBB0_8:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rbx
	jmp	LBB0_23
LBB0_12:
	movq	8(%r13), %rdi
LBB0_17:
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.21:
	movq	%rax, 32(%r13)
	movl	%r14d, 16(%r13)
	movl	%ebx, 24(%r13)
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rbx
	testq	%r12, %r12
	je	LBB0_23
## %bb.22:
	movl	$1, 20(%r13)
LBB0_23:
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	leaq	L_.str.5(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_archive_set_error
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_FNT_STDIN,8,3                  ## @FNT_STDIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_FNT_MBS,8,3                    ## @FNT_MBS
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_BINARY,4,2                   ## @O_BINARY
	.comm	_O_CLOEXEC,4,2                  ## @O_CLOEXEC
	.comm	_errno,8,3                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"Failed to open '%s'"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ## @ARCHIVE_ERRNO_MISC
L_.str.2:                               ## @.str.2
	.asciz	"Unexpedted operation in archive_read_open_filename"

	.comm	_FNT_WCS,8,3                    ## @FNT_WCS
L_.str.3:                               ## @.str.3
	.asciz	"Can't stat '%S'"

L_.str.4:                               ## @.str.4
	.asciz	"Can't stat '%s'"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.5:                               ## @.str.5
	.asciz	"No memory"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_DIOCGDINFO,4,2                 ## @DIOCGDINFO
	.comm	_DIOCGMEDIASIZE,4,2             ## @DIOCGMEDIASIZE
	.comm	_DIOCGPART,4,2                  ## @DIOCGPART
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.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:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_archive_clear_error
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _FNT_STDIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FNT_STDIN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
Lloh3:
	adrp	x22, l_.str@PAGE
Lloh4:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x9, _FNT_MBS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FNT_MBS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	x22, [x21, #40]
Lloh8:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _O_BINARY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _O_BINARY@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _O_CLOEXEC@GOTPAGE
Lloh15:
	ldr	x9, [x9, _O_CLOEXEC@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x22
	bl	_open
	mov	x20, x0
	bl	___archive_ensure_cloexec_flag
	tbnz	w20, #31, LBB0_17
LBB0_4:
	add	x1, sp, #16
	mov	x0, x20
	bl	_fstat
	cbz	x0, LBB0_8
; %bb.5:
Lloh17:
	adrp	x8, _FNT_WCS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FNT_WCS@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x10, _errno@GOTPAGE
Lloh21:
	ldr	x10, [x10, _errno@GOTPAGEOFF]
Lloh22:
	ldr	x1, [x10]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.6:
	str	xzr, [sp]
Lloh23:
	adrp	x2, l_.str.3@PAGE
Lloh24:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_21
LBB0_7:
Lloh25:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh27:
	ldrsw	x1, [x8]
Lloh28:
	adrp	x2, l_.str.2@PAGE
Lloh29:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_8:
	ldr	w22, [sp, #16]
	mov	x0, x22
	bl	_S_ISREG
	mov	x23, x0
	cbz	x0, LBB0_19
; %bb.9:
	ldp	w2, w1, [sp, #24]
	mov	x0, x19
	bl	_archive_read_extract_set_skip_file
	ldr	x8, [x21, #8]
	mov	w9, #65536
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x9
	lsr	x9, x9, #26
	cbnz	x9, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	lsl	x9, x0, #1
	cmp	x0, x8
	b.lo	LBB0_10
LBB0_12:
	str	x0, [x21, #8]
	bl	_malloc
	cbz	x0, LBB0_20
LBB0_13:
	str	x0, [x21, #32]
	str	w20, [x21, #16]
	str	w22, [x21, #24]
	cbz	x23, LBB0_15
; %bb.14:
	mov	w8, #1
	str	w8, [x21, #20]
LBB0_15:
Lloh30:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_24
LBB0_16:
	str	x22, [sp]
Lloh32:
	adrp	x2, l_.str.4@PAGE
Lloh33:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_21
LBB0_17:
Lloh34:
	adrp	x8, _errno@GOTPAGE
Lloh35:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh36:
	ldr	x1, [x8]
	str	x22, [sp]
Lloh37:
	adrp	x2, l_.str.1@PAGE
Lloh38:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_18:
	mov	x0, x19
	bl	_archive_set_error
	b	LBB0_23
LBB0_19:
	ldr	x0, [x21, #8]
	bl	_malloc
	cbnz	x0, LBB0_13
LBB0_20:
Lloh39:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh41:
	ldrsw	x1, [x8]
Lloh42:
	adrp	x2, l_.str.5@PAGE
Lloh43:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_21:
	mov	x0, x19
	bl	_archive_set_error
	sub	w8, w20, #1
	cmn	w8, #3
	b.hi	LBB0_23
; %bb.22:
	mov	x0, x20
	bl	_close
LBB0_23:
Lloh44:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_24:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_FNT_STDIN,8,3                  ; @FNT_STDIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_FNT_MBS,8,3                    ; @FNT_MBS
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_BINARY,4,2                   ; @O_BINARY
	.comm	_O_CLOEXEC,4,2                  ; @O_CLOEXEC
	.comm	_errno,8,3                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"Failed to open '%s'"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ; @ARCHIVE_ERRNO_MISC
l_.str.2:                               ; @.str.2
	.asciz	"Unexpedted operation in archive_read_open_filename"

	.comm	_FNT_WCS,8,3                    ; @FNT_WCS
l_.str.3:                               ; @.str.3
	.asciz	"Can't stat '%S'"

l_.str.4:                               ; @.str.4
	.asciz	"Can't stat '%s'"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.5:                               ; @.str.5
	.asciz	"No memory"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_DIOCGDINFO,4,2                 ; @DIOCGDINFO
	.comm	_DIOCGMEDIASIZE,4,2             ; @DIOCGMEDIASIZE
	.comm	_DIOCGPART,4,2                  ; @DIOCGPART
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_file_open
.subsections_via_symbols
