	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_next_symbol
_read_next_symbol:                      ## @read_next_symbol
	.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, %r15
	movq	%rdi, %r14
	cmpq	$0, 16(%rsi)
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_make_table
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	movl	$-1, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_14
LBB0_2:
	movq	8(%r14), %rax
	movq	(%rax), %r13
	leaq	8(%r13), %r12
	movl	(%r15), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_rar_br_read_ahead
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_rar_br_bits
	movq	16(%r15), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,8), %esi
	testl	%esi, %esi
	js	LBB0_12
## %bb.5:
	movl	4(%rcx,%rax,8), %ebx
	movl	(%r15), %eax
	cmpl	%eax, %esi
	jle	LBB0_6
## %bb.7:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_rar_br_consume
	movq	8(%r15), %rax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %r13
	movq	(%rax,%r13,8), %rax
	movl	(%rax), %ebx
	cmpl	4(%rax), %ebx
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_rar_br_read_ahead
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_rar_br_bits
	movq	%rax, %rbx
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_rar_br_consume
	movq	8(%r15), %rax
	movq	(%rax,%r13,8), %rcx
	movzbl	%bl, %edx
	movl	(%rcx,%rdx,4), %ebx
	testl	%ebx, %ebx
	jns	LBB0_8
LBB0_12:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_archive_set_error
	jmp	LBB0_13
LBB0_3:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_archive_set_error
	movq	$0, (%r13)
LBB0_13:
	movl	$-1, %ebx
	jmp	LBB0_14
LBB0_6:
	movq	%r12, %rdi
	callq	_rar_br_consume
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_archive_set_error
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_OK,8,3                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Truncated RAR file data"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid prefix code in bitstream"

	.no_dead_strip	_read_next_symbol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_next_symbol
_read_next_symbol:                      ; @read_next_symbol
	.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, x1
	mov	x19, x0
	ldr	x8, [x1, #16]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_make_table
Lloh0:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	x23, [x8]
	add	x21, x23, #8
	ldr	w2, [x20]
	mov	x0, x19
	mov	x1, x21
	bl	_rar_br_read_ahead
	cbz	w0, LBB0_10
; %bb.3:
	ldr	w1, [x20]
	mov	x0, x21
	bl	_rar_br_bits
	ldr	x8, [x20, #16]
	add	x8, x8, w0, uxtw #3
	ldr	w1, [x8]
	tbnz	w1, #31, LBB0_9
; %bb.4:
	ldr	w22, [x8, #4]
	ldr	w8, [x20]
	cmp	w1, w8
	b.le	LBB0_13
; %bb.5:
	mov	x0, x21
	mov	x1, x8
	bl	_rar_br_consume
	ldr	x8, [x20, #8]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, w22, sxtw #3]
	ldp	w8, w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_rar_br_read_ahead
	cbz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	sxtw	x24, w22
	mov	x0, x21
	mov	w1, #1
	bl	_rar_br_bits
	mov	x22, x0
	mov	x0, x21
	mov	w1, #1
	bl	_rar_br_consume
	ldr	x8, [x20, #8]
	ldr	x9, [x8, x24, lsl #3]
	and	x10, x22, #0xff
	ldr	w22, [x9, x10, lsl #2]
	tbz	w22, #31, LBB0_6
LBB0_9:
Lloh3:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_archive_set_error
	b	LBB0_11
LBB0_10:
Lloh8:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_archive_set_error
	str	xzr, [x23]
LBB0_11:
	mov	w22, #-1
LBB0_12:
	mov	x0, x22
	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_13:
	mov	x0, x21
	bl	_rar_br_consume
	b	LBB0_12
LBB0_14:
	mov	x22, x8
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,8,3                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Truncated RAR file data"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid prefix code in bitstream"

	.no_dead_strip	_read_next_symbol
.subsections_via_symbols
