	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_read_data              ## -- Begin function archive_read_data
	.p2align	4, 0x90
_archive_read_data:                     ## @archive_read_data
	.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	%rdi, %r14
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r13
	movq	%rsi, %r12
	leaq	16(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	%rbx, 24(%r14)
	subq	%rbx, %rcx
	addq	%rbx, %rax
	addq	%rbx, (%r14)
	addq	%rbx, %r12
	addq	%rbx, %r15
	movq	%rcx, 16(%r14)
	movq	%rax, 8(%r14)
	subq	%rbx, %r13
	je	LBB0_14
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdx
	cmpq	%rax, %rdx
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, (%rcx)
	movq	%rax, %rcx
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r14), %rax
	movq	%rax, -56(%rbp)
	movl	$1, 32(%r14)
	movq	%r13, 40(%r14)
	movq	%r14, %rdi
	leaq	-56(%rbp), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	callq	_archive_read_data_block
	movq	-56(%rbp), %rcx
	movq	%rcx, 24(%r14)
	movq	_ARCHIVE_EOF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rdx
	movq	8(%r14), %rax
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rcx
	movq	%rdx, %rax
	cmpq	%rcx, %rdx
	jl	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	subq	%rcx, %rbx
	movl	$0, %edx
	cmovleq	%rdx, %rbx
	addq	%r13, %rcx
	cmpq	%rax, %rcx
	cmovlq	%r13, %rbx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_memset
	movq	8(%r14), %rax
	addq	%rbx, %rax
	addq	%rbx, %r15
	movq	%rax, 8(%r14)
	subq	%rbx, %r13
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	addq	%rbx, %r12
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	cmpq	%r13, %rcx
	movq	%r13, %rbx
	cmovbq	%rcx, %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r14), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	jmp	LBB0_13
LBB0_1:
	xorl	%r15d, %r15d
LBB0_14:
	movl	$0, 32(%r14)
	movq	$0, 40(%r14)
LBB0_15:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_archive_set_error
	movq	_ARCHIVE_RETRY@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_15
LBB0_16:
	movslq	%eax, %r15
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_EOF,4,2                ## @ARCHIVE_EOF
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Encountered out-of-order sparse blocks"

	.comm	_ARCHIVE_RETRY,8,3              ## @ARCHIVE_RETRY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_read_data              ; -- Begin function archive_read_data
	.p2align	2
_archive_read_data:                     ; @archive_read_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	cbz	x2, LBB0_12
; %bb.1:
	mov	x23, x2
	mov	x22, x1
	mov	x19, #0
	add	x21, x20, #16
	ldr	x8, [x20, #8]
	mov	w25, #1
Lloh0:
	adrp	x26, _ARCHIVE_EOF@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ARCHIVE_EOF@GOTPAGEOFF]
Lloh2:
	adrp	x27, _ARCHIVE_OK@GOTPAGE
Lloh3:
	ldr	x27, [x27, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x10, [x20, #24]
	add	x10, x10, x23
	sub	x9, x9, x23
	stp	x9, x10, [x20, #16]
	add	x8, x8, x23
	ldr	x9, [x20]
	add	x9, x9, x23
	stp	x9, x8, [x20]
	add	x22, x22, x23
	add	x19, x23, x19
	sub	x23, x28, x23
	cbz	x23, LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x21]
	mov	x10, x8
	cbnz	x9, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #24]
	str	x8, [sp, #8]
	str	w25, [x20, #32]
	str	x23, [x20, #40]
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x21
	mov	x3, x20
	bl	_archive_read_data_block
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [sp, #8]
	str	x8, [x20, #24]
	ldr	w8, [x26]
	cmp	w0, w8
	b.eq	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27]
	cmp	w0, w8
	b.lt	LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x9, x8, [x20]
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x10, x8
	mov	x8, x9
	cmp	x9, x10
	b.lt	LBB0_15
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	subs	x9, x8, x10
	csel	x9, x9, xzr, gt
	add	x10, x10, x23
	cmp	x10, x8
	csel	x24, x23, x9, lt
	mov	x0, x22
	mov	w1, #0
	mov	x2, x24
	bl	_memset
	ldr	x8, [x20, #8]
	add	x8, x8, x24
	str	x8, [x20, #8]
	add	x19, x24, x19
	subs	x28, x23, x24
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, x24
	ldr	x9, [x21]
	cmp	x9, x28
	csel	x23, x9, x28, lo
	cbz	x23, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x1, [x20, #24]
	mov	x0, x22
	mov	x2, x23
	bl	_memcpy
	ldp	x8, x9, [x20, #8]
	b	LBB0_2
LBB0_12:
	mov	x19, #0
LBB0_13:
	str	wzr, [x20, #32]
	str	xzr, [x20, #40]
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
Lloh4:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_archive_set_error
Lloh9:
	adrp	x8, _ARCHIVE_RETRY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ARCHIVE_RETRY@GOTPAGEOFF]
Lloh11:
	ldr	x19, [x8]
	b	LBB0_14
LBB0_16:
	sxtw	x19, w0
	b	LBB0_14
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_EOF,4,2                ; @ARCHIVE_EOF
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Encountered out-of-order sparse blocks"

	.comm	_ARCHIVE_RETRY,8,3              ; @ARCHIVE_RETRY
.subsections_via_symbols
