	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %edi
	leaq	-48(%rbp), %rsi
	callq	_fstat
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %r12
	jmp	LBB0_12
LBB0_2:
	movl	-48(%rbp), %r15d
	movl	%r15d, %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	-44(%rbp), %edx
	movl	-40(%rbp), %esi
	movq	%r14, %rdi
	callq	_archive_write_set_skip_file
LBB0_4:
	movq	%r14, %rdi
	callq	_archive_write_get_bytes_in_last_block
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	jns	LBB0_12
## %bb.5:
	movl	%r15d, %edi
	callq	_S_ISCHR
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:
	movl	%r15d, %edi
	callq	_S_ISBLK
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movl	%r15d, %edi
	callq	_S_ISFIFO
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	cmpl	$1, (%rbx)
	jne	LBB0_10
LBB0_9:
	movq	%r14, %rdi
	xorl	%esi, %esi
LBB0_11:
	callq	_archive_write_set_bytes_in_last_block
LBB0_12:
	movl	(%r12), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r14, %rdi
	movl	$1, %esi
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't stat fd %d"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.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, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1]
	mov	x1, sp
	bl	_fstat
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x20]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_archive_set_error
Lloh5:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_2:
	ldr	w21, [sp]
	mov	x0, x21
	bl	_S_ISREG
	cbz	x0, LBB0_4
; %bb.3:
	ldp	w2, w1, [sp, #4]
	mov	x0, x19
	bl	_archive_write_set_skip_file
LBB0_4:
	mov	x0, x19
	bl	_archive_write_get_bytes_in_last_block
	tbz	x0, #63, LBB0_11
; %bb.5:
	mov	x0, x21
	bl	_S_ISCHR
	cbnz	x0, LBB0_9
; %bb.6:
	mov	x0, x21
	bl	_S_ISBLK
	cbnz	x0, LBB0_9
; %bb.7:
	mov	x0, x21
	bl	_S_ISFIFO
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_13
LBB0_9:
	mov	x0, x19
	mov	w1, #0
LBB0_10:
	bl	_archive_write_set_bytes_in_last_block
LBB0_11:
Lloh7:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
LBB0_13:
	mov	x0, x19
	mov	w1, #1
	b	LBB0_10
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't stat fd %d"

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