	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function merge_block
_merge_block:                           ## @merge_block
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_get_context
	cmpq	$0, 8(%rax)
	je	LBB0_4
## %bb.1:
	movq	_ARCHIVE_ERRNO_PROGRAMMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_2:
	movq	%r12, %rdi
LBB0_3:
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %eax
LBB0_24:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rax, %rbx
	movl	$1, 20(%rax)
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_free
LBB0_6:
	leal	8(%r15), %edi
	callq	_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movslq	%r15d, %rcx
	leaq	(%rax,%rcx,4), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	16(%rbx), %edi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, %esi
	callq	_rar5_min
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	movl	%eax, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%ebx, %esi
	subl	%r14d, %esi
	callq	_rar5_min
	movl	%eax, %r13d
	movl	%r14d, %r12d
	testl	%eax, %eax
	movq	%r15, %rbx
	je	LBB0_12
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	leaq	-72(%rbp), %rdx
	callq	_read_ahead
	testl	%eax, %eax
	je	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	leal	(%r12,%r13), %r14d
	cmpl	-56(%rbp), %r14d                ## 4-byte Folded Reload
	jg	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	movslq	%r12d, %rdi
	shlq	$2, %rdi
	addq	(%rbx), %rdi
	movq	-72(%rbp), %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rdi, %r12
	movl	%r13d, %esi
	callq	_consume
	cmpl	%eax, %r15d
	jne	LBB0_11
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	16(%rbx), %eax
	movl	%eax, %edi
	subl	%r13d, %edi
	movq	%rbx, %r15
	movl	%edi, 16(%rbx)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpl	%ebx, %r14d
	je	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	%r13d, %eax
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r12, %rax
	movq	%r15, %r12
	incq	8(%r15)
	movq	%rax, %rdi
	callq	_advance_multivolume
	decq	8(%r15)
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	16(%r12), %edi
	jmp	LBB0_21
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_2
LBB0_12:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_11:
	movq	_ARCHIVE_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_15:
	movq	_ARCHIVE_ERRNO_PROGRAMMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_22:
	movq	(%r15), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_ERRNO_PROGRAMMER,4,2   ## @ARCHIVE_ERRNO_PROGRAMMER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Recursive merge is not allowed"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate memory for a merge block buffer."

	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
L_.str.2:                               ## @.str.2
	.asciz	"Encountered block size == 0 during block merge"

	.comm	_ARCHIVE_EOF,4,2                ## @ARCHIVE_EOF
L_.str.3:                               ## @.str.3
	.asciz	"Consumed too much data when merging blocks."

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function merge_block
_merge_block:                           ; @merge_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_get_context
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _ARCHIVE_ERRNO_PROGRAMMER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_ERRNO_PROGRAMMER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	bl	_archive_set_error
Lloh5:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
LBB0_4:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	mov	x22, x0
	mov	w8, #1
	str	w8, [x0, #20]
	ldr	x0, [x0]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_free
LBB0_7:
	add	w0, w21, #8
	bl	_malloc
	str	x0, [x22]
	cbz	x0, LBB0_18
; %bb.8:
	add	x0, x0, w21, sxtw #2
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w0, [x22, #16]
	mov	x1, x21
	bl	_rar5_min
	cbz	w0, LBB0_19
; %bb.9:
	mov	x23, x0
	mov	w26, #0
Lloh7:
	adrp	x24, _ARCHIVE_OK@GOTPAGE
Lloh8:
	ldr	x24, [x24, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	sub	w1, w21, w25
	bl	_rar5_min
	mov	x23, x0
	mov	x26, x25
	cbz	w0, LBB0_19
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x23
	bl	_read_ahead
	cbz	w0, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w25, w23, w26
	cmp	w25, w21
	b.gt	LBB0_21
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x22]
	add	x0, x8, w26, sxtw #2
	ldr	x1, [sp, #8]
	mov	x2, x23
	bl	_memcpy
	ldr	w26, [x24]
	mov	x0, x19
	mov	x1, x23
	bl	_consume
	cmp	w26, w0
	b.ne	LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x22, #16]
	sub	w0, w8, w23
	str	w0, [x22, #16]
	cmp	w25, w21
	b.eq	LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w8, w23
	b.ne	LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x22, #8]
	add	x8, x8, #1
	str	x8, [x22, #8]
	mov	x0, x19
	bl	_advance_multivolume
	ldr	x8, [x22, #8]
	sub	x8, x8, #1
	str	x8, [x22, #8]
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x22, #16]
	b	LBB0_10
LBB0_18:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_19:
Lloh14:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.2@PAGE
Lloh18:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_20:
Lloh19:
	adrp	x8, _ARCHIVE_EOF@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ARCHIVE_EOF@GOTPAGEOFF]
	b	LBB0_3
LBB0_21:
Lloh21:
	adrp	x8, _ARCHIVE_ERRNO_PROGRAMMER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ARCHIVE_ERRNO_PROGRAMMER@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x2, l_.str.3@PAGE
Lloh25:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_22:
	ldr	x8, [x22]
	str	x8, [x20]
	ldr	w0, [x24]
	b	LBB0_4
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_ERRNO_PROGRAMMER,4,2   ; @ARCHIVE_ERRNO_PROGRAMMER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Recursive merge is not allowed"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate memory for a merge block buffer."

	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
l_.str.2:                               ; @.str.2
	.asciz	"Encountered block size == 0 during block merge"

	.comm	_ARCHIVE_EOF,4,2                ; @ARCHIVE_EOF
l_.str.3:                               ; @.str.3
	.asciz	"Consumed too much data when merging blocks."

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