	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_read_disk_entry_from_file ## -- Begin function archive_read_disk_entry_from_file
	.p2align	4, 0x90
_archive_read_disk_entry_from_file:     ## @archive_read_disk_entry_from_file
	.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	%rcx, %r13
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	%edx, -44(%rbp)
	movq	_ARCHIVE_READ_DISK_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARCHIVE_STATE_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	callq	_archive_check_magic
	movq	%r12, %rdi
	callq	_archive_clear_error
	movq	%r15, %rdi
	callq	_archive_entry_sourcepath
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpq	$0, 32(%r12)
	jne	LBB0_7
	jmp	LBB0_3
LBB0_1:
	movq	%r15, %rdi
	callq	_archive_entry_pathname
	movq	%rax, %rbx
	cmpq	$0, 32(%r12)
	jne	LBB0_7
LBB0_3:
	testq	%r13, %r13
	je	LBB0_4
LBB0_6:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_archive_entry_copy_stat
LBB0_7:
	movq	%r15, %rdi
	callq	_archive_entry_uid
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_archive_read_disk_uname
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_archive_entry_copy_uname
LBB0_9:
	movq	%r15, %rdi
	callq	_archive_entry_gid
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_archive_read_disk_gname
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_archive_entry_copy_gname
LBB0_11:
	movl	(%r12), %eax
	movq	_ARCHIVE_READDISK_NO_ACL@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	testl	%eax, (%rcx)
	jne	LBB0_13
## %bb.12:
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_archive_read_disk_entry_setup_acls
	movl	%eax, %ebx
	movl	(%r12), %eax
LBB0_13:
	movq	_ARCHIVE_READDISK_NO_XATTR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_15
## %bb.14:
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_setup_xattrs
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
	movl	(%r12), %eax
LBB0_15:
	movq	_ARCHIVE_READDISK_MAC_COPYFILE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.16:
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_setup_mac_metadata
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
LBB0_17:
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_setup_sparse
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
	movl	-44(%rbp), %edi
	cmpl	%r14d, %edi
	je	LBB0_19
## %bb.18:
	callq	_close
LBB0_19:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	-64(%rbp), %r13
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_la_stat
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	addq	$24, %r12
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_archive_set_error
	movq	_ARCHIVE_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_READ_DISK_MAGIC,4,2    ## @ARCHIVE_READ_DISK_MAGIC
	.comm	_ARCHIVE_STATE_ANY,4,2          ## @ARCHIVE_STATE_ANY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"archive_read_disk_entry_from_file"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"Can't stat %s"

	.comm	_ARCHIVE_FAILED,4,2             ## @ARCHIVE_FAILED
	.comm	_ARCHIVE_READDISK_NO_ACL,4,2    ## @ARCHIVE_READDISK_NO_ACL
	.comm	_ARCHIVE_READDISK_NO_XATTR,4,2  ## @ARCHIVE_READDISK_NO_XATTR
	.comm	_ARCHIVE_READDISK_MAC_COPYFILE,4,2 ## @ARCHIVE_READDISK_MAC_COPYFILE
	.comm	_ARCHIVE_READDISK_NO_FFLAGS,4,2 ## @ARCHIVE_READDISK_NO_FFLAGS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EXT2_IOC_GETFLAGS,4,2          ## @EXT2_IOC_GETFLAGS
	.comm	_FS_IOC_GETFLAGS,4,2            ## @FS_IOC_GETFLAGS
	.comm	_O_CLOEXEC,4,2                  ## @O_CLOEXEC
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_read_disk_entry_from_file ; -- Begin function archive_read_disk_entry_from_file
	.p2align	2
_archive_read_disk_entry_from_file:     ; @archive_read_disk_entry_from_file
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	w2, [sp, #28]
Lloh0:
	adrp	x8, _ARCHIVE_READ_DISK_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_READ_DISK_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ARCHIVE_STATE_ANY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARCHIVE_STATE_ANY@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	bl	_archive_check_magic
	mov	x0, x21
	bl	_archive_clear_error
	mov	x0, x20
	bl	_archive_entry_sourcepath
	mov	x23, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x21, #32]
	cbnz	x8, LBB0_5
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_archive_entry_pathname
	mov	x23, x0
	ldr	x8, [x21, #32]
	cbnz	x8, LBB0_5
LBB0_3:
	cbz	x22, LBB0_19
LBB0_4:
	mov	x0, x20
	mov	x1, x22
	bl	_archive_entry_copy_stat
LBB0_5:
	mov	x0, x20
	bl	_archive_entry_uid
	mov	x1, x0
	mov	x0, x21
	bl	_archive_read_disk_uname
	cbz	x0, LBB0_7
; %bb.6:
	mov	x1, x0
	mov	x0, x20
	bl	_archive_entry_copy_uname
LBB0_7:
	mov	x0, x20
	bl	_archive_entry_gid
	mov	x1, x0
	mov	x0, x21
	bl	_archive_read_disk_gname
	cbz	x0, LBB0_9
; %bb.8:
	mov	x1, x0
	mov	x0, x20
	bl	_archive_entry_copy_gname
LBB0_9:
	ldr	w8, [x21]
Lloh8:
	adrp	x9, _ARCHIVE_READDISK_NO_ACL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ARCHIVE_READDISK_NO_ACL@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	mov	w22, #0
	b	LBB0_12
LBB0_11:
	add	x2, sp, #28
	mov	x0, x21
	mov	x1, x20
	bl	_archive_read_disk_entry_setup_acls
	mov	x22, x0
	ldr	w8, [x21]
LBB0_12:
Lloh11:
	adrp	x9, _ARCHIVE_READDISK_NO_XATTR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ARCHIVE_READDISK_NO_XATTR@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.13:
	add	x2, sp, #28
	mov	x0, x21
	mov	x1, x20
	bl	_setup_xattrs
	cmp	w0, w22
	csel	w22, w0, w22, lt
	ldr	w8, [x21]
LBB0_14:
Lloh14:
	adrp	x9, _ARCHIVE_READDISK_MAC_COPYFILE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ARCHIVE_READDISK_MAC_COPYFILE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
	add	x2, sp, #28
	mov	x0, x21
	mov	x1, x20
	bl	_setup_mac_metadata
	cmp	w0, w22
	csel	w22, w0, w22, lt
LBB0_16:
	add	x2, sp, #28
	mov	x0, x21
	mov	x1, x20
	bl	_setup_sparse
	cmp	w0, w22
	csel	w20, w0, w22, lt
	ldr	w0, [sp, #28]
	cmp	w0, w19
	b.eq	LBB0_18
; %bb.17:
	bl	_close
LBB0_18:
	mov	x0, x20
	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
LBB0_19:
	add	x22, sp, #8
	add	x1, sp, #8
	mov	x0, x23
	bl	_la_stat
	cbz	x0, LBB0_4
; %bb.20:
	add	x0, x21, #24
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	str	x23, [sp]
Lloh20:
	adrp	x2, l_.str.1@PAGE
Lloh21:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_archive_set_error
Lloh22:
	adrp	x8, _ARCHIVE_FAILED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ARCHIVE_FAILED@GOTPAGEOFF]
Lloh24:
	ldr	w20, [x8]
	b	LBB0_18
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_READ_DISK_MAGIC,4,2    ; @ARCHIVE_READ_DISK_MAGIC
	.comm	_ARCHIVE_STATE_ANY,4,2          ; @ARCHIVE_STATE_ANY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"archive_read_disk_entry_from_file"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"Can't stat %s"

	.comm	_ARCHIVE_FAILED,4,2             ; @ARCHIVE_FAILED
	.comm	_ARCHIVE_READDISK_NO_ACL,4,2    ; @ARCHIVE_READDISK_NO_ACL
	.comm	_ARCHIVE_READDISK_NO_XATTR,4,2  ; @ARCHIVE_READDISK_NO_XATTR
	.comm	_ARCHIVE_READDISK_MAC_COPYFILE,4,2 ; @ARCHIVE_READDISK_MAC_COPYFILE
	.comm	_ARCHIVE_READDISK_NO_FFLAGS,4,2 ; @ARCHIVE_READDISK_NO_FFLAGS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EXT2_IOC_GETFLAGS,4,2          ; @EXT2_IOC_GETFLAGS
	.comm	_FS_IOC_GETFLAGS,4,2            ; @FS_IOC_GETFLAGS
	.comm	_O_CLOEXEC,4,2                  ; @O_CLOEXEC
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
.subsections_via_symbols
