	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_read_support_format_rar5 ## -- Begin function archive_read_support_format_rar5
	.p2align	4, 0x90
_archive_read_support_format_rar5:      ## @archive_read_support_format_rar5
	.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	_ARCHIVE_OK@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	leaq	-48(%rbp), %rsi
	callq	_get_archive_read
	movl	%eax, %ebx
	cmpl	%eax, %r15d
	jne	LBB0_8
## %bb.1:
	movl	$4, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movl	(%r14), %r15d
	movq	%rax, %rdi
	callq	_rar5_init
	movq	-48(%rbp), %rdi
	cmpl	%eax, %r15d
	jne	LBB0_4
## %bb.6:
	movq	_rar5_bid@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_rar5_options@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_rar5_read_header@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_rar5_read_data@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_rar5_read_data_skip@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r11d
	movq	_rar5_seek_data@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	movq	_rar5_capabilities@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	movq	_rar5_has_encrypted_entries@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	movq	_rar5_cleanup@GOTPCREL(%rip), %r13
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rsi
	pushq	%rax
	pushq	%r12
	pushq	%r13
	pushq	%r15
	pushq	%r11
	pushq	%r10
	callq	___archive_read_register_format
	addq	$48, %rsp
	movl	%eax, %ebx
	cmpl	(%r14), %eax
	je	LBB0_8
## %bb.7:
	movq	-48(%rbp), %rdi
	callq	_rar5_cleanup
	jmp	LBB0_8
LBB0_2:
	movq	-48(%rbp), %rdi
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_5
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_5:
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	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	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't allocate rar5 data"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate rar5 filter buffer"

L_.str.2:                               ## @.str.2
	.asciz	"rar5"

	.comm	_rar5_bid,4,2                   ## @rar5_bid
	.comm	_rar5_options,4,2               ## @rar5_options
	.comm	_rar5_read_header,4,2           ## @rar5_read_header
	.comm	_rar5_read_data,4,2             ## @rar5_read_data
	.comm	_rar5_read_data_skip,4,2        ## @rar5_read_data_skip
	.comm	_rar5_seek_data,4,2             ## @rar5_seek_data
	.comm	_rar5_capabilities,4,2          ## @rar5_capabilities
	.comm	_rar5_has_encrypted_entries,4,2 ## @rar5_has_encrypted_entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_read_support_format_rar5 ; -- Begin function archive_read_support_format_rar5
	.p2align	2
_archive_read_support_format_rar5:      ; @archive_read_support_format_rar5
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x20, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w21, [x20]
	add	x1, sp, #24
	bl	_get_archive_read
	mov	x19, x0
	cmp	w21, w0
	b.ne	LBB0_8
; %bb.1:
	mov	w0, #4
	bl	_malloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x0
	ldr	w21, [x20]
	bl	_rar5_init
	mov	x8, x0
	ldr	x0, [sp, #24]
	cmp	w21, w8
	b.ne	LBB0_6
; %bb.3:
Lloh2:
	adrp	x8, _rar5_bid@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rar5_bid@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x8, _rar5_options@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rar5_options@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
Lloh8:
	adrp	x8, _rar5_read_header@GOTPAGE
Lloh9:
	ldr	x8, [x8, _rar5_read_header@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
Lloh11:
	adrp	x8, _rar5_read_data@GOTPAGE
Lloh12:
	ldr	x8, [x8, _rar5_read_data@GOTPAGEOFF]
Lloh13:
	ldr	w6, [x8]
Lloh14:
	adrp	x8, _rar5_read_data_skip@GOTPAGE
Lloh15:
	ldr	x8, [x8, _rar5_read_data_skip@GOTPAGEOFF]
Lloh16:
	ldr	w7, [x8]
Lloh17:
	adrp	x8, _rar5_seek_data@GOTPAGE
Lloh18:
	ldr	x8, [x8, _rar5_seek_data@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _rar5_capabilities@GOTPAGE
Lloh21:
	ldr	x9, [x9, _rar5_capabilities@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _rar5_has_encrypted_entries@GOTPAGE
Lloh24:
	ldr	x10, [x10, _rar5_has_encrypted_entries@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	stp	w9, w10, [sp, #16]
Lloh26:
	adrp	x9, _rar5_cleanup@GOTPAGE
Lloh27:
	ldr	x9, [x9, _rar5_cleanup@GOTPAGEOFF]
	str	x9, [sp, #8]
	str	w8, [sp]
Lloh28:
	adrp	x2, l_.str.2@PAGE
Lloh29:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	___archive_read_register_format
	mov	x19, x0
	ldr	w8, [x20]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.4:
	ldr	x0, [sp, #24]
	bl	_rar5_cleanup
	b	LBB0_8
LBB0_5:
	ldr	x0, [sp, #24]
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x2, l_.str@PAGE
Lloh34:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh35:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x2, l_.str.1@PAGE
Lloh39:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_7:
	bl	_archive_set_error
Lloh40:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh42:
	ldr	w19, [x8]
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't allocate rar5 data"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate rar5 filter buffer"

l_.str.2:                               ; @.str.2
	.asciz	"rar5"

	.comm	_rar5_bid,4,2                   ; @rar5_bid
	.comm	_rar5_options,4,2               ; @rar5_options
	.comm	_rar5_read_header,4,2           ; @rar5_read_header
	.comm	_rar5_read_data,4,2             ; @rar5_read_data
	.comm	_rar5_read_data_skip,4,2        ; @rar5_read_data_skip
	.comm	_rar5_seek_data,4,2             ; @rar5_seek_data
	.comm	_rar5_capabilities,4,2          ; @rar5_capabilities
	.comm	_rar5_has_encrypted_entries,4,2 ; @rar5_has_encrypted_entries
.subsections_via_symbols
