	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_body_to_string
_read_body_to_string:                   ## @read_body_to_string
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rdx, %r15
	movq	%rdi, %r13
	movl	(%rcx), %edi
	movl	$4, %esi
	callq	_tar_atol
	cmpl	$1048577, %eax                  ## imm = 0x100001
	jb	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_6
LBB0_2:
	movl	%eax, %ebx
	movl	%eax, %r12d
	leaq	1(%r12), %rsi
	movq	%r15, %rdi
	callq	_archive_string_ensure
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_tar_flush_unconsumed
	addl	$511, %ebx                      ## imm = 0x1FF
	andl	$-512, %ebx                     ## imm = 0xFE00
	movq	%rbx, (%r14)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	(%r15), %rdi
	movq	%rax, %rsi
	movq	%r12, %rdx
	callq	_memcpy
	movq	(%r15), %rax
	movb	$0, (%rax,%r12)
	movq	%r12, 8(%r15)
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_6:
	movq	%r13, %rdi
	callq	_archive_set_error
LBB0_7:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	$0, (%r14)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Special header too large"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"No memory"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_read_body_to_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_body_to_string
_read_body_to_string:                   ; @read_body_to_string
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x19, x2
	mov	x21, x0
	ldr	w0, [x3]
	mov	w1, #4
	bl	_tar_atol
	cmp	w0, #256, lsl #12               ; =1048576
	b.ls	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	mov	x23, x0
	mov	w22, w0
	add	x1, x22, #1
	mov	x0, x19
	bl	_archive_string_ensure
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x21
	mov	x1, x20
	bl	_tar_flush_unconsumed
	add	w8, w23, #511
	and	w1, w8, #0xfffffe00
	str	x1, [x20]
	mov	x0, x21
	mov	x2, #0
	bl	___archive_read_ahead
	cbz	x0, LBB0_9
; %bb.4:
	mov	x1, x0
	ldr	x0, [x19]
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x19]
	strb	wzr, [x8, x22]
	str	x22, [x19, #8]
Lloh5:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x21
	bl	_archive_set_error
LBB0_7:
Lloh12:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	str	xzr, [x20]
	b	LBB0_7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Special header too large"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"No memory"

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