	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_O_TRUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_O_BINARY@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_O_CLOEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	$0, -56(%rbp)
	movq	$0, -72(%rbp)
	leaq	8(%rsi), %r12
	leaq	-56(%rbp), %rdx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	callq	_archive_mstring_get_mbs
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_7
## %bb.2:
	leaq	L_.str(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_archive_set_error
	jmp	LBB0_22
LBB0_3:
	orl	-64(%rbp), %ebx                 ## 4-byte Folded Reload
	orl	%r14d, %ebx
	orl	%r13d, %ebx
	orl	-60(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	-56(%rbp), %rdi
	movl	%ebx, %esi
	movl	$438, %edx                      ## imm = 0x1B6
	callq	_open
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	___archive_ensure_cloexec_flag
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	js	LBB0_8
## %bb.4:
	leaq	-88(%rbp), %rsi
	callq	_fstat
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	-56(%rbp), %rcx
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.6:
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_10
LBB0_7:
	leaq	-72(%rbp), %rdx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_archive_mstring_get_wcs
	movq	(%r14), %rsi
	movq	-72(%rbp), %rcx
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	jmp	LBB0_21
LBB0_8:
	movq	-56(%rbp), %rcx
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.9:
	leaq	L_.str.2(%rip), %rdx
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_11:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_archive_write_get_bytes_in_last_block
	movl	-80(%rbp), %ebx
	testq	%rax, %rax
	jns	LBB0_16
## %bb.12:
	movl	%ebx, %edi
	callq	_S_ISCHR
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:
	movl	%ebx, %edi
	callq	_S_ISBLK
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movl	%ebx, %edi
	callq	_S_ISFIFO
	xorl	%r15d, %r15d
	testq	%rax, %rax
	sete	%r15b
LBB0_15:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_archive_write_set_bytes_in_last_block
LBB0_16:
	movl	%ebx, %edi
	callq	_S_ISREG
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_23
## %bb.17:
	movl	-88(%rbp), %edx
	movl	-84(%rbp), %esi
	movq	%r14, %rdi
	callq	_archive_write_set_skip_file
	jmp	LBB0_23
LBB0_18:
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_20
LBB0_19:
	leaq	L_.str.3(%rip), %rdx
LBB0_20:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
LBB0_21:
	xorl	%eax, %eax
	callq	_archive_set_error
LBB0_22:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rbx
LBB0_23:
	movl	(%rbx), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_O_BINARY,4,2                   ## @O_BINARY
	.comm	_O_CLOEXEC,4,2                  ## @O_CLOEXEC
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No memory"

L_.str.1:                               ## @.str.1
	.asciz	"Can't convert '%S' to MBS"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
L_.str.2:                               ## @.str.2
	.asciz	"Failed to open '%s'"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to open '%S'"

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

L_.str.5:                               ## @.str.5
	.asciz	"Couldn't stat '%S'"

	.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:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x8, _O_TRUNC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _O_TRUNC@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
Lloh9:
	adrp	x8, _O_BINARY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _O_BINARY@GOTPAGEOFF]
Lloh11:
	ldr	w25, [x8]
Lloh12:
	adrp	x8, _O_CLOEXEC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _O_CLOEXEC@GOTPAGEOFF]
Lloh14:
	ldr	w26, [x8]
	stp	xzr, xzr, [sp, #16]
	add	x21, x1, #8
	add	x2, sp, #16
	mov	x1, x21
	bl	_archive_mstring_get_mbs
	cbz	x0, LBB0_3
; %bb.1:
Lloh15:
	adrp	x20, _errno@GOTPAGE
Lloh16:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	x1, [x20]
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_7
; %bb.2:
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_20
LBB0_3:
	orr	w8, w23, w22
	orr	w8, w8, w24
	orr	w8, w8, w25
	orr	w1, w8, w26
	ldr	x0, [sp, #16]
	mov	w2, #438
	bl	_open
	str	x0, [x20]
	bl	___archive_ensure_cloexec_flag
	ldr	x0, [x20]
	tbnz	x0, #63, LBB0_8
; %bb.4:
	add	x1, sp, #32
	bl	_fstat
	cbz	x0, LBB0_10
; %bb.5:
	ldr	x8, [sp, #16]
Lloh22:
	adrp	x9, _errno@GOTPAGE
Lloh23:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh24:
	ldr	x1, [x9]
	cbz	x8, LBB0_18
; %bb.6:
	str	x8, [sp]
Lloh25:
	adrp	x2, l_.str.4@PAGE
Lloh26:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_20
LBB0_7:
	add	x2, sp, #24
	mov	x0, x19
	mov	x1, x21
	bl	_archive_mstring_get_wcs
	ldr	x1, [x20]
	ldr	x8, [sp, #24]
	str	x8, [sp]
Lloh27:
	adrp	x2, l_.str.1@PAGE
Lloh28:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_8:
	ldr	x8, [sp, #16]
Lloh29:
	adrp	x9, _errno@GOTPAGE
Lloh30:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh31:
	ldr	x1, [x9]
	cbz	x8, LBB0_19
; %bb.9:
	str	x8, [sp]
Lloh32:
	adrp	x2, l_.str.2@PAGE
Lloh33:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_10:
	mov	x0, x19
	bl	_archive_write_get_bytes_in_last_block
	ldr	w20, [sp, #40]
	tbz	x0, #63, LBB0_15
; %bb.11:
	mov	x0, x20
	bl	_S_ISCHR
	cbnz	x0, LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_S_ISBLK
	cbz	x0, LBB0_22
LBB0_13:
	mov	w1, #0
LBB0_14:
	mov	x0, x19
	bl	_archive_write_set_bytes_in_last_block
LBB0_15:
	mov	x0, x20
	bl	_S_ISREG
	cbz	x0, LBB0_17
; %bb.16:
	ldp	w2, w1, [sp, #32]
	mov	x0, x19
	bl	_archive_write_set_skip_file
LBB0_17:
Lloh34:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_21
LBB0_18:
	str	xzr, [sp]
Lloh36:
	adrp	x2, l_.str.5@PAGE
Lloh37:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_20
LBB0_19:
	str	xzr, [sp]
Lloh38:
	adrp	x2, l_.str.3@PAGE
Lloh39:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_20:
	mov	x0, x19
	bl	_archive_set_error
Lloh40:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_21:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_22:
	mov	x0, x20
	bl	_S_ISFIFO
	cmp	x0, #0
	cset	w1, eq
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_O_BINARY,4,2                   ; @O_BINARY
	.comm	_O_CLOEXEC,4,2                  ; @O_CLOEXEC
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No memory"

l_.str.1:                               ; @.str.1
	.asciz	"Can't convert '%S' to MBS"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
l_.str.2:                               ; @.str.2
	.asciz	"Failed to open '%s'"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to open '%S'"

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

l_.str.5:                               ; @.str.5
	.asciz	"Couldn't stat '%S'"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_file_open
.subsections_via_symbols
