	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rar5_read_data
_rar5_read_data:                        ## @rar5_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_get_context
	cmpq	$0, (%rax)
	jle	LBB0_4
## %bb.1:
	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_FAILED@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rax, %rbx
	cmpl	$0, 40(%rax)
	jne	LBB0_7
## %bb.5:
	movq	32(%rbx), %rax
	cmpq	8(%rbx), %rax
	jle	LBB0_7
## %bb.6:
	movq	_ARCHIVE_ERRNO_PROGRAMMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_use_data
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.8:
	cmpl	$1, 16(%rbx)
	jne	LBB0_10
## %bb.9:
	movq	_ARCHIVE_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%rcx, %r13
	movq	%r12, %rcx
	movq	%r15, %r8
	callq	_do_unpack
	cmpl	(%r13), %eax
	jne	LBB0_3
## %bb.11:
	cmpq	$0, 24(%rbx)
	jne	LBB0_3
## %bb.12:
	movq	32(%rbx), %rcx
	cmpq	8(%rbx), %rcx
	jne	LBB0_3
## %bb.13:
	movl	$1, 16(%rbx)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_verify_global_checksums        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't decompress an entry marked as a directory"

	.comm	_ARCHIVE_FAILED,4,2             ## @ARCHIVE_FAILED
	.comm	_ARCHIVE_ERRNO_PROGRAMMER,4,2   ## @ARCHIVE_ERRNO_PROGRAMMER
L_.str.1:                               ## @.str.1
	.asciz	"Unpacker has written too many bytes"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_EOF,4,2                ## @ARCHIVE_EOF
	.no_dead_strip	_rar5_read_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rar5_read_data
_rar5_read_data:                        ; @rar5_read_data
	.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	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_get_context
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_archive_set_error
Lloh5:
	adrp	x8, _ARCHIVE_FAILED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ARCHIVE_FAILED@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
LBB0_3:
	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_4:
	mov	x20, x0
	ldr	w8, [x0, #40]
	cbnz	w8, LBB0_7
; %bb.5:
	ldr	x8, [x20, #32]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.le	LBB0_7
; %bb.6:
Lloh7:
	adrp	x8, _ARCHIVE_ERRNO_PROGRAMMER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ARCHIVE_ERRNO_PROGRAMMER@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_archive_set_error
Lloh12:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
	b	LBB0_2
LBB0_7:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_use_data
Lloh14:
	adrp	x24, _ARCHIVE_OK@GOTPAGE
Lloh15:
	ldr	x24, [x24, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_3
; %bb.8:
	ldr	w8, [x20, #16]
	cmp	w8, #1
	b.ne	LBB0_10
; %bb.9:
Lloh16:
	adrp	x8, _ARCHIVE_EOF@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ARCHIVE_EOF@GOTPAGEOFF]
	b	LBB0_2
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_do_unpack
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.11:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_3
; %bb.12:
	ldr	x8, [x20, #32]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.13:
	mov	w8, #1
	str	w8, [x20, #16]
	mov	x0, x19
	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
	b	_verify_global_checksums
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't decompress an entry marked as a directory"

	.comm	_ARCHIVE_FAILED,4,2             ; @ARCHIVE_FAILED
	.comm	_ARCHIVE_ERRNO_PROGRAMMER,4,2   ; @ARCHIVE_ERRNO_PROGRAMMER
l_.str.1:                               ; @.str.1
	.asciz	"Unpacker has written too many bytes"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_EOF,4,2                ; @ARCHIVE_EOF
	.no_dead_strip	_rar5_read_data
.subsections_via_symbols
