	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_read_format_rar_read_header
_archive_read_format_rar_read_header:   ## @archive_read_format_rar_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_ARCHIVE_FORMAT_RAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	cmpq	$0, (%rdi)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rbx)
LBB0_2:
	movq	16(%rbx), %rax
	movq	(%rax), %r14
	movq	(%r14), %rax
	movq	_ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	$0, (%r14)
LBB0_4:
	movl	$7, %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	cmpl	$0, 8(%r14)
	jne	LBB0_11
## %bb.7:
	cmpb	$77, (%rax)
	jne	LBB0_9
## %bb.8:
	cmpb	$90, 1(%rax)
	je	LBB0_10
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_11
LBB0_10:
	movq	%rbx, %rdi
	callq	_skip_sfx
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_15
LBB0_11:
	movl	$1, 8(%r14)
	movl	$7, %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	movq	%rbx, %rdi
	callq	_archive_set_error
LBB0_13:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_5:
	movq	_ARCHIVE_EOF@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_FORMAT_RAR,4,2         ## @ARCHIVE_FORMAT_RAR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RAR"

	.comm	_ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW,8,3 ## @ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW
	.comm	_ARCHIVE_EOF,4,2                ## @ARCHIVE_EOF
L_.str.1:                               ## @.str.1
	.asciz	"\177ELF"

	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_RAR_SIGNATURE,8,3              ## @RAR_SIGNATURE
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
	.comm	_MHD_ENCRYPTVER,4,2             ## @MHD_ENCRYPTVER
	.comm	_MHD_PASSWORD,4,2               ## @MHD_PASSWORD
	.comm	_HD_ADD_SIZE_PRESENT,4,2        ## @HD_ADD_SIZE_PRESENT
L_.str.7:                               ## @.str.7
	.asciz	"Bad RAR file"

	.no_dead_strip	_archive_read_format_rar_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function archive_read_format_rar_read_header
_archive_read_format_rar_read_header:   ; @archive_read_format_rar_read_header
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _ARCHIVE_FORMAT_RAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_FORMAT_RAR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	ldr	x8, [x0]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x19]
LBB0_2:
	ldr	x8, [x19, #16]
	ldr	x20, [x8]
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	str	xzr, [x20]
LBB0_4:
	mov	x0, x19
	mov	w1, #7
	mov	x2, #0
	bl	___archive_read_ahead
	cbz	x0, LBB0_13
; %bb.5:
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_10
; %bb.6:
	ldrb	w8, [x0]
	cmp	w8, #77
	b.ne	LBB0_8
; %bb.7:
	ldrb	w8, [x0, #1]
	cmp	w8, #90
	b.eq	LBB0_9
LBB0_8:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_memcmp
	cbnz	x0, LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_skip_sfx
Lloh10:
	adrp	x8, _ARCHIVE_WARN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, w8
	b.lt	LBB0_15
LBB0_10:
	mov	w8, #1
	str	w8, [x20, #8]
	mov	x0, x19
	mov	w1, #7
	mov	x2, #0
	bl	___archive_read_ahead
	cbz	x0, LBB0_12
; %bb.11:
Lloh13:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.7@PAGE
Lloh17:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_archive_set_error
LBB0_12:
Lloh18:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh20:
	adrp	x8, _ARCHIVE_EOF@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ARCHIVE_EOF@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_FORMAT_RAR,4,2         ; @ARCHIVE_FORMAT_RAR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RAR"

	.comm	_ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW,8,3 ; @ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW
	.comm	_ARCHIVE_EOF,4,2                ; @ARCHIVE_EOF
l_.str.1:                               ; @.str.1
	.asciz	"\177ELF"

	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_RAR_SIGNATURE,8,3              ; @RAR_SIGNATURE
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
	.comm	_MHD_ENCRYPTVER,4,2             ; @MHD_ENCRYPTVER
	.comm	_MHD_PASSWORD,4,2               ; @MHD_PASSWORD
	.comm	_HD_ADD_SIZE_PRESENT,4,2        ; @HD_ADD_SIZE_PRESENT
l_.str.7:                               ; @.str.7
	.asciz	"Bad RAR file"

	.no_dead_strip	_archive_read_format_rar_read_header
.subsections_via_symbols
