	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_read_data_into_fd      ## -- Begin function archive_read_data_into_fd
	.p2align	4, 0x90
_archive_read_data_into_fd:             ## @archive_read_data_into_fd
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	_ARCHIVE_READ_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARCHIVE_STATE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_archive_check_magic
	leaq	-88(%rbp), %rsi
	movl	%ebx, %edi
	callq	_fstat
	testq	%rax, %rax
	je	LBB0_1
LBB0_3:
	movl	$16384, %esi                    ## imm = 0x4000
	movl	$1, %edi
	callq	_calloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_4
LBB0_1:
	movl	-88(%rbp), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_4:
	leaq	-96(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_archive_read_data_block
	movl	%eax, %r13d
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_5
## %bb.12:
	xorl	%r15d, %r15d
	movq	_MAX_WRITE@GOTPCREL(%rip), %r14
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	-96(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	callq	_archive_read_data_block
	movl	%eax, %r13d
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_6
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movq	-96(%rbp), %r12
	movq	-72(%rbp), %r9
	cmpq	%r15, %r9
	jle	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r15, (%rsp)
	movl	$16384, %ecx                    ## imm = 0x4000
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_pad_to
	movl	%eax, %r13d
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_6
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-72(%rbp), %r15
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-80(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %rdx
	cmpq	%rdx, %rcx
	cmovbq	%rcx, %rdx
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_write
	addq	%rax, %r15
	addq	%rax, %r12
	movq	-80(%rbp), %rcx
	subq	%rax, %rcx
	movq	%rcx, -80(%rbp)
	jne	LBB0_17
	jmp	LBB0_18
LBB0_5:
	xorl	%r15d, %r15d
LBB0_6:
	movq	_ARCHIVE_EOF@GOTPCREL(%rip), %r14
	cmpl	(%r14), %r13d
	jne	LBB0_9
## %bb.7:
	movq	-72(%rbp), %r9
	cmpq	%r15, %r9
	jle	LBB0_9
## %bb.8:
	movq	%r15, (%rsp)
	movl	$16384, %ecx                    ## imm = 0x4000
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_pad_to
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	cmovnel	%eax, %r13d
LBB0_9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	cmpl	(%r14), %r13d
	jne	LBB0_11
## %bb.10:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_READ_MAGIC,4,2         ## @ARCHIVE_READ_MAGIC
	.comm	_ARCHIVE_STATE_DATA,4,2         ## @ARCHIVE_STATE_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"archive_read_data_into_fd"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_MAX_WRITE,8,3                  ## @MAX_WRITE
	.comm	_errno,4,2                      ## @errno
	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ARCHIVE_EOF,4,2                ## @ARCHIVE_EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_read_data_into_fd      ; -- Begin function archive_read_data_into_fd
	.p2align	2
_archive_read_data_into_fd:             ; @archive_read_data_into_fd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ARCHIVE_READ_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_READ_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ARCHIVE_STATE_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARCHIVE_STATE_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	bl	_archive_check_magic
	add	x1, sp, #24
	mov	x0, x19
	bl	_fstat
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #1
	mov	w1, #16384
	bl	_calloc
	mov	x21, x0
	mov	w22, #0
	b	LBB0_4
LBB0_2:
	ldr	w0, [sp, #24]
	bl	_S_ISREG
	cbz	x0, LBB0_1
; %bb.3:
	mov	x21, #0
	mov	w22, #1
LBB0_4:
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	bl	_archive_read_data_block
Lloh8:
	adrp	x26, _ARCHIVE_OK@GOTPAGE
Lloh9:
	ldr	x26, [x26, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.5:
	mov	x23, #0
Lloh10:
	adrp	x27, _MAX_WRITE@GOTPAGE
Lloh11:
	ldr	x27, [x27, _MAX_WRITE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	bl	_archive_read_data_block
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_13
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x25, [sp, #16]
	ldr	x5, [sp]
	cmp	x5, x23
	b.le	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	w3, #16384
	mov	x4, x21
	mov	x6, x23
	bl	_pad_to
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x23, [sp]
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_6
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x27]
	cmp	x8, x9
	csel	x2, x8, x9, lo
	mov	x0, x19
	mov	x1, x25
	bl	_write
	add	x23, x0, x23
	add	x25, x25, x0
	ldr	x8, [sp, #8]
	subs	x8, x8, x0
	str	x8, [sp, #8]
	b.ne	LBB0_11
	b	LBB0_6
LBB0_12:
	mov	x24, x0
	mov	x23, #0
	b	LBB0_14
LBB0_13:
	mov	x24, x0
LBB0_14:
Lloh12:
	adrp	x25, _ARCHIVE_EOF@GOTPAGE
Lloh13:
	ldr	x25, [x25, _ARCHIVE_EOF@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w24, w8
	b.ne	LBB0_17
; %bb.15:
	ldr	x5, [sp]
	cmp	x5, x23
	b.le	LBB0_17
; %bb.16:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	w3, #16384
	mov	x4, x21
	mov	x6, x23
	bl	_pad_to
	ldr	w8, [x26]
	cmp	w0, w8
	csel	w24, w24, w0, eq
LBB0_17:
	mov	x0, x21
	bl	_free
	ldr	w8, [x25]
	ldr	w9, [x26]
	cmp	w24, w8
	csel	w0, w9, w24, eq
	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
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_READ_MAGIC,4,2         ; @ARCHIVE_READ_MAGIC
	.comm	_ARCHIVE_STATE_DATA,4,2         ; @ARCHIVE_STATE_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"archive_read_data_into_fd"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_MAX_WRITE,8,3                  ; @MAX_WRITE
	.comm	_errno,4,2                      ; @errno
	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ARCHIVE_EOF,4,2                ; @ARCHIVE_EOF
.subsections_via_symbols
