	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rar5_read_header
_rar5_read_header:                      ## @rar5_read_header
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_get_context
	movq	%rax, %r15
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	cmpl	$0, 4(%r15)
	jne	LBB0_6
	jmp	LBB0_3
LBB0_1:
	movq	%rbx, %rdi
	callq	_init_header
	movl	$1, (%r15)
	cmpl	$0, 4(%r15)
	jne	LBB0_6
LBB0_3:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_rar5_signature_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_consume
	cmpl	%eax, %r12d
	jne	LBB0_4
## %bb.5:
	movl	$1, 4(%r15)
LBB0_6:
	movq	_ARCHIVE_RETRY@GOTPCREL(%rip), %r12
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_process_base_block
	cmpl	(%r12), %eax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, 8(%r15)
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	(%r13), %eax
	je	LBB0_7
	jmp	LBB0_10
LBB0_4:
	movq	_ARCHIVE_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_rar5_signature_size,4,2        ## @rar5_signature_size
	.comm	_ARCHIVE_EOF,4,2                ## @ARCHIVE_EOF
	.comm	_ARCHIVE_RETRY,4,2              ## @ARCHIVE_RETRY
	.no_dead_strip	_rar5_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rar5_read_header
_rar5_read_header:                      ; @rar5_read_header
	.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	x19, x1
	mov	x20, x0
	bl	_get_context
	mov	x21, x0
	ldr	w8, [x0]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_init_header
	mov	w8, #1
	str	w8, [x21]
LBB0_2:
	ldr	w8, [x21, #4]
Lloh0:
	adrp	x22, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ARCHIVE_OK@GOTPAGEOFF]
	cbnz	w8, LBB0_5
; %bb.3:
	ldr	w23, [x22]
Lloh2:
	adrp	x8, _rar5_signature_size@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rar5_signature_size@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_consume
	cmp	w23, w0
	b.ne	LBB0_8
; %bb.4:
	mov	w8, #1
	str	w8, [x21, #4]
LBB0_5:
Lloh5:
	adrp	x23, _ARCHIVE_RETRY@GOTPAGE
Lloh6:
	ldr	x23, [x23, _ARCHIVE_RETRY@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_process_base_block
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x21, #8]
	ldr	w9, [x22]
	cmp	x8, #1
	ccmp	w0, w9, #0, ge
	b.eq	LBB0_6
	b	LBB0_9
LBB0_8:
Lloh7:
	adrp	x8, _ARCHIVE_EOF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ARCHIVE_EOF@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_rar5_signature_size,4,2        ; @rar5_signature_size
	.comm	_ARCHIVE_EOF,4,2                ; @ARCHIVE_EOF
	.comm	_ARCHIVE_RETRY,4,2              ; @ARCHIVE_RETRY
	.no_dead_strip	_rar5_read_header
.subsections_via_symbols
